/* COSO PARTS — public site and admin */

:root {
  --void:      #08131C;
  --void-2:    #0E2130;
  --navy:      #123A5C;
  --amber:     #F2A61E;
  --amber-lo:  #8A5D03;

  --ground:    #F1F5F7;
  --surface:   #FFFFFF;
  --ink:       #0E1B25;
  --soft:      #566673;
  --rule:      #D8E1E7;
  --rule-2:    #E9EFF3;
  --mist:      #9FBACD;

  --ok:        #1C7C54;
  --warn:      #B3261E;
  --focus:     #2C8BD4;

  --wrap: 1220px;
  --f-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --f-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:  #0B1620; --surface: #11202C; --ink: #E7EFF4; --soft: #9AADBA;
    --rule:    #22384A; --rule-2: #1A2B39; --navy: #17476F; --focus: #6FB7EF;
    --amber-lo:#F2A61E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground:  #0B1620; --surface: #11202C; --ink: #E7EFF4; --soft: #9AADBA;
  --rule:    #22384A; --rule-2: #1A2B39; --navy: #17476F; --focus: #6FB7EF;
  --amber-lo:#F2A61E;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.06;
                 letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.skip { position: absolute; left: -9999px; background: var(--amber); color: #231806;
        padding: 10px 16px; font-weight: 700; z-index: 99; }
.skip:focus { left: 10px; top: 10px; }

.mono { font-family: var(--f-mono); }
.tag { font-family: var(--f-mono); font-size: .6875rem; font-weight: 700;
       letter-spacing: .15em; text-transform: uppercase; }

/* blueprint grid used on every dark panel */
.dark { background: var(--void); color: #fff; position: relative; isolation: isolate; }
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 45%, transparent 100%);
}

/* ------------------------------------------------------------- topbar */
.top { background: var(--void); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
       border-bottom: 1px solid rgba(255,255,255,.1); }
.top__in { display: flex; align-items: center; gap: 18px; min-height: 68px; flex-wrap: wrap;
           padding-block: 9px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; }
.brand b { display: block; font-family: var(--f-display); font-size: 1.14rem; color: #fff;
           line-height: 1; font-weight: 400; }
.brand b i { color: var(--amber); font-style: normal; }
.brand small { display: block; font-family: var(--f-mono); font-size: .5rem; margin-top: 4px;
               letter-spacing: .2em; color: var(--mist); }
.topnav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
.topnav a { color: var(--mist); text-decoration: none; font-weight: 600; font-size: .9rem; }
.topnav a:hover, .topnav a.on { color: #fff; }
.topnav .btn { color: #231806; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
       font-family: var(--f-body); font-weight: 700; font-size: .98rem;
       padding: 12px 20px; border: 2px solid transparent; border-radius: 3px;
       text-decoration: none; cursor: pointer; white-space: nowrap;
       transition: background-color .14s, color .14s, border-color .14s, transform .08s; }
.btn:active { transform: translateY(1px); }
.btn--amber { background: var(--amber); color: #231806; }
.btn--amber:hover { background: #FFBC43; }
.btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.38); }
.btn--line:hover { border-color: #fff; }
.btn--ink { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ink:hover { border-color: var(--ink); }
.btn--sm { padding: 8px 14px; font-size: .86rem; }
.btn--danger { background: transparent; color: var(--warn); border-color: var(--warn); }

/* --------------------------------------------------------------- hero */
.hero { padding-block: 70px 60px; }
.hero__grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr);
              gap: 48px; align-items: center; }
.hero .tag { color: var(--amber); display: block; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.5rem); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lede { color: #B9CCDA; font-size: 1.1rem; margin-top: 18px; max-width: 50ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.finder { margin-top: 30px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.13);
          padding: 18px; border-radius: 4px; }
.finder label { display: block; font-weight: 600; margin-bottom: 9px; font-size: .95rem; }
.finder__row { display: flex; gap: 10px; flex-wrap: wrap; }
.finder input { flex: 1 1 15rem; min-width: 0; font-family: var(--f-mono); font-size: 1rem;
                padding: 13px 14px; color: #fff; background: rgba(0,0,0,.28);
                border: 1px solid rgba(255,255,255,.18); border-radius: 3px; }
.finder input::placeholder { color: #6E8697; }
.finder input:focus { border-color: var(--amber); outline: none; }
.finder small { display: block; margin-top: 10px; color: var(--mist); font-size: .85rem; }

.spec { background: var(--surface); color: var(--ink); border-radius: 4px; overflow: hidden;
        box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.spec__bar { height: 8px; background: var(--navy); }
.spec__body { padding: 14px 16px 16px; }
.spec__no { font-family: var(--f-mono); font-size: .8rem; font-weight: 700; }
.spec__desc { font-size: .92rem; color: var(--soft); }
.spec__foot { font-family: var(--f-mono); font-size: .68rem; color: var(--soft);
              border-top: 1px solid var(--rule-2); margin-top: 10px; padding-top: 9px; }

/* -------------------------------------------------------------- stats */
.stats { border-top: 1px solid rgba(255,255,255,.12); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); }
.stat { padding: 24px 22px 28px 0; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--f-display); font-size: 2rem; line-height: 1; color: #fff; }
.stat span { display: block; color: var(--mist); font-size: .86rem; margin-top: 7px; }

/* ------------------------------------------------------------ sections */
.sec { padding-block: 64px; }
.sec--sheet { background: var(--surface); border-block: 1px solid var(--rule); }
.sec__head { max-width: 62ch; margin-bottom: 34px; }
.sec__head .tag { color: var(--amber-lo); display: block; margin-bottom: 12px; }
.sec__head h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); }
.sec__head p { color: var(--soft); margin-top: 12px; font-size: 1.04rem; }

/* --------------------------------------------------------- part cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
        overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
        transition: border-color .14s, transform .14s, box-shadow .14s; }
.card:hover { border-color: var(--navy); transform: translateY(-2px);
              box-shadow: 0 10px 26px rgba(14,27,37,.10); }
.card__bar { height: 4px; background: var(--navy); }
.card__img { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center;
             padding: 12px; border-bottom: 1px solid var(--rule-2); }
.card__img img { max-height: 100%; width: auto; object-fit: contain; }
.card__img.is-empty { color: var(--soft); font-size: .8rem; }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__no { font-family: var(--f-mono); font-weight: 700; font-size: .84rem; color: var(--navy); }
.card__desc { font-size: .92rem; line-height: 1.35; }
.card__meta { margin-top: auto; padding-top: 8px; font-size: .76rem; color: var(--soft); }

/* ------------------------------------------------------------ filters */
.filters { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px;
           align-items: end; margin-bottom: 22px; }
.search { display: flex; gap: 9px; }
.search input { flex: 1; font: inherit; padding: 12px 14px; border: 1px solid var(--rule);
                background: var(--surface); color: var(--ink); border-radius: 3px; }
.search input:focus { border-color: var(--focus); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
        border: 1px solid var(--rule); background: var(--surface); border-radius: 100px;
        text-decoration: none; font-size: .86rem; font-weight: 600; }
.chip:hover { border-color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip i { font-style: normal; font-family: var(--f-mono); font-size: .7rem; opacity: .7; }
.result { color: var(--soft); font-size: .9rem; margin-bottom: 16px; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pager a, .pager span { padding: 9px 14px; border: 1px solid var(--rule); border-radius: 3px;
                        text-decoration: none; font-size: .9rem; background: var(--surface); }
.pager .on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* -------------------------------------------------------- part detail */
.detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px;
          padding-block: 44px; align-items: start; }
.detail__img { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
               padding: 26px; display: grid; place-items: center; min-height: 280px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin-top: 20px;
      border-top: 1px solid var(--rule); padding-top: 18px; }
.dl dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em;
         text-transform: uppercase; color: var(--soft); padding-top: 3px; }
.dl dd { margin: 0; font-size: .96rem; }
.dl dd .mono { font-size: .88rem; }

/* --------------------------------------------------------------- forms */
.sheet { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 28px; }
fieldset { border: 0; margin: 0 0 28px; padding: 0; }
fieldset:last-of-type { margin-bottom: 0; }
legend { width: 100%; font-family: var(--f-mono); font-size: .68rem; font-weight: 700;
         letter-spacing: .14em; text-transform: uppercase; padding: 0 0 10px;
         border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f--all { grid-column: 1 / -1; }
.f label { font-weight: 600; font-size: .88rem; }
.f label s { text-decoration: none; color: var(--amber-lo); }
.f input, .f select, .f textarea {
  font: inherit; color: var(--ink); background: var(--ground); border: 1px solid var(--rule);
  padding: 11px 12px; width: 100%; border-radius: 3px;
}
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--focus); outline: none; }
.f textarea { min-height: 110px; resize: vertical; }
.f small { color: var(--soft); font-size: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.captcha img { border: 1px solid var(--rule); border-radius: 3px; background: #fff; }
.captcha .f { flex: 1 1 130px; }
.captcha button { background: none; border: 0; color: var(--soft); font: inherit;
                  font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 0; }

.notice { padding: 14px 16px; border-radius: 3px; margin-bottom: 20px; font-weight: 600; }
.notice--bad { background: #FDECEA; color: #8A1C15; border: 1px solid #F3C9C4; }
.notice--ok  { background: #E9F6EF; color: #14603F; border: 1px solid #BFE3D0; }
:root[data-theme="dark"] .notice--bad { background: #3A1614; color: #FFB4AB; border-color: #6A2A25; }
:root[data-theme="dark"] .notice--ok { background: #10301F; color: #8FE0B4; border-color: #1E5537; }

.sent { text-align: center; padding: 44px 26px; }
.sent .ref { font-family: var(--f-mono); font-size: 1.5rem; font-weight: 700; color: var(--navy);
             display: block; margin: 12px 0 18px; }

/* --------------------------------------------------------------- foot */
.foot { background: var(--void); color: var(--mist); font-size: .88rem; padding-block: 34px;
        border-top: 1px solid rgba(255,255,255,.1); }
.foot__in { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; }
.foot a { color: var(--mist); }

/* -------------------------------------------------------------- admin */
.adm { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: 100vh; }
.adm__side { background: var(--void); color: #fff; padding: 20px 16px; }
.adm__side .brand { margin-bottom: 26px; }
.adm__nav { display: flex; flex-direction: column; gap: 2px; }
.adm__nav a { color: var(--mist); text-decoration: none; padding: 10px 12px; border-radius: 3px;
              font-weight: 600; font-size: .92rem; }
.adm__nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.adm__nav a.on { background: var(--amber); color: #231806; }
.adm__side form { margin-top: 26px; }
.adm__main { padding: 26px 30px 60px; min-width: 0; }
.adm__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.adm__head h1 { font-size: 1.7rem; margin-right: auto; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px;
         margin-bottom: 28px; }
.tile { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 16px 18px; }
.tile b { display: block; font-family: var(--f-display); font-size: 1.9rem; line-height: 1; }
.tile span { display: block; color: var(--soft); font-size: .82rem; margin-top: 6px; }
.tile--accent { border-color: var(--amber); }

table.data { width: 100%; border-collapse: collapse; background: var(--surface);
             border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
table.data th { text-align: left; font-family: var(--f-mono); font-size: .66rem; font-weight: 700;
                letter-spacing: .1em; text-transform: uppercase; color: var(--soft);
                padding: 12px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--rule-2); vertical-align: top;
                font-size: .92rem; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--ground); }
table.data a { font-weight: 600; text-decoration: none; }
table.data a:hover { text-decoration: underline; }
.tablewrap { overflow-x: auto; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: .72rem;
        font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.pill--new { background: #FFF1D6; color: #7A5205; }
.pill--progress { background: #DDEBF7; color: #17476F; }
.pill--quoted { background: #E4E9FD; color: #33409B; }
.pill--won { background: #DFF3E7; color: #14603F; }
.pill--closed { background: #E8ECEF; color: #55636E; }

.split { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 24px;
         align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; }
.panel__head { padding: 14px 18px; border-bottom: 1px solid var(--rule); display: flex;
               align-items: center; gap: 12px; }
.panel__head h2 { font-size: 1.05rem; margin-right: auto; }
.panel__body { padding: 18px; }

.thread { display: grid; gap: 12px; }
.msg { border-left: 3px solid var(--amber); background: var(--ground); padding: 12px 14px;
       border-radius: 0 3px 3px 0; }
.msg time { display: block; font-size: .74rem; color: var(--soft); margin-bottom: 5px; }
.msg p { white-space: pre-wrap; font-size: .92rem; }

.sig-preview { background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: 18px;
               color: #16202A; }

.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login__box { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--rule);
              border-radius: 4px; padding: 30px; }
.login__box .brand { margin-bottom: 22px; }
.login__box .brand b { color: var(--ink); }

/* --------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .detail { grid-template-columns: 1fr; gap: 26px; }
  .split { grid-template-columns: 1fr; }
  .adm { grid-template-columns: 1fr; }
  .adm__side { padding: 16px; }
  .adm__nav { flex-direction: row; flex-wrap: wrap; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding-block: 18px; }
}
@media (max-width: 620px) {
  .wrap { padding-inline: 16px; }
  .sec, .hero { padding-block: 44px; }
  .top { position: static; }
  .sheet, .adm__main { padding: 20px 16px; }
  .filters { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .topnav { gap: 6px 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }

/* ------------------------------------------------ catalog builder + about */
.tpl { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px;
       border: 1px solid var(--rule); border-radius: 3px; cursor: pointer;
       background: var(--ground); transition: border-color .14s; }
.tpl:hover { border-color: var(--navy); }
.tpl:has(input:checked) { border-color: var(--amber); background: var(--surface);
                          box-shadow: inset 3px 0 0 var(--amber); }
.tpl input { margin-top: 3px; flex: none; }
.tpl strong { display: block; font-size: .96rem; }
.tpl small { display: block; color: var(--soft); font-size: .84rem; margin-top: 3px; }

.check { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { margin-top: 3px; flex: none; }



/* ------------------------------------------------------------- contact */
/* The printed card carries the details, so the block shows the card itself
   rather than repeating it in tiles. The card turns over on hover and on a
   tap, and the lines beside it stay tappable, which an image cannot be. */
.meet { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: 56px; align-items: center; }

.meet__card { perspective: 1400px; }
.bcard { aspect-ratio: 1000 / 571; }
.bcard__inner { all: unset; display: block; position: relative; width: 100%; height: 100%;
                cursor: pointer; transform-style: preserve-3d;
                transition: transform .7s cubic-bezier(.22,.68,.36,1); }
.bcard__inner:focus-visible { outline: 3px solid var(--amber); outline-offset: 8px; border-radius: 8px; }
.meet__card:hover .bcard__inner,
.bcard.is-flipped .bcard__inner { transform: rotateY(180deg); }

.bcard__face { position: absolute; inset: 0; backface-visibility: hidden;
               border-radius: 7px; overflow: hidden;
               box-shadow: 0 2px 4px rgba(0,0,0,.35), 0 26px 50px rgba(0,0,0,.45); }
.bcard__face img { width: 100%; height: 100%; object-fit: cover; }
.bcard__face--back { transform: rotateY(180deg); }

.bcard__hint { margin: 20px 0 0; text-align: center; }
.bcard__hint span { display: inline-flex; align-items: center; gap: 9px;
                    font-family: var(--f-mono); font-size: .66rem; font-weight: 700;
                    letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.bcard__hint span::before,
.bcard__hint span::after { content: ""; width: 22px; height: 1px; background: rgba(255,255,255,.28); }

.meet__eyebrow { display: block; margin-bottom: 14px; color: var(--amber); }
.meet__say h2 { font-size: clamp(1.6rem, 3.1vw, 2.2rem); color: #fff; }
.meet__lede { margin-top: 16px; font-size: 1.04rem; line-height: 1.55; color: #B9CCDA;
              max-width: 46ch; }

.meet__lines { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.meet__lines li { display: flex; align-items: baseline; justify-content: space-between;
                  gap: 18px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.13); }
.meet__lines li:last-child { border-bottom: 1px solid rgba(255,255,255,.13); }
.meet__lines span { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em;
                    text-transform: uppercase; color: var(--mist); flex: none; }
.meet__lines a, .meet__lines b { font-size: 1.02rem; font-weight: 600; color: #fff;
                                 text-decoration: none; text-align: right;
                                 overflow-wrap: anywhere; }
.meet__lines a:hover { color: var(--amber); }

.meet__acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

@media (max-width: 940px) {
  .meet { grid-template-columns: 1fr; gap: 40px; }
  /* auto margins stop a grid item stretching, so the width is set back */
  .meet__card { width: 100%; max-width: 440px; margin-inline: auto; }
  .meet__lede { max-width: none; }
}
@media (max-width: 560px) {
  .meet__lines li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .meet__lines a, .meet__lines b { text-align: left; }
}
/* a card that turns by itself on hover is a surprise without motion, so on
   reduced motion it only turns when it is asked to */
@media (prefers-reduced-motion: reduce) {
  .meet__card:hover .bcard__inner { transform: none; }
  .bcard.is-flipped .bcard__inner { transform: rotateY(180deg); }
}

/* the hero figure is the photograph, nothing else */
.spec--plain { background: transparent; box-shadow: none; }
.spec--plain img { border-radius: 4px; }

/* ------------------------------------------------------- catalog editor */
/* Three numbered steps down the page. The sections start closed, so the screen
   opens as a list of nineteen rows rather than a wall of parts. Inside a
   section the parts are drawn the way the PDF prints them, on white paper in
   the palette the PDF is drawn in, whichever colour scheme is on. */

.step { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
        margin-bottom: 22px; overflow: hidden; }
.step__head { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px;
              border-bottom: 1px solid var(--rule); }
.step__n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy);
           color: #fff; font-family: var(--f-mono); font-size: .85rem; font-weight: 700;
           display: flex; align-items: center; justify-content: center; }
.step__head h2 { font-size: 1.18rem; margin: 3px 0 0; }
.step__head p { margin: 7px 0 0; font-size: .9rem; color: var(--soft); max-width: 72ch; }
.step__from { color: var(--amber-lo); }
.step__from b { color: var(--ink); }
.step__tally { margin-left: auto; flex: none; text-align: right; font-size: .82rem;
               color: var(--soft); white-space: nowrap; }
.step__tally b { display: block; font-family: var(--f-mono); font-size: 1.5rem; color: var(--ink); }

.step__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
               padding: 14px 22px; background: var(--ground);
               border-bottom: 1px solid var(--rule);
               position: sticky; top: 0; z-index: 6; }
.step__search { flex: 1 1 240px; min-width: 170px; padding: 9px 12px; font: inherit;
                font-size: .9rem; color: inherit; background: var(--surface);
                border: 1px solid var(--rule); border-radius: 3px; }
.step__search:focus { border-color: var(--focus); outline: none; }

.step__body { padding: 20px 22px 22px; }
.step__checks { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 16px; }
.step__note { margin: 16px 0 0; font-size: .86rem; color: var(--soft); }
.step__go { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px;
            padding-top: 20px; border-top: 1px solid var(--rule); }
.step__wait { font-size: .84rem; color: var(--soft); }

/* ------------------------------------------------------ a closed section */
.secs { display: block; }
.sec2 { border-bottom: 1px solid var(--rule-2); }
.sec2:last-child { border-bottom: 0; }
.sec2__row { display: flex; align-items: center; gap: 14px; padding: 13px 22px;
             cursor: pointer; list-style: none; transition: background-color .12s; }
.sec2__row::-webkit-details-marker { display: none; }
.sec2__row:hover { background: var(--ground); }
.sec2[open] > .sec2__row { background: var(--ground); border-bottom: 1px solid var(--rule); }
.sec2__tick { display: flex; flex: none; padding: 4px; margin: -4px; }
.sec2__name { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sec2__name b { font-size: .98rem; }
.sec2__name i { font-style: normal; font-size: .88rem; color: var(--soft); }
.sec2__thumbs { display: flex; gap: 5px; margin-left: auto; flex: none; }
.sec2__thumbs img { width: 40px; height: 30px; object-fit: contain; background: #fff;
                    border: 1px solid var(--rule-2); border-radius: 2px; padding: 2px; }
.sec2__count { flex: none; font-family: var(--f-mono); font-size: .74rem; color: var(--soft);
               white-space: nowrap; }
.sec2__count b { color: var(--ink); font-size: .86rem; }
.sec2.is-empty .sec2__count b { color: #B4291F; }
.sec2__open { flex: none; font-size: .78rem; font-weight: 600; color: var(--navy); }
.sec2[open] .sec2__open { color: var(--soft); }
.sec2[open] .sec2__open::after { content: " \2715"; }
.sec2__body { padding: 20px 22px 24px; background: var(--ground); }

/* --------------------------------------------------------- the paper page */
.pg { background: #FFFFFF; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
      box-shadow: 0 1px 2px rgba(8,19,28,.10), 0 10px 26px rgba(8,19,28,.07); }

.pg__band { display: flex; justify-content: space-between; align-items: center; gap: 16px;
            padding: 11px 24px; background: #123A5C; border-bottom: 2.4px solid #F2A61E; }
.pg__phone { font-weight: 700; font-size: .9rem; color: #FFFFFF; }
.pg__phone i { display: block; margin-top: 2px; font-style: normal; font-weight: 400;
               font-size: .72rem; color: #A9C2D6; overflow-wrap: anywhere; }
.pg__brand { font-family: var(--f-display); font-size: .98rem; color: #FFFFFF; white-space: nowrap; }
.pg__brand i { font-style: normal; color: #F2A61E; }

.pg__body { padding: 20px 24px 6px; }
.pg__head { padding-bottom: 9px; margin-bottom: 18px; border-bottom: 2px solid #F2A61E; }
.pg__head h3 { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pg__make { font-family: var(--f-display); font-size: 1.05rem; color: #123A5C; letter-spacing: .01em; }
.pg__series { font-family: var(--f-body); font-size: .94rem; font-weight: 400; color: #5A6773; }

.pg__opener { margin: 0 0 20px; text-align: center; }
.pg__opener img { max-width: 100%; max-height: 160px; height: auto; object-fit: contain;
                  margin-inline: auto; }

.pg__foot { display: flex; justify-content: space-between; gap: 16px; margin: 0 24px;
            padding: 10px 0 14px; border-top: 1px solid #DEE5EA;
            font-size: .72rem; color: #5A6773; }
.pg__none { display: none; color: #B4291F; font-weight: 600; }
.sec2.is-empty .pg__none { display: inline; }

/* ------------------------------------------------------------- one part */
/* A card per part: the tick, then the photograph in a frame every part shares,
   then the wording beside it. Cards stretch to the height of their row so the
   action rows line up, and several sit across the width rather than one each. */
.pg__grid { display: grid; gap: 14px;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.item { display: flex; flex-direction: column; background: #FFFFFF;
        border: 1px solid #DCE5EB; border-top: 3px solid #123A5C; border-radius: 3px;
        padding: 11px 13px 9px; transition: border-color .14s, box-shadow .14s; }
.item:hover { box-shadow: 0 4px 14px rgba(8,19,28,.09); }
.item.is-out { opacity: .45; border-top-color: #A9C2D6; background: #FBFCFD; }
.item.is-out .item__no { text-decoration: line-through; }

.item__main { display: grid; grid-template-columns: auto 92px minmax(0, 1fr);
              gap: 0 12px; align-items: start; }
.item__pick { display: flex; padding: 3px 0 0; cursor: pointer; }
.item__pick input { margin: 0; cursor: pointer; }

.item__pic { display: flex; align-items: center; justify-content: center;
             width: 92px; height: 92px; padding: 5px; background: #F7F9FB;
             border: 1px solid #EDF2F5; border-radius: 2px; }
.item__pic img { max-width: 100%; max-height: 100%; width: auto; height: auto;
                 object-fit: contain; }
.item__pic i { font-style: normal; font-size: .64rem; color: #A9C2D6; text-align: center; }

.item__txt { min-width: 0; }
.item__no { display: flex; align-items: center; gap: 7px; margin: 0;
            font-weight: 600; font-size: .88rem; color: #123A5C; overflow-wrap: anywhere; }
.item__callout { flex: none; width: 15px; height: 15px; border-radius: 50%; background: #123A5C;
                 color: #FFFFFF; font-style: normal; font-size: .56rem; font-weight: 700;
                 display: inline-flex; align-items: center; justify-content: center; }
.item__desc { margin: 4px 0 0; font-size: .81rem; line-height: 1.34; color: #16202A; }
.item__oem { margin: 3px 0 0; font-size: .71rem; line-height: 1.32; color: #5A6773;
             overflow-wrap: anywhere; }
.item__fits { margin-top: 5px; }

.item__acts { display: flex; gap: 13px; align-items: center; justify-content: flex-end;
              margin-top: auto; padding-top: 9px; border-top: 1px solid #EDF2F5;
              font-size: .74rem; }
.item__acts a { font-weight: 600; color: #123A5C; text-decoration: none; }
.item__acts a:hover { text-decoration: underline; }
.item__acts .linkbtn { color: #B4291F; font-size: .74rem; }
.item__flag { margin-right: auto; padding: 1px 8px; border-radius: 100px; background: #FFF1D6;
              color: #7A5205; font-size: .63rem; font-weight: 600; }

.item--add { align-items: center; justify-content: center; gap: 11px; min-height: 150px;
             padding: 20px; text-align: center; text-decoration: none; color: #123A5C;
             font-size: .82rem; font-weight: 600; background: transparent;
             border: 2px dashed #C6D5DF; border-top: 2px dashed #C6D5DF; }
.item--add:hover { border-color: #123A5C; background: #F7F9FB; box-shadow: none; }
.item__plus { display: flex; align-items: center; justify-content: center;
              width: 34px; height: 34px; border-radius: 50%; background: #F2A61E;
              color: #231806; font-size: 1.3rem; font-weight: 700; line-height: 1; }

/* ------------------------------------------- the catalogue intro preview */
.intro__what { max-width: 90ch; margin-bottom: 20px; font-size: .92rem; color: var(--soft); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
         gap: 24px; align-items: start; }
.intro__label { margin: 0 0 9px; font-family: var(--f-mono); font-size: .66rem;
                font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
                color: var(--soft); }
.intro__sheet { padding: 22px 24px 24px; }
.intro__title { margin: 0; font-family: var(--f-display); font-size: 1.12rem; color: #123A5C; }
.intro__rule { display: block; width: 66px; height: 3px; margin: 9px 0 16px; background: #F2A61E; }
.intro__para { margin: 0 0 9px; font-size: .78rem; line-height: 1.5; color: #16202A; }
.intro__sub { margin: 18px 0 10px; font-size: .72rem; font-weight: 700; color: #16202A; }
.intro__supply { list-style: none; margin: 0; padding: 0;
                 display: grid; grid-template-columns: 1fr 1fr; gap: 5px 18px; }
.intro__supply li { position: relative; padding-left: 13px; font-size: .74rem; color: #16202A; }
.intro__supply li::before { content: ""; position: absolute; left: 0; top: .42em;
                            width: 5px; height: 5px; background: #F2A61E; }
.intro__cta { display: flex; justify-content: space-between; align-items: center; gap: 16px;
              margin-top: 26px; padding: 12px 16px; background: #123A5C;
              border-top: 3px solid #F2A61E; }
.intro__cta b { display: block; font-size: .6rem; letter-spacing: .04em; color: #A9C2D6; }
.intro__cta strong { display: block; margin-top: 3px; font-size: 1rem; color: #FFFFFF; }
.intro__cta-r { text-align: right; }
.intro__cta-r i { display: block; font-style: normal; font-size: .74rem; color: #F2A61E;
                  overflow-wrap: anywhere; }
.intro__cta-r span { display: block; margin-top: 3px; font-size: .64rem; color: #A9C2D6; }

@media (max-width: 1080px) { .intro { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- past builds */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: .8rem;
           font-weight: 600; color: var(--navy); cursor: pointer; text-decoration: underline; }
.linkbtn:hover { color: var(--amber-lo); }
.linkbtn--danger { color: #B4291F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .linkbtn--danger { color: #FF9182; }
}
:root[data-theme="dark"] .linkbtn--danger { color: #FF9182; }

.builds { list-style: none; margin: 0; padding: 0;
          display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.builds li { border: 1px solid var(--rule); border-left: 3px solid var(--rule);
             border-radius: 3px; padding: 14px 16px; }
.builds li.is-live { border-left-color: var(--amber); }
.builds li.is-gone { border-left-color: #B4291F; }
.builds__top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.builds__top a { font-size: .95rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.builds__top a:hover { color: var(--amber-lo); }
.builds__name { font-size: .95rem; font-weight: 600; color: var(--soft);
                text-decoration: line-through; overflow-wrap: anywhere; }
.builds__meta { margin: 6px 0 0; font-family: var(--f-mono); font-size: .7rem; color: var(--soft); }
.builds__gone { margin: 7px 0 0; font-size: .78rem; color: #B4291F; }
.builds__acts { margin: 11px 0 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.builds__is { font-size: .78rem; color: var(--soft); }

@media (max-width: 760px) {
  .step__head { flex-wrap: wrap; }
  .step__tally { margin-left: 0; text-align: left; }
  .sec2__thumbs { display: none; }
  .sec2__row { flex-wrap: wrap; gap: 8px 12px; }
  .sec2__count { margin-left: auto; }
  .sec2__body { padding: 14px 12px 18px; }
  .pg__grid { grid-template-columns: 1fr; }
  .pg__body { padding: 16px 14px 4px; }
  .pg__band { padding: 10px 14px; }
  .pg__foot { margin: 0 14px; }
}
