/* ========================================
   ASN & COMPANY — PRODUCT PAGE
   ======================================== */

/* ---- Hero ---- */

/* Hero diagram — ownership resolution table */

/* Hero data strip — equal spacing */

/* Hero footer — CTAs pushed to bottom */

/* ========================================
   DATA COVERAGE — what's included
   ======================================== */
.asn-coverage {
  padding: var(--space-5xl) 0;
  position: relative;
  z-index: 1;
}


.asn-coverage-header .eyebrow-bordered {
  margin-bottom: var(--space-lg);
}

.asn-coverage-header h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.asn-coverage-header p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 540px;
}

/* 5-column grid */
/* The coverage datasets as hairline rows, the page's own form (2026-10-15): a mono number, a sans title and line of
   copy, and the response's field names as small mono chips on the right. The header is centred like the sections
   below it. */
.asn-coverage-header {
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.asn-coverage-header p {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.asn-coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

/* each cell draws its own right and bottom rules, as the attributes grid does */
.asn-coverage-item {
  min-width: 0;
  padding: var(--space-xl) var(--space-lg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.asn-coverage-item-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.asn-coverage-item h4 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.45rem;
}

.asn-coverage-item p {
  margin: 0 0 var(--space-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.asn-coverage-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.asn-coverage-field {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
}

@media (max-width: 899px) { .asn-coverage-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) { .asn-coverage-grid { grid-template-columns: minmax(0, 1fr); } }

/* ========================================
   DEEP DIVES — 4 alternating sections
   ======================================== */
.asn-dives {
  padding: var(--space-5xl) 0;
  position: relative;
  z-index: 1;
}

/* the section in the homepage's datasets form since 2026-10-12: a two-column head, a sticky bar of the five steps, framed rows with the
   drawing at the right (rules in css/datasets-scroll.css); only the facts line and the drawings keep rules of their own here */
.asn-dives .ds-x-uk-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.asn-dives .ds-x-uk-text .asn-dive-meta { margin-top: var(--space-md); }
.asn-dives .ds-x-uk-pic .asn-dive-diagram { width: 100%; max-width: 520px; }
@media (max-width: 899px) { .asn-dives .ds-x-uk-bar { grid-template-columns: none; } }

.asn-dive-meta {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.asn-dive-meta span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.asn-dive-diagram svg {
  width: 100%;
  height: auto;
  color: var(--text-primary);
}
/* the drawings were set in hairlines at a fifth to a half of the ink; lifted so they read at a glance, their hierarchy kept */
.asn-dive-diagram svg [opacity="0.2"] { opacity: 0.5; }
.asn-dive-diagram svg [opacity="0.25"] { opacity: 0.55; }
.asn-dive-diagram svg [opacity="0.3"] { opacity: 0.62; }
.asn-dive-diagram svg [opacity="0.35"] { opacity: 0.68; }
.asn-dive-diagram svg [opacity="0.4"] { opacity: 0.74; }
.asn-dive-diagram svg [opacity="0.45"] { opacity: 0.8; }
.asn-dive-diagram svg [opacity="0.5"] { opacity: 0.85; }
.asn-dive-diagram svg [opacity="0.6"] { opacity: 0.9; }
.asn-dive-diagram svg [stroke-width="0.5"] { stroke-width: 1; }
.asn-dive-diagram svg [stroke-width="0.6"] { stroke-width: 1.1; }
.asn-dive-diagram svg [stroke-width="0.8"] { stroke-width: 1.4; }
.asn-dive-diagram svg [stroke-width="1"] { stroke-width: 1.5; }
/* the labels: set at 3.5 to 6 units (7 to 12px on the page) and mostly at a fifth to a half of the ink; now 6 to 8.5 units, near full ink,
   and on a halo of the page colour so a line crossing a label does not strike it through */
.asn-dive-diagram svg text { font-size: 7.5px; opacity: 1; paint-order: stroke; stroke: var(--bg-primary); stroke-width: 2.5px; stroke-linejoin: round; }
.asn-dive-diagram svg g[font-size="3.5"] text, .asn-dive-diagram svg text[font-size="3.5"] { font-size: 6px; }
.asn-dive-diagram svg g[font-size="4"] text, .asn-dive-diagram svg text[font-size="4"] { font-size: 6.5px; }
.asn-dive-diagram svg g[font-size="4.5"] text, .asn-dive-diagram svg text[font-size="4.5"] { font-size: 7px; }
.asn-dive-diagram svg g[font-size="5"] text, .asn-dive-diagram svg text[font-size="5"] { font-size: 7.5px; }
.asn-dive-diagram svg g[font-size="5.5"] text, .asn-dive-diagram svg text[font-size="5.5"] { font-size: 8px; }
.asn-dive-diagram svg g[font-size="6"] text, .asn-dive-diagram svg text[font-size="6"] { font-size: 8.5px; }
.asn-dive-diagram svg text[opacity="0.2"], .asn-dive-diagram svg text[opacity="0.25"] { opacity: 0.75; }
.asn-dive-diagram svg text[opacity="0.3"], .asn-dive-diagram svg text[opacity="0.35"] { opacity: 0.85; }

/* ========================================
   API RESPONSE — editor component
   ======================================== */

/* ========================================
   USE CASES
   ======================================== */
.asn-usecases {
  padding: var(--space-5xl) 0;
  position: relative;
  z-index: 1;
}

.asn-usecases .eyebrow-bordered {
  margin-bottom: var(--space-lg);
}

.asn-usecases h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3xl);
  max-width: 640px;
}

.asn-usecase-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.asn-usecase-row {
  display: grid;
  grid-template-columns: 48px 180px 1fr;
  gap: var(--space-xl);
  align-items: baseline;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.asn-usecase-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.asn-usecase-row h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.asn-usecase-row p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ========================================
   EDITOR — code viewer component
   ======================================== */
.editor-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.editor-code .es { color: var(--text-secondary); }
.editor-code .en { color: var(--text-primary); font-weight: 600; }
.editor-code .eb { color: var(--text-primary); font-weight: 600; }
.editor-code .ep { color: var(--text-muted); opacity: 0.5; }

.editor-fields {
  margin-top: var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.editor-field {
  padding: var(--space-lg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.editor-field:nth-child(3n) {
  border-right: none;
}

.editor-field:nth-last-child(-n+3) {
  border-bottom: none;
}

.editor-field-line,
.editor-field .editor-field-line {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.editor-field h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.editor-field p {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1023px) {
  .asn-coverage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .asn-coverage-item {
    border-right: 1px solid var(--border);   /* the frame is the container's top and left plus every cell's right and bottom, whatever the column count */
  }
  .editor-fields {
    grid-template-columns: repeat(2, 1fr);
  }
  .editor-field:nth-child(3n) {
    border-right: 1px solid var(--border);
  }
  .editor-field:nth-child(2n) {
    border-right: none;
  }
  .editor-field:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--border);
  }
  .editor-field:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .asn-usecase-row {
    grid-template-columns: 48px 1fr;
  }
  .asn-usecase-row p {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .asn-coverage-grid {
    grid-template-columns: 1fr;
  }
  .asn-coverage-item {
    border-right: 1px solid var(--border) !important;    /* one column: each cell still closes the frame on the right and below (the last one was open, 2026-10-15) */
    border-bottom: 1px solid var(--border) !important;
  }
  .asn-usecase-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .asn-usecase-num {
    display: none;
  }
  
  .editor-fields {
    grid-template-columns: 1fr;
  }
  .editor-field {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .editor-field:last-child {
    border-bottom: none !important;
  }
  .asn-dive-meta {
    flex-wrap: wrap;
  }
}

/* the strip under the headline: five cells that just fit the column; the shared rule's wider padding on wide screens would push the last one under the card */
:root:not([data-json="0"]) .geo-hero-top .geo-hero-input { padding-left: 1.5rem; padding-right: 1.5rem; }

/* ---- THE CARD'S PICTURE (decided 2026-10-09 from the ?strip= takes; the others and the switch are gone): the owner and the
   operator over the route they share, in a panel where the map was. The markup comes from scripts/product-hero.py (asn_strip),
   bound to the case drawn by the random-example control above the card. ---- */
.geo-card { --strip-ink: var(--text-primary); --strip-paper: var(--bg-secondary); --strip-dim: var(--text-muted); }
:root[data-card="8"] .geo-card-wrap .geo-card-map--panel { background: #fff; }
:root[data-card="8"]:is([data-theme="dark"]) .geo-card-wrap .geo-card-map--panel { background: var(--bg-secondary); }
.geo-strip { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; row-gap: 6px; align-content: center; padding: 14px 24px; font-family: var(--font-mono); color: var(--strip-ink); }
.as-k { display: block; font-size: .6rem; color: var(--strip-dim); letter-spacing: .02em; }
.as-owners { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-content: center; }   /* the columns never grow past half: a long name ends in an ellipsis instead of running under the edge */
.as-who { display: flex; align-items: center; gap: 10px; margin-top: 4px; min-width: 0; }
.as-who > div { min-width: 0; }
.as-logo { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.as-who b { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-who i { display: block; margin-top: 2px; font-style: normal; font-size: .58rem; color: var(--strip-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-own-ruler { display: grid; row-gap: 5px; padding-top: 8px; border-top: 1px solid var(--border); }
.as-own-label { font-size: .56rem; color: var(--strip-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-own-label b { color: var(--strip-ink); font-weight: 600; }
.as-ruler-track { position: relative; display: block; height: 8px; background: var(--strip-paper); }
.as-ruler-track::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 6.25%); opacity: .8; }
.as-ruler-seg { position: absolute; top: 0; bottom: 0; min-width: 14px; background: color-mix(in srgb, var(--accent) 22%, transparent); border-left: 1px solid var(--accent); border-right: 1px solid var(--accent); }   /* the operator's block inside the route; a 14px floor keeps a /29 in a /19 readable */
.as-ruler-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--strip-ink); z-index: 1; }   /* the address */
/* the random-example control above the card, in the view toggle's look */
#geo-card { transition: opacity .2s; }
#geo-card.is-swapping { opacity: .55; }
.gs-samples { display: flex; gap: .9rem; align-items: baseline; margin-right: auto; font-family: var(--font-mono); }
.gs-samples button { margin: 0; padding: 0 0 .12rem; border: 0; border-bottom: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.gs-samples button:hover { color: var(--text-primary); }
.gs-samples button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gs-samples-note { font-size: .62rem; letter-spacing: .04em; color: var(--text-muted); }
.as-own-facts { display: none; }   /* a facts line generated for a taller take that was dropped (2026-10-09) */

/* the example control: a counter with previous and next (decided 2026-10-09), the current case named beside it */
.rx-counter { display: inline-flex; align-items: baseline; gap: .45rem; }
.rx-counter button { padding: 0 .2rem; font-size: 1rem; line-height: 1; }
.rx-counter [data-count] { font-size: .7rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
