/* True Herald - base layer: tokens, reset, utilities, masthead, card, prose, footer */

:root {
  --bg: #f4f4f4;
  --card: #ffffff;
  --ink: #222222;
  --ink-strong: #111111;
  --ink-soft: #555a63;
  --navy: #1b2a4a;
  --green: #1f5a1d;
  --green-hi: #2a7226;
  --green-deep: #123a11;
  --check: #3c9a6b;
  --tint: #eef5ee;
  --line: #dcdde0;
  --focus: #0b57d0;
  --radius: 8px;
  --pad: 16px;
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* small bespoke utility layer */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.flex { display: flex; }
.col { flex-direction: column; }
.between { justify-content: space-between; }
.items-c { align-items: center; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 16px; }
.tc { text-align: center; }
.mb-0 { margin-bottom: 0; }
.nb { white-space: nowrap; }

/* masthead (sticky bar) */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 6px 18px rgba(20, 30, 50, 0.07);
}

.masthead__in {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 58px;
}

@media (min-width: 768px) {
  .masthead__in {
    min-height: 66px;
    padding: 0 24px;
  }
}

.brand {
  min-height: 44px;
  color: #0f1a12;
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 30px;
  height: 30px;
}

.brand__txt {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-size: 1.4375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand__name b {
  color: var(--green);
  font-weight: 700;
}

.brand__tag {
  display: none;
  margin-top: 4px;
  white-space: nowrap;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5f646d;
}

@media (min-width: 400px) {
  .brand__tag {
    display: block;
  }
}

.brand:hover .brand__name b {
  color: var(--green-hi);
}

.tag-ad {
  flex: none;
  padding: 5px 10px;
  border: 1px solid #b9bdc5;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #42464f;
  background: #fafafa;
}

.progress {
  height: 3px;
}

.progress__bar {
  display: block;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* page wrapper + white article card */
.wrap {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  padding: 22px var(--pad) 44px;
}

@media (min-width: 768px) {
  .wrap {
    margin-top: 32px;
  }
  .card {
    padding: 34px 24px 60px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
}

/* prose */
.prose p {
  margin: 0 0 1.1em;
}

.prose h2 {
  margin: 0 0 0.75em;
  font-size: clamp(1.3125rem, 1.14rem + 0.75vw, 1.625rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--navy);
}

.prose h3 {
  margin: 1.7em 0 0.45em;
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
}

.prose strong {
  font-weight: 700;
  color: var(--ink-strong);
}

.prose a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--navy);
}

.rule {
  width: 160px;
  max-width: 50%;
  margin: clamp(2rem, 4vw, 2.75rem) auto;
  border: 0;
  border-top: 1px solid #d6d7da;
}

/* footer: publisher imprint, no panel, no border */
.site-foot {
  max-width: 750px;
  margin: 0 auto;
  padding: 44px var(--pad) 60px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .site-foot {
    padding-inline: 24px;
  }
}

.site-foot__entity p {
  margin: 0;
}

.site-foot__entity strong {
  color: #33373f;
}

.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 14px 0 10px;
}

.site-foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.site-foot__links a:hover {
  color: var(--navy);
  text-decoration-thickness: 2px;
}

.site-note {
  max-width: 62ch;
  margin: 6px 0 0;
}
