/* ============================================================
   Shared styles for akashnarayan.com
   Common base used by index.html and paradigm-shift.html.
   Page-specific rules (hero variant, dark mode, FAB panel,
   publications, PDF viewer) live in each page's inline <style>.
   ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --gold:        #ffffff;
      --gold-light:  #ffffff;
      --gold-dark:   #888888;
      --bg:          #080808;
      --surface:     #0f0f0f;
      --surface-2:   #161616;
      --border:      rgba(255,255,255,0.09);
      --border-gold: rgba(255,255,255,0.2);
      --text:        #f5f5f5;
      --text-muted:  #888888;
      --text-faint:  #444444;
      --ff-serif:    'Cormorant Garamond', Georgia, serif;
      --ff-sans:     'Inter', system-ui, sans-serif;
      --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
      --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    }

    html { scroll-behavior: smooth; font-size: 16px; }

    body {
      font-family: var(--ff-sans);
      line-height: 1.7;
      color: var(--text);
      background: var(--bg);
      overflow-x: hidden;
    }

    ::-webkit-scrollbar { width: 2px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: #555; }

    /* ── Site Header ── */
    .site-header {
      position: fixed;
      inset: 0 0 auto 0;
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.4rem 2rem;
      opacity: 0;
      transform: translate3d(0, -8px, 0);
      pointer-events: none;
      transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
                  backdrop-filter 0.4s var(--ease-out), -webkit-backdrop-filter 0.4s var(--ease-out);
      border-bottom: 1px solid transparent;
      will-change: transform, opacity;
    }

    .site-header.visible {
      pointer-events: auto;
      background: rgba(8,8,8,0.88);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border-bottom-color: var(--border);
    }

    .site-header-name {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.05rem;
      font-weight: 300;
      letter-spacing: 0.48em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.88);
      text-decoration: none;
    }

    /* ── Hero ── */
    .hero {
      position: relative;
      height: 100vh;
      min-height: 680px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .hero-bg {
      inset: 0;
      background-size: cover;
      background-position: center 15%;
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to bottom, rgba(8,8,8,0.72) 0%, transparent 18%),
        radial-gradient(ellipse 90% 75% at 50% 42%, rgba(8,8,8,0.08) 0%, rgba(8,8,8,0.48) 55%, rgba(8,8,8,0.90) 100%),
        linear-gradient(to top, rgba(8,8,8,1.00) 0%, rgba(8,8,8,0.10) 22%, transparent 45%);
    }

    .hero-center {
      position: relative;
      z-index: 2;
      text-align: center;
      width: 100%;
      padding: 0 2rem;
      margin-top: -4rem;
    }

    .hero-center-name {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: clamp(2.2rem, 5vw, 4.2rem);
      font-weight: 300;
      letter-spacing: 0.55em;
      text-transform: uppercase;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.82);
      text-shadow:
        0 0 60px  rgba(255, 255, 255, 0.14),
        0 0 140px rgba(255, 255, 255, 0.06),
        0 2px 24px rgba(0, 0, 0, 0.6);
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 1.4s var(--ease-out) 0.4s forwards;
    }

    .hero-scroll {
      position: absolute;
      bottom: 2.75rem;
      right: 3.5rem;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.6rem;
      opacity: 0;
      animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
    }

    .hero-scroll-label {
      font-size: 0.62rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--text-faint);
      writing-mode: vertical-rl;
    }

    .scroll-track {
      width: 1px;
      height: 64px;
      background: var(--border);
      position: relative;
      overflow: hidden;
    }

    .scroll-track::after {
      content: '';
      position: absolute;
      left: 0;
      width: 100%;
      height: 50%;
      background: linear-gradient(to bottom, transparent, var(--gold));
      animation: scrollDrop 1.6s ease-in-out infinite;
    }

    /* ── Animations ── */
    @keyframes fadeUp {
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes scrollDrop {
      0%   { top: -60%; }
      100% { top: 110%; }
    }

    @media (max-width: 768px) {
      .hero-center { padding: 0 1.5rem; margin-top: -3rem; }
      .hero-scroll { right: 1.5rem; }
    }

    @media (max-width: 480px) {
      .hero-center-name { font-size: 1.9rem; letter-spacing: 0.4em; }
      .site-header-name { font-size: 0.85rem; letter-spacing: 0.36em; }
    }


    /* ══════════════════════════════════════════
       WIKI BODY - everything below the hero
       ══════════════════════════════════════════ */

    .wiki-body {
      background: #f8f9fa;
      color: #202122;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      font-size: 14px;
      line-height: 1.6;
    }

    .wiki-outer {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0;
    }

    /* ── Vector 2022 tab bar ── */
    .wiki-tabs-bar {
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      background: #f8f9fa;
      border-bottom: 1px solid #a2a9b1;
      padding: 0 0.75rem;
      padding-top: 1.5rem;
      font-size: 0.82rem;
    }

    .wiki-tabs-left,
    .wiki-tabs-right {
      display: flex;
      align-items: flex-end;
      gap: 0;
    }

    .wiki-tab {
      padding: 0.38rem 0.85rem;
      font-size: 0.82rem;
      color: #3366cc;
      background: #ffffff;
      border: 1px solid #a2a9b1;
      border-bottom: 1px solid #ffffff;
      cursor: default;
      margin-bottom: -1px;
      margin-right: 2px;
      text-decoration: none;
      display: inline-block;
      line-height: 1.45;
    }

    .wiki-tab-inactive {
      background: #eaecf0;
      border-bottom-color: #a2a9b1;
      color: #3366cc;
      cursor: pointer;
    }

    .wiki-tab-inactive:hover { background: #e0e2e6; }

    .wiki-action-tab {
      padding: 0.38rem 0.65rem;
      font-size: 0.82rem;
      color: #3366cc;
      cursor: pointer;
      display: inline-block;
      line-height: 1.45;
      text-decoration: none;
      border: 1px solid transparent;
      border-bottom: none;
      margin-bottom: -1px;
    }

    .wiki-action-tab:hover { text-decoration: underline; }

    .wiki-action-active {
      color: #202122;
      cursor: default;
      background: #ffffff;
      border-color: #a2a9b1;
      border-bottom-color: #ffffff;
    }

    .wiki-action-active:hover { text-decoration: none; }

    /* ── Vector 2022 layout: sidebar + article ── */
    .wiki-layout {
      display: flex;
      align-items: flex-start;
      background: #ffffff;
      border: 1px solid #a2a9b1;
      border-top: none;
    }

    /* Left TOC sidebar */
    .wiki-toc-sidebar {
      width: 196px;
      min-width: 196px;
      flex-shrink: 0;
      padding: 1.25rem 0.85rem 1.25rem 1rem;
      border-right: 1px solid #eaecf0;
      position: sticky;
      top: 4.4rem;
      max-height: calc(100vh - 4.4rem);
      overflow-y: auto;
      background: #ffffff;
    }

    /* Main article area */
    .wiki-article {
      flex: 1;
      min-width: 0;
      background: #ffffff;
      padding: 1.25rem 2rem 2rem;
    }

    /* Page title */
    .wiki-page-title {
      font-family: 'Linux Libertine O', 'Linux Libertine', Georgia, Times, serif;
      font-size: 1.95rem;
      font-weight: normal;
      border-bottom: 1px solid #a2a9b1;
      padding-bottom: 0.2rem;
      margin-bottom: 0.25rem;
      color: #000;
      line-height: 1.3;
    }

    /* "From akashnarayan.com" attribution */
    .wiki-from-line {
      font-size: 0.8rem;
      color: #54595d;
      font-style: italic;
      margin-bottom: 0.85rem;
    }

    /* Infobox - floats right */
    .wiki-infobox {
      float: right;
      clear: right;
      margin: 0 0 1rem 2rem;
      border: 1px solid #a2a9b1;
      background: #f8f9fa;
      font-size: 0.825rem;
      width: 260px;
      line-height: 1.5;
    }

    .wiki-infobox-title {
      background: #cee0f2;
      text-align: center;
      font-weight: bold;
      padding: 0.4rem 0.6rem;
      font-size: 0.875rem;
      color: #000;
    }

    .wiki-infobox img {
      width: 100%;
      display: block;
      border-bottom: 1px solid #a2a9b1;
    }

    .wiki-infobox-caption {
      text-align: center;
      font-size: 0.75rem;
      color: #54595d;
      padding: 0.3rem 0.5rem 0.4rem;
      border-bottom: 1px solid #a2a9b1;
      background: #f8f9fa;
      font-style: italic;
    }

    .wiki-infobox table {
      width: 100%;
      border-collapse: collapse;
    }

    .wiki-infobox table tr {
      border-bottom: 1px solid #eaecf0;
    }

    .wiki-infobox table tr:last-child {
      border-bottom: none;
    }

    .wiki-infobox table th {
      padding: 0.3rem 0.5rem;
      font-weight: bold;
      color: #54595d;
      text-align: left;
      vertical-align: top;
      white-space: nowrap;
      background: #f8f9fa;
      font-size: 0.78rem;
    }

    .wiki-infobox table td {
      padding: 0.3rem 0.5rem;
      color: #202122;
      font-size: 0.8rem;
      vertical-align: top;
    }

    .wiki-infobox table td a {
      color: #3366cc;
      text-decoration: none;
    }

    .wiki-infobox table td a:hover {
      text-decoration: underline;
    }

    /* Lead text */
    .wiki-lead {
      font-size: 0.9375rem;
      line-height: 1.65;
      color: #202122;
      margin-bottom: 0.85rem;
      overflow-wrap: break-word;
    }

    .wiki-lead b {
      font-weight: bold;
    }

    /* Wiki links */
    .wiki-link {
      color: #3366cc;
      text-decoration: none;
    }

    .wiki-link:hover {
      text-decoration: underline;
    }

    .wiki-link:visited {
      color: #3366cc;
    }

    /* ── TOC (in sidebar) ── */
    .wiki-toc {
      background: transparent;
      border: none;
      padding: 0;
      margin: 0;
      font-size: 0.85rem;
    }

    .wiki-toc-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.55rem;
      padding-bottom: 0.4rem;
      border-bottom: 1px solid #eaecf0;
    }

    .wiki-toc-title {
      font-weight: bold;
      font-size: 0.875rem;
      color: #202122;
    }

    .wiki-toc-toggle {
      color: #3366cc;
      font-size: 0.78rem;
      cursor: pointer;
      text-decoration: none;
    }

    .wiki-toc-toggle:hover { text-decoration: underline; }

    .wiki-toc ol {
      padding-left: 1rem;
      margin: 0;
      list-style: none;
    }

    .wiki-toc ol ol {
      padding-left: 0.85rem;
    }

    .wiki-toc li {
      margin: 0.25rem 0;
      line-height: 1.45;
    }

    .wiki-toc a {
      color: #3366cc;
      text-decoration: none;
      font-size: 0.82rem;
    }

    .wiki-toc a:hover { text-decoration: underline; }

    .toc-num {
      color: #54595d;
      margin-right: 0.2rem;
      font-size: 0.78rem;
    }

    /* Section headings */
    .wiki-h2 {
      font-family: 'Linux Libertine O', 'Linux Libertine', Georgia, Times, serif;
      font-size: 1.375rem;
      font-weight: normal;
      border-bottom: 1px solid #a2a9b1;
      padding-bottom: 0.2rem;
      margin: 1.5rem 0 0.6rem;
      color: #000;
      line-height: 1.3;
      display: flex;
      align-items: baseline;
      gap: 0.5rem;
    }

    .wiki-h2-text { flex: 1; }



    .wiki-h3 {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      font-size: 1.05rem;
      font-weight: bold;
      margin: 1rem 0 0.45rem;
      color: #202122;
    }

    .wiki-h4 {
      font-size: 0.9rem;
      font-weight: bold;
      margin: 0.75rem 0 0.3rem;
      color: #54595d;
    }

    /* Body paragraphs */
    .wiki-p {
      font-size: 0.9375rem;
      line-height: 1.65;
      color: #202122;
      margin-bottom: 0.75rem;
      overflow-wrap: break-word;
    }

    .wiki-p:last-child { margin-bottom: 0; }

    /* Wiki tables */
    .wiki-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.85rem;
      margin: 0.75rem 0;
    }

    .wiki-table th {
      background: #eaecf0;
      border: 1px solid #a2a9b1;
      padding: 0.4rem 0.6rem;
      text-align: left;
      font-weight: bold;
      color: #202122;
    }

    .wiki-table td {
      border: 1px solid #a2a9b1;
      padding: 0.4rem 0.6rem;
      vertical-align: top;
      color: #202122;
    }

    .wiki-table tr:nth-child(even) td {
      background: #f8f9fa;
    }

    .wiki-table .year-col {
      white-space: nowrap;
      color: #54595d;
      font-size: 0.8rem;
      width: 130px;
    }

    .wiki-table .org-col {
      font-weight: 500;
    }

    /* Stats hatnote-style */
    .wiki-hatnote {
      padding: 0.3rem 0.6rem 0.3rem 2rem;
      margin-bottom: 0.75rem;
      font-size: 0.85rem;
      color: #54595d;
      font-style: italic;
      border-left: 3px solid #a2a9b1;
      background: #f8f9fa;
    }

    /* Award list */
    .wiki-ol {
      padding-left: 2rem;
      margin: 0.4rem 0 0.75rem;
      list-style: decimal;
    }

    .wiki-ol li {
      font-size: 0.9375rem;
      color: #202122;
      margin-bottom: 0.4rem;
      line-height: 1.5;
    }

    .wiki-ul {
      padding-left: 2rem;
      margin: 0.4rem 0 0.75rem;
      list-style: disc;
    }

    .wiki-ul li {
      font-size: 0.9375rem;
      color: #202122;
      margin-bottom: 0.35rem;
      line-height: 1.5;
      overflow-wrap: break-word;
    }

    /* Language table */
    .wiki-lang-table {
      border-collapse: collapse;
      font-size: 0.85rem;
      margin: 0.4rem 0 0.75rem;
    }

    .wiki-lang-table td {
      padding: 0.25rem 0.75rem 0.25rem 0;
      vertical-align: middle;
      color: #202122;
    }

    .wiki-lang-dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      margin-right: 0.4rem;
      vertical-align: middle;
    }

    .wiki-lang-dot.native       { background: #202122; }
    .wiki-lang-dot.professional { background: #54595d; }
    .wiki-lang-dot.working      { background: #a2a9b1; }
    .wiki-lang-dot.elementary   { background: #d8dde5; border: 1px solid #a2a9b1; }

    .wiki-lang-name { font-weight: bold; color: #202122; }
    .wiki-lang-level { color: #54595d; font-size: 0.8rem; }

    /* Publication box */
    .wiki-ref-box {
      border: 1px solid #a2a9b1;
      background: #f8f9fa;
      padding: 0.75rem 1rem;
      margin: 0.6rem 0 1rem;
      font-size: 0.875rem;
    }

    .wiki-ref-box cite {
      font-style: italic;
      font-size: 0.95rem;
      color: #202122;
      font-weight: 500;
    }

    .wiki-ref-type {
      font-size: 0.75rem;
      color: #3366cc;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.25rem;
    }

    .wiki-ref-desc {
      margin-top: 0.3rem;
      color: #54595d;
      font-size: 0.83rem;
      line-height: 1.5;
    }



    /* External links section */
    .wiki-extlinks {
      font-size: 0.9375rem;
    }

    .wiki-extlinks a {
      color: #3366cc;
      text-decoration: none;
      font-weight: 500;
    }

    .wiki-extlinks a:hover { text-decoration: underline; }

    .wiki-extlinks li {
      margin-bottom: 0.3rem;
    }

    /* Wiki footer */
    .wiki-footer {
      background: #eaecf0;
      border-top: 1px solid #a2a9b1;
      padding: 1rem 2rem;
      font-size: 0.78rem;
      color: #54595d;
      text-align: center;
      line-height: 1.8;
    }

    .wiki-footer a {
      color: #3366cc;
      text-decoration: none;
    }

    .wiki-footer a:hover { text-decoration: underline; }

    .wiki-footer-links {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.5rem 1.25rem;
      margin-bottom: 0.5rem;
      list-style: none;
    }

    .wiki-footer-links li::before {
      content: '·';
      margin-right: 1.25rem;
    }

    .wiki-footer-links li:first-child::before {
      display: none;
    }

    /* Connect section styled as wiki notice */
    .wiki-connect-notice {
      background: #eaf3fb;
      border: 1px solid #a2a9b1;
      border-left: 4px solid #3366cc;
      padding: 0.85rem 1rem;
      font-size: 0.9rem;
      margin: 0.75rem 0;
      color: #202122;
    }

    .wiki-connect-notice strong { color: #000; }

    .wiki-connect-primary {
      display: inline-block;
      background: #3366cc;
      color: #fff !important;
      padding: 0.45rem 1.1rem;
      font-size: 0.85rem;
      font-weight: 600;
      text-decoration: none !important;
      margin-top: 0.5rem;
      border-radius: 2px;
    }

    .wiki-connect-primary:hover {
      background: #2a55aa !important;
    }

    /* Hobby grid */
    .wiki-hobby-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: #a2a9b1;
      border: 1px solid #a2a9b1;
      margin: 0.6rem 0;
    }

    .wiki-hobby-item {
      background: #f8f9fa;
      padding: 0.65rem 0.75rem;
      font-size: 0.82rem;
    }

    .wiki-hobby-item strong {
      display: block;
      color: #202122;
      margin-bottom: 0.15rem;
    }

    .wiki-hobby-item span {
      color: #54595d;
      font-size: 0.76rem;
    }

    /* Award cards wiki style */
    .wiki-award-list {
      list-style: none;
      padding: 0;
      margin: 0.4rem 0;
    }

    .wiki-award-list li {
      display: flex;
      gap: 0.75rem;
      align-items: flex-start;
      padding: 0.6rem 0;
      border-bottom: 1px solid #eaecf0;
    }

    .wiki-award-list li:last-child { border-bottom: none; }

    .wiki-award-num {
      color: #a2a9b1;
      font-family: 'Linux Libertine O', Georgia, serif;
      font-size: 1.1rem;
      min-width: 1.5rem;
      font-weight: bold;
      margin-top: 0.1rem;
    }

    .wiki-award-details {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }

    .wiki-award-title {
      color: #202122;
      font-weight: 500;
      font-size: 0.92rem;
    }

    .wiki-award-meta {
      color: #54595d;
      font-size: 0.8rem;
    }

    .wiki-award-assoc {
      color: #72777d;
      font-size: 0.78rem;
    }

    .wiki-award-desc {
      color: #54595d;
      font-size: 0.8rem;
      margin-top: 0.2rem;
    }

    .wiki-award-layout {
      display: flex;
      gap: 1.5rem;
      align-items: flex-start;
    }

    .wiki-award-layout .wiki-award-list {
      flex: 1 1 auto;
      min-width: 0;
    }

    .wiki-award-media-col {
      flex: 0 0 280px;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .wiki-award-figure {
      flex: 0 0 280px;
      margin: 0;
    }

    .wiki-award-figure img {
      width: 100%;
      height: auto;
      border: 1px solid #c8ccd0;
      border-radius: 2px;
      display: block;
    }

    .wiki-award-figure figcaption {
      color: #54595d;
      font-size: 0.78rem;
      margin-top: 0.35rem;
      line-height: 1.4;
    }

    .wiki-para-with-image {
      display: flex;
      align-items: flex-start;
      gap: 1.2rem;
    }

    .wiki-para-with-image .wiki-p {
      flex: 1;
      margin: 0;
    }

    .wiki-inline-figure {
      flex: 0 0 260px;
      margin: 0;
    }

    .wiki-inline-figure img {
      width: 100%;
      height: auto;
      border: 1px solid #c8ccd0;
      border-radius: 2px;
      display: block;
    }

    .wiki-inline-figure figcaption {
      color: #54595d;
      font-size: 0.78rem;
      margin-top: 0.35rem;
      line-height: 1.4;
    }

    /* ── Video ── */
    .wiki-video {
      width: 100%;
      display: block;
      border: 1px solid #c8ccd0;
      border-radius: 2px;
      background: #000;
    }

    /* Portrait clip from a landscape-encoded source: centered, responsive
       9:16 frame with the video rotated upright inside it. */
    .wiki-video-portrait {
      position: relative;
      width: 270px;
      max-width: 100%;
      aspect-ratio: 9 / 16;
      margin: 0 auto;
      overflow: hidden;
      border: 1px solid #c8ccd0;
      border-radius: 2px;
      background: #000;
    }

    .wiki-video-rotated {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 177.78%; /* 16/9 of frame width → fills the frame once rotated */
      height: auto;
      transform: translate(-50%, -50%) rotate(90deg);
    }

    /* ── Responsive wiki ── */

    @media (max-width: 1024px) {
      .wiki-toc-sidebar { width: 170px; min-width: 170px; }
      .wiki-infobox { width: 220px; }
    }

    @media (max-width: 768px) {
      /* Collapse sidebar - TOC goes inline at top of article */
      .wiki-layout { flex-direction: column; }

      .wiki-toc-sidebar {
        width: 100%;
        min-width: unset;
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #eaecf0;
        padding: 0;
      }

      /* Make the header a large, tappable bar on mobile */
      .wiki-toc-header {
        padding: 0.7rem 1rem;
        cursor: pointer;
        -webkit-user-select: none;
        user-select: none;
      }

      /* Indent the list when expanded on mobile */
      .wiki-toc ol { padding-left: 1.25rem; }
      .wiki-toc ol ol { padding-left: 1rem; }
      #tocList { padding-bottom: 0.5rem; }

      /* Infobox: un-float, full width, full image */
      .wiki-infobox {
        float: none;
        width: auto;
        max-width: 100%;
        margin: 0 0 1.25rem;
      }

      .wiki-infobox img {
        width: 160px;
        height: auto;
        max-height: none;
        object-fit: fill;
        display: block;
        margin: 0 auto;
      }

      .wiki-article { padding: 0.85rem 0.9rem 1.5rem; }

      .wiki-tabs-bar { padding: 0.75rem 0.5rem 0; }

      /* Tables: horizontally scrollable */
      .wiki-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.78rem;
      }

      .wiki-table th,
      .wiki-table td { padding: 0.3rem 0.45rem; }

      .wiki-table .year-col {
        white-space: normal;
        width: 80px;
        font-size: 0.72rem;
      }

      .wiki-hobby-grid { grid-template-columns: repeat(2, 1fr); }

      /* Larger tap targets for TOC links */
      .wiki-toc a { padding-top: 0.35rem; padding-bottom: 0.35rem; }
      .wiki-toc li { margin: 0; }

      /* Footer mobile padding */
      .wiki-footer { padding: 0.85rem 1rem; }

      /* Awards: stack image below list */
      .wiki-award-layout { flex-direction: column; }
      .wiki-award-media-col { flex-basis: auto; width: 100%; }
      .wiki-award-figure {
        flex-basis: auto;
        max-width: 320px;
        margin: 0 auto;
      }

      /* Corporate para+image: stack on mobile */
      .wiki-para-with-image { flex-direction: column; }
      .wiki-inline-figure {
        flex-basis: auto;
        max-width: 320px;
        margin: 0 auto;
      }

      /* Typography */
      .wiki-page-title { font-size: 1.6rem; }
      .wiki-h2         { font-size: 1.15rem; }
      .wiki-h3         { font-size: 0.98rem; }
      .wiki-p,
      .wiki-lead       { font-size: 0.875rem; }
      .wiki-ul li,
      .wiki-ol li      { font-size: 0.875rem; }
    }

    @media (max-width: 480px) {
      .wiki-infobox {
        max-width: 100%;
        margin: 0 0 1rem;
      }

      .wiki-infobox img {
        width: 140px;
        height: auto;
        max-height: none;
        object-fit: fill;
        display: block;
        margin: 0 auto;
      }

      .wiki-hobby-grid { grid-template-columns: repeat(2, 1fr); }

      .wiki-page-title { font-size: 1.3rem; }
      .wiki-h2         { font-size: 1rem; }

      .wiki-article { padding: 0.65rem 0.65rem 1.25rem; }

      .wiki-connect-primary {
        display: block;
        text-align: center;
      }

      .wiki-tabs-right .wiki-action-tab { display: none; }
      .wiki-tabs-right .wiki-action-active { display: inline-block; }
      /* Keep translate globe icon accessible — hide the label text only */
      #translateTrigger { display: inline-flex !important; align-items: center; padding: 0.38rem 0.5rem; }
      .translate-label { display: none; }
    }

    /* ── Translate Dropdown ── */
    .translate-wrapper {
      position: relative;
      display: inline-block;
    }

    .translate-dropdown {
      display: none;
      position: absolute;
      right: 0;
      top: 100%;
      margin-top: 1px;
      background: #ffffff;
      border: 1px solid #a2a9b1;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      z-index: 1000;
      min-width: 150px;
      border-radius: 2px;
      padding: 4px 0;
    }

    .translate-dropdown a {
      display: block;
      padding: 6px 14px;
      color: #3366cc;
      text-decoration: none;
      font-size: 0.8rem;
      text-align: left;
      line-height: 1.4;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    .translate-dropdown a:hover {
      background: #eaecf0;
      color: #202122;
      text-decoration: none;
    }

    /* Clean Google Translate overlay elements */
    .skiptranslate {
      display: none !important;
    }
    body {
      top: 0px !important;
    }
    .goog-te-balloon-frame {
      display: none !important;
    }
