/* A Signs Plus store for WVU Medicine.
   Signs Plus: Tahoma, a thin utility bar, a white masthead with the centered
   logo, a colored category bar, a dark photo-style hero, label-strip tiles.
   WVU: the brand guide's web colors and its generic graphic elements
   (slashes, arrows, corner slashes, topo lines, rolling hills, pinstripes).
   No WVU logos, marks or taglines. */
:root {
  --brand: #002855;        /* WVU blue */
  --accent: #eeaa00;       /* WVU gold */
  --sky: #9ddae6;          /* Star City Blue */
  --coal: #1c2b39;         /* Coal */
  --navy-deep: #001a38;
  --ink: #1f2937;
  --muted: #5f6b7a;
  --line: #dfe3e8;
  --soft: #f7f7f7;         /* Not Quite White */
  --bg: #ffffff;
  --radius: 4px;
  --danger: #b42318;
  --ok: #067647;
  --font: Tahoma, Verdana, "Segoe UI", Geneva, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--soft); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
main { background: var(--soft); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 44px 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* WVU slash tags: two parallelograms, blue then gold. */
.slashes { display: inline-flex; gap: 3px; vertical-align: middle; }
.slashes::before, .slashes::after { content: ""; width: 10px; height: 14px; transform: skewX(-25deg); background: var(--brand); outline: 1px solid var(--accent); }
.slashes::after { background: var(--accent); outline-color: var(--brand); }
.tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); }
.tag::before { content: ""; width: 26px; height: 12px; background: linear-gradient(90deg, var(--accent) 0 45%, transparent 45% 55%, #fff 55%); clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); }

/* Utility bar (Signs Plus's thin top bar, in WVU blue) */
.topbar { background: var(--brand); color: #fff; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar-contact, .topbar-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar .link-btn { color: #fff; font-size: .82rem; }
.account { display: flex; align-items: center; gap: 10px; margin: 0; }
.account-email { color: var(--sky); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Masthead: centered Signs Plus logo with the WVU Medicine lockup under it */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 14px; }
.masthead-side { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.masthead-side a { color: var(--brand); text-decoration: none; }
.masthead-right { align-items: flex-end; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--brand); }
.brand img { width: 300px; height: auto; }
.brand-text { font-size: 1.6rem; font-weight: 700; }
.lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--brand); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); text-decoration: none; font-weight: 700; border: 2px solid var(--brand); padding: 8px 14px; border-radius: var(--radius); }
.cart-link:hover { background: var(--brand); color: #fff; }
.cart-count { background: var(--accent); color: var(--brand); border-radius: 999px; min-width: 22px; height: 22px; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* Category bar (Signs Plus's green bar, WVU gold like the athletics sub-bar) */
.catbar { background: var(--accent); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 0 var(--brand); }
.catbar-inner { display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catbar-inner::-webkit-scrollbar { display: none; }
.catbar a { color: var(--brand); text-decoration: none; font-weight: 700; white-space: nowrap; padding: 12px 14px; font-size: .95rem; position: relative; }
.catbar a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; background: var(--brand); transform: scaleX(0); transition: transform .15s; }
.catbar a:hover::after { transform: scaleX(1); }
.catbar-cart { display: none; }

/* Buttons: square-ish like Signs Plus, WVU colors */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: var(--radius); padding: 12px 24px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--navy-deep); }
.btn-accent { background: var(--accent); color: var(--brand); }
.btn-accent:hover { background: #ffbe1a; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .875rem; padding: 0; }

/* Hero: Signs Plus's dark centered hero, WVU blue with topo lines and rolling hills */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 70% 20%, #0b3a70 0%, var(--brand) 45%, var(--navy-deep) 100%); }
.hero-pattern { position: absolute; inset: 0; background: url("/static/brand/topo.svg") 0 0 / 480px 480px; opacity: .12; pointer-events: none; }
.hero-inner { position: relative; padding: 72px 20px 104px; text-align: center; display: flex; justify-content: center; }
.hero-copy { max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin: 16px 0 14px; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.hero h1::after { content: ""; display: block; width: 120px; height: 6px; margin: 18px auto 0; background: var(--accent); clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
.hero p { font-size: 1.1rem; max-width: 56ch; opacity: .92; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-hills { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: url("/static/brand/hills.svg") center bottom / 100% 100% no-repeat; }
.hero-inner.has-collage { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; text-align: left; }
.hero-inner.has-collage .hero-copy { align-items: flex-start; }
.hero-inner.has-collage .hero h1::after, .has-collage h1::after { margin-left: 0; }
.hero-inner.has-collage .hero-actions { justify-content: flex-start; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage img { background: #fff; aspect-ratio: 1; object-fit: contain; padding: 8px; border-bottom: 5px solid var(--accent); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.collage img:nth-child(2), .collage img:nth-child(3) { border-bottom-color: var(--sky); }

/* "How ordering works" band, Star City Blue like wvumedicine.org */
.steps-band { background: var(--sky); padding: 8px 0 28px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how li { display: flex; gap: 14px; align-items: flex-start; background: #fff; padding: 18px; border-top: 4px solid var(--brand); box-shadow: 0 1px 0 rgba(0,40,85,.15); }
.how strong { display: block; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; margin-bottom: 2px; }
.how span:not(.arrow) { font-size: .9rem; color: var(--muted); }
.arrow { flex-shrink: 0; width: 26px; height: 28px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); filter: drop-shadow(1px 0 0 var(--brand)); margin-top: 2px; }
.how li:nth-child(2) .arrow { background: var(--brand); }
.how li:nth-child(3) .arrow { background: var(--sky); }

/* Headings: WVU-style slash tag before section titles */
.section-title { display: flex; align-items: center; gap: 14px; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .03em; color: var(--brand); margin-bottom: 22px; }
.section-title::before { content: ""; width: 34px; height: 18px; flex-shrink: 0; background: linear-gradient(90deg, var(--brand) 0 44%, transparent 44% 56%, var(--accent) 56%); clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.page-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; color: var(--brand); letter-spacing: .01em; }
.page-title::after { content: ""; display: block; width: 72px; height: 5px; margin-top: 12px; background: var(--accent); clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%); }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.count { margin: 0 0 16px; }
.grid + .center { margin-top: 32px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* Category tiles: Signs Plus photo tiles with a label strip, in WVU blue and gold */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 22px; }
.grid > *, .tiles > * { min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; background: #fff; text-decoration: none; aspect-ratio: 1; display: block; border: 1px solid var(--line); }
.tile-img { position: absolute; inset: 0 0 48px; padding: 14px; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-label { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; border-top: 4px solid var(--accent); }
.tile::after { content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%); transform: translate(100%, -100%); transition: transform .2s; }
.tile:hover::after { transform: none; }

/* Product cards */
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); position: relative; transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(0,40,85,.12); }
.card::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.card:hover::before { transform: scaleX(1); }
.card-img { aspect-ratio: 1; background: #fff; overflow: hidden; padding: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 12px 14px 16px; border-top: 1px solid var(--line); text-align: center; }
.card-title { font-weight: 700; color: var(--brand); }
.card-price { color: var(--ink); margin-top: 2px; font-size: .92rem; }
.card-swatches { display: flex; gap: 4px; margin-top: 8px; align-items: center; justify-content: center; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.more { font-size: .75rem; color: var(--muted); }
.img-missing { width: 100%; height: 100%; min-height: 200px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; background: #fff; padding: 28px; border: 1px solid var(--line); }
.gallery-main { aspect-ratio: 1; background: #fff; overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); overflow: hidden; background: #fff; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active { border-color: var(--accent); }
.pdp-title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; color: var(--brand); text-transform: uppercase; }
.pdp-price { font-size: 1.35rem; font-weight: 700; margin-bottom: 20px; }
.opt { border: 0; padding: 0; margin: 0 0 20px; }
.opt legend { font-weight: 700; margin-bottom: 10px; padding: 0; color: var(--brand); }
.opt legend strong { font-weight: 400; color: var(--muted); }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; cursor: pointer; }
.swatch input, .size input, .radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-dot { display: block; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); box-shadow: 0 0 0 3px #fff; }
.swatch input:checked + .swatch-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.swatch input:focus-visible + .swatch-dot { outline: 3px solid var(--accent); outline-offset: 4px; }
.size span { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 10px 14px; border: 2px solid var(--line); cursor: pointer; font-weight: 700; background: #fff; }
.size span small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.size input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.size input:checked + span small { color: #fff; }
.size input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.qty-row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.qty { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.qty input { width: 80px; padding: 10px; border: 2px solid var(--line); font: inherit; }
.pdp-desc { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.pdp-desc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.pdp-meta { list-style: none; padding: 14px 16px; margin: 24px 0 0; font-size: .9rem; display: grid; gap: 6px; background: var(--soft); border-left: 4px solid var(--accent); }
.pdp-meta li::before { content: ""; display: inline-block; width: 9px; height: 10px; margin-right: 9px; background: var(--brand); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* Quantity price breaks */
.tiers { border-collapse: collapse; margin: -8px 0 8px; font-size: .9rem; font-variant-numeric: tabular-nums; display: block; overflow-x: auto; max-width: 100%; }
.tiers th { text-align: left; font-weight: 700; color: var(--brand); padding: 4px 12px 4px 0; white-space: nowrap; }
.tiers td { padding: 4px 10px; border-left: 1px solid var(--line); white-space: nowrap; }
.short { color: var(--danger); font-size: .875rem; margin-top: 2px; }

/* Alerts */
.alert, .notice { padding: 12px 16px; margin-bottom: 16px; border-left: 5px solid; }
.alert { background: #fef3f2; color: var(--danger); border-color: var(--danger); }
.notice { background: #eef8fb; color: var(--brand); border-color: var(--sky); }

/* Cart */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cart-lines { background: #fff; border: 1px solid var(--line); padding: 4px 20px 20px; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto auto; grid-template-areas: "thumb desc qty total" "thumb remove qty total"; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-thumb { grid-area: thumb; width: 88px; height: 88px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-desc { grid-area: desc; }
.cart-title { font-weight: 700; color: var(--brand); text-decoration: none; }
.cart-line .qty { grid-area: qty; }
.cart-total { grid-area: total; font-weight: 700; min-width: 80px; text-align: right; }
.cart-line .link-btn { grid-area: remove; justify-self: start; }
.cart-lines .btn { margin-top: 16px; }
.summary { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--brand); padding: 22px; position: sticky; top: 64px; }
.summary h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.radio-card { position: relative; display: block; cursor: pointer; margin-bottom: 10px; }
.radio-card span { display: block; background: #fff; border: 2px solid var(--line); padding: 12px 14px; }
.radio-card input:checked + span { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--accent); }
.radio-card input:focus-visible + span { outline: 3px solid var(--accent); }
.summary .btn { margin: 12px 0 8px; }

/* Panels, tables, orders */
.panel { background: #fff; border: 1px solid var(--line); padding: 22px; margin: 20px 0; }
.panel h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); display: flex; align-items: center; gap: 10px; }
.panel h2::before { content: ""; width: 16px; height: 12px; background: var(--accent); clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); flex-shrink: 0; }
fieldset.panel { min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lines { width: 100%; border-collapse: collapse; }
.lines th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--brand); padding: 9px 8px; }
.lines td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines tfoot td { border: 0; padding: 4px 8px; }
.lines tfoot .grand td { font-weight: 700; font-size: 1.1rem; padding-top: 10px; border-top: 2px solid var(--brand); }
.num { text-align: right; white-space: nowrap; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; background: var(--soft); border: 1px solid var(--line); color: var(--brand); }
.badge-pending_approval { background: #fff4d6; color: #7a5200; border-color: var(--accent); }
.badge-rejected, .badge-cancelled { background: #fef3f2; color: var(--danger); border-color: #fecdca; }
.badge-submitted, .badge-accepted { background: #eef8fb; color: var(--brand); border-color: var(--sky); }
.badge-shipped, .badge-invoiced, .badge-closed { background: #ecfdf3; color: var(--ok); border-color: #abefc6; }
.ship-form { display: grid; grid-template-columns: 160px 1fr auto; gap: 12px; align-items: end; margin-top: 12px; }
.ship-form label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.ship-form .check { grid-column: 1 / -1; }
.prose { background: #fff; border: 1px solid var(--line); padding: 32px; margin-top: 44px; margin-bottom: 44px; }
.prose p { max-width: 65ch; }

/* Checkout */
.checkout-form fieldset { border: 1px solid var(--line); margin: 20px 0; }
.checkout-form legend { padding: 0 6px; }
.checkout-form legend h2 { margin: 0; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem 1rem; margin-top: .9rem; }
.field-grid label { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .88rem; color: var(--brand); }
.field-grid .span-2 { grid-column: span 2; }
.field-grid input, .field-grid textarea, .ship-form input, .ship-form select { font: inherit; padding: .6rem .7rem; border: 2px solid var(--line); border-radius: 0; color: var(--ink); background: #fff; }
.field-grid input:focus, .field-grid textarea:focus, .ship-form input:focus, .auth-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(238,170,0,.45); }
.field-error { color: var(--danger); font-weight: 400; font-size: .85rem; }
.readonly { display: grid; grid-template-columns: 10rem 1fr; gap: .45rem 1rem; margin: .6rem 0 0; }
.readonly dt { color: var(--muted); }
.readonly dd { margin: 0; font-weight: 700; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin: .5rem 0 1rem; font-weight: 700; padding: 14px; background: var(--soft); border-left: 4px solid var(--accent); }
.check input { margin-top: .2rem; width: 1.15rem; height: 1.15rem; accent-color: var(--brand); flex-shrink: 0; }
.checkout-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.checkout-actions form { margin: 0; }
form.inline { display: inline; }

/* Sign-in: the masthead logo over a card with a WVU blue top edge */
.auth { display: flex; justify-content: center; padding-top: 56px; padding-bottom: 72px; }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--brand); padding: 32px; position: relative; }
.auth-card::after { content: ""; position: absolute; top: -6px; right: 0; width: 60px; height: 6px; background: var(--accent); }
.auth-card .page-title { margin-top: 0; }
.auth-form { display: grid; gap: 16px; margin: 20px 0 12px; }
.auth-form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--brand); }
.auth-form input { padding: 12px; border: 2px solid var(--line); font: inherit; }

/* Footer: Coal, gold letter-spaced headings, pinstripes along the top */
.site-footer { background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 7px), var(--coal); color: #d6dde5; font-size: .92rem; }
.footer-stripes { height: 6px; background: linear-gradient(90deg, var(--accent) 0 70%, var(--brand) 70% 72%, var(--sky) 72%); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.footer-grid a, .footer-grid span { display: block; color: #fff; text-decoration: none; margin-bottom: 7px; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { max-width: 42ch; color: #b8c2cd; }
.footer-logo { width: 200px; height: auto; background: #fff; padding: 10px 12px; margin-bottom: 14px; }
.footer-head { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; margin-bottom: 12px; }
.footer-fine { color: #8a97a6; font-size: .8rem; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.12); }

/* Demo mode and owner pages */
.demo-note { background: #fffbeb; border-left: 5px solid var(--accent); padding: 14px 16px; margin: 0 0 20px; }
.inbox { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); background: #fff; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox a { display: grid; grid-template-columns: 210px 1fr auto; gap: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); align-items: center; }
.inbox a:hover { background: var(--soft); }
.inbox .to { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; margin-right: 6px; }
.who-owner { background: var(--brand); color: #fff; }
.who-customer { background: var(--accent); color: var(--brand); }
.who-contact { background: #9ddae6; color: var(--brand); }
.who-ap { background: #1c2b39; color: #fff; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li { counter-increment: step; position: relative; padding: 18px 18px 18px 66px; background: #fff; border: 1px solid var(--line); }
.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; background: var(--brand); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%); }
.steps h3 { margin: 4px 0 6px; font-size: 1.05rem; color: var(--brand); text-transform: uppercase; }
.steps p { margin: 0 0 6px; }
.compare { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--brand); }
.compare td:first-child { font-weight: 700; width: 24%; }

@media (max-width: 860px) {
  .pdp, .cart-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pdp { padding: 18px; }
  .summary { position: static; }
  .wrap.masthead-inner { grid-template-columns: 1fr auto; padding-top: 12px; padding-bottom: 12px; }
  .masthead-left { display: none; }
  .brand { align-items: flex-start; }
  .brand img { width: 200px; }
  .lockup { font-size: .68rem; letter-spacing: .14em; }
  .catbar-inner { justify-content: flex-start; }
  .footer-grid, .two-col { grid-template-columns: 1fr; gap: 20px; }
  .ship-form { grid-template-columns: 1fr; }
  .hero-inner, .hero-inner.has-collage { grid-template-columns: 1fr; padding: 52px 20px 88px; text-align: center; }
  .hero-inner.has-collage .hero-copy { align-items: center; }
  .hero-inner.has-collage .hero-actions { justify-content: center; }
  .has-collage h1::after { margin-left: auto; }
  .collage { display: none; }
  .how { grid-template-columns: 1fr; }
  .inbox a { grid-template-columns: 1fr; gap: 4px; }
  .compare td:first-child { width: auto; }
  .wrap { padding: 0 16px; }
  .section, .wrap.section { padding: 28px 16px; }
  .prose { padding: 22px; margin: 24px 16px; }
}
@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .span-2 { grid-column: auto; }
  .readonly { grid-template-columns: 1fr; }
  .topbar-contact { display: none; }
  .account-email { display: none; }
  .cart-link span:not(.cart-count) { display: none; }
  .auth-card { padding: 24px 20px; }
}
@media (max-width: 520px) {
  .grid, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-label { font-size: .8rem; letter-spacing: .03em; }
  .cart-line { grid-template-columns: 64px 1fr auto; grid-template-areas: "thumb desc total" "thumb qty remove"; }
  .cart-thumb { width: 64px; height: 64px; }
  .cart-line .link-btn { justify-self: end; }
  .cart-lines { padding: 4px 12px 16px; }
}
@media print {
  .topbar, .masthead, .catbar, .site-footer, .no-print { display: none !important; }
  .panel { break-inside: avoid; }
  body, main { font-size: 12pt; background: #fff; }
}
