/* 17c editorial interface: accessible compact news/participation layout */
:root {
  --red: #D92338;
  --red-deep: #ab1c2f;
  --navy: #1A202C;
  --night: #0D1117;
  --paper: #F4F6F9;
  --subtle: #EAEEF3;
  --ink: #1E293B;
  --muted: #64748B;
  --green: #00C853;
  --border: #d8dfe7;
  --white: #fff;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 5px;
  --shadow: 0 1px 3px rgba(18,34,56,.045);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-width: 320px; font-family: var(--font); font-size: 15px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 38px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 14px; z-index: 100; background: #fff; border: 2px solid var(--red); padding: 8px 18px; }
.skip-link:focus { top: 8px; }
.site-header { background: var(--navy); color: #fff; border-bottom: 3px solid var(--red); }
.topline { min-height: 30px; background: var(--night); color: #b8c4d2; font-size: 11px; letter-spacing: .035em; }
.topline-inner { display: flex; align-items: center; gap: 9px; min-height: 30px; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(0,200,83,.12); flex-shrink: 0; }
.topline-note { margin-left: auto; color: #8b99a9; }
.header-inner { min-height: 74px; display: flex; align-items: stretch; gap: 34px; }
.brandmark { display: inline-flex; align-items: center; gap: 8px; min-width: 148px; color: #fff; }
.brandmark:hover { color: #fff; }
.brandmark img { width: 42px; height: 42px; object-fit: contain; }
.wordmark { font-size: 32px; line-height: 1; letter-spacing: -.07em; font-weight: 950; }
.wordmark span, .footer-brand span:first-child { color: #ff475b; }
.primary-nav { display: flex; align-items: stretch; gap: 4px; min-width: 0; }
.primary-nav a { display: flex; align-items: center; padding: 0 19px; color: #c5cfda; font-size: 14px; font-weight: 730; border-bottom: 3px solid transparent; margin-bottom: -3px; transition: color .16s, background .16s; }
.primary-nav a:hover { background: #252e3c; color: white; }
.primary-nav a[aria-current='page'] { color: #fff; border-color: #ff5265; background: #27303e; }
.header-cta { margin-left: auto; align-self: center; background: rgba(217,35,56,.14); color: #fff; border: 1px solid #b2394b; padding: 8px 15px; font-size: 13px; font-weight: 800; border-radius: 4px; white-space: nowrap; }
.header-cta:hover { background: var(--red); color: #fff; }
.header-cta span { margin-left: 6px; font-size: 16px; }
.entry-band { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 25px 24px 23px; margin-block: 16px; background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--red); box-shadow: var(--shadow); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; color: var(--red); font-size: 11px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.signal { display: inline-block; width: 6px; height: 6px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
.entry-band h1 { font-size: clamp(24px,3vw,34px); font-weight: 950; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 6px; }
.entry-band h1 span { font-size: .7em; color: #414f60; font-weight: 850; }
.entry-band p { max-width: 760px; font-size: 13px; color: #536277; margin-bottom: 0; }
.entry-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 4px; padding: 10px 14px; font-size: 13px; font-weight: 850; min-height: 40px; white-space: nowrap; text-align: center; transition: transform .12s, background .16s, box-shadow .16s; }
.button:hover { transform: translateY(-1px); }
.button-red { color: white; background: var(--red); border-color: var(--red); }
.button-red:hover { color: white; background: var(--red-deep); }
.button-ghost { color: #344256; background: var(--paper); border-color: #d7dde5; }
.button-ghost:hover { color: var(--red); background: #fff; border-color: var(--red); }
.button-dark { background: var(--navy); color: #fff; }
.button-dark:hover { background: #3a465b; color: #fff; }
.home-columns { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(315px,1fr); gap: 16px; align-items: start; }
.lead-column, .right-column { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 10px; padding-bottom: 9px; border-bottom: 2px solid var(--navy); }
.section-heading h2 { font-size: 21px; line-height: 1.35; font-weight: 900; margin-bottom: 0; }
.kicker { display: block; margin-bottom: 3px; color: var(--red); font-size: 10px; line-height: 1.5; letter-spacing: .14em; font-weight: 850; }
.section-context { color: var(--muted); font-size: 11px; white-space: nowrap; }
.lead-story { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lead-image { position: relative; background: #e4eaf0; aspect-ratio: 16/9; }
.lead-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-label { position: absolute; bottom: 13px; left: 13px; padding: 5px 11px; color: #fff; background: rgba(12,17,24,.91); font-size: 11px; font-weight: 800; border-left: 3px solid var(--red); }
.lead-body { padding: 17px 19px 18px; }
.story-meta { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.red-label { display: inline-block; background: var(--red); color: white; font-size: 10px; line-height: 1.2; padding: 4px 7px; }
.lead-body h3 { font-size: clamp(21px,2.5vw,26px); line-height: 1.34; margin-bottom: 9px; letter-spacing: -.018em; font-weight: 950; }
.lead-body p { color: #5c687a; font-size: 14px; margin-bottom: 10px; }
.text-link { font-weight: 800; color: var(--red); font-size: 12px; }
.text-link:hover { text-decoration: underline; }
.dense-heading { margin-top: 20px; }
.mini-link { color: #526071; font-size: 12px; font-weight: 800; white-space: nowrap; }
.feed-list { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.feed-item { display: grid; grid-template-columns: minmax(120px,185px) minmax(0,1fr); gap: 15px; padding: 14px; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: 0; }
.feed-thumb { position: relative; aspect-ratio: 16/9; align-self: start; overflow: hidden; background: var(--subtle); border-radius: 3px; }
.feed-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.feed-thumb:hover img { transform: scale(1.04); }
.thumb-icon { position: absolute; right: 8px; bottom: 8px; color: white; width: 23px; height: 23px; border-radius: 3px; line-height: 23px; text-align: center; background: rgba(13,17,23,.83); font-weight: 800; }
.feed-text { min-width: 0; }
.item-type { display: inline-block; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .02em; margin-bottom: 3px; }
.feed-text h3 { font-size: 17px; line-height: 1.4; font-weight: 900; margin-bottom: 5px; }
.feed-text p { font-size: 12px; line-height: 1.6; color: #677486; margin-bottom: 9px; }
.mini-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #788495; font-size: 11px; }
.mini-meta a { color: var(--red); font-weight: 750; }
.rank-panel { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--red); border-radius: var(--radius); overflow: hidden; }
.rank-header { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 14px 15px 10px; gap: 8px; }
.rank-header h2 { font-size: 19px; line-height: 1.32; font-weight: 900; margin: 0; }
.rank-mark { background: #fae3e7; color: var(--red); font-family: var(--mono); font-size: 11px; font-weight: 850; padding: 6px 8px; white-space: nowrap; }
.rank-explain { margin: 0 15px 6px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.rank-list { padding: 0 15px; margin: 0; list-style: none; }
.rank-list li { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid #e9edf2; }
.rank-num { font-size: 18px; font-family: var(--mono); font-weight: 850; color: #a4aebb; line-height: 1.25; }
.rank-num.top-rank { color: var(--red); }
.rank-copy { min-width: 0; }
.rank-copy a { display: block; line-height: 1.42; font-size: 13px; font-weight: 850; }
.rank-copy small { display: block; font-size: 10px; color: #8290a2; margin-top: 5px; }
.rank-footer { display: flex; justify-content: space-between; padding: 12px 15px; font-weight: 850; font-size: 12px; background: var(--navy); color: #fff; }
.rank-footer:hover { color: #fff; background: #354052; }
.side-note { margin-top: 14px; padding: 16px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--green); }
.side-note-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.side-note h2 { font-size: 16px; font-weight: 900; margin: 0; }
.side-note p { font-size: 12px; color: #677486; margin: 0 0 9px; }
.side-note a { color: var(--red); font-size: 12px; font-weight: 850; }
.community-strip { margin: 22px 0 33px; border: 1px solid var(--border); border-top: 4px solid var(--navy); background: #fff; padding: 17px; }
.strip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.strip-head h2 { font-size: 22px; font-weight: 950; margin: 0; }
.discussion-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.discussion-card { padding: 14px; min-height: 205px; display: flex; flex-direction: column; align-items: flex-start; background: var(--paper); border: 1px solid var(--border); border-radius: 4px; }
.discussion-tag { background: #fbe4e7; color: var(--red-deep); padding: 3px 7px; font-size: 10px; font-weight: 850; line-height: 1.5; white-space: nowrap; }
.discussion-card h3 { font-size: 16px; font-weight: 900; line-height: 1.42; margin: 11px 0 8px; }
.discussion-card p { font-size: 12px; color: #627184; margin: 0 0 12px; }
.discussion-card > a { font-size: 11px; color: var(--red); font-weight: 850; margin-top: auto; }
.site-footer { background: var(--night); color: #abb5c4; padding: 32px 0 0; border-top: 3px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.1fr; gap: 40px; padding-bottom: 27px; }
.footer-grid p { color: #8794a6; font-size: 12px; line-height: 1.85; margin: 8px 0 0; }
.footer-brand { color: #fff; font-size: 27px; font-weight: 950; letter-spacing: -.055em; }
.footer-accent { font-size: 12px; color: #8c9aaf; letter-spacing: normal; font-weight: 500; }
.footer-grid h2 { color: #fff; font-weight: 850; font-size: 14px; margin-bottom: 12px; }
.footer-grid a { display: block; color: #b4bfcc; font-size: 12px; margin-bottom: 5px; }
.footer-grid a:hover { color: white; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #29303b; padding: 14px 0 18px; gap: 15px; font-size: 11px; color: #7e8b9b; }
/* Community: content-first, anchored discussions, functional plain-form submission */
.community-banner { background: var(--navy); color: white; border-bottom: 4px solid var(--red); margin: 16px 0; padding: 24px; }
.community-banner .eyebrow { color: #ff8392; }
.community-banner h1 { font-size: clamp(27px,4vw,38px); line-height: 1.25; font-weight: 950; margin: 0 0 9px; }
.community-banner p { font-size: 14px; color: #c2cbd8; max-width: 750px; margin-bottom: 19px; }
.banner-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.banner-stats span { color: #d4dde8; font-size: 11px; background: #303b4b; border: 1px solid #435166; padding: 5px 9px; border-radius: 3px; }
.banner-stats a { color: white; background: var(--red); margin-left: auto; font-size: 12px; font-weight: 850; padding: 7px 12px; border-radius: 3px; }
.banner-stats a:hover { background: var(--red-deep); }
.community-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(295px,.9fr); gap: 16px; align-items: start; margin-bottom: 36px; }
.topic-stream, .community-sidebar { min-width: 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.filter { border: 1px solid #d5dde6; color: #516074; background: #fff; border-radius: 3px; padding: 7px 12px; font-size: 12px; font-weight: 850; }
.filter:hover { border-color: var(--red); color: var(--red); }
.filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.topic-list { display: grid; gap: 12px; }
.topic-item { scroll-margin-top: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 17px 17px 15px; box-shadow: var(--shadow); }
.topic-item:target { outline: 2px solid var(--red); outline-offset: 2px; }
.topic-head { display: flex; align-items: flex-start; gap: 13px; }
.topic-index { font: 850 18px/1.5 var(--mono); color: #9daabb; flex-shrink: 0; }
.topic-head > div { flex: 1; min-width: 0; }
.topic-head h3 { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.42; }
.topic-head > .discussion-tag { margin-top: 3px; }
.topic-summary { font-size: 13px; color: #5d6c7f; margin: 9px 0 12px 37px; }
.topic-body { border-top: 1px solid var(--border); padding: 12px 0 0 37px; }
.topic-body h4 { font-size: 12px; font-weight: 950; margin-bottom: 4px; color: #3a4555; }
.topic-body > p { margin-bottom: 12px; font-size: 13px; color: #5d6c7f; line-height: 1.8; }
.question-box { background: var(--paper); border-left: 3px solid var(--red); padding: 12px; }
.question-box strong { display: block; font-size: 11px; color: var(--red); margin-bottom: 3px; }
.question-box p { font-size: 13px; margin: 0 0 8px; font-weight: 750; }
.question-box a { font-size: 11px; color: var(--red); font-weight: 850; }
.community-sidebar { display: grid; gap: 14px; }
.submit-panel { scroll-margin-top: 20px; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--red); padding: 17px; }
.panel-title { border-bottom: 1px solid var(--border); padding-bottom: 9px; margin-bottom: 9px; }
.panel-title h2 { font-size: 22px; font-weight: 950; line-height: 1.32; margin: 0; }
.form-intro { color: #667386; font-size: 12px; line-height: 1.75; margin-bottom: 13px; }
.submission-form { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.submission-form > label:not(.checkline) { color: #324154; font-size: 12px; font-weight: 850; margin-top: 9px; }
.submission-form label small { color: #7b899a; font-size: 11px; font-weight: 400; }
.submission-form input:not([type='checkbox']), .submission-form select, .submission-form textarea { width: 100%; border: 1px solid #cbd5e1; background: #fff; padding: 10px 11px; border-radius: 3px; font-size: 13px; line-height: 1.55; color: var(--ink); }
.submission-form textarea { min-height: 160px; resize: vertical; }
.submission-form input::placeholder, .submission-form textarea::placeholder { color: #94a1b0; }
.submission-form input:not([type='checkbox']):hover, .submission-form select:hover, .submission-form textarea:hover { border-color: #8b98a8; }
.form-helper { color: #758397; font-size: 10px; line-height: 1.55; }
.checkline { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.65; margin: 12px 0 7px; color: #566476; }
.checkline input { margin-top: 3px; accent-color: var(--red); flex-shrink: 0; width: 15px; height: 15px; }
.checkline a { color: var(--red); text-decoration: underline; }
.submit-button { width: 100%; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.notice { border: 1px solid; font-size: 12px; margin: 8px 0 12px; padding: 10px; line-height: 1.7; }
.notice-success { background: #e9f8ec; border-color: #78c28b; color: #176c32; }
.notice-error { background: #fff2f2; border-color: #eaa1aa; color: #9e1a2b; }
.notice ul { margin: 4px 0 0 0; padding-left: 22px; }
.sidebar-guidelines { background: #fff; border: 1px solid var(--border); padding: 16px; }
.sidebar-guidelines h2 { font-size: 17px; font-weight: 900; margin-bottom: 9px; }
.sidebar-guidelines ol { padding-left: 21px; color: #627085; margin: 0 0 10px; font-size: 12px; line-height: 1.75; }
.sidebar-guidelines li + li { margin-top: 7px; }
.sidebar-guidelines a { font-size: 12px; color: var(--red); font-weight: 800; }
/* Privacy policy: narrower long-form reading width and clear distinction between sections */
.policy-page { max-width: 850px; margin: 20px auto 44px; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--red); padding: 29px 32px 35px; }
.policy-page h1 { font-size: 32px; line-height: 1.3; font-weight: 950; margin-bottom: 12px; }
.policy-lead { background: var(--paper); border-left: 3px solid var(--navy); color: #4f6076; padding: 14px 17px; font-size: 14px; margin-bottom: 11px; }
.policy-page section { border-bottom: 1px solid var(--border); padding: 20px 0 15px; }
.policy-page section h2 { font-size: 19px; line-height: 1.4; font-weight: 900; margin-bottom: 7px; }
.policy-page section p { color: #5e6e80; line-height: 1.9; margin: 0; font-size: 14px; }
.policy-page section a { color: var(--red); text-decoration: underline; }
.policy-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
/* Responsive: preserve headline priority without forcing unsupported horizontal overflow */
@media (max-width: 1120px) {
 .header-inner { gap: 14px; }
 .primary-nav a { padding-inline: 13px; }
 .home-columns { grid-template-columns: minmax(0,1.5fr) minmax(285px,1fr); }
 .entry-band { grid-template-columns: 1fr; gap: 12px; }
 .entry-actions { justify-content: flex-start; }
 .discussion-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .discussion-card { min-height: 170px; }
}
@media (max-width: 840px) {
 .container { width: min(100% - 28px,1180px); }
 .header-inner { min-height: 67px; }
 .brandmark { min-width: auto; }
 .brandmark img { width: 35px; height: 35px; }
 .wordmark { font-size: 28px; }
 .header-cta { display: none; }
 .primary-nav { margin-left: auto; }
 .home-columns, .community-layout { grid-template-columns: 1fr; }
 .right-column { display: grid; gap: 14px; grid-template-columns: minmax(0,1fr) minmax(215px,.65fr); }
 .side-note { margin-top: 0; }
 .community-sidebar { grid-template-columns: minmax(0,1fr) minmax(230px,.75fr); }
 .footer-grid { gap: 24px; }
}
@media (max-width: 620px) {
 body { font-size: 14px; }
 .container { width: calc(100% - 24px); }
 .topline-note { display: none; }
 .topline { font-size: 10px; }
 .header-inner { min-height: 61px; gap: 10px; }
 .brandmark img { width: 30px; height: 30px; }
 .wordmark { font-size: 25px; }
 .primary-nav a { font-size: 11px; padding: 0 9px; white-space: nowrap; }
 .primary-nav a:last-child { display: none; }
 .entry-band { padding: 15px 13px; margin-block: 12px; }
 .entry-band h1 { font-size: 23px; }
 .entry-band h1 span { display: block; margin-top: 4px; font-size: .76em; }
 .entry-band p { font-size: 12px; }
 .entry-actions { gap: 7px; }
 .button { font-size: 11px; padding: 9px 10px; }
 .section-heading h2 { font-size: 18px; }
 .lead-body { padding: 13px; }
 .lead-body h3 { font-size: 21px; }
 .lead-body p { font-size: 12px; }
 .feed-item { grid-template-columns: 120px minmax(0,1fr); gap: 11px; padding: 10px; }
 .feed-text h3 { font-size: 14px; }
 .feed-text p { font-size: 11px; }
 .feed-thumb { aspect-ratio: 4/3; }
 .right-column, .community-sidebar { display: grid; grid-template-columns: 1fr; gap: 12px; }
 .discussion-grid { grid-template-columns: 1fr; }
 .discussion-card { min-height: 140px; }
 .community-strip { padding: 12px; }
 .strip-head h2 { font-size: 19px; }
 .community-banner { padding: 17px 15px; margin-block: 12px; }
 .community-banner p { font-size: 12px; }
 .banner-stats a { margin-left: 0; }
 .topic-item { padding: 13px; }
 .topic-head { gap: 7px; }
 .topic-index { font-size: 15px; }
 .topic-head h3 { font-size: 16px; }
 .topic-head > .discussion-tag { display: none; }
 .topic-summary { margin-left: 24px; }
 .topic-body { padding-left: 24px; }
 .footer-grid { grid-template-columns: 1fr; gap: 20px; }
 .footer-bottom { display: block; }
 .footer-bottom span { display: block; margin-bottom: 6px; }
 .policy-page { margin: 12px 0 24px; padding: 20px 15px; }
 .policy-page h1 { font-size: 25px; }
 .policy-page section h2 { font-size: 17px; }
 .policy-page section p { font-size: 13px; }
}
@media (max-width: 365px) {
 .primary-nav a { padding-inline: 6px; }
 .brandmark { gap: 3px; }
 .entry-actions .button { flex: 1 1 100%; }
 .feed-item { grid-template-columns: 100px minmax(0,1fr); }
 .feed-text p { display: none; }
 .feed-thumb { aspect-ratio: 4/3; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
 body { background: #fff; color: #111; }
 .site-header, .site-footer, .filter-row, .entry-actions, .submission-form, .question-box a { display: none !important; }
 .container { width: 100%; }
 .home-columns, .community-layout, .discussion-grid { display: block; }
 .topic-item, .lead-story, .discussion-card, .rank-panel { break-inside: avoid; box-shadow: none; margin-block: 12px; }
 a { color: #111; }
}
