/* Products page. Layout only, on g-design tokens and fasra.css surfaces. */
.top nav.mid a.on { color: var(--leaf-text); }

/* The hero is split like the home page's: the words on the left, the parts drawn as orbs on the right. */
.phero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); align-items: center; padding: var(--sp-8) 0 var(--sp-7); }
.phero h1 { font-family: var(--font-brand); font-weight: 400; font-size: 48px; line-height: 56px; letter-spacing: -0.01em; margin: 0; }
.phero .sub { margin: var(--sp-4) 0 0; max-width: 30em; font-size: 16px; line-height: 28px; color: var(--text-secondary); }
#stackfig { min-width: 0; container-type: inline-size; }
/* The drawing's slot holds its height before the script draws it, so nothing under it moves. These match OrbMap's two
   boxes in page.js (358 by 574 narrow, 640 by 500 wide) and its cap at a quarter past their width. */
.figslot { min-height: calc(min(100cqw, 447.5px) * 574 / 358); }
@container (min-width: 560px) { .figslot { min-height: calc(min(100cqw, 800px) * 500 / 640); } }

.fam { padding: var(--sp-7) 0 0; min-width: 0; }
/* The pair sits on the same three columns as the grid above, so every card edge lines up. */
.pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.pair #baseline { grid-column: span 2; }
.pair .fam { display: flex; flex-direction: column; }
.pair .grid { flex: 1; }
#schema .grid { grid-template-columns: minmax(0, 1fr); }
#baseline .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Five cards: Fasra and Fasra Studio share the first row in halves, the three parts under them share the second in thirds. */
#fasra .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#fasra .grid > * { grid-column: span 2; }
#fasra .grid > :nth-child(-n+2) { grid-column: span 3; }
.famhead { display: flex; align-items: center; gap: var(--sp-4); padding: 0 0 var(--sp-4); }
.famhead h2 { font-family: var(--font-brand); font-weight: 400; font-size: 28px; line-height: 36px; margin: 0; }
.famhead p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: var(--lh-2); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); align-items: stretch; }
.prod { gap: 0; }
.ptop { display: flex; flex-direction: column; gap: var(--sp-1); }
.prod h3 { font-size: 18px; line-height: var(--lh-3); }
.price { font-size: 15px; line-height: var(--lh-3); font-weight: 500; color: var(--text-secondary); }
/* Room for three lines, so the facts start on one line across a row of cards. */
.prod > p { min-height: 60px; }

.facts { margin: var(--sp-4) 0 var(--sp-3); display: grid; gap: var(--sp-1); border-top: 1px solid var(--border-subtle); padding-top: var(--sp-3); }
.facts div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--sp-3); font-size: 13px; line-height: var(--lh-2); }
.facts dt { color: var(--text-secondary); }
.facts dd { margin: 0; }
.facts a { color: var(--leaf-text); }

.prod details { margin-top: auto; border-top: 1px solid var(--border-subtle); padding-top: var(--sp-3); }
.prod summary { cursor: pointer; display: flex; align-items: center; min-height: var(--h-1); font-size: 13px; line-height: var(--lh-2); font-weight: 500; color: var(--leaf-text); list-style: none; }
.prod summary::-webkit-details-marker { display: none; }
.prod summary::after { content: "+"; margin-left: var(--sp-2); }
.prod details[open] summary::after { content: "\2212"; }
.prod h4 { margin: var(--sp-3) 0 0; font-size: 12px; line-height: var(--lh-1); font-weight: 500; color: var(--text-secondary); }
.gets, .nots { margin: var(--sp-2) 0 0; padding: 0; list-style: none; display: grid; gap: var(--sp-2); font-size: 13px; line-height: var(--lh-2); }
.gets li, .nots li { position: relative; padding-left: var(--sp-4); }
.gets li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.nots li { color: var(--text-secondary); }
.nots li::before { content: ""; position: absolute; left: 1px; top: 11px; width: 8px; height: 1px; background: var(--text-secondary); }

/* The comparison heads its section like the families do: left, in the brand serif at their size. */
.compare .head { padding: var(--sp-8) 0 var(--sp-4); text-align: left; }
.compare .head h2 { font-family: var(--font-brand); font-weight: 400; font-size: 28px; line-height: 36px; margin: 0; }
.tcard { padding: var(--sp-2) 0; }
.tcard .table-wrap { padding-inline: var(--sp-2); }
.compare .table { table-layout: fixed; width: 100%; }
.compare .table thead th:first-child, .compare .table tbody th { width: 224px; }
.compare .table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare .table td small { overflow: hidden; text-overflow: ellipsis; }
.compare .table tbody tr:last-child > * { border-bottom: 0; }
.compare .table th, .compare .table td { box-sizing: border-box; height: var(--h-4); padding: var(--sp-2) var(--sp-3); font-size: 13px; line-height: var(--lh-2); vertical-align: middle; }
.compare .table thead th { font-weight: 500; color: var(--text-primary); white-space: nowrap; }
.compare .table tbody th { text-align: left; font-weight: 500; color: var(--text-primary); white-space: normal; }
.compare .table small { display: block; font-weight: 400; font-size: 12px; line-height: var(--lh-1); color: var(--text-secondary); }
.compare .table td.y { color: var(--leaf-text); font-weight: 500; }
.compare .table td.n { color: var(--text-secondary); }
.compare .foot { margin: var(--sp-4) 0 0; font-size: 14px; color: var(--text-secondary); }
.compare .foot a { color: var(--leaf-text); }

/* On a phone the table becomes a list: each thing, then who gets it, with the same orbs as the map and the families. */
.whom { display: none; padding: 0 var(--sp-4); }
.whom ul { list-style: none; margin: 0; padding: 0; }
.whom li { display: grid; gap: var(--sp-1); padding: var(--sp-3) 0; border-top: 1px solid var(--border-subtle); }
.whom li:first-child { border-top: 0; }
.whom b { font-size: 14px; line-height: var(--lh-2); font-weight: 500; }
.whom small { font-size: 12px; line-height: var(--lh-1); color: var(--text-secondary); }
.whos { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); padding-top: var(--sp-1); }
.who { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: 13px; line-height: var(--lh-2); }

@media (max-width: 900px) {
  .pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pair #baseline { grid-column: auto; }
  .grid, #baseline .grid, #fasra .grid { grid-template-columns: minmax(0, 1fr); }
  #fasra .grid > *, #fasra .grid > :nth-child(-n+2) { grid-column: auto; }
  .compare .tcard { display: none; }
  .whom { display: block; }
  .grid { gap: var(--sp-3); }
  .prod summary { min-height: 40px; }
  /* A link in the facts gets a 40px tap area without moving the lines round it. */
  .facts a { display: inline-flex; align-items: center; min-height: 40px; margin-block: -10px; }
  /* The footer's last line keeps the frame's edge, like the home page's, not the wider inset fasra.css gives it here. */
  footer .base { padding-inline: 0; }
  .prod > p { min-height: 0; }
}
@media (max-width: 940px) {
  .phero { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); padding: var(--sp-7) 0 var(--sp-5); }
}
@media (max-width: 760px) {
  .phero h1 { font-size: 40px; line-height: 48px; }
  .compare .head { padding: var(--sp-7) 0 var(--sp-4); }
}
