/* Inner pages. Requires common.css. */

/* Page hero */
.phero {
  background: radial-gradient(130% 130% at 85% 5%, var(--navy-3) 0%, var(--navy) 50%, var(--navy-deep) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.phero::after {
  content: "";
  position: absolute;
  width: 540px; height: 540px;
  right: -170px; bottom: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,138,4,0.26) 0%, transparent 62%);
  pointer-events: none;
}
.phero__inner {
  max-width: var(--maxw-box);
  margin: 0 auto;
  padding: clamp(2.8rem, 8vw, 4.8rem) var(--pad-x) clamp(2.4rem, 6vw, 3.6rem);
  position: relative;
  z-index: 1;
}
.phero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.033em;
  font-weight: 800;
  text-wrap: balance;
  max-width: 20ch;
}
.phero__desc {
  margin: 1.3rem 0 0;
  /* No ch limit: two-column heroes are sized by the grid column, and
     full-width ones were breaking mid-page. */
  font-size: clamp(0.98rem, 1.6vw, 1.14rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}
.phero__meta {
  margin: 1.7rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.chip svg { width: 13px; height: 13px; color: var(--orange-soft); }
.phero__actions { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Split hero: text plus credential panel */
.phero__inner--split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .phero__inner--split { grid-template-columns: 1fr; } }

.phero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 1.6rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.phero__aside p {
  margin: 0;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
}
.phero__aside strong { color: var(--white); font-weight: 700; }
/* Larger seal than in the footer; clear space comes from the panel padding. */
.seal--lg img { width: 158px; }

/* Breadcrumb */
.crumb {
  margin: 0 0 1.2rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.crumb a { text-decoration: none; color: rgba(255,255,255,0.6); }
.crumb a:hover { color: var(--orange-soft); }
.crumb span { margin: 0 0.5rem; opacity: 0.5; }

/* Sections */
.sec { padding: clamp(3rem, 7vw, 4.8rem) var(--pad-x); }
.sec--alt {
  background: var(--paper-card);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.sec__inner { max-width: var(--maxw); margin: 0 auto; }

/* Prose */
.prose { font-size: clamp(0.98rem, 1.5vw, 1.06rem); color: var(--ink-soft); line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 {
  margin: 2.6rem 0 0.9rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}
.prose h3 {
  margin: 1.9rem 0 0.6rem;
  font-size: clamp(1.02rem, 2.1vw, 1.16rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.prose p { margin: 0 0 1.1rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 2px; }
html[data-theme="dark"] .prose a { color: var(--orange-soft); }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin: 0 0 0.5rem; }
.prose li::marker { color: var(--orange); }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 2.4rem 0; }

/* Callout note */
.note {
  border-left: 3px solid var(--orange);
  background: var(--paper-card);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.sec--alt .note { background: var(--paper); }

/* Cards */
.cards { display: grid; gap: 1.1rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.sec--alt .card { background: var(--paper); }
.card__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(245,138,4,0.11);
  color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.05rem;
  flex-shrink: 0;
}
html[data-theme="dark"] .card__icon { color: var(--orange-soft); }
.card__icon--navy { background: rgba(10,32,68,0.08); color: var(--navy); }
html[data-theme="dark"] .card__icon--navy { background: rgba(120,160,230,0.14); color: #8fb3e8; }
.card__icon svg { width: 19px; height: 19px; }
.card h3 { margin: 0 0 0.45rem; font-size: 1.03rem; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; line-height: 1.3; }
.card p { margin: 0; font-size: 0.89rem; color: var(--ink-soft); line-height: 1.6; }
.card ul { margin: 0.7rem 0 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }
.card li { margin-bottom: 0.35rem; }
.card li::marker { color: var(--orange); }

/* Check list */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.check-list--2 { grid-template-columns: repeat(2, 1fr); gap: 0.85rem 2rem; }
@media (max-width: 680px) { .check-list--2 { grid-template-columns: 1fr; } }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
.check-list li::before {
  content: "";
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 0.16rem;
  border-radius: 50%;
  background: rgba(245,138,4,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f58a04' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}
.check-list strong { color: var(--ink); font-weight: 700; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.7rem; }
.faq details {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.sec--alt .faq details { background: var(--paper); }
.faq details[open] { border-color: rgba(245,138,4,0.4); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.012em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 18px; height: 18px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f58a04' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.22s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 1.3rem 1.2rem; font-size: 0.93rem; color: var(--ink-soft); line-height: 1.68; }
.faq__body p { margin: 0 0 0.8rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* Forms */
.form-wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

.form-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.2rem);
}
.sec--alt .form-card { background: var(--paper); }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}
.field label .req { color: var(--orange-deep); }
html[data-theme="dark"] .field label .req { color: var(--orange-soft); }
.field__hint { display: block; font-weight: 500; font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.15rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}
.sec--alt .field input,
.sec--alt .field select,
.sec--alt .field textarea { background: var(--paper-card); }
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237386a0' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  padding-right: 2.4rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245,138,4,0.16);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Anti-spam honeypot, hidden from humans */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.4rem 0; }
.consent label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  cursor: pointer;
}
/* the link inside the label keeps the link cursor */
.consent label a { cursor: pointer; }
.consent a { color: var(--orange-deep); }
html[data-theme="dark"] .consent a { color: var(--orange-soft); }

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 11px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.form-status[hidden] { display: none; }
.form-status--ok { background: rgba(37,165,90,0.1); border: 1px solid rgba(37,165,90,0.35); color: #1c7a44; }
html[data-theme="dark"] .form-status--ok { color: #6fdba0; }
.form-status--err { background: rgba(214,60,50,0.09); border: 1px solid rgba(214,60,50,0.32); color: #b8362c; }
html[data-theme="dark"] .form-status--err { color: #ff9188; }

/* Form sidebar */
.aside-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  padding: 1.7rem 1.6rem;
  position: relative;
  overflow: hidden;
}
.aside-card::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  right: -120px; bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,138,4,0.24) 0%, transparent 62%);
  pointer-events: none;
}
.aside-card > * { position: relative; z-index: 1; }
.aside-card h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.aside-card p { margin: 0 0 1.2rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.6; }
.aside-card .norm-list strong { color: var(--white); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
}
.sec--alt .contact-card { background: var(--paper); }
.contact-card:hover {
  border-color: rgba(245,138,4,0.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(10,32,68,0.09);
}
html[data-theme="dark"] .contact-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

/* Card with no destination yet: dimmed, no hover. */
.contact-card--soon { opacity: 0.6; }
.contact-card--soon:hover { border-color: var(--rule); transform: none; box-shadow: none; }
.soon {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.08rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--rule-soft);
  color: var(--ink-faint);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 0.12em;
}
.contact-card__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(245,138,4,0.11);
  color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
html[data-theme="dark"] .contact-card__icon { color: var(--orange-soft); }
.contact-card__icon svg { width: 19px; height: 19px; }
.contact-card__label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.4rem;
}
.contact-card strong { display: block; font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; margin-bottom: 0.3rem; }
.contact-card p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; }

/* Data table, privacy page */
.tbl-wrap { overflow-x: auto; margin: 1.4rem 0; }
.tbl { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.9rem; }
.tbl th, .tbl td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.55; }
.tbl th {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom-color: var(--ink-faint);
}
.tbl td { color: var(--ink-soft); }
.tbl td strong { color: var(--ink); }

/* Legal pages: table of contents, numbered sections, callouts */
.legal { max-width: var(--maxw); margin: 0 auto; }

.intro p { margin: 0 0 1.15rem; color: var(--ink-soft); line-height: 1.75; }
.intro p:first-child {
  font-size: clamp(1.06rem, 2vw, 1.24rem);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}
.intro p:last-child { margin-bottom: 0; }
.intro strong { color: var(--ink); font-weight: 700; }

/* Table of contents */
.toc {
  margin: clamp(2.2rem, 5vw, 3rem) 0 0;
  padding: 1.5rem 1.7rem 1.6rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 18px;
}
.toc__title {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1rem;
}
.toc ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  counter-reset: toc;
}
@media (max-width: 720px) { .toc ol { grid-template-columns: 1fr; } }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 0.75rem; align-items: baseline;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: color 0.18s;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8em; font-weight: 600;
  color: var(--orange);
  flex-shrink: 0;
}
.toc a:hover { color: var(--ink); }

/* Numbered sections */
.lsection { margin-top: clamp(2.6rem, 6vw, 3.8rem); scroll-margin-top: 90px; }
.lsection__head {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 1.4rem; padding-bottom: 1rem;
  border-bottom: 2px solid var(--navy);
}
html[data-theme="dark"] .lsection__head { border-bottom-color: var(--rule); }
.lsection__num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  font-weight: 600; color: var(--orange);
  line-height: 1; flex-shrink: 0;
}
.lsection__head h2 {
  margin: 0;
  font-size: clamp(1.22rem, 3vw, 1.6rem);
  line-height: 1.18; letter-spacing: -0.022em;
  font-weight: 700; color: var(--ink);
  text-wrap: balance;
}
.lsection p { margin: 0 0 1.05rem; color: var(--ink-soft); line-height: 1.75; }
.lsection p:last-child { margin-bottom: 0; }
.lsection strong { color: var(--ink); font-weight: 700; }
.lsection a { color: var(--orange-deep); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(245,138,4,0.35); }
.lsection a:hover { border-bottom-color: var(--orange); }
html[data-theme="dark"] .lsection a { color: var(--orange-soft); }

.bullets { list-style: none; margin: 0.3rem 0 1.1rem; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.bullets li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); line-height: 1.65; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.66em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}
.terms { list-style: none; margin: 0.3rem 0 1.1rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.terms > li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); line-height: 1.7; }
.terms > li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 9px; height: 9px; background: var(--orange);
  border-radius: 2px; transform: rotate(45deg) translateY(-2px);
}
.terms .lbl { color: var(--ink); font-weight: 700; }

/* Callout */
.callout {
  margin: 1.6rem 0 0;
  background: var(--navy);
  color: var(--off-white);
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
}
.callout__eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 0.7rem;
}
.callout p { color: rgba(241,243,246,0.84) !important; margin: 0 0 0.7rem; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--white) !important; }
.callout a { color: var(--orange-soft) !important; border-bottom-color: rgba(255,174,71,0.4) !important; }

/* Back to top */
.totop {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 2.6rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); text-decoration: none;
  transition: color 0.2s;
}
.totop:hover { color: var(--orange-deep); }
html[data-theme="dark"] .totop:hover { color: var(--orange-soft); }
.totop svg { width: 14px; height: 14px; }

.lsub {
  margin: 1.8rem 0 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
}

/* Card footer metadata */
.card__meta {
  margin: 1.1rem 0 0 !important;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem !important;
  color: var(--ink) !important;
  font-weight: 700;
}
/* :not() keeps the block label from hitting the footnote asterisk */
.card__meta span:not(.spec-ast) {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}

.phero__aside-title {
  margin: 0 0 0.2rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

/* Spec list */
.spec-list { margin: 0; padding: 0; display: flex; flex-direction: column; }
.spec-list > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.spec-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list dt {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding-top: 0.18rem;
}
.spec-list dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}
.spec-list dd small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  line-height: 1.45;
  margin-top: 0.15rem;
}
@media (max-width: 420px) {
  .spec-list > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* Fixed layout: on auto, the column with the longest cell crushes the other. */
.tbl--compare { table-layout: fixed; }
.tbl--compare th:first-child,
.tbl--compare td:first-child { width: 20%; }
.tbl--compare th:not(:first-child),
.tbl--compare td:not(:first-child) { width: 40%; }

.spec-ast { color: var(--orange); margin-left: 0.1rem; }

/* Section footnote */
.sec-note {
  margin: 1.6rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* Option groups */
.field-group { border: 0; margin: 0 0 1.5rem; padding: 0; }
.field-group legend {
  padding: 0;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.55rem;
  letter-spacing: -0.005em;
}
.opts { display: grid; gap: 0.15rem 1.4rem; }
.opts--2 { grid-template-columns: repeat(2, 1fr); }
.opts--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) {
  .opts--2, .opts--3 { grid-template-columns: 1fr; }
}
.opt {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.42rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
  cursor: pointer;
  margin: 0;
}
/* Symbol via background-image: pseudo-elements on <input> aren't reliable. */
.opt input,
.consent input {
  -webkit-appearance: none;
  appearance: none;
  width: 19px; height: 19px;
  flex-shrink: 0;
  margin: 0.1rem 0 0;
  border: 1.5px solid var(--ink-faint);
  background-color: var(--paper-card);
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.sec--alt .opt input,
.sec--alt .consent input { background-color: var(--paper); }

.opt input[type="checkbox"],
.consent input[type="checkbox"] { border-radius: 6px; }
.opt input[type="radio"] { border-radius: 50%; }

.opt input:hover,
.consent input:hover { border-color: var(--orange); }

.opt input:checked,
.consent input:checked {
  background-color: var(--orange);
  border-color: var(--orange);
}
.opt input[type="checkbox"]:checked,
.consent input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px 12px;
}
.opt input[type="radio"]:checked {
  background-image: radial-gradient(circle, #fff 0 3.2px, transparent 3.6px);
}

.opt input:focus-visible,
.consent input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245,138,4,0.28);
}

/* Whole row reacts: bigger click target and a highlight for the choice */
.opt {
  border-radius: 9px;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  transition: background 0.15s, color 0.15s;
}
.opt:hover { color: var(--ink); background: var(--rule-soft); }
.opt:has(input:checked) { color: var(--ink); font-weight: 600; }

/* File upload */
.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  border: 1.5px dashed var(--rule);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color 0.18s, background 0.18s;
}
.sec--alt .file-drop { background: var(--paper-card); }
.file-drop:hover { border-color: var(--orange); }
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-drop__icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(245,138,4,0.11);
  color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
html[data-theme="dark"] .file-drop__icon { color: var(--orange-soft); }
.file-drop__icon svg { width: 18px; height: 18px; }
.file-drop__text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  word-break: break-word;
}
.file-drop--filled { border-style: solid; border-color: rgba(245,138,4,0.5); }
.file-drop--filled .file-drop__text { color: var(--ink); }

.form-note {
  margin: 0 0 1.3rem;
  font-size: 0.84rem;
  color: var(--ink-faint);
  line-height: 1.6;
}
.form-note a { color: var(--orange-deep); }
html[data-theme="dark"] .form-note a { color: var(--orange-soft); }

/* Expected-document tags, swapped by property type */
.doc-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.45rem;
  margin: 0 0 0.7rem;
}
.doc-tags__for {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-right: 0.2rem;
}
.doc-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.sec--alt .doc-tag { background: var(--paper-card); }

/* Per-field error state */
.field--erro input,
.field--erro select,
.field--erro textarea { border-color: #d63c32; }
.field--erro input:focus,
.field--erro select:focus,
.field--erro textarea:focus { box-shadow: 0 0 0 3px rgba(214,60,50,0.16); }
.field__erro {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.79rem;
  font-weight: 600;
  color: #b8362c;
  line-height: 1.45;
}
html[data-theme="dark"] .field__erro { color: #ff9188; }

.homolog {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.7rem 0 0;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
}
.homolog svg { width: 24px; height: 24px; color: var(--orange); flex-shrink: 0; }
.homolog strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}
.homolog small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.02em;
}

/* stretch makes the logo column follow the paragraph height. */
.note--app { display: flex; align-items: stretch; gap: 1.4rem; }
.note--app p { margin: 0; }
.app-ref {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-ref img { width: 132px; height: auto; display: block; }
/* Navy wordmark on transparent: dark theme needs a light plate behind it. */
html[data-theme="dark"] .app-ref {
  background: var(--off-white);
  padding: 0 1.1rem;
  border-radius: 10px;
}
@media (max-width: 640px) {
  .note--app { flex-direction: column; gap: 1rem; }
}

.file-drop__text small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--ink-faint);
  line-height: 1.4;
}

/* Full: no more files accepted */
.file-drop--cheio { opacity: 0.55; pointer-events: none; }

/* Chosen files, individually removable */
.file-list { list-style: none; margin: 0.7rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.file-list:empty { margin: 0; }
.file-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.88rem;
  color: var(--ink);
}
.sec--alt .file-list li { background: var(--paper-card); }
.file-list svg { width: 16px; height: 16px; color: var(--orange-deep); flex-shrink: 0; }
html[data-theme="dark"] .file-list svg { color: var(--orange-soft); }
.file-list__nome { flex: 1; word-break: break-all; font-weight: 600; }
.file-list__tam { color: var(--ink-faint); font-size: 0.8rem; flex-shrink: 0; }
.file-list__x {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  color: var(--ink-faint);
  display: flex;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.file-list__x:hover { color: #b8362c; background: rgba(214,60,50,0.1); }
.file-list__x svg { width: 14px; height: 14px; color: inherit; }

/* :not(.app-ref) spares the logo link, which takes no underline. */
.note a:not(.app-ref) {
  color: var(--orange-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(245,138,4,0.35);
  transition: border-color 0.18s;
}
.note a:not(.app-ref):hover { border-bottom-color: var(--orange); }
html[data-theme="dark"] .note a:not(.app-ref) { color: var(--orange-soft); }

.card a,
.faq__body a {
  color: var(--orange-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(245,138,4,0.35);
  transition: border-color 0.18s;
}
.card a:hover,
.faq__body a:hover { border-bottom-color: var(--orange); }
html[data-theme="dark"] .card a,
html[data-theme="dark"] .faq__body a { color: var(--orange-soft); }
