/* timingbeltreplacementcost.net - garage-amber design (talaria-site-designer)
   Home & Construction archetype: rugged, physical, worksite readout, UPPERCASE heads.
   Saira Condensed heads, Roboto body, IBM Plex Mono figures.
   Targets the site's real class names: header .wrap, .logo, .logomark,
   .logotype, .lt-name, .lt-tag, .hgrad, .hero, .calc, .fld, .qty,
   .result, .bar, .feats, .feat, .faq, .ad, .guides, .gcard,
   .related, .disc, .lead, .cta, footer .wrap, .cols, cc-banner */

:root {
  --m-accent:    #DF8F20;
  --m-accent-dk: #A16717;
  --m-accent-dk2:#825517;
  --m-accent2:   #EDD2AB;
  --m-paper:     #F7F5F3;
  --m-panel:     #FDFCFC;
  --m-ink:       #2A241D;
  --m-ink2:      #544C45;
  --m-muted:     #746B63;
  --m-line:      #E6E1DB;
  --m-line2:     #D8D2CA;
  --m-nav:       #29241F;
  --m-nav2:      #1F1C19;
  --m-r:         4px;
  --m-maxw:      1000px;
  --m-head:      'Saira Condensed', 'Arial Narrow', sans-serif;
  --m-body:      'Roboto', system-ui, sans-serif;
  --m-mono:      'IBM Plex Mono', ui-monospace, monospace;
}

/* ---- reset / base ---- */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: var(--m-body);
  color: var(--m-ink);
  background: var(--m-paper);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block }
a { color: var(--m-accent-dk2); text-underline-offset: 2px }
a:hover { text-decoration: underline }
.wrap { max-width: var(--m-maxw); margin: 0 auto; padding: 0 24px }
h1, h2, h3, h4 {
  font-family: var(--m-head);
  font-weight: 700;
  line-height: 1.08;
  color: var(--m-ink);
  margin: 0 0 .5em;
  text-transform: uppercase;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem) }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem) }
h3 { font-size: 1.1rem }
p { margin: 0 0 1.1rem }
ul { padding-left: 1.4em; margin: .5rem 0 1.2rem }
li { margin-bottom: .45em }
:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 2px }
a, button, select, input { transition: background-color .14s ease, border-color .14s ease, color .14s ease, transform .1s ease }
button:active, .cta:active { transform: scale(.98) }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto } }

/* ---- header ---- */
header {
  background: var(--m-nav);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .wrap {
  max-width: var(--m-maxw);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* brand mark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo:hover { text-decoration: none }

.logomark {
  width: 42px;
  height: 42px;
  border-radius: var(--m-r);
  background: var(--m-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 2px solid var(--m-accent-dk2);
}
.logomark svg { width: 23px; height: 23px }

.logotype {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}
.lt-name {
  font-family: var(--m-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.lt-name .ac { color: var(--m-accent) }
.lt-tag {
  font-family: var(--m-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.52);
  margin-top: 3px;
}

header nav a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  margin-left: 16px;
  font-size: .86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
header nav a:hover {
  color: #fff;
  border-bottom-color: var(--m-accent);
  text-decoration: none;
}

/* worksite hazard-adjacent rule under header - topic-true here (concretecalctools precedent) */
.hgrad {
  height: 3px;
  background: var(--m-accent);
}

/* ---- hero (homepage: two-column mandatory per v1.5) ---- */
.hero {
  background: var(--m-nav2);
  border-bottom: 1px solid var(--m-nav);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  max-width: var(--m-maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: block;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin: .12em 0 .42em;
  max-width: 15ch;
  line-height: 1.04;
  border-bottom: 4px solid var(--m-accent);
  padding-bottom: .22em;
  display: inline-block;
}
.hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,.86);
  max-width: 50ch;
  margin-bottom: .5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(223,143,32,.16);
  color: var(--m-accent2);
  padding: 5px 13px;
  border-radius: var(--m-r);
  font-family: var(--m-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(223,143,32,.4);
}
.art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* byline - shown on inner pages, hidden on homepage */
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--m-muted);
  font-size: .84rem;
  margin: 12px 0 0;
}
.byline b { color: var(--m-ink); font-weight: 700 }
.byline .av {
  width: 32px;
  height: 32px;
  border-radius: var(--m-r);
  background: var(--m-accent2);
  display: inline-block;
  object-fit: cover;
  border: 1px solid var(--m-line);
}
.hero .byline { display: none }
.byline.light {
  color: rgba(255,255,255,.82);
}
.byline.light b { color: #fff }

/* ---- homepage two-column hero layout ---- */
.hero-row {
  display: grid !important;
  grid-template-columns: 1fr 1.08fr;
  gap: 40px;
  align-items: stretch;
  padding-top: 48px !important;
  padding-bottom: 44px !important;
}
.hero-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
}
.hero-left h1 { margin-bottom: .38em }
.hero-left > p { margin-bottom: 0; flex-shrink: 0 }
.hero-mascot-wrap {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}
.hero-mascot-wrap svg { width: 172px; height: 172px }
.hero-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
}
.hero-right .calc { margin: 0 !important; flex: 1 }
.hero .art { display: none }

@media (max-width: 860px) {
  .hero-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 30px !important;
  }
  .hero-left { padding-bottom: 8px }
  .hero-mascot-wrap { margin: 18px 0 4px }
  .hero-right { padding-bottom: 28px }
}

/* ---- main content ---- */
main { max-width: var(--m-maxw); margin: 0 auto; padding: 32px 24px }
main h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin: 2em 0 .55em;
  padding-bottom: .32em;
  border-bottom: 2px solid var(--m-line);
}
main h2:first-child { margin-top: 0 }
main p { color: var(--m-ink2) }
main ul li { color: var(--m-ink2) }
main strong { color: var(--m-ink) }

/* ---- spec-sheet section labels (worksite readout signature) ---- */
.spec-label {
  font-family: var(--m-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--m-accent-dk2);
  display: block;
  margin: 2.2em 0 .3em;
}

/* ---- calculator card (worksite readout) ---- */
.calc {
  background: var(--m-panel);
  border: 1px solid var(--m-line);
  border-top: 4px solid var(--m-accent);
  border-radius: var(--m-r);
  padding: 28px;
  margin: -40px 0 24px;
  position: relative;
  box-shadow: 0 10px 28px rgba(31,28,25,.16);
}
.calc h2 {
  font-family: var(--m-head);
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  margin: 0 0 18px;
  padding: 0;
  text-transform: uppercase;
}

/* form fields */
.fld {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 15px 0;
  font-family: var(--m-body);
  font-weight: 600;
  font-size: .88rem;
  color: var(--m-ink2);
}
.fld select, .qty input {
  padding: 12px 13px;
  border: 1px solid var(--m-line2);
  border-radius: var(--m-r);
  font-size: 1rem;
  font-family: var(--m-body);
  background: var(--m-paper);
  color: var(--m-ink);
  appearance: auto;
}
.fld select:focus, .qty input:focus {
  outline: none;
  border-color: var(--m-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(223,143,32,.18);
}
.hint {
  display: block;
  color: var(--m-muted);
  font-weight: 400;
  font-size: .78rem;
  margin-top: 3px;
  font-family: var(--m-body);
}

.qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  font-weight: 600;
  font-size: .88rem;
  color: var(--m-ink2);
}
.qty input { width: 88px }

/* result display - mono figures, garage readout */
.result {
  margin-top: 20px;
  padding: 22px 24px;
  background: var(--m-nav2);
  border: 1px solid var(--m-nav);
  border-radius: var(--m-r);
  text-align: center;
  color: #fff;
}
.result > div:first-child {
  font-family: var(--m-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.result .big {
  font-family: var(--m-mono);
  font-size: 2.15rem;
  font-weight: 600;
  color: var(--m-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  display: block;
  margin: 6px 0;
}
.bar {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--m-accent2), var(--m-accent), var(--m-accent-dk));
  margin: 16px 0 4px;
  position: relative;
}
.bar i {
  position: absolute;
  top: -5px;
  width: 3px;
  height: 14px;
  background: #fff;
  border-radius: 2px;
}
#outnote, #outarea { color: rgba(255,255,255,.62) !important }

/* lead / CTA block */
.lead {
  margin-top: 18px;
  background: var(--m-paper);
  border: 1px solid var(--m-line);
  border-left: 3px solid var(--m-accent);
  border-radius: var(--m-r);
  padding: 18px 20px;
  text-align: left;
}
.lead h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-family: var(--m-head);
  font-weight: 700;
  text-transform: uppercase;
}
.lead small { color: var(--m-muted); font-size: .8rem }
.cta {
  display: inline-block;
  margin-top: 10px;
  background: var(--m-accent);
  color: var(--m-nav2);
  padding: 12px 22px;
  border-radius: var(--m-r);
  text-decoration: none;
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.cta:hover { background: var(--m-accent-dk); color: #fff; text-decoration: none }

/* ---- feature strip (varied roles, not identical triplet) ---- */
.feats {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
  margin: 26px 0;
}
.feat {
  background: var(--m-panel);
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feat:first-child {
  background: var(--m-nav2);
  border-color: var(--m-nav2);
}
.feat:first-child span, .feat:first-child b { color: #fff }
.feat:first-child small { color: rgba(255,255,255,.6) }
.feat span { font-weight: 700; display: block; font-size: .92rem; color: var(--m-ink) }
.feat small { color: var(--m-muted); font-size: .8rem }
@media (max-width: 760px) { .feats { grid-template-columns: 1fr } }

/* ---- data tables (spec sheet) ---- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  background: var(--m-panel);
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  overflow: hidden;
  font-size: .93rem;
}
th {
  font-family: var(--m-mono);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--m-muted);
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid var(--m-line);
  background: var(--m-paper);
}
td {
  text-align: left;
  border-bottom: 1px solid var(--m-line);
  padding: 12px 15px;
  color: var(--m-ink2);
  font-variant-numeric: tabular-nums;
}
tr:last-child td { border-bottom: 0 }
tr td:first-child { font-weight: 600; color: var(--m-ink); font-family: var(--m-body); font-variant-numeric: normal }
tr td:last-child { color: var(--m-ink2); font-family: var(--m-mono) }

/* ---- FAQ ---- */
.faq {
  background: var(--m-panel);
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  padding: 2px 18px;
  margin: 9px 0;
}
.faq summary {
  font-family: var(--m-head);
  font-weight: 700;
  font-size: 1.06rem;
  cursor: pointer;
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--m-ink);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.faq summary::-webkit-details-marker { display: none }
.faq summary::after {
  content: "+";
  font-family: var(--m-mono);
  font-size: 1.3rem;
  color: var(--m-accent-dk2);
  font-weight: 400;
  flex: 0 0 auto;
  text-transform: none;
}
.faq details[open] summary::after { content: "\2212" }

/* ---- guide cards ---- */
.guides {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 12px 0 22px;
}
.gcard {
  display: block;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  padding: 17px 19px;
  background: var(--m-panel);
  text-decoration: none;
  color: var(--m-ink);
  border-left: 3px solid var(--m-line2);
  transition: border-color .14s, transform .12s;
}
.gcard:hover { border-left-color: var(--m-accent); transform: translateY(-2px); text-decoration: none }
.gcard strong {
  display: block;
  color: var(--m-accent-dk2);
  font-family: var(--m-head);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
  text-transform: uppercase;
}
.gcard small { color: var(--m-muted); font-size: .8rem }

/* ---- related tags ---- */
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.related a {
  text-decoration: none;
  border: 1px solid var(--m-line2);
  background: var(--m-panel);
  padding: 7px 14px;
  border-radius: var(--m-r);
  font-size: .86rem;
  color: var(--m-ink2);
}
.related a:hover { border-color: var(--m-accent); color: var(--m-accent-dk2); text-decoration: none }

/* ---- ad placeholder ---- */
.ad {
  margin: 26px 0;
  min-height: 90px;
  background: none;
  border: 1px dashed var(--m-line2);
  border-radius: var(--m-r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--m-muted);
  font-family: var(--m-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---- disclaimer ---- */
.disc {
  font-size: .8rem;
  color: var(--m-muted);
  background: var(--m-panel);
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  padding: 14px 17px;
  margin-top: 20px;
  line-height: 1.6;
}

/* ---- voice band (full-bleed accent - the one bold flood) ---- */
.voice-band {
  background: var(--m-accent);
  color: var(--m-nav2);
  padding: 34px 0;
  margin: 34px 0;
}
.voice-band .wrap { max-width: var(--m-maxw) }
.voice-band p {
  font-family: var(--m-head);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.18;
  margin: 0;
  max-width: 26ch;
  color: var(--m-nav2);
}

/* ---- ctabar ---- */
.ctabar { margin: 16px 0 20px }
.ctabar .cta { display: inline-block }

/* ---- form card (contact) ---- */
.form-card {
  background: var(--m-panel);
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  padding: 26px;
  max-width: 560px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 13px 0;
  font-weight: 600;
  font-size: .88rem;
  color: var(--m-ink2);
}
.field input, .field textarea {
  padding: 12px 13px;
  border: 1px solid var(--m-line2);
  border-radius: var(--m-r);
  font-size: 1rem;
  font-family: var(--m-body);
  background: var(--m-paper);
  color: var(--m-ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--m-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(223,143,32,.18);
}
#formResult { margin-top: 10px; font-weight: 700; color: var(--m-accent-dk2) }

/* ---- about banner ---- */
.aboutbanner {
  border-radius: var(--m-r);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 20px;
  background: var(--m-nav2);
  border: 1px solid var(--m-nav);
}
.aboutbanner svg { width: 160px; height: 160px }

/* ---- footer (dark bookend, warm charcoal) ---- */
footer {
  background: var(--m-nav);
  color: rgba(255,255,255,.62);
  margin-top: 40px;
  border-top: 3px solid var(--m-accent);
}
footer .wrap {
  max-width: var(--m-maxw);
  margin: 0 auto;
  padding: 42px 24px 26px;
  font-size: .87rem;
}
footer a {
  color: rgba(255,255,255,.74);
  text-decoration: none;
}
footer a:hover { color: var(--m-accent2); text-decoration: none }

/* HARD RULE: grid, never flex - even columns regardless of link count per column */
footer .cols {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 20px;
}
footer .cols a { display: block; margin: 0 0 9px }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr } }

footer strong { color: #fff; font-family: var(--m-head); text-transform: uppercase; letter-spacing: .02em }
footer small { color: rgba(255,255,255,.48) }
footer p { color: rgba(255,255,255,.55); margin: 6px 0 0 }

/* brand mark + wordmark visible on the dark footer */
.site-footer .brand svg rect, footer .brand svg rect { fill: #fff }
.site-footer .brand .name, footer .brand .name { color: #fff }

/* related mesh in footer */
.related-mesh {
  margin-top: 16px;
  font-size: .8rem;
  line-height: 1.85;
  color: rgba(255,255,255,.4);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
}
.related-mesh a {
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-right: 0;
}
.related-mesh a:hover { color: var(--m-accent2) }

/* ---- cookie consent banner ---- */
#cc-banner {
  background: var(--m-nav) !important;
  border-top: 1px solid rgba(255,255,255,.12);
}
#cc-acc {
  background: var(--m-accent) !important;
  color: var(--m-nav2) !important;
  border: 0 !important;
  border-radius: var(--m-r) !important;
  padding: 9px 18px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .82rem !important;
}
#cc-acc:hover { background: var(--m-accent-dk) !important; color: #fff !important }
#cc-rej {
  background: transparent !important;
  color: rgba(255,255,255,.8) !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: var(--m-r) !important;
}

/* ---- inner page hero (article/guide pages - no .hero wrapper, just main) ---- */
main h1 {
  font-family: var(--m-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  color: var(--m-ink);
  line-height: 1.06;
  margin: 0 0 .42em;
  text-transform: uppercase;
  border-bottom: 4px solid var(--m-accent);
  padding-bottom: .2em;
  display: inline-block;
}
main > .byline { margin-bottom: 18px }

/* ---- number highlights (mono) ---- */
.num, .mono, .big { font-family: var(--m-mono); font-variant-numeric: tabular-nums }

/* ---- mobile nav ---- */
@media (max-width: 640px) {
  header .wrap { padding: 12px 16px }
  header nav a { margin-left: 10px; font-size: .78rem }
  .lt-name { font-size: 1.06rem }
  .lt-tag { display: none }
  main { padding: 22px 16px }
  .calc { margin: -26px 0 20px; padding: 20px }
  .result .big { font-size: 1.65rem }
  footer .wrap { padding: 30px 16px 20px }
  footer .cols { gap: 22px }
  .voice-band { padding: 26px 0 }
}

/* AI-discoverability alignment rule (standing rule, batch 6/46) */
body:not(:has(.calc-layout)) .tool-hero .wrap{max-width:760px}
