/* ITS Appeal Deadlines (v2.0, simplified). Scoped under .itsd so Divi styles don't leak in or out.
 * Tokens, buttons, the "coming up" cards and the map are carried over from v1.2 (plugin/assets/itsd.css).
 * Layout uses container queries: each block adapts to the width of the Divi column it sits in. */
.itsd {
  /* Brand colors (see company/brand-and-messaging.md) */
  --itsd-navy: #1c375c;
  --itsd-navy-2: #1f3159;
  --itsd-blue: #223e7d;
  --itsd-hover: #2d4f86;
  --itsd-ink: #404c56;
  --itsd-muted: #5a6573;          /* 4.5:1+ on every tinted panel */
  --itsd-orange: #ffa420;
  --itsd-orange-hover: #f29400;
  --itsd-orange-soft: #fff3e0;
  --itsd-brown: #8a4b00;          /* text on orange-soft */
  --itsd-line: #dde3ec;
  --itsd-line-strong: #8a95a3;    /* 3:1 borders for form controls */
  --itsd-soft: #f4f6fa;
  --itsd-tile: #e6ebf3;
  --itsd-off: #eceef1;
  --itsd-off-ink: #545e6a;
  --itsd-white: #fff;
  /* Type scale: 12 / 14 / 16 / 18 / 24 */
  --itsd-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --itsd-body: "PT Serif", Georgia, "Times New Roman", serif;
  --itsd-fs-xs: 12px;
  --itsd-fs-sm: 14px;
  --itsd-fs-md: 16px;
  --itsd-fs-lg: 18px;
  --itsd-fs-xl: 24px;
  /* Shape and depth */
  --itsd-radius: 10px;
  --itsd-radius-sm: 6px;
  --itsd-shadow-1: 0 1px 2px rgba(28,55,92,.06), 0 6px 16px rgba(28,55,92,.08);
  --itsd-shadow-2: 0 2px 4px rgba(28,55,92,.08), 0 16px 40px rgba(28,55,92,.18);
  --itsd-fast: .15s;
  --itsd-scroll-offset: 24px;
  color: var(--itsd-ink);
  font-family: var(--itsd-body);
  font-size: var(--itsd-fs-md);
  line-height: 1.6;
}
/* Divi's fixed header is 80px (plus 32px WordPress admin bar when logged in) */
body.et_fixed_nav .itsd { --itsd-scroll-offset: 100px; }
body.et_fixed_nav.admin-bar .itsd { --itsd-scroll-offset: 132px; }

/* ---------- base ---------- */
.itsd *, .itsd *::before, .itsd *::after { box-sizing: border-box; }
.itsd p, .itsd dl, .itsd dd { margin: 0; padding: 0; }
/* The theme gives lists their own spacing (ul padding 0 0 23px 1em, ol li margin-bottom 30px). The doubled
   class outweighs it whichever stylesheet loads last. */
.itsd.itsd ul, .itsd.itsd ol { margin: 0; padding: 0; list-style: none; }
.itsd.itsd li { margin: 0; }
.itsd h1, .itsd h2, .itsd h3, .itsd h4 {
  font-family: var(--itsd-head); color: var(--itsd-navy); margin: 0; padding: 0;
  line-height: 1.3; font-weight: 700; letter-spacing: 0; text-transform: none;
}
/* Line breaks: text fills each line and avoids one-word orphans; short titles and buttons split evenly.
   Dates and place names are kept on one line by the build script (no-break spaces). */
.itsd p, .itsd h3, .itsd li, .itsd-up-label, .itsd-row-deadline, .itsd-row-where { text-wrap: pretty; }
.itsd .itsd-cta-title, .itsd .itsd-btn { text-wrap: balance; }
.itsd-nowrap { white-space: nowrap; }
.itsd a { color: var(--itsd-blue); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.itsd a:hover { color: var(--itsd-navy); text-decoration-thickness: 2px; }
.itsd :focus-visible { outline: 3px solid var(--itsd-orange); outline-offset: 2px; border-radius: 4px; }
.itsd .itsd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.itsd [hidden] { display: none !important; }
.itsd time, .itsd-up-date, .itsd-up-count { font-variant-numeric: tabular-nums; }
.itsd-block { margin: 0; }

/* ---------- buttons ---------- */
.itsd .itsd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  font-family: var(--itsd-head); font-weight: 700; font-size: var(--itsd-fs-md); line-height: 1.2; text-align: center;
  padding: 12px 22px; border-radius: var(--itsd-radius-sm); border: 2px solid var(--itsd-navy);
  background: var(--itsd-white); color: var(--itsd-navy); text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background var(--itsd-fast), color var(--itsd-fast), border-color var(--itsd-fast), transform .1s;
}
.itsd .itsd-btn:hover { background: var(--itsd-navy); color: var(--itsd-white); text-decoration: none; }
.itsd .itsd-btn:active { transform: translateY(1px); }
.itsd .itsd-btn-primary { background: var(--itsd-orange); border-color: var(--itsd-orange); color: var(--itsd-navy); }
.itsd .itsd-btn-primary:hover { background: var(--itsd-orange-hover); border-color: var(--itsd-orange-hover); color: var(--itsd-navy); }
.itsd .itsd-btn-navy { background: var(--itsd-navy); color: var(--itsd-white); }
.itsd .itsd-btn-navy:hover { background: var(--itsd-hover); border-color: var(--itsd-hover); }
.itsd .itsd-btn-ghost:hover { background: var(--itsd-navy); color: var(--itsd-white); }

/* ---------- state picker (hero) ---------- */
.itsd .itsd-finder { container: itsd-finder / inline-size; }
.itsd .itsd-pick-card { display: grid; gap: 14px; background: var(--itsd-white); border-radius: 12px; box-shadow: var(--itsd-shadow-2); padding: 16px; }
.itsd-pick { display: grid; gap: 10px; }
.itsd .itsd-pick-label { font-family: var(--itsd-head); font-weight: 700; font-size: var(--itsd-fs-md); color: var(--itsd-navy); margin: 0; }
.itsd-pick-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.itsd-pick-row .itsd-btn { width: 100%; }
@container itsd-finder (min-width: 520px) {
  .itsd-pick-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .itsd-pick-row .itsd-btn { width: auto; }
}
/* 16px text so phones don't zoom in when a field is tapped */
.itsd select {
  width: 100%; height: 48px; margin: 0; padding: 12px 40px 12px 14px;
  font-family: var(--itsd-head); font-size: var(--itsd-fs-md); color: var(--itsd-navy);
  border: 1.5px solid var(--itsd-line-strong); border-radius: 8px; background-color: var(--itsd-white);
  background-image: linear-gradient(45deg, transparent 50%, var(--itsd-navy) 50%), linear-gradient(135deg, var(--itsd-navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat;
  box-shadow: none; -webkit-appearance: none; appearance: none; cursor: pointer;
  transition: border-color var(--itsd-fast), box-shadow var(--itsd-fast);
}
.itsd select:hover { border-color: var(--itsd-navy); }
.itsd select:focus { border-color: var(--itsd-navy); outline: none; box-shadow: 0 0 0 3px rgba(255,164,32,.5); }

/* ---------- "coming up" cards ---------- */
.itsd .itsd-upcoming { container: itsd-up / inline-size; }
.itsd .itsd-up-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@container itsd-up (min-width: 720px) { .itsd .itsd-up-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.itsd-up { container-type: inline-size; }
.itsd .itsd-up a {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; align-items: start;
  height: 100%; padding: 16px; border: 1px solid var(--itsd-line); border-radius: var(--itsd-radius);
  background: var(--itsd-white); color: var(--itsd-ink); text-decoration: none; touch-action: manipulation;
  transition: border-color var(--itsd-fast), box-shadow var(--itsd-fast);
}
.itsd .itsd-up a:hover { border-color: var(--itsd-navy); box-shadow: var(--itsd-shadow-1); color: var(--itsd-ink); }
.itsd-up-date {
  grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0;
  background: var(--itsd-soft); border-radius: 8px; font-family: var(--itsd-head); color: var(--itsd-navy); line-height: 1.1;
}
.itsd-up-m { font-size: var(--itsd-fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.itsd-up-d { font-size: var(--itsd-fs-xl); font-weight: 700; margin: 2px 0 1px; }
.itsd-up-y { font-size: var(--itsd-fs-xs); color: var(--itsd-muted); }
.itsd-up-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-self: center; }
.itsd-up-state { font-family: var(--itsd-head); font-weight: 700; font-size: var(--itsd-fs-md); line-height: 1.4; color: var(--itsd-navy); }
.itsd-up-label { font-size: var(--itsd-fs-md); line-height: 1.45; }
.itsd-up-count {
  font-family: var(--itsd-head); font-size: var(--itsd-fs-xs); font-weight: 700; line-height: 1.4; white-space: nowrap;
  color: var(--itsd-navy); background: var(--itsd-tile); padding: 4px 10px; border-radius: 999px;
}
.itsd-up-count:empty { display: none; }
.itsd .itsd-up .itsd-up-count { grid-column: 2; grid-row: 2; justify-self: start; align-self: end; margin-top: 12px; }
/* Wide card: the countdown sits top right and the text gets the middle column */
@container (min-width: 420px) {
  .itsd .itsd-up a { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-rows: auto; }
  .itsd-up-date { grid-row: auto; }
  .itsd .itsd-up .itsd-up-count { grid-column: 3; grid-row: 1; align-self: start; margin-top: 0; }
}
.itsd .is-soon .itsd-up-count { background: var(--itsd-orange-soft); color: var(--itsd-brown); }
.itsd .is-urgent .itsd-up-count { background: var(--itsd-orange); color: var(--itsd-navy); }
.itsd .itsd-up.is-urgent .itsd-up-date { background: var(--itsd-orange); }
.itsd .itsd-up.is-urgent .itsd-up-y { color: var(--itsd-navy); }
.itsd .itsd-up-more { margin-top: 20px; }

/* ---------- U.S. map (SVG, U.S. Census boundaries) ---------- */
.itsd .itsd-mapwrap { container: itsd-map / inline-size; }
.itsd-map { max-width: 1000px; margin: 0 auto; }
.itsd-usmap { display: block; width: 100%; height: auto; overflow: visible; }
.itsd-usmap .itsd-tile { cursor: pointer; outline: none; text-decoration: none; }
.itsd-usmap text { text-decoration: none; }
.itsd-usmap .itsd-tile path, .itsd-usmap .itsd-tile circle {
  fill: var(--itsd-navy); stroke: #fff; stroke-width: 1; stroke-linejoin: round; transition: fill var(--itsd-fast);
}
.itsd-usmap .itsd-tile text {
  fill: #fff; font-family: var(--itsd-head); font-weight: 700; font-size: 12px; letter-spacing: .02em;
  text-anchor: middle; dominant-baseline: central; pointer-events: none;
}
.itsd-usmap .itsd-tile:hover path, .itsd-usmap .itsd-tile:hover circle,
.itsd-usmap .itsd-tile:focus-visible path { fill: var(--itsd-hover); }
.itsd-usmap .itsd-tile:focus-visible path { stroke: var(--itsd-orange); stroke-width: 3; }
.itsd-usmap .itsd-tile.is-soon path, .itsd-usmap .itsd-tile.is-soon circle { fill: var(--itsd-orange); }
.itsd-usmap .itsd-tile.is-soon text { fill: var(--itsd-navy); }
.itsd-usmap .itsd-tile.is-soon:hover path, .itsd-usmap .itsd-tile.is-soon:focus-visible path { fill: var(--itsd-orange-hover); }
.itsd-usmap .itsd-tile.is-soon:focus-visible path { stroke: var(--itsd-navy); }
/* The state shown in the list below */
.itsd-usmap .itsd-tile.is-picked path, .itsd-usmap .itsd-tile.is-picked:hover path { stroke: var(--itsd-orange); stroke-width: 3; }
.itsd-usmap .itsd-tile.is-soon.is-picked path { stroke: var(--itsd-navy); }
/* Not served: hatched gray (not color alone). It stays gray, with a readable label, on hover and focus. */
.itsd-usmap .itsd-tile.itsd-tile-off path { fill: #cdd3db; fill: url(#itsd-hatch); }
.itsd-usmap .itsd-tile.itsd-tile-off:hover path,
.itsd-usmap .itsd-tile.itsd-tile-off:focus-visible path { fill: #b4bdc8; fill: url(#itsd-hatch-on); }
.itsd-usmap .itsd-tile.itsd-tile-off text { fill: #2b3440; }
/* Small states: label chip outside the map with a leader line */
.itsd-usmap .itsd-lead { stroke: var(--itsd-line-strong); stroke-width: 1; }
.itsd-usmap .itsd-tile-small .itsd-chipbg { fill: var(--itsd-navy); stroke: none; transition: fill var(--itsd-fast); }
.itsd-usmap .itsd-tile-small text { font-size: 12px; }
.itsd-usmap .itsd-tile-small:hover .itsd-chipbg, .itsd-usmap .itsd-tile-small:focus-visible .itsd-chipbg { fill: var(--itsd-hover); }
.itsd-usmap .itsd-tile-small.is-soon .itsd-chipbg { fill: var(--itsd-orange); }
.itsd-usmap .itsd-tile-small.is-soon:hover .itsd-chipbg { fill: var(--itsd-orange-hover); }
.itsd.itsd .itsd-legend {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 20px;
  font-family: var(--itsd-head); font-size: var(--itsd-fs-sm); color: var(--itsd-muted);
}
.itsd-legend li { display: inline-flex; align-items: center; gap: 8px; }
.itsd-key { display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: var(--itsd-navy); }
.itsd-key-soon { background: var(--itsd-orange); }
.itsd-key-off { background: repeating-linear-gradient(-45deg, #cdd3db 0 3px, #a9b3bf 3px 4.5px); box-shadow: inset 0 0 0 1px #a9b3bf; }
.itsd .itsd-map-hint { display: none; margin-top: 10px; text-align: center; font-family: var(--itsd-head); font-size: var(--itsd-fs-sm); color: var(--itsd-muted); }
@container itsd-map (max-width: 559px) {
  .itsd-usmap .itsd-tile text, .itsd-usmap .itsd-lead, .itsd-usmap .itsd-chipbg { display: none; }
  .itsd .itsd-map-hint { display: block; }
}

/* ---------- month-by-month list ---------- */
.itsd .itsd-calendar { container: itsd-cal / inline-size; scroll-margin-top: var(--itsd-scroll-offset); outline: none; }
.itsd-cal-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
  padding: 16px; margin-bottom: 32px; background: var(--itsd-soft); border-radius: 12px;
}
.itsd .itsd-cal-pick { display: grid; gap: 6px; flex: 1 1 280px; margin: 0; }
.itsd-cal-pick > span { font-family: var(--itsd-head); font-weight: 700; font-size: var(--itsd-fs-sm); color: var(--itsd-navy); }
.itsd .itsd-cal-clear { flex: 0 0 auto; }
@container itsd-cal (min-width: 720px) { .itsd .itsd-cal-pick { flex: 0 1 360px; } }

/* One state picked: its name and Mike's footnote above the rows, call to action beside them on wide screens */
.itsd-cal-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.itsd .itsd-cal-st h3 { font-size: var(--itsd-fs-xl); }
.itsd .itsd-cal-st p { margin-top: 10px; font-size: var(--itsd-fs-lg); line-height: 1.6; color: var(--itsd-navy-2); }
.itsd .itsd-cal-st .itsd-cal-off { color: var(--itsd-ink); }
/* Mike's footnotes are short, so "pretty" wrapping would cut their lines short; plain wrapping fills each line
   and the build keeps the last two words together */
.itsd .itsd-cal-st p, .itsd .itsd-row-panel p { text-wrap: wrap; }
.itsd-calendar.is-picked .itsd-cal-states { margin-bottom: 24px; }
.itsd-calendar.is-picked .itsd-st-cta { margin-top: 32px; }

/* Call to action card */
.itsd .itsd-st-cta {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; align-self: start;
  background: var(--itsd-navy); color: #e3e9f2; border-radius: 12px; box-shadow: var(--itsd-shadow-1);
}
.itsd .itsd-cta-title { font-family: var(--itsd-head); font-weight: 700; font-size: var(--itsd-fs-lg); line-height: 1.35; color: var(--itsd-white); }
.itsd .itsd-st-cta .itsd-btn { align-self: stretch; padding-left: 16px; padding-right: 16px; }
.itsd .itsd-st-cta .itsd-btn-primary { margin-top: 8px; }
.itsd .itsd-st-cta .itsd-btn-onnavy { background: transparent; border-color: rgba(255,255,255,.75); color: var(--itsd-white); }
.itsd .itsd-st-cta .itsd-btn-onnavy:hover { background: var(--itsd-white); border-color: var(--itsd-white); color: var(--itsd-navy); }
.itsd .itsd-st-cta :focus-visible { outline-color: var(--itsd-white); }
/* Narrow: tighter card so both button labels stay on one line on small phones */
@container itsd-cal (max-width: 559px) {
  .itsd .itsd-st-cta { padding: 20px 18px; }
  .itsd .itsd-st-cta .itsd-btn { font-size: 15px; padding-left: 10px; padding-right: 10px; }
}

/* NOTICE inside the menu card: a solid strip, so it reads the same over a photo or a plain background */
.itsd .itsd-notice {
  margin: 0; padding: 12px 16px; border-left: 4px solid var(--itsd-orange); border-radius: 0 8px 8px 0;
  background: var(--itsd-orange-soft); color: #6b3c00; font-size: var(--itsd-fs-md); line-height: 1.5; text-wrap: wrap;
}
.itsd .itsd-notice strong { font-family: var(--itsd-head); font-weight: 700; letter-spacing: .02em; color: #6b3c00; }

/* Month groups and rows. Narrow: the state on top, then its deadline. */
.itsd-cal-head { display: none; }
/* gap, not margins, so months hidden by the state filter leave no space */
.itsd-months { display: flex; flex-direction: column; gap: 32px; }
.itsd .itsd-month-h {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  font-size: var(--itsd-fs-lg); padding-bottom: 10px; border-bottom: 2px solid var(--itsd-navy);
}
.itsd-badge {
  font-family: var(--itsd-head); font-size: var(--itsd-fs-xs); font-weight: 700; line-height: 1.3; white-space: nowrap;
  border-radius: 999px; padding: 3px 10px;
}
.itsd-badge-now { background: var(--itsd-orange-soft); color: var(--itsd-brown); }
.itsd .itsd-rows { list-style: none; }
.itsd-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who tools" "when when";
  gap: 8px 16px; align-items: start; padding: 16px 4px; border-bottom: 1px solid var(--itsd-line);
}
.itsd-row-who { grid-area: who; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding-top: 4px; }
.itsd-row-state { font-family: var(--itsd-head); font-weight: 700; font-size: var(--itsd-fs-md); line-height: 1.4; color: var(--itsd-navy); }
.itsd-row-where { font-family: var(--itsd-head); font-size: var(--itsd-fs-sm); line-height: 1.45; color: var(--itsd-muted); }
.itsd-row-when { grid-area: when; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.itsd-when-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.itsd-when-dates { display: flex; flex-direction: column; gap: 2px; }
.itsd-when-line { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.itsd-row-when time { font-family: var(--itsd-head); font-weight: 700; font-size: var(--itsd-fs-md); line-height: 1.4; color: var(--itsd-navy); white-space: nowrap; }
.itsd-when-lbl { font-family: var(--itsd-head); font-size: var(--itsd-fs-sm); color: var(--itsd-muted); }
.itsd-row-deadline { font-size: var(--itsd-fs-md); line-height: 1.5; color: var(--itsd-ink); }
.itsd-row-deadline-main { font-family: var(--itsd-head); font-weight: 600; line-height: 1.4; color: var(--itsd-navy); }
.itsd-tag {
  margin-top: 2px; font-family: var(--itsd-head); font-size: var(--itsd-fs-xs); font-weight: 600; line-height: 1.3; white-space: nowrap;
  color: var(--itsd-blue); background: var(--itsd-tile); border-radius: 999px; padding: 4px 10px;
}
.itsd-tag-local { background: var(--itsd-off); color: var(--itsd-off-ink); }
.itsd-row-tools { grid-area: tools; display: flex; justify-content: flex-end; }
/* "30 counties" / "Applicable counties" is itself the toggle for the county names: a quiet link, not another button.
   The ::after pad gives it a 44px-tall tap area without adding space around it. */
.itsd .itsd-where-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0;
  font-family: var(--itsd-head); font-size: var(--itsd-fs-sm); font-weight: 600; line-height: 1.45; text-align: left;
  color: var(--itsd-blue); background: none; border: 0; cursor: pointer; touch-action: manipulation;
  text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.itsd .itsd-where-btn::after { content: ""; position: absolute; inset: -12px -8px; }
.itsd .itsd-where-btn:hover, .itsd .itsd-where-btn[aria-expanded="true"] { color: var(--itsd-navy); text-decoration-style: solid; }
.itsd .itsd-where-btn .itsd-chev { width: 7px; height: 7px; margin-top: -3px; }
.itsd .itsd-where-btn[aria-expanded="true"] .itsd-chev { transform: rotate(-135deg); margin-top: 3px; }

/* "Details" and "Which counties?" toggles */
.itsd .itsd-more-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 6px 12px;
  font-family: var(--itsd-head); font-weight: 700; font-size: var(--itsd-fs-sm); line-height: 1.2; white-space: nowrap; color: var(--itsd-navy);
  background: var(--itsd-white); border: 1.5px solid var(--itsd-line-strong); border-radius: var(--itsd-radius-sm);
  cursor: pointer; touch-action: manipulation; transition: background var(--itsd-fast), border-color var(--itsd-fast);
}
.itsd .itsd-more-btn:hover { background: var(--itsd-soft); border-color: var(--itsd-navy); }
.itsd .itsd-more-btn[aria-expanded="true"] { background: var(--itsd-tile); border-color: var(--itsd-navy); }
.itsd-chev {
  width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.itsd-more-btn[aria-expanded="true"] .itsd-chev { transform: rotate(-135deg); margin-top: 4px; }

.itsd-row-panel { grid-column: 1 / -1; margin-top: 8px; padding: 14px 18px; background: var(--itsd-soft); border-left: 4px solid var(--itsd-orange); border-radius: 0 var(--itsd-radius) var(--itsd-radius) 0; }
.itsd .itsd-co-list { list-style: none; columns: 2; column-gap: 24px; font-family: var(--itsd-head); font-size: var(--itsd-fs-sm); line-height: 1.8; color: var(--itsd-ink); }
.itsd .itsd-co-list li { break-inside: avoid; }
@container itsd-cal (min-width: 560px) { .itsd .itsd-co-list { columns: 3; } }
@container itsd-cal (min-width: 860px) { .itsd .itsd-co-list { columns: 5; } }

/* With one state picked, its name and footnote sit at the top: rows lead with where each date applies,
   and the column headings and per-row Details toggles go away */
.itsd-calendar.is-picked .itsd-fn-btn, .itsd-calendar.is-picked .itsd-fn, .itsd-calendar.is-picked .itsd-cal-head,
.itsd-calendar.is-picked .itsd-row-where.is-see,
.itsd-calendar.is-picked .itsd-row-who:has(.itsd-row-where:not(.is-see)) .itsd-row-state { display: none !important; }
.itsd-calendar.is-picked .itsd-row-where { font-weight: 700; font-size: var(--itsd-fs-md); line-height: 1.4; color: var(--itsd-navy); }
.itsd-calendar.is-picked .itsd-where-btn { color: var(--itsd-blue); }
/* Mike's footnote for the picked state, shown under its rows */
.itsd-calendar.is-picked .itsd-cal-notes .itsd-cal-fn { margin-top: 20px; }
.itsd .itsd-cal-fn .itsd-row-panel { margin-top: 0; }

.itsd .itsd-footnote { margin-top: 28px; font-size: var(--itsd-fs-sm); color: var(--itsd-muted); }

/* Wide list: column headings and one line per row */
@container itsd-cal (min-width: 720px) {
  .itsd-cal-head, .itsd-row { grid-template-columns: minmax(200px, 1.2fr) minmax(0, 1fr) 112px; column-gap: 32px; }
  .itsd-row { grid-template-areas: "who when tools"; padding: 14px 12px; }
  .itsd-cal-head {
    display: grid; padding: 0 12px 10px;
    font-family: var(--itsd-head); font-size: var(--itsd-fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--itsd-muted);
  }
  .itsd .itsd-month-h { padding-left: 12px; }
  .itsd-row-who, .itsd-row-when { padding-top: 6px; }
  .itsd .itsd-more-btn.itsd-fn-btn { min-height: 36px; }
  /* One state picked: no Details column */
  .itsd-calendar.is-picked .itsd-cal-head, .itsd-calendar.is-picked .itsd-row { grid-template-columns: minmax(180px, 1.25fr) minmax(0, 1fr); }
  .itsd-calendar.is-picked .itsd-row { grid-template-areas: "who when"; }
  .itsd-calendar.is-picked .itsd-row-tools { display: none; }
}
/* One state picked on a wide screen: list on the left, sticky call to action on the right */
@container itsd-cal (min-width: 980px) {
  .itsd-calendar.is-picked .itsd-cal-body { grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto auto auto 1fr; column-gap: 48px; }
  .itsd-calendar.is-picked .itsd-cal-states, .itsd-calendar.is-picked .itsd-cal-list, .itsd-calendar.is-picked .itsd-cal-notes { grid-column: 1; }
  .itsd-calendar.is-picked .itsd-st-cta { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; position: sticky; top: var(--itsd-scroll-offset); }
}

@media (prefers-reduced-motion: reduce) {
  .itsd * { transition: none !important; scroll-behavior: auto !important; }
}
