/* Styles for secondary pages: developers, partners, legal, 404.
   Builds on site.css tokens; nothing here redefines shared components. */

/* ---------- Page hero ---------- */
.page-hero { background: var(--ink); color: var(--paper); padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero .h1 { margin-top: 20px; max-width: 16ch; }
.page-hero .eyebrow, .nf .eyebrow { color: var(--lime); }
.page-hero .lead, .nf .lead { color: var(--mist); }
.page-hero .container, .nf .container { position: relative; }
.page-hero .lead { margin-top: 24px; }
.page-hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero__ring {
  position: absolute; right: -140px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%);
  border-radius: 50%; border: 34px solid var(--lime); opacity: .08; pointer-events: none;
}
@media (max-width: 720px) { .page-hero__ring { width: 320px; height: 320px; right: -160px; border-width: 22px; } }

.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-md);
  background: var(--lime-soft); border: 1.5px solid rgba(228, 255, 58, .5); color: var(--paper); font-size: 15px;
}
.notice--light { background: #FFF6DE; border-color: var(--warn); color: var(--ink); }
.notice svg { flex: none; margin-top: 2px; }

/* ---------- Developers: docs layout ---------- */
.docs { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .docs { grid-template-columns: 230px minmax(0, 1fr); } }
.docs__nav { display: none; }
@media (min-width: 980px) {
  .docs__nav { display: block; position: sticky; top: 104px; align-self: start; }
}
.docs__nav h2 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.docs__nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.docs__nav a {
  display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 10px; border-radius: 10px;
  text-decoration: none; font-family: var(--font-mono); font-size: 13px; color: var(--slate);
}
.docs__nav a:hover, .docs__nav a.is-active { background: var(--white); color: var(--ink); }
.docs__main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.method {
  display: inline-flex; align-items: center; justify-content: center; min-width: 50px; padding: 3px 8px;
  border-radius: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em;
}
.method--post { background: var(--lime); color: var(--ink); }
.method--get { background: var(--ink); color: var(--paper); }
.docs__nav .method { min-width: 40px; font-size: 10px; padding: 2px 6px; }

.endpoint { background: var(--white); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); scroll-margin-top: 96px; }
.endpoint__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.endpoint__path { font-family: var(--font-mono); font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; word-break: break-all; }
.endpoint__desc { margin-top: 12px; color: var(--slate); max-width: 64ch; }
.endpoint__io { margin-top: 20px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.endpoint__io h3 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.endpoint__io .code { font-size: 12.5px; padding: 16px 18px; }

.featured-response { border: 2px solid var(--lime); }

.webhooks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.webhook__name { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--lime); }

/* ---------- Partners: two-column responsibilities ---------- */
.duty-list { list-style: none; display: flex; flex-direction: column; gap: 0; margin-top: 20px; }
.duty-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.duty-list li:last-child { border-bottom: 0; }
.card--paper .duty-list li, .card .duty-list li { border-color: var(--line-2); }
.card--dark .duty-list li { border-color: var(--line-dark); }
.duty-list svg { flex: none; margin-top: 3px; }

/* Architecture diagram */
.arch { display: grid; gap: 0; max-width: 760px; margin: 0 auto; }
.arch__tier {
  border-radius: var(--r-lg); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ink-3); border: 1px solid var(--line-dark); color: var(--paper);
}
.arch__tier-name { font-family: var(--font-display); font-weight: 800; font-stretch: 92%; font-size: clamp(18px, 2.4vw, 24px); letter-spacing: .01em; }
.arch__tier--core {
  background: var(--ink); border: 2px solid var(--lime); padding: 22px; display: block;
  box-shadow: 0 0 0 8px var(--lime-soft), 0 30px 60px -30px rgba(228, 255, 58, .35);
}
.arch__core-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.arch__core-head .arch__tier-name { color: var(--lime); font-size: clamp(22px, 3vw, 30px); }
.arch__modules { margin-top: 18px; list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.arch__modules li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--ink-3); border: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em;
}
.arch__modules li::before { content: "├"; color: var(--lime); }
.arch__modules li:last-child::before { content: "└"; }
.arch__tier--capital { background: transparent; border-style: dashed; border-color: #4A5664; }

/* Capital structures */
.structure { display: flex; flex-direction: column; gap: 12px; }
.structure__n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }

/* Placeholder slots */
.slots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.slot { border: 1.5px dashed var(--grey); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.slot__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-2); }
.slot__value { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--paper); }

/* ---------- Legal ---------- */
.legal { max-width: 780px; }
.legal section { scroll-margin-top: 96px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.legal section:last-child { border-bottom: 0; }
.legal h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.01em; }
.legal p, .legal ul { margin-top: 14px; color: var(--slate); }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.legal__toc a { text-decoration: none; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - 72px); display: flex; align-items: center; background: var(--ink); color: var(--paper); padding: 80px 0; }
.nf__ring { width: min(260px, 60vw); height: auto; }
