@font-face {
  font-family: "Instrument Sans";
  src: url("vendor/instrument-sans.fa41c43a3d8e.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #272522;
  --muted: #625b51;
  --paper: #f7f4ed;
  --card: #fffdf8;
  --line: #e3dccf;
  --orange: #f36541;
  --orange-ink: #a2311a;
  --orange-soft: #fbe9dd;
  --dark: #211f1b;
  --bs-body-font-family: "Instrument Sans", system-ui, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--orange-ink); }
button, a, input, select, textarea, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--orange-ink); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.045em; line-height: 1.08; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p:last-child, dl:last-child { margin-bottom: 0; }
.shell { width: min(100% - 96px, 1216px); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted, .field small, .job-row small, .inventory-row small { color: var(--muted); }
.skip-link { position: absolute; z-index: 10; background: var(--card); padding: .75rem; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .65rem 1.5rem; }
.header-inner { min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.brand-accent { color: var(--orange-ink); }
.brand-mark { width: 32px; height: 32px; margin-right: .5rem; background: var(--orange); border-radius: 7px; position: relative; display: grid; place-items: center; }
.brand-mark span { width: 17px; height: 11px; background: var(--ink); clip-path: polygon(0 0,100% 0,87% 100%,13% 100%); }
.brand-mark span::after { content: ""; position: absolute; top: 13px; left: 13px; width: 1px; height: 6px; background: var(--orange); box-shadow: 3px 0 var(--orange), 6px 0 var(--orange); }
.header-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.header-nav a { font-weight: 650; font-size: .94rem; text-decoration: none; }
.header-nav .nav-dashboard { border: 1px solid var(--line); border-radius: 7px; padding: .58rem .85rem; }
.nav-dashboard span { margin-left: .45rem; }
.site-footer { margin-top: 2.25rem; background: var(--card); border-top: 1px solid var(--line); padding-block: 1.35rem; color: var(--muted); font-size: .9rem; }
.site-footer .wordmark { color: var(--ink); }

.hero { background: var(--dark); color: #fff8ec; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(25px, 5vw, 75px); align-items: center; padding-block: 39px 76px; }
.hero h1 { font-size: clamp(2.9rem, 5vw, 4.65rem); letter-spacing: -.066em; line-height: .99; margin: .5rem 0 1.15rem; }
.hero h1 em { color: #ff805d; font-style: normal; }
.hero p { font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.5; color: #ded5c7; max-width: 29rem; }
.hero-image { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #574b3d; aspect-ratio: 1.8; background: #514135; }
.hero-image img { height: 100%; width: 100%; display: block; object-fit: cover; object-position: center 51%; }
.hero-back, .hero-contact a { color: #ffb39d; }
.hero-contact { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

.button { border: 1px solid transparent; border-radius: 7px; display: inline-flex; justify-content: center; align-items: center; gap: .75rem; font-weight: 700; padding: .68rem .95rem; text-decoration: none; min-height: 43px; line-height: 1.18; cursor: pointer; color: var(--ink); background: transparent; }
.button:disabled { opacity: .58; cursor: default; }
.button-primary { background: var(--orange); color: #211b16; }
.button-primary:hover:not(:disabled) { background: #ed532d; color: #211b16; }
.button-outline { border-color: var(--line); background: var(--card); }
.button-outline:hover { border-color: var(--orange-ink); color: var(--orange-ink); }
.button-danger { background: #a3291a; color: white; }
.button-danger:hover { background: #7e2015; }
.text-button { padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.text-button:hover { color: var(--orange-ink); }

#market-panel { position: relative; margin-top: -41px; padding-bottom: 1rem; }
.search-form { display: grid; grid-template-columns: 1.16fr 1fr 1fr 1fr auto; gap: .95rem; align-items: start; background: var(--card); box-shadow: 0 7px 24px #211c1514; border: 1px solid var(--line); border-radius: 11px; padding: 1.1rem 1.25rem 1.25rem; }
.search-field { min-width: 0; }
.search-field label, .field label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: .45rem; }
.search-button { align-self: start; margin-top: 1.73rem; white-space: nowrap; }
.form-control, .form-select { min-height: 43px; border: 1px solid #ded6c7; border-radius: 7px; background-color: #fcfaf4; color: var(--ink); }
.form-control:focus, .form-select:focus { background-color: #fffefb; border-color: var(--orange-ink); box-shadow: 0 0 0 3px #f3654130; }
.form-check-input:checked { background-color: var(--orange-ink); border-color: var(--orange-ink); }
.form-control:disabled, .form-select:disabled { background-color: #efe9dd; }
.errorlist { margin: .4rem 0 0; padding: 0; list-style: none; color: #922b18; font-size: .9rem; }
.notice .errorlist { margin: 0; }

.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 2rem 0 1rem; }
.results-heading h2 { margin-bottom: .25rem; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.results-heading p { color: var(--muted); margin: 0; }
.middle-dot { margin-inline: .25rem; }
.result-count { color: var(--muted); font-size: .88rem; white-space: nowrap; padding: .25rem .65rem; border-radius: 5px; border: 1px solid var(--line); background: var(--card); }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; }
.offer { background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 1rem 1.1rem .95rem; display: flex; flex-direction: column; gap: .75rem; }
.offer-top { display: flex; align-items: center; gap: .8rem; }
.offer-top h3 { margin: 0 0 .2rem; }
.operator-link { color: var(--muted); font-size: .88rem; text-decoration-color: #d8cbbd; }
.bin-icon { width: 45px; height: 43px; align-self: start; flex: none; display: flex; align-items: center; justify-content: center; gap: 2px; background: var(--orange-soft); border-radius: 8px; position: relative; }
.bin-icon::before { content: ""; width: 25px; height: 15px; position: absolute; background: #ab381e; clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%); }
.bin-icon span { position: relative; display: block; width: 1px; height: 7px; background: var(--orange-soft); }
.offer-facts { display: flex; flex-wrap: wrap; gap: .45rem; }
.offer-facts span, .status { background: #efe9dc; color: #544b40; border-radius: 5px; padding: .23rem .48rem; font-size: .79rem; font-weight: 650; }
.offer-terms { color: var(--muted); font-size: .89rem; }
.offer-terms summary { cursor: pointer; font-weight: 650; }
.offer-terms p { margin: .55rem 0; }
.offer-bottom { display: flex; justify-content: space-between; align-items: end; gap: .5rem; margin-top: auto; border-top: 1px solid var(--line); padding-top: .72rem; }
.offer-bottom strong { display: block; font-size: 1.43rem; letter-spacing: -.055em; line-height: 1.2; }
.offer-bottom small { color: var(--muted); font-size: .77rem; }
.offer-bottom .button { min-height: 36px; border-color: #ecd1c3; color: var(--orange-ink); padding: .46rem .64rem; }
.offer-bottom .button:hover { border-color: var(--orange-ink); background: var(--orange-soft); }
.empty-state { grid-column: 1/-1; background: var(--card); border: 1px dashed #d5c9b7; border-radius: 10px; padding: 2rem; }

.page-space { padding-block: 2.4rem; }
.page-title { margin: 0; font-size: clamp(2.25rem, 4vw, 3.4rem); }
.page-title + .muted { margin-top: .35rem; }
.back-link { display: inline-block; color: var(--muted); margin-bottom: 1rem; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.page-space > .page-title, .narrow > .page-title { margin-bottom: 1.3rem; }
.narrow > .page-title + p { margin-top: -.5rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: clamp(1rem, 2.35vw, 1.65rem); min-width: 0; }
.panel > h2 { margin-bottom: 1rem; }
.panel > h1 { margin-bottom: 1rem; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 1.1rem; }
.quote-panel h2 { margin-bottom: .3rem; }
.quote-panel .summary { margin-top: .8rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1rem; }
.fields-full { grid-column: 1 / -1; }
.field { min-width: 0; }
.field > small { display: inline-block; margin-top: .33rem; }
.check-field { display: flex; gap: .5rem; align-items: center; }
.check-field label { margin: 0; }
.login-form input:not([type=hidden]) { display: block; width: 100%; min-height: 43px; border: 1px solid #ded6c7; border-radius: 7px; background: #fcfaf4; padding: .375rem .75rem; }
.notice { padding: .85rem 1rem; border-radius: 7px; background: #f7edda; color: #63420f; border: 1px solid #efddbd; margin-bottom: .9rem; }
.notice-error { background: #fbe9e1; color: #912e19; border-color: #f0cbbc; }
.messages { padding-top: 1rem; }
.messages .notice { margin-bottom: 0; }
.summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; padding: .63rem 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); font-weight: 550; }
.summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.summary .summary-total { font-size: 1.25rem; font-weight: 700; }
.summary-total dt { color: var(--ink); font-weight: 700; }
.reference { font-size: .79rem; font-weight: 700; letter-spacing: .1em; color: var(--orange-ink); margin-bottom: .45rem; }

.operator-header { background: #ede7db; border-bottom: 1px solid var(--line); }
.operator-heading { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: 1rem 0 .65rem; }
.operator-heading strong { font-size: 1.15rem; }
.operator-heading a { font-size: .86rem; }
.operator-nav { display: flex; gap: clamp(.72rem, 3vw, 2rem); }
.operator-nav a { padding: .55rem .1rem; border-bottom: 3px solid transparent; font-size: .93rem; font-weight: 650; text-decoration: none; }
.operator-nav [aria-current] { border-color: var(--orange-ink); color: var(--orange-ink); }
.operator-content { padding-top: 1.9rem; }
.dispatch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dispatch-alerts { margin-bottom: 1rem; }
.warning-panel { background: #fff5eb; border-color: #f3d2bd; }
.date-navigation, .action-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.date-navigation { margin-bottom: 1rem; }
.date-navigation .form-control, .date-navigation .form-select { width: auto; }
.pagination-nav { margin-top: 1rem; }
.job-row { text-decoration: none; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .55rem; align-items: center; border-top: 1px solid var(--line); padding: .75rem 0; overflow-wrap: anywhere; }
.job-row small { display: block; }
.job-meta { text-align: right; }
.job-arrow { color: var(--orange-ink); }
.risk { display: block; color: var(--orange-ink); margin-top: .25rem; font-size: .81rem; font-weight: 650; }
.booking-list-date { color: var(--muted); font-size: .83rem; margin-top: .65rem; }
.cancel-job summary { cursor: pointer; color: #922b18; }
.cancel-job p { margin: .5rem 0; }
.section-heading { margin-bottom: .45rem; }
.section-heading h2 { margin-bottom: 0; }
.zip-list { max-height: 24rem; overflow: auto; }
.calendar-subscription { margin-bottom: 1rem; }
.calendar-subscription summary { cursor: pointer; font-weight: 700; }
.calendar-subscription p, .calendar-subscription .action-row { margin-top: .75rem; }
.conversation { margin-top: 1rem; }
.conversation-history { display: grid; gap: .65rem; }
.conversation-entry { background: var(--paper); padding: .7rem 1rem; border-radius: .55rem; }
.conversation-own { background: var(--orange-soft); }
.conversation-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; }
.conversation-meta time { color: var(--muted); font-size: .82rem; }
.conversation-entry p { margin-top: .35rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.conversation-form { margin-top: 1rem; }
.conversation-form button { margin-top: .6rem; }
.coverage-panel { display: grid; gap: 1rem; }
.coverage-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem .9rem; }
.coverage-controls .field { flex: 1 1 9rem; max-width: 14rem; }
.coverage-controls span { align-self: center; }
.coverage-map { height: clamp(19rem, 54vh, 36rem); border: 1px solid var(--line); border-radius: .6rem; z-index: 0; }
.coverage-panel p { margin: 0; }
.coverage-details summary { cursor: pointer; }
.coverage-list { display: flex; flex-wrap: wrap; gap: .65rem 1rem; max-height: 13rem; overflow: auto; padding: .8rem; }
.inventory-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .62rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.inventory-row a { flex-shrink: 0; }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 56px); }
  .hero-grid { gap: 2rem; }
  .search-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-button { grid-column: 1 / -1; justify-self: end; margin-top: 0; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; }
  .header-nav .market-link { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 25px 57px; gap: 1.2rem; }
  .hero h1 { margin-top: 0; font-size: clamp(2.65rem, 10vw, 3.6rem); }
  .hero-image { aspect-ratio: 2.2; }
  #market-panel { margin-top: -32px; }
  .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .9rem; gap: .65rem; }
  .search-button { justify-self: stretch; }
  .results-heading { margin-top: 1.35rem; }
  .offer-grid, .split-layout, .dispatch-grid { grid-template-columns: 1fr; }
  .quote-panel { grid-row: 1; }
  .offer { padding: .95rem; }
  .page-space { padding-block: 1.45rem; }
  .page-heading { align-items: start; flex-wrap: wrap; }
  .page-heading .button { flex-shrink: 0; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner > span { display: none; }
}

@media (max-width: 370px) {
  .wordmark { font-size: 1.22rem; }
  .header-nav .nav-dashboard { padding: .45rem .55rem; font-size: .85rem; }
  .field-grid { grid-template-columns: 1fr; }
  .search-form { padding-inline: .65rem; }
  .search-field label { font-size: .79rem; }
  .search-field .form-control, .search-field .form-select { padding-left: .4rem; font-size: .86rem; }
}
