/* LOM rental. Same visual language as LOM space (reference/space2-style.css):
   Helvetica, black hairlines, bands of touching cells on a 12-column grid,
   tiles with black caption bars. Own colour scheme: cool blue-grey ground,
   acid-lime accent (space uses grey + coral).

   Scope: this file is loaded only by the rental templates in the Shopify theme
   (body class "rental"), so it must not leak into the rest of store.lom.audio. */

.rental {
  --bg: #e3e6e9;
  --text: #000;
  --muted: #4d555c;      /* 6.4:1 on --bg */
  --tile: #cdd3d9;       /* photo placeholder / image background */
  --soft: #f4f5f6;       /* free calendar day */
  --wordmark: #a9b1b9;
  --cap-muted: #a8afb6;  /* secondary text on black caption bars */
  --accent: #b8f03a;     /* hover, selection, "1 unit left"; always with black text */
  --edge: 16px;
  --line: 1px;

  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.rental *, .rental *::before, .rental *::after { box-sizing: border-box; }
.rental a { color: inherit; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.rental a:hover { color: var(--text); }
.rental :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header + nav */
.r-header { display: flex; flex-direction: column; gap: 6px; padding: 16px var(--edge) 14px; border-bottom: var(--line) solid var(--text); }
.r-wordmark { font-size: clamp(46px, 13.5vw, 68px); font-style: italic; font-weight: 700; line-height: 0.9; letter-spacing: -0.02em; white-space: nowrap; color: var(--wordmark); text-decoration: none; }
.r-tagline { margin: 0; font-size: 15px; line-height: 1.3; }
.r-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 10px var(--edge); border-bottom: var(--line) solid var(--text); font-size: 15px; }
.r-nav a { text-decoration: none; }
.r-nav a:hover, .r-nav a[aria-current] { text-decoration: underline; }
.r-nav .gap { flex: 1 1 24px; }
.r-nav .back { color: var(--muted); }
.r-nav .request { padding: 4px 10px 5px; background: var(--text); color: #fff; text-decoration: none; }
.r-nav .request:hover { background: var(--accent); color: #000; text-decoration: none; }

/* Bands and cells (identical rules to space) */
.band { border-bottom: var(--line) solid var(--text); }
.cell { min-width: 0; padding: 18px var(--edge) 24px; }
.cell + .cell { border-top: var(--line) solid var(--text); }
.cell.flush { padding: 0; }
.title { margin: 0; font-size: 22px; font-weight: 400; line-height: 1.2; }
.note { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.lead { margin: 0; max-width: 34ch; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.3; letter-spacing: -0.005em; }
.display { margin: 0; font-size: clamp(28px, 4vw, 46px); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.kicker { margin: 0 0 6px; font-size: 17px; color: var(--muted); }
.label-sm { margin: 0 0 8px; font-size: 13px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 5px 16px; margin: 0; font-size: 15px; line-height: 1.4; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.badge { padding: 2px 8px; background: var(--accent); color: #000; font-size: 13px; }

/* Steps: a band of four numbered cells */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--line); background: var(--text); margin: 0; padding: 0; list-style: none; }
.steps > li { background: var(--bg); padding: 18px var(--edge) 24px; }
.steps > li.done { background: var(--text); color: #fff; }
.steps > li.done .numeral { color: var(--accent); }
.numeral { margin: 0; font-size: clamp(40px, 5vw, 56px); font-weight: 700; font-style: italic; line-height: 0.95; letter-spacing: -0.02em; }
.steps p + p { margin: 12px 0 0; font-size: 22px; line-height: 1.2; }

/* Product grid: tiles with black caption bars */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--line); background: var(--text); margin: 0; padding: 0; list-style: none; }
.grid > li { display: flex; min-width: 0; background: var(--bg); }
.tile { flex: 1; display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.pic { display: block; aspect-ratio: 4 / 3; background: var(--tile); }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cap { flex: 1 0 auto; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px var(--edge) 11px; background: var(--text); color: #fff; font-size: 15px; line-height: 1.3; transition: background-color 0.15s; }
.cap .price { display: block; color: var(--cap-muted); font-size: 13px; }
.cap .name { display: block; overflow-wrap: anywhere; }
.cap .arrow { color: var(--cap-muted); transition: transform 0.2s, color 0.2s; }
a.tile:hover .cap, a.tile:focus-visible .cap { background: var(--accent); color: #000; }
a.tile:hover .price, a.tile:hover .arrow, a.tile:focus-visible .price, a.tile:focus-visible .arrow { color: #000; }
a.tile:hover .arrow { transform: translateX(4px); }
a.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile.unavailable .cap { background: var(--muted); }

/* Buttons */
.btn { display: inline-block; padding: 11px 18px 12px; background: var(--text); color: #fff; font: inherit; font-size: 17px; line-height: 1.2; text-decoration: none; border: var(--line) solid var(--text); border-radius: 0; cursor: pointer; transition: background-color 0.15s; }
.btn.quiet { background: transparent; color: var(--text); }
.btn:hover, .btn:focus-visible { background: var(--accent); color: #000; }
.btn[disabled] { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--muted); cursor: not-allowed; }

/* Lists of rows (price tiers, request lines) */
.lineup { margin: 0; padding: 0; list-style: none; border-top: var(--line) solid var(--text); font-size: 17px; font-variant-numeric: tabular-nums; }
.lineup li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 10px; border-bottom: var(--line) solid var(--text); }
.lineup li.on { background: var(--accent); }
.req-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 0 16px; align-items: center; padding: 14px var(--edge); border-bottom: var(--line) solid var(--text); }
.req-line .thumb { width: 72px; height: 56px; object-fit: cover; background: var(--tile); outline: var(--line) solid var(--text); }
.req-line .meta { display: block; font-size: 14px; color: var(--muted); }
.req-line .amount { font-size: 22px; font-variant-numeric: tabular-nums; }

/* Form controls */
.field { display: flex; flex-direction: column; gap: 6px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { font: inherit; font-size: 17px; padding: 9px 10px 10px; color: var(--text); background: #fff; border: var(--line) solid var(--text); border-radius: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--text); flex: 0 0 auto; }
.stepper { display: inline-flex; align-items: center; border: var(--line) solid var(--text); }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--bg); font: inherit; font-size: 20px; cursor: pointer; color: var(--text); }
.stepper button:first-child { border-right: var(--line) solid var(--text); }
.stepper button:last-child { border-left: var(--line) solid var(--text); }
.stepper output { width: 44px; text-align: center; font-size: 17px; font-variant-numeric: tabular-nums; }
.summary { border: var(--line) solid var(--text); padding: 16px var(--edge) 18px; display: flex; flex-direction: column; gap: 4px; }
.summary .total { font-size: 36px; line-height: 1.1; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.summary .error { align-self: flex-start; padding: 2px 8px; background: var(--text); color: #fff; font-size: 15px; }

/* Availability calendar. Hairline grid: the container is black and the
   1px gaps between day cells are the lines. */
.cal-months { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--line); background: var(--text); border: var(--line) solid var(--text); }
.cal-month { background: var(--bg); padding: 12px 12px 14px; min-width: 0; }
.cal-month h3 { margin: 0 0 8px; font-size: 17px; font-weight: 400; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.cal-days { gap: var(--line); background: var(--text); border: var(--line) solid var(--text); }
.cal-days > span { background: var(--bg); }
.day { height: 40px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 0; font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; background: var(--soft); color: var(--text); cursor: pointer; }
.day.past { background: var(--bg); color: #8e969e; cursor: default; }
.day.booked { background: repeating-linear-gradient(45deg, #8e969e 0 1px, var(--bg) 1px 5px); color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.day.low { box-shadow: inset 0 -4px 0 var(--accent); }          /* fewer units free than owned */
.day.in-range { background: var(--accent); color: #000; box-shadow: none; }
.day.edge { background: var(--text); color: #fff; box-shadow: none; } /* pickup and return day */
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.cal-legend i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border: var(--line) solid var(--text); }

/* Footer */
.r-footer { font-size: 14px; line-height: 1.5; color: var(--muted); }
.r-footer p { margin: 0; }
.r-footer strong { color: var(--text); font-weight: 400; }

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .rental { --edge: 20px; }
  .r-header { padding-top: 28px; padding-bottom: 18px; gap: 10px; }
  .r-wordmark { font-size: clamp(84px, 8vw, 124px); }
  .r-tagline { font-size: clamp(16px, 1.4vw, 20px); }
  .r-nav { font-size: 17px; }
  .title { font-size: clamp(22px, 2vw, 28px); }
  .cap { font-size: 17px; padding-top: 12px; padding-bottom: 13px; }
  .cap .price { font-size: 14px; }
}
@media (max-width: 899px) {
  main > .band { border-bottom-width: 3px; }
}
@media (min-width: 900px) {
  .band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cell { padding: 22px var(--edge) 30px; }
  .cell + .cell { border-top: 0; border-left: var(--line) solid var(--text); }
  .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; }
  .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c9 { grid-column: span 9; }
  .c12 { grid-column: span 12; }
  .sticky { position: sticky; top: 14px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .product > .info { border-left: var(--line) solid var(--text); margin-left: -1px; min-height: 100%; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .cap .arrow, .cap, .btn { transition: none; }
}

/* ------------------------------------------------------------------
   Theme additions (not in design/rental.css): page chrome, product
   layout details, request lines, small controls. Same tokens as above. */
body.rental { margin: 0; min-height: 100vh; }
/* .rental a { color: inherit } outranks single-class rules, so links that are buttons need these: */
.rental a.btn { color: #fff; text-decoration: none; }
.rental a.btn.quiet { color: var(--text); }
.rental a.btn:hover, .rental a.btn:focus-visible { color: #000; }
.rental a.btn[aria-disabled="true"] { color: var(--muted); }
/* Wordmark: acid-lime letters with a thin black outline and a hard black shadow. Lime alone is
   1.1:1 on --bg, so the outline and shadow carry the shape. Hover "presses" it: the letters move
   onto their shadow. .rental a { color: inherit } is more specific than .r-wordmark. */
.rental .r-wordmark { color: var(--accent); -webkit-text-stroke: 0.012em var(--text); paint-order: stroke fill; text-shadow: 0.045em 0.045em 0 var(--text); transition: transform 90ms ease-out, text-shadow 90ms ease-out; }
.rental .r-wordmark:hover, .rental .r-wordmark:focus-visible { color: var(--accent); transform: translate(0.03em, 0.03em); text-shadow: 0.015em 0.015em 0 var(--text); }
@media (prefers-reduced-motion: reduce) { .rental .r-wordmark { transition: none; } }
/* Catalog page: the 1–4 guide row on lime (the thank-you page keeps grey/black progress steps). */
.template-catalog .steps > li { background: var(--accent); color: #000; }
.rental .skip-link { position: absolute; left: -999px; top: 0; padding: 8px 12px; background: var(--text); color: #fff; z-index: 10; }
.rental .skip-link:focus { left: var(--edge); }
.rental .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rental button.linklike { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.rental [hidden] { display: none !important; }

/* Prose inside cells (descriptions, terms page) */
.prose { font-size: 17px; line-height: 1.5; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 1.2em; }
.prose li + li { margin-top: 4px; }
.prose h2, .prose h3 { margin: 24px 0 8px; font-size: 22px; font-weight: 400; line-height: 1.2; }
.prose strong { font-weight: 700; }

/* Catalog */
.intro .lead { max-width: 40ch; }

/* Product page */
.product .media .pic { aspect-ratio: 4 / 3; background: var(--tile); margin: 0 calc(-1 * var(--edge)); }
.product .media > .pic:first-child { margin-top: -18px; }
.product .media .pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--line); background: var(--text); margin: var(--line) calc(-1 * var(--edge)) 0; padding: 0; list-style: none; }
.product .media .pics .pic { margin: 0; aspect-ratio: 4 / 3; }
.product .media .title { margin-top: 24px; }
.product .media .title + .prose, .product .media .title + p { margin-top: 8px; }
.product .info > * + * { margin-top: 20px; }
.product .info .kicker { margin-bottom: 0; }
.product .info .display + .about { margin-top: 10px; max-width: 48ch; }
.product .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.product .row .label-sm { margin: 0; }
.product .dates .cal { margin-top: 10px; }
.product .units { margin-bottom: 0; }
.product .actions .btn { width: 100%; text-align: center; }
.product .info > .note:last-child { max-width: 52ch; }
.summary .error[hidden] { display: none; }
@media (min-width: 900px) {
  .product .media > .pic:first-child { margin-top: -22px; }
  .product .info { position: sticky; top: 0; }
}

/* Request page */
.req-lines { margin: 0; padding: 0; list-style: none; }
.req-line { border-bottom: var(--line) solid var(--text); }
.req-line > span:nth-child(2) > a { font-size: 17px; }
.req-line .meta { margin-top: 4px; }
.req-line .meta .stepper.small { vertical-align: middle; margin-right: 6px; }
.stepper.small button { width: 32px; height: 32px; font-size: 17px; }
.stepper.small output { width: 32px; font-size: 15px; }
.req-line .amount { align-self: start; }
.change .cal { margin-top: 10px; }
.change .summary-line { margin: 10px 0 0; font-size: 17px; }
.request-form { display: flex; flex-direction: column; gap: 18px; }
.request-form .totals { font-size: 17px; }
.request-form .totals dd { text-align: right; font-variant-numeric: tabular-nums; }
.request-form .actions .btn { width: 100%; text-align: center; }
.request-form .actions .note { margin-top: 10px; }
.actions .btn + .btn { margin-left: 8px; }
.error { color: var(--text); }
p.error { padding: 2px 8px; background: var(--text); color: #fff; font-size: 15px; display: inline-block; }
.mixed .title { margin: 0; }
.mixed .actions { margin: 12px 0 0; }
.rental .busy { opacity: 0.6; cursor: progress; }
.cal-dow span { display: block; }
@media (min-width: 900px) {
  .request-form { position: sticky; top: 0; align-self: start; }
}

/* Request form: customer details */
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field.two > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field input[type="tel"] { font: inherit; font-size: 17px; padding: 9px 10px 10px; color: var(--text); background: #fff; border: var(--line) solid var(--text); border-radius: 0; }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request-form .title { margin-top: 6px; }
.field input:invalid.touched, .field input.invalid { border-color: #b00020; }
/* Thank-you page */
.template-thanks .steps p.note { font-size: 15px; margin-top: 6px; }
.template-thanks .lineup li { padding: 10px 0; }

/* Calendar legend swatches (classes so the site can run under a strict CSP) */
.cal-legend .lg-free { background: var(--soft); }
.cal-legend .lg-low { background: var(--soft); box-shadow: inset 0 -4px 0 var(--accent); }
.cal-legend .lg-booked { background: repeating-linear-gradient(45deg, #8e969e 0 1px, var(--bg) 1px 5px); }
.cal-legend .lg-yours { background: var(--accent); }
