/* =============================================================================
   Tip Spec Golf — design system
   "Measurement plate" aesthetic: warm ivory content field, deep bronze rail,
   caliper-bracket corners on every card, sharp edges, ledger-style step list.
   Cambria serif display paired with a Segoe UI body — system fonts only.
   Single file, no build step, no external requests.
   ============================================================================= */

:root {
  --tpg-ivory:       #f3ead9;
  --tpg-ivory-dim:   #ebdec0;
  --tpg-card:        #fffcf4;
  --tpg-ink-950:     #241a12;
  --tpg-ink-800:     #3a2c1f;
  --tpg-ink-700:     #4a3a29;
  --tpg-ink-500:     #6f5c46;
  --tpg-ink-400:     #8f7c65;
  --tpg-line:        rgba(36, 26, 18, 0.13);
  --tpg-line-strong: rgba(36, 26, 18, 0.28);
  --tpg-bronze:      #7c4a23;
  --tpg-bronze-light:#a5713f;
  --tpg-bronze-dark: #4f2e14;
  --tpg-bronze-wash: rgba(124, 74, 35, 0.12);
  --tpg-white:       #fffdf8;

  --tpg-font-head: Cambria, 'Hoefler Text', Georgia, 'Times New Roman', serif;
  --tpg-font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  --tpg-rail-w:   280px;
  --tpg-wrap-w:   1080px;
  --tpg-radius:   2px;
  --tpg-shadow-sm:0 1px 4px rgba(36, 26, 18, 0.14);
  --tpg-shadow-md:0 14px 32px rgba(36, 26, 18, 0.16);
  --tpg-shadow-br:0 12px 28px rgba(124, 74, 35, 0.26);
  --tpg-ease: 190ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tpg-body {
  margin: 0;
  font-family: var(--tpg-font-body);
  color: var(--tpg-ink-700);
  background: var(--tpg-ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
h1, h2, h3, h4 {
  font-family: var(--tpg-font-head);
  color: var(--tpg-ink-950);
  line-height: 1.22;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p { margin: 0 0 1em; color: var(--tpg-ink-500); }
address { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.tpg-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--tpg-bronze);
  color: var(--tpg-white);
  padding: 0.75em 1.25em;
  z-index: 1000;
  font-weight: 700;
}
.tpg-skip:focus { left: 1em; top: 1em; }

.tpg-wrap {
  width: 100%;
  max-width: var(--tpg-wrap-w);
  margin: 0 auto;
  padding: 0 26px;
}

/* ---------- Buttons (sharp corners, sweep underline) ---------- */
.tpg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.82em 1.6em;
  border-radius: var(--tpg-radius);
  font-weight: 700;
  font-size: 0.87rem;
  letter-spacing: 0.01em;
  transition: transform var(--tpg-ease), box-shadow var(--tpg-ease), background var(--tpg-ease), color var(--tpg-ease), border-color var(--tpg-ease);
  border: 1.5px solid transparent;
  cursor: pointer;
}
.tpg-btn--fill { background: var(--tpg-bronze); color: var(--tpg-white); }
.tpg-btn--fill:hover { background: var(--tpg-bronze-dark); transform: translateY(-2px); box-shadow: var(--tpg-shadow-br); }
.tpg-btn--line { background: transparent; border-color: var(--tpg-ink-800); color: var(--tpg-ink-800); }
.tpg-btn--line:hover { border-color: var(--tpg-bronze); color: var(--tpg-bronze-dark); transform: translateY(-2px); }
.tpg-btn--panel { background: var(--tpg-card); color: var(--tpg-ink-800); border-color: var(--tpg-line-strong); }
.tpg-btn--panel:hover { border-color: var(--tpg-bronze); transform: translateY(-2px); }
.tpg-btn--block { display: flex; justify-content: center; width: 100%; }

/* ---------- Sidebar rail ---------- */
.tpg-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--tpg-rail-w);
  background: linear-gradient(185deg, var(--tpg-bronze-dark), #3c2410 88%);
  color: rgba(255, 253, 248, 0.82);
  display: flex;
  flex-direction: column;
  z-index: 300;
  overflow-y: auto;
  transition: transform var(--tpg-ease);
}
.tpg-rail__brand { padding: 30px 24px 22px; border-bottom: 1px solid rgba(255, 253, 248, 0.14); }
.tpg-rail__brand-link { display: flex; align-items: center; gap: 12px; }
.tpg-rail__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255, 253, 248, 0.55);
  color: var(--tpg-white);
  font-family: var(--tpg-font-head);
  font-weight: 700;
  font-size: 1.02rem;
  flex: none;
}
.tpg-rail__name { display: block; color: var(--tpg-white); font-family: var(--tpg-font-head); font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.tpg-rail__tag { display: block; color: rgba(255, 253, 248, 0.55); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

.tpg-rail__nav { flex: 1; padding: 18px 14px; }
.tpg-rail__list { display: flex; flex-direction: column; gap: 2px; }
.tpg-rail__item > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--tpg-radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 253, 248, 0.78);
  border-left: 2px solid transparent;
  transition: background var(--tpg-ease), color var(--tpg-ease), border-color var(--tpg-ease);
}
.tpg-rail__item > a:hover { background: rgba(255, 253, 248, 0.07); color: var(--tpg-white); }
.tpg-rail__item.is-active > a { background: rgba(255, 253, 248, 0.1); color: var(--tpg-white); border-left-color: var(--tpg-bronze-light); }

.tpg-rail__meta { padding: 20px 24px 26px; border-top: 1px solid rgba(255, 253, 248, 0.14); }
.tpg-rail__phone { display: block; color: var(--tpg-white); font-weight: 700; font-size: 0.95rem; margin-bottom: 12px; }
.tpg-rail__phone:hover { color: var(--tpg-bronze-light); }
.tpg-rail__meta .tpg-btn { width: 100%; justify-content: center; }

.tpg-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 260;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 18px;
  background: rgba(243, 234, 217, 0.95);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1.5px solid var(--tpg-ink-800);
}
.tpg-topbar__brand { display: flex; align-items: center; gap: 10px; font-family: var(--tpg-font-head); font-weight: 700; color: var(--tpg-ink-950); }
.tpg-topbar__brand .tpg-rail__mark { width: 34px; height: 34px; font-size: 0.86rem; border-color: var(--tpg-ink-800); color: var(--tpg-ink-800); }

.tpg-rail-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--tpg-ink-800);
  cursor: pointer;
}
.tpg-rail-toggle span { display: block; height: 2px; background: var(--tpg-ink-800); transition: transform var(--tpg-ease), opacity var(--tpg-ease); }
.tpg-rail-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tpg-rail-toggle.is-active span:nth-child(2) { opacity: 0; }
.tpg-rail-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tpg-rail-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(36, 26, 18, 0.5);
  z-index: 290;
  opacity: 0;
  transition: opacity var(--tpg-ease);
}
.tpg-rail-scrim.is-open { opacity: 1; }

.tpg-content { margin-left: var(--tpg-rail-w); min-height: 100vh; display: flex; flex-direction: column; }
.tpg-main { flex: 1; }

@media (max-width: 960px) {
  .tpg-rail { transform: translateX(-100%); box-shadow: var(--tpg-shadow-md); }
  .tpg-rail.is-open { transform: translateX(0); }
  .tpg-topbar { display: flex; }
  .tpg-rail-toggle { display: flex; }
  .tpg-rail-scrim { display: block; pointer-events: none; }
  .tpg-rail-scrim.is-open { pointer-events: auto; }
  .tpg-content { margin-left: 0; }
}

/* ---------- Hero ---------- */
.tpg-hero { position: relative; background: var(--tpg-ivory); padding: 62px 0 0; border-bottom: 1px solid var(--tpg-line); overflow: hidden; }
.tpg-hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; padding-bottom: 58px; }
.tpg-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tpg-bronze-dark);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.tpg-hero__eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--tpg-bronze); }
.tpg-hero h1 { font-size: clamp(2.1rem, 3.9vw, 3.15rem); max-width: 17ch; }
.tpg-hero__lede { color: var(--tpg-ink-500); font-size: 1.06rem; max-width: 52ch; }
.tpg-hero__actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.tpg-panel {
  position: relative;
  background: var(--tpg-card);
  border: 1.5px solid var(--tpg-ink-800);
  padding: 26px;
  box-shadow: var(--tpg-shadow-md);
}
.tpg-panel::before, .tpg-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--tpg-bronze);
}
.tpg-panel::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.tpg-panel::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.tpg-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--tpg-ink-400);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--tpg-line-strong);
}
.tpg-panel__title .tpg-live { display: inline-flex; align-items: center; gap: 6px; color: var(--tpg-bronze-dark); }
.tpg-live::before { content: ""; width: 6px; height: 6px; background: var(--tpg-bronze); animation: tpg-pulse 1.8s infinite; }
@keyframes tpg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Tip-zone schematic */
.tpg-zonebar { position: relative; height: 104px; margin-bottom: 18px; }
.tpg-zonebar__shaft {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 46px;
  height: 5px;
  background: linear-gradient(90deg, var(--tpg-ink-700), var(--tpg-bronze-light));
}
.tpg-zonebar__zone {
  position: absolute;
  top: 34px;
  right: 6%;
  width: 27%;
  height: 30px;
  background: var(--tpg-bronze-wash);
  border: 1px dashed var(--tpg-bronze);
}
.tpg-zonebar__tick { position: absolute; top: 46px; width: 1px; height: 30px; background: var(--tpg-line-strong); }
.tpg-zonebar__tick span {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--tpg-ink-400);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tpg-zonebar__zone-label {
  position: absolute;
  bottom: -20px;
  right: 6%;
  font-size: 0.6rem;
  color: var(--tpg-bronze-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.tpg-read-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px dotted var(--tpg-line-strong); gap: 12px; }
.tpg-read-row:last-child { border-bottom: none; }
.tpg-read-row span:first-child { color: var(--tpg-ink-400); font-size: 0.83rem; }
.tpg-read-row span:last-child { color: var(--tpg-ink-950); font-weight: 700; font-family: var(--tpg-font-head); }

@media (max-width: 900px) {
  .tpg-hero__grid { grid-template-columns: 1fr; padding-bottom: 42px; }
}

/* ---------- Plates (stats) ---------- */
.tpg-plates { background: var(--tpg-ink-950); }
.tpg-plates__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.08); }
.tpg-plate { background: var(--tpg-ink-950); text-align: center; padding: 28px 12px; position: relative; }
.tpg-plate::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 3px; background: var(--tpg-bronze-light); }
.tpg-plate__num { display: block; font-family: var(--tpg-font-head); font-size: 1.65rem; font-weight: 700; color: var(--tpg-white); }
.tpg-plate__label { font-size: 0.71rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 780px) { .tpg-plates__row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Page header (non-home) ---------- */
.tpg-page-header { position: relative; background: var(--tpg-ivory-dim); padding: 50px 0 58px; border-bottom: 1px solid var(--tpg-line-strong); }
.tpg-crumb { color: var(--tpg-bronze-dark); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; font-weight: 700; display: inline-block; }
.tpg-page-header h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); max-width: 24ch; }
.tpg-page-header .tpg-lede { color: var(--tpg-ink-500); max-width: 60ch; font-size: 1.01rem; margin: 0; }

/* ---------- Sections ---------- */
.tpg-section { padding: 72px 0; }
.tpg-section--alt { background: var(--tpg-ivory-dim); border-top: 1px solid var(--tpg-line); border-bottom: 1px solid var(--tpg-line); }
.tpg-section__head { max-width: 660px; margin: 0 auto 42px; text-align: center; }
.tpg-section__head.tpg-left { margin: 0 0 34px; text-align: left; }
.tpg-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--tpg-bronze-dark); text-transform: uppercase; font-size: 0.73rem; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 12px; }
.tpg-eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--tpg-bronze); }
.tpg-section__head.tpg-center .tpg-eyebrow { justify-content: center; }
.tpg-section__head h2 { font-size: clamp(1.46rem, 2.9vw, 1.98rem); }
.tpg-section__head p { font-size: 1rem; }

/* ---------- Grid / cards with caliper corners ---------- */
.tpg-grid { display: grid; gap: 22px; }
.tpg-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tpg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tpg-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .tpg-grid--3, .tpg-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tpg-grid--2, .tpg-grid--3, .tpg-grid--4 { grid-template-columns: 1fr; } }

.tpg-card {
  position: relative;
  background: var(--tpg-card);
  border: 1px solid var(--tpg-line-strong);
  padding: 28px 22px 24px;
  transition: transform var(--tpg-ease), box-shadow var(--tpg-ease), border-color var(--tpg-ease);
}
.tpg-card::before, .tpg-card::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid var(--tpg-bronze);
  opacity: 0;
  transition: opacity var(--tpg-ease);
}
.tpg-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tpg-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.tpg-card:hover { transform: translateY(-3px); box-shadow: var(--tpg-shadow-md); }
.tpg-card:hover::before, .tpg-card:hover::after { opacity: 1; }
.tpg-card__tab {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--tpg-ink-800);
  color: var(--tpg-white);
  font-family: var(--tpg-font-head);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
}
.tpg-card h3 { font-size: 1.13rem; }
.tpg-card p:last-child { margin-bottom: 0; }
.tpg-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--tpg-bronze-dark); font-weight: 700; font-size: 0.86rem; border-bottom: 1px solid transparent; transition: border-color var(--tpg-ease); }
.tpg-card__link:hover { border-color: var(--tpg-bronze-dark); }

/* ---------- Bars (comparison / spec visuals) ---------- */
.tpg-bars { display: flex; flex-direction: column; gap: 18px; }
.tpg-bar-row__label { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--tpg-ink-500); margin-bottom: 7px; }
.tpg-bar-row__label strong { color: var(--tpg-ink-950); font-family: var(--tpg-font-head); }
.tpg-bar-track { height: 7px; background: var(--tpg-ivory-dim); border: 1px solid var(--tpg-line-strong); overflow: hidden; }
.tpg-bar-fill { height: 100%; background: var(--tpg-bronze); }

/* ---------- Ledger list (process steps) ---------- */
.tpg-ledger { position: relative; display: flex; flex-direction: column; max-width: 740px; }
.tpg-ledger__row { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--tpg-line); }
.tpg-ledger__row:last-child { border-bottom: none; }
.tpg-ledger__tag {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--tpg-ink-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tpg-font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--tpg-ink-950);
  background: var(--tpg-ivory);
  flex: none;
}
.tpg-ledger__body h3 { font-size: 1.08rem; margin-bottom: 0.35em; }

/* ---------- Table (pricing / spec sheets) ---------- */
.tpg-table-wrap { overflow-x: auto; border: 1px solid var(--tpg-line-strong); }
.tpg-table { width: 100%; border-collapse: collapse; background: var(--tpg-card); min-width: 560px; }
.tpg-table th, .tpg-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--tpg-line); font-size: 0.91rem; }
.tpg-table thead th { background: var(--tpg-ink-950); color: var(--tpg-white); font-family: var(--tpg-font-head); font-weight: 700; font-size: 0.81rem; letter-spacing: 0.03em; }
.tpg-table tbody tr:hover { background: var(--tpg-ivory-dim); }
.tpg-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Pricing cards ---------- */
.tpg-pricing-card { display: flex; flex-direction: column; }
.tpg-pricing-card .tpg-price { font-family: var(--tpg-font-head); font-size: 1.95rem; font-weight: 700; color: var(--tpg-ink-950); margin: 10px 0 4px; }
.tpg-pricing-card .tpg-price span { font-family: var(--tpg-font-body); font-size: 0.89rem; color: var(--tpg-ink-400); font-weight: 500; }
.tpg-pricing-card ul { margin: 16px 0; display: flex; flex-direction: column; gap: 9px; }
.tpg-pricing-card li { padding-left: 20px; position: relative; font-size: 0.9rem; color: var(--tpg-ink-500); }
.tpg-pricing-card li::before { content: "\2014"; position: absolute; left: 0; color: var(--tpg-bronze); font-weight: 700; }
.tpg-pricing-card--featured { border-color: var(--tpg-bronze); box-shadow: var(--tpg-shadow-br); }
.tpg-pricing-card--featured .tpg-card__tab { background: var(--tpg-bronze); }

/* ---------- Testimonials ---------- */
.tpg-testimonial { background: var(--tpg-card); border: 1px solid var(--tpg-line-strong); padding: 28px 24px 24px; position: relative; }
.tpg-quote-mark { position: absolute; top: 8px; right: 16px; font-family: var(--tpg-font-head); font-size: 2.8rem; color: var(--tpg-line-strong); line-height: 1; }
.tpg-testimonial p { color: var(--tpg-ink-700); font-size: 0.97rem; position: relative; }
.tpg-testimonial__author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.tpg-avatar {
  width: 40px;
  height: 40px;
  background: var(--tpg-bronze-wash);
  border: 1.5px solid var(--tpg-bronze);
  color: var(--tpg-bronze-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tpg-font-head);
  font-weight: 700;
}
.tpg-testimonial__author strong { display: block; color: var(--tpg-ink-950); font-size: 0.93rem; }
.tpg-testimonial__author span { font-size: 0.79rem; color: var(--tpg-ink-400); }
.tpg-stars { color: var(--tpg-bronze); letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 12px; display: block; }

/* ---------- CTA band ---------- */
.tpg-cta { background: var(--tpg-ink-950); position: relative; text-align: center; padding: 62px 0; border-top: 3px solid var(--tpg-bronze); }
.tpg-cta h2 { color: var(--tpg-white); }
.tpg-cta p { color: rgba(255,255,255,0.66); max-width: 54ch; margin: 0 auto 24px; }
.tpg-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tpg-cta .tpg-btn--line { border-color: rgba(255,255,255,0.4); color: var(--tpg-white); }
.tpg-cta .tpg-btn--line:hover { border-color: var(--tpg-bronze-light); color: var(--tpg-bronze-light); }

/* ---------- Team ---------- */
.tpg-team-card { text-align: center; }
.tpg-team-photo {
  width: 84px;
  height: 84px;
  margin: 0 auto 15px;
  background: var(--tpg-ivory-dim);
  color: var(--tpg-bronze-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tpg-font-head);
  font-size: 1.35rem;
  font-weight: 700;
  border: 1.5px solid var(--tpg-ink-800);
}
.tpg-team-role { color: var(--tpg-bronze-dark); font-size: 0.79rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; display: block; }

/* ---------- Brand tiles ---------- */
.tpg-brand-tile { border: 1px solid var(--tpg-line-strong); background: var(--tpg-card); padding: 20px; position: relative; transition: border-color var(--tpg-ease), transform var(--tpg-ease); }
.tpg-brand-tile:hover { border-color: var(--tpg-bronze); transform: translateY(-3px); }
.tpg-brand-tile__mark { font-family: var(--tpg-font-head); font-weight: 700; font-size: 1.15rem; color: var(--tpg-ink-950); border-bottom: 2px solid var(--tpg-bronze); padding-bottom: 9px; margin-bottom: 11px; display: block; }
.tpg-brand-tile strong { display: block; color: var(--tpg-ink-950); margin-bottom: 4px; }
.tpg-brand-tile span { font-size: 0.81rem; color: var(--tpg-ink-400); }
.tpg-brand-tile .tpg-bar-track { margin-top: 13px; }

/* ---------- FAQ (details/summary, no JS) ---------- */
.tpg-faq-item { border-bottom: 1px solid var(--tpg-line-strong); padding: 17px 0; }
.tpg-faq-item summary { cursor: pointer; font-family: var(--tpg-font-head); font-weight: 700; color: var(--tpg-ink-950); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tpg-faq-item summary::-webkit-details-marker { display: none; }
.tpg-faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--tpg-bronze); font-family: var(--tpg-font-body); }
.tpg-faq-item[open] summary::after { content: "\2212"; }
.tpg-faq-item p { margin-top: 11px; }

/* ---------- Forms ---------- */
.tpg-form-card { background: var(--tpg-card); border: 1px solid var(--tpg-line-strong); padding: 30px; box-shadow: var(--tpg-shadow-sm); }
.tpg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .tpg-form-row { grid-template-columns: 1fr; } }
.tpg-form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.tpg-form-field label { font-weight: 700; font-size: 0.86rem; color: var(--tpg-ink-800); }
.tpg-form-field input, .tpg-form-field select, .tpg-form-field textarea {
  font-family: var(--tpg-font-body);
  font-size: 0.93rem;
  padding: 11px 13px;
  border: 1.5px solid var(--tpg-line-strong);
  background: var(--tpg-ivory);
  color: var(--tpg-ink-800);
  transition: border-color var(--tpg-ease), box-shadow var(--tpg-ease);
}
.tpg-form-field input:focus, .tpg-form-field select:focus, .tpg-form-field textarea:focus {
  outline: none;
  border-color: var(--tpg-bronze);
  box-shadow: 0 0 0 3px var(--tpg-bronze-wash);
}
.tpg-form-note { font-size: 0.82rem; color: var(--tpg-ink-400); }

/* ---------- Locate panel (contact / booking) — spec-plate style ---------- */
.tpg-locate { position: relative; height: 210px; background: var(--tpg-ink-950); overflow: hidden; border: 1.5px solid var(--tpg-ink-800); }
.tpg-locate--lg { height: 290px; }
.tpg-locate__frame { position: absolute; top: 16px; left: 16px; right: 16px; bottom: 16px; border: 1px solid rgba(165, 113, 63, 0.4); }
.tpg-locate__frame::before, .tpg-locate__frame::after { content: ""; position: absolute; background: rgba(165, 113, 63, 0.4); }
.tpg-locate__frame::before { top: 50%; left: -1px; right: -1px; height: 1px; }
.tpg-locate__frame::after { left: 50%; top: -1px; bottom: -1px; width: 1px; }
.tpg-locate__pin { position: absolute; top: 46%; left: 52%; width: 10px; height: 10px; background: var(--tpg-bronze-light); transform: translate(-50%, -50%); box-shadow: 0 0 0 7px rgba(165, 113, 63, 0.2); }
.tpg-locate__coords { position: absolute; bottom: 12px; left: 16px; color: rgba(255,255,255,0.5); font-size: 0.71rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.tpg-locate__label { position: absolute; top: 14px; right: 18px; color: var(--tpg-bronze-light); font-size: 0.69rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Blog ---------- */
.tpg-post-card { display: flex; flex-direction: column; }
.tpg-post-meta { font-size: 0.76rem; color: var(--tpg-bronze-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; font-weight: 700; }
.tpg-post-card h3 { font-size: 1.08rem; }
.tpg-article { max-width: 720px; margin: 0 auto; }
.tpg-article h2 { margin-top: 1.6em; font-size: 1.38rem; }
.tpg-article h3 { margin-top: 1.3em; font-size: 1.1rem; }
.tpg-article ul, .tpg-article ol { margin: 0 0 1.2em; padding-left: 1.4em; color: var(--tpg-ink-500); }
.tpg-article li { margin-bottom: 0.5em; }
.tpg-article blockquote { border-left: 3px solid var(--tpg-bronze); margin: 1.6em 0; padding: 0.4em 0 0.4em 1.4em; font-family: var(--tpg-font-head); font-style: italic; color: var(--tpg-ink-800); font-size: 1.04rem; }
.tpg-article-header { text-align: center; margin-bottom: 32px; }
.tpg-article-header .tpg-post-meta { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.tpg-footer { background: var(--tpg-ink-950); color: rgba(255,255,255,0.55); padding: 56px 0 0; }
.tpg-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 38px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.14); }
@media (max-width: 860px) { .tpg-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tpg-footer__top { grid-template-columns: 1fr; } }
.tpg-footer__col h3 { color: var(--tpg-bronze-light); font-family: var(--tpg-font-head); font-size: 0.96rem; margin-bottom: 15px; }
.tpg-footer__brand-name { display: block; color: var(--tpg-white); font-family: var(--tpg-font-head); font-size: 1.26rem; margin-bottom: 11px; }
.tpg-footer__stamps { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; }
.tpg-stamp { border: 1px solid rgba(255,255,255,0.24); padding: 6px 13px; font-size: 0.72rem; color: var(--tpg-bronze-light); display: inline-block; width: fit-content; }
.tpg-footer address { font-size: 0.89rem; margin-bottom: 10px; }
.tpg-footer a:hover { color: var(--tpg-bronze-light); }
.tpg-hours { margin-top: 13px; }
.tpg-hours li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.82rem; padding: 4px 0; border-bottom: 1px dotted rgba(255,255,255,0.1); }
.tpg-hours li:last-child { border-bottom: none; }
.tpg-footer__links li { margin-bottom: 8px; font-size: 0.87rem; }
.tpg-footer__bottom { padding: 20px 0; }
.tpg-footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.76rem; }

/* ---------- 404 ---------- */
.tpg-error { text-align: center; padding: 104px 0; }
.tpg-error .tpg-error-code { display: inline-block; font-family: var(--tpg-font-head); font-size: 5.2rem; font-weight: 700; color: var(--tpg-ink-950); line-height: 1; border: 2px dashed var(--tpg-line-strong); padding: 6px 24px; }
.tpg-error h1 { margin-top: 20px; }

/* ---------- Reveal on scroll — gated behind js-on so no-JS visitors always see content ---------- */
.tpg-reveal { opacity: 1; }
.js-on .tpg-reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.js-on .tpg-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.tpg-center { text-align: center; }
.tpg-mt-0 { margin-top: 0; }
.tpg-mb-0 { margin-bottom: 0; }
.tpg-check-list li { padding-left: 24px; position: relative; margin-bottom: 10px; }
.tpg-check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--tpg-bronze-dark); font-weight: 700; }
.tpg-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
@media (max-width: 800px) { .tpg-two-col { grid-template-columns: 1fr; } }
.tpg-btn--sm { padding: 0.56em 1.2em; font-size: 0.78rem; }
.tpg-tight { max-width: 800px; margin: 0 auto; }
.tpg-w-narrow { max-width: 640px; }

/* ---------- Small-screen refinements ---------- */
@media (max-width: 640px) {
  .tpg-hero { padding-top: 44px; }
  .tpg-hero__actions { flex-direction: column; align-items: stretch; }
  .tpg-hero__actions .tpg-btn { justify-content: center; }
  .tpg-section { padding: 54px 0; }
  .tpg-cta { padding: 48px 0; }
  .tpg-cta__actions { flex-direction: column; align-items: stretch; }
  .tpg-ledger__row { grid-template-columns: 42px 1fr; gap: 14px; }
  .tpg-ledger__tag { width: 40px; height: 40px; font-size: 0.96rem; }
  .tpg-panel { padding: 20px; }
  .tpg-footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (min-width: 1400px) {
  :root { --tpg-wrap-w: 1180px; }
}

/* ---------- Print ---------- */
@media print {
  .tpg-rail, .tpg-topbar, .tpg-cta, .tpg-skip { display: none; }
  .tpg-content { margin-left: 0; }
  body.tpg-body { background: var(--tpg-white); color: #000; }
}
