/* Site layer. Loads after base.css. */

/* Accessibility */
.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: var(--ink); padding: 10px 14px; border-radius: 6px; font-weight: 700; z-index: 10; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header on mobile */
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--field); color: var(--field); font: 700 15px "Archivo", sans-serif; border-radius: 6px; padding: 9px 14px; }
@media (max-width: 760px) {
  .site-head .wrap { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; gap: 14px; }
  .nav-toggle { display: inline-block; }
  .head-cta { display: none; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
}

/* Breadcrumbs */
.crumbs { font-size: 15px; color: var(--muted); padding: 22px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* Page hero for inner pages */
.page-hero { padding: 40px 0 56px; }
.page-hero .lede { margin-bottom: 0; }
.page-hero h1 { max-width: 15em; }
.answer { border-left: 4px solid var(--signal); padding: 4px 0 4px 20px; font-size: 19px; margin: 0; max-width: 40em; }
.updated { font-family: var(--narrow); color: var(--muted); font-size: 15px; margin-top: 10px; }

/* Generic grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 32px; } }

/* Template cards: the card IS a mini postcard */
.tpl-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.tpl-filter button { font: 600 15px "Archivo", sans-serif; background: #fff; border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.tpl-filter button[aria-pressed="true"] { background: var(--field); border-color: var(--field); color: #fff; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; margin-top: 32px; }
@media (max-width: 960px) { .tpl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl { text-decoration: none; color: var(--ink); display: block; }
.tpl-art { aspect-ratio: 9 / 6.25; border-radius: 4px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; box-shadow: 0 16px 28px -16px rgba(20,52,38,0.5); }
.tpl-art b { font-weight: 800; font-size: 24px; line-height: 1.02; letter-spacing: -0.02em; }
.tpl-art span { align-self: flex-start; background: var(--signal); color: var(--ink); font-weight: 800; font-size: 14px; padding: 4px 8px; border-radius: 3px; }
.tpl-art.green { background: var(--field); }
.tpl-art.blue { background: var(--route); }
.tpl-art.ink { background: var(--ink); }
.tpl-art.stock { background: var(--stock); color: var(--ink); border: 1.5px solid #E6E2D3; }
.tpl h3 { margin: 16px 0 2px; font-size: 19px; }
.tpl p { margin: 0; color: var(--muted); font-size: 15px; }
.season { font-family: var(--narrow); font-weight: 600; color: var(--field); font-size: 15px; }

/* Article / long-form */
.article { max-width: 720px; }
.article h2 { font-size: 32px; margin-top: 48px; }
.article p, .article li { font-size: 19px; line-height: 1.65; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; }
.article th, .article td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 12px; }
.article th { background: var(--sage); }
.byline { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--field); color: #fff; display: grid; place-items: center; font-weight: 800; }
.callout { background: var(--sage); border-radius: 8px; padding: 22px 24px; margin: 28px 0; }
.callout strong { display: block; margin-bottom: 6px; }
.related { border-top: 1.5px solid var(--line); margin-top: 56px; padding-top: 28px; }

/* Blog list */
.post-list { display: grid; gap: 0; margin-top: 32px; border-top: 1.5px solid var(--line); }
.post-item { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1.5px solid var(--line); text-decoration: none; color: var(--ink); }
.post-item time { font-family: var(--narrow); color: var(--muted); font-size: 15px; }
.post-item h3 { font-size: 24px; margin: 0 0 6px; }
.post-item p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .post-item { grid-template-columns: 1fr; gap: 6px; } }

/* Forms */
.form { display: grid; gap: 18px; max-width: 560px; }
.form label { font-weight: 700; font-size: 16px; display: grid; gap: 8px; }
.form input, .form select, .form textarea { font: 400 17px "Archivo", sans-serif; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--route); outline-offset: 1px; border-color: var(--route); }
.form small { font-weight: 400; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Route planner */
.planner { display: grid; grid-template-columns: 380px 1fr; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.planner-side { padding: 28px; border-right: 1.5px solid var(--line); }
.planner-map { background: #F6F8F6; min-height: 520px; }
.route-list { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--line); }
.route-list li { border-bottom: 1px solid var(--line); }
.route-list label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; font-family: var(--narrow); font-weight: 600; font-size: 17px; }
.route-list input { width: 18px; height: 18px; accent-color: var(--field); }
.route-list em { font-style: normal; color: var(--muted); font-weight: 500; }
.planner-total { background: var(--field); color: #fff; border-radius: 8px; padding: 18px; margin: 18px 0; }
.planner-total b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.planner-total span { color: #CFE0D6; font-size: 15px; }
.route-shape { cursor: pointer; }
@media (max-width: 860px) { .planner { grid-template-columns: 1fr; } .planner-side { border-right: 0; border-bottom: 1.5px solid var(--line); } .planner-map { min-height: 320px; } }

/* Order steps */
.stepper { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 36px; border-bottom: 1.5px solid var(--line); }
.stepper li { flex: 1; padding: 14px 4px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.stepper li[aria-current="step"] { color: var(--field); border-bottom-color: var(--field); }
.stepper li b { font-family: var(--narrow); margin-right: 6px; }

/* Team */
.person { border-top: 3px solid var(--field); padding-top: 18px; }
.person p { color: var(--muted); }
.photo-slot { background: #DDE5DF; border-radius: 8px; aspect-ratio: 4 / 3; display: grid; place-items: end start; padding: 14px; color: var(--muted); font-size: 14px; }

/* Case studies */
.case { background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 28px; }
.case-meta { font-family: var(--narrow); color: var(--muted); font-size: 15px; }
.stats-table { width: 100%; border-collapse: collapse; margin-top: 24px; background: #fff; font-size: 16px; }
.stats-table th, .stats-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.stats-table thead th { background: var(--field); color: #fff; }
.stats-table td.num { font-family: var(--narrow); font-weight: 700; font-size: 18px; }

/* Video facade */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 8px; overflow: hidden; display: grid; place-items: center; color: #fff; }
.video button { background: var(--signal); color: var(--ink); border: 0; border-radius: 999px; width: 76px; height: 76px; font-size: 0; cursor: pointer; }
.video button::after { content: ""; display: inline-block; border-left: 22px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.video .vcap { position: absolute; left: 18px; bottom: 14px; font-size: 15px; color: #CFE0D6; }
.chapters { list-style: none; padding: 0; margin: 16px 0 0; columns: 2; font-size: 15px; }
.chapters li { padding: 4px 0; }
.chapters time { font-family: var(--narrow); font-weight: 700; color: var(--field); margin-right: 8px; }

/* Landing page (customer campaign) */
.landing { min-height: 100vh; background: var(--field); color: #fff; display: grid; place-items: center; padding: 32px 16px; }
.landing-card { background: #fff; color: var(--ink); border-radius: 10px; max-width: 520px; width: 100%; padding: 32px; }
.landing-card .btn { width: 100%; text-align: center; }

/* Legal */
.legal { max-width: 720px; }
.legal h2 { font-size: 26px; margin-top: 36px; }
.draft-note { background: #FFF6D6; border-radius: 6px; padding: 12px 16px; color: #5B4600; font-size: 15px; }

html { background: #fff; }

/* Industries: hub grid and home strip */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 960px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ind-grid { grid-template-columns: 1fr; } }
.ind { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 20px; min-height: 44px; }
.ind:hover, .ind:focus-visible { border-color: var(--route); }
.ind h3 { margin: 0 0 6px; font-size: 19px; }
.ind p { margin: 0; color: var(--muted); font-size: 15px; }
.ind .ind-tag { display: inline-block; margin-top: 12px; font-family: var(--narrow); font-weight: 600; font-size: 14px; color: var(--route); }
.ind-soon .ind-tag { color: var(--muted); }

/* Template filter: two rows (industry and season) */
.tpl-filter + .tpl-filter { margin-top: 10px; }
.tpl-filter .filter-label { font-family: var(--narrow); font-weight: 600; font-size: 15px; color: var(--muted); align-self: center; min-width: 76px; }
.tpl-empty { color: var(--muted); margin-top: 24px; }
.tpl[hidden] { display: none; }
