/* ============================================================
   Kresimirian Herald — the whole paper.
   Broadsheet of record: navy, cream stock, Playfair headlines,
   Lora body, a market summary and a desk front. One stylesheet
   drives the home, report and front-page documents.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;700&display=swap');

/* ---- Palette (light + dark) ---- */

body.pub--herald {
  --hr-navy: #1f4e79;
  --hr-ink: #14110d;
  --hr-soft: #3a352d;
  --hr-muted: #6b6357;
  --hr-line: #d9d2c4;
  --hr-paper: #f7f3ea;
  --hr-surface: #fffdf7;
  --hr-foot: #14110d;
  --hr-up: #1c6b3a;
  --hr-down: #a31621;
  --content-bg: var(--hr-paper);
  --border-color: var(--hr-line);
}
[data-theme="dark"] body.pub--herald {
  --hr-navy: #7fb0e0;
  --hr-ink: #e8e2d4;
  --hr-soft: #c9c3b6;
  --hr-muted: #9a927f;
  --hr-line: #35506b;
  --hr-paper: #101418;
  --hr-surface: #161c22;
  --hr-foot: #0b0f13;
  --hr-up: #4fd08a;
  --hr-down: #ff6b6b;
  --content-bg: var(--hr-paper);
  --border-color: var(--hr-line);
}

#content.web-page.pub--herald {
  background: var(--hr-paper);
  color: var(--hr-ink);
  font-family: 'Lora', Georgia, serif;
}
#content.web-page.pub--herald a { color: var(--hr-ink); }
#content.web-page.pub--herald a:hover { color: var(--hr-navy); }

/* ============================================================
   HOME
   ============================================================ */

.kh-wrap { max-width: 76rem; margin: 0 auto; padding-left: 1.75rem; padding-right: 1.75rem; }

.kh-masthead { text-align: center; border-top: 4px solid var(--hr-navy); border-bottom: 1px solid var(--hr-navy); padding: 1rem 0 0.7rem; margin-top: 0.8rem; }
.kh-name { font-family: 'Playfair Display', Georgia, serif; font-size: 3rem; font-weight: 900; margin: 0; letter-spacing: 0.01em; }
.kh-tagline { font-family: 'Inter', sans-serif; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hr-muted); margin: 0.35rem 0 0; }
.kh-dateline { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--hr-line); margin-top: 0.8rem; padding-top: 0.4rem; font-family: 'Inter', sans-serif; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hr-muted); }

.kh-nav { display: flex; justify-content: center; gap: 1.8rem; border-bottom: 2px solid var(--hr-ink); font-family: 'Inter', sans-serif; }
.kh-nav .web-tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 0.55rem 0; font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hr-ink); cursor: pointer; }
.kh-nav .web-tab:hover { border-bottom-color: var(--hr-navy); }
.kh-nav .web-tab.is-active { border-bottom-color: var(--hr-navy); color: var(--hr-navy); }

.kh-section { margin: 1.8rem 0; }
.kh-rule { border-top: 3px solid var(--hr-navy); border-bottom: 1px solid var(--hr-line); padding: 0.4rem 0; margin-bottom: 1rem; }
.kh-rule h2 { font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0; color: var(--hr-navy); }
.kh-rule a { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }

.kh-front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.kh-lead img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--hr-line); }
.kh-kicker { font-family: 'Inter', sans-serif; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hr-navy); margin: 0.6rem 0 0.3rem; }
.kh-lead h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 2.5rem; line-height: 1.06; margin: 0 0 0.6rem; }
.kh-lead h1 a { text-decoration: none; }
.kh-standfirst { font-size: 1.05rem; line-height: 1.55; color: var(--hr-soft); margin: 0; }
.kh-byline { font-family: 'Inter', sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hr-muted); margin-top: 0.6rem; }

.kh-side { display: grid; gap: 1rem; border-left: 1px solid var(--hr-line); padding-left: 1.4rem; }
.kh-side article { border-bottom: 1px solid var(--hr-line); padding-bottom: 0.8rem; }
.kh-side article:last-child { border-bottom: 0; }
.kh-side h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; line-height: 1.2; margin: 0.25rem 0 0.3rem; }
.kh-side h3 a { text-decoration: none; }
.kh-side p { font-size: 0.92rem; line-height: 1.55; margin: 0; color: var(--hr-soft); }

.kh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.3rem; }
.kh-grid article { border-top: 2px solid var(--hr-navy); padding-top: 0.6rem; }
.kh-grid h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; line-height: 1.22; margin: 0.2rem 0 0.3rem; }
.kh-grid h3 a { text-decoration: none; }
.kh-grid p { font-size: 0.9rem; line-height: 1.55; margin: 0; color: var(--hr-soft); }

.kh-list { list-style: none; }
.kh-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; border-bottom: 1px solid var(--hr-line); padding: 0.55rem 0; }
.kh-list h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.02rem; margin: 0; }
.kh-list h3 a { text-decoration: none; }
.kh-list time { font-family: 'Inter', sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hr-muted); padding-top: 0.2rem; }

.kh-market { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; font-size: 0.82rem; }
.kh-market th, .kh-market td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--hr-line); }
.kh-market th { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hr-muted); border-bottom: 2px solid var(--hr-ink); }
.kh-market td.num, .kh-market th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kh-up { color: var(--hr-up); }
.kh-down { color: var(--hr-down); }

.kh-footer { background: var(--hr-foot); color: rgba(255, 253, 247, 0.78); margin-top: 2.4rem; }
.kh-footer .kh-wrap { padding-top: 1.8rem; padding-bottom: 2rem; }
.kh-footer a { color: rgba(255, 253, 247, 0.84); text-decoration: none; }
.kh-footer a:hover { color: #fff; text-decoration: underline; }
.kh-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.4rem; }
.kh-footer h4 { font-family: 'Inter', sans-serif; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hr-navy); margin: 0 0 0.5rem; }
.kh-footer ul { list-style: none; }
.kh-footer li { font-family: 'Inter', sans-serif; font-size: 0.8rem; margin-bottom: 0.3rem; }
.kh-colophon { margin-top: 1.4rem; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-family: 'Inter', sans-serif; font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); }

/* ============================================================
   REPORT
   ============================================================ */

.hr { max-width: 46rem; margin: 0 auto; padding: 1.4rem 1.1rem 3rem; }
.hr-masthead { text-align: center; border-top: 3px solid var(--hr-navy); border-bottom: 1px solid var(--hr-navy); padding: 0.8rem 0; margin-bottom: 1.6rem; }
.hr-logo { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; font-weight: 900; text-decoration: none; color: var(--hr-ink); }
.hr-strap { font-family: 'Inter', sans-serif; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hr-muted); margin: 0.3rem 0 0; }
.hr-kicker { font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hr-navy); margin: 0 0 0.4rem; }
.hr-headline { font-family: 'Playfair Display', Georgia, serif; font-size: 2.5rem; line-height: 1.08; margin: 0 0 0.6rem; }
.hr-standfirst { font-size: 1.12rem; font-style: italic; line-height: 1.5; color: var(--hr-soft); margin: 0 0 0.9rem; }
.hr-byline { font-family: 'Inter', sans-serif; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hr-muted); border-top: 1px solid var(--hr-line); border-bottom: 1px solid var(--hr-line); padding: 0.45rem 0; margin: 0 0 1.2rem; }
.hr-figure { margin: 0 0 1.3rem; }
.hr-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--hr-line); }
.hr-figure figcaption { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: var(--hr-muted); padding-top: 0.35rem; }
.hr-body { font-size: 1.08rem; line-height: 1.75; }
.hr-body p { margin: 0 0 1rem; }
.hr-body a { color: var(--hr-navy); }
.hr-body > p:first-of-type::first-letter { float: left; font-family: 'Playfair Display', Georgia, serif; font-size: 3.5rem; line-height: 0.78; padding: 0.16rem 0.5rem 0 0; color: var(--hr-navy); }
.hr-related { margin-top: 1.6rem; padding-top: 0.8rem; border-top: 1px solid var(--hr-line); }
.hr-related h2 { font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hr-muted); margin: 0 0 0.5rem; }
.hr-related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hr-related a { display: inline-block; border: 1px solid var(--hr-line); padding: 0.2rem 0.6rem; font-family: 'Inter', sans-serif; font-size: 0.74rem; text-decoration: none; }
.hr-related a:hover { border-color: var(--hr-navy); color: var(--hr-navy); }
.hr-footer { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 0.8rem; border-top: 1px solid var(--hr-line); font-family: 'Inter', sans-serif; font-size: 0.76rem; }

@media (max-width: 760px) {
  .kh-name { font-size: 2.1rem; }
  .kh-front { grid-template-columns: 1fr; }
  .kh-side { border-left: 0; padding-left: 0; }
  .kh-lead h1 { font-size: 1.9rem; }
  .kh-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (max-width: 640px) {
  .hr-headline { font-size: 1.85rem; }
}
