/*
  Content pages: free tools, hubs, guides, support and press.
  Loaded after styles.css on those pages, using the same tokens.
*/

@layer pages {
  /* Breadcrumbs ----------------------------------------------------------------------------- */
  .crumbs { margin-bottom: 22px; font-size: 0.85rem; }
  .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0; list-style: none; }
  .crumbs li { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
  .crumbs li + li::before { content: "/"; color: var(--line); }
  .crumbs a { color: var(--text); text-decoration: none; }
  .crumbs a:hover { color: var(--lime); }
  .crumbs [aria-current] { color: var(--cream); }

  .page-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
  .page-hero__tags li {
    padding: 6px 12px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    background: rgb(255 255 255 / 0.02);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
  }

  /* Hub cards ------------------------------------------------------------------------------- */
  .hub { padding-block: clamp(40px, 6vw, 72px) var(--section-y); }
  .hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 20px;
    padding: 0;
    list-style: none;
  }
  .hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-l);
    background: var(--card);
    text-decoration: none;
    transition: border-color 0.3s, transform 0.4s var(--ease-out);
  }
  .hub-card:hover { border-color: var(--lime-edge); transform: translateY(-4px); }
  .hub-card h2, .hub-card h3 { font-size: 1.35rem; font-stretch: 100%; line-height: 1.12; }
  .hub-card p { color: var(--text); font-size: 0.97rem; }
  .hub-card__meta { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
  .hub-card__kicker { color: var(--muted); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
  .hub-card__go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lime);
    font-size: 0.9rem;
    font-weight: 700;
  }
  .hub-card__go svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
  .hub-card:hover .hub-card__go svg { transform: translateX(4px); }
  .hub-card .icon-badge { margin-bottom: 4px; }
  .hub__intro { max-width: 70ch; margin-bottom: 36px; }
  .hub__group + .hub__group, .hub__grid + .hub__group { margin-top: clamp(40px, 6vw, 72px); }
  .hub__group > h2 { margin-bottom: 20px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

  /* Tools ----------------------------------------------------------------------------------- */
  .tool { padding-block: clamp(32px, 5vw, 56px) clamp(48px, 7vw, 88px); }
  .tool__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: start;
    gap: clamp(20px, 3vw, 36px);
  }
  .panel {
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-l);
    background: var(--card);
  }
  .panel--results {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    background:
      radial-gradient(110% 80% at 100% 0%, rgb(207 245 0 / 0.09), transparent 55%),
      var(--card);
  }
  /* The one-rep-max results (six formulas plus a percentage chart) are taller than the form,
     so there the form is the panel that stays in view while you read them. */
  .tool[data-tool="one-rep-max"] .panel--results { position: static; }
  .tool[data-tool="one-rep-max"] .tool__grid > .panel:first-child { position: sticky; top: calc(var(--header-h) + 20px); }
  .panel__title {
    margin-bottom: 18px;
    color: var(--lime);
    font-size: 0.74rem;
    font-stretch: 112%;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .tool__form { display: grid; gap: 22px; }
  .field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; min-width: 0; padding: 0; border: 0; }
  .field > legend, .field > label:first-child {
    padding: 0;
    color: var(--cream);
    font-size: 0.92rem;
    font-weight: 650;
  }
  .field__hint { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
  .field__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 12px; }
  .field .optional { color: var(--muted); font-weight: 500; }
  .goal-note { color: var(--cream); font-weight: 700; }
  .method-line { margin-bottom: 16px; }
  .input select {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: 0;
    outline: 0;
    background: none;
    color: var(--cream);
    font-size: 1rem;
    font-weight: 600;
    text-overflow: ellipsis;
  }
  .input select option { background: #141517; color: #fcefda; }
  .input input[type="text"] { font-size: 1.02rem; }
  .field output { margin-left: 8px; color: var(--lime); font-weight: 700; font-variant-numeric: tabular-nums; }

  .input {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding-inline: 16px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--black);
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .input:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
  .input input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: 0;
    outline: 0;
    background: none;
    color: var(--cream);
    font-size: 1.15rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    appearance: textfield;
  }
  .input input::-webkit-outer-spin-button,
  .input input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
  .input input:focus-visible { outline: 0; }
  .input__unit { color: var(--muted); font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
  .input.is-invalid { border-color: #ff6b5b; }
  .field__error { color: #ff8a7d; font-size: 0.82rem; }

  /* Segmented radio group */
  .seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--black);
  }
  .seg label { position: relative; flex: 1 1 auto; }
  .seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
  .seg span {
    display: block;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 650;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
  }
  .seg input:checked + span { background: var(--lime); color: var(--graphite); }
  .seg input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }
  .seg input:not(:checked):hover + span { background: rgb(255 255 255 / 0.07); }

  /* Choice cards (goal) */
  .choices { display: grid; gap: 10px; }
  .choice { position: relative; display: block; }
  .choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
  .choice > span {
    display: grid;
    gap: 2px;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--black);
    transition: border-color 0.2s, background-color 0.2s;
  }
  .choice > span::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 17px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--line);
    border-radius: 50%;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  }
  .choice b { color: var(--cream); font-size: 0.98rem; font-weight: 650; }
  .choice small { color: var(--muted); font-size: 0.82rem; }
  .choice input:checked + span { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 7%, var(--black)); }
  .choice input:checked + span::before { border-color: var(--lime); background: var(--lime); box-shadow: inset 0 0 0 4px var(--black); }
  .choice input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }
  .choice input:not(:checked):hover + span { border-color: var(--muted); }

  /* Toggle switch */
  .switch { position: relative; display: flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; }
  .switch input { position: absolute; opacity: 0; }
  .switch__track {
    position: relative;
    flex: none;
    width: 50px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--black);
    transition: background-color 0.2s, border-color 0.2s;
  }
  .switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform 0.25s var(--ease-out), background-color 0.2s;
  }
  .switch input:checked + .switch__track { border-color: var(--lime); background: var(--lime-soft); }
  .switch input:checked + .switch__track::after { transform: translateX(20px); background: var(--lime); }
  .switch input:focus-visible + .switch__track { outline: 2px solid var(--cream); outline-offset: 2px; }
  .switch__text { display: grid; gap: 1px; color: var(--cream); font-size: 0.92rem; font-weight: 650; }
  .switch__text small { color: var(--muted); font-size: 0.8rem; font-weight: 500; }

  /* Range slider */
  .range { width: 100%; height: 36px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
  .range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--lime) var(--fill, 50%), var(--line) var(--fill, 50%)); }
  .range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
  .range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--lime); }
  .range::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
    margin-top: -10px;
    border: 3px solid var(--black);
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 1px var(--lime), 0 4px 14px rgb(207 245 0 / 0.4);
    -webkit-appearance: none;
  }
  .range::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid var(--black); border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
  .range:focus-visible { outline-offset: 4px; }
  .range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.74rem; font-variant-numeric: tabular-nums; }

  /* Results ---------------------------------------------------------------------------------- */
  .hero-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 20px; }
  .hero-num b {
    color: var(--cream);
    font-size: clamp(3rem, 2rem + 4vw, 4.6rem);
    font-style: italic;
    font-weight: 900;
    font-stretch: 116%;
    letter-spacing: -0.03em;
    line-height: 0.95;
    font-variant-numeric: tabular-nums;
  }
  .hero-num span { color: var(--muted); font-size: 0.95rem; font-weight: 600; }
  .hero-num .accent { color: var(--lime); }

  .ring-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-bottom: 22px; }
  .ring { flex: none; width: 148px; height: 148px; transform: rotate(-90deg); }
  .ring circle { fill: none; stroke-width: 15; transition: stroke-dasharray 0.7s var(--ease-out), stroke-dashoffset 0.7s var(--ease-out); }
  .ring .ring__track { stroke: var(--line-soft); }
  .ring .ring__protein { stroke: var(--lime); }
  .ring .ring__carbs { stroke: var(--cream); }
  .ring .ring__fat { stroke: #7a808a; }
  .macro-key { display: grid; flex: 1; gap: 12px; min-width: 190px; padding: 0; list-style: none; }
  .macro-key li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; }
  .macro-key i { width: 12px; height: 12px; border-radius: 4px; }
  .macro-key .k-protein { background: var(--lime); }
  .macro-key .k-carbs { background: var(--cream); }
  .macro-key .k-fat { background: #7a808a; }
  .macro-key b { color: var(--cream); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
  .macro-key strong { color: var(--cream); font-size: 0.98rem; font-weight: 650; }
  .macro-key small { color: var(--muted); font-size: 0.82rem; }
  .macro-key span { display: grid; }

  /* Hairlines come from each cell's shadow, so an odd cell out never shows a grey gap. */
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--black); }
  .stats > div { padding: 14px 16px; background: var(--black); box-shadow: 0 0 0 0.5px var(--line-soft); }
  .stats dt { margin-bottom: 4px; color: var(--muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
  .stats dd { margin: 0; color: var(--cream); font-size: 1.1rem; font-weight: 650; font-variant-numeric: tabular-nums; }
  .stats dd small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8rem; font-weight: 500; }

  .notes { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
  .notes li { position: relative; padding-left: 20px; color: var(--text); font-size: 0.9rem; line-height: 1.45; }
  .notes li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }
  .notes:empty { display: none; }

  .actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .actions .btn { flex: 1 1 auto; }
  .actions .btn--ghost { flex: 0 1 auto; }
  .toast { min-height: 1.4em; margin-top: 10px; color: var(--lime); font-size: 0.85rem; font-weight: 650; }

  .result-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 14px;
    border: 1.5px solid var(--lime);
    border-radius: var(--radius-pill);
    color: var(--lime);
    font-size: 0.8rem;
    font-weight: 700;
  }
  .result-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .result-pill[data-action="holdWeight"], .result-pill[data-action="reduceLoad"] { border-color: #ffb454; color: #ffb454; }
  .result-headline { margin-bottom: 12px; color: var(--cream); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-style: italic; font-weight: 900; font-stretch: 112%; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
  .result-reason { margin-bottom: 20px; color: var(--text); font-size: 0.97rem; }
  .detail-list { display: grid; gap: 12px; margin: 0 0 20px; padding: 16px 18px; border-left: 3px solid var(--lime); border-radius: 0 14px 14px 0; background: var(--black); }
  .detail-list dt { margin-bottom: 2px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
  .detail-list dd { margin: 0; color: var(--cream); font-size: 0.97rem; font-weight: 560; }
  .next-reps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
  .next-reps li { display: grid; gap: 1px; min-width: 72px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--black); text-align: center; }
  .next-reps small { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
  .next-reps b { color: var(--cream); font-size: 1.2rem; font-variant-numeric: tabular-nums; }

  .set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
  .set-grid .input { min-height: 48px; padding-inline: 12px; }
  .set-grid .input input { height: 46px; text-align: center; font-size: 1.05rem; }
  .set-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

  .table-compact { width: 100%; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
  .table-compact th, .table-compact td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; }
  .table-compact thead th { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
  .table-compact tbody th { color: var(--cream); font-weight: 650; }
  .table-compact tr.is-primary > * { background: var(--lime-soft); color: var(--cream); }
  .table-compact tbody tr:last-child > * { border-bottom: 0; }
  .table-compact .num { text-align: right; }

  .tool__more { display: grid; gap: 28px; margin-top: clamp(36px, 5vw, 64px); }

  /* Phones: the answer is below a long form, so a pill at the bottom of the form shows it live. */
  .jump { display: none; }
  .panel--results { scroll-margin-top: calc(var(--header-h) + 12px); }
  .panel--results:focus { outline: 0; }

  @media (max-width: 960px) {
    .tool__grid { grid-template-columns: minmax(0, 1fr); }
    .panel--results, .tool[data-tool="one-rep-max"] .tool__grid > .panel:first-child { position: static; }
    .jump:not([hidden]) {
      position: sticky;
      bottom: max(14px, env(safe-area-inset-bottom));
      z-index: 5;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-top: 22px;
      padding: 12px 18px;
      border: 1px solid var(--lime-edge);
      border-radius: var(--radius-pill);
      background: color-mix(in srgb, var(--black) 90%, transparent);
      box-shadow: 0 12px 32px rgb(0 0 0 / 0.55);
      backdrop-filter: blur(14px);
      color: var(--cream);
      font-size: 0.95rem;
      font-weight: 700;
      text-decoration: none;
    }
    .jump__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .jump__go { display: inline-flex; flex: none; align-items: center; gap: 8px; color: var(--lime); font-size: 0.86rem; }
    .jump__go svg { width: 16px; height: 16px; }
  }
  /* Narrow phones: keep the numbers readable and show only the arrow, in a lime disc. */
  @media (max-width: 520px) {
    .jump__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .jump__go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--graphite); }
    .jump__go svg { width: 18px; height: 18px; }
    .jump:not([hidden]) { padding: 8px 8px 8px 18px; }
  }
  @media (max-width: 480px) {
    .seg span { padding: 9px 12px; font-size: 0.86rem; }
    .actions .btn, .inline-cta .actions .btn { flex: 1 1 100%; }
  }

  /* In-article extras ---------------------------------------------------------------------- */
  .article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--muted); font-size: 0.88rem; }
  .article-meta span { display: inline-flex; align-items: center; gap: 8px; }
  .article-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
  .tldr {
    margin-bottom: 44px;
    padding: clamp(22px, 3.5vw, 32px);
    border: 1px solid var(--lime-edge);
    border-radius: var(--radius-l);
    background: radial-gradient(100% 140% at 100% 0%, rgb(207 245 0 / 0.1), transparent 55%), var(--card);
  }
  .tldr .eyebrow { margin-bottom: 12px; }
  .tldr p { color: var(--cream); font-size: 1.05rem; line-height: 1.6; }
  .tldr p + p { margin-top: 10px; }
  .legal__body > h2:not(:first-child) { margin-top: clamp(40px, 6vw, 56px); }
  .legal__body figure { margin: 22px 0; }
  .legal__body figcaption { margin-top: 10px; color: var(--muted); font-size: 0.85rem; }
  .legal__body .table-wrap { margin-block: 22px; }
  .legal__body ol:not(.checklist) { display: grid; gap: 8px; margin: 14px 0; padding-left: 1.35em; }
  .legal__body ol:not(.checklist) li::marker { color: var(--lime); font-weight: 700; }
  .legal__body code { padding: 2px 7px; border-radius: 6px; background: var(--card-raised); color: var(--cream); font-size: 0.9em; }
  .refs { display: grid; gap: 10px; padding-left: 1.2em; color: var(--text); font-size: 0.9rem; }
  .refs li::marker { color: var(--lime); }
  .inline-cta {
    display: grid;
    gap: 14px;
    margin-block: 36px;
    padding: clamp(22px, 3.5vw, 32px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-l);
    background: var(--card);
  }
  .inline-cta h2, .inline-cta h3 { margin: 0; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); }
  .inline-cta p { margin: 0 !important; color: var(--text); }
  .inline-cta .actions { margin-top: 4px; }
  .inline-cta .actions .btn { flex: 0 1 auto; }
  .legal__body .inline-cta a.btn { color: var(--graphite); text-decoration: none; }
  .legal__body .inline-cta a.btn--ghost { color: var(--cream); }

  .related { padding-block: 0 var(--section-y); }
  .related h2 { margin-bottom: 22px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

  /* Support --------------------------------------------------------------------------------- */
  .support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); padding: 0; list-style: none; }
  .support-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line-soft); border-radius: var(--radius-l); background: var(--card); }
  .support-card h2, .support-card h3 { font-size: 1.2rem; font-stretch: 100%; }
  .support-card p { color: var(--text); font-size: 0.95rem; }
  .support-card .btn { align-self: flex-start; margin-top: auto; max-width: 100%; padding-block: 14px; line-height: 1.25; text-align: center; white-space: normal; }
  .legal__body ul.steps-list, .steps-list { display: grid; gap: 12px; margin: 14px 0; padding: 0; list-style: none; counter-reset: s; }
  .steps-list li { position: relative; padding-left: 40px; counter-increment: s; }
  .steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime-soft); color: var(--lime); font-size: 0.82rem; font-weight: 700; }

  /* Press ----------------------------------------------------------------------------------- */
  /* ul.x beats the generic article list rule, which would otherwise indent these grids. */
  .legal__body ul.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr)); gap: 14px; margin: 18px 0; padding: 0; list-style: none; }
  .swatch { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--card); }
  .swatch__chip { display: block; height: 76px; }
  .swatch__chip--black { background: #000; border-bottom: 1px solid var(--line-soft); }
  .swatch__chip--lime { background: #cff500; }
  .swatch__chip--cream { background: #fcefda; }
  .swatch__chip--graphite { background: #1c1f22; border-bottom: 1px solid var(--line-soft); }
  .swatch__chip--card { background: #141517; border-bottom: 1px solid var(--line-soft); }
  .swatch__body { display: grid; gap: 2px; padding: 12px 14px; }
  .swatch__body b { color: var(--cream); font-size: 0.92rem; }
  .swatch__body code { background: none; padding: 0; color: var(--muted); }
  .swatch__body small { color: var(--muted); font-size: 0.78rem; }

  .legal__body ul.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; margin: 18px 0; padding: 0; list-style: none; }
  .legal__body ul.asset-grid--photos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
  .legal__body ul.asset-grid--screens { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 14px; }
  .asset { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--card); }
  .asset__thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18px; background: repeating-conic-gradient(#0d0e10 0% 25%, #131416 0% 50%) 50% / 24px 24px; }
  .asset__thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
  .asset__thumb--photo { padding: 0; }
  .asset__thumb--photo img { width: 100%; height: 100%; object-fit: cover; }
  .asset__thumb--phone { aspect-ratio: auto; padding: 14px 14px 0; align-items: end; }
  .asset__thumb--phone img { width: 100%; max-width: 220px; height: auto; border-radius: 14px 14px 0 0; }
  .asset__body { display: grid; gap: 4px; padding: 14px 16px 16px; }
  .asset__body b { color: var(--cream); font-size: 0.95rem; }
  .asset__body small { color: var(--muted); font-size: 0.8rem; }
  .asset__body a { margin-top: 4px; color: var(--lime); font-size: 0.86rem; font-weight: 700; text-decoration: none; }
  .asset__body a:hover { text-decoration: underline; }

  .facts { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 1px; margin: 18px 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--line-soft); }
  .facts dt, .facts dd { margin: 0; padding: 13px 16px; background: var(--card); }
  .facts dt { color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; }
  .facts dd { color: var(--cream); font-size: 0.97rem; }
  .copy-box { position: relative; margin: 14px 0; padding: 20px 22px; border: 1px solid var(--line-soft); border-left: 3px solid var(--lime); border-radius: 0 14px 14px 0; background: var(--card); color: var(--cream); }
  .copy-box p { margin: 0 !important; }
  .dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 18px 0; }
  .dos > div { padding: 18px 20px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--card); }
  .dos h3 { margin: 0 0 10px; font-size: 1rem; }
  .dos ul { margin: 0; padding-left: 1.2em; }

  @media (max-width: 560px) {
    .facts { grid-template-columns: minmax(0, 1fr); }
    .facts dt { padding-bottom: 2px; }
    .facts dd { padding-top: 2px; }
  }

  @media print {
    .tool__form, .actions, .crumbs, .related, .inline-cta { display: none !important; }
    .panel { border-color: #999; background: none; }
    .panel--results { position: static; }
    .hero-num b, .result-headline { color: #000; }
  }
}
