/* LoftChart.com — golf club specifications database */

:root {
  --green:        #1B4332;
  --green-light:  #2D6A4F;
  --gold:         #C9A94E;
  --gold-dark:    #A98C36;
  --bg:           #FAFAF7;
  --surface:      #FFFFFF;
  --text:         #1A1A1A;
  --text-muted:   #5A5A54;
  --th-bg:        #E8F0E4;
  --row-alt:      #F5F5F3;
  --border:       #D4D4C8;
  --link:         #2D6A4F;
  --radius:       6px;
  --shadow:       0 1px 2px rgba(27, 67, 50, .06), 0 4px 16px rgba(27, 67, 50, .05);
  --maxw:         1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.017em;
  color: var(--green);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem); margin-top: 2.2rem; }
h3 { font-size: 1.1rem; margin-top: 1.6rem; }

p { margin: 0 0 1rem; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */

.site-header {
  background: var(--green);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand svg { display: block; width: 30px; height: 30px; }
.brand .dot { color: var(--gold); }

.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,.88);
  font-size: .92rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--gold); text-decoration: none; }

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
  font-size: .84rem;
  color: var(--text-muted);
  padding: .9rem 0 0;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
}
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: .35rem;
  color: var(--border);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--link); }

/* ---------- main ---------- */

main { padding: .5rem 0 4rem; }

.page-head { margin: 1rem 0 1.6rem; }
.page-head h1 { margin-bottom: .35rem; }
.lede {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0;
}

/* ---------- hero (homepage) ---------- */

.hero {
  background: linear-gradient(165deg, var(--green) 0%, #143528 100%);
  color: #fff;
  padding: 3.2rem 0 3rem;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero .tagline {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 1.6rem;
}
.hero .counter {
  margin-top: 1.4rem;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}
.hero .counter strong { color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- search ---------- */

.search {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
}
.search input {
  width: 100%;
  padding: .85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.search input:focus {
  outline: none;
  border-color: var(--gold);
}
.search-results {
  position: absolute;
  z-index: 40;
  left: 0; right: 0;
  top: calc(100% + .35rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  max-height: 340px;
  overflow-y: auto;
}
.search-results:empty { display: none; }
.search-results a {
  display: block;
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--row-alt);
  color: var(--text);
  font-size: .93rem;
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover,
.search-results a.active { background: var(--th-bg); text-decoration: none; }
.search-results .sr-meta {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
}
.search-results .sr-none {
  padding: .7rem .85rem;
  font-size: .9rem;
  color: var(--text-muted);
}

/* ---------- spec table ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin: 0 0 .6rem;
}

table.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  min-width: 480px;
}
table.specs caption {
  caption-side: top;
  text-align: left;
  padding: .8rem 1rem .3rem;
  font-size: .82rem;
  color: var(--text-muted);
}
table.specs th,
table.specs td {
  padding: .58rem .9rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.specs th:first-child,
table.specs td:first-child {
  text-align: left;
  font-weight: 600;
  position: sticky;
  left: 0;
  background: inherit;
}
/* Numeric columns get a fixed width so a 4-column set doesn't sprawl across
   the full page; the Club column absorbs the remaining space. */
table.specs thead th:not(:first-child) { width: 8rem; }
table.specs thead th:first-child { width: auto; }

table.specs thead th {
  background: var(--th-bg);
  color: var(--green);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
}
table.specs thead th:first-child { background: var(--th-bg); }
table.specs tbody tr { background: var(--surface); }
table.specs tbody tr:nth-child(even) { background: var(--row-alt); }
table.specs tbody tr:hover { background: var(--th-bg); }
table.specs tbody tr:last-child td { border-bottom: 0; }
table.specs td {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
table.specs td.na { color: #A5A59B; }
.table-note {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0 0 1.6rem;
}

/* ---------- quick facts ---------- */

/* Grid lines are drawn per-cell rather than by a background showing through the
   gaps, so an odd number of facts leaves a white cell instead of a grey block. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 2rem;
}
.facts div {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  padding: .8rem 1rem;
}
.facts dt {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: .15rem;
}
.facts dd { margin: 0; font-weight: 600; font-size: .96rem; }

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: .95rem 1.1rem;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover {
  text-decoration: none;
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(27,67,50,.12);
}
.card .card-title { font-weight: 700; color: var(--green); display: block; }
.card .card-meta {
  font-size: .82rem;
  color: var(--text-muted);
  display: block;
  margin-top: .15rem;
}
.card .card-spec {
  font-size: .82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-top: .4rem;
  display: block;
}

.brand-card { border-left-color: var(--brand-color, var(--gold)); }

/* ---------- timeline ---------- */

.decade { margin-top: 2rem; }
.decade h2 {
  font-size: 1.15rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: .3rem;
  display: inline-block;
  margin-bottom: .9rem;
}
.model-list { list-style: none; margin: 0; padding: 0; }
.model-list li {
  border-bottom: 1px solid var(--border);
  padding: .65rem .2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem;
}
.model-list li:last-child { border-bottom: 0; }
.model-list .yr {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: .86rem;
  min-width: 4.2rem;
}
.model-list .nm { font-weight: 600; }
.model-list .mt { color: var(--text-muted); font-size: .85rem; }

/* ---------- filter chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.chip {
  display: inline-block;
  padding: .3rem .75rem;
  font-size: .82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.chip:hover { border-color: var(--green-light); color: var(--green); text-decoration: none; }
.chip[aria-pressed="true"], .chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ---------- badges ---------- */

.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .16rem .5rem;
  border-radius: 3px;
  background: var(--th-bg);
  color: var(--green);
  vertical-align: middle;
}
.badge.gold { background: var(--gold); color: #2A2410; }

/* ---------- FAQ ---------- */

.faq { margin: 0; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: .55rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: .8rem 1rem;
  font-weight: 600;
  color: var(--green);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-body { padding: .8rem 1rem; margin: 0; color: var(--text-muted); }

/* ---------- callouts ---------- */

.note {
  background: var(--th-bg);
  border-left: 3px solid var(--green-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .85rem 1.1rem;
  font-size: .92rem;
  margin: 0 0 1.6rem;
}
.note p:last-child { margin-bottom: 0; }

.sources {
  border-top: 1px solid var(--border);
  margin-top: 2.6rem;
  padding-top: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.sources ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.sources li { margin-bottom: .2rem; }

.linklist { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.linklist li { margin-bottom: .4rem; }
.linklist li::before { content: "→"; color: var(--gold); margin-right: .5rem; font-weight: 700; }

/* ---------- compare ---------- */

.diff { background: #FFF7E0 !important; font-weight: 700; }
.cmp-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--green);
  color: rgba(255,255,255,.72);
  padding: 2.2rem 0 2.4rem;
  font-size: .88rem;
  margin-top: auto;
}
.site-footer a { color: rgba(255,255,255,.86); }
.site-footer a:hover { color: var(--gold); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}
.footer-cols h3 {
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin: 0 0 .6rem;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: .3rem; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 1.1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .site-header .wrap { min-height: 0; padding-top: .7rem; padding-bottom: .7rem; }
  .site-nav { gap: 1rem; width: 100%; }
  table.specs { font-size: .88rem; }
  table.specs th, table.specs td { padding: .5rem .65rem; }
  .hero { padding: 2.2rem 0 2rem; }
}

@media print {
  .site-header, .site-footer, .search, .chips { display: none; }
  body { background: #fff; }
  .table-scroll { overflow: visible; box-shadow: none; }
}
