/* ===========================================================
 * OPUS MUNDI — Homepage CSS
 * Styles the cybernetic orbit medallion, 3-col content grid,
 * bottom publications strip, and all homepage-specific elements.
 *
 * These styles are ONLY loaded on pages that need them.
 * The orbit animation system uses CSS keyframes + JS particle system.
 * =========================================================== */

/* ── CONTENT GRID (3 columns) ─────────────────────────────────────
   Left: /01 + Metrics | Center: Medallion | Right: Tagline + CTA
───────────────────────────────────────────────────────────────── */
.om-content {
    flex: 1;
    display: grid;
    grid-template-columns: 320px 1fr 380px;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    min-height: 0;
    position: relative;
}

/* ── LEFT PANEL ────────────────────────────────────────────────── */
.om-left-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 24px 0 64px;
    overflow: hidden;
}

.om-issue-counter {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-theme="light"] .om-issue-counter {
    color: rgba(13, 31, 45, 0.3);
}

.om-issue-counter::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    max-width: 80px;
}

[data-theme="light"] .om-issue-counter::after {
    background: rgba(179, 139, 0, 0.15);
}

.om-metrics-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 16px;
}

[data-theme="light"] .om-metrics-title {
    color: #0d1f2d;
}

.om-metrics-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.om-metrics-list li {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

[data-theme="light"] .om-metrics-list li {
    color: rgba(13, 31, 45, 0.55);
}

.om-metrics-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-size: 14px;
    line-height: 1.1;
}

[data-theme="light"] .om-metrics-list li::before {
    color: #b38b00;
}

/* Announcements mini-list */
.om-announcements-mini {
    margin-top: 8px;
}

.om-announce-item {
    margin-bottom: 10px;
}

.om-announce-item a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.om-announce-item a:hover {
    color: #00d4ff;
}

.om-announce-date {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
}

/* ── CENTER: ORBIT MEDALLION ─────────────────────────────────────── */
.om-center {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.om-orbit {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ── ORBIT RINGS ───────────────────────────────────────────────── */
.om-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.18);
    pointer-events: none;
}

[data-theme="light"] .om-ring {
    border-color: rgba(160, 140, 110, 0.2);
}

.om-ring-1 { width: 260px; height: 260px; }
.om-ring-2 {
    width: 320px; height: 320px;
    border-style: dashed;
    border-color: rgba(0, 212, 255, 0.12);
    animation: spin-slow 30s linear infinite;
    pointer-events: all;   /* Needed for dot hover events */
}

[data-theme="light"] .om-ring-2 {
    border-color: rgba(160, 140, 110, 0.15);
}

.om-ring-3 { width: 380px; height: 380px; border-color: rgba(0, 212, 255, 0.06); }

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── ORBIT DOTS — ORBITING ANIMATION ─────────────────────────────────────
   All dots spawn at orbit center (50%,50%), then travel a 160px-radius
   circle using the classic rotate + translateX + counter-rotate trick.
   Staggered animation-delay keeps dots evenly spaced on the ring.
   Hover PAUSES the orbit so the user can read the tooltip & click.
──────────────────────────────────────────────────────────────────────── */

/* Common: start at center, let animation place it on the ring */
.om-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6), 0 0 20px rgba(0, 212, 255, 0.15);
    cursor: pointer !important;
    pointer-events: all !important;
    will-change: transform;
    opacity: 1;
    /* Spawn at center, animation drives the position */
    left: 50%;
    top: 50%;
    margin-left: -7px;   /* half of 14px dot */
    margin-top: -7px;
    animation-duration: 24s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    transition: box-shadow 0.25s ease, animation-play-state 0.1s;
}

[data-theme="light"] .om-dot {
    background: #00d4ff;
    border: 1.5px solid #0d1f2d;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 4px rgba(13, 31, 45, 0.3);
}

/* Hover: pause orbit + bright glow so user can read tooltip and click */
.om-dot:hover,
.om-dot.om-dot-active {
    animation-play-state: paused !important;
    box-shadow: 0 0 24px rgba(0, 212, 255, 1), 0 0 50px rgba(0, 212, 255, 0.4);
    cursor: pointer !important;
}

[data-theme="light"] .om-dot.om-dot-active {
    box-shadow: 0 0 20px rgba(0, 130, 180, 0.9), 0 0 40px rgba(0, 130, 180, 0.3);
}

.om-dot:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 4px;
}

/* Per-dot orbit: each starts at a different phase of the same 24s cycle.
   Top = 270° start, Right = 0°, Bottom = 90°, Left = 180°
   delay trick: delay = -(startAngleFraction * duration)
   They all share @keyframes orbit-dot and just offset their phase. */
.om-dot-top    {
    animation-name: orbit-dot;
    animation-delay: -18s;   /* 270/360 * 24s = 18s offset */
    animation-duration: 24s;
    background: #ffb300 !important;
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.9), 0 0 22px rgba(255, 179, 0, 0.3) !important;
}
.om-dot-top:focus {
    outline: 2px solid #ffb300 !important;
}
.om-dot-top:hover,
.om-dot-top.om-dot-active {
    box-shadow: 0 0 28px rgba(255, 179, 0, 1), 0 0 55px rgba(255, 179, 0, 0.5) !important;
}
[data-theme="light"] .om-dot-top {
    background: #ff8f00 !important;
    border: 1.5px solid #0d1f2d !important;
    box-shadow: 0 0 12px rgba(255, 143, 0, 0.9), 0 0 4px rgba(13, 31, 45, 0.3) !important;
}
[data-theme="light"] .om-dot-top:hover,
[data-theme="light"] .om-dot-top.om-dot-active {
    box-shadow: 0 0 24px rgba(255, 143, 0, 1), 0 0 45px rgba(255, 143, 0, 0.4) !important;
}

.om-dot-right  {
    animation-name: orbit-dot;
    animation-delay: 0s;     /* 0/360 * 24s = 0 */
    animation-duration: 24s;
}
.om-dot-bottom {
    animation-name: orbit-dot;
    animation-delay: -6s;    /* 90/360 * 24s = 6s offset */
    animation-duration: 24s;
}
.om-dot-left   {
    animation-name: orbit-dot;
    animation-delay: -12s;   /* 180/360 * 24s = 12s offset */
    animation-duration: 24s;
}

/* Orbit: spin at 160px radius. Counter-rotate the dot itself so it
   stays upright (not tumbling). */
@keyframes orbit-dot {
    from { transform: rotate(0deg)   translateX(160px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}

/* Pulsing ring around each dot for interactivity cue */
.om-dot::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 212, 255, 0.5);
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    animation: dot-pulse-ring 2.8s ease-out infinite;
    pointer-events: none;
}

[data-theme="light"] .om-dot::after {
    border-color: rgba(0, 120, 170, 0.5);
}

@keyframes dot-pulse-ring {
    0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.8; }
    70%  { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* Stagger ring pulse per dot position */
.om-dot-top::after    {
    animation-delay: 0s;
    border-color: rgba(255, 179, 0, 0.65) !important;
}
[data-theme="light"] .om-dot-top::after {
    border-color: rgba(255, 143, 0, 0.6) !important;
}
.om-dot-right::after  { animation-delay: 0.7s; }
.om-dot-bottom::after { animation-delay: 1.4s; }
.om-dot-left::after   { animation-delay: 2.1s; }

/* ── GLOW ──────────────────────────────────────────────────────── */
.om-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.12) 0%, transparent 70%);
    pointer-events: none;
    transition: background 0.8s ease;
    animation: glow-idle 4s ease-in-out infinite;
}

@keyframes glow-idle {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

.om-orbit:hover .om-glow {
    animation: glow-flame 3s ease-out infinite alternate;
    background: radial-gradient(circle,
        rgba(255, 180, 50, 0.45) 0%,
        rgba(220, 140, 20, 0.20) 40%,
        transparent 75%
    );
}

@keyframes glow-flame {
    0%   { transform: scale(1);    opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; }
}

/* ── LOGO IMAGE ────────────────────────────────────────────────── */
.om-logo-img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 4;
    /* 3D depth layered shadow: ambient blue glow + downward cast shadow */
    filter:
        drop-shadow(0 12px 28px rgba(0, 0, 0, 0.70))
        drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 30px rgba(0, 188, 212, 0.22));
    transition: filter 1.2s ease;
}

.om-orbit:hover .om-logo-img {
    filter:
        drop-shadow(0 18px 38px rgba(0, 0, 0, 0.80))
        drop-shadow(0 0 60px rgba(230, 185, 35, 0.70))
        drop-shadow(0 0 25px rgba(255, 210, 60, 0.40));
}

/* ── PARTICLES ─────────────────────────────────────────────────── */
.om-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(0, 188, 212, 0.3)  60%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 6;
    opacity: 0;
}

@keyframes particle-float {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.5); }
    20%  { opacity: 0.9; }
    80%  { opacity: 0.6; }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.4); }
}

/* ── RIGHT PANEL ─────────────────────────────────────────────────── */
.om-right-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 64px 0 24px;
    gap: 18px;
    overflow: hidden;
}

.om-tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

[data-theme="light"] .om-tagline {
    color: rgba(13, 31, 45, 0.45);
}

.om-tagline-icon { font-size: 16px; }

.om-title {
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--om-font-sans);
}

[data-theme="light"] .om-title {
    color: #0d1f2d;
}

.om-title span { color: #00d4ff; }
[data-theme="light"] .om-title span { color: #b38b00; }

.om-description {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    max-width: 300px;
}

[data-theme="light"] .om-description {
    color: rgba(13, 31, 45, 0.55);
}

.om-cta-btn {
    display: inline-block;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    align-self: flex-start;
}

.om-cta-btn:hover {
    background: #00d4ff;
    color: #000;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    text-decoration: none;
}

[data-theme="light"] .om-cta-btn {
    border-color: rgba(179, 139, 0, 0.3);
    color: #0d1f2d;
}

[data-theme="light"] .om-cta-btn:hover {
    background: #b38b00;
    color: #ffffff;
    border-color: #b38b00;
}

/* Current Issue Teaser */
.om-current-issue-teaser {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .om-current-issue-teaser {
    border-top-color: rgba(179, 139, 0, 0.1);
}

.om-ci-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .om-ci-label {
    color: rgba(13, 31, 45, 0.35);
}

.om-ci-link {
    font-size: 12px;
    color: #00d4ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.om-ci-thumb {
    width: 40px;
    height: 32px;
    object-fit: cover;
    border-radius: 2px;
    opacity: 0.8;
}

.om-ci-archive {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.om-ci-archive:hover {
    color: #00d4ff;
}

/* ── WATERMARK TICKER ───────────────────────────────────────────── */
.om-watermark {
    grid-column: 1 / -1;
    text-align: right;
    padding: 6px 64px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    letter-spacing: 0.5px;
}

[data-theme="light"] .om-watermark {
    color: rgba(13, 31, 45, 0.25);
    border-top-color: rgba(179, 139, 0, 0.06);
}

.om-watermark a {
    color: rgba(255, 255, 255, 0.3);
}

.om-watermark a:hover {
    color: #00d4ff;
}

/* ── BOTTOM STRIP ─────────────────────────────────────────────────── */
.om-bottom {
    background: rgba(10, 14, 22, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 160px;
    max-height: 220px;
    position: relative;
    flex-shrink: 0;
}

[data-theme="light"] .om-bottom {
    background: rgba(248, 245, 230, 0.8);
    border-top-color: rgba(179, 139, 0, 0.1);
}

.om-bottom-section {
    padding: 18px 28px;
    overflow: hidden;
}

.om-bottom-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
}

[data-theme="light"] .om-bottom-label {
    color: rgba(13, 31, 45, 0.35);
}

.om-pub-item {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
}

.om-pub-item strong a {
    color: #00d4ff;
    text-decoration: none;
}

.om-pub-item strong a:hover {
    text-decoration: underline;
}

[data-theme="light"] .om-pub-item strong a {
    color: #b38b00;
}

.om-pub-meta {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

[data-theme="light"] .om-pub-meta {
    color: rgba(13, 31, 45, 0.4);
}

.om-pub-all {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.om-pub-all:hover { color: #00d4ff; }

.om-bottom-photo {
    width: 200px;
    overflow: hidden;
}

.om-bottom-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
}

.om-highlights-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

[data-theme="light"] .om-highlights-name {
    color: #0d1f2d;
}

.om-highlights-name span {
    color: #00d4ff;
}

[data-theme="light"] .om-highlights-name span {
    color: #b38b00;
}

.om-highlights-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    margin-bottom: 8px;
}

[data-theme="light"] .om-highlights-text {
    color: rgba(13, 31, 45, 0.5);
}

.om-highlights-link {
    font-size: 12px;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
}

.om-highlights-link:hover { text-decoration: underline; }

[data-theme="light"] .om-highlights-link {
    color: #b38b00;
}

.om-additional-content {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.om-sparkle {
    display: none; /* Removed per design — was decorative star bottom-right */
}

[data-theme="light"] .om-sparkle {
    display: none;
}


/* ── CTA SUBMISSION BANNER ─────────────────────────────────────────── */
.om-cta-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 32px;
    background: rgba(0, 188, 212, 0.10);
    border-bottom: 1px solid rgba(0, 212, 255, 0.25);
    position: relative;
    flex-shrink: 0;
}

[data-theme="light"] .om-cta-banner {
    background: rgba(179, 139, 0, 0.08);
    border-bottom-color: rgba(179, 139, 0, 0.22);
}

.om-cta-banner-text {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-theme="light"] .om-cta-banner-text {
    color: rgba(13, 31, 45, 0.75);
}

.om-cta-banner-link {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
    margin-left: 8px;
    animation: cta-pulse 2.2s ease-in-out infinite;
}

[data-theme="light"] .om-cta-banner-link {
    border-color: #b38b00;
    color: #b38b00;
}

.om-cta-banner-link:hover {
    background: #00d4ff;
    color: #000;
    text-decoration: none;
}

[data-theme="light"] .om-cta-banner-link:hover {
    background: #b38b00;
    color: #fff;
}

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
    50%       { box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.2); }
}

.om-cta-banner-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.om-cta-banner-close:hover { color: #00d4ff; }

[data-theme="light"] .om-cta-banner-close {
    color: rgba(13, 31, 45, 0.35);
}

.om-cta-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    animation: cta-dot-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

[data-theme="light"] .om-cta-pulse { background: #b38b00; }

@keyframes cta-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.6); }
}

/* ── ORBIT DOTS as LINKS ────────────────────────────────────────── */
.om-dot-cta {
    display: block;
    text-decoration: none;
    /* Override span positioning so anchor keeps proper dot look */
}

.om-dot-cta:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 1);
}

[data-theme="light"] .om-dot-cta:hover {
    box-shadow: 0 0 20px rgba(179, 139, 0, 0.8);
}

/* ── BOTTOM SUBMIT SECTION ─────────────────────────────────────── */
.om-bottom-submit-desc {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}

[data-theme="light"] .om-bottom-submit-desc {
    color: rgba(13, 31, 45, 0.5);
}

.om-bottom-cta {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
}

.om-bottom-cta:hover {
    background: #00d4ff;
    color: #000;
    text-decoration: none;
}

[data-theme="light"] .om-bottom-cta {
    border-color: rgba(179, 139, 0, 0.4);
    color: #b38b00;
}

[data-theme="light"] .om-bottom-cta:hover {
    background: #b38b00;
    color: #fff;
}

.om-bottom-contact {
    margin-top: 8px;
    font-size: 11px;
}

.om-bottom-contact a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.om-bottom-contact a:hover { color: #00d4ff; }

[data-theme="light"] .om-bottom-contact a {
    color: rgba(13, 31, 45, 0.4);
}

[data-theme="light"] .om-bottom-contact a:hover { color: #b38b00; }

/* ── CONTACT INFO in RIGHT PANEL ────────────────────────────────── */
.om-contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    margin-top: -4px;
}

.om-contact-icon {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

[data-theme="light"] .om-contact-icon { color: rgba(13, 31, 45, 0.3); }

.om-contact-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    letter-spacing: 0.3px;
    font-style: italic;
    transition: color 0.2s;
}

.om-contact-link:hover { color: #00d4ff; }

[data-theme="light"] .om-contact-link {
    color: rgba(13, 31, 45, 0.45);
}

[data-theme="light"] .om-contact-link:hover { color: #b38b00; }

.om-sparkle {
    display: none;
}

[data-theme="light"] .om-sparkle {
    display: none;
}

/* ── HOMEPAGE MOBILE ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .om-cta-banner { flex-wrap: wrap; padding: 8px 16px 8px 24px; gap: 8px; }
    .om-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        overflow: auto;
    }
    .om-left-panel  { padding: 24px 20px 0; justify-content: flex-start; }
    .om-center      { padding: 30px 0; min-height: 360px; }
    .om-right-panel { padding: 0 20px 24px; }
    .om-orbit       { width: 300px; height: 300px; }
    .om-logo-img    { max-width: 80%; max-height: 80%; }
    .om-ring-1      { width: 200px; height: 200px; }
    .om-ring-2      { width: 250px; height: 250px; }
    .om-ring-3      { width: 290px; height: 290px; }
    .om-glow        { width: 290px; height: 290px; }
    .om-bottom      { grid-template-columns: 1fr; max-height: none; }
    .om-watermark   { padding: 6px 20px; }
}

/* ── 11. COMPLETE LIGHT/DARK THEME OVERRIDES ─────────────────────── */
html[data-theme="light"] body,
html[data-theme="light"] .pkp_structure_page {
  background: linear-gradient(135deg, #f0f2f7 0%, #e8ecf4 50%, #f5f6fa 100%) !important;
  color: #1a1f2e !important;
}

html[data-theme="light"] .om-content {
  background: linear-gradient(135deg, #eef1f8 0%, #e4e9f2 100%) !important;
}

html[data-theme="light"] .om-center {
  background: linear-gradient(135deg, #dce3f0 0%, #e8ecf7 100%) !important;
  border-left: 1px solid rgba(28, 58, 94, 0.12) !important;
  border-right: 1px solid rgba(28, 58, 94, 0.12) !important;
}

html[data-theme="light"] .om-glow {
  background: radial-gradient(circle, rgba(160, 140, 110, 0.18) 0%, transparent 70%) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .om-orbit-ring {
  border-color: rgba(28, 58, 94, 0.15) !important;
}

html[data-theme="light"] .om-orbit-node {
  background: #a08c6e !important;
  box-shadow: 0 0 8px rgba(160, 140, 110, 0.6) !important;
}

html[data-theme="light"] .om-orbit-node.om-node-orange {
  background: #b38b00 !important;
  box-shadow: 0 0 12px rgba(179, 139, 0, 0.6) !important;
}

html[data-theme="light"] .om-left-panel,
html[data-theme="light"] .om-right-panel {
  background: transparent !important;
}

html[data-theme="light"] .om-left-panel { border-right: 1px solid rgba(28, 58, 94, 0.1) !important; }
html[data-theme="light"] .om-right-panel { border-left: 1px solid rgba(28, 58, 94, 0.1) !important; }

html[data-theme="light"] .om-hero-sup, html[data-theme="light"] .om-hero-sub { color: rgba(28, 58, 94, 0.65) !important; }
html[data-theme="light"] .om-hero-title { color: #1a1f2e !important; text-shadow: none !important; }

html[data-theme="light"] .om-submit-btn { border-color: #1c3a5e !important; color: #1c3a5e !important; background: transparent !important; }
html[data-theme="light"] .om-submit-btn:hover { background: #1c3a5e !important; color: #fff !important; text-decoration: none !important; }

/* Explicit Scope for Dark defaults so they don't block Light overrides */
html:not([data-theme="light"]) .om-bottom { background: rgba(255, 255, 255, 0.03) !important; }
html:not([data-theme="light"]) .om-recent-pubs { background: rgba(255, 255, 255, 0.02) !important; }
html:not([data-theme="light"]) .om-pub-title a { color: var(--om-cyan) !important; }
html:not([data-theme="light"]) .om-pub-meta { color: var(--om-text-secondary) !important; }

/* Proper light mode overrides for the publications strip */
html[data-theme="light"] .om-bottom { background: rgba(248, 245, 230, 0.8) !important; border-top-color: rgba(179, 139, 0, 0.1) !important; }
html[data-theme="light"] .om-recent-pubs { background: rgba(240, 235, 220, 0.5) !important; }
html[data-theme="light"] .om-pub-title a { color: #b38b00 !important; }
html[data-theme="light"] .om-pub-meta { color: rgba(13, 31, 45, 0.5) !important; }

html[data-theme="light"] .pkp_structure_head, html[data-theme="light"] .om-header { background: rgba(240, 242, 247, 0.95) !important; border-bottom-color: rgba(28, 58, 94, 0.12) !important; }
html[data-theme="light"] .pkp_navigation_primary a, html[data-theme="light"] .pkp_nav_primary a { color: #1a1f2e !important; }
html[data-theme="light"] .pkp_navigation_primary a:hover, html[data-theme="light"] .pkp_nav_primary a:hover { color: #1c3a5e !important; }
html[data-theme="light"] .om-site-name { color: #1a1f2e !important; }
html[data-theme="light"] .om-site-tagline { color: rgba(28, 58, 94, 0.6) !important; }
html[data-theme="light"] .pkp_search_field input { background: rgba(28, 58, 94, 0.07) !important; color: #1a1f2e !important; border-color: rgba(28, 58, 94, 0.2) !important; }
html[data-theme="light"] .om-watermark { background: rgba(240, 242, 247, 0.9) !important; border-top-color: rgba(28, 58, 94, 0.08) !important; color: rgba(28, 58, 94, 0.35) !important; }
html[data-theme="light"] .om-watermark a { color: rgba(28, 58, 94, 0.35) !important; }
html[data-theme="light"] .om-login-card, html[data-theme="light"] .pkp_login_form { background: rgba(240, 242, 247, 0.96) !important; border-color: rgba(28, 58, 94, 0.15) !important; }
html[data-theme="light"] .om-login-title, html[data-theme="light"] .om-login-brand { color: #1a1f2e !important; }
html[data-theme="light"] .om-login-subtitle { color: rgba(28, 58, 94, 0.6) !important; }

