/* ==========================================================================
   Legal current affairs page — page head, latest-issue card, facts, sticky year
   pills, year <details> blocks, month groups, issue rows, reading links, FAQ.
   Requires tokens.css + base.css. Mobile-first (360px base).
   ========================================================================== */

/* Shared icon sizing for the inline SVGs on this page */
.ico { flex: 0 0 auto; width: 18px; height: 18px; }

/* Page head ------------------------------------------------------------ */
.page-head { padding-block: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); }
.page-head__inner { display: grid; gap: var(--s-2); }
.page-head__text { display: grid; gap: var(--s-2); min-width: 0; max-width: 72ch; }
.page-head__kicker {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-red-text);
}
.page-head__title { font-size: var(--fs-h1); }
.page-head__intro { color: var(--c-text-muted); }

/* Breadcrumb */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-1); margin-block: -8px; font-size: var(--fs-sm); color: var(--c-text-muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "\203A"; margin-right: var(--s-1); color: var(--c-text-muted); }
.crumbs a { color: var(--c-link-text); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap-min); }
.crumbs a:hover { text-decoration: underline; }

@media (min-width: 960px) {
  .page-head { padding-block: var(--s-4) var(--s-5); }
  .page-head__inner { gap: var(--s-3); }
}

/* Top band: latest issue card + what each issue covers ------------------- */
.top { padding-block: var(--s-4); }
.top__inner { display: grid; gap: var(--s-3); align-items: start; }

.latest { gap: var(--s-1); border-top: 4px solid var(--c-red); }
.latest__kicker {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-red-text);
}
.latest__date { font-family: var(--ff-display); font-size: var(--fs-h2); line-height: var(--lh-tight); color: var(--c-slate); }
.latest__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); color: var(--c-text-muted); font-size: var(--fs-sm); }
.latest__topic { color: var(--c-text); }
.latest__topics { display: grid; gap: 4px; padding-left: 1.1em; list-style: disc; color: var(--c-text-muted); }
.latest__foot { gap: var(--s-2); }
.latest__btn { flex: 1 1 100%; }
@media (min-width: 640px) {
  .latest__btn { flex: 0 0 auto; }
}

.about { display: grid; gap: var(--s-2); align-content: start; }
.about__title { font-size: var(--fs-h3); }
.about__text { color: var(--c-text-muted); }
.facts { display: grid; gap: var(--s-1); }
.facts__item {
  position: relative;
  padding-left: calc(var(--s-2) + 6px);
  color: var(--c-text-muted);
}
.facts__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-red);
}
.facts__item strong { color: var(--c-text); font-weight: 700; }
.about__links { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); }

@media (min-width: 960px) {
  .top { padding-block: var(--s-6); }
  .top__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6); align-items: start; }
  .about { padding-top: var(--s-1); }
}

/* Email updates: the shared subscribe card (css/subscribe.css + js/subscribe.js) replaced the
   page-local form that used to live here. */

/* All issues ------------------------------------------------------------ */
.issues { scroll-margin-top: var(--s-2); }
.list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-1) var(--s-2);
  margin-bottom: var(--s-2);
}
.list-head__title::after { margin-inline: 0; }     /* left-aligned red rule under the H2 */
.list-head__meta { color: var(--c-text-muted); font-size: var(--fs-sm); }

/* Year pills: sticky on every width, one scrolling row on phones */
.year-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  margin-bottom: var(--s-3);
  background: var(--c-page);
  border-bottom: 1px solid var(--c-line);
}
.pills {
  display: flex;
  gap: var(--s-1);
  overflow-x: auto;
  padding-block: var(--s-1);
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 var(--s-2);
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--c-slate);
  background: var(--c-white);
  border: 1px solid var(--c-slate);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.pill:hover, .pill.is-active { background: var(--c-slate); color: var(--c-white); }

/* Year block: native <details>, summary is the heading row */
.ybl { scroll-margin-top: calc(var(--tap-min) + var(--s-3)); border-top: 3px solid var(--c-red); }
.ybl + .ybl { margin-top: var(--s-3); }
.ybl__sum {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 56px;
  padding-block: var(--s-1);
  list-style: none;
  cursor: pointer;
}
.ybl__sum::-webkit-details-marker { display: none; }
.ybl__sum::marker { content: ""; }
.ybl__title { flex: 0 0 auto; font-size: var(--fs-h2); }
.ybl__meta { flex: 1 1 auto; color: var(--c-text-muted); font-size: var(--fs-sm); }
.ybl__sum .ico { width: 22px; height: 22px; color: var(--c-slate); transition: transform var(--ease); }
.ybl[open] > .ybl__sum .ico { transform: rotate(180deg); }
.ybl__sum:hover .ybl__title { color: var(--c-charcoal); }
.ybl__body { display: grid; gap: var(--s-3); padding-block: var(--s-1) var(--s-3); }

/* Month group */
.mgrp { display: grid; gap: var(--s-1); }
.mgrp__title {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-line);
}
.mgrp__list { display: grid; gap: var(--s-1); }

/* Issue row: the whole row is the download link */
.irow {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  color: var(--c-text);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease);
}
.irow:hover { border-color: var(--c-slate); color: var(--c-text); background: var(--c-surface); }
.irow__text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.irow__date { font-size: var(--fs-base); }
.irow__topic { font-size: var(--fs-sm); color: var(--c-text-muted); }
.irow__kind { padding: 0.2rem 0.5rem; }
.irow__pdf {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  color: var(--c-red-text);
  white-space: nowrap;
}
.irow:hover .irow__pdf { color: #B82323; }

@media (min-width: 640px) {
  .mgrp__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .list-head { margin-bottom: var(--s-3); }
  .mgrp { grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-3); align-items: start; }
  .mgrp__title { padding-top: 14px; border-bottom: 0; }
  .mgrp__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ybl__body { padding-block: var(--s-2) var(--s-4); }
}

/* Important reading: compact link rows, 1 → 2 → 3 columns ------------------ */
.read-grid { display: grid; gap: var(--s-1); }
.read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1);
  min-height: 52px;
  padding: 0.5rem 1rem;
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--c-navy);
  background: var(--c-white);
  border: 2px solid var(--c-charcoal);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow var(--ease), background var(--ease), color var(--ease);
}
.read .ico { color: var(--c-red-text); }
.read:hover { background: var(--c-charcoal); color: var(--c-white); box-shadow: var(--shadow-card); }
.read:hover .ico { color: var(--c-white); }
@media (min-width: 640px) {
  .read-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
}
@media (min-width: 960px) {
  .read-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* FAQ ------------------------------------------------------------------- */
.faq-wrap { max-width: calc(760px + 2 * var(--gutter)); }
.faq-list { display: grid; gap: var(--s-1); }
.faq { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 52px;
  padding: var(--s-1) var(--s-2);
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__title { font-size: 1.0625rem; text-wrap: pretty; }
.faq__q .ico { width: 20px; height: 20px; color: var(--c-slate); transition: transform var(--ease); }
.faq[open] > .faq__q .ico { transform: rotate(180deg); }
.faq__a { padding: 0 var(--s-2) var(--s-2); color: var(--c-text-muted); }

/* Courses strip --------------------------------------------------------- */
.btn-row--center { justify-content: center; }
