/* Homepage only. Preserve shared styles.css and the search contract in site.js. */
:root {
  color-scheme: light;
  --paper: #faf8f1;
  --ink: #131918;
  --navy: #193c50;
  --orange: #c83a1c;
  --muted: #525b5c;
  --rule: #b7b9b2;
  --mono: "Courier New", Courier, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.5; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--orange); }
button, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 5px; }
.pageWidth { width: min(100% - 80px, 1280px); margin-inline: auto; }
.skipLink { position: absolute; top: 8px; left: 12px; padding: 10px 16px; background: white; z-index: 10; transform: translateY(-160%); }
.skipLink:focus { transform: translateY(0); }
.shopStrip { background: var(--navy); color: #fff; }
.shopStrip .pageWidth { display: flex; justify-content: space-between; gap: 24px; padding-block: 10px; font: 700 11px/1.5 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 100px; border-bottom: 1px solid var(--ink); }
.wordmark { position: relative; display: block; width: min(40%, 410px); flex-shrink: 0; }
.wordmark img { display: block; width: 100%; height: auto; margin-block: -8%; }
.wordmark sup { position: absolute; right: -10px; top: 24%; font-size: 10px; }
.mainNav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.mainNav a { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; text-decoration: none; }
.mainNav a:hover { text-decoration: underline; }
.counterHero { position: relative; isolation: isolate; padding-block: 46px 56px; }
.counterArt { position: absolute; z-index: -1; inset: 0 -40px 0 0; max-height: 832px; overflow: hidden; }
.counterArt img { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none; }
.counterArt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 28%, rgba(250,248,241,.94) 37%, rgba(250,248,241,0) 57%); }
.counterContent { width: 53%; max-width: 680px; }
.eyebrow { margin: 0 0 16px; font: 400 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(48px, 5.2vw, 72px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; }
h1 span { color: var(--orange); }
.heroDescription { margin: 18px 0 40px; max-width: 500px; font-size: clamp(17px, 1.65vw, 22px); line-height: 1.45; }
/* Nine-slice ticket edges keep the corner cutouts round at every form height.
   Decorative layers only: never clip inputs, focus outlines or search results. */
.jobSearch { position: relative; isolation: isolate; margin: 0; padding: 29px 28px 25px; border: 2px solid transparent; }
.jobSearch::before, .jobSearch::after { content: ""; position: absolute; inset: -2px; pointer-events: none; border: 14px solid transparent; }
.jobSearch::before { z-index: -1; border-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%220%200%2040%2040%22%3E%3Cpath%20d%3D%22M12%201H28A11%2011%200%200%200%2039%2012V28A11%2011%200%200%200%2028%2039H12A11%2011%200%200%200%201%2028V12A11%2011%200%200%200%2012%201Z%22%20fill%3D%22%23faf8f1%22%20stroke%3D%22%23131918%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E") 14 fill / 14px / 0 stretch; }
.jobSearch::after { z-index: -2; transform: translate(9px, 10px); border-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%220%200%2040%2040%22%3E%3Cpath%20d%3D%22M12%201H28A11%2011%200%200%200%2039%2012V28A11%2011%200%200%200%2028%2039H12A11%2011%200%200%200%201%2028V12A11%2011%200%200%200%2012%201Z%22%20fill%3D%22%23193c50%22%20stroke%3D%22%23193c50%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E") 14 fill / 14px / 0 stretch; }
.ticketTab { position: absolute; isolation: isolate; top: -23px; left: 16px; padding: 8px 32px 8px 22px; background: var(--ink); color: #fff; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 100%, 0 100%); font: 700 12px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ticketTab::before { content: ""; position: absolute; z-index: -1; inset: 2px; background: var(--orange); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%); }
.jobSearch h2 { margin: 0 0 14px; font-size: clamp(22px, 2.25vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.fieldCaption { margin: 0 0 8px; font: 400 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
textarea { display: block; width: 100%; min-height: 84px; max-height: 300px; resize: vertical; padding: 15px; border: 1px solid var(--ink); border-radius: 2px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; }
textarea::placeholder { color: #697071; opacity: 1; }
.searchHelp { margin: 9px 0 17px; font-size: 13px; }
.jobSearch button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 16px; border: 0; border-radius: 2px; color: #fff; background: var(--orange); font-size: 20px; font-weight: 600; cursor: pointer; }
.jobSearch button:hover { background: #a92c13; }
.browseAll { display: table; margin: 8px auto -4px; padding: 10px; font-size: 15px; }
.formStatus:empty, .searchResults:empty { display: none; }
.formStatus { margin: 18px 0 0; font-size: 15px; }
.searchResults { margin-top: 12px; }
.searchResults a { display: block; padding: 14px 0; border-top: 1px solid var(--rule); text-decoration: none; overflow-wrap: anywhere; }
.searchResults a:hover strong { text-decoration: underline; }
.searchResults strong { display: block; font-size: 16px; font-weight: 600; }
.searchResults span { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
.shopPromise { background: var(--navy); color: #fff; text-align: center; }
.shopPromise p { margin-block: 0; padding-block: 25px; font-size: clamp(16px, 1.75vw, 22px); line-height: 1.5; }
.jobDirectory { padding-block: 44px 52px; }
.jobDirectory > .eyebrow { margin-bottom: 4px; }
.directoryHeading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.directoryHeading h2 { margin: 0; font-size: clamp(30px, 3vw, 42px); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; }
.directoryHeading a { flex-shrink: 0; padding-block: 10px; }
.directoryColumns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 22px; }
.makeColumn { border-left: 1px solid var(--ink); padding-left: 40px; }
.directoryColumns .eyebrow { margin-bottom: 8px; }
.jobLinks, .makeLinks { list-style: none; margin: 0; padding: 0; }
.jobLinks a, .makeLinks a { display: flex; align-items: center; gap: 16px; min-height: 55px; border-top: 1px solid var(--rule); text-decoration: none; font-size: 18px; }
.jobLinks a > :last-child, .makeLinks a > :last-child { margin-left: auto; }
.rowNumber { font: 12px var(--mono); color: var(--muted); }
.makeLinks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.directoryNote, .allMakes { margin: 12px 0 0; font-size: 13px; }
.allMakes { display: inline-block; padding-block: 7px; }
.footer { border-top: 1px solid var(--ink); }
.footer .pageWidth { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 30px; padding-block: 24px; font-size: 12px; }
.footerBrand { margin-right: auto; font-weight: 700; text-transform: uppercase; }
.footer a { padding-block: 8px; }
@media (min-width: 1440px) {
  .counterArt { right: calc((1280px - 100vw) / 2); }
}
@media (max-width: 900px) {
  .pageWidth { width: calc(100% - 40px); }
  .masthead { min-height: 84px; gap: 20px; }
  .mainNav { gap: 20px; }
  .mainNav a { font-size: 14px; }
  .counterContent { width: 57%; }
  .counterArt { right: -20px; }
  h1 { font-size: 52px; }
  .jobSearch { padding: 26px 20px 18px; }
  .directoryColumns { gap: 24px; }
  .makeColumn { padding-left: 24px; }
}
@media (max-width: 700px) {
  .pageWidth { width: calc(100% - 32px); }
  .shopStrip .pageWidth { justify-content: center; padding-block: 8px; font-size: 9px; letter-spacing: .045em; text-align: center; }
  .established { display: none; }
  .masthead { display: block; padding-top: 10px; }
  .wordmark { width: 265px; max-width: 85%; margin: 0 auto; }
  .wordmark img { margin-block: -5%; }
  .mainNav { justify-content: space-between; gap: 8px; padding-block: 4px; }
  .mainNav a { font-size: 14px; }
  .counterHero { padding-block: 26px 32px; }
  .counterContent { width: 100%; max-width: none; }
  .heroIntro { position: relative; min-height: 235px; }
  .heroIntro .eyebrow { position: relative; font-size: 10px; letter-spacing: .09em; margin-bottom: 14px; }
  h1 { position: relative; width: 65%; font-size: clamp(27px, 7.6vw, 50px); line-height: 1.05; letter-spacing: -.045em; }
  .heroDescription { position: relative; max-width: 58%; margin: 14px 0 0; padding-bottom: 34px; font-size: 15px; line-height: 1.4; }
  .counterArt { inset: 46px -16px auto 0; height: 230px; }
  .counterArt img { height: 100%; right: -20px; }
  .counterArt::after { background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 31%, rgba(250,248,241,.9) 40%, rgba(250,248,241,0) 65%); }
  .jobSearch { margin-right: 7px; padding: 28px 18px 20px; }
  .jobSearch::after { transform: translate(6px, 7px); }
  .jobSearch h2 { font-size: 25px; }
  .searchHelp { font-size: 12px; }
  .shopPromise p { margin-block: 0; padding-block: 20px; max-width: 440px; font-size: 16px; }
  .jobDirectory { padding-block: 32px; }
  .directoryHeading { flex-wrap: wrap; gap: 4px 20px; }
  .directoryHeading h2 { font-size: 32px; }
  .directoryHeading a { font-size: 14px; }
  .directoryColumns { grid-template-columns: 1fr; gap: 28px; }
  .makeColumn { padding: 0; border: 0; }
  .jobLinks a, .makeLinks a { font-size: 17px; }
  .footer .pageWidth { gap: 8px 16px; padding-block: 16px; }
  .footer .pageWidth > :last-child { flex-basis: 100%; color: var(--muted); }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color .15s ease, background-color .15s ease; }
}

@media (max-width: 380px) {
  .counterArt { top: 55px; height: 200px; }
  .heroDescription { max-width: 55%; }
  .jobSearch h2 { font-size: 23px; }
}

/* The homepage garage lives in the utility strip, ahead of the main navigation.
   Its picker remains the single place to add and switch saved vehicles. */
.shopStrip .pageWidth {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 64px;
  padding-block: 8px;
}
.shopStrip .pageWidth > span { flex: 1 1 280px; }
.shopStrip .garageNavMount { flex: 0 1 auto; max-width: 100%; }
.shopStrip .garageNav {
  gap: 9px;
  min-height: 46px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid #e1d1b8;
  border-left: 4px solid var(--orange);
  border-radius: 2px;
  background: #f3ede2;
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .22);
  font: 700 12px/1.35 var(--mono);
  letter-spacing: .025em;
}
.shopStrip .garageNav::before {
  content: "";
  display: block;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23193c50%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2021V8l9-5%209%205v13H3Z%22%2F%3E%3Cpath%20d%3D%22M7%2021v-9h10v9M7%2015h10M7%2018h10%22%2F%3E%3C%2Fsvg%3E");
}
.shopStrip .garageNavText {
  max-width: min(42ch, 42vw);
  padding: 0;
  border-bottom: 0;
}
.shopStrip .garageNav:hover { background: #fff9ed; border-color: var(--orange); }
.shopStrip .garageNavChevron { margin-left: 2px; }
@media (max-width: 700px) {
  .shopStrip .pageWidth { flex-direction: column; gap: 6px; }
  .shopStrip .pageWidth > span { flex: none; }
  .shopStrip .garageNavMount { width: 100%; justify-content: center; }
  .shopStrip .garageNav { width: 100%; justify-content: center; }
  .shopStrip .garageNavText { max-width: calc(100vw - 115px); }
}
