/* Design refresh (Nov 2026): one page grid, readable type, clearer booking pages.
   Loaded last. Uses brand.css tokens. Remove this file (and its <link>) to undo most of the look. */

/* ---------- One page grid: booking pages line up with the header ---------- */
.container.rental-page { max-width: none; padding-left: 0; padding-right: 0; }
@media (max-width: 600px) { .rental-page:has(.signing-desk) { width: calc(100% - 28px); padding: 24px 0; } }

/* ---------- One page-title style everywhere ---------- */
.rental-cart h1, .rental-dashboard h1, .rental-page h1 { text-transform: uppercase; color: var(--ink); letter-spacing: -.025em; }
.rental-page h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.05; margin: 0 0 14px; }
.rental-cart .eyebrow, .rental-dashboard .eyebrow { margin: 0 0 6px; }

/* ---------- Readable small text (13px minimum) ---------- */
.eyebrow, .card-body .eyebrow { font-size: .8125rem; }
.card-meta, .card-rates dt, .panel-rates dt, .heading-tags span, .results-count,
.breadcrumb, .calendar-legend, .small-note, .status-caption, .cart-note, .footer-bottom { font-size: .8125rem; }
.card-body p { font-size: .875rem; }
.footer-grid p, .footer-grid a { font-size: .875rem; }

/* ---------- Header call button ---------- */
.header-call { white-space: nowrap; }

/* ---------- Footer ---------- */
.footer-brand-col { display: flex; flex-direction: column; gap: 14px; }
.footer-blurb { max-width: 30ch; margin: 0; color: var(--muted); line-height: 1.55; }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .site-footer a { overflow-wrap: normal; word-break: normal; }
}

/* ---------- Buttons: working state ---------- */
.is-busy { opacity: .7; cursor: progress; pointer-events: none; }

/* ---------- Home ---------- */
.hero-photo { position: relative; display: block; align-self: center; border-radius: 8px; overflow: hidden;
  border: 1px solid #ffffff40; box-shadow: 0 24px 50px #00113a55; aspect-ratio: 4 / 3; background: #0b2a7a; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.hero-photo:hover img { transform: scale(1.03); }
.hero-photo-label { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 4px; background: #fff; color: var(--navy);
  font-size: .85rem; font-weight: 650; text-decoration: none; }
.hero-call { display: none; background: #fff; color: var(--navy); }
.hero-call:hover { background: #e8eeff; }
@media (max-width: 800px) {
  .hero-call { display: inline-flex; }
  .hero-photo { aspect-ratio: 16 / 9; margin: 26px 0 30px; }
  .hero-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .hero-photo img { transition: none; } }
.steps-grid article { padding: 26px; }
.steps-grid .step-number { position: static; display: block; width: auto; height: auto; margin: 0 0 10px; padding: 0;
  border: 0; background: none; color: var(--blue); font-size: .8125rem; letter-spacing: .08em; text-align: left; }
.steps-grid .step-number::before { content: "Step "; }

/* ---------- Equipment cards ---------- */
.equipment-card .card-image, .equipment-card:nth-child(3n+2) .card-image, .equipment-card:nth-child(3n+3) .card-image {
  background: #fff; border-bottom: 1px solid var(--line); }
.card-image > .model-photo { padding: 12px; object-fit: contain; }
.card-body h3 a > span[aria-hidden] { display: none; }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 14px; padding: 0; list-style: none; }
.card-specs li { display: flex; flex-direction: column; line-height: 1.2; }
.card-specs strong { color: var(--navy); font-size: .95rem; }
.card-specs span { color: var(--muted); font-size: .75rem; }

/* ---------- Equipment list: search + category chips ---------- */
.catalog-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.catalog-search > button { grid-column: auto; }
@media (max-width: 560px) { .catalog-search { grid-template-columns: 1fr; } }
@media (min-width: 561px) and (max-width: 1000px) { .catalog-search { grid-template-columns: minmax(0, 1fr) auto; } .catalog-search > button { grid-column: auto; } }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.category-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--navy); font-size: .875rem; font-weight: 650; text-decoration: none; }
.category-chips a:hover { border-color: var(--blue); }
.category-chips a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Equipment page ---------- */
.key-specs { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.key-specs li { display: flex; flex-direction: column; min-width: 120px; padding: 12px 16px; border: 1px solid var(--line);
  border-left: 3px solid var(--blue); border-radius: 4px; background: #fff; }
.key-specs strong { color: var(--navy); font-size: 1.25rem; line-height: 1.2; }
.key-specs span { color: var(--muted); font-size: .8125rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: .95rem; }
.spec-table th, .spec-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 48%; color: var(--muted); font-weight: 500; }
.spec-table td { color: var(--ink); font-weight: 600; }
.spec-table tr:nth-child(odd) { background: var(--soft); }
@media (max-width: 560px) { .key-specs li { flex: 1 1 calc(50% - 10px); min-width: 0; } .spec-table th { width: 50%; } }

/* ---------- Date picker ---------- */
.dates-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.dates-layout #rental-form { margin: 0; min-width: 0; }
.dates-layout [data-field="quantity"] input { max-width: 160px; }
.dates-inline-submit { display: none !important; }
.dates-summary { position: sticky; top: 20px; padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--blue);
  border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.dates-summary img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: #fff; margin-bottom: 14px; }
.dates-summary img.model-photo { object-fit: contain; }
.rental-page .dates-summary h2 { margin: 0 0 12px; font-size: 1.15rem; text-transform: none; letter-spacing: 0; color: var(--navy); }
.dates-summary .panel-rates { margin: 0 0 14px; }
.dates-summary .button { width: 100%; margin-top: 14px; }
.estimate { min-height: 64px; padding: 12px 0 0; border-top: 1px solid var(--line); transition: opacity .2s; }
.estimate.is-loading { opacity: .5; }
.estimate-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.estimate-total { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--line); color: var(--navy); font-weight: 700; font-size: 1.05rem; }
.estimate-total strong { font-size: 1.35rem; }
.estimate-empty { margin: 0; color: var(--muted); font-size: .92rem; }
.estimate-error { margin: 0; color: #8a1f17; font-size: .92rem; }
.calendar-toolbar h2 { font-size: 1rem; margin: 0; letter-spacing: -.015em; text-transform: none; }
#action-bar-total { color: var(--muted); font-size: .8125rem; }
@media (max-width: 900px) {
  .dates-layout { grid-template-columns: 1fr; }
  .dates-summary { position: static; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 16px; }
  .dates-summary img { grid-row: span 3; margin: 0; }
  .dates-summary .estimate { grid-column: 1 / -1; margin-top: 14px; }
  .dates-aside-submit { display: none !important; }
}
@media (max-width: 420px) { .dates-summary { grid-template-columns: 1fr; } .dates-summary img { display: none; } }

/* ---------- Cart ---------- */
@media (min-width: 361px) { .rental-cart .cart-dates dd { white-space: nowrap; } }

/* ---------- Hold banner (rental, sign and pay pages) ---------- */
.hold-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 10px 14px; border: 1px solid #f0d58a;
  border-radius: 4px; background: #fff8e3; color: #5c4200; font-size: .92rem; }
.hold-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #e0a100; box-shadow: 0 0 0 4px #e0a10033; }
.hold-banner.is-short { border-color: #e7b4ae; background: #fff1ef; color: #8a1f17; }
.hold-banner.is-short .hold-dot { background: #c2382b; box-shadow: 0 0 0 4px #c2382b33; }
.hold-banner.is-ended { border-color: var(--line); background: var(--soft); color: var(--muted); }
.hold-banner.is-ended .hold-dot { background: #9aa8c7; box-shadow: none; }

/* ---------- Rental page ---------- */
.rental-overview { padding: 24px 28px; }
.rental-dashboard .next-steps { border: 1px solid var(--line); border-left: 4px solid var(--blue); background: #fff; padding: 22px 24px; margin-bottom: 20px; }
.rental-dashboard .next-steps h2 { margin-bottom: 14px; }
.rental-dashboard .next-steps .rental-action-row .button:first-child:not(.secondary-action) { padding: 14px 26px; font-size: 1rem; }
.next-step-help { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rental-dashboard .next-step-help h3 { font-size: 1rem; margin-bottom: 4px; }
.next-step-help p { margin: 0; color: var(--muted); font-size: .92rem; }
.rental-overview-status { margin: 0 0 24px; }
.rental-overview-status .rental-section-nav { margin-top: 14px; }
@media (min-width: 801px) {
  .rental-dashboard-grid { display: block; columns: 2 320px; column-gap: 24px; }
  .rental-dashboard-grid > .rental-main-column, .rental-dashboard-grid > .rental-side-column { display: contents; }
  .rental-dashboard-grid .dashboard-panel { break-inside: avoid; display: inline-block; width: 100%; box-sizing: border-box; margin: 0 0 24px; }
}

/* ---------- Sign page ---------- */
.sign-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; font-size: .92rem; }
.sign-jump { font-weight: 700; }
.sign-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
.sign-layout .signing-desk { min-width: 0; }
.sign-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 8px; background: #fff;
  box-shadow: var(--shadow); font-family: "Segoe UI", system-ui, sans-serif; }
.rental-page .sign-panel h2 { margin: 0 0 12px; font-size: 1.2rem; text-transform: none; letter-spacing: 0; color: var(--navy); }
.sign-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0 14px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.sign-total strong { color: var(--navy); font-size: 1.3rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sign-panel fieldset { margin: 12px 0; padding: 0; border: 0; }
.sign-panel legend { margin-bottom: 10px; font-weight: 700; color: var(--ink); }
.sign-panel .consent-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; margin: 0 0 14px; }
.rental-page .sign-panel .consent-row input[type=checkbox] { width: 24px; height: 24px; min-height: 0; padding: 0; margin: 1px 0 0; align-self: start; flex: none; accent-color: var(--blue); }
.sign-panel .consent-copy label { display: block; margin: 0; font-size: .95rem; line-height: 1.45; cursor: pointer; color: var(--ink); }
.sign-panel .consent-help { margin: 6px 0 0; font-size: .8125rem; color: var(--muted); }
.sign-panel #drawing-help { font-size: .9rem; color: var(--muted); }
.sign-panel .signature-caption { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.sign-panel .signature-tools { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.sign-panel .signature-tools p { margin: 0; font-size: .8125rem; color: var(--muted); }
.sign-panel #clear-signature { min-height: 44px; padding: 8px 14px; border: 1px solid #a9b8d3; border-radius: 4px; background: #fff; color: var(--navy); font: inherit; font-size: .875rem; cursor: pointer; }
.sign-panel .sign-submit { width: 100%; min-height: 52px; margin-top: 14px; font-size: 1rem; }
.sign-panel .sign-submit:disabled { background: #9aa8c7; cursor: not-allowed; }
@media (max-width: 1000px) {
  .sign-layout { grid-template-columns: 1fr; }
  .sign-panel { position: static; max-height: none; overflow: visible; }
}
@media (min-width: 1001px) { .sign-jump { display: none; } }

/* ---------- Pay page ---------- */
.pay-summary { max-width: 520px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 8px; background: #fff; }
.pay-line { padding: 4px 0; color: var(--ink); }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--line); color: var(--navy); font-weight: 700; }
.pay-total strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }

/* ---------- Policies ---------- */
.policy-text p, .policy-text li { font-size: 1rem; line-height: 1.7; }
.policy-fold > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid #b9c6ea;
  border-radius: 4px; color: var(--blue); font-weight: 650; cursor: pointer; list-style: none; }
.policy-fold > summary::-webkit-details-marker { display: none; }
.policy-fold > summary::after { content: "↓"; }
.policy-fold[open] > summary { margin-bottom: 16px; }
.policy-fold[open] > summary::after { content: "↑"; }
@media (min-width: 801px) {
  .policies-page .policy-jump { position: sticky; top: 0; z-index: 5; margin: 0 -8px 20px; padding: 10px 8px; background: #fff; }
}
.policies-page section[id] { scroll-margin-top: 70px; }

/* ---------- My rentals ---------- */
.narrow-form { margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 560px) { .narrow-form { padding: 20px; } }

/* ---------- 404 ---------- */
.not-found { padding-top: 70px; padding-bottom: 90px; }
.not-found .form-actions { margin: 22px 0; }

/* ---------- Ask AI: smaller, and out of the way of the home hero ---------- */
.ask-ai-launch { min-height: 44px; padding: 0 15px; font-size: .85rem; }
.ask-ai.is-tucked .ask-ai-launch { opacity: 0; transform: translateY(12px); pointer-events: none; }
.ask-ai-launch { transition: opacity .2s, transform .2s, background .2s; }
@media (prefers-reduced-motion: reduce) { .ask-ai-launch { transition: none; } }

/* Date picker summary: rates in one row like the equipment page */
.rental-page .dates-summary .panel-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rental-page .dates-summary .panel-rates dd { text-align: left; margin: 0; }
.rental-page .dates-summary .panel-rates > div { min-width: 0; }

/* Rental page on phones: status as compact rows */
@media (max-width: 800px) {
  .rental-overview-status .rental-status-grid { display: block; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .rental-overview-status .rental-status-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .rental-overview-status .rental-status-grid > div:last-child { border-bottom: 0; }
}

/* Signing on a phone or tablet: keep the Ask AI button off the signature box */
@media (max-width: 1000px) { body:has(.sign-panel) .ask-ai-launch { display: none; } }

/* Ask AI answers: light formatting */
.ask-ai-bot ul, .ask-ai-bot ol { margin: 6px 0; padding-left: 20px; }
.ask-ai-bot li { margin: 3px 0; }
.ask-ai-bot li::marker { color: var(--blue); }
.ask-ai-bot p + ul, .ask-ai-bot p + ol, .ask-ai-bot ul + p, .ask-ai-bot ol + p { margin-top: 8px; }
.ask-ai-bot strong { color: var(--navy); font-weight: 700; }
.ask-ai-bot a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* Ask AI option tiles */
.ask-ai-tiles { align-self: stretch; display: flex; flex-direction: column; gap: 10px; }
.ask-ai-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; box-shadow: 0 2px 8px #0022660d; font-size: .9rem; }
.ask-ai-card-head { display: flex; align-items: center; gap: 12px; }
.ask-ai-card-head img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.ask-ai-card-head div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ask-ai-card-head strong { color: var(--navy); font-size: 1rem; }
.ask-ai-card-head span { color: var(--muted); font-size: .8125rem; }
.ask-ai-card-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.ask-ai-card-specs div { padding: 6px 8px; border-radius: 4px; background: var(--soft); }
.ask-ai-card-specs dt { color: var(--muted); font-size: .75rem; }
.ask-ai-card-specs dd { margin: 0; color: var(--ink); font-weight: 700; font-size: .875rem; }
.ask-ai-card-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ask-ai-card-price > span { color: var(--muted); font-size: .8125rem; }
.ask-ai-card-price > div { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.ask-ai-card-price strong { color: var(--navy); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.ask-ai-card-price small { color: var(--muted); font-size: .75rem; }
.ask-ai-card-actions { display: flex; gap: 8px; }
.ask-ai-card-add { flex: 1; min-height: 44px; border: 0; border-radius: 4px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ask-ai-card-add:hover { background: var(--navy); }
.ask-ai-card-add:disabled { opacity: .6; cursor: default; }
.ask-ai-card-details { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid #b9c6ea; border-radius: 4px; color: var(--navy); font-weight: 650; text-decoration: none; }
.ask-ai-card-details:hover { border-color: var(--blue); }
.ask-ai-card-status { margin: 0; font-size: .875rem; }
.ask-ai-card-status:empty { display: none; }
.ask-ai-card.is-added { border-color: #9fd3b8; background: #f3fbf6; }
.ask-ai-card.is-added .ask-ai-card-status { color: #16734a; font-weight: 650; }
