/* Shared public interface; API and request handlers are unchanged. */
.shared-header {gap:16px; position:static; margin-bottom:24px;}
.shared-header .logo {color:#fff;}
.shared-header .nav {display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.shared-header .nav a {display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 11px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);font-size:13px;font-weight:600;}
.shared-header .nav a.active {color:#fff;background:linear-gradient(135deg,rgba(139,92,246,.25),rgba(236,72,153,.18));border-color:rgba(139,92,246,.4);}
.hero {padding-bottom:28px;}
.hero-actions {display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:20px;}
.site-button {display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;min-height:44px;border-radius:12px;background:linear-gradient(135deg,#8b5cf6,#ec4899);color:#fff;text-decoration:none;font-weight:700;}
.site-button.secondary {background:rgba(255,255,255,.06);border:1px solid var(--border);}
.hero .hero-intro {margin-top:14px;font-size:14px;}
.form-help {color:var(--muted);font-size:14px;line-height:1.7;margin:0 0 18px;}
.form-help a,.info-page a {color:#c4b5fd;}
.site-footer {width:min(960px,92%);margin:0 auto;padding:24px 0 32px;border-top:1px solid var(--border);color:var(--muted);font-size:13px;line-height:1.7;}
.site-footer p {margin-top:0;}
.site-footer nav {display:flex;flex-wrap:wrap;gap:12px 20px;}
.site-footer a {color:var(--text-soft);text-decoration:none;}
.site-footer a:hover {text-decoration:underline;}
.info-page {line-height:1.8;}
.info-page h1 {line-height:1.25;}
.post h2,.card h1 {overflow-wrap:anywhere;}
a:focus-visible,button:focus-visible {outline:3px solid #c4b5fd;outline-offset:3px;}
@media(max-width:850px){.shared-header {flex-direction:column;align-items:flex-start;}.shared-header .nav {width:100%;justify-content:flex-start;}}
@media(max-width:520px){.shared-header .nav {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}.shared-header .nav a {padding:9px 4px;font-size:12px;}.hero-actions .site-button {flex:1 1 140px;}.container {padding-bottom:36px;}.site-footer {width:95%;}.hero {padding-bottom:20px;}}
@media(prefers-reduced-motion:reduce){html {scroll-behavior:auto;}*,*::before,*::after {transition:none!important;}}

/* Approved compact home layout. */
.shared-header .logo{display:grid;grid-template-columns:auto auto;column-gap:7px;row-gap:3px;line-height:1.2}
.shared-header .logo span{color:#fff}.logo-icon{grid-column:1;grid-row:1}.logo-word{grid-column:2;grid-row:1}.logo-subtitle{grid-column:2;grid-row:2;font-size:11px;font-weight:500;letter-spacing:.5px}
.compact-intro{text-align:center;padding:12px 0 22px}.compact-intro h1{font-size:clamp(23px,4vw,34px);letter-spacing:-.7px;margin:0 0 8px;background:linear-gradient(90deg,#ffffff,#c4b5fd,#f9a8d4);-webkit-background-clip:text;background-clip:text;color:transparent}.compact-intro p{margin:14px 0 0;color:var(--muted);font-size:14px}.compact-intro .hero-actions{margin-top:16px}
.preview-line{color:var(--text-soft);font-size:14px;line-height:1.65;margin:8px 0 12px}.feed-meta{display:flex;flex-wrap:wrap;gap:7px 16px}.last-move{color:#c4b5fd}.feed-pager{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin:25px 0}.feed-pager a{background:rgba(255,255,255,.06);padding:9px 14px;min-height:42px;border-radius:10px;text-decoration:none}.feed-pager a.active{background:rgba(139,92,246,.3)}
.container{padding-bottom:24px}.site-footer{padding-top:16px}.empty{text-align:center;padding:32px 20px}.feedback{padding:14px 18px;border:1px solid rgba(52,211,153,.35);background:rgba(52,211,153,.08);border-radius:12px;color:#b5f5dd;margin:15px 0}
@media(max-width:520px){.last-move{width:100%}.post h2{font-size:18px}}

/* Keep button labels white inside information pages. */
.info-page a.site-button,.info-page a.site-button:visited,.info-page a.site-button:hover {color:#fff;}


/* 2026-10 usability polish */
.section-title .section-link {
    color:#c4b5fd;
    text-decoration:none;
    font-size:13px;
    font-weight:650;
    white-space:nowrap;
}
.section-title .section-link:hover { color:#fff; text-decoration:underline; }
.site-footer-note { margin:12px 0 0; color:var(--muted); }
@media(max-width:520px){
    .section-title { align-items:flex-start; }
    .section-title .section-link { white-space:normal; text-align:right; }
}

/* One viewport-based background across public pages. */
html body,html body.home-refresh,html body.utility-refresh{background:radial-gradient(ellipse at 12% 5%,#59339b25,transparent 42%),radial-gradient(ellipse at 90% 18%,#ae258315,transparent 35%),#111222;background-size:100vw 100vh;background-repeat:no-repeat;background-attachment:fixed;color:#f2f0ff;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
html body .card,html body .post{background:linear-gradient(115deg,#1d1f36,#181a30);border-color:#3b3659}

/* Consistent public page gutters and maximum width. */
body > .container{max-width:1120px;padding-left:24px;padding-right:24px}
@media(max-width:650px){body > .container{padding-left:14px;padding-right:14px}}

/* Align standalone footers with the padded page content. */
body > footer.site-footer.isimsizce-footer{width:calc(min(960px,92%) - 48px);max-width:none;box-sizing:border-box;margin-left:auto;margin-right:auto}
@media(max-width:800px){body > footer.site-footer.isimsizce-footer{width:calc(94% - 48px)}}
@media(max-width:650px){body > footer.site-footer.isimsizce-footer{width:calc(94% - 28px)}}
@media(max-width:500px){body > footer.site-footer.isimsizce-footer{width:calc(95% - 28px)}}
