/* Acorn Abbey Global News Digest: entry, day and month pages.
   Loaded after site.css (the acornabbey.com stylesheet, copied unchanged)
   and uses its palette and type variables. */

.digest-head { padding: 34px 0 6px; }
.digest-title {
  font-size: 40px;
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0.005em;
}
.digest-head .rule { margin: 20px 0 8px; }

.crumbs {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 26px 0 0;
}
.crumbs a { color: var(--ink-soft); }

/* ---- the day's map ---------------------------------------- */
.daymap { margin: 22px 0 28px; }
.daymap svg, .daymap img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.daymap figcaption {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 10px;
}
.daymap .mark-link:focus-visible { outline: none; }
.daymap .mark-link:focus-visible circle,
.daymap .mark-link:hover circle,
.daymap .mark-link:hover rect { stroke: var(--umber); stroke-width: 2; }

/* ---- prose ------------------------------------------------ */
.intro { max-width: var(--read); }
.intro p, .howmade p, .credits p { margin: 18px 0; }

/* ---- channel panels --------------------------------------- */
.channels { padding: 18px 0 8px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--terra);
  border-radius: 2px;
  padding: 22px 28px 20px;
  margin: 0 0 26px;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 6px;
}
.panel h2 { font-size: 26px; margin: 0; }
.panel-head .btn { white-space: nowrap; padding: 9px 18px; }
.headlines:last-child { margin-bottom: 4px; }
.panel p { margin: 12px 0; }
.panel-date {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-deep);
}
.edition-title { font-size: 21px; font-style: italic; }
.headlines { margin: 10px 0 18px; padding-left: 1.4em; }
.headlines li { margin: 8px 0; line-height: 1.4; }
.headlines a { color: var(--ink); }
.headlines a:hover { color: var(--terra-deep); }
.panel .panel-brief { margin: 10px 0 6px; line-height: 1.55; }

/* ---- section headings ------------------------------------- */
.archive-cal h2, .howmade h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.archive-cal, .howmade, .credits {
  border-top: 1px solid var(--rule);
  padding: 34px 0 10px;
}
.howmade h3 { font-size: 22px; margin: 28px 0 0; }
.credits { font-size: 16px; color: var(--ink-soft); }

/* ---- calendars, after the WordPress calendar widget: one per channel ---- */
.cal {
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13px;
  width: 100%;
  max-width: 300px;
  table-layout: fixed;
  margin: 0 0 26px;
}
.cal caption {
  font-family: var(--serif);
  font-size: 17px;
  text-align: left;
  padding: 0 0 8px;
  color: var(--umber);
  line-height: 1.3;
}
.cal caption .cal-chan { display: block; font-weight: 600; }
.cal caption a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.cal caption a:hover { color: var(--terra-deep); }
.cal th {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 5px 0;
  border-bottom: 1px solid var(--rule);
}
.cal th abbr { text-decoration: none; }
.cal td {
  text-align: center;
  padding: 5px 0;
  color: var(--ink-soft);
}
.cal td a { color: var(--terra-deep); font-weight: 700; text-decoration: underline; text-decoration-color: var(--terra); }
.cal td a:hover { color: var(--umber); }
.cal td.today { outline: 1px solid var(--terra); outline-offset: -2px; }
.cal td .withdrawn { text-decoration: line-through; }
.cal tfoot td { border-top: 1px solid var(--rule); padding-top: 7px; }
.cal tfoot .prev { text-align: left; }
.cal tfoot .next { text-align: right; }
.cal tfoot a { font-weight: 400; text-decoration: none; }
.cal-unofficial caption .cal-chan { color: var(--olive); }

.month-cals { display: flex; flex-wrap: wrap; gap: 0 48px; border-top: 0; padding-top: 10px; }
.month-cals .cal { width: 300px; }

/* ---- entry page: main column and sidebar ------------------ */
/* Source order is intro, map and panels, calendars (so the intro is read
   first); the grid puts the intro and calendars in a right-hand sidebar. */
.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  grid-template-rows: auto 1fr;
  column-gap: 40px;
  align-items: start;
}
.entry-intro { grid-column: 2; grid-row: 1; padding-top: 18px; }
.entry-main { grid-column: 1; grid-row: 1 / span 2; }
.entry-cals { grid-column: 2; grid-row: 2; }
.entry-main .daymap { margin-top: 18px; }
.entry-main .channels { padding-top: 0; }
.entry-intro { font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.entry-intro p { margin: 0 0 14px; }
.entry-cals { padding-top: 22px; margin-top: 8px; }
.entry-cals h2 { margin-bottom: 16px; }
.panel-unofficial { border-left-color: var(--olive); }
.archive-begins {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: -12px 0 0;
}

/* Narrow screens: one column in source order (intro, map, panels, calendars). */
@media (max-width: 760px) {
  .entry-layout { display: block; }
}

.month-list { list-style: none; padding: 0; margin: 28px 0; }
.month-list li { margin: 8px 0; }
.month-list .ml-chan { color: var(--ink-soft); }

.daynav-site {
  display: flex;
  font-family: var(--sans);
  font-size: 13px;
  margin: 30px 0 0;
}
.daynav-site .later { margin-left: auto; }

@media (max-width: 720px) {
  .digest-title { font-size: 32px; }
  .panel { padding: 18px 18px 16px; }
}

/* ---- entry page: the line under the tagline ---------------- */
.schedule-note {
  font-style: italic;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 16px;
  padding: 10px 0;
}
