/* 17c information terminal: compressed, high-contrast, accessible layout */
:root {
 --red:#d92338;--red-deep:#b8172a;--ink:#1e293b;--nav:#1a202c;--black:#0d1117;
 --bg:#f4f6f9;--muted-bg:#eaeef3;--secondary:#64748b;--green:#00c853;
 --edge:#d8dfe8;--white:#fff;--focus:#1166d6;--radius:5px;
 --font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
 --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:82px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.68;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{color:var(--red)}
button,input,textarea{font:inherit}
button{cursor:pointer}
a,button,input,textarea{outline-offset:3px}
:focus-visible{outline:3px solid var(--focus)!important}
img{max-width:100%;height:auto}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-weight:850;line-height:1.32;letter-spacing:-.025em;overflow-wrap:anywhere}
p{overflow-wrap:anywhere}
.site-container{max-width:1260px;margin:0 auto;padding:16px 20px 42px}
.small,.muted{color:var(--secondary);font-size:12px}
.skip-link{position:fixed;z-index:100;left:10px;top:-90px;background:white;color:#111;padding:8px 15px;border:2px solid var(--focus)}
.skip-link:focus{top:10px}
.site-header{background:var(--nav);border-bottom:3px solid var(--red);color:#fff}
.header-inner{display:flex;align-items:center;gap:28px;min-height:72px;max-width:1260px;margin:auto;padding:6px 20px}
.brand{flex:0 0 auto;display:flex;align-items:center;gap:8px;color:white;font-size:29px;font-weight:950;line-height:1;letter-spacing:-.07em}
.brand:hover{color:white}
.brand img{display:block;width:40px;height:40px;object-fit:contain;border-radius:4px}
.brand-red,.footer-brand span{color:#ff4156}
.brand small{display:block;font-size:10px;color:#a9b5c7;letter-spacing:.13em;font-weight:650;margin-top:5px}
.primary-nav{display:flex;align-items:stretch;min-height:64px;gap:4px}
.primary-nav a{display:flex;align-items:center;padding:8px 17px;color:#d7deeb;font-weight:750;white-space:nowrap;border-bottom:3px solid transparent;transition:background .2s ease,color .2s ease}
.primary-nav a:hover{background:#252e3e;color:white}
.primary-nav a[aria-current="page"]{color:white;border-color:#ff5261;background:#253040}
.header-side{display:flex;align-items:center;gap:7px;margin-left:auto;color:#b7c5d4;font-size:12px;white-space:nowrap}
.status-dot{display:inline-block;flex:0 0 auto;background:var(--green);width:7px;height:7px;border-radius:50%;box-shadow:0 0 0 3px #00c85320}
.entry-strip{display:flex;justify-content:space-between;align-items:center;gap:24px;background:white;border:1px solid var(--edge);border-left:4px solid var(--red);padding:15px 20px;margin-bottom:14px;min-height:127px}
.entry-strip h1{font-size:25px;letter-spacing:-.04em;margin:5px 0}
.entry-strip p{margin:4px 0 0;color:var(--secondary);font-size:13px}
.eyebrow,.section-kicker{display:inline-block;color:var(--red);font-family:var(--mono);font-size:11px;font-weight:850;letter-spacing:.07em}
.entry-cta{background:var(--nav);color:#fff;padding:13px 16px;font-size:14px;font-weight:800;border-radius:4px;white-space:nowrap}
.entry-cta:hover{background:var(--red);color:white}
.entry-cta span{margin-left:8px}
.homepage-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;align-items:start}
.main-column{min-width:0}
.feature-panel,.content-section,.ranking-panel,.community-preview,.community-main,.discussion-topic,.submission,.sidebar-note,.sidebar-links{background:white;border:1px solid var(--edge);border-radius:4px}
.feature-panel{margin-bottom:14px;overflow:hidden}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 17px 13px;border-bottom:1px solid var(--edge)}
.section-head h2{font-size:19px;margin:4px 0 0;line-height:1.3}
.section-head .signal{white-space:nowrap;font-size:11px;font-family:var(--mono);color:#475569}
.signal .status-dot{margin-right:6px}
.feature-content{display:grid;grid-template-columns:1.08fr 1fr;gap:16px;padding:16px}
.feature-copy{min-width:0;display:flex;flex-direction:column;align-items:start}
.badge{display:inline-flex;align-items:center;font-weight:850;font-size:11px;line-height:1.3;padding:4px 7px;border-radius:2px;white-space:nowrap}
.badge-red{background:#fff0f2;color:#c3152d;border:1px solid #f7c8d0}
.badge-muted{background:#e9edf2;border:1px solid #d8dee6;color:#44536a}
.feature-copy h3{margin:11px 0 9px;font-size:24px;line-height:1.4}
.feature-copy p{font-size:13px;color:#59687c;margin-bottom:16px}
.feature-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:auto}
.button-primary{display:inline-flex;justify-content:center;align-items:center;text-align:center;gap:8px;background:var(--red);border:1px solid var(--red);color:white;font-size:13px;font-weight:850;padding:11px 15px;line-height:1.4;border-radius:3px;transition:background .15s,border-color .15s}
.button-primary:hover{background:var(--red-deep);border-color:var(--red-deep);color:white}
.button-primary:disabled{cursor:wait;opacity:.65}
.plain-action,.text-link,.small-link{color:#b8172a;font-weight:800;font-size:12px}
.plain-action:hover,.text-link:hover,.small-link:hover{text-decoration:underline;text-underline-offset:4px}
.feature-visual{position:relative;min-width:0;align-self:start;background:#e6eaf0;aspect-ratio:16/9;overflow:hidden;border-radius:4px}
.feature-visual img{display:block;width:100%;height:100%;object-fit:cover}
.image-label{position:absolute;left:0;top:0;background:var(--red);color:#fff;font-weight:850;font-size:11px;padding:4px 8px}
.ranking-panel{position:sticky;top:12px;overflow:hidden}
.rank-head{background:var(--nav);color:white;padding:17px 17px 13px}
.rank-head .section-kicker{color:#ff7280}
.rank-head h2{font-size:18px;margin:5px 0 4px}
.rank-head p{color:#b3bdcb;font-size:11px;margin:0}
.rank-list{list-style:none;padding:0;margin:0;counter-reset:none}
.rank-list li{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-bottom:1px solid var(--edge)}
.rank-list li:hover{background:#f8fafc}
.rank-number{color:#94a3b8;font-family:var(--mono);font-size:20px;font-weight:900;line-height:1.25;min-width:29px}
.rank-number.top-rank{color:var(--red)}
.rank-list li>div{min-width:0;display:flex;flex-direction:column}
.rank-list a{font-size:13px;font-weight:800;line-height:1.48}
.rank-category{font-size:11px;color:var(--secondary);margin-top:5px}
.rank-footer{padding:14px;background:var(--muted-bg);border-top:1px solid #d6dce6;text-align:center}
.rank-footer a{font-size:12px;font-weight:800;color:#af1529}
.content-section{overflow:hidden}
.stream-list{padding:0 16px}
.stream-item{padding:15px 0;border-bottom:1px solid var(--edge)}
.stream-item:last-child{border-bottom:0}
.stream-kind{display:flex;align-items:center;gap:10px;margin-bottom:9px}
.stream-body{display:flex;justify-content:space-between;align-items:start;gap:18px}
.stream-body>div{min-width:0;flex:1}
.stream-body img{flex:0 0 160px;width:160px;height:90px;object-fit:cover;border-radius:3px;background:var(--muted-bg);border:1px solid #dce2e9}
.stream-item h3{font-size:17px;margin:0 0 7px}
.stream-item p{color:#5e6c7e;margin-bottom:9px;font-size:13px;line-height:1.65}
.community-preview{margin-top:14px;overflow:hidden}
.topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.topic-card{padding:16px;min-width:0;border-right:1px solid var(--edge)}
.topic-card:last-child{border-right:0}
.topic-card .topic-meta{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:10px}
.topic-meta>span:nth-child(2){font-size:10px;color:var(--secondary)}
.topic-card h3{font-size:16px;line-height:1.45;margin-bottom:10px}
.topic-card p{font-size:12px;color:#5b697c;line-height:1.7;margin-bottom:13px}
.topic-foot{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:11px;color:var(--secondary);margin-top:10px}
.topic-foot a{color:var(--red);font-weight:800}
.bottom-callout{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--nav);color:white;padding:21px 24px;border-top:3px solid var(--red);margin-top:14px}
.bottom-callout h2{font-size:20px;margin-bottom:6px}
.bottom-callout p{font-size:13px;color:#bcc8d6;margin:0}
.site-footer{background:var(--black);color:#e2e8f0;margin-top:20px;border-top:3px solid var(--red)}
.footer-inner{max-width:1260px;margin:0 auto;display:grid;grid-template-columns:1.4fr .6fr 1fr;gap:40px;padding:33px 20px 26px}
.footer-brand{font-weight:950;font-size:22px;letter-spacing:-.04em}
.footer-inner p{color:#a1afc0;font-size:12px;margin:12px 0 0;max-width:430px}
.footer-inner h2{font-size:13px;margin:1px 0 12px;color:#f8fafc}
.footer-inner a{display:block;font-size:12px;color:#c1cbd8;padding:3px 0}
.footer-inner a:hover{color:#ff6675}
.footer-bottom{border-top:1px solid #2a3340;max-width:1260px;margin:auto;padding:13px 20px 18px;color:#8e9aab;font-size:11px}
/* Community: wide discussion stream and guidance rail */
.community-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;background:white;border:1px solid var(--edge);border-top:4px solid var(--red);padding:20px;margin-bottom:14px}
.community-heading h1{font-size:27px;margin:5px 0 6px}
.community-heading p{font-size:13px;color:var(--secondary);margin:0}
.breadcrumbs{display:flex;align-items:center;gap:9px;color:var(--secondary);font-size:11px;margin-bottom:12px}
.breadcrumbs a:hover{text-decoration:underline}
.community-layout{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:14px;align-items:start}
.community-main{overflow:hidden}
.discussion-list{padding:0 16px}
.discussion-topic{padding:19px 2px 21px;border:0;border-radius:0;border-bottom:1px solid var(--edge);scroll-margin-top:25px}
.discussion-topic:last-child{border-bottom:0}
.discussion-topic:target{background:linear-gradient(90deg,#fff2f3 0,transparent 60%);margin:0 -10px;padding-left:12px;padding-right:12px;outline:2px solid #fae1e5;outline-offset:-2px}
.topic-topline{display:flex;gap:12px;align-items:center;margin-bottom:9px}
.topic-topline>span:last-child{font-size:11px;color:var(--secondary)}
.discussion-topic h3{font-size:21px;margin:0 0 9px}
.discussion-topic p{font-size:13px;color:#455367;margin:0 0 10px;line-height:1.85}
.discussion-topic p.topic-lead{font-size:14px;color:#253247;font-weight:650}
.prompt-box{border-left:3px solid var(--red);background:var(--bg);padding:11px 14px;margin:15px 0 12px}
.prompt-box strong{font-size:11px;color:var(--red)}
.prompt-box p{font-size:13px;color:var(--ink);margin:5px 0 0}
.community-side{display:grid;gap:14px;position:sticky;top:12px}
.sidebar-note{border-top:4px solid var(--red);padding:16px}
.sidebar-note h2{font-size:18px;margin:7px 0 10px}
.sidebar-note p{color:#5b6b7d;font-size:12px;margin:0 0 10px}
.sidebar-note p:last-child{margin-bottom:0}
.sidebar-links{padding:14px 16px}
.sidebar-links h2{font-size:14px;margin:0 0 9px}
.sidebar-links a{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:750;border-top:1px solid var(--edge);padding:10px 0}
.sidebar-links a span{color:var(--red)}
.submission{margin-top:14px;display:grid;grid-template-columns:.85fr 1.15fr;align-items:start;overflow:hidden;scroll-margin-top:14px}
.submission-intro{padding:24px;background:var(--nav);color:white;height:100%;min-width:0}
.submission-intro .section-kicker{color:#ff8091}
.submission-intro h2{font-size:23px;line-height:1.4;margin:12px 0}
.submission-intro>p{font-size:13px;line-height:1.85;color:#c3ccda}
.submission-guide{padding:16px;margin-top:26px;background:#252f40;border:1px solid #38465a}
.submission-guide strong{font-size:13px;color:white}
.submission-guide p{color:#bfcbda;font-size:12px;margin:6px 0 0}
.form-panel{padding:20px 24px;min-width:0}
.form-panel form{display:flex;flex-direction:column}
.form-panel label{font-size:13px;font-weight:800;margin-bottom:6px}
.required{color:var(--red)}
.form-panel input:not([type="hidden"]),.form-panel textarea{border:1px solid #bfcad7;background:#fff;width:100%;border-radius:4px;padding:11px 12px;font-size:13px;color:var(--ink);margin-bottom:15px;transition:border-color .14s,box-shadow .14s}
.form-panel input:focus,.form-panel textarea:focus{border-color:#3178ca;box-shadow:0 0 0 3px #3178ca20}
.form-panel textarea{resize:vertical;min-height:95px}
.form-panel input::placeholder,.form-panel textarea::placeholder{color:#8291a3}
.form-panel .honey{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-panel .submit-button{width:100%;min-height:44px}
.form-panel .form-footnote{font-size:11px;color:#6c788a;margin:10px 0 0}
.form-errors{background:#fff0f1;border:1px solid #e7a2ac;padding:12px;margin-bottom:16px;color:#a1162b;font-size:13px}
.form-errors ul{margin:5px 0;padding-left:22px}
.form-success{background:#e7faed;border:1px solid #9cd8b0;padding:12px 14px;color:#14552c;font-weight:700;font-size:13px}
.input-counter{align-self:flex-end;margin-top:-13px;margin-bottom:12px;font-size:11px;color:var(--secondary);font-family:var(--mono)}
/* Server-generated error page, no artificial redirection */
.not-found-main{min-height:52vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.not-found-code{font-family:var(--mono);font-weight:950;font-size:clamp(78px,12vw,140px);line-height:1;color:var(--red);letter-spacing:-.12em;margin-right:20px}
.not-found-main h1{font-size:26px;margin:12px 0}
.not-found-main p{color:var(--secondary);font-size:14px}
.not-found-actions{display:flex;align-items:center;gap:20px;margin-top:20px}
.not-found-actions>a:last-child{font-weight:750;color:var(--red);font-size:13px}
/* Medium displays: keep scan direction but move rank next to the stream */
@media(max-width:1100px){
 .site-container{padding:14px 16px 32px}
 .header-inner{gap:17px;padding-left:16px;padding-right:16px}
 .homepage-grid{grid-template-columns:minmax(0,1fr) 295px}
 .feature-content{grid-template-columns:1fr}
 .feature-visual{order:-1;max-height:250px}
 .feature-copy h3{font-size:22px}
 .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .topic-card{border-bottom:1px solid var(--edge)}
 .topic-card:nth-child(2n){border-right:0}
 .topic-card:nth-last-child(-n+2){border-bottom:0}
 .footer-inner{gap:24px}
 .community-layout{grid-template-columns:minmax(0,1fr) 235px}
 .submission{grid-template-columns:1fr 1.2fr}
}
@media(max-width:820px){
 .header-inner{min-height:67px}
 .header-side{display:none}
 .primary-nav{margin-left:auto}
 .primary-nav a{font-size:13px;padding:8px 12px}
 .homepage-grid{grid-template-columns:minmax(0,1fr)}
 .ranking-panel{position:static;grid-row:1}
 .rank-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .rank-list li:nth-child(odd){border-right:1px solid var(--edge)}
 .feature-content{grid-template-columns:1fr 1fr}
 .feature-visual{order:0;max-height:none}
 .feature-copy h3{font-size:20px}
 .community-layout{grid-template-columns:1fr}
 .community-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr));grid-row:1}
 .submission{grid-template-columns:1fr}
 .submission-intro{padding:21px}
 .submission-guide{margin-top:14px}
 .footer-inner{grid-template-columns:1fr 1fr}
 .footer-inner>div:first-child{grid-column:1/-1}
}
@media(max-width:640px){
 html{scroll-padding-top:16px}
 body{font-size:14px}
 .site-container{padding:10px 10px 26px}
 .site-header{border-bottom-width:2px}
 .header-inner{flex-wrap:wrap;gap:1px 10px;justify-content:center;padding:8px 10px 0;min-height:0}
 .brand{font-size:26px;margin-right:auto}
 .brand img{width:34px;height:34px}
 .brand small{font-size:9px}
 .primary-nav{width:100%;margin:4px 0 0;justify-content:space-around;min-height:43px}
 .primary-nav a{font-size:12px;justify-content:center;flex:1;padding:7px 4px}
 .entry-strip{display:block;padding:14px;margin-bottom:10px}
 .entry-strip h1{font-size:21px;line-height:1.38}
 .entry-strip p{font-size:12px}
 .entry-cta{display:inline-flex;padding:10px 13px;font-size:12px;margin-top:12px}
 .homepage-grid,.community-layout{gap:10px}
 .feature-panel,.content-section,.ranking-panel,.community-preview{margin-bottom:10px}
 .section-head{padding:12px;gap:7px}
 .section-head h2{font-size:17px}
 .section-head .signal{white-space:normal;text-align:right;font-size:10px;max-width:95px}
 .section-kicker{font-size:10px}
 .feature-content{display:flex;flex-direction:column-reverse;padding:12px;gap:12px}
 .feature-copy h3{font-size:20px;line-height:1.4}
 .feature-visual{width:100%}
 .feature-actions{gap:11px}
 .rank-list{grid-template-columns:1fr}
 .rank-list li:nth-child(odd){border-right:0}
 .rank-list li{padding:10px 13px}
 .rank-list a{font-size:13px}
 .stream-list{padding:0 12px}
 .stream-item{padding:12px 0}
 .stream-body{gap:10px}
 .stream-item h3{font-size:15px}
 .stream-item p{font-size:12px}
 .stream-body img{flex:0 0 114px;width:114px;height:70px}
 .topic-grid{grid-template-columns:1fr}
 .topic-card,.topic-card:nth-child(2n){border-right:0;border-bottom:1px solid var(--edge);padding:13px}
 .topic-card:last-child{border-bottom:0}
 .topic-card h3{font-size:15px}
 .bottom-callout{display:block;padding:17px;margin-top:10px}
 .bottom-callout h2{font-size:18px}
 .bottom-callout p{font-size:12px}
 .bottom-callout .button-primary{margin-top:15px}
 .site-footer{margin-top:0}
 .footer-inner{grid-template-columns:1fr 1fr;gap:18px;padding:23px 12px}
 .footer-inner>div:first-child{grid-column:1/-1}
 .footer-bottom{padding:12px;font-size:10px}
 .community-heading{display:block;padding:15px;margin-bottom:10px}
 .community-heading h1{font-size:23px}
 .community-heading p{font-size:12px}
 .community-heading .button-primary{margin-top:13px}
 .community-side{grid-template-columns:1fr;gap:10px}
 .discussion-list{padding:0 13px}
 .discussion-topic{padding:17px 0}
 .discussion-topic h3{font-size:18px}
 .discussion-topic p{font-size:12px}
 .discussion-topic p.topic-lead{font-size:13px}
 .submission{margin-top:10px}
 .submission-intro{padding:17px}
 .submission-intro h2{font-size:20px}
 .form-panel{padding:16px}
 .not-found-actions{flex-direction:column;gap:12px}
}
@media(max-width:390px){
 .primary-nav a{font-size:11px}
 .stream-body img{flex-basis:95px;width:95px;height:64px}
 .section-head h2{font-size:16px}
 .feature-actions .button-primary{padding:9px 11px}
 .entry-strip h1{font-size:19px}
 .footer-inner{grid-template-columns:1fr}
 .footer-inner>div:first-child{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media print{
 body{color:#111;background:white;font-size:11pt}
 .site-header,.site-footer,.button-primary,.entry-cta,.submission,.sidebar-links{display:none!important}
 .site-container{max-width:none;padding:0}
 .homepage-grid,.community-layout,.topic-grid,.footer-inner{display:block}
 .ranking-panel,.community-side{position:static}
 article,.feature-panel,.ranking-panel{break-inside:avoid}
 a{text-decoration:underline}
 .stream-body img,.feature-visual{max-width:160px}
}
