/* manwithavancoventry.com: a drivers directory set like a 1960s civic guide. Own stylesheet, prefix gk- */
:root {
  --gk-stock: #ECEDE9;     /* leaflet stock: page */
  --gk-navy: #1C2C4C;      /* print navy: text */
  --gk-blue: #2F5DA8;      /* civic blue: header, links */
  --gk-red: #B5402F;       /* precinct red: the one action colour */
  --gk-ochre: #D6A43A;     /* mosaic ochre: focus ring, small marks */
  --gk-concrete: #CFCCC2;  /* paving: rules and edges */
  --gk-white: #FFFFFF;
  --gk-head: 92px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--gk-stock); color: var(--gk-navy);
  font: 400 17px/1.6 "Public Sans", Arial, sans-serif;
  padding-bottom: 76px; /* room for the phone action bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gk-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gk-navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gk-ochre); outline-offset: 2px; }
h1, h2, h3 { font-family: Arvo, Georgia, serif; font-weight: 700; color: var(--gk-navy); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p, ul, ol, dl { margin: 0 0 1em; }
.gk-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gk-wrap-wide { max-width: 1280px; }
.gk-skip { position: absolute; left: -999px; top: 0; background: var(--gk-white); padding: 8px 12px; z-index: 50; }
.gk-skip:focus { left: 8px; }
.gk-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: a flat civic-blue band, the name set like a guide's cover title */
.gk-head { background: var(--gk-blue); color: var(--gk-white); }
.gk-head-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; padding-top: 12px; padding-bottom: 12px; }
.gk-plate { display: flex; align-items: center; gap: 12px; font: 700 1.3rem/1.15 Arvo, Georgia, serif; color: var(--gk-white); text-decoration: none; margin-right: auto; }
.gk-plate:hover { color: var(--gk-white); }
.gk-plate:hover span { text-decoration: underline; }
.gk-badge { flex: none; width: 58px; height: 58px; display: block; }
.gk-nav { display: flex; gap: 20px; flex-basis: 100%; }
.gk-nav a { color: var(--gk-white); font-weight: 600; font-size: .95rem; text-decoration: none; padding: 4px 0; }
.gk-nav a:hover { text-decoration: underline; }

/* buttons */
.gk-btn {
  display: inline-block; background: var(--gk-red); color: var(--gk-white); font: 700 1.05rem/1 "Public Sans", Arial, sans-serif;
  padding: 16px 26px; border-radius: 3px; text-decoration: none; border: 2px solid var(--gk-red);
}
.gk-btn:hover { background: #8F3124; border-color: #8F3124; color: var(--gk-white); text-decoration: none; }
.gk-btn-quiet { background: transparent; color: var(--gk-navy); border-color: var(--gk-navy); }
.gk-btn-quiet:hover { background: var(--gk-navy); border-color: var(--gk-navy); }
.gk-head .gk-btn-head { display: none; }
.gk-money { font-size: .95rem; margin-top: 12px; max-width: 36em; }
.gk-ask { font-size: .95rem; }

/* phone action bar */
.gk-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--gk-navy);
}
.gk-bar .gk-btn { flex: 1; text-align: center; padding: 14px 10px; }
.gk-bar-mail { color: var(--gk-white); font-weight: 700; padding: 14px 12px; }
.gk-bar-mail:hover { color: var(--gk-white); }
.gk-booking { padding-bottom: 0; }

/* top of the home page */
.gk-top { padding: 28px 0 8px; }
.gk-h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); line-height: 1.02; letter-spacing: -.01em; margin-bottom: .35em; }
.gk-top-grid { display: grid; gap: 8px 48px; }
.gk-lede { font-size: 1.05rem; max-width: 34em; }
.gk-top-act .gk-ask { margin-bottom: 0; }

/* the directory: four listings, each a portrait on its own flat colour */
.gk-dir { padding: 24px 0 8px; }
.gk-dir-grid { display: grid; gap: 28px 24px; }
.gk-listing { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; align-content: start; }
.gk-listing-photo { display: block; grid-row: 1 / span 3; }
.gk-listing > :not(.gk-listing-photo) { grid-column: 2; }
.gk-listing-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gk-listing-name { font-size: 1.6rem; margin: 0 0 6px; }
.gk-listing-name a { color: var(--gk-navy); text-decoration: none; }
.gk-listing-name a:hover { text-decoration: underline; }
.gk-facts { font-size: .95rem; margin-bottom: 10px; }
.gk-fact { display: grid; grid-template-columns: 5.4em 1fr; gap: 10px; padding: 4px 0; border-top: 1px solid var(--gk-concrete); }
.gk-fact:first-child { border-top: 0; }
.gk-facts dt { font-weight: 700; }
.gk-facts dd { margin: 0; }
.gk-listing-more { margin: 0; font-weight: 600; }
.gk-dir-note { font-size: .95rem; max-width: 52em; margin-top: 28px; }
.gk-cta { margin: 20px 0 8px; }
.gk-row-lede { max-width: 44em; }
/* phones: the four faces straight under the heading */
.gk-faces { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gk-faces a { display: block; text-align: center; font: 700 .9rem/1.2 Arvo, Georgia, serif; color: var(--gk-navy); text-decoration: none; }
.gk-faces img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 5px; border: 2px solid var(--gk-white); }
.gk-top-van { margin: 22px 0 0; }
.gk-top-van svg, .gk-top-van img { width: 100%; height: auto; display: block; }
.gk-top-van img { aspect-ratio: 4 / 3; object-fit: cover; }
.gk-top-van figcaption { font-size: .9rem; margin-top: 4px; }
/* what fits: cutaway drawings */
.gk-vans { display: grid; gap: 26px; margin: 18px 0 8px; }
.gk-vancut { margin: 0; }
.gk-vancut svg { width: 100%; height: auto; display: block; }
.gk-vancut figcaption { font-size: .95rem; margin-top: 6px; max-width: 30em; }
.gk-vancut b { display: block; font: 700 1.35rem/1.2 Arvo, Georgia, serif; }
.gk-vancut span { display: block; font-weight: 600; margin: 2px 0 4px; }
.gk-card-act { padding: 4px 20px 20px; margin: 0; }

/* magazine rows: stories separated by a heavy navy rule, as in a printed guide */
.gk-row { border-top: 4px solid var(--gk-navy); padding: 28px 0 12px; margin-top: 28px; }
.gk-row-split, .gk-row-two { display: grid; gap: 32px 48px; }
.gk-story > h3:first-of-type { margin-top: 0; }
.gk-fig { margin: 0 0 20px; }
.gk-fig figcaption { font-size: .9rem; margin-top: 8px; }
.gk-side { background: var(--gk-white); padding: 22px 22px 8px; align-self: start; }
.gk-side h2 { font-size: 1.35rem; }
.gk-guide-list { list-style: none; padding: 0; }
.gk-guide-list li { padding: 10px 0; border-bottom: 1px solid var(--gk-concrete); }
.gk-guide-list li:last-child { border-bottom: 0; }
.gk-guide-list a { font: 700 1.05rem/1.3 Arvo, Georgia, serif; }
.gk-guide-list span { display: block; font-size: .92rem; margin-top: 4px; }
.gk-side-mail { font-size: .95rem; }
.gk-steps { padding-left: 1.3em; }
.gk-steps li { margin-bottom: .6em; padding-left: .2em; }
.gk-steps li::marker { font: 700 1.05rem Arvo, Georgia, serif; color: var(--gk-red); }
.gk-list { padding-left: 1.2em; }
.gk-list li { margin-bottom: .4em; }
.gk-areas { list-style: none; padding: 0; columns: 2; column-gap: 24px; font-weight: 600; }
.gk-areas li { padding: 3px 0; break-inside: avoid; }
.gk-faq-grid { display: grid; gap: 4px 48px; }
.gk-qa h3 { font-size: 1.1rem; margin-top: 1em; }
.gk-end p { max-width: 40em; }
.gk-end-act { display: flex; flex-wrap: wrap; gap: 12px; }

/* driver pages */
.gk-page main { padding-bottom: 12px; }
.gk-crumbs { font-size: .9rem; padding-top: 18px; }
.gk-driver { display: grid; gap: 28px 48px; padding-bottom: 8px; }
.gk-driver-card { background: var(--gk-white); align-self: start; }
.gk-driver-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gk-facts-big { padding: 18px 20px 12px; margin: 0; font-size: 1rem; gap: 6px 14px; }
.gk-driver-h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); max-width: 22em; }
.gk-driver-card { max-width: 420px; }
.gk-driver-text h2 { font-size: 1.4rem; margin-top: 1.3em; }
.gk-driver-text p, .gk-driver-text ul { max-width: 38em; }
.gk-act { margin: 20px 0 4px; }
.gk-dir-three .gk-listing-name { font-size: 1.35rem; }

/* guides */
.gk-guide { display: grid; gap: 32px 56px; padding-bottom: 8px; }
.gk-article { max-width: 42em; }
.gk-article h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.gk-article h2 { font-size: 1.45rem; margin-top: 1.5em; }
.gk-guide-lede { font-size: 1.12rem; }
.gk-source { font-size: .9rem; border-top: 1px solid var(--gk-concrete); padding-top: 12px; margin-top: 24px; }
.gk-sdlist { list-style: none; padding: 0; margin: 0 0 16px; }
.gk-sdlist li { border-top: 1px solid var(--gk-concrete); }
.gk-sdlist li:first-child { border-top: 0; }
.gk-sd { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; color: var(--gk-navy); text-decoration: none; }
.gk-sd img { width: 64px; height: 64px; object-fit: cover; }
.gk-sd-text { font-size: .9rem; line-height: 1.35; }
.gk-sd-text b { display: block; font: 700 1.05rem/1.2 Arvo, Georgia, serif; color: var(--gk-blue); text-decoration: underline; text-underline-offset: 3px; }
.gk-sd-text span { display: block; }
.gk-sd:hover b { color: var(--gk-navy); }
.gk-routes { display: grid; gap: 4px 40px; margin: 14px 0 4px; }
.gk-routes div { padding: 10px 0; border-top: 1px solid var(--gk-concrete); }
.gk-routes dt { font: 700 1.1rem/1.3 Arvo, Georgia, serif; }
.gk-routes dd { margin: 3px 0 0; }
.gk-mini { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gk-mini a { display: block; font: 700 1rem/1.2 Arvo, Georgia, serif; color: var(--gk-navy); text-decoration: none; }
.gk-mini a:hover { text-decoration: underline; }
.gk-mini img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 6px; }
.gk-mini span { display: block; font: 400 .85rem/1.3 "Public Sans", Arial, sans-serif; margin-top: 2px; }
.gk-help-list section { padding: 4px 0 2px; border-bottom: 1px solid var(--gk-concrete); }
.gk-help-list h2 { font-size: 1.3rem; margin-top: 1em; }
.gk-plain { max-width: 42em; padding-bottom: 20px; }
.gk-plain h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.gk-plain h2 { font-size: 1.3rem; margin-top: 1.4em; }

/* booking page */
.gk-book-h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); padding-top: 24px; margin-bottom: .3em; }
.gk-book-line { font-size: 1.05rem; max-width: 46em; }
.gk-form { position: relative; }
.gk-form iframe { width: 100%; min-height: 760px; border: 0; display: block; position: relative; z-index: 1; }
/* while the form loads: a line behind the frame, covered when the form paints, removed on load */
.gk-wait { position: absolute; left: 16px; right: 16px; top: 52px; margin: 0; text-align: center; font: 700 1.15rem/1.3 Arvo, Georgia, serif; color: var(--gk-navy); }
.gk-wait::after { content: ""; display: block; width: 96px; height: 6px; margin: 14px auto 0; background: repeating-linear-gradient(90deg, var(--gk-blue) 0 12px, transparent 12px 20px); animation: gk-wait 1s steps(5) infinite; }
@keyframes gk-wait { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.gk-ready .gk-wait { display: none; }
.gk-booking main { padding-bottom: 24px; }

/* footer */
.gk-foot { background: var(--gk-navy); color: var(--gk-white); margin-top: 40px; padding: 32px 0 28px; font-size: .95rem; }
.gk-foot-grid { display: grid; gap: 8px 40px; }
.gk-foot h2 { color: var(--gk-white); font-size: 1.05rem; margin: 0 0 8px; }
.gk-foot ul { list-style: none; padding: 0; margin: 0 0 16px; }
.gk-foot li { padding: 3px 0; }
.gk-foot a { color: var(--gk-white); }
.gk-foot a:hover { color: #F3D58F; }

@media (min-width: 600px) {
  .gk-lede { font-size: 1.15rem; }
  .gk-listing { grid-template-columns: 150px 1fr; gap: 20px; }
  .gk-faces { display: none; }
  .gk-areas { columns: 3; }
  .gk-foot-grid { grid-template-columns: repeat(3, 1fr); }
  .gk-mini { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  html { scroll-padding-top: calc(var(--gk-head) + 16px); }
  .gk-bar { display: none; }
  .gk-head { position: sticky; top: 0; z-index: 30; }
  .gk-head-in { flex-wrap: nowrap; min-height: var(--gk-head); padding-top: 8px; padding-bottom: 8px; }
  .gk-plate { font-size: 1.45rem; gap: 14px; }
  .gk-badge { width: 76px; height: 76px; }
  .gk-nav { flex-basis: auto; gap: 26px; }
  .gk-head .gk-btn-head { display: inline-block; padding: 12px 20px; font-size: 1rem; background: var(--gk-red); border-color: var(--gk-white); }
  .gk-top { padding-top: 40px; }
  .gk-top-grid { grid-template-columns: 6fr 5fr; align-items: start; }
  .gk-top .gk-h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); }
  .gk-top-van { margin: 0; }
  .gk-top-act { padding-top: 4px; }
  .gk-dir-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 40px; }
  .gk-dir-grid .gk-listing { grid-template-columns: 1fr; grid-template-rows: subgrid; grid-row: span 7; row-gap: 0; }
  .gk-dir-grid .gk-listing > * { grid-column: 1; }
  .gk-dir-grid .gk-listing-photo { grid-row: auto; margin-bottom: 14px; }
  .gk-dir-grid .gk-facts { display: contents; }
  .gk-dir-grid .gk-listing-name { margin-bottom: 8px; }
  .gk-dir-grid .gk-listing-more { padding-top: 10px; align-self: start; }
  .gk-vans { gap: 18px; }
  .gk-routes { grid-template-columns: 1fr 1fr; }
  .gk-vancut { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--gk-concrete); }
  .gk-vancut:last-child { border-bottom: 0; }
  .gk-vancut figcaption { font-size: 1rem; }
  .gk-guide .gk-vancut { grid-template-columns: 1fr; gap: 6px; }
  .gk-row-split { grid-template-columns: 8fr 4fr; }
  .gk-row-two { grid-template-columns: 1fr 1fr; }
  .gk-faq-grid { grid-template-columns: 1fr 1fr; }
  .gk-areas { columns: 5; }
  .gk-fig-side { float: right; width: 42%; margin: 4px 0 16px 28px; }
  .gk-driver { grid-template-columns: 4fr 7fr; }
  .gk-driver-card { max-width: none; }
  .gk-guide { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .gk-mini { grid-template-columns: 1fr 1fr; }
  .gk-dir-three { grid-template-columns: repeat(3, 1fr); }
  .gk-dir-three .gk-listing-photo img { width: 180px; }
}
@media (min-width: 1200px) {
  .gk-dir-grid { grid-template-columns: repeat(4, 1fr); column-gap: 28px; }
  .gk-dir-three { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .gk-bar, .gk-head nav, .gk-btn { display: none; } }
.gk-booking .gk-head-in { max-width: 1280px; }
@media (min-width: 960px) { .gk-story > p, .gk-story > h3 { overflow: hidden; } }
/* phones: heading, the van, the four faces, then the opening and the button */
@media (max-width: 959px) {
  .gk-top { display: flex; flex-direction: column; }
  .gk-top-grid { display: contents; }
  .gk-top-text { display: contents; }
  .gk-top .gk-h1 { order: 0; }
  .gk-top-text > :not(.gk-h1) { order: 3; }
  .gk-top-van { order: 1; margin: 0 0 14px; }
  .gk-faces { order: 2; }
}
@media (max-width: 599px) {
  .gk-listing { grid-template-columns: 96px 1fr; column-gap: 14px; }
  .gk-fact { grid-template-columns: 4.9em 1fr; gap: 8px; }
  .gk-top-van svg { max-width: 330px; }
}
.gk-facts-big .gk-fact { grid-template-columns: 6.2em 1fr; padding: 6px 0; }
.gk-driver-text .gk-fig img { max-width: 400px; }
@media (min-width: 960px) and (max-width: 1199px) { .gk-dir-grid .gk-listing-photo img { max-width: 240px; } }

/* the driver section has its own heading, so the top of the page and the driver photos read as two parts (Dom, 23 Oct 2026) */
.gk-dir { border-top: 3px solid var(--gk-navy); margin-top: 28px; padding-top: 26px; }
.gk-dir-h { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 18px; }
/* driver pages: the photo and facts card stays in view while you read (Dom, 23 Oct 2026) */
@media (min-width: 960px) {
  .gk-driver-card { position: sticky; top: calc(var(--gk-head) + 20px); }
  .gk-driver-card img { max-height: 46vh; }
}

/* guide side panel: help links, then the drivers and a button that stay in view (Dom, 23 Oct 2026) */
.gk-side-guide { background: none; padding: 0; }
.gk-side-box { background: var(--gk-white); padding: 22px 22px 8px; }
.gk-side-box + .gk-side-box { margin-top: 20px; }
.gk-side-act { margin: 14px 0 12px; }
.gk-side-act .gk-btn { display: block; text-align: center; }
@media (min-width: 960px) {
  .gk-side-guide { align-self: stretch; }
  .gk-side-stick { position: sticky; top: calc(var(--gk-head) + 20px); }
}
