  /* =========================================================================
     news.html — listing + detail
     Aligned to the lime/Geist design system established on index.
     No nested cards. No gradient text. Hairline rules + mono accents.
     ========================================================================= */

  :root {
    --news-f-display: 'Geist', 'PingFang TC', 'Noto Sans TC', system-ui, sans-serif;
    --news-f-body:    'Geist', 'PingFang TC', 'Noto Sans TC', system-ui, sans-serif;
    --news-f-mono:    'Geist Mono', ui-monospace, 'SF Mono', monospace;
    --news-measure:   72ch;
    --news-content-w: min(840px, 100%);
  }

  body {
    font-family: var(--news-f-body);
    background: var(--bg);
    letter-spacing: -0.005em;
  }
  html[lang="zh-Hant"] body,
  html[data-lang="zh"] body { letter-spacing: 0; }

  /* ============ Nav (quieter than the iOS layer) ============ */
  nav.top {
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid var(--rule-2);
  }
  nav.top .row {
    min-height: 56px;
    height: 56px;
    grid-template-columns: 1fr auto !important;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
  }

  /* Mode + lang switches: subtle outline, no fill, no shadow */
  .lang-switch {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--rule-2);
    border-radius: 999px;
    padding: 2px;
    font-family: var(--news-f-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  .lang-switch button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
                background 180ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .lang-switch button:hover { color: var(--ink); }
  .lang-switch button.active {
    color: var(--bg);
    background: var(--ink);
  }
  html[data-mode="light"] .lang-switch button.active {
    color: #fff;
    background: var(--ink);
  }

  .back-link {
    font-family: var(--news-f-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-decoration: none;
    padding: 6px 0;
    transition: color 180ms;
  }
  .back-link:hover { color: var(--accent); }
  html[data-mode="light"] .back-link:hover { color: var(--ink); }

  .home-icon-link {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--rule-2);
    color: var(--ink-2);
    text-decoration: none;
    transition: color 180ms, border-color 180ms;
  }
  .home-icon-link:hover {
    color: var(--ink);
    border-color: var(--ink);
  }

  /* ============ Article layout ============ */
  .news-page-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 56px);
  }

  /* ---- Sidebar (hairline list, no card) ---- */
  .news-sidebar {
    border-right: 1px solid var(--rule-2);
    padding: 56px 0 80px;
    position: sticky;
    top: 56px;
    align-self: start;
    height: calc(100vh - 56px);
    overflow-y: auto;
  }
  .news-sidebar::-webkit-scrollbar { width: 6px; }
  .news-sidebar::-webkit-scrollbar-thumb {
    background: var(--rule-2);
    border-radius: 3px;
  }

  .news-sidebar .sidebar-heading {
    padding: 0 24px 20px;
    font-family: var(--news-f-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.16em;
  }
  .news-sidebar .sidebar-heading::before {
    content: '// ';
    color: var(--accent);
  }

  .news-sidebar .sidebar-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 16px 24px;
    border-top: 1px solid var(--rule-2);
    transition: background 180ms cubic-bezier(0.22, 1, 0.36, 1),
                padding-left 320ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
  }
  .news-sidebar .sidebar-item:hover {
    background: color-mix(in oklab, var(--surface-2) 35%, transparent);
    padding-left: 28px;
  }
  .news-sidebar .sidebar-item.active {
    background: color-mix(in oklab, var(--surface-2) 50%, transparent);
  }
  .news-sidebar .sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
  }
  .news-sidebar .sidebar-item .s-date {
    font-family: var(--news-f-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
  }
  html[data-mode="light"] .news-sidebar .sidebar-item .s-date {
    color: var(--accent);
  }
  .news-sidebar .sidebar-item .s-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ---- Main content ---- */
  .news-main {
    padding: 0 clamp(24px, 4vw, 64px);
    min-width: 0;
  }

  .article-header {
    padding: 64px 0 32px;
    text-align: left;
    border-bottom: 1px solid var(--rule-2);
    max-width: var(--news-content-w);
    margin: 0 auto;
  }
  .article-header::before {
    content: '// 最新消息';
    display: block;
    font-family: var(--news-f-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--ink-3);
    text-transform: uppercase;
    margin-bottom: 24px;
  }

  .article-date {
    font-family: var(--news-f-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    /* explicitly clear the old gradient text approach */
    background: none;
    -webkit-text-fill-color: currentColor;
  }

  .article-title {
    font-family: var(--news-f-display);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.18;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
  }

  .article-body {
    padding: 40px 0 96px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-2);
    max-width: var(--news-content-w);
    margin: 0 auto;
  }
  html[lang="zh-Hant"] .article-body,
  html[data-lang="zh"] .article-body { line-height: 1.85; }
  .article-body p { margin: 0 0 22px; max-width: var(--news-measure); }
  .article-body h2 {
    font-family: var(--news-f-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 40px 0 16px;
  }
  .article-body h3 {
    font-family: var(--news-f-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 12px;
  }
  .article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 180ms;
  }
  .article-body a:hover { color: var(--ink); }
  .article-body img,
  .article-body video {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--rule-2);
  }
  .article-body code {
    font-family: var(--news-f-mono);
    font-size: 0.92em;
    background: var(--surface-2);
    padding: 1px 6px;
    border-radius: 3px;
  }
  .article-body pre {
    font-family: var(--news-f-mono);
    font-size: 13px;
    background: var(--surface-2);
    border: 1px solid var(--rule-2);
    border-radius: 4px;
    padding: 16px 20px;
    overflow-x: auto;
    line-height: 1.55;
  }
  .article-body blockquote {
    margin: 24px 0;
    padding: 8px 20px;
    color: var(--ink);
    background: var(--surface-2);
    border-radius: 4px;
    font-style: normal;
  }
  .article-body ul,
  .article-body ol {
    margin: 0 0 22px;
    padding-left: 1.4em;
    max-width: var(--news-measure);
  }
  .article-body li { margin: 0 0 8px; }

  /* ---- Article CTA ---- */
  .article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 32px;
  }
  .article-body a.article-cta,
  a.article-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 14px 22px;
    border-radius: 4px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-family: var(--news-f-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  a.article-cta::after {
    content: '→';
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  a.article-cta:hover { transform: translateY(-1px); color: #000; }
  a.article-cta:hover::after { transform: translateX(4px); }
  html[data-mode="light"] .article-body a.article-cta,
  html[data-mode="light"] a.article-cta { color: #fff; background: var(--accent); }
  html[data-mode="light"] a.article-cta:hover { color: #fff; }

  /* ---- Article share ---- */
  .article-share {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--rule-2);
  }
  .article-share-title {
    margin-bottom: 14px;
    font-family: var(--news-f-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.16em;
  }
  .article-share-title::before {
    content: '// ';
    color: var(--accent);
  }
  .article-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .share-btn {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--rule-2);
    border-radius: 3px;
    background: transparent;
    color: var(--ink-2);
    text-decoration: none;
    font: 500 12px/1 var(--news-f-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 180ms, border-color 180ms, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .share-btn:hover {
    color: var(--ink);
    border-color: var(--ink);
    transform: translateY(-1px);
  }

  /* ============ Listing view (no ?id) — mirrors the index news-list ============ */
  .listing-header {
    padding: 80px 0 8px;
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: clamp(24px, 4vw, 64px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: clamp(16px, 3vw, 32px);
    border-bottom: 1px solid var(--rule-2);
    padding-bottom: 24px;
  }
  .listing-header::before {
    content: '// 最新消息';
    font-family: var(--news-f-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--accent);
    text-transform: uppercase;
    white-space: nowrap;
  }
  .listing-header h1 {
    margin: 0;
    font-family: var(--news-f-display);
    font-size: clamp(28px, 4.2vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
  .listing-header p {
    margin: 0;
    font-family: var(--news-f-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .listing-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 64px) 120px;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .listing-row {
    display: grid;
    grid-template-columns: 132px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 24px 12px;
    border-bottom: 1px solid var(--rule-2);
    text-decoration: none;
    color: inherit;
    transition: background 180ms, padding-left 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .listing-row:hover {
    background: color-mix(in oklab, var(--surface-2) 35%, transparent);
    padding-left: 24px;
  }
  .listing-row .l-date {
    font-family: var(--news-f-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.04em;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
  .listing-row .l-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
  }
  .listing-row .l-arrow {
    color: var(--ink-3);
    font-family: var(--news-f-mono);
    font-size: 18px;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms;
  }
  .listing-row:hover .l-arrow {
    transform: translateX(6px);
    color: var(--accent);
  }
  html[data-mode="light"] .listing-row:hover .l-arrow { color: var(--ink); }

  /* ============ Footer ============ */
  footer {
    padding: 80px 0 48px;
  }
  html[lang="en"] .article-header::before {
    content: '// NEWS';
  }
  html[lang="en"] .listing-header::before {
    content: '// ARCHIVE';
  }
  footer a {
    text-decoration: none;
    transition: color .2s, opacity .2s;
  }
  footer a:hover {
    opacity: 1;
  }
  footer h4 {
    font-family: var(--news-f-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 0 0 16px;
  }
  footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 48px;
  }
  .footer-lock {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .footer-tagline {
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.6;
    max-width: 38ch;
  }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--rule-2);
    font-family: var(--news-f-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  footer .footer-event-links { display: none; }

  /* ============ Empty / not-found state ============ */
  .msg {
    padding: 200px 0;
    text-align: center;
    color: var(--ink-3);
    font-family: var(--news-f-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
  }
  .msg a {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
  }

  /* ============ Mobile dropdown picker ============ */
  .mobile-picker {
    display: none;
    position: sticky;
    top: 56px;
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--rule-2);
    padding: 12px clamp(20px, 4vw, 32px);
  }
  .mobile-picker label {
    font-family: var(--news-f-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 8px;
  }
  .mobile-picker select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--news-f-body);
    font-size: 14px;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--rule-2);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 180ms;
  }
  .mobile-picker select:focus {
    outline: none;
    border-color: var(--accent);
  }

  /* ============ Responsive ============ */
  @media (max-width: 900px) {
    .news-page-layout {
      grid-template-columns: 1fr;
    }
    .news-sidebar { display: none; }
    .mobile-picker { display: block; position: relative; top: auto; }
    .news-main { padding: 0 24px; }
    .article-header { padding-top: 40px; }

    .listing-header {
      grid-template-columns: 1fr;
      gap: 12px;
      padding-inline: 24px;
    }
    .listing-header h1 { font-size: 36px; }

    nav.top .row {
      display: flex !important;
      justify-content: space-between;
      align-items: center;
      position: relative;
    }
    .nav-right .back-link { display: none !important; }
    .nav-right .lang-switch { display: none; }
    .nav-right .home-icon-link { display: inline-flex !important; }

    .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 40px 24px;
    }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
  }

  @media (max-width: 520px) {
    .news-main { padding: 0 20px; }
    .article-header { padding: 32px 0 24px; }
    .article-title { font-size: clamp(24px, 7vw, 32px); }
    .article-body { padding: 32px 0 80px; font-size: 16px; }
    .listing-row {
      grid-template-columns: 1fr auto;
      gap: 12px;
      padding: 20px 8px;
    }
    .listing-row:hover { padding-left: 16px; }
    .listing-row .l-date { grid-column: 1 / -1; font-size: 12px; }
    .listing-row .l-title { font-size: 15px; }
    .footer-grid { grid-template-columns: 1fr; }
  }
