/* The Gym Report: gymnastics news aggregator theme.
 *
 * Structurally the same page shape as mocoroot.com and seattlecourant.com
 * (same aggregator publisher writes into it, so the publisher-emitted class
 * names below must keep their names), but themed as a dark, bold sports
 * broadcast rather than a broadsheet: navy chrome, a red signature rule,
 * sans-serif headlines throughout.
 *
 * Everything brand-specific is a custom property in :root. Retheming the
 * site means editing that block and nothing else.
 *
 * No external requests for fonts or scripts by design. Headline photos are
 * the one exception: the publisher hotlinks each story's own og:image
 * straight from its source, so the page is no longer fully self-contained
 * offline once the aggregator is wired up, though everything else about it
 * still is.
 */

:root {
  /* palette */
  --navy: #0d1b2a;
  --navy-deep: #071019;
  --paper: #f4f5f7;
  --paper-solid: #ffffff;
  --ink: #14171c;
  --ink-soft: #3a4048;
  --ink-inverse: #f4f5f7;
  --muted: #5b6472;
  --accent: #d00027;
  --accent-dark: #9c001d;
  --link: #0d1b2a;
  --link-visited: #0d1b2a;
  --rule-ink: #0d1b2a;
  --rule-soft: #4a5a6e;
  --rule-faint: #c9ccd1;
  --img-placeholder: #e4e6ea;

  /* type */
  --sans-headline: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --sans-body: Arial, Helvetica, sans-serif;

  /* measure */
  --page-width: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  font-family: var(--sans-body);
  color: var(--ink);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: var(--page-width);
  margin: 0 auto;
  background: var(--paper-solid);
}

/* --- masthead --- */

.masthead {
  background: var(--navy);
  padding: 20px 14px 16px;
  text-align: left;
}

.wordmark {
  margin: 0;
  font-family: var(--sans-headline);
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--ink-inverse);
}

.wordmark-accent {
  color: var(--accent);
}

/* --- nav --- */

.navbar {
  background: var(--navy);
  padding: 0 14px 10px;
  text-align: left;
  font-family: var(--sans-headline);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navbar a {
  color: var(--ink-inverse);
}

.navbar a:visited {
  color: var(--ink-inverse);
}

/* --- rules --- */

.rule-thick {
  height: 4px;
  background: var(--accent);
}

.rule-dashed {
  border: none;
  border-top: 1px dashed var(--rule-faint);
  margin: 10px 0;
  height: 0;
}

.rule-faint {
  border: none;
  border-top: 1px solid var(--rule-faint);
  margin: 10px 0;
  height: 0;
}

/* --- content --- */

.content {
  padding: 18px 14px 28px;
}

/* --- top headline --- */

.top-headline {
  margin-bottom: 18px;
}

.headline-image {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  background: var(--img-placeholder);
  display: block;
  margin-bottom: 8px;
}

.headline-link {
  font-family: var(--sans-headline);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.headline-link:visited {
  color: var(--ink);
}

.headline-sub {
  font-size: 14px;
  color: var(--muted);
}

.headline-source {
  color: var(--muted);
  font-style: italic;
}

/* --- house ad (Wish Bracelets by Vera) ---
 *
 * Class names deliberately avoid anything ad-shaped (no .house-ad,
 * .ad-block, .sponsor, .banner, .promo): EasyList carries a generic
 * cosmetic rule, `##.house-ad`, that hides elements matching that pattern
 * on every site, which would make this invisible to any reader running a
 * blocker. The .kicker "Advertisement" label is the actual human-facing
 * disclosure; keep it, it's load-bearing. Do not rename these classes to
 * anything ad-shaped.
 */

.house-notice {
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--rule-faint);
  background: var(--paper);
}

.kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.house-notice-slot {
  display: flex;
  gap: 14px;
  align-items: center;
}

.house-notice-art {
  width: 110px;
  height: auto;
  flex-shrink: 0;
}

.house-notice-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.house-notice-copy {
  display: block;
}

.house-notice-head {
  display: block;
  font-family: var(--sans-headline);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}

.house-notice-sub {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
}

.house-notice-cta {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 13px;
}

.ad-line {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 8px 14px;
}

.ad-line a {
  color: var(--accent-dark);
  font-weight: 700;
}

/* --- recent headlines ---
 *
 * One flat rolling list (up to 10 items), not NCAA/Elite/More columns: the
 * lede above already carries the day's top story, this is everything else.
 */

.recent-headlines {
  margin-top: 8px;
}

.col-link-big {
  display: block;
  background: var(--navy);
  color: var(--ink-inverse);
  font-family: var(--sans-headline);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 8px;
}

.col-image {
  float: left;
  width: 90px;
  height: 60px;
  object-fit: cover;
  background: var(--img-placeholder);
  margin: 0 12px 8px 0;
}

.col-link {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.col-link:visited {
  color: var(--ink);
}

.recent-headlines .rule-dashed {
  clear: both;
}

/* --- story article (wish-bracelets.html, about.html, 404.html) --- */

.story {
  font-size: 16px;
  line-height: 1.5;
}

.story h2 {
  font-family: var(--sans-headline);
  font-size: 24px;
}

.story img.fleft {
  float: left;
  width: 220px;
  height: auto;
  margin: 0 16px 12px 0;
}

.story img.fright {
  float: right;
  width: 220px;
  height: auto;
  margin: 0 0 12px 16px;
}

.story-photo {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
  margin: 0 0 12px;
}

.buy-button {
  display: inline-block;
  background: var(--accent);
  color: var(--ink-inverse);
  font-family: var(--sans-headline);
  font-weight: 800;
  font-size: 16px;
  padding: 12px 22px;
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.buy-button:visited {
  color: var(--ink-inverse);
}

.buy-button:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.buy-note {
  font-size: 13px;
  color: var(--muted);
}

.mail-order {
  font-family: monospace;
  background: var(--paper);
  border: 1px solid var(--rule-faint);
  padding: 10px 14px;
  display: inline-block;
}

.photo-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  clear: both;
  margin: 16px 0;
}

.photo-strip img {
  width: 140px;
  height: 140px;
  object-fit: cover;
}

/* --- footer --- */

.site-footer {
  background: var(--navy);
  color: var(--ink-inverse);
  text-align: center;
  padding: 14px;
  font-size: 12px;
}

.site-footer a {
  color: var(--ink-inverse);
}

/* --- responsive --- */

@media (max-width: 700px) {
  .wordmark {
    font-size: 32px;
  }

  .house-notice-slot {
    flex-direction: column;
    align-items: flex-start;
  }

  .headline-link {
    font-size: 22px;
  }
}
