/* Indian Fantasy Cricket - HERITAGE EDITION v7 (2026-07-07)
   Brand: Heritage brown #3D2817 + parchment #F5E6D3 + ink #1A1A1A + gold #B8860B
   Layout: LAYOUT_015 HERITAGE EDITORIAL MAGAZINE - vintage newspaper style
   100% KHAC Row 41-53 (khong dashboard, khong arcade, khong midnight, khong glassmorphism)
*/

:root {
  --primary: #3D2817;
  --primary-light: #5C3D24;
  --accent: #B8860B;
  --accent-light: #D4A024;
  --text: #1A1A1A;
  --text-light: #4A3F35;
  --muted: #7A6A5A;
  --bg: #FAF5EE;
  --surface: #F5E6D3;
  --surface-2: #EBD9C0;
  --border: #C9B89A;
  --positive: #2D5016;
  --negative: #8B0000;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Playfair Display", "Georgia", serif;
  --font-serif: "Lora", "Georgia", serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  padding-top: 110px;  /* topbar 36 + header 74 */
  font-size: 17px;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); font-weight: 900; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: absolute !important; left: 0 !important; top: 0 !important; background: var(--accent) !important; color: var(--primary) !important; padding: 14px 22px !important; z-index: 9999; font-weight: 900; }

/* TOPBAR - newspaper style with vol/date/edition */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: var(--primary);
  color: var(--bg);
  border-bottom: 2px solid var(--accent);
  z-index: 103;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-family: var(--font-sans);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 100%; padding: 0 24px; }
.topbar-marquee { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.topbar-tag { background: var(--accent); color: var(--primary); padding: 3px 10px; border-radius: 2px; font-size: 10px; font-weight: 900; flex-shrink: 0; font-family: var(--font-display); letter-spacing: 1px; }
.marquee-text { color: var(--bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
.topbar-meta { display: flex; gap: 12px; flex-shrink: 0; color: var(--surface); }
.topbar-meta span { font-weight: 700; letter-spacing: 0.5px; }

.cta-bar { display: none; position: fixed; top: 110px; left: 0; right: 0; background: var(--primary); border-bottom: 2px solid var(--accent); z-index: 101; }
.cta-bar .container { display: flex; gap: 0; padding: 0; }
.cta-bar a {
  flex: 1;
  text-align: center;
  padding: 14px 12px;
  color: var(--bg) !important;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-right: 1px solid var(--accent);
  white-space: nowrap;
  font-family: var(--font-sans);
}
.cta-bar a:last-child { border-right: 0; }
.cta-bar a.primary-cta { background: var(--accent); color: var(--primary) !important; }
.cta-bar a.secondary-cta { background: var(--primary-light); color: var(--bg) !important; }

header.site {
  position: fixed;
  top: 36px;
  left: 0; right: 0;
  height: 74px;
  background: var(--bg);
  border-bottom: 3px double var(--primary);
  box-shadow: 0 2px 8px rgba(61, 40, 23, 0.1);
  z-index: 102;
  display: flex;
  align-items: center;
}
header.site .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 20px;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-display);
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}
.logo .mark {
  background: var(--primary);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
  font-family: var(--font-display);
  border: 2px solid var(--accent);
}
.logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo .cs {
  color: var(--accent);
  font-style: italic;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-left: 4px;
  flex-shrink: 0;
}

nav.main {
  display: flex;
  gap: 18px;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
}
nav.main a {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 6px;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
nav.main a:hover, nav.main a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 2px;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.btn-primary { background: var(--primary); color: var(--bg) !important; border: 2px solid var(--primary); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--primary) !important; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary) !important; background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--bg) !important; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 10px;
  width: 22px !important;
  height: 3px !important;
  background: var(--primary) !important;
  display: block !important;
  border-radius: 1px;
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 30px; }

.breadcrumb { background: var(--surface); padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--border); font-family: var(--font-sans); font-style: italic; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-light); }
.breadcrumb a { color: var(--primary) !important; font-weight: 700; font-style: normal; }
.breadcrumb span:last-child { color: var(--accent); font-weight: 800; }

section { padding: 64px 0; }
.disclaimer { background: var(--surface); color: var(--text-light); border-left: 4px solid var(--accent); padding: 12px 20px; font-size: 13px; text-align: center; font-style: italic; font-family: var(--font-serif); }

/* MASTHEAD - newspaper style */
.masthead { background: var(--bg); padding: 40px 0 24px; border-bottom: 1px solid var(--border); }
.masthead-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; text-align: center; }
.masthead-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-light); padding-bottom: 16px; border-bottom: 1px solid var(--border); font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 1px; }
.masthead-vol, .masthead-date, .masthead-edition { font-weight: 700; }
.masthead-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 64px); font-weight: 900; color: var(--primary); line-height: 1.05; letter-spacing: -1px; padding: 20px 0 8px; }
.masthead-subtitle { font-family: var(--font-serif); font-style: italic; color: var(--text-light); font-size: 16px; padding-bottom: 16px; }
.masthead-rule { height: 4px; border-top: 2px solid var(--primary); border-bottom: 1px solid var(--primary); margin-top: 8px; }

/* FRONT PAGE - 2-col newspaper layout */
.front-page { background: var(--bg); padding: 48px 0; }
.fp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }

.lead-story { border-right: 1px solid var(--border); padding-right: 32px; }
.article-meta { display: flex; gap: 16px; font-family: var(--font-sans); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); font-weight: 900; margin-bottom: 12px; }
.article-byline { color: var(--text-light); }
.article-kicker { color: var(--accent); }
.lead-headline { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: var(--primary); line-height: 1.1; margin-bottom: 12px; letter-spacing: -1px; }
.article-byline-detail { font-family: var(--font-sans); font-size: 12px; color: var(--muted); font-style: italic; margin-bottom: 16px; }
.lead-image { margin: 16px 0; border: 1px solid var(--border); }
.lead-deck { font-family: var(--font-serif); font-size: 19px; line-height: 1.5; color: var(--text); font-style: italic; margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lead-dropcap { font-family: var(--font-serif); font-size: 17px; line-height: 1.7; color: var(--text); margin: 16px 0; }
.lead-dropcap .dropcap { float: left; font-family: var(--font-display); font-size: 64px; line-height: 56px; font-weight: 900; color: var(--accent); padding: 4px 12px 0 0; margin-right: 4px; }
.lead-body { font-family: var(--font-serif); font-size: 17px; line-height: 1.7; color: var(--text); margin: 14px 0; }

.front-page-sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-section { background: var(--surface); padding: 20px; border: 1px solid var(--border); border-radius: 2px; }
.sidebar-heading { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--accent); }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { padding: 8px 0; border-bottom: 1px dotted var(--border); font-size: 14px; }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a { color: var(--text); font-weight: 600; }
.sidebar-list a:hover { color: var(--accent); }
.sidebar-pullquote { background: var(--primary); color: var(--bg); text-align: center; padding: 32px 20px; }
.sidebar-pullquote .pullquote { font-family: var(--font-display); font-size: 20px; line-height: 1.4; font-style: italic; font-weight: 700; }
.sidebar-pullquote cite { font-family: var(--font-sans); font-size: 12px; color: var(--accent); font-style: normal; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-stats .stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dotted var(--border); font-family: var(--font-sans); }
.sidebar-stats .stat-row:last-child { border-bottom: 0; }
.sidebar-stats .stat-num { font-weight: 900; color: var(--primary); font-family: var(--font-display); }
.sidebar-stats .stat-label { color: var(--text-light); font-size: 13px; }

/* DAILY BRIEFING - 3 articles in row */
.daily-briefing { background: var(--surface); padding: 64px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.db-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.db-header { text-align: center; margin-bottom: 40px; }
.db-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: var(--primary); }
.db-subtitle { font-family: var(--font-serif); font-style: italic; color: var(--text-light); margin-top: 8px; }
.db-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.db-article { background: var(--bg); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.db-image { background: var(--surface); height: 200px; overflow: hidden; }
.db-image img { width: 100%; height: 100%; object-fit: cover; }
.db-content { padding: 20px; }
.db-kicker { display: inline-block; background: var(--accent); color: var(--primary); padding: 2px 8px; font-family: var(--font-sans); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.db-headline { font-family: var(--font-display); font-size: 20px; font-weight: 900; line-height: 1.2; margin-bottom: 8px; }
.db-headline a { color: var(--primary); }
.db-headline a:hover { color: var(--accent); }
.db-deck { font-family: var(--font-serif); font-size: 14px; line-height: 1.5; color: var(--text-light); margin-bottom: 12px; }
.db-meta { font-family: var(--font-sans); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* FEATURED ANALYSIS - 2-col magazine */
.featured-analysis { background: var(--bg); padding: 64px 0; }
.fa-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.fa-header { text-align: center; margin-bottom: 40px; }
.fa-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: var(--primary); }
.fa-rule { display: block; width: 80px; height: 3px; background: var(--accent); margin: 12px auto 0; }
.fa-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.fa-main { background: var(--surface); padding: 24px; border: 1px solid var(--border); }
.fa-image { margin-bottom: 16px; }
.fa-image img { width: 100%; }
.fa-kicker { display: inline-block; background: var(--primary); color: var(--accent); padding: 3px 10px; font-family: var(--font-sans); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.fa-headline { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--primary); line-height: 1.15; margin-bottom: 12px; }
.fa-deck { font-family: var(--font-serif); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--text); margin: 12px 0; padding: 8px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fa-body { font-family: var(--font-serif); font-size: 16px; line-height: 1.7; color: var(--text); margin: 12px 0; }
.fa-link { display: inline-block; margin-top: 12px; color: var(--primary); font-family: var(--font-sans); font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.fa-link:hover { color: var(--accent); }
.fa-side { display: flex; flex-direction: column; gap: 24px; }
.fa-side-item { background: var(--bg); padding: 18px; border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.fa-side-headline { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--primary); line-height: 1.2; margin-bottom: 8px; }
.fa-side-deck { font-family: var(--font-serif); font-size: 14px; line-height: 1.5; color: var(--text-light); margin-bottom: 8px; }
.fa-side-link { font-family: var(--font-sans); font-size: 12px; font-weight: 900; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.fa-side-link:hover { color: var(--accent); }

/* EDITORIAL LETTER */
.editorial-letter { background: var(--primary); color: var(--bg); padding: 80px 0; }
.el-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.el-content { text-align: center; }
.el-kicker { display: inline-block; background: var(--accent); color: var(--primary); padding: 4px 14px; font-family: var(--font-sans); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.el-title { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 900; color: var(--bg); margin-bottom: 8px; }
.el-byline { font-family: var(--font-serif); font-style: italic; color: var(--surface); font-size: 14px; margin-bottom: 24px; }
.el-pullquote { background: var(--primary-light); padding: 24px; border-left: 4px solid var(--accent); margin: 24px 0; text-align: left; }
.el-pullquote p { font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--bg); }
.el-body { font-family: var(--font-serif); font-size: 17px; line-height: 1.7; color: var(--surface); margin: 16px 0; text-align: left; }
.el-link { display: inline-block; margin-top: 16px; color: var(--accent); font-family: var(--font-sans); font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.el-link:hover { color: var(--bg); }

/* HUB DIRECTORY - 4-col grid */
.hub-directory { background: var(--surface); padding: 64px 0; border-top: 1px solid var(--border); }
.hd-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hd-header { text-align: center; margin-bottom: 32px; }
.hd-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: var(--primary); }
.hd-subtitle { font-family: var(--font-serif); font-style: italic; color: var(--text-light); margin-top: 8px; }
.hd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hd-card { background: var(--bg); border: 1px solid var(--border); padding: 16px 12px; text-align: center; text-decoration: none; color: var(--text); transition: all 0.2s; }
.hd-card:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.hd-card:hover .hd-name { color: var(--bg); }
.hd-card:hover .hd-desc { color: var(--surface); }
.hd-icon { font-size: 28px; margin-bottom: 8px; }
.hd-name { font-family: var(--font-display); font-size: 14px; font-weight: 900; color: var(--primary); text-transform: uppercase; }
.hd-desc { font-family: var(--font-serif); font-style: italic; font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* TOP CAPTAINS TABLE */
.top-captains { background: var(--bg); padding: 64px 0; }
.tc-container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.tc-header { text-align: center; margin-bottom: 24px; }
.tc-title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); font-weight: 900; color: var(--primary); }
.tc-rule { display: block; width: 80px; height: 3px; background: var(--accent); margin: 12px auto 0; }
.tc-table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 14px; }
.tc-table th { background: var(--primary); color: var(--accent); padding: 12px; text-align: left; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.tc-table td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.tc-table tr:nth-child(even) { background: var(--surface); }
.tc-table .rank { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--accent); width: 60px; }
.tc-table .player { font-weight: 700; color: var(--primary); }

/* METHODOLOGY BREAKDOWN */
.methodology-breakdown { background: var(--primary); color: var(--bg); padding: 64px 0; }
.mb-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mb-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: var(--bg); text-align: center; }
.mb-subtitle { font-family: var(--font-serif); font-style: italic; color: var(--surface); text-align: center; margin: 8px 0 40px; }
.mb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mb-card { background: var(--primary-light); padding: 20px 16px; border: 1px solid var(--accent); border-radius: 2px; text-align: center; }
.mb-card-title { font-family: var(--font-display); font-size: 15px; font-weight: 900; color: var(--bg); margin-bottom: 8px; text-transform: uppercase; }
.mb-card-meta { display: flex; justify-content: space-around; margin-bottom: 12px; padding: 8px 0; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.mb-vars { font-family: var(--font-display); font-size: 14px; font-weight: 900; color: var(--accent); }
.mb-weight { font-family: var(--font-mono); font-size: 12px; color: var(--surface); }
.mb-card-desc { font-family: var(--font-serif); font-size: 12px; line-height: 1.4; color: var(--surface); }

/* HERITAGE QUOTE + STATS */
.heritage-quote-stats { background: var(--bg); padding: 64px 0; }
.hqs-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.hqs-quote { padding-right: 32px; border-right: 1px solid var(--border); }
.hqs-quote-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 900; color: var(--primary); line-height: 1.1; margin-bottom: 16px; }
.hqs-quote-body { font-family: var(--font-serif); font-size: 17px; line-height: 1.7; color: var(--text); margin-bottom: 16px; }
.hqs-link { display: inline-block; color: var(--primary); font-family: var(--font-sans); font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.hqs-link:hover { color: var(--accent); }
.hqs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hqs-stat { background: var(--surface); border: 1px solid var(--border); padding: 20px 16px; text-align: center; }
.hqs-num { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 900; color: var(--primary); line-height: 1; }
.hqs-label { display: block; font-family: var(--font-sans); font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; font-weight: 700; }

/* HERITAGE FAQ */
.heritage-faq { background: var(--surface); padding: 64px 0; }
.hf-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hf-title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); font-weight: 900; color: var(--primary); text-align: center; margin-bottom: 32px; }
.hf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hf-item { background: var(--bg); border: 1px solid var(--border); padding: 16px 20px; }
.hf-item summary { color: var(--primary); font-weight: 900; cursor: pointer; font-size: 15px; font-family: var(--font-sans); }
.hf-item div { margin-top: 8px; color: var(--text-light); line-height: 1.6; font-size: 14px; font-family: var(--font-serif); }

/* HERITAGE FINAL CTA */
.heritage-final { background: var(--primary); color: var(--bg); padding: 80px 0; text-align: center; }
.hf-final-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.hf-final-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: var(--bg); margin-bottom: 16px; }
.hf-final-body { font-family: var(--font-serif); font-size: 18px; line-height: 1.6; color: var(--surface); margin-bottom: 24px; }
.hf-final-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.heritage-final .btn-primary { background: var(--accent); color: var(--primary) !important; border-color: var(--accent); }
.heritage-final .btn-primary:hover { background: var(--bg); border-color: var(--bg); color: var(--primary) !important; }
.heritage-final .btn-outline { border-color: var(--accent); color: var(--accent) !important; }
.heritage-final .btn-outline:hover { background: var(--accent); color: var(--primary) !important; }

/* STICKY CTA */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary); padding: 10px 12px; z-index: 90; gap: 8px; justify-content: center; border-top: 2px solid var(--accent); }
.sticky-cta .btn { flex: 1; max-width: 200px; font-size: 12px; padding: 8px 12px; }

/* HUB HERO */
.hub-hero { background: var(--bg); color: var(--text); padding: 60px 0 40px; border-bottom: 3px double var(--primary); }
.hub-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hub-hero-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); font-weight: 900; color: var(--primary); line-height: 1.1; margin-bottom: 12px; }
.hub-hero-lede { font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--text-light); max-width: 700px; }

/* HUB CONTENT */
.section-hub-content { background: var(--bg); }
.section-hub-content .container { max-width: 760px; }
.longform h2 { color: var(--primary); margin-top: 32px; text-align: left; font-size: 24px; }
.longform p { margin-bottom: 16px; line-height: 1.8; color: var(--text); }
.stats-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; font-family: var(--font-sans); }
.stats-table th { background: var(--primary); color: var(--accent); padding: 12px; text-align: left; }
.stats-table td { padding: 10px; border: 1px solid var(--border); color: var(--text); }
.stats-table tr:nth-child(even) { background: var(--surface); }

.section-cta-inline { background: var(--surface); padding: 50px 0; }
.cta-inline-card { background: var(--primary); color: var(--bg); padding: 36px; text-align: center; border: 2px solid var(--accent); }
.cta-inline-card h3 { color: var(--bg); font-family: var(--font-display); font-size: 22px; margin-bottom: 10px; }
.cta-inline-card p { color: var(--surface); font-family: var(--font-serif); font-style: italic; margin-bottom: 18px; }
.cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-inline-card .btn-primary { background: var(--accent); color: var(--primary) !important; }
.cta-inline-card .btn-outline { border-color: var(--accent); color: var(--accent) !important; }

footer { background: var(--primary); color: var(--surface); padding: 48px 0 20px; border-top: 3px double var(--accent); }
footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 28px; }
footer .footer-brand p { color: rgba(255,255,255,0.7); font-family: var(--font-serif); font-style: italic; font-size: 14px; line-height: 1.7; margin: 10px 0 16px; }
footer .logo { color: var(--accent); }
footer .cta-row { display: flex; gap: 8px; flex-wrap: wrap; }
footer .footer-heading { color: var(--accent); font-family: var(--font-display); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; border-bottom: 1px solid var(--accent); padding-bottom: 6px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 6px; }
footer ul li a { color: rgba(255,255,255,0.7); font-size: 13px; font-family: var(--font-sans); }
footer ul li a:hover { color: var(--accent); }
footer .legal-bar { grid-column: 1 / -1; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--accent); font-size: 12px; color: rgba(255,255,255,0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-sans); }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* === SINGLE @media (BUG #1 fix) === */
@media (max-width: 768px) {
  body { padding-top: 92px; }
  .topbar { height: 32px; font-size: 10px; }
  .topbar .container { padding: 0 8px; gap: 6px; }
  .topbar-meta { display: none; }
  .cta-bar { display: flex !important; top: 92px; }
  .cta-bar a { font-size: 11px; padding: 10px 8px; }
  header.site { top: 32px; height: 60px; }
  header.site .container { padding: 0 8px; gap: 6px; }
  .logo { font-size: 12px; gap: 6px; max-width: 50vw; }
  .logo .mark { padding: 3px 6px; font-size: 10px; }
  .logo .cs { display: none; }
  .logo-text { display: none; }
  .hamburger { display: flex; }
  .header-cta { display: none !important; }
  nav.main { display: none; }
  nav.main.open { display: flex; flex-direction: column; position: fixed; top: 92px; left: 0; right: 0; background: var(--bg); padding: 8px; gap: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); z-index: 100; border-bottom: 4px solid var(--primary); }
  nav.main.open a { width: 100%; padding: 14px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
  nav.main.open a:last-child { border-bottom: 0; }
  body.menu-open { overflow: hidden !important; position: fixed !important; width: 100%; height: 100%; top: 0; left: 0; }
  section { padding: 40px 0; }
  .container { padding: 0 16px; }
  h1, h2 { font-size: 24px; }
  .masthead { padding: 24px 0 16px; }
  .masthead-top { font-size: 9px; flex-direction: column; gap: 4px; }
  .front-page .fp-container { grid-template-columns: 1fr; gap: 32px; }
  .lead-story { border-right: 0; padding-right: 0; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
  .db-articles { grid-template-columns: 1fr; gap: 16px; }
  .featured-analysis .fa-grid { grid-template-columns: 1fr; gap: 24px; }
  .hub-directory .hd-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .methodology-breakdown .mb-grid { grid-template-columns: 1fr; gap: 12px; }
  .heritage-quote-stats .hqs-container { grid-template-columns: 1fr; gap: 24px; }
  .hqs-quote { padding-right: 0; border-right: 0; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
  .hqs-stats { grid-template-columns: 1fr 1fr; }
  .heritage-faq .hf-grid { grid-template-columns: 1fr; }
  .top-captains .tc-table { font-size: 12px; }
  .top-captains .tc-table th, .top-captains .tc-table td { padding: 8px; }
  footer .container { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .sticky-cta { display: flex !important; }
  .sticky-cta .btn { max-width: 50%; }
}

/* SECTION IMAGES + FIGURE INLINE - small 320px max, side by side grid */
section > picture, .figure-inline { display: block; max-width: 320px; width: auto; margin: 16px auto; text-align: center; clear: both; }
section > picture img, .figure-inline img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* Force figure-inline as separate blocks */
figure.figure-inline { display: block !important; float: none !important; display: flow-root !important; clear: both !important; margin: 24px auto !important; max-width: 320px !important; }
figure.figure-inline img { display: block !important; max-width: 100% !important; height: auto !important; margin: 0 auto !important; }
