/* GetForge — Resources design system.
   Mirrors the app tokens (navy/gold, serif display, sans body). Self-contained,
   no external requests. Shared by every page under /resources/. */

:root{
  --ink:#eae5d9;
  --dim:#a8a294;
  --gold:#e6b357;
  --gold-bright:#f7ce80;
  --gold-deep:#b07f1f;
  --line:rgba(234,229,217,.12);
  --line-gold:rgba(230,179,87,.28);
  --card:rgba(255,255,255,.028);
  --glass:linear-gradient(180deg,rgba(8,11,26,.66),rgba(8,11,26,.44));
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
  --sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;color:var(--ink);font-family:var(--serif);line-height:1.65;
  background:
    radial-gradient(120% 42% at 50% 100%, rgba(230,140,52,.20), rgba(230,140,52,0) 70%),
    linear-gradient(180deg,#05060f 0%,#0a0d22 34%,#101031 55%,#1d1430 74%,#2c1a24 88%,#3a2114 100%);
  background-attachment:fixed;min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--gold-bright);text-decoration:none}
a:hover{color:var(--gold)}

/* ---------- header : byte-aligned to the app shell (app/index.html) ---------- */
header.site{
  position:sticky;top:0;z-index:30;
  display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap;
  padding:.95rem clamp(1rem,4vw,3rem);
  background:rgba(5,6,15,.68);
  -webkit-backdrop-filter:blur(14px) saturate(1.1);
  backdrop-filter:blur(14px) saturate(1.1);
  border-bottom:1px solid var(--line);
}
.wordmark{
  font-family:var(--serif);font-size:1.3rem;letter-spacing:.01em;color:var(--ink);
  background:none;border:none;cursor:pointer;text-decoration:none;
}
.wordmark em{font-style:italic;color:var(--gold)}
/* The wordmark is a logo, not a link. It is an <a> here (the app renders it as
   a button), so the generic a:hover above would tint "Get" gold on hover and
   make the resources header behave differently from the homepage. Pin it. */
.wordmark:hover{color:var(--ink)}
.wordmark:hover em{color:var(--gold)}
nav.site{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap}
.navlink{
  background:none;border:none;cursor:pointer;
  font-family:var(--sans);font-size:.78rem;letter-spacing:.13em;text-transform:uppercase;
  /* Stated, not inherited: body{line-height:1.65} above is right for prose and
     wrong for a nav row — it made these links 4.6px taller than the app's. */
  line-height:normal;
  color:var(--dim);padding:.5rem .75rem;border-radius:8px;
  transition:color .25s;text-decoration:none;
}
.navlink:hover{color:var(--ink)}
.navlink[aria-current="page"]{color:var(--gold-bright)}
.nav-cta{
  font-family:var(--sans);font-size:.75rem;font-weight:600;letter-spacing:.13em;text-transform:uppercase;
  background:linear-gradient(180deg,var(--gold-bright),var(--gold));color:#241503 !important;
  border:none;border-radius:999px;padding:.6em 1.4em;cursor:pointer;margin-left:.35rem;text-decoration:none;
  box-shadow:0 3px 18px rgba(230,179,87,.25);
  transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s,filter .25s;
}
.nav-cta:hover{filter:brightness(1.07);transform:translateY(-1px);box-shadow:0 6px 26px rgba(230,179,87,.4);color:#241503 !important}
/* Signed-in credits chip — byte-matched to the SPA's .credit-chip so /resources/
   reads as the same site. It is an <a> here (a real link to plans) rather than
   the app's <button>, hence the added text-decoration:none. */
.credit-chip{
  display:inline-flex;align-items:center;gap:.45rem;
  /* Dim like any other nav item; gold only on its own page. From /resources/
     you are never on Profile, so it stays dim here — the rule is mirrored from
     app/index.html so the two worlds cannot drift. */
  border:1px solid var(--line);border-radius:999px;
  padding:.35rem .85rem;cursor:pointer;text-decoration:none;
  font-family:var(--sans);font-size:.78rem;letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink);
  background:rgba(230,179,87,.07);
  line-height:normal;   /* see .navlink above */
}
.credit-chip[aria-current="page"]{border-color:var(--line-gold)}
/* The numeral is the deliberate exception: serif, echoing the wordmark, and it
   must not inherit the chip's uppercase/tracking. */
.credit-chip .n{font-family:var(--serif);font-size:1.05rem;letter-spacing:normal;text-transform:none;color:var(--gold-bright)}
/* No font-size here: it inherits the chip, so CREDITS and PRO stay equal. */
/* Matches app/index.html: PROFILE is a nav destination and follows the same
   active rule as the other nav items — --dim normally, --gold-bright only on
   its own page. From /resources/ you are never on Profile, so it stays dim
   here; the rule exists so the two worlds do not drift. */
.credit-chip .plan-tagline{
  letter-spacing:.13em;text-transform:uppercase;color:var(--dim);
  border-left:1px solid var(--line-gold);padding-left:.5rem;
}
.credit-chip[aria-current="page"] .plan-tagline{color:var(--gold-bright)}
.credit-chip .plan-tagline:empty{display:none}
.credit-chip:hover{border-color:var(--gold)}

/* ---------- resources sub-nav : persistent section context under the shell ---------- */
nav.subnav{
  display:flex;align-items:center;gap:.15rem;flex-wrap:wrap;
  padding:.5rem clamp(1rem,4vw,3rem);
  background:rgba(5,6,15,.5);
  -webkit-backdrop-filter:blur(14px) saturate(1.1);
  backdrop-filter:blur(14px) saturate(1.1);
  border-bottom:1px solid var(--line);
}
nav.subnav .subnav-home{
  font-family:var(--mono);font-size:.66rem;letter-spacing:.26em;text-transform:uppercase;
  color:var(--gold);padding:.4rem .55rem .4rem 0;margin-right:.4rem;
}
nav.subnav .subnav-home:hover{color:var(--gold-bright)}
nav.subnav a{
  font-family:var(--sans);font-size:.8rem;letter-spacing:.03em;
  color:var(--dim);padding:.4rem .7rem;border-radius:8px;
  transition:color .2s,background .2s;text-decoration:none;
}
nav.subnav a:hover{color:var(--ink);background:var(--card)}
nav.subnav .subnav-home:hover{background:none}
nav.subnav a[aria-current="page"]{color:var(--gold-bright);background:rgba(230,179,87,.08)}
nav.subnav .subnav-home[aria-current="page"]{color:var(--gold-bright);background:none}

/* layout */
/* Must match .shell in app/index.html exactly. These pages sit beside the
   app and any difference in content width reads as a different site —
   920px here vs 1020px there put the text 100px narrower. If .shell
   changes, change this with it. */
main{max-width:1020px;margin:0 auto;padding:clamp(1.5rem,4vw,3rem) clamp(1rem,4vw,2rem) clamp(2.5rem,6vw,4rem)}
.kicker{
  display:inline-block;font-family:var(--sans);font-size:.74rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--gold);margin-bottom:.7rem;
}
h1{font-size:clamp(2rem,5vw,3rem);line-height:1.12;margin:.1rem 0 .6rem;font-weight:600}
h1 em{color:var(--gold);font-style:italic}
h2{font-size:clamp(1.35rem,3vw,1.8rem);margin:2.4rem 0 .8rem;font-weight:600}
h3{font-size:1.2rem;margin:1.6rem 0 .5rem;font-weight:600}
.lede{font-size:clamp(1.05rem,2.4vw,1.28rem);color:var(--ink);margin:0 0 1.6rem}
.eff{color:var(--dim);font-family:var(--sans);font-size:.88rem;margin:-.1rem 0 1.6rem}
p,li{color:#d7d1c4}
.dim{color:var(--dim)}
.crumbs{font-family:var(--sans);font-size:.85rem;color:var(--dim);margin-bottom:1.4rem}
.crumbs a{color:var(--dim)}.crumbs a:hover{color:var(--gold)}

/* cards / grid */
.grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));margin:1.6rem 0}
.card{
  display:block;padding:1.4rem 1.5rem;border:1px solid var(--line);border-radius:16px;
  background:var(--card);transition:border-color .18s,transform .18s,background .18s;
}
a.card:hover{border-color:var(--line-gold);transform:translateY(-2px);background:rgba(255,255,255,.045)}
.card h3{margin:.1rem 0 .4rem;color:var(--ink)}
.card .arrow{color:var(--gold);font-family:var(--sans)}
.card p{margin:.3rem 0 0;font-size:.98rem}
.tag{
  display:inline-block;font-family:var(--sans);font-size:.72rem;letter-spacing:.08em;
  text-transform:uppercase;color:var(--gold);border:1px solid var(--line-gold);
  border-radius:999px;padding:.2rem .6rem;margin-bottom:.7rem;
}

/* article list */
.post{padding:1.5rem 0;border-bottom:1px solid var(--line)}
.post:last-child{border-bottom:0}
.post h3{margin:.2rem 0 .35rem;font-size:1.35rem}
.post .meta{font-family:var(--sans);font-size:.82rem;color:var(--dim);margin-bottom:.4rem}
article.body{max-width:64ch}
article.body.wide{max-width:none}
article.body p{margin:1rem 0}
article.body h2{margin-top:2rem}
article.body ul,article.body ol{padding-left:1.2rem}
article.body li{margin:.4rem 0}
blockquote{
  border-left:3px solid var(--gold);margin:1.4rem 0;padding:.4rem 0 .4rem 1.2rem;
  color:var(--ink);font-style:italic;
}

/* FAQ */
details.faq{border:1px solid var(--line);border-radius:12px;background:var(--card);margin:.7rem 0;padding:0 1.2rem}
details.faq summary{
  cursor:pointer;padding:1rem 0;font-size:1.08rem;font-weight:600;list-style:none;
  display:flex;justify-content:space-between;gap:1rem;align-items:center;
}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::after{content:"+";color:var(--gold);font-family:var(--sans);font-size:1.3rem}
details.faq[open] summary::after{content:"\2013"}
details.faq .a{padding:0 0 1.1rem;color:#d7d1c4;font-family:var(--sans);font-size:.98rem;line-height:1.62}
details.faq .a b{color:var(--gold-bright)}

/* changelog */
.rel{padding:1.5rem 0;border-bottom:1px solid var(--line)}
.rel:last-child{border-bottom:0}
.rel .ver{font-family:var(--mono);color:var(--gold);font-size:.95rem}
.rel .date{font-family:var(--sans);color:var(--dim);font-size:.82rem;margin-left:.6rem}
.rel h3{margin:.5rem 0 .5rem}
.rel ul{padding-left:1.15rem;margin:.4rem 0 0}
.rel li{margin:.35rem 0;font-family:var(--sans);font-size:.96rem}

/* form */
.glass{background:var(--glass);border:1px solid var(--line-gold);border-radius:18px;padding:1.6rem;margin:1.4rem 0}
.field{margin:0 0 1rem;display:flex;flex-direction:column;gap:.35rem}
.field label{font-family:var(--sans);font-size:.9rem;color:var(--ink)}
.field .opt{color:var(--dim)}
.field input,.field textarea,.field select{
  font-family:var(--sans);font-size:1rem;color:var(--ink);
  background:rgba(5,6,15,.5);border:1px solid var(--line);border-radius:10px;padding:.7rem .85rem;
}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--gold)}
.field textarea{min-height:110px;resize:vertical}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.btn{
  font-family:var(--sans);font-size:1rem;font-weight:600;cursor:pointer;border:0;border-radius:12px;
  padding:.8rem 1.3rem;transition:transform .16s,filter .16s;
}
.btn-gold{color:#120d02;background:linear-gradient(180deg,var(--gold-bright),var(--gold));box-shadow:0 6px 22px rgba(230,179,87,.3)}
.btn-gold:hover{filter:brightness(1.06);transform:translateY(-1px)}
.btn-block{width:100%}
.btn[disabled]{opacity:.55;cursor:default;transform:none}
.msg{font-family:var(--sans);font-size:.95rem;padding:.8rem 1rem;border-radius:10px;margin-bottom:1rem;display:none}
.msg.show{display:block}
.msg.ok{background:rgba(120,200,120,.12);border:1px solid rgba(120,200,120,.4);color:#bfe6bf}
.msg.err{background:rgba(231,154,138,.12);border:1px solid rgba(231,154,138,.4);color:#e79a8a}
.msg a{color:inherit;text-decoration:underline}

/* "Ask us" form on the FAQ page */
.ask{margin:2.8rem 0 0}
.ask > h2{margin-bottom:.25rem}
/* Match the app's submit button: full-width gold pill, uppercase, spaced. */
.ask .btn{width:100%;border-radius:999px;text-transform:uppercase;letter-spacing:.1em;font-size:.92rem;padding:.9rem 1.3rem}
/* Gold accent on the heading em ("Ask us."), the brighter gold like the app. */
.ask h2 em{color:var(--gold-bright);font-style:italic}

/* callout */
.callout{border:1px solid var(--line-gold);background:rgba(230,179,87,.06);border-radius:14px;padding:1.1rem 1.3rem;margin:1.6rem 0}
.callout p{margin:.3rem 0}
.pill-row{display:flex;gap:.6rem;flex-wrap:wrap;margin:1.2rem 0}
.pill{font-family:var(--sans);font-size:.88rem;border:1px solid var(--line);border-radius:999px;padding:.4rem .9rem;color:var(--dim)}

/* footer — mirrors the SPA footer (app/index.html): same spread layout, links
   as direct flex children (not a bunched group), and the same typography, so
   /resources/ matches the Home/FAQ footer. Aligned to the same 1020px `main`
   measure above so it lines up under the page content. */
footer.site{
  border-top:1px solid var(--line);margin:3rem auto 0;
  max-width:1020px;width:100%;
  padding:1.8rem clamp(1rem,4vw,2rem);
  display:flex;gap:1rem;flex-wrap:wrap;align-items:center;justify-content:space-between;
  font-family:var(--sans);font-size:.78rem;letter-spacing:.05em;color:var(--dim);
}
footer.site a{color:rgba(234,229,217,.8)}footer.site a:hover{color:var(--gold-bright)}

/* --- Resources dropdown in the main nav (shared header, _header.js) --- */
.navdrop{position:relative;display:inline-block}
.navdrop-menu{
  position:absolute;top:100%;left:0;min-width:12rem;z-index:40;
  display:none;flex-direction:column;padding:.4rem;
  background:rgba(8,11,26,.97);border:1px solid var(--line-gold);border-radius:12px;
  box-shadow:0 12px 40px rgba(0,0,0,.5);
}
.navdrop:hover .navdrop-menu,
.navdrop:focus-within .navdrop-menu{display:flex}
.navdrop-menu a{
  font-family:var(--sans);font-size:.72rem;letter-spacing:.13em;text-transform:uppercase;
  color:var(--dim);padding:.5rem .7rem;border-radius:8px;text-decoration:none;
  transition:color .2s,background .2s;
}
.navdrop-menu a:hover{color:var(--ink);background:rgba(255,255,255,.05)}
.navdrop-menu a[aria-current="page"]{color:var(--gold-bright)}
/* mobile hamburger — hidden on desktop; toggles nav.site open (wired in _header.js) */
.nav-toggle{display:none}
/* 1024px is MEASURED, not picked, and matches app/index.html. The nav's width
   depends on the credits chip, so the widest case decides it:
      Pro / 400 credits ............ wraps below  873px
      Studio / 10,000 credits ...... wraps below  916px
      Studio / 10,000 + Admin link . wraps below 1001px
   ...but those are WINDOWS numbers. Font metrics differ per platform: CI
   (ubuntu) still wrapped at 1025px with the breakpoint at 1024. 1200 clears
   every platform measured so far. This was 720px, which left a 281px band
   (721-1001) with a wrapped nav and no button. */
@media (max-width:1200px){
  /* logo + toggle share the top row; the nav drops full-width below when open */
  .nav-toggle{
    display:inline-flex;align-items:center;justify-content:center;
    width:42px;height:42px;padding:0;cursor:pointer;color:var(--ink);
    background:none;border:1px solid var(--line);border-radius:10px;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after{
    content:"";display:block;width:20px;height:2px;border-radius:2px;background:var(--ink);
    transition:transform .2s ease,opacity .2s ease;
  }
  .nav-toggle-bars{position:relative}
  .nav-toggle-bars::before{position:absolute;left:0;top:-6px}
  .nav-toggle-bars::after{position:absolute;left:0;top:6px}
  header.site.nav-open .nav-toggle-bars{background:transparent}
  header.site.nav-open .nav-toggle-bars::before{transform:translateY(6px) rotate(45deg)}
  header.site.nav-open .nav-toggle-bars::after{transform:translateY(-6px) rotate(-45deg)}

  /* nav hidden by default; a full-width vertical list when the menu is open */
  nav.site{display:none;order:3;width:100%;flex-direction:column;align-items:flex-start;gap:.1rem;padding:.5rem 0 .2rem}
  header.site.nav-open nav.site{display:flex}
  nav.site .navlink{padding:.6rem .1rem}
  .navdrop{display:block;width:100%}
  .navdrop-menu{position:static;display:flex;border:none;box-shadow:none;background:none;padding:.2rem 0 .2rem .8rem}
  .nav-cta{margin:.5rem 0 .2rem}
}

/* Placeholder examples (a made-up domain, a DNS record type) are NOT links and
   must never look like one. Rendered as a muted inline token: --dim, not gold,
   so it reads as "fill this in yourself". Also note the examples deliberately
   avoid a leading "www." — browsers and mail clients auto-linkify that prefix
   even with no anchor in the markup, which is what made the guide look like it
   was offering a real, clickable address. RG, 24 Jul 2026. */
.ph{font-family:var(--mono);font-size:.92em;color:var(--dim);
    background:var(--card);border:1px solid var(--line);
    border-radius:4px;padding:.05em .38em;white-space:nowrap}
