/* The Millbrook Ledger — site stylesheet
   BLOX/TownNews-flavored small-city daily. Newsprint paper, hairline rules,
   dense broadsheet grid, serif display nameplate over condensed sans chrome. */

:root {
  --ml-ink: #1a1a18;
  --ml-ink-soft: #3a3936;
  --ml-paper: #f7f5ef;
  --ml-paper-card: #fffdf8;
  --ml-rule: #c9c4b6;
  --ml-rule-dark: #8d887a;
  --ml-red: #8a1f2b;
  --ml-red-dark: #671319;
  --ml-navy: #1f2c42;
  --ml-gold: #a9811f;
  --ml-muted: #6b6760;
  --ml-focus: #ffcf4d;
  --ml-max: 1180px;
  --ml-article: 700px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ml-paper);
  color: var(--ml-ink);
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: 17.5px;
  line-height: 1.62;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: var(--ml-ink);
  line-height: 1.18;
}

.ml-kicker, .ml-eyebrow, .ml-nav a, .ml-topbar, .ml-tag-label,
.ml-byline__label, .ml-widget h3, .ml-btn, .ml-section-head,
.ml-footer__cols h3, .ml-correction__label, .ml-paywall__label {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

a { color: var(--ml-red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.ml-wrap {
  max-width: var(--ml-max);
  margin: 0 auto;
  padding: 0 20px;
}

hr.ml-rule {
  border: none;
  border-top: 1px solid var(--ml-rule);
  margin: 22px 0;
}

/* ---------- Utility bar ---------- */
.ml-topbar {
  background: var(--ml-ink);
  color: #c8c4b8;
  font-size: 11.5px;
}
.ml-topbar .ml-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  flex-wrap: wrap;
  gap: 6px;
}
.ml-topbar a { color: #efece2; }
.ml-topbar__date { letter-spacing: 0.04em; }
.ml-topbar__right { display: flex; gap: 16px; align-items: center; }
.ml-topbar__weather { color: #a7a295; }

/* ---------- Masthead ---------- */
.ml-masthead {
  background: var(--ml-paper-card);
  border-bottom: 1px solid var(--ml-ink);
  padding: 20px 0 14px;
  text-align: center;
}
.ml-masthead__eyebrow {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10.5px;
  color: var(--ml-muted);
  margin: 0 0 6px;
}
.ml-masthead__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 56px;
  letter-spacing: 0.01em;
}
.ml-masthead__title a { color: var(--ml-ink); }
.ml-masthead__tag {
  margin: 6px 0 0;
  font-size: 13.5px;
  font-style: italic;
  color: var(--ml-muted);
}

/* ---------- Primary nav ---------- */
.ml-nav {
  background: var(--ml-ink);
  border-bottom: 4px solid var(--ml-red);
}
.ml-nav .ml-wrap { display: flex; justify-content: center; }
.ml-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ml-nav li { border-left: 1px solid #3a3a36; }
.ml-nav li:first-child { border-left: none; }
.ml-nav a {
  display: block;
  padding: 11px 15px;
  color: #ece9dd;
  font-size: 12.5px;
}
.ml-nav li.is-active a { color: var(--ml-focus); }
.ml-nav a:hover { color: #fff; text-decoration: none; background: #2a2a26; }

/* ---------- Ad containers ---------- */
.tnt-ads {
  display: block;
  background: var(--ml-paper-card);
  border: 1px dashed var(--ml-rule-dark);
  color: var(--ml-muted);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  text-align: center;
}
.tnt-ads::before { content: "Advertisement"; }
#ad-top-banner { min-height: 90px; margin: 14px 0; display: flex; align-items: center; justify-content: center; }
#ad-in-story-1 { min-height: 100px; margin: 24px 0; display: flex; align-items: center; justify-content: center; }
#ad-right-rail-1, #ad-right-rail-2 { min-height: 250px; margin: 0 0 22px; display: flex; align-items: center; justify-content: center; }

/* ---------- Breadcrumbs ---------- */
.ml-breadcrumbs {
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ml-muted);
  margin: 16px 0 0;
}
.ml-breadcrumbs .sep { margin: 0 6px; color: var(--ml-rule-dark); }
.ml-breadcrumbs span:last-child { color: var(--ml-ink-soft); }

/* ---------- Layout grid ---------- */
.ml-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  margin: 18px 0 40px;
  align-items: start;
}
.ml-layout__main { min-width: 0; }

/* ---------- Home: front page grid ---------- */
.ml-front-lead {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ml-ink);
  margin-bottom: 24px;
}
.ml-front-lead__media img { width: 100%; height: auto; }
.ml-front-lead__media figcaption {
  font-size: 11.5px;
  color: var(--ml-muted);
  margin-top: 6px;
  font-family: "PT Serif", serif;
  font-style: italic;
}
.ml-front-lead__text h2 { font-size: 34px; margin: 0 0 10px; }
.ml-front-lead__text p.ml-dek { font-size: 17px; color: var(--ml-ink-soft); margin: 0 0 10px; }

.ml-kicker {
  display: inline-block;
  color: var(--ml-red-dark);
  font-size: 11px;
  margin-bottom: 6px;
}
.ml-kicker--navy { color: var(--ml-navy); }

.ml-front-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ml-ink);
}
.ml-front-grid__item {
  padding: 18px 18px 20px 0;
  border-right: 1px solid var(--ml-rule);
  border-bottom: 1px solid var(--ml-rule);
}
.ml-front-grid__item:nth-child(3n) { border-right: none; }
.ml-front-grid__item img { width: 100%; height: auto; margin-bottom: 10px; }
.ml-front-grid__item h3 { font-size: 19px; margin: 0 0 6px; }
.ml-front-grid__item p { font-size: 14.5px; color: var(--ml-ink-soft); margin: 0 0 6px; }
.ml-front-grid__meta { font-size: 11px; color: var(--ml-muted); font-family: "Oswald", sans-serif; letter-spacing: 0.03em; }

.ml-section-head {
  font-size: 13px;
  color: var(--ml-ink);
  border-bottom: 2px solid var(--ml-ink);
  padding-bottom: 6px;
  margin: 30px 0 14px;
}

.ml-list-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ml-rule);
}
.ml-list-row img { width: 110px; height: 78px; object-fit: cover; }
.ml-list-row h3 { font-size: 17px; margin: 0 0 4px; }
.ml-list-row p { font-size: 14px; color: var(--ml-ink-soft); margin: 0; }

/* ---------- Dense section divider ---------- */
.ml-divider {
  border-top: 1px solid var(--ml-ink);
  border-bottom: 1px solid var(--ml-rule);
  height: 0;
  margin: 4px 0 18px;
}

/* ---------- Article ---------- */
.asset-article { margin: 0; }
.ml-article-head { border-bottom: 1px solid var(--ml-rule); padding-bottom: 18px; margin-bottom: 18px; }
.ml-eyebrow { font-size: 11.5px; color: var(--ml-red-dark); margin: 0 0 10px; }
.ml-headline { font-size: 36px; margin: 0 0 10px; }
.ml-dek-text { font-size: 18px; color: var(--ml-ink-soft); font-style: italic; margin: 0 0 14px; line-height: 1.5; }
.ml-byline {
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ml-muted);
  text-transform: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}
.ml-byline strong { color: var(--ml-ink); font-style: normal; }
.ml-byline__label { font-size: 10px; color: var(--ml-rule-dark); }

.ml-figure { margin: 0 0 18px; }
.ml-figure img { width: 100%; height: auto; }
.ml-figure figcaption, .ml-inline-figure figcaption {
  font-size: 12.5px;
  color: var(--ml-muted);
  font-style: italic;
  margin-top: 7px;
  border-left: 3px solid var(--ml-rule);
  padding-left: 8px;
}
.ml-inline-figure { margin: 22px 0; }
.ml-inline-figure img { width: 100%; height: auto; }

.correction-note {
  background: #f1ece0;
  border-top: 2px solid var(--ml-gold);
  border-bottom: 2px solid var(--ml-gold);
  padding: 10px 14px;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ml-ink-soft);
}
.ml-correction__label { font-size: 10.5px; color: var(--ml-gold); display: block; margin-bottom: 3px; }

.asset-content { font-size: 17.5px; }
.asset-content p { margin: 0 0 16px; }
.asset-content h2 {
  font-size: 24px;
  margin: 28px 0 12px;
  padding-top: 6px;
  border-top: 1px solid var(--ml-rule);
}
.asset-content ul, .asset-content ol { margin: 0 0 18px; padding-left: 22px; }
.asset-content li { margin-bottom: 8px; }
.asset-content blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--ml-red);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ml-ink-soft);
}
.asset-content .dateline { font-family: "Oswald", sans-serif; letter-spacing: 0.02em; }

.ml-spec-table-wrap { overflow-x: auto; margin: 0 0 20px; }
.ml-spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ml-spec-table caption { text-align: left; font-size: 12px; color: var(--ml-muted); margin-bottom: 6px; font-style: italic; }
.ml-spec-table th, .ml-spec-table td { border: 1px solid var(--ml-rule); padding: 8px 10px; text-align: left; }
.ml-spec-table thead th { background: #efe9d9; font-family: "Oswald", sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }

.paywall-notice {
  margin: 18px 0 22px;
  padding: 16px 18px;
  background: #fffdf3;
  border: 1px solid var(--ml-rule-dark);
  border-radius: 2px;
  text-align: center;
}
.ml-paywall__label { font-size: 10.5px; color: var(--ml-red-dark); display: block; margin-bottom: 6px; }
.paywall-notice p { margin: 0 0 10px; font-size: 15px; color: var(--ml-ink-soft); font-family: "PT Serif", serif; font-style: normal; }
.ml-btn {
  display: inline-block;
  background: var(--ml-red);
  color: #fff;
  padding: 9px 20px;
  font-size: 12px;
  border-radius: 2px;
}
.ml-btn:hover { background: var(--ml-red-dark); text-decoration: none; }

.ml-tags { margin: 18px 0; font-size: 12.5px; }
.ml-tags a {
  display: inline-block;
  border: 1px solid var(--ml-rule);
  padding: 4px 10px;
  margin: 0 6px 6px 0;
  color: var(--ml-ink-soft);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.03em;
}
.ml-tags a:hover { border-color: var(--ml-ink); text-decoration: none; }

.ml-related {
  border-top: 3px double var(--ml-ink);
  padding-top: 16px;
  margin-top: 10px;
}
.ml-related h2 { font-size: 15px; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.05em; border: none; margin: 0 0 14px; }
.ml-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ml-related__item img { width: 100%; height: 110px; object-fit: cover; margin-bottom: 8px; }
.ml-related__item h3 { font-size: 15px; margin: 0; }
.ml-related__item p.ml-kicker { margin-bottom: 4px; }

/* ---------- Sidebar / rail ---------- */
.ml-rail { display: flex; flex-direction: column; gap: 22px; }
.ml-widget {
  background: var(--ml-paper-card);
  border: 1px solid var(--ml-rule);
}
.ml-widget__pad { padding: 14px 16px; }
.ml-widget h3 {
  font-size: 12.5px;
  background: var(--ml-ink);
  color: #efece2;
  margin: 0;
  padding: 9px 16px;
}
.trending ol { list-style: none; margin: 0; padding: 14px 16px; counter-reset: trend; }
.trending li { counter-increment: trend; display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ml-rule); font-size: 14px; }
.trending li:last-child { border-bottom: none; }
.trending li::before {
  content: counter(trend);
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--ml-rule-dark);
  line-height: 1;
}
.trending a { color: var(--ml-ink); }

.weather-widget { padding: 14px 16px; text-align: center; }
.weather-widget__temp { font-family: "Playfair Display", serif; font-size: 40px; font-weight: 900; margin: 2px 0; }
.weather-widget__cond { font-size: 13px; color: var(--ml-ink-soft); }
.weather-widget__place { font-family: "Oswald", sans-serif; font-size: 10.5px; letter-spacing: 0.05em; color: var(--ml-muted); text-transform: uppercase; margin-top: 6px; }
.weather-widget__link { display: block; margin-top: 8px; font-size: 11.5px; font-family: "Oswald", sans-serif; letter-spacing: 0.03em; text-transform: uppercase; }

.classifieds-widget { padding: 14px 16px; font-size: 13.5px; }
.classifieds-widget ul { list-style: none; margin: 0 0 10px; padding: 0; }
.classifieds-widget li { padding: 7px 0; border-bottom: 1px dotted var(--ml-rule); }
.classifieds-widget li:last-child { border-bottom: none; }
.classifieds-widget .ml-cat { color: var(--ml-red-dark); font-family: "Oswald", sans-serif; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; margin-right: 6px; }

.obits-widget { padding: 14px 16px; font-size: 13.5px; }
.obits-widget ul { list-style: none; margin: 0 0 10px; padding: 0; }
.obits-widget li { padding: 6px 0; border-bottom: 1px dotted var(--ml-rule); }
.obits-widget li:last-child { border-bottom: none; }
.obituaries-link { font-family: "Oswald", sans-serif; font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; }

.ml-widget__link-all { display: block; text-align: center; font-size: 11.5px; font-family: "Oswald", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 2px; }

/* ---------- Classifieds teaser section (front page) ---------- */
.classifieds {
  margin: 32px 0;
  border: 1px solid var(--ml-ink);
  padding: 18px 20px;
  background: var(--ml-paper-card);
}
.classifieds h2 { font-size: 15px; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.05em; border: none; margin: 0 0 14px; }
.classifieds__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: 14px; }
.classifieds__col h4 { margin: 0 0 8px; font-size: 12px; color: var(--ml-red-dark); font-family: "Oswald", sans-serif; letter-spacing: 0.03em; text-transform: uppercase; }
.classifieds__col ul { list-style: none; margin: 0; padding: 0; color: var(--ml-ink-soft); }
.classifieds__col li { padding: 4px 0; border-bottom: 1px dotted var(--ml-rule); }

/* ---------- About page ---------- */
.ml-about h2 { font-size: 23px; margin: 26px 0 10px; }
.ml-masthead-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; font-size: 14.5px; }
.ml-masthead-list li { border-bottom: 1px solid var(--ml-rule); padding: 8px 0; }
.ml-masthead-list span { display: block; font-family: "Oswald", sans-serif; font-size: 10.5px; color: var(--ml-muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.ml-footer {
  background: var(--ml-ink);
  color: #b8b4a8;
  margin-top: 30px;
  padding: 32px 0 20px;
}
.ml-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ml-footer__cols h3 { color: #efece2; font-size: 12px; margin: 0 0 10px; }
.ml-footer__cols p { font-size: 13px; line-height: 1.6; margin: 0; color: #a7a295; }
.ml-footer__cols ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.ml-footer__cols li { margin-bottom: 7px; }
.ml-footer__cols a { color: #cfcabb; }
.ml-footer__bottom {
  border-top: 1px solid #3a3a36;
  margin-top: 24px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: #847f71;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .ml-layout { grid-template-columns: 1fr; }
  .ml-front-lead { grid-template-columns: 1fr; }
  .ml-front-grid { grid-template-columns: repeat(2, 1fr); }
  .ml-front-grid__item:nth-child(3n) { border-right: 1px solid var(--ml-rule); }
  .ml-front-grid__item:nth-child(2n) { border-right: none; }
  .ml-related__grid { grid-template-columns: 1fr; }
  .classifieds__grid { grid-template-columns: 1fr; }
  .ml-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .ml-masthead__title { font-size: 40px; }
}
@media (max-width: 560px) {
  .ml-list-row { grid-template-columns: 90px 1fr; }
  .ml-list-row img { width: 90px; height: 64px; }
  .ml-front-grid { grid-template-columns: 1fr; }
  .ml-front-grid__item { border-right: none; }
  .ml-footer__cols { grid-template-columns: 1fr; }
}
