/* Structural rules for the Standy pages. Keep after the legacy component styles. */
:root {
  --nav: 216px;
  --top: 72px;
  --ink: #f3f1e9;
  --muted: #a6aaa2;
  --line: #2b2e29;
  --paper: #10120f;
  --green: #d7ae4f;
  --gold: #d7ae4f;
  --acid: #13150f;
  --gutter: clamp(24px, 3.4vw, 64px);
}
html { scroll-padding-top: calc(var(--top) + 24px); }
body { font-family: Office, Arial, sans-serif; color: var(--ink); }
h1,h2,h3,.brand,.metric strong { font-family: OfficeDisplay, Office, sans-serif; }
.eyebrow,.flow-num { font-family: OfficeMono, monospace; line-height: 1.6; }
button,input,select,textarea { max-width: 100%; }
img { display: block; }
.topbar { padding: 0 28px; gap: 24px; }
.topbar .brand { gap: 10px; font-size: 23px; letter-spacing: .035em; white-space: nowrap; flex: none; }
.topbar .brand img { width: 36px; height: 36px; object-fit: contain; }
.top-actions { gap: 20px; min-width: 0; font-size: 12px; }
.topbar .wallet { padding: 10px 16px; min-height: 40px; font-size: 13px; box-shadow: none; }
#menu-toggle { padding: 5px; width: 36px; height: 40px; font-size: 25px; flex: none; }
#sidebar { width: var(--nav); padding: 24px 16px; overflow-y: auto; gap: 32px; }
#sidebar nav { gap: 4px; }
#sidebar nav a { min-height: 41px; padding: 10px 12px; font-size: 13px; border-radius: 4px; white-space: normal; }
.nav-bottom { padding: 0 12px; }
#app { margin-left: var(--nav); padding-top: var(--top); min-width: 0; }
.page,.standy-home { width: 100%; max-width: 1500px; margin: 0 auto; padding: 40px var(--gutter) 32px; }
.page > *, .standy-home > *, .standy-hero > *, .service-register > * { min-width: 0; }
.standy-hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 430px; border-radius: 8px; }
.hero-copy { padding: clamp(28px,3.2vw,52px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-copy .eyebrow { font-size: 10px; margin-bottom: 25px; }
.hero-copy h1 { font-size: clamp(36px,3.3vw,58px); line-height: 1.04; letter-spacing: -.045em; margin: 0 0 22px; text-wrap: balance; }
.hero-copy > p { max-width: 430px; font-size: 16px; line-height: 1.7; margin: 0 0 28px; text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row .button { font-size: 13px; padding: 12px 17px; box-shadow: none; }
.cta-row .button:not(.solid) { color: var(--ink); background: transparent; border-color: #55574d; }
.hero-foot { font: 10px/1.7 OfficeMono,monospace; color: var(--muted); margin-top: 28px; }
.hero-visual { position: relative; min-width: 0; min-height: 100%; overflow: hidden; }
.hero-visual > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 51% center; }
.visual-caption { position: absolute; inset: auto 0 0; padding: 28px 24px 18px; display: flex; justify-content: space-between; gap: 16px; font: 9px OfficeMono,monospace; letter-spacing: .08em; color: #dfdfd5; background: linear-gradient(transparent,#080a08d9); }
.market-rail { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 20px 0 0; border: 1px solid var(--line); border-radius: 5px; }
.market-rail > div { padding: 20px; min-width: 0; }
.market-rail > div + div { border-left: 1px solid var(--line); }
.market-rail span { display: block; font: 9px/1.5 OfficeMono,monospace; color: var(--muted); letter-spacing: .08em; margin-bottom: 8px; }
.market-rail strong { font-size: 13px; line-height: 1.6; font-weight: 550; display: block; }
.latest-section,.operation-steps,.home-services,.service-register { margin-top: 56px; }
.standy-home .section-label { margin: 0 0 22px; padding: 0; border: 0; align-items: end; gap: 20px; }
.standy-home .section-label .eyebrow { margin-bottom: 10px; font-size: 10px; }
.standy-home .section-label h2 { font-size: clamp(25px,2.2vw,34px); letter-spacing: -.03em; line-height: 1.15; }
.section-label .text-link { font-size: 12px; white-space: nowrap; margin-bottom: 4px; }
.latest-section .empty { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; column-gap: 20px; text-align: left; align-items: center; padding: 28px; border: 1px dashed #35392e; border-radius: 6px; background: #141611; }
.latest-section .empty-mark { width: 48px; height: 48px; margin: 0; grid-column: 1; grid-row: 1 / 3; opacity: .7; }
.latest-section .empty h3 { grid-column: 2; grid-row: 1; font-size: 20px; line-height: 1.3; margin: 0 0 5px; }
.latest-section .empty p { grid-column: 2; grid-row: 2; font-size: 13px; max-width: 440px; margin: 0; line-height: 1.6; }
.latest-section .empty .button { grid-column: 3; grid-row: 1 / 3; font-size: 12px; padding: 10px 15px; box-shadow: none; background: transparent; color: var(--gold); border-color: #766333; }
.how-strip { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 0; }
.how-strip article { min-width: 0; padding: 25px; }
.how-strip h3 { font-size: 22px; line-height: 1.15; }
.how-strip p { font-size: 14px; line-height: 1.7; margin-bottom: 0; }
.home-services { display: grid; gap: 22px; }
.home-services > section { margin: 0; padding: 32px; gap: 32px; border: 1px solid var(--line); border-radius: 6px; }
.home-services h2 { font-size: clamp(27px,2.5vw,38px); }
.home-services p { font-size: 14px; line-height: 1.7; }
.community-route { color: var(--gold); }
.campaign-flow strong { font-size: 18px; }
.campaign-flow li { border-bottom-color: var(--line); }
.service-register { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; padding: 40px; border: 1px solid var(--line); border-radius: 6px; }
.service-register h2 { font-size: clamp(27px,2.5vw,38px); line-height: 1.1; margin: 16px 0; }
.service-register p { font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.role-directory { display: grid; align-content: start; }
.role-directory button { display: grid; grid-template-columns: 28px 1fr 70px 20px; gap: 12px; padding: 17px 0; align-items: center; text-align: left; border: 0; border-bottom: 1px solid var(--line); }
.role-directory button > span { font: 10px OfficeMono; color: var(--gold); }
.role-directory strong { font-size: 14px; font-weight: 550; }
.role-directory small { font-size: 12px; color: var(--muted); }
.role-directory b { font-weight: 400; color: var(--gold); }
.specialist-mark { height: 128px; margin-bottom: 22px; padding: 18px; border: 1px solid #393c31; border-radius: 5px; display: flex; justify-content: space-between; align-items: end; background: radial-gradient(ellipse at top right,#d7ae4f16,transparent 70%),#10130f; }
.specialist-mark > span { font: 54px/1 OfficeDisplay; color: #c8b47b; }
.specialist-mark > small { font: 10px OfficeMono; color: var(--muted); }
.team-grid { grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); }
.role-card { min-width: 0; color: var(--ink); }
.role-card p { min-height: 0; }
.preview-roles { display: grid; gap: 8px; margin-top: 16px; }
.preview-roles span { font: 11px/1.5 OfficeMono; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.preview-roles span:last-child { border-bottom: 0; }
select.field { width: 100%; padding: 12px 15px; }
.page-title h1 { font-size: clamp(34px,4vw,52px); }
.empty { border-color: #35392e; }
.footer { line-height: 1.8; font-size: 11px; align-items: start; flex-wrap: wrap; }
.footer > span { max-width: 100%; }
.launch-grid { grid-template-columns: minmax(0,1.1fr) minmax(260px,.9fr); gap: 36px; }
.readiness > div { align-items: baseline; }
.readiness strong { text-align: right; }
.metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.campaign-note { color: #11130f; }
.campaign-note .eyebrow { color: #35331c; }
#toast { background: #edece3; color: #171a13; }
@media (max-width: 1200px) {
  :root { --nav: 196px; --gutter: 28px; }
  .top-actions { gap: 14px; }
  .top-actions .network span { display: none; }
  .hero-copy { padding: 30px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-copy > p { font-size: 14px; }
  .market-rail > div { padding: 16px; }
  .latest-section .empty { grid-template-columns: 42px minmax(0,1fr); }
  .latest-section .empty .button { grid-column: 2; grid-row: 3; margin-top: 16px; justify-self: start; }
  .service-register { gap: 30px; padding: 30px; }
  .home-services > section { gap: 26px; padding: 28px; }
}
@media (max-width: 1000px) {
  :root { --nav: 0px; --top: 64px; }
  .topbar { padding: 0 24px; }
  #menu-toggle { display: block; }
  #sidebar { width: 240px; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease,visibility .2s; }
  body.menu-open #sidebar { transform: translateX(0); visibility: visible; box-shadow: 18px 0 45px #0008; }
  #sidebar nav a { font-size: 14px; }
  .topbar .brand { font-size: 21px; }
  .topbar .brand img { width: 32px; height: 32px; }
  .page,.standy-home { padding-top: 28px; }
  .standy-hero { min-height: 390px; }
  .hero-copy h1 { font-size: clamp(32px,4.7vw,43px); }
}
@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .topbar { padding: 0 18px; gap: 12px; }
  .topbar .brand { font-size: 18px; letter-spacing: .025em; gap: 6px; }
  .topbar .brand img { width: 30px; height: 30px; }
  .top-actions { gap: 10px; }
  .top-actions .network,.top-actions .small-link,.top-actions .x-social { display: none; }
  .topbar .wallet { padding: 9px 12px; font-size: 12px; min-height: 38px; }
  .standy-hero { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .hero-copy { padding: 28px; }
  .hero-copy .eyebrow { font-size: 9px; margin-bottom: 20px; }
  .hero-copy h1 { font-size: clamp(33px,7vw,44px); }
  .hero-copy > p { font-size: 14px; margin-bottom: 23px; }
  .hero-foot { margin-top: 22px; font-size: 9px; }
  .hero-visual { height: 250px; min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-visual img { object-position: center 56%; }
  .market-rail { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 16px; }
  .market-rail > div { padding: 17px; }
  .market-rail > div:nth-child(3) { border-left: 0; }
  .market-rail > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .market-rail strong { font-size: 12px; }
  .latest-section,.operation-steps,.home-services,.service-register { margin-top: 36px; }
  .standy-home .section-label { gap: 14px; margin-bottom: 18px; }
  .standy-home .section-label .eyebrow { font-size: 9px; }
  .standy-home .section-label h2 { font-size: 27px; }
  .latest-section .empty { padding: 22px; column-gap: 16px; grid-template-columns: 36px minmax(0,1fr); }
  .latest-section .empty-mark { width: 36px; height: 36px; align-self: start; }
  .latest-section .empty h3 { font-size: 19px; }
  .latest-section .empty p { font-size: 13px; }
  .how-strip { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .how-strip article { padding: 23px; }
  .how-strip .step { margin-bottom: 17px; }
  .how-strip p { max-width: 100%; }
  .home-services > section,.service-register { grid-template-columns: minmax(0,1fr); padding: 24px; gap: 24px; }
  .home-services h2,.service-register h2 { font-size: 30px; }
  .campaign-flow { margin: 0; }
  .campaign-flow li { padding: 17px 0; }
  .community-route { padding: 22px 0 0; font-size: 10px; }
  .role-directory button { grid-template-columns: 24px minmax(0,1fr) 60px 15px; gap: 8px; }
  .role-directory strong { font-size: 13px; }
  .service-register .button { font-size: 12px; }
  .footer { margin-top: 36px; gap: 10px; }
  .launch-grid { display: flex; flex-direction: column; gap: 28px; }
  .launch-preview { position: static; width: 100%; }
  .launch-form { width: 100%; }
  .launch-progress { padding: 14px; gap: 10px; }
  .launch-progress > div { font-size: 11px; gap: 7px; min-width: 0; }
  .launch-progress > div + div { padding-left: 10px; }
  .launch-progress span { flex: none; width: 22px; height: 22px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .role-card { padding: 16px; }
  .specialist-mark { height: 105px; padding: 12px; }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .top-actions { gap: 5px; }
  .topbar .brand { font-size: 16px; gap: 4px; }
  .topbar .brand img { width: 26px; height: 26px; }
  .topbar .wallet { padding: 8px 9px; font-size: 11px; }
  #menu-toggle { width: 30px; }
  .hero-copy { padding: 24px 20px; }
  .cta-row { gap: 8px; }
  .cta-row .button { padding: 11px 12px; font-size: 12px; }
  .latest-section .empty { padding: 18px; grid-template-columns: minmax(0,1fr); }
  .latest-section .empty-mark { display: none; }
  .latest-section .empty h3,.latest-section .empty p,.latest-section .empty .button { grid-column: 1; }
  .section-label .text-link { font-size: 11px; }
  .standy-home .section-label h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; } }
