/* Brand colours sampled from the logo */
:root {
  --cp-red: #d20100;        /* "PULSE" banner */
  --cp-red-bright: #fb0100; /* hand highlight */
  --cp-red-dark: #aa0000;   /* hand shading, hover */
  --cp-black: #010000;      /* outline and wordmark */
  --cp-white: #ffffff;
  --cp-tint: #fdf4f4;

  --bs-primary: var(--cp-red);
  --bs-primary-rgb: 210, 1, 0;
  --bs-link-color: var(--cp-red);
  --bs-link-color-rgb: 210, 1, 0;
  --bs-link-hover-color: var(--cp-red-dark);
  --bs-link-hover-color-rgb: 170, 0, 0;
  --bs-body-color: #1c1717;
}
.btn-primary {
  --bs-btn-bg: var(--cp-red); --bs-btn-border-color: var(--cp-red);
  --bs-btn-hover-bg: var(--cp-red-dark); --bs-btn-hover-border-color: var(--cp-red-dark);
  --bs-btn-active-bg: var(--cp-red-dark); --bs-btn-active-border-color: var(--cp-red-dark);
  --bs-btn-disabled-bg: var(--cp-red); --bs-btn-disabled-border-color: var(--cp-red);
}
.btn-outline-primary {
  --bs-btn-color: var(--cp-red); --bs-btn-border-color: var(--cp-red);
  --bs-btn-hover-bg: var(--cp-red); --bs-btn-hover-border-color: var(--cp-red);
  --bs-btn-active-bg: var(--cp-red-dark); --bs-btn-active-border-color: var(--cp-red-dark);
}
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--cp-red); box-shadow: 0 0 0 .2rem rgba(210, 1, 0, .2); }
.form-check-input:checked { background-color: var(--cp-red); border-color: var(--cp-red); }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: .5rem; top: .5rem; z-index: 2000; background: var(--cp-white); padding: .5rem 1rem; }

.site-header { border-bottom: 3px solid var(--cp-red); background: var(--cp-white); }
.logo-full { height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.brand-fallback { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; text-transform: uppercase; color: var(--cp-black); text-decoration: none; letter-spacing: -.01em; }
.brand-fallback img { height: 40px; width: 40px; }
.brand-fallback b { background: var(--cp-red); color: var(--cp-white); padding: 0 .4rem; font-style: italic; }

.section-nav { background: var(--cp-black); }
.section-nav ul { display: flex; overflow-x: auto; margin: 0; padding: 0; list-style: none; scrollbar-width: none; }
.section-nav a { display: block; white-space: nowrap; color: var(--cp-white); text-decoration: none; padding: .7rem .65rem; font-size: .875rem; border-bottom: 3px solid transparent; }
.section-nav a:hover, .section-nav a[aria-current="page"] { border-bottom-color: var(--cp-red-bright); }
.offcanvas a[aria-current="page"] { color: var(--cp-red); font-weight: 700; }

.hero { background: linear-gradient(135deg, var(--cp-black) 45%, var(--cp-red-dark)); color: var(--cp-white); }
.hero h1 { font-weight: 800; }
.pulse-line { display: block; width: 100%; max-width: 360px; height: 40px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }

.page-head { background: var(--cp-tint); }
.section-title { border-left: 5px solid var(--cp-red); padding-left: .6rem; font-weight: 700; }

.story { transition: box-shadow .15s; }
.story:hover { box-shadow: 0 .5rem 1rem rgba(1, 0, 0, .1); }
.thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--cp-red), var(--cp-black)); color: rgba(255, 255, 255, .55); display: flex; align-items: center; padding: 0 15%; }
.kicker { color: var(--cp-red); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.date-box { min-width: 4rem; background: var(--cp-red); color: var(--cp-white); border-radius: .375rem; }
.progress-bar { background-color: var(--cp-red); }

.site-footer { background: var(--cp-black); color: #d9d3d3; }
.site-footer a { color: var(--cp-white); text-decoration: none; display: inline-block; padding: .25rem 0; }
.site-footer a:hover { text-decoration: underline; }
/* The logo has a white background and black lettering, so it sits on a white tile */
.logo-tile { background: var(--cp-white); border-radius: .5rem; padding: .5rem .75rem; display: inline-block; }
