/* Lakuhan public entry & guides — Editorial print specimen style (WCAG 2.2 AAA) */
:root {
  --home-paper: #f3f4ef;
  --home-surface: #fcfcf9;
  --home-soft: #e7ebe2;
  --home-card: #ffffff;
  --home-line: #b8c3b5;
  --home-ui-border: #536658;
  --home-ink: #121914;
  --home-muted: #28362c;
  --home-accent: #143624;
  --home-accent-hover: #0d2618;
  --home-accent-soft: #d9e7d8;
  --home-code-bg: #e7ece2;
  --home-code-ink: #12291c;
  --home-danger-bg: #fdf0ec;
  --home-danger-ink: #6b1705;
  --home-danger-line: #9e351e;
  --home-focus: #0d2618;
  --home-focus-halo: #f3f4ef;
  --r-sharp: 3px;

  /* Deep Forest contrast anchor band */
  --forest-bg: #132a1f;
  --forest-surface: #193628;
  --forest-line: #3e614e;
  --forest-ui-border: #7fa68e;
  --forest-ink: #f4f7f2;
  --forest-muted: #d3e5d9;
  --forest-accent: #d8f68b;
  --forest-code-bg: #0d1d15;
  --forest-danger-bg: #3d1710;
  --forest-danger-ink: #ffddd3;
  --forest-danger-line: #e08c75;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--home-ink);
  background: var(--home-paper);
  font-family: var(--font-body, "DM Sans", system-ui, sans-serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--r-sharp);
  background: var(--home-accent);
  color: #ffffff;
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

.wrap {
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 44px;
}

/* SC 2.4.12 Focus Not Obscured & SC 2.4.13 Focus Appearance (AAA) */
:where(a, button, input, select, textarea, summary, [tabindex], section[id], div[id]) {
  scroll-margin-top: 96px;
  scroll-margin-bottom: 48px;
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--home-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--home-focus-halo);
}
[data-surface="dark"] :where(a, button, input, [tabindex]):focus-visible,
html[data-theme="dark"] :where(a, button, input, [tabindex]):focus-visible {
  outline-color: #d8f68b;
  box-shadow: 0 0 0 5px #0e1410;
}
#main:focus { outline: none; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  padding: 2px 5px;
  border-radius: 2px;
  background: var(--home-code-bg);
  color: var(--home-code-ink);
}
[data-surface="dark"] code {
  background: var(--forest-code-bg);
  color: var(--forest-accent);
}

/* ---- Buttons & Inline Links (>=44px AAA targets, wraps cleanly at 320px) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 18px;
  border-radius: var(--r-sharp);
  border: 1.5px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
.btn--mint {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: #ffffff;
}
.btn--mint:hover {
  background: var(--home-accent-hover);
  border-color: var(--home-accent-hover);
}
.btn--outline {
  background: transparent;
  border-color: var(--home-ui-border);
  color: var(--home-ink);
}
.btn--outline:hover {
  background: var(--home-accent-soft);
  border-color: var(--home-accent);
}
.band--forest .btn--mint {
  background: #d8f68b;
  border-color: #d8f68b;
  color: #10241a;
}
.band--forest .btn--mint:hover {
  background: #e9fcae;
  border-color: #e9fcae;
}
.band--forest .btn--outline {
  border-color: var(--forest-ui-border);
  color: var(--forest-ink);
}
.band--forest .btn--outline:hover {
  background: #234634;
  border-color: #d8f68b;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 12px;
  border-radius: var(--r-sharp);
  border: 1.5px solid var(--home-ui-border);
  background: var(--home-card);
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.mini-btn:hover { background: var(--home-accent-soft); border-color: var(--home-accent); }
.mini-btn.is-active {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: #ffffff;
}
[data-surface="dark"] .mini-btn {
  background: var(--forest-bg);
  border-color: var(--forest-ui-border);
  color: var(--forest-ink);
}
[data-surface="dark"] .mini-btn:hover {
  background: #234634;
  border-color: #d8f68b;
}
[data-surface="dark"] .mini-btn.is-active {
  background: #d8f68b;
  border-color: #d8f68b;
  color: #10241a;
}

/* ---- Full-Width Editorial Bands ---- */
.band {
  width: 100%;
  border-bottom: 1px solid var(--home-line);
  padding-block: clamp(34px, 4.2vw, 56px);
}
.band--paper { background: var(--home-paper); }
.band--white { background: var(--home-surface); }
.band--forest {
  background: var(--forest-bg);
  color: var(--forest-ink);
  border-bottom-color: var(--forest-line);
}

.section-head {
  margin-bottom: clamp(20px, 2.6vw, 30px);
  max-width: 68ch;
}
.section-head h2 {
  font-family: var(--font-display, "DM Sans", system-ui, sans-serif);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin-bottom: 8px;
}
.section-head p {
  font-size: 15px;
  color: var(--home-muted);
}
.band--forest .section-head p { color: var(--forest-muted); }

.hero-layout > *,
.workbench-grid > *,
.dev-layout > *,
.comm-layout > *,
.calc-and-ops > *,
.buyer-safety-grid > * {
  min-width: 0;
  max-width: 100%;
}

.subhero__intro h1,
.hero-copy h1 {
  font-family: var(--font-display, "DM Sans", system-ui, sans-serif);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.06;
  margin-bottom: 14px;
}
.hero-lead {
  font-size: clamp(15.5px, 1.3vw, 17px);
  color: var(--home-muted);
  max-width: 60ch;
}

.specimen-heading {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--home-accent);
}
.specimen-ledger {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--home-ui-border);
}
.specimen-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: center;
  padding-block: 12px;
  border-bottom: 1px solid var(--home-line);
}
.specimen-item img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--home-ui-border);
  border-radius: 2px;
}
.specimen-item__meta { min-width: 0; }
.specimen-item__meta h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.specimen-item__meta h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.specimen-item__meta h3 a:hover { color: var(--home-accent); }
.specimen-item__meta p {
  font-size: 13px;
  color: var(--home-muted);
}
.specimen-item__price {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---- Index 2-Side Role Gateway (Buyer | Seller) ---- */
.split-gate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-height: clamp(500px, calc(100svh - 156px), 740px);
  border-bottom: 1px solid var(--home-line);
}
.split-side {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  transition: background-color .16s ease;
}
.split-side--buyer {
  background: var(--home-paper);
  color: var(--home-ink);
  border-right: 1px solid var(--home-line);
}
.split-side--buyer:has(.split-side__cover:hover) {
  background: var(--home-surface);
}
.split-side--seller {
  background: var(--forest-bg);
  color: var(--forest-ink);
}
.split-side--seller:has(.split-side__cover:hover) {
  background: #173225;
}
.split-side__in {
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 68px) clamp(20px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.split-side__tag {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--home-accent);
}
.split-side--seller .split-side__tag {
  color: var(--forest-accent);
}
.split-side h2 {
  font-family: var(--font-display, "DM Sans", system-ui, sans-serif);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.03;
}
.split-side__lead {
  font-size: clamp(15.5px, 1.35vw, 17.5px);
  color: var(--home-muted);
  max-width: 44ch;
}
.split-side--seller .split-side__lead {
  color: var(--forest-muted);
}
.split-points {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--home-line);
}
.split-points li {
  padding-block: 10px;
  border-bottom: 1px solid var(--home-line);
  font-size: 14.5px;
  color: var(--home-muted);
}
.split-points li strong {
  color: var(--home-ink);
}
.split-side--seller .split-points {
  border-top-color: var(--forest-line);
}
.split-side--seller .split-points li {
  border-bottom-color: var(--forest-line);
  color: var(--forest-muted);
}
.split-side--seller .split-points li strong {
  color: var(--forest-ink);
}

.split-side__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}
.split-side__primary {
  position: relative;
  z-index: 2;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 15px;
}
.split-side--seller .split-side__primary {
  background: #d8f68b;
  border-color: #d8f68b;
  color: #10241a;
}
.split-side--seller .split-side__primary:hover {
  background: #e9fcae;
  border-color: #e9fcae;
  color: #10241a;
}
.split-side__cover {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
}
.split-side__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.split-side--buyer:has(.split-side__cover:hover) .split-side__cover {
  background: var(--home-accent-soft);
  border-color: var(--home-accent);
}
.split-side--seller .split-side__cover {
  border-color: var(--forest-ui-border);
  color: var(--forest-ink);
}
.split-side--seller .split-side__cover:hover,
.split-side--seller:has(.split-side__cover:hover) .split-side__cover {
  background: #234634;
  border-color: #d8f68b;
  color: var(--forest-ink);
}

.split-rails {
  background: var(--home-surface);
  border-bottom: 1px solid var(--home-line);
  padding-block: 16px;
}
.split-rails__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
.split-rails p {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--home-muted);
}

/* Flush 7-Department Index */
.pillar-strip {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillar-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pillar-strip__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--r-sharp);
  border: 1.5px solid var(--home-ui-border);
  background: var(--home-card);
  font-size: 13.5px;
  font-weight: 700;
}
.pillar-strip__links a:hover {
  border-color: var(--home-accent);
  background: var(--home-accent-soft);
  color: var(--home-accent);
}
.pillar-strip__note {
  font-size: 13.5px;
  color: var(--home-muted);
  max-width: 68ch;
}

/* ---- Subpage Header Strip & Hero (buyer.html / seller.html) ---- */
.subhero { padding-top: clamp(20px, 2.8vw, 34px); padding-bottom: clamp(24px, 3vw, 38px); }
.page-kicker-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 20px;
  border-bottom: 1px solid var(--home-line);
  padding-bottom: 10px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}
.page-kicker-bar__role {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--home-accent);
}
.page-kicker-bar__switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--home-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.subhero__intro { max-width: 68ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 12px;
}
.example-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.example-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--home-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.example-jumps a:hover { color: var(--home-accent-hover); }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}
.seller-terms-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--home-line);
  font-size: 13.5px;
  color: var(--home-muted);
}
.seller-terms-line strong { color: var(--home-ink); }

.seller-specimens {
  border-top: 2px solid var(--home-ink);
}
.seller-specimens .specimen-item { grid-template-columns: 96px minmax(0, 1fr) auto; }
.seller-specimens .specimen-item img { width: 96px; height: 64px; }

.side-note { font-size: 13px; color: var(--home-muted); }
.side-note a, .ops-item a { color: var(--home-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Custom Order Thread & LF Requests (buyer.html Band 3) ---- */
.comm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}
.order-card {
  border: 1.5px solid var(--home-ui-border);
  border-radius: var(--r-sharp);
  background: var(--home-card);
  padding: 20px;
}
.bounty-panel {
  border-top: 2px solid var(--home-ink);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.order-card__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.trust-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid var(--home-ui-border);
  background: var(--home-accent-soft);
  color: var(--home-accent);
}
[data-surface="dark"] .trust-tag {
  background: #234935;
  color: #d8f68b;
  border-color: var(--forest-ui-border);
}
.queue-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--home-soft);
  border: 1px solid var(--home-ui-border);
  color: var(--home-ink);
}
.order-card__meta h3 { font-size: 18px; font-weight: 700; }
.order-card__meta p { font-size: 13.5px; color: var(--home-muted); margin: 4px 0 14px; }

.order-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--home-muted);
}

.bounty-panel__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.bounty-panel__head h3 { font-size: 19px; font-weight: 700; }
.bounty-panel__head p { font-size: 13.5px; color: var(--home-muted); max-width: 44ch; margin-top: 4px; }

/* ---- Buyer Checkout Safety Band (buyer.html Band 4) ---- */
.buyer-safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
}
.safety-card {
  border-top: 2px solid var(--home-ink);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.safety-card h3 { font-size: 20px; font-weight: 700; }
.safety-card p { font-size: 14px; color: var(--home-muted); }
.safety-facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--home-ui-border); }
.safety-facts li {
  padding-block: 10px;
  border-bottom: 1px solid var(--home-line);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
}
.safety-facts span { color: var(--home-muted); }

/* ---- Platform Comparison Table (seller.html Band 2) ---- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1.5px solid var(--home-ui-border);
  border-radius: var(--r-sharp);
  background: var(--home-card);
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  min-width: 680px;
}
.cmp-table caption {
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  background: var(--home-soft);
  border-bottom: 1px solid var(--home-ui-border);
}
.cmp-table th,
.cmp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--home-line);
  vertical-align: top;
}
.cmp-table thead th {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--home-accent);
  background: var(--home-paper);
  border-bottom: 1.5px solid var(--home-ui-border);
}
.cmp-table tbody th { font-weight: 700; color: var(--home-ink); }
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table td:last-child { font-weight: 600; color: var(--home-ink); }

/* ---- Peso Sale Calculator + Seller Tools (seller.html Band 3) ---- */
.calc-and-ops {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 32px;
  align-items: start;
}
.calc-card {
  border: 1.5px solid var(--home-ui-border);
  border-radius: var(--r-sharp);
  background: var(--home-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calc-item-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.calc-item-head img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--home-ui-border);
  flex-shrink: 0;
}
.calc-item-head strong { font-size: 16px; display: block; margin-bottom: 2px; }
.calc-item-head p { font-size: 13.5px; color: var(--home-muted); }

.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-input-group { display: flex; flex-direction: column; gap: 4px; }
.calc-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.calc-input-row label { font-size: 14px; font-weight: 700; }
.peso-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--home-ui-border);
  border-radius: var(--r-sharp);
  background: var(--home-paper);
  font-weight: 700;
}
.peso-field input {
  width: 96px;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-weight: 800;
  font-size: 16px;
  text-align: right;
  outline: none;
}
.peso-field input[aria-invalid="true"] { color: var(--home-danger-ink); }
.field-hint { font-size: 12.5px; color: var(--home-muted); }
.field-error {
  padding: 8px 10px;
  border-radius: 2px;
  border: 1px solid var(--home-danger-line);
  background: var(--home-danger-bg);
  color: var(--home-danger-ink);
  font-size: 13px;
  font-weight: 700;
}

.calc-toggles { display: flex; flex-direction: column; gap: 6px; }
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--r-sharp);
  background: var(--home-paper);
  border: 1.5px solid var(--home-ui-border);
  font-size: 13.5px;
  cursor: pointer;
}
.toggle-row input { width: 20px; height: 20px; accent-color: var(--home-accent); flex-shrink: 0; }

.receipt-ledger {
  border: 1.5px solid var(--home-ui-border);
  border-radius: 2px;
  background: var(--home-surface);
  overflow: hidden;
}
.receipt-ledger > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--home-line);
}
.receipt-ledger > div:last-child { border-bottom: 0; }
.receipt-ledger > div.is-subtotal { background: var(--home-soft); font-weight: 700; }
.receipt-ledger > div.is-total {
  background: var(--home-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  padding-block: 12px;
}
.calc-hold-note { font-size: 13px; color: var(--home-muted); font-weight: 600; }

.pay-rails {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 3px;
  background: #ffffff;
  border: 1px solid var(--home-ui-border);
  color: #121914;
  font-size: 12px;
  font-weight: 700;
}
.pay-chip img {
  height: 18px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
}
.pay-chip--dark { background: #111d16; border-color: #365947; color: #ffffff; }
.pay-more { font-size: 12.5px; color: var(--home-muted); font-weight: 600; }

.ops-stack { display: flex; flex-direction: column; border-top: 2px solid var(--home-ink); }
.ops-item {
  padding-block: 15px;
  border-bottom: 1px solid var(--home-line);
}
.ops-item:last-child { border-bottom: 0; }
.ops-item h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.ops-item p { font-size: 14px; color: var(--home-muted); max-width: 65ch; }

/* ---- Developer Protection & Verify Simulator (seller.html Band 4) ---- */
.dev-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}
.dev-console, .code-card {
  border: 1.5px solid var(--forest-ui-border);
  border-radius: var(--r-sharp);
  background: var(--forest-surface);
  padding: 20px;
  min-width: 0;
  max-width: 100%;
}
.dev-console > h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--forest-ink); }
.dev-console > p { font-size: 14px; color: var(--forest-muted); margin-bottom: 14px; }
[data-surface="dark"] .safety-facts { border-top-color: var(--forest-ui-border); }
[data-surface="dark"] .safety-facts li { border-bottom-color: var(--forest-line); }
[data-surface="dark"] .safety-facts span { color: var(--forest-muted); }
[data-surface="dark"] .safety-facts strong,
[data-surface="dark"] .safety-facts code { color: var(--forest-ink); }
[data-surface="dark"] .side-note { color: var(--forest-muted); margin-top: 8px; }

.license-spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 2px;
  background: var(--forest-bg);
  border: 1px solid var(--forest-line);
  margin-bottom: 14px;
}
.license-spec dt { font-size: 11.5px; font-weight: 700; color: var(--forest-muted); margin-bottom: 4px; }
.license-spec dd { font-size: 13.5px; font-weight: 600; }

.canary-box {
  border: 1px solid var(--forest-line);
  border-radius: 2px;
  padding: 14px;
  background: var(--forest-bg);
}
.canary-box__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  margin-bottom: 10px;
}
.canary-box__head span { color: var(--forest-muted); }
.canary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.canary-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  min-width: 0;
  word-break: break-word;
}
.canary-grid code,
.tier-detail__head code {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.canary-grid span { color: var(--forest-ink); font-weight: 600; }

.dev-verify-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 100%; }
.code-card__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.lang-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.code-pre, .json-mirror pre {
  margin: 0;
  max-width: 100%;
  padding: 14px;
  border-radius: 2px;
  background: var(--forest-code-bg);
  border: 1px solid var(--forest-line);
  color: #eef5ee;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-x: auto;
}
.code-pre code, .json-mirror code { background: none; padding: 0; color: inherit; font-size: inherit; }
.json-mirror { margin-top: 12px; }
.json-mirror span { display: block; font-size: 12.5px; color: var(--forest-muted); margin-bottom: 6px; }

.dev-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dev-notes > div {
  border-top: 1px solid var(--forest-line);
  padding-top: 12px;
}
.dev-notes h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--forest-accent); }
.dev-notes p { font-size: 13.5px; color: var(--forest-muted); }

[data-surface="dark"] .ops-item {
  border-top-color: var(--forest-line);
}
[data-surface="dark"] .ops-item h3 {
  color: var(--forest-accent);
}
[data-surface="dark"] .ops-item p {
  color: var(--forest-muted);
}
[data-surface="dark"] .ops-item a {
  color: var(--forest-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Compact Horizontal Footer (AAA 44px links) ---- */
.foot {
  background: var(--home-soft);
  padding-block: clamp(28px, 3.4vw, 40px);
}
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: 24px 48px;
  align-items: start;
  padding-bottom: 20px;
}
.foot__brandcell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.foot__brandcell .brand { display: inline-flex; min-height: 44px; align-items: center; width: fit-content; }
.foot__brandcell p { font-size: 13.5px; color: var(--home-muted); max-width: 38ch; }
.foot__help { padding-top: 4px; font-size: 13.5px; color: var(--home-muted); }
.foot__help a { color: var(--home-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.foot__navs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.foot__group {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  border-bottom: 1px solid var(--home-line);
  padding-block: 4px;
}
.foot__group:last-child { border-bottom: 0; }
.foot__group h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--home-accent);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--home-muted);
}
.foot__links a:hover,
.foot__links a[aria-current="page"] {
  color: var(--home-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 32px;
  padding-top: 16px;
  border-top: 1px solid var(--home-line);
  font-size: 12px;
  color: var(--home-muted);
}
.foot__bottom p { max-width: 680px; text-align: right; }

/* ---- Dark Mode (WCAG 2.2 AAA >= 7:1 text, >= 3:1 UI borders) ---- */
html[data-theme="dark"] {
  --home-paper: #0e1410;
  --home-surface: #131c17;
  --home-soft: #111a14;
  --home-card: #16201a;
  --home-line: #2d4035;
  --home-ui-border: #7d9a88;
  --home-ink: #f3f7f4;
  --home-muted: #c8d9ce;
  --home-accent: #9ce6ba;
  --home-accent-hover: #d8f68b;
  --home-accent-soft: #1b3828;
  --home-code-bg: #0b140f;
  --home-code-ink: #d8f68b;
  --home-danger-bg: #3b160f;
  --home-danger-ink: #ffddd3;
  --home-danger-line: #e08c75;
  --home-focus: #d8f68b;
  --home-focus-halo: #0e1410;

  --forest-bg: #17281f;
  --forest-surface: #1e3328;
  --forest-line: #3b5e4a;
  --forest-ui-border: #82aa92;
  --forest-ink: #f4f7f2;
  --forest-muted: #cce0d2;
  --forest-accent: #d8f68b;
  --forest-code-bg: #0c1711;
  color-scheme: dark;
}
html[data-theme="dark"] .btn--mint { background: #1d4b33; border-color: #7d9a88; color: #ffffff; }
html[data-theme="dark"] .btn--mint:hover { background: #163b28; border-color: #d8f68b; color: #ffffff; }
html[data-theme="dark"] .btn--outline { border-color: #7d9a88; color: #f3f7f4; }
html[data-theme="dark"] .btn--outline:hover { background: #1b3828; border-color: #d8f68b; color: #ffffff; }
html[data-theme="dark"] .band--forest .btn--mint { background: #d8f68b; border-color: #d8f68b; color: #10241a; }
html[data-theme="dark"] .band--forest .btn--mint:hover { background: #e8fcad; border-color: #e8fcad; color: #10241a; }
html[data-theme="dark"] .split-side--buyer { border-right-color: var(--forest-line); }
html[data-theme="dark"] .split-side--buyer:has(.split-side__cover:hover) { background: #121a15; }
html[data-theme="dark"] .split-side--buyer:has(.split-side__cover:hover) .split-side__cover { background: #1b3828; border-color: #d8f68b; color: #ffffff; }
html[data-theme="dark"] .split-side--seller:has(.split-side__cover:hover) { background: #1c3126; }
html[data-theme="dark"] .split-side--seller .split-side__primary { background: #d8f68b; border-color: #d8f68b; color: #10241a; }
html[data-theme="dark"] .split-side--seller .split-side__primary:hover { background: #e8fcad; border-color: #e8fcad; color: #10241a; }
html[data-theme="dark"] .split-side--seller .split-side__cover { border-color: var(--forest-ui-border); color: var(--forest-ink); }
html[data-theme="dark"] .split-side--seller .split-side__cover:hover,
html[data-theme="dark"] .split-side--seller:has(.split-side__cover:hover) .split-side__cover { background: #234634; border-color: #d8f68b; color: var(--forest-ink); }
html[data-theme="dark"] .mini-btn.is-active {
  background: #1d4b33;
  border-color: #9ce6ba;
  color: #ffffff;
}
html[data-theme="dark"] .band--forest .mini-btn.is-active {
  background: #d8f68b;
  border-color: #d8f68b;
  color: #10241a;
}
html[data-theme="dark"] .receipt-ledger > div.is-total { background: #1d4b33; color: #ffffff; }
html[data-theme="dark"] .tg-mark { color: #f7f7f2; }
html[data-theme="dark"] .tg-mark__sym { background-image: url("/assets/brand/lakuhan-mark-dark.svg?v=20261203-2"); }

.home-live-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.home-live-strip__head h2 { margin: 0; font-size: 20px; }
.home-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.home-live-card {
  display: block;
  padding: 14px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: var(--home-card);
  color: var(--home-ink);
  text-decoration: none;
  transition: border-color 140ms ease;
}
.home-live-card:hover { border-color: var(--home-ui-border); }
.home-live-card:hover .home-live-card__title { color: var(--home-accent); }
.home-live-card__title {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--home-ink);
}
.home-live-card__meta {
  font-size: 13px;
  color: var(--home-muted);
}

/* ---- Responsive Breakpoints (320px Reflow AAA) ---- */
@media (max-width: 1150px) {
  .wrap { padding-inline: 28px; }
  .hero-layout,
  .dev-layout,
  .comm-layout,
  .calc-and-ops,
  .buyer-safety-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .foot__top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 900px) {
  .split-gate { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .split-side--buyer { border-right: 0; border-bottom: 1px solid var(--home-line); }
  html[data-theme="dark"] .split-side--buyer { border-bottom-color: var(--forest-line); }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 20px; }
  .foot__bottom { flex-direction: column; gap: 10px; }
  .foot__bottom p { text-align: left; }
}
@media (max-width: 600px) {
  .license-spec,
  .canary-grid,
  .dev-notes,
  .seller-terms-line { grid-template-columns: minmax(0, 1fr); }
  .calc-input-row { flex-direction: column; align-items: stretch; }
  .specimen-item { grid-template-columns: 72px minmax(0, 1fr); }
  .specimen-item__price { grid-column: 2; }
  .foot__group { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 8px; }
  .foot__group h3 { margin-bottom: 2px; }
}
@media (max-width: 420px) {
  .split-side__actions { flex-direction: column; align-items: stretch; }
  .split-side__actions .btn { width: 100%; }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 14px; }
  .specimen-item,
  .seller-specimens .specimen-item { grid-template-columns: minmax(0, 1fr); }
  .specimen-item img,
  .seller-specimens .specimen-item img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .specimen-item__price { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-contrast: more) {
  :root {
    --home-line: #49594d;
    --home-ui-border: #121914;
    --home-muted: #121914;
  }
  html[data-theme="dark"] {
    --home-line: #7d9a88;
    --home-ui-border: #ffffff;
    --home-muted: #f3f7f4;
  }
  .btn--outline, .mini-btn, .pillar-strip__links a, .split-side__cover { border-width: 2px; }
  .split-side--buyer { border-width: 2px; }
}
@media (forced-colors: active) {
  body, .band, .split-gate, .split-side, .split-rails, .home-live-card, .order-card, .bounty-panel, .calc-card, .table-scroll, .foot {
    background: Canvas;
    color: CanvasText;
    border-color: ButtonText;
  }
  .btn, .mini-btn, .pillar-strip__links a {
    background: ButtonFace;
    color: ButtonText;
    border-color: ButtonText;
  }
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: Highlight; }
}
