/* Guide, updates, community and code tool in the home page's voice (2026-10-23):
   ink header band with the blueprint grid, paper ground, bold sans headings,
   aqua / blue accents, pill buttons and flat white cards. Markup and scripts
   are unchanged; mobile sizes stay in mobile.css. Uses the --hx-* tokens from home-next.css. */

/* ---- ground and top bar ---- */
body:not([data-page="home"]){background:var(--hx-paper)!important;color:var(--hx-paper-text)}
body:not([data-page="home"]) .topbar{background:rgba(15,16,18,.9);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.06);color:var(--hx-text)}
body:not([data-page="home"]) .topbar .brand strong{color:#f2f4f5}
body:not([data-page="home"]) .topbar .brand strong>span{color:var(--hx-muted)}
body:not([data-page="home"]) .topbar nav a{color:var(--hx-muted)}
body:not([data-page="home"]) .topbar nav a:hover{color:var(--hx-text)}
body:not([data-page="home"]) .topbar nav a.active{color:var(--hx-text);border-color:var(--hx-aqua)}
body:not([data-page="home"]) .topbar .top-link{color:var(--hx-aqua)}
body:not([data-page="home"]) .topbar select{background:#1d2024;color:var(--hx-text);border:1px solid rgba(255,255,255,.14);border-radius:999px}
body:not([data-page="home"]) #main-content{overflow-x:clip}

/* ---- header band: full width, ink, blueprint grid, big sans title ---- */
#guide .page-heading,#updates .page-heading,#tool .page-heading,#community .community-heading{
  position:relative;isolation:isolate;overflow:hidden;max-width:none!important;
  margin:-72px calc(50% - 50vw) clamp(40px,5vw,64px);
  padding:clamp(84px,9vw,128px) calc(50vw - 50%) clamp(56px,6vw,88px);
  background:var(--hx-ink);color:var(--hx-text);border:0;border-radius:0;box-shadow:none}
#guide .page-heading::before,#updates .page-heading::before,#tool .page-heading::before,#community .community-heading::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(var(--hx-line) 1px,transparent 1px),linear-gradient(90deg,var(--hx-line) 1px,transparent 1px);background-size:64px 64px;
  mask-image:radial-gradient(ellipse at 70% 40%,#000 25%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse at 70% 40%,#000 25%,transparent 75%)}
/* Large outlined word at the right edge, as on the home hero. */
#guide .page-heading::after,#updates .page-heading::after,#tool .page-heading::after,#community .community-heading::after{
  position:absolute;right:-1vw;bottom:-2.2vw;z-index:-1;pointer-events:none;font-family:var(--font-ui);font-weight:900;
  font-size:clamp(90px,13vw,220px);line-height:.8;letter-spacing:-.04em;color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.12)}
#guide .page-heading::after{content:"GUIDE"}
#updates .page-heading::after{content:"UPDATES"}
#community .community-heading::after{content:"SHARE"}
#tool .page-heading::after{content:"CODE"}
.page:not(#home) .page-heading .eyebrow,.page:not(#home) .community-heading .eyebrow{margin:0 0 22px;font-size:12px;letter-spacing:.18em;font-weight:700;color:var(--hx-aqua);text-transform:uppercase}
.page:not(#home) .page-heading h1,.page:not(#home) .community-heading h1{
  margin:0;max-width:16em;font-family:var(--font-ui)!important;font-weight:900;font-size:clamp(40px,5.6vw,84px);line-height:1.08;letter-spacing:-.035em;color:var(--hx-text)}
.page:not(#home) .page-heading h1 em,.page:not(#home) .community-heading h1 em{font-style:normal;color:var(--hx-aqua)}
.page:not(#home) .page-heading>p,.page:not(#home) .community-heading p{max-width:40em;margin:24px 0 0;font-size:clamp(15px,1.25vw,18px);line-height:1.75;color:#c9d0d4}
html[lang="ja"] .page:not(#home) .page-heading h1,html[lang^="zh"] .page:not(#home) .page-heading h1,
html[lang="ja"] .page:not(#home) .community-heading h1,html[lang^="zh"] .page:not(#home) .community-heading h1{font-size:clamp(34px,4.4vw,66px);letter-spacing:-.01em}
#community .community-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:28px}
#community .community-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}

/* ---- headings in the body ---- */
.page:not(#home) h2,.page:not(#home) h3{font-family:var(--font-ui)!important;letter-spacing:-.03em;color:var(--hx-paper-text)}
.page:not(#home) h2{font-weight:900;line-height:1.18}
.page:not(#home) h3{font-weight:800;line-height:1.3}
.page:not(#home) h2 em,.page:not(#home) h3 em{font-style:normal;color:var(--hx-blue)}
.page:not(#home) .eyebrow{letter-spacing:.18em;font-weight:700;color:var(--hx-blue)}
.page:not(#home) .muted,.page:not(#home) .small.muted{color:var(--hx-paper-muted)}
.page:not(#home) .text-link{color:var(--hx-blue);font-weight:700;text-decoration:none}
.page:not(#home) .text-link:hover{text-decoration:underline}

/* ---- buttons: pills, ink solid or ink outline ---- */
.page:not(#home) .button{border-radius:999px;font-family:var(--font-ui);font-weight:700;letter-spacing:.01em;box-shadow:none;transition:background .2s,color .2s,border-color .2s}
.page:not(#home) .button.primary{background:var(--hx-paper-text);color:var(--hx-paper);border:1.5px solid var(--hx-paper-text)}
.page:not(#home) .button.primary:hover{background:var(--hx-aqua);border-color:var(--hx-aqua);color:#08201d}
.page:not(#home) .button.secondary{background:transparent;color:var(--hx-paper-text);border:1.5px solid var(--hx-paper-text)}
.page:not(#home) .button.secondary:hover{background:var(--hx-paper-text);color:var(--hx-paper)}
/* In the ink header the outline and solid swap to light. */
#community .community-heading .button.secondary{color:var(--hx-text);border-color:rgba(255,255,255,.55)}
#community .community-heading .button.secondary:hover{background:var(--hx-text);color:var(--hx-ink)}
#community .community-heading .button.primary{background:var(--hx-text);color:var(--hx-ink);border-color:var(--hx-text)}
#community .community-heading .button.primary:hover{background:var(--hx-aqua);border-color:var(--hx-aqua)}

/* ---- cards: flat white, hairline, 18px ---- */
.page:not(#home) .panel,
.page:not(#home) .guide-start-steps a,
.page:not(#home) .update-entry,
.page:not(#home) .post-card,
.page:not(#home) .empty-state,
.page:not(#home) .community-onboarding,
.page:not(#home) .format-info{
  background:#fff!important;border:1px solid #e3e6e3!important;border-radius:18px!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.page:not(#home) .guide-start-steps a,.page:not(#home) .post-card{transition:transform .25s ease,box-shadow .25s ease}
.page:not(#home) .guide-start-steps a:hover,.page:not(#home) .post-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,0,0,.08)!important}
.page:not(#home) .start-number{font-size:12px;font-weight:700;letter-spacing:.12em;color:var(--hx-blue)}
.page:not(#home) .start-arrow{color:var(--hx-paper-text)}
.page:not(#home) .notice,.page:not(#home) .code-apply-help{background:#fff;border:1px solid #e3e6e3;border-left:3px solid var(--hx-blue);border-radius:12px;box-shadow:none}

/* ---- side navigation (guide, updates): ink pill marks the current item ---- */
.page:not(#home) .guide-sidebar,.page:not(#home) .updates-sidebar{background:transparent;border:0;box-shadow:none}
.page:not(#home) .guide-sidebar>strong,.page:not(#home) .updates-sidebar>strong{display:block;margin:0 0 12px;font-size:12px;letter-spacing:.18em;font-weight:700;color:var(--hx-paper-muted);text-transform:uppercase}
.page:not(#home) .guide-categories a,.page:not(#home) .updates-versions a{display:grid;gap:3px;padding:12px 14px;margin:0 0 6px;border-radius:14px;border:1px solid transparent;background:transparent;color:var(--hx-paper-text);text-decoration:none;box-shadow:none;transition:background .2s,border-color .2s}
.page:not(#home) .guide-categories a:hover,.page:not(#home) .updates-versions a:hover{background:#fff;border-color:#e3e6e3}
.page:not(#home) .guide-categories a strong,.page:not(#home) .updates-versions a strong{font-family:var(--font-ui);font-weight:800;color:inherit}
.page:not(#home) .guide-categories a span,.page:not(#home) .updates-versions a span{font-size:12px;line-height:1.5;color:var(--hx-paper-muted)}
.page:not(#home) .guide-categories a.is-current,.page:not(#home) .updates-versions a.is-current{background:var(--hx-paper-text);border-color:var(--hx-paper-text);color:var(--hx-paper)}
.page:not(#home) .guide-categories a.is-current span,.page:not(#home) .updates-versions a.is-current span{color:#c9d0d4}
.page:not(#home) .updates-versions a em{font-style:normal;margin-left:6px;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:700;color:var(--hx-aqua);border:1px solid currentColor}

/* ---- tabs (guide sections, community lists): text with an underline ---- */
.page:not(#home) .guide-section-nav,.page:not(#home) .tabs{display:flex;flex-wrap:wrap;gap:4px 22px;border-bottom:1px solid #e3e6e3;background:transparent;padding:0;border-radius:0;box-shadow:none}
/* The guide's section tabs stick under the top bar: give them the paper ground. */
.page:not(#home) .guide-section-nav{background:rgba(246,247,245,.94)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:5}
.page:not(#home) .guide-section-nav a,.page:not(#home) .tabs button{position:relative;padding:12px 2px;background:none!important;border:0!important;border-radius:0;box-shadow:none!important;color:var(--hx-paper-muted);font-family:var(--font-ui);font-weight:700;font-size:15px;text-decoration:none;cursor:pointer}
.page:not(#home) .guide-section-nav a:hover,.page:not(#home) .tabs button:hover{color:var(--hx-paper-text)}
.page:not(#home) .guide-section-nav a.is-current,.page:not(#home) .tabs button.active{color:var(--hx-paper-text)}
.page:not(#home) .guide-section-nav a.is-current::after,.page:not(#home) .tabs button.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--hx-blue)}
.page:not(#home) .tabs button span{margin-left:4px;font-size:12px;color:var(--hx-blue)}

/* ---- form fields ---- */
.page:not(#home) input[type="text"],.page:not(#home) input[type="search"],.page:not(#home) input:not([type]),.page:not(#home) textarea,.page:not(#home) select{
  background:#fff;border:1px solid #d9ddda;border-radius:12px;color:var(--hx-paper-text);box-shadow:none}
.page:not(#home) input:focus,.page:not(#home) textarea:focus,.page:not(#home) select:focus{outline:none;border-color:var(--hx-aqua);box-shadow:0 0 0 3px rgba(64,224,209,.22)}
.page:not(#home) .toolbar{background:transparent;border:0;box-shadow:none}

/* ---- update log entries ---- */
.page:not(#home) .update-ver{font-family:var(--font-ui);font-weight:800;padding:3px 12px;border-radius:999px;background:var(--hx-paper-text);color:var(--hx-paper)}
.page:not(#home) .update-latest{padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;color:var(--hx-blue);border:1px solid currentColor;background:transparent}
.page:not(#home) .update-entry-head h2{font-size:clamp(26px,3vw,40px)}

/* ---- footer: ink strip like the home's finale ---- */
body:not([data-page="home"]) .footer{background:var(--hx-ink);color:var(--hx-muted);border-top:0;max-width:none;margin:0;padding-inline:max(24px,calc(50vw - 640px))}
body:not([data-page="home"]) .footer a{color:var(--hx-text)}
body:not([data-page="home"]) .footer .brand strong{color:var(--hx-text)}
body:not([data-page="home"]) .footer .brand strong>span{color:var(--hx-muted)}

@media (max-width:720px){
  #community .community-heading{grid-template-columns:1fr}
  #community .community-actions{justify-content:flex-start}
  #guide .page-heading::after,#updates .page-heading::after,#tool .page-heading::after,#community .community-heading::after{font-size:clamp(70px,22vw,120px)}
}
