/* ===========================================================================
   template5.css — News&More
   Editorial: serif display, hairline rules instead of boxes, near-square
   corners, no shadows, crimson used only as an accent.
   Loaded after astro-ui.css; only re-declares tokens plus a few signatures.
   =========================================================================== */

.au-theme.au-t5 {
  --au-bg: #ffffff;
  --au-surface: #f7f6f4;
  --au-surface-2: #ece9e4;
  --au-border: #dfdbd5;
  --au-border-strong: #b5aea5;
  --au-text: #141414;
  --au-text-soft: #3d3a37;
  --au-muted: #6b6660;
  --au-accent: var(--theme-tag-color, #d6273e);
  --au-accent-strong: #c2182f;
  --au-accent-strong: color-mix(in srgb, var(--au-accent) 72%, #000);
  --au-accent-ink: #ffffff;
  --au-footer-bg: var(--theme-footer-color, #141414);

  --au-radius: 4px;
  --au-radius-sm: 3px;
  --au-radius-pill: 2px;
  --au-shadow: none;
  --au-shadow-lift: none;
  --au-gap: 32px;
  --au-section-gap: 68px;

  --au-font: "Source Sans Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --au-font-display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --au-display-weight: 700;
  --au-display-tracking: -0.01em;
  --au-kicker-tracking: 0.12em;
}

/* masthead: thick rule under the brand, dateline above the nav */
.au-theme.au-t5 .au-header {
  border-bottom: 2px solid var(--au-text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--au-bg);
}

.au-theme.au-t5 .au-dateline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 7px;
  border-bottom: 1px solid var(--au-border);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--au-kicker-tracking);
  text-transform: uppercase;
  color: var(--au-muted);
}

.au-theme.au-t5 .au-nav a {
  border-radius: 0;
  padding: 9px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}

.au-theme.au-t5 .au-nav a:hover {
  background: transparent;
  color: var(--au-accent-strong);
  border-bottom-color: var(--au-accent-strong);
}

/* cards are rules, not boxes */
.au-theme.au-t5 .au-card {
  border: 0;
  border-top: 2px solid var(--au-text);
  border-radius: 0;
  padding-top: 14px;
  background: transparent;
  overflow: visible;
}

.au-theme.au-t5 .au-card:hover {
  transform: none;
  border-top-color: var(--au-accent);
}

.au-theme.au-t5 .au-card:hover .au-card-title {
  color: var(--au-accent-strong);
}

.au-theme.au-t5 .au-card-media {
  aspect-ratio: 3 / 2;
  border-radius: var(--au-radius);
}

.au-theme.au-t5 .au-card-body {
  padding: 14px 0 0;
}

.au-theme.au-t5 .au-card-title {
  font-size: 1.1875rem;
  line-height: 1.25;
}

.au-theme.au-t5 .au-kicker {
  color: var(--au-accent-strong);
}

/* crimson on a dark photo does not read; the overlay keeps the white kicker */
.au-theme.au-t5 .au-feature-overlay .au-kicker {
  color: #ffffff;
  opacity: 0.9;
}

.au-theme.au-t5 .au-list-item {
  border-radius: 0;
  border-bottom: 1px solid var(--au-border);
  padding-inline: 0;
  margin-inline: 0;
}

.au-theme.au-t5 .au-list-item:hover {
  background: transparent;
}

.au-theme.au-t5 .au-list-item:hover h3 {
  color: var(--au-accent-strong);
}

.au-theme.au-t5 .au-list-item img {
  border-radius: var(--au-radius-sm);
}

/* the right rail is separated by a rule, newspaper style */
.au-theme.au-t5 .au-split {
  gap: 44px;
}

.au-theme.au-t5 .au-rail {
  padding-left: 44px;
  border-left: 1px solid var(--au-border);
}

.au-theme.au-t5 .au-section-title {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--au-text);
  width: 100%;
}

.au-theme.au-t5 .au-section-head {
  align-items: flex-end;
  gap: 20px;
}

.au-theme.au-t5 .au-article-title {
  line-height: 1.1;
}

.au-theme.au-t5 .au-prose {
  font-size: 1.09375rem;
}

.au-theme.au-t5 .au-prose > p:first-of-type::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: var(--au-font-display);
  font-size: 3.4rem;
  line-height: 0.82;
  font-weight: 700;
  color: var(--au-text);
}

.au-theme.au-t5 .au-panel {
  border: 2px solid var(--au-text);
  background: var(--au-bg);
}

@media (max-width: 991.98px) {
  .au-theme.au-t5 .au-rail {
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 2px solid var(--au-text);
  }
}
