/* EspoTek store — green solder mask, warm substrate and gold contacts. */

:root {
  --bg: #f3f0e5;
  --card: #fffdf7;
  --ink: #142820;
  --muted: #596860;
  --line: #d8d3c3;
  --line-soft: #e8e3d6;
  --green: #087d5b;
  --green-dark: #07563f;
  --green-deep: #053027;
  --green-black: #031e19;
  --green-soft: #e5f1e9;
  --green-line: #b9d8c7;
  --gold: #d8a92f;
  --gold-bright: #f2ca61;
  --gold-soft: #f8edca;
  --danger: #c62828;
  --danger-soft: #fdecea;
  --warn: #8a5700;
  --info: #2360a5;
  /* legacy aliases still referenced by admin templates */
  --ch1: #007a5f;
  --ch2: #9a5b00;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  --wrap: 1180px;
  --r: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* One typeface everywhere: form controls and code take the page's own instead of the browser's default. */
input, textarea, select, button, code { font-family: inherit; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { width: 100%; flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
/* Figures that line up in columns. The name dates from when these were set in a monospaced face;
   the whole site is now in the one typeface. */
.mono { font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); }
.tiny { font-size: 12.5px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--green);
  color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }

/* ---------------------------------------------------------------- header */

/* The checkout's band (.co-head) is the same bar without the navigation, so it takes its colours here. */
.site-head, .co-head { background: rgba(5, 48, 39, .97); border-bottom: 1px solid rgba(242, 202, 97, .4); }
.site-head { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); }
.head-row { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff9e8; text-decoration: none; }
/* Without this the site-wide a:hover green wins and the dog and "Espo" go dark on the dark header. */
.brand:hover { color: #fff; }
.brand-mark { width: 31px; height: 30px; flex: none; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.brand-word em { font-style: normal; color: var(--gold-bright); }
.head-nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.head-nav a { color: #f8f3e6; font-size: 14.5px; text-decoration: none; opacity: .84; }
.head-nav a:hover { color: var(--gold-bright); text-decoration: none; opacity: 1; }
.cart-link { border: 1px solid var(--gold); border-radius: 7px; padding: 7px 8px 7px 13px; font-size: 14px;
  color: #fff9e8; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; }
.cart-link:hover { background: rgba(242, 202, 97, .12); text-decoration: none; color: #fff; }
.cart-count { color: var(--green-deep); background: var(--gold-bright); font-weight: 700; min-width: 22px; height: 22px;
  padding: 0 6px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 11px; }
.mobile-nav { display: none; }
.site-head :focus-visible, .site-foot :focus-visible, .co-head :focus-visible { outline-color: var(--gold-bright); }

/* ---------------------------------------------------------------- cards & buttons */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 8px 28px rgba(20, 40, 32, .035); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green-dark); color: #fff; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 12px 24px; border: 0; border-radius: 8px;
  transition: background .12s ease, transform .12s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--green); color: #fff; transform: translateY(-1px); }
.btn:active { background: #006650; }
.btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-line { background: none; color: var(--green-dark); border: 1.5px solid var(--green); }
.btn-line:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-gold { background: var(--gold-bright); color: var(--green-black); box-shadow: 0 5px 0 #9b7318; }
.btn-gold:hover { background: #ffda75; color: var(--green-black); box-shadow: 0 6px 0 #9b7318; }
.btn-gold:active { background: var(--gold); box-shadow: 0 2px 0 #8a6515; transform: translateY(3px); }
.btn-danger { background: none; color: var(--danger); border: 1.5px solid #e5b5b0; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-sm { font-size: 14px; padding: 8px 16px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- hero (index / product) */

.hero-card { margin: 34px auto; padding: 34px; display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 40px; align-items: center; }
.hero-card > * { min-width: 0; }
.hero-img { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: #fbfaf5; }
.hero-img img { width: 100%; }
.hero-img figcaption { color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 10px; text-align: center; }
.hero-card h1 { font-size: clamp(25px, 3.4vw, 33px); margin-bottom: 10px; }
.hero-card .sub { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }

.spec-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; margin-bottom: 20px; }
.spec-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { font-weight: 700; width: 172px; }
.spec-table td:last-child { color: var(--muted); }

.buy-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.buy-row .price { flex-basis: 100%; }
.price { font-size: 26px; font-weight: 700; }
.price small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }

.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.qty button { flex: 0 0 44px; width: 44px; min-height: 44px; background: var(--card); border: 0; color: var(--ink); font-size: 18px;
  cursor: pointer; font-family: var(--font-body); }
.qty button:hover { background: var(--green-soft); color: var(--green-dark); }
.qty input { flex: 0 0 52px; width: 52px; min-height: 44px; text-align: center; background: var(--card); color: var(--ink); border: 0;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  font-size: 15px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.stock-note { font-size: 13.5px; color: var(--muted); }
.stock-note.ok::before { content: "● "; color: var(--green); }
.stock-note.low::before { content: "● "; color: var(--warn); }
.stock-note.out::before { content: "● "; color: var(--danger); }

/* ---------------------------------------------------------------- sections */

h2.sec { font-size: 21px; margin: 40px 0 16px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { padding: 20px 22px; }
.step .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px;
  background: var(--green); color: #fff; font-size: 14px; margin-bottom: 10px; }
.step h3 { font-size: 16.5px; margin-bottom: 4px; }
.step p { font-size: 14.5px; color: var(--muted); }

.edu-card { padding: 26px 30px; margin-top: 40px; display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 30px; background: var(--green-soft); border-color: var(--green-line); }
.edu-card h2 { font-size: 21px; margin-bottom: 10px; }
.edu-card ul { margin: 0 0 0 20px; font-size: 15px; }
.edu-card li { margin-bottom: 7px; }
.edu-card .pobox { background: var(--card); border: 1px solid var(--green-line); border-radius: 8px;
  padding: 18px 20px; font-size: 14.5px; }
.edu-card .pobox b { display: block; margin-bottom: 6px; }

.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.qcard { padding: 20px 22px; font-size: 15px; }
.qcard cite { display: block; font-style: normal; font-size: 11.5px;
  letter-spacing: .08em; color: var(--muted); margin-top: 10px; }

.os-card { margin: 40px 0 8px; padding: 28px 30px; display: flex; gap: 26px; align-items: center;
  justify-content: space-between; flex-wrap: wrap; }
.os-card h2 { font-size: 20px; margin-bottom: 6px; }
.os-card p { font-size: 15px; color: var(--muted); max-width: 56ch; }

.prose { color: var(--muted); font-size: 15.5px; max-width: 68ch; }
.prose p + p { margin-top: 12px; }

.page-pad { padding-bottom: 60px; }

.eyebrow { display: flex; align-items: center; color: #d8e8df;
  font-size: 11px; line-height: 1.5; letter-spacing: .055em; text-transform: uppercase; margin-bottom: 20px; }

/* ---------------------------------------------------------------- storefront homepage */

.home-page main { background: var(--card); }
.home-page section[id] { scroll-margin-top: 104px; }
.home-hero, .home-section { padding-block: clamp(36px, 4.8vw, 68px); }
.home-page main h1, .home-page main h2, .home-page main h3 { color: var(--green-deep); }
.home-page main h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.05; margin-bottom: 12px; }
.home-page main h2 { font-size: clamp(29px, 3vw, 40px); margin-bottom: 18px; }
.home-page main h3 { font-size: 22px; margin: 24px 0 8px; }
.home-page main p + p { margin-top: 12px; }
/* Every figure is a framed image with its caption directly beneath, at one measure. */
.home-page figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); padding-top: 10px; max-width: 75ch; }
.figure-frame { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
a.figure-frame { cursor: zoom-in; }
.home-page main img { width: 100%; }

.class-layout, .reading-layout { display: grid; gap: clamp(28px, 5vw, 72px); }

/* The hero is the top of a product page: the photo and two screenshots on the left; on the right the title,
   the whole description, then a rule and everything about buying. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(28px, 4.5vw, 64px);
  align-items: stretch; }
/* Both columns start and end together. The photo's frame has no height of its own: it takes what its column
   has left, between a widest and a squarest shape, and past the squarest the screenshots take the rest.
   The plain lengths are for browsers without container units. */
.hero-media { container-type: inline-size; display: flex; flex-direction: column; }
.product-photo { flex: 1000 1 auto; display: flex; flex-direction: column; margin-top: 7px;
  max-height: 490px; max-height: calc(100cqw / 1.2); }
.board-photo-crop { position: relative; flex: 1 1 0; min-height: 260px; min-height: calc(100cqw / 2.05); }
.board-photo-crop img { position: absolute; inset: 0; height: 100%; object-fit: cover; transform: scale(1.12);
  transform-origin: 50% 56%; }
.hero-shots { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.hero-shots .figure-frame { position: relative; min-height: 160px; min-height: calc((100cqw - 12px) / 2 * 969 / 1600); }
.hero-shots img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: left top; }

.hero-info { display: flex; flex-direction: column; }
.hero-desc { padding-bottom: 24px; }
.hero-lede { font-size: 17px; line-height: 1.55; }
/* A plain list at the text's own left edge: the markers hang inside the column. */
.hero-instruments { margin: 10px 0 14px; padding-left: 1.2em; font-size: 16px; line-height: 1.5; }
.hero-instruments li::marker { color: var(--green); }
.hero-instruments li + li { margin-top: 2px; }
.home-page main .hero-instruments + p { font-size: 15px; }
/* The buying group sits at the foot of the column, so its last line is level with the foot of the left one. */
.hero-buy { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.board-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.board-price strong { font: 600 24px/1.2 var(--font-display); color: var(--green-deep); }
.board-discount { margin-top: 2px; color: var(--green); font-size: 14px; font-weight: 600; }
.board-order { display: flex; align-items: stretch; flex-wrap: wrap; gap: 6px 12px; margin-top: 22px; }
.board-order label { flex-basis: 100%; font-size: 14px; }
.board-order .btn { box-shadow: none; transform: none; border-radius: 5px; }
.board-order .qty { border-radius: 5px; }
.board-order .qty :focus-visible { outline-offset: -3px; }
/* In the hero the stepper shares a row with a button that fills the rest of it. */
.hero-buy .board-order { flex-wrap: nowrap; gap: 10px; margin-top: 16px; }
.hero-buy .board-order .btn { flex: 1 1 auto; min-height: 54px; font-size: 17px; }
.hero-ship { font-size: 14px; margin-top: 12px; color: var(--muted); }
.home-page main .hero-ship + .hero-ship { margin-top: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.class-orders { color: #fbf8ed; background: var(--green-deep); }
.home-page .class-orders h2 { color: inherit; }
.class-orders a { color: var(--gold-bright); }
.class-orders a:hover { color: #fff; }
.class-orders :focus-visible { outline-color: var(--gold-bright); }
.class-orders .qty :focus-visible { outline-color: var(--green); }
.class-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.class-layout p { max-width: 56ch; }
.class-prices, .instrument-table { width: 100%; border-collapse: collapse; text-align: left; }
.class-prices caption { text-align: left; font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.class-price-note { margin-top: 10px; font-size: 14px; }
.class-prices th, .class-prices td { padding: 8px 0; border-bottom: 1px solid #47675a; }
.class-prices thead th { padding-top: 0; font-weight: 400; color: #d7e4d9; }
.class-prices tbody { font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.class-prices tbody th { font-weight: 400; }
.class-prices tr > :last-child { text-align: right; }
.class-orders .board-order { margin-top: 18px; }

.software-actions { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.software-figures { display: grid; gap: 36px; margin-top: 36px; }
.spec-intro { max-width: 80ch; }
/* Small print under the table, one sentence to a line. */
.spec-note { font-size: 14px; line-height: 1.6; }

.instrument-specs { background: var(--bg); border-block: 1px solid var(--line); }
.instrument-table { margin-top: 22px; line-height: 1.5; }
.instrument-table th, .instrument-table td { border-bottom: 1px solid var(--line); padding: 13px 14px 13px 0; vertical-align: top; }
.instrument-table thead th { color: var(--green-dark); border-block: 1px solid var(--green-dark); font-size: 14px; }
.instrument-table th:first-child { width: 25%; }
.instrument-table th[scope="row"] { font-weight: 700; }
.reading-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.press-section { border-top: 1px solid var(--line); }
.press-section .reading-layout > div:first-child p { color: var(--muted); }
.press-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
/* The rule separates one row of quotes from the next, so the first row has none. */
.press-quotes blockquote { border-top: 1px solid var(--line); padding-top: 12px; }
.press-quotes blockquote:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.press-quotes cite { display: block; margin-top: 8px; font-size: 14px; color: var(--green-dark); font-style: normal; }

@media (min-width: 801px) {
  .software-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  /* One column: the photo, the text column, then the screenshots. */
  .hero-grid { display: flex; flex-direction: column; }
  .hero-media { display: contents; }
  .product-photo { order: 1; flex: none; max-height: none; margin: 0 0 22px; }
  .board-photo-crop { flex: none; min-height: 0; aspect-ratio: 1599 / 930; }
  .hero-info { order: 2; }
  .hero-shots { order: 3; flex: none; margin-top: 24px; }
  .hero-shots .figure-frame { min-height: 0; aspect-ratio: 1600 / 969; }
}

@media (max-width: 800px) {
  .class-layout, .reading-layout { grid-template-columns: 1fr; }
  .reading-layout { gap: 12px; }
  .reading-layout > h2 { margin-bottom: 0; }
}

@media (max-width: 560px) {
  .press-quotes { grid-template-columns: 1fr; }
  .press-quotes blockquote:nth-child(2) { border-top: 1px solid var(--line); padding-top: 12px; }
  .instrument-table { font-size: 15px; }
  .instrument-table th:first-child { width: 34%; }
  .instrument-table th, .instrument-table td { padding: 10px 8px 10px 0; }
  .instrument-table td { padding-right: 0; }
}

/* ---------------------------------------------------------------- cart */

.page-head { padding: 36px 0 6px; }
.page-head h1 { font-size: clamp(24px, 3.2vw, 32px); }
.page-head p { color: var(--muted); margin-top: 6px; }
.page-head + .prose { margin-top: 16px; }

.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; padding: 22px 0 70px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding: 20px; align-items: center; }
.cart-line + .cart-line { border-top: 1px solid var(--line-soft); }
.cart-line .thumb { background: #fbfcfd; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.cart-line h3 { font-size: 16.5px; }
.cart-line h3 a { color: var(--ink); text-decoration: none; }
.cart-line h3 a:hover { text-decoration: underline; }
.cart-line .unit { font-size: 13.5px; color: var(--muted); }
.cart-line .line-tools { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.remove-btn { background: none; border: 0; color: var(--muted); font-family: var(--font-body);
  font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.remove-btn:hover { color: var(--danger); }
.cart-line .line-price { font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.line-disc { display: block; font-size: 12.5px; color: var(--green-dark); font-family: var(--font-body); }

.deal-nudge { margin-top: 14px; padding: 12px 16px; background: var(--green-soft);
  border: 1px solid var(--green-line); border-radius: 8px; font-size: 14px; }

.totals { padding: 22px; position: sticky; top: 84px; }
.totals h2 { font-size: 18px; margin-bottom: 14px; }
.tot-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--muted); padding: 6px 0; }
.tot-row b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tot-row.disc b { color: var(--green-dark); }
.tot-row.grand { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 13px;
  font-size: 16px; color: var(--ink); }
.tot-row.grand b { font-size: 20px; }
.totals .btn { margin-top: 14px; }
.totals .ship-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }

.empty-state { text-align: center; padding: 80px 24px 100px; }
.empty-state svg { margin: 0 auto 24px; }
.empty-state h1 { font-size: 26px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* ---------------------------------------------------------------- forms (admin + login) */

.form-card { padding: 26px; }
.form-card h2 { font-size: 18px; margin: 4px 0 16px; }
.form-card h2 ~ h2 { margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: 7px;
  color: var(--ink); font-family: var(--font-body); font-size: 15.5px; padding: 11px 13px;
  transition: border-color .12s, box-shadow .12s;
}
.field textarea { line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 150, 117, .15);
}

.form-error { border: 1px solid #e5b5b0; background: var(--danger-soft); color: var(--danger);
  font-size: 14.5px; border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; }

/* ---------------------------------------------------------------- shopify-style checkout */

.co-body { background: var(--card); }
/* A band across the top carries the site's logo on the site header's own dark green (the colours are
   set with .site-head). Its inner box has the form column's width and gutters, so the logo sits
   directly above the form. */
.co-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); }
.co-head-in { display: flex; align-items: center; height: 64px; width: 100%; max-width: 700px;
  justify-self: end; padding: 0 clamp(24px, 6vw, 76px); }
.co-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); flex: 1 0 auto; }
.co-main { padding: 26px clamp(24px, 6vw, 76px) 40px; max-width: 700px; justify-self: end; width: 100%; }
.co-crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted);
  margin: 0 0 26px; flex-wrap: wrap; }
.co-crumbs a { color: var(--green-dark); text-decoration: none; }
.co-crumbs a:hover { text-decoration: underline; }
.co-crumbs .sep { color: var(--line); }
.co-crumbs .on { color: var(--ink); font-weight: 700; }

.co-main h2 { font-size: 17px; font-weight: 700; margin: 26px 0 12px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-grid .full { grid-column: 1 / -1; }

/* floating labels, shopify-style */
.co-field { position: relative; }
.co-field input {
  width: 100%; border: 1px solid #d9d9d9; border-radius: 6px; background: var(--card);
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 21px 12px 7px; transition: border-color .12s, box-shadow .12s;
}
.co-field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
/* The country list is drawn as a field like the others, with its own arrow. */
.co-field select {
  width: 100%; height: 100%; min-height: 49px; border: 1px solid #d9d9d9; border-radius: 6px; appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23737373' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center / 11px;
  font-size: 15px; color: var(--ink); padding: 21px 34px 7px 12px; transition: border-color .12s, box-shadow .12s;
}
.co-field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.co-field select:focus + label, .co-field select:valid + label { top: 5px; font-size: 11.5px; }
.co-field label {
  position: absolute; left: 13px; top: 14px; font-size: 14.5px; color: #737373;
  pointer-events: none; transition: all .12s ease;
}
.co-field input:focus + label,
.co-field input:not(:placeholder-shown) + label { top: 5px; font-size: 11.5px; }

/* Payment methods, shopify-style: one bordered list, and the chosen method opens a panel beneath its row.
   Each method is a radio, its row (the label) and its panel as three siblings, so the ticked radio can
   reach both with "+" and no script is needed to choose. The radio itself is drawn by .co-pay-dot. */
.co-sub { font-size: 13.5px; color: var(--muted); margin: -6px 0 12px; }
.co-pay { position: relative; border: 1px solid #d9d9d9; border-radius: 6px; overflow: hidden; }
.co-pay-radio { position: absolute; width: 1px; height: 1px; opacity: 0; }
.co-pay-row { display: flex; gap: 12px; align-items: center; min-height: 54px; padding: 12px 14px; cursor: pointer; }
.co-pay-row:first-of-type { border-radius: 5px 5px 0 0; }
.co-pay-panel + .co-pay-radio + .co-pay-row, .co-pay-row + .co-pay-radio + .co-pay-row { border-top: 1px solid #d9d9d9; }
.co-pay-radio:checked + .co-pay-row { background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.co-pay-radio:focus-visible + .co-pay-row { outline: 2px solid var(--green); outline-offset: -2px; }
.co-pay-dot { flex: none; width: 18px; height: 18px; border: 1px solid #b5b5b5; border-radius: 50%;
  background: var(--card); transition: border .12s; }
.co-pay-radio:checked + .co-pay-row .co-pay-dot { border: 6px solid var(--green); }
.co-pay-name { font-size: 14.5px; font-weight: 600; }
/* The payment brands' own artwork, shown unaltered. Visa's and Mastercard's files carry their clear
   space inside them, so they are set taller than Amex's for the marks themselves to come out level. */
.co-pay-marks { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.co-pay-marks img { display: block; width: auto; }
.co-mark-visa { height: 34px; }
.co-mark-mastercard { height: 36px; }
.co-mark-amex { height: 28px; margin-left: 4px; }
.co-mark-paypal { height: 22px; }

/* Shipping methods use the same list, with a price in place of a brand mark and no panels. */
.co-ship-price { margin-left: auto; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.co-ship-wait { padding: 15px 14px; border: 1px solid #d9d9d9; border-radius: 6px; background: var(--bg);
  color: var(--muted); font-size: 14px; }
.co-pay-panel { display: none; padding: 16px 14px; background: var(--bg); border-top: 1px solid #d9d9d9; }
.co-pay-radio:checked + .co-pay-row + .co-pay-panel { display: block; }
.co-card { border: 0; min-width: 0; }
.co-card:disabled { opacity: .55; }
.co-field-marked input { padding-right: 40px; }
.co-field-mark { position: absolute; right: 13px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%); color: #737373; pointer-events: none; }
.co-pay-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
/* A method that is paid on another site says so, under a drawing of a window being left. */
.co-leave { display: grid; justify-items: center; gap: 14px; padding: 8px 12px 6px; text-align: center; }
.co-leave-icon { width: 92px; color: #8f8f8f; }
.co-leave p { max-width: 380px; font-size: 14px; line-height: 1.5; }

.co-btn { display: block; width: 100%; margin-top: 22px; background: var(--green); color: #fff;
  border: 0; border-radius: 6px; font-family: var(--font-body); font-size: 17px; font-weight: 700;
  padding: 16px; cursor: pointer; transition: background .12s; }
.co-btn:hover { background: var(--green-dark); }
.co-btn:disabled { background: var(--line); color: var(--muted); cursor: progress; }
/* While PayPal is the chosen method the button takes PayPal's own yellow and says where it leads.
   Browsers without :has() keep the green "Pay now", which still pays through PayPal. */
.co-form:has(.co-pay-radio[value="paypal"]:checked) .co-btn:enabled { background: #ffc439; color: #111; }
.co-form:has(.co-pay-radio[value="paypal"]:checked) .co-btn:enabled:hover { background: #f2ba36; }
.co-form:has(.co-pay-radio[value="paypal"]:checked) .co-btn-pay { display: none; }
.co-form:has(.co-pay-radio[value="paypal"]:checked) .co-btn-paypal { display: inline; }
.co-btn-paypal img { display: inline-block; height: 22px; width: auto; vertical-align: -5px; margin-left: 4px; }

.co-aside { background: #fafafa; border-left: 1px solid var(--line); padding: 38px clamp(24px, 4vw, 56px) 40px; }
.co-aside-inner { max-width: 420px; position: sticky; top: 38px; }
.co-item { display: flex; gap: 14px; align-items: center; padding: 8px 0; }
.co-thumb { position: relative; width: 64px; height: 64px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); padding: 6px; flex-shrink: 0; }
.co-thumb img { width: 100%; height: 100%; object-fit: contain; }
.co-thumb .q { position: absolute; top: -8px; right: -8px; background: #666; color: #fff;
  border-radius: 50%; min-width: 21px; height: 21px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; padding: 0 5px; }
.co-item .nm { font-size: 14px; font-weight: 700; flex: 1; }
.co-item .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.co-item .amt { font-size: 14px; font-family: var(--font-body); font-weight: 400; white-space: nowrap; }

.co-sums { border-top: 1px solid var(--line-soft); margin-top: 14px; padding-top: 14px; }
.co-sum { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.co-sum .k { color: var(--ink); }
.co-sum .v { font-weight: 400; }
.co-sum.disc .v, .co-sum.disc .k { color: var(--green-dark); }
.co-total { display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line-soft); margin-top: 10px; padding-top: 14px; }
.co-total .k { font-size: 16px; font-weight: 700; }
.co-total .v { font-size: 22px; font-weight: 700; }
.co-total .cur { font-size: 12px; color: var(--muted); margin-right: 8px; }

/* ---------------------------------------------------------------- mock gateway */

.gateway-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 50px 24px; }
.gateway { width: 100%; max-width: 440px; overflow: hidden; }
.gateway-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px;
  border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .1em; }
.gateway-head .sandbox { color: var(--warn); }
.gateway-body { padding: 28px 26px; text-align: center; }
.gateway-body .glabel { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.gateway-body .amount { font-size: 40px; font-weight: 700; margin: 6px 0 2px; }
.gateway-body .to { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.gateway-actions { display: grid; gap: 10px; }
.gateway-fine { margin-top: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ---------------------------------------------------------------- order status */

.order-wrap { max-width: 720px; margin: 0 auto; padding: 44px 24px 80px; }
.order-hello { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.ok-circle { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--green);
  color: var(--green); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.ok-circle.pend { border-color: var(--warn); color: var(--warn); }
.ok-circle.halt { border-color: var(--danger); color: var(--danger); }
.order-hello .no { font-size: 13px; color: var(--muted); }
.order-hello h1 { font-size: 24px; }

.order-card { padding: 22px 24px; margin-top: 18px; }
.order-card h2 { font-size: 16px; margin-bottom: 12px; }

.pipeline { display: flex; align-items: center; padding: 4px 0 2px; }
.pipe-node { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 76px; }
.pipe-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.pipe-node.done .pipe-dot { background: var(--green); border-color: var(--green); }
.pipe-node.halt .pipe-dot { background: var(--danger); border-color: var(--danger); }
.pipe-node span { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.pipe-node.done span { color: var(--green-dark); font-weight: 700; }
.pipe-node.halt span { color: var(--danger); font-weight: 700; }
.pipe-link { flex: 1; height: 2px; background: var(--line); margin: 0 4px 22px; }
.pipe-link.lit { background: var(--green); }

.order-banner { padding: 13px 16px; border-radius: 8px; font-size: 14px; margin-top: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.order-banner.pend { border: 1px solid #ecd9b7; color: var(--warn); background: #fdf6ea; }
.order-banner.ok { border: 1px solid var(--green-line); color: var(--green-dark); background: var(--green-soft); }

.order-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.order-cols .order-card { margin-top: 0; }
.addr { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.addr b { color: var(--ink); }

/* ---------------------------------------------------------------- tables */

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-weight: 500; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.tbl .num { text-align: right; }
.tbl td.num { font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }

/* The shipping method is what tells the store how to send an order, so it stands out from its label. */
.ship-method { color: var(--ink); }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px;
  border: 1px solid; }
.chip.pending   { color: var(--warn); border-color: #ecd9b7; background: #fdf6ea; }
.chip.paid      { color: var(--green-dark); border-color: var(--green-line); background: var(--green-soft); }
.chip.shipped   { color: var(--info); border-color: #c3d9ee; background: #ecf3fa; }
.chip.cancelled, .chip.failed { color: var(--danger); border-color: #e5b5b0; background: var(--danger-soft); }
.chip.refunded  { color: #5d4a86; border-color: #cfc5e3; background: #f1edf8; }

/* ---------------------------------------------------------------- admin */

.admin-wrap { max-width: var(--wrap); margin: 0 auto; padding: 34px 24px 80px; }
.admin-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h1 { font-size: 25px; margin-right: auto; }
.admin-nav { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 9px; padding: 4px;
  background: var(--card); }
.admin-nav a { font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 7px 14px;
  border-radius: 6px; text-decoration: none; }
.admin-nav a:hover { color: var(--ink); }
.admin-nav a.on { background: var(--green-soft); color: var(--green-dark); }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
  margin-bottom: 26px; }
.stat-tile { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.stat-tile .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; }
.stat-tile .v { font-size: 32px; font-weight: 700; line-height: 1; }
.stat-tile .v.money { color: var(--green-dark); }
.stat-tile .sub { font-size: 12.5px; color: var(--muted); margin-top: 7px; }

.admin-panel { margin-bottom: 24px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; }
.admin-panel > h2 { font-size: 14px; font-weight: 700; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.admin-panel .tbl td, .admin-panel .tbl th { padding-left: 18px; padding-right: 18px; }

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-tabs a { font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid var(--line);
  border-radius: 20px; padding: 5px 14px; text-decoration: none; background: var(--card); }
.filter-tabs a:hover { color: var(--ink); }
.filter-tabs a.on { color: var(--green-dark); border-color: var(--green-line); background: var(--green-soft); }

.login-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 380px; padding: 32px 30px; }
.login-card h1 { font-size: 22px; margin-bottom: 6px; }
.login-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.login-card form { display: grid; gap: 16px; }

.order-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 18px; font-size: 14px; }
.order-search label { font-weight: 700; }
.order-search input { flex: 0 1 320px; min-width: 0; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font: inherit; }
.order-pages { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
/* The bar of changes for ticked orders. It stays under the site header while a long list scrolls. */
.order-bulk { position: sticky; top: 65px; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  margin-bottom: 4px; padding: 10px 0; background: var(--bg); font-size: 14px; color: var(--muted); }
.order-bulk-count { margin-right: auto; }
.order-bulk-all { display: inline-flex; align-items: center; gap: 7px; flex-basis: 100%; }
.order-bulk-all input { width: 17px; height: 17px; accent-color: var(--green); }
.tbl .tick { width: 1%; padding-right: 0; }
.tbl .tick input { width: 17px; height: 17px; accent-color: var(--green); vertical-align: middle; }
.order-note { padding: 14px 18px; font-size: 14.5px; white-space: pre-line; }
.refund-box { padding: 18px; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px 34px; }
.admin-panel h2 + .refund-box { border-top: 0; }
.refund-form { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px 16px; align-content: start; }
.refund-confirm { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.refund-confirm input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--danger); }
.refund-form .btn { grid-column: 1 / -1; justify-self: start; }
.refund-check { font-size: 14px; display: grid; gap: 10px; align-content: start; justify-items: start; }
/* Narrow screens: the header there is taller and has a second row, so the bar scrolls with the list. */
@media (max-width: 760px) { .refund-box, .refund-form { grid-template-columns: 1fr; } .order-bulk { position: static; } }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.order-meta { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.order-meta b { color: var(--ink); }

/* keep old admin form class working */
.checkout-form { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.checkout-form h2 { font-size: 18px; margin: 4px 0 16px; }
.checkout-form h2 ~ h2 { margin-top: 28px; }

/* ---------------------------------------------------------------- footer */

.site-foot { flex: 0 0 auto; border-top: 1px solid rgba(242, 202, 97, .35); background: var(--green-deep); color: #d7e2dc; margin-top: 40px; }
.home-page .site-foot { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 45px; padding-top: 39px; padding-bottom: 31px; }
.foot-grid > div:not(.foot-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.foot-grid b { color: var(--gold-bright); font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 3px; }
.foot-grid a, .foot-grid span { color: #b9cdc2; font-size: 13px; line-height: 1.45; text-decoration: none; }
.foot-grid a:hover { color: var(--gold-bright); }
.foot-brand .brand { width: max-content; margin-bottom: 12px; }
.foot-brand p { color: #a9beb3; font-size: 13px; line-height: 1.55; max-width: 40ch; }
/* The owners' names and the ABN each stay on one line. */
.foot-brand .keep { white-space: nowrap; color: inherit; font-size: inherit; line-height: inherit; }
.foot-note { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 16px; padding-bottom: 19px; color: #89a298; font-size: 10.5px; line-height: 1.45; }
.foot-note a { color: #b8cbbf; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .head-nav { gap: 14px; }
}

@media (max-width: 900px) {
  .hero-card, .edu-card, .order-cols { grid-template-columns: 1fr; }
  .hero-card { padding: 26px; }
  .foot-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .foot-grid > div:last-child { grid-column: 2; }
  .cart-layout { grid-template-columns: 1fr; }
  .totals { position: static; }
  .co-page, .co-head { grid-template-columns: 1fr; }
  .co-head-in { justify-self: start; }
  .co-aside { border-left: 0; border-top: 1px solid var(--line); order: -1; }
  .co-aside-inner { position: static; max-width: 700px; }
  .co-main { justify-self: start; }
}

@media (max-width: 740px) {
  .head-nav { display: none; }
  .mobile-nav { display: block; border-top: 1px solid rgba(242, 202, 97, .17); background: rgba(3, 30, 25, .35); }
  .mobile-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 36px;
    overflow-x: auto; scrollbar-width: none; }
  .mobile-nav .wrap::-webkit-scrollbar { display: none; }
  .mobile-nav a { flex: 0 0 auto; color: #d8e5dd; font-size: 9.5px;
    letter-spacing: .065em; text-decoration: none; text-transform: uppercase; }
  .mobile-nav a:hover { color: var(--gold-bright); }
  .foot-grid { grid-template-columns: 1.25fr 1fr; gap: 34px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .head-row { height: 60px; }
  .hero-card { margin: 20px 0; padding: 18px; gap: 24px; }
  .hero-img { padding: 10px; }
  .spec-table { font-size: 13px; }
  .spec-table td:first-child { width: 42%; }
  .eyebrow { font-size: 9.5px; margin-bottom: 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid > div:last-child { grid-column: auto; }
  .foot-note { flex-direction: column; gap: 8px; }
  .form-grid, .co-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line .line-price { grid-column: 2; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
