/* ==========================================================================
   v3 (October 2026). Loaded last, so these rules win over the older files.
   1. Phones and small tablets: the top of the page is laid out the same way in
      both modes: logo at the left, the social button(s) and the switch at the
      right, the menu as one even row underneath.
   2. The light/dark switch: labelled in both modes, and the knob moves.
   3. Light-mode page titles: a calm band in the flag header's colours.
   4. News Center and Take Action.
   ========================================================================== */

/* ---- 1. Header on phones and small tablets, both modes ---- */
@media (max-width: 899px) {
  :root[data-theme][data-theme] body[data-page] .side {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "mark . social toggle" "nav nav nav nav";
    align-items: center; column-gap: .5rem; row-gap: .75rem;
    height: auto; padding: .75rem .75rem .9rem;
  }
  :root[data-theme] body[data-page] .side > .mark { grid-area: mark; justify-self: start; margin: 0; }
  :root[data-theme] body[data-page] .side > .toggle { grid-area: toggle; justify-self: end; margin: 0; position: static; }
  :root[data-theme] body[data-page] .side nav { grid-area: nav; min-height: 0; padding: 0; }

  /* The social slot: X now, room for Facebook beside it later. A square button with the network's mark. */
  :root[data-theme] body[data-page] .side > .x-link {
    grid-area: social; justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    box-sizing: border-box; width: auto; height: 2.5rem; margin: 0; padding: 0 .85rem; font-size: .9rem; line-height: 1; white-space: nowrap;
  }
  :root[data-theme] body[data-page] .side > .x-link::after { content: none; }
  :root[data-theme] body[data-page] .side > .x-link .x-ico { width: 1rem; height: 1rem; margin: 0; }
  :root[data-theme="light"] body[data-page] .side > .x-link { border-radius: 8px; }

  /* The menu: one even row, every button the same height, in both modes */
  :root[data-theme] body[data-page] .side nav ul {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .4rem; margin: 0; padding: 0;
  }
  :root[data-theme] body[data-page] .side nav li { min-width: 0; border: 0; }
  :root[data-theme] body[data-page] .side nav a {
    display: flex; align-items: center; justify-content: center; gap: .3rem; box-sizing: border-box;
    min-height: 2.75rem; padding: .45rem .25rem; line-height: 1.1; text-align: center; white-space: nowrap;
  }
  :root[data-theme="light"] body[data-page] .side nav a { font-size: clamp(.72rem, 3.15vw, .95rem); }
  :root[data-theme="dark"] body[data-page] .side nav a { font-size: clamp(.9rem, 3.9vw, 1.12rem); }

  /* The switch keeps its label on phones in light mode too, the same as dark mode */
  :root[data-theme] body[data-page] .side > .toggle #toggleLabel { display: inline; }
  :root[data-theme] body[data-page] .side > .toggle { padding: .3rem .4rem .3rem .75rem; gap: .5rem; }
}
/* The narrowest phones: a slightly smaller logo so everything fits on the first row */
@media (max-width: 420px) {
  :root[data-theme] .side > .mark .mark-n { font-size: 1.4rem; }
  :root[data-theme] .side > .mark .mark-rest { font-size: 1.22rem; }
  :root[data-theme] .side > .mark .mark-o, :root[data-theme] .side > .mark .mark-c { width: 1.02rem; height: 1.2rem; }
}
/* Wider screens show the full "Follow us on X @nomoreh1bs_com" with the X mark in front */
.x-link .x-ico { display: inline-block; width: .95em; height: .95em; vertical-align: -.12em; margin-right: .45em; }
/* the smallest phones: just the X mark */
@media (max-width: 480px) {
  :root[data-theme] body[data-page] .side > .x-link { width: 2.5rem; padding: 0; }
  :root[data-theme] body[data-page] .side > .x-link .x-label { display: none; }
}

/* ---- 2. The switch: the knob is on the left in light mode and on the right in dark mode ---- */
.toggle[aria-checked="true"] .switch i,
:root[data-theme="dark"] .toggle .switch i,
:root[data-theme="dark"] .side > .toggle .switch i { transform: translateX(1.2rem); }

/* ---- 3. Light-mode page titles: a white band between a red stripe and a navy stripe,
   the title in heavy navy capitals between small stars ---- */
[data-theme="light"] .page:not(.page-home):not(.article) > h1 {
  display: flex; align-items: center; justify-content: center; gap: clamp(.75rem, 2.2vw, 1.4rem); box-sizing: border-box;
  width: auto; max-width: none; margin: 0 0 2.25rem; padding: clamp(.95rem, 2.4vw, 1.4rem) 1rem;
  font-family: "Public Sans", "Helvetica Neue", Arial, sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.55rem, 4.2vw, 2.55rem); line-height: 1; letter-spacing: .045em; text-align: center; color: var(--navy);
  background: #fff; border-top: .5rem solid #C8102E; border-bottom: .5rem solid var(--navy); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(23, 33, 49, .08), 0 8px 22px -6px rgba(23, 33, 49, .18);
}
[data-theme="light"] .page:not(.page-home):not(.article) > h1::before,
[data-theme="light"] .page:not(.page-home):not(.article) > h1::after {
  content: ""; display: block; flex: none; width: 2.05em; height: .62em; margin: 0; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 20'%3E%3Cpolygon fill='%23C8102E' points='10.00,1.00%2012.29,7.34%2019.04,7.56%2013.71,11.71%2015.58,18.19%2010.00,14.40%204.42,18.19%206.29,11.71%200.96,7.56%207.71,7.34'/%3E%3Cpolygon fill='%232F3D63' points='33.00,1.00%2035.29,7.34%2042.04,7.56%2036.71,11.71%2038.58,18.19%2033.00,14.40%2027.42,18.19%2029.29,11.71%2023.96,7.56%2030.71,7.34'/%3E%3Cpolygon fill='%23C8102E' points='56.00,1.00%2058.29,7.34%2065.04,7.56%2059.71,11.71%2061.58,18.19%2056.00,14.40%2050.42,18.19%2052.29,11.71%2046.96,7.56%2053.71,7.34'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 599px) {
  [data-theme="light"] .page:not(.page-home):not(.article) > h1 { border-top-width: .4rem; border-bottom-width: .4rem; gap: .6rem; }
  [data-theme="light"] .page:not(.page-home):not(.article) > h1::before,
  [data-theme="light"] .page:not(.page-home):not(.article) > h1::after { width: .7em; height: .7em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolygon fill='%23C8102E' points='10.00,1.00%2012.29,7.34%2019.04,7.56%2013.71,11.71%2015.58,18.19%2010.00,14.40%204.42,18.19%206.29,11.71%200.96,7.56%207.71,7.34'/%3E%3C/svg%3E"); }
}
/* the band sits closer under the header */
[data-theme="light"] body:not([data-page="home"]) main { padding-top: clamp(1.5rem, 3.5vw, 2.5rem); }

/* ---- Desktop: the menu goes up into the top row whenever it fits, instead of hanging below ---- */
@media (min-width: 1080px) {
  :root[data-theme="light"] body .side, :root[data-theme="light"] body [data-page] .side {
    grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "mark x nav toggle"; column-gap: 1rem; row-gap: 0;
    padding-top: .9rem; padding-bottom: .9rem;
  }
  [data-theme="light"] .side nav { grid-area: nav; justify-self: center; }
  [data-theme="light"] .side nav ul { flex-wrap: nowrap; }
  [data-theme="light"] .side > .x-link { grid-area: x; }
  [data-theme="light"] .side > .toggle { grid-area: toggle; }
}
@media (min-width: 1080px) and (max-width: 1199px) {
  [data-theme="light"] .side nav a, [data-theme="light"] .side nav a:hover { padding-left: .8rem; padding-right: .8rem; font-size: .95rem; }
}

/* ---- 4a. News Center ---- */
.nc { display: grid; gap: 2rem; margin: 0 0 1rem; }
.nc-main { min-width: 0; }
.nc-main .twitter-tweet, .nc-side .twitter-tweet { margin: 0 0 1rem !important; }
.page .nc-h {
  margin: 0 0 1rem; padding: 0; border: 0; font-size: .95rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
[data-theme="light"] .page .nc-h { color: var(--accent); }
.nc-top { margin-bottom: 2.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.nc-empty { color: var(--muted); }
.nc-more, .circ-act button, .circ-again {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .55rem 1.1rem;
  font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; border-radius: 6px;
}
[data-theme="light"] .nc-more, [data-theme="light"] .circ-again { color: #fff; background: var(--navy); border: 0; box-shadow: 0 3px 10px rgba(23, 33, 49, .25); }
[data-theme="light"] .nc-more:hover, [data-theme="light"] .circ-again:hover { background: #3A4A75; }

/* Circulating: one post at a time, with the two answers under it */
.nc-side { min-width: 0; padding: 1.1rem 1.1rem .9rem; border: 1px solid var(--rule); border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(23, 33, 49, .08); }
.circ-post { min-height: 8rem; }
.circ-post.in { animation: circ-in .35s ease both; }
@keyframes circ-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .circ-post.in { animation: none; } }
.circ-act { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .25rem; }
.circ-act[hidden] { display: none; }
[data-theme="light"] .circ-act button { color: var(--navy); background: #fff; border: 1px solid rgba(47, 61, 99, .35); font-size: .88rem; padding: .5rem .6rem; }
[data-theme="light"] .circ-act button:hover { background: #EEF1F7; }
[data-theme="light"] .circ-act button[data-r="more"] { color: #fff; background: var(--navy); border-color: var(--navy); }
[data-theme="light"] .circ-act button[data-r="more"]:hover { background: #3A4A75; }
.circ-done { margin: 0 0 .75rem; color: var(--muted); }

/* The reference shelf (the Immigration Info articles) under the news */
.nc-shelf { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.page .nc-shelf h2 { margin: 0 0 .35rem; padding: 0; border: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.015em; }
[data-theme="light"] .page .nc-shelf h2 { color: var(--navy); }
.nc-shelf p { margin: 0 0 1.25rem; color: var(--muted); }

/* ---- 4b. Take Action: the two jump links at the top ---- */
.page > p.jump { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; font-size: 1rem; color: inherit; }
.jump a { display: inline-flex; align-items: center; min-height: 2.6rem; padding: .45rem 1.05rem; border-radius: 6px; font-weight: 700; text-decoration: none; }
[data-theme="light"] .jump a { color: #fff; background: var(--navy); box-shadow: 0 3px 10px rgba(23, 33, 49, .25); }
[data-theme="light"] .jump a:hover { background: #3A4A75; }
/* no Circulating posts yet: the news takes the full width */
.nc > .nc-main:only-child { grid-column: 1 / -1; }
/* Circulating, on phones and narrower screens: between the news and the articles */
.page > [data-widget="circulating"] { margin: 0 0 2rem; }

/* "Follow on X" with the X mark, the same wording at every size and in both modes */
:root[data-theme] .side > .x-link { font-size: .9rem; }
:root[data-theme] .side > .x-link::after { content: none !important; }
/* "Follow on" and then the X mark; on the smallest phones, the mark alone */
:root[data-theme] .side > .x-link { display: inline-flex; align-items: center; justify-content: center; gap: .4em; }
:root[data-theme] .side > .x-link .x-ico { display: block; flex: none; width: 1em; height: 1em; margin: 0; }
:root[data-theme="dark"] .side > .x-link { display: flex; }

/* ==== Wide screens: the supporting column sits at the side ====
   Take Action: Make a Report in the main column, the Join ICE and CareerOneStop panels at the side.
   News Center: the Immigration info articles in the main column, the X news at the side.
   Narrower screens keep everything in one column, in page order. */
@media (min-width: 1100px) {
  .page-take-action { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .page-take-action > * { grid-column: 1; min-width: 0; }
  .page-take-action > h1, .page-take-action > .jump { grid-column: 1 / -1; }
  .page-take-action > .jump { display: none; } /* both sections are on screen side by side, so the jump links aren't needed */
  .page-take-action > .ta-side { grid-column: 2; grid-row: 2; position: sticky; top: 1.5rem; }
  .page-take-action > .ta-main { grid-row: 2; }
  .page-take-action > .ta-main > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .page-take-action > .ta-side > h2:first-child { margin-top: 0; }
  .page-take-action .ta-side .join-ice, .page-take-action .ta-side .join-cc { margin-left: 0; margin-right: 0; }

  .page-news-center:not(.article) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .page-news-center:not(.article) > * { grid-column: 1; min-width: 0; }
  .page-news-center:not(.article) > h1 { grid-column: 1 / -1; }
  .page-news-center:not(.article) > [data-widget="news-center"] { grid-column: 2; grid-row: 2 / span 5; }
  .page-news-center:not(.article) > .origin { grid-row: 2; }
  .page-news-center:not(.article) > [data-widget="officials"] { grid-row: 3; }
  .page-news-center:not(.article) > [data-widget="circulating"] { grid-row: 6; margin-top: 2.5rem; max-width: 40rem; }
  .page-news-center:not(.article) > .nc-shelf { grid-row: 4; margin-top: 0; padding-top: 0; border-top: 0; }
  .page-news-center:not(.article) > .article-index { grid-row: 5; }
  .page-news-center .nc { grid-template-columns: minmax(0, 1fr); }
}
/* the wrapped sections keep the light-mode section styling */
[data-theme="light"] .ta-main > h2, [data-theme="light"] .ta-side > h2 {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.015em; color: var(--navy);
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
}
[data-theme="light"] .ta-main > h3 { font-weight: 800; color: var(--navy); }
@media (min-width: 900px) {
  [data-theme="light"] .ta-main > p, [data-theme="light"] .ta-main > ul > li, [data-theme="light"] .ta-main > ol > li { font-size: 1.08rem; }
}
@media (min-width: 1100px) {
  [data-theme="light"] .page-take-action > .ta-side > h2:first-child, [data-theme="light"] .page-take-action > .ta-main > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .page-take-action .ta-side .join-ice h2 { font-size: clamp(2.3rem, 3.4vw, 3.1rem); }
  .page-take-action .ta-side .join-cc h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
}

/* ==========================================================================
   5. The ending (dark mode): scenes/ending.js, text and scenes in scenes/ending.json
   ========================================================================== */
body.end-lock { overflow: hidden; }
.end-overlay { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 1.5rem; opacity: 0; transition: opacity .35s ease; }
.end-overlay.on { opacity: 1; }
.end-btn {
  min-height: 2.9rem; padding: .6rem 1.6rem; cursor: pointer; font: 500 1.15rem/1.1 "EB Garamond", Garamond, serif; color: var(--plate-ink, #15120B);
  background: linear-gradient(100deg, color-mix(in srgb, var(--plate, #A38C58) 88%, #fff4d6) 0%, var(--plate, #A38C58) 40%, color-mix(in srgb, var(--plate, #A38C58) 88%, #000) 100%);
  border: 3px solid color-mix(in srgb, var(--plate, #A38C58) 28%, #000); border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.end-btn:hover { filter: brightness(1.08); }

/* 1. Item found: a small notice that slides up from the bottom of the screen and leaves by itself */
.end-toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 85; display: flex; align-items: center; gap: .85rem; min-width: 15rem;
  padding: .55rem 1.4rem .55rem .55rem; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, #13302F, #0A1F20); border: 1px solid var(--gold-dim, rgba(174, 153, 104, .45));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0; transform: translate(-50%, 140%); transition: transform .55s cubic-bezier(.2, .9, .25, 1.15), opacity .4s ease;
}
.end-toast.on { opacity: 1; transform: translate(-50%, 0); }
.end-toast-ico { flex: none; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; overflow: hidden;
  background: #061314; box-shadow: 0 0 0 2px var(--gold, #AE9968); }
.end-toast-ico img { width: auto; height: 78%; transform: rotate(-8deg); }
.end-toast-txt { display: flex; flex-direction: column; gap: .15rem; text-align: left; }
.end-toast-txt b { font: 700 .72rem/1 "Public Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold, #AE9968); }
.end-toast-txt span { font: italic 400 1.15rem/1.15 "IM Fell English", Georgia, serif; color: var(--gold-hi, #D0BF94); }
@media (prefers-reduced-motion: reduce) { .end-toast { transition: opacity .3s ease; transform: translate(-50%, 0); } }

/* 2. The ! on Live Feed (an amber warning triangle that blinks slowly), and the letter waiting on that page */
.end-bang { display: inline-block; flex: none; width: 1.3rem; height: 1.2rem; margin-left: .45rem; vertical-align: -.12em; line-height: 0;
  filter: drop-shadow(0 0 4px rgba(245, 181, 24, .55)); animation: end-blink 1.6s ease-in-out infinite; }
.end-bang svg { display: block; width: 100%; height: 100%; }
@keyframes end-blink { 0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(245, 181, 24, .85)); } 50% { opacity: .45; filter: none; } }
@media (prefers-reduced-motion: reduce) { .end-bang { animation: none; } }
.end-waiting {
  position: relative; display: flex; align-items: center; gap: 1rem; width: 100%; max-width: 550px; margin: 0 0 1.25rem; padding: .7rem 1rem;
  cursor: pointer; text-align: left; background: rgba(0, 0, 0, .35); border: 1px solid var(--gold-dim, rgba(174, 153, 104, .4)); color: var(--gold-hi, #D0BF94);
  font: italic 400 1.2rem/1.2 "IM Fell English", Georgia, serif;
}
.end-waiting:hover { border-color: var(--gold, #AE9968); background: rgba(0, 0, 0, .5); }
.end-waiting img { width: 4rem; transform: rotate(-6deg); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.end-waiting .end-bang { position: absolute; top: -.6rem; left: -.6rem; margin: 0; }

/* 3. The note, with the key */
.end-note { background: rgba(0, 0, 0, .88); }
.end-letter { position: relative; width: min(26rem, 86vw); margin: 0; transform: rotate(-1.5deg); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .8)); }
.end-letter img { display: block; width: 100%; }
.end-letter p { position: absolute; left: var(--tx-l, 13%); right: var(--tx-r, 18%); top: var(--tx-t, 11%); margin: 0;
  font: 400 clamp(1.1rem, 4vw, 1.45rem)/1.45 "Caveat", "Segoe Print", "Bradley Hand", cursive; color: #1E2433; text-align: left; transform: rotate(-1deg); }
.end-x { position: absolute; top: -.6rem; right: -.6rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; padding: 0;
  font: 400 1.5rem/1 "Public Sans", sans-serif; cursor: pointer; color: #E9E2CF; background: #141414; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .6); }
.end-x:hover { background: #2A2A2A; }

/* The scenes: black, each picture or clip fitted to the screen, fading where ending.json says */
.end-film { background: #000; padding: 0; }
.end-frame { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .8s ease; }
.end-frame.on { opacity: 1; }
.end-frame .end-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.1s ease;
  animation: end-push 6s linear forwards; }
.end-frame .end-shot.in { opacity: 1; }
@keyframes end-push { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .end-frame .end-shot { animation: none; } }
.end-skip { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; min-height: 2.5rem; padding: .4rem .9rem; cursor: pointer;
  font: 600 .8rem/1 "Public Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); background: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; }
.end-skip:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }

/* 4. Return to nomoreh1bs.com */
.end-return { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .9s ease;
  flex-direction: column; gap: 1.4rem; background: #000; }
.end-return.on { opacity: 1; }
.end-home { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.1rem 2.4rem 1.2rem; cursor: pointer;
  background: #fff; border: 0; border-radius: 999px; box-shadow: 0 10px 40px rgba(0, 0, 0, .7); color: #2F3D63; }
.end-home:hover { box-shadow: 0 10px 40px rgba(0, 0, 0, .7), 0 0 0 4px rgba(255, 255, 255, .25); }
.end-logo { display: inline-flex; align-items: baseline; font: 500 1.6rem/1 "Fredoka", "Public Sans", sans-serif; color: #172131; }
.end-logo svg { width: 1.25rem; height: 1.45rem; margin: 0 .05rem; transform: translateY(.12rem); }
.end-go { font: 700 .95rem/1 "Public Sans", sans-serif; letter-spacing: .04em; }
.end-credit { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); margin: 0; text-align: center; font: 400 .66rem/1.4 "Public Sans", sans-serif; color: #8E9196; text-decoration: none; }
a.end-credit:hover { color: #D0D2D5; text-decoration: underline; }

/* News column: spare X posts wait off-screen until it's known which posts X can show */
.xp-spare { position: absolute; left: -9999px; width: 100%; max-width: 550px; }

/* Source lines sit apart from the article they cite */
.page > p.fine { margin-top: 7rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .78rem; }

/* The note: kept as written, line by line; on "Go there" it slides down off the screen over the first scene */
.end-letter p { white-space: pre-line; }
.end-note.end-sliding { z-index: 90; background: transparent; transition: background 1s ease; pointer-events: none; }
.end-note.end-sliding .end-btn, .end-note.end-sliding .end-x { opacity: 0; transition: opacity .3s ease; }
.end-note.end-sliding .end-letter { transform: translateY(115vh) rotate(4deg); transition: transform 1.6s cubic-bezier(.55, 0, .35, 1) .25s; }

/* A card whose picture is an organisation's logo: the whole logo, on white, not cropped */
.info-photo.is-logo { background: #fff; }
.info-photo.is-logo img { object-fit: contain; padding: 2% 3%; box-sizing: border-box; }

/* ---- 4c. News Center: "Where it's coming from": the numbers at the side, India centred in the map beside them ---- */
.origin { margin: 0 0 3rem; border-radius: 14px; overflow: hidden; background: #0A1222; color: #fff; box-shadow: 0 10px 30px rgba(10, 18, 34, .28); display: grid; }
.origin-map { position: relative; margin: 0; }
.origin-map img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 47% 50%; }
.origin-label { position: absolute; left: 51%; top: 48%; transform: translate(-50%, -50%); font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; font-size: clamp(1.1rem, 2.4vw, 1.8rem); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); pointer-events: none; }
.origin-text { padding: 1.3rem 1.25rem 1.2rem; }
.page .origin h2 { margin: 0 0 1.1rem; padding: 0; border: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: #fff; }
.origin-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.origin-stats li { margin: 0; padding: 1rem 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.origin-stats li:first-child { padding-top: 0; border-top: 0; }
.origin-stats b { display: block; font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #FF4D63; white-space: nowrap; }
.origin-stats span { display: block; margin-top: .3rem; font-size: 1.02rem; line-height: 1.3; color: rgba(255,255,255,.92); }
.origin sup { font-size: .65em; line-height: 0; color: rgba(255,255,255,.6); margin-left: .1em; }
.origin-src { margin: 0; padding: .85rem 1.25rem 1rem; font-size: .74rem; line-height: 1.5; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.1); }
.origin-src a { color: rgba(255,255,255,.85); }
/* wide: words in a column at the left, the map filling the rest with India in its middle */
@media (min-width: 760px) {
  .origin { grid-template-columns: minmax(15rem, 38%) 1fr; }
  .origin-text { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding: 1.75rem 1.5rem; }
  .origin-map { grid-column: 2; grid-row: 1; min-height: 31rem; }
  .origin-map img { position: absolute; inset: 0; aspect-ratio: auto; }
  .origin-map::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; z-index: 1; background: linear-gradient(90deg, #0A1222, rgba(10,18,34,0)); }
  .origin-src { grid-column: 1 / -1; grid-row: 2; }
}

/* X embeds blocked: one plain panel instead of a stack of bare links */
.x-fallback { padding: 1.1rem 1.15rem 1.2rem; border: 1px solid var(--rule); border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(23, 33, 49, .08); }
.x-fallback .x-fb-h { margin: 0 0 .35rem; font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.x-fallback p { margin: 0 0 .9rem; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.x-fallback .btn { margin: 0; }

/* ---- 4d. About: the memorial as one solemn photograph with the name on it ---- */
[data-theme="light"] .page-about .memorial { padding: 0; border: 0; overflow: hidden; background: #111; box-shadow: 0 12px 30px rgba(17, 24, 39, .22); }
.page-about .memorial-title { display: none; }
.page-about .memorial-photo { aspect-ratio: 16 / 10; border: 0; border-radius: 0; }
.page-about .memorial-photo img { filter: saturate(.75); }
.page-about .memorial-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(8,10,14,.78) 100%); }
.page-about .memorial figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; margin: 0; padding: 1.1rem 1.4rem 1.2rem; color: #fff; }
.page-about .mem-kicker { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.page-about .mem-name { display: block; margin: .15rem 0 .2rem; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.page-about .mem-line { display: block; font-size: .95rem; color: rgba(255,255,255,.85); }
.page-about .memorial .credit { position: absolute; z-index: 1; right: .75rem; top: .6rem; margin: 0; font-size: .7rem; color: rgba(255,255,255,.7); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
/* section heads: a short red bar instead of a full-width rule */
[data-theme="light"] .page-about > h2 { border-top: 0; padding-top: 0; margin-top: 3.25rem; }
[data-theme="light"] .page-about > h2::before { content: ""; display: block; width: 3rem; height: 4px; margin-bottom: .85rem; border-radius: 2px; background: #C8102E; }

/* ---- Next steps at the end of a page, so a reader always has somewhere to go ---- */
.next-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; max-width: var(--measure); margin: 3.5rem 0 0; }
.next-card { display: block; padding: 1.1rem 1.2rem; border-radius: 10px; text-decoration: none; background: var(--navy); color: #fff;
  box-shadow: 0 6px 18px rgba(23, 33, 49, .2); transition: transform .15s ease, box-shadow .15s ease; }
.next-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 33, 49, .26); }
.next-k { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #FF8A98; }
.next-t { display: block; margin-top: .25rem; font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.next-t::after { content: " \2192"; }
[data-theme="dark"] .next-steps { display: none; }

/* ---- Sources: small, numbered, well below the writing ---- */
.page > .sources { max-width: var(--measure); margin-top: 5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--muted); }
.sources-h { margin: 0 0 .4rem; font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.sources ol { margin: 0; padding-left: 1.2rem; }
.sources li { margin: 0 0 .3rem; line-height: 1.45; }

/* ---- Home: the "Where it's coming from" strip under the main story, a way into the News Center ---- */
.origin-strip { display: grid; grid-template-columns: 9.5rem 1fr; margin: 1.5rem 0 0; border-radius: 12px; overflow: hidden; text-decoration: none;
  background: #0A1222; color: #fff; box-shadow: 0 8px 22px rgba(10, 18, 34, .22); transition: transform .15s ease, box-shadow .15s ease; }
.origin-strip:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10, 18, 34, .3); }
.os-map { position: relative; display: block; }
.os-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; }
.os-body { display: block; padding: 1rem 1.15rem 1.05rem; }
.os-h { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.os-stats { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin: .55rem 0 .6rem; font-size: .92rem; color: rgba(255,255,255,.88); }
.os-stats b { margin-right: .2rem; font-size: 1.2rem; font-weight: 800; color: #FF4D63; }
.os-go { font-size: .9rem; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.os-go::after { content: " \2192"; }
@media (max-width: 520px) { .origin-strip { grid-template-columns: 6.5rem 1fr; } .os-stats { flex-direction: column; gap: .2rem; } }
[data-theme="dark"] .origin-strip { display: none; }
@media (min-width: 1280px) {
  [data-theme="light"] [data-page="home"] .shell { grid-template-rows: auto auto auto auto 1fr; }
  [data-theme="light"] [data-page="home"] .page > .origin-strip { grid-column: 2; grid-row: 3; }
  [data-theme="light"] [data-page="home"] .page > #tracker { grid-row: 4; }
  [data-theme="light"] [data-page="home"] .page > .home-news, [data-theme="light"] [data-page="home"] .page > .home-aside { grid-row: 2 / span 4; }
}

/* ---- Take Action: the report guide as wide as the text; Uncle Sam clear of the ICE logo ---- */
.ta-main .table-wrap { max-width: none; }
.ta-main .table-wrap table { width: 100%; }
.ta-side .join-sam { margin-top: .6rem; }

/* ---- Employer and state pages (built by scripts/build-pages.js) ---- */
.page-data .data-kicker { margin: 0 0 .25rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
[data-theme="light"] .page.page-data > h1 { margin-top: 0; }
.data-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; max-width: var(--measure); margin: 1.25rem 0 1.5rem; }
.data-stats > div { padding: .9rem 1rem; border-radius: 10px; background: #fff; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.data-stats b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.05; color: var(--navy); letter-spacing: -.02em; }
.data-stats span { display: block; margin-top: .2rem; font-size: .88rem; color: var(--muted); }
.page-data .table-wrap { max-width: var(--measure); }
.page-data .table-wrap table { width: 100%; }
.page-data td:not(:nth-child(2)), .page-data th:not(:nth-child(2)) { white-space: nowrap; }
.page-data > p.fine { margin-top: 3rem; }
.t-pages { margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .92rem; font-weight: 700; }
.t-pages a { color: var(--accent); }
[data-theme="dark"] .t-pages { display: none; }

/* ---- News: the "All news" link under the latest few, and the archive by month ---- */
.nc-all { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; font-weight: 800; color: var(--accent); }
.nc-all svg { width: 1.1em; height: 1.1em; }
.na-intro { color: var(--muted); }
.na-month { max-width: 40rem; border-top: 1px solid var(--rule); }
.na-head { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 0; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; color: var(--navy); }
.na-head span { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.na-head small { color: var(--muted); font-size: .9rem; }
.na-head::after { content: "+"; font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.na-month.open .na-head::after { content: "\2212"; }
.na-month:not(.open) .nc-list { display: none; }
.na-month .nc-list { padding-bottom: 1rem; }

/* ---- News Center: officials (officials.json). The same card as the posted image: photo with the logo on a white tag,
   the words, the state's number, the name; a few links; one official at a time, looping, with previous / current / next ---- */
:root { --saffron: #FF9933; --ind-green: #138808; --otr-ground: #0B1533; }
.page > [data-widget="officials"] { margin: 0 0 3rem; }
.otr-stage { position: relative; display: grid; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 28px rgba(10,18,34,.25); background: var(--otr-ground); }
.otr-card { grid-area: 1 / 1; position: relative; display: grid; grid-template-columns: 38% minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: 23rem; color: #fff;
  background: linear-gradient(rgba(8,12,26,.7), rgba(8,12,26,.7)), url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22100%22%20height%3D%22100%22%20viewBox%3D%220%200%20100%20100%22%20opacity%3D%22.32%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%231B2C8F%22%20stroke-width%3D%222%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2245%22%20stroke-width%3D%224%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2294.00%22%20y2%3D%2250.00%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2292.50%22%20y2%3D%2261.39%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2288.11%22%20y2%3D%2272.00%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2281.11%22%20y2%3D%2281.11%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2272.00%22%20y2%3D%2288.11%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2261.39%22%20y2%3D%2292.50%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2250.00%22%20y2%3D%2294.00%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2238.61%22%20y2%3D%2292.50%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2228.00%22%20y2%3D%2288.11%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2218.89%22%20y2%3D%2281.11%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2211.89%22%20y2%3D%2272.00%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%227.50%22%20y2%3D%2261.39%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%226.00%22%20y2%3D%2250.00%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%227.50%22%20y2%3D%2238.61%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2211.89%22%20y2%3D%2228.00%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2218.89%22%20y2%3D%2218.89%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2228.00%22%20y2%3D%2211.89%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2238.61%22%20y2%3D%227.50%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2250.00%22%20y2%3D%226.00%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2261.39%22%20y2%3D%227.50%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2272.00%22%20y2%3D%2211.89%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2281.11%22%20y2%3D%2218.89%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2288.11%22%20y2%3D%2228.00%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2292.50%22%20y2%3D%2238.61%22/%3E%3C/g%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%227%22%20fill%3D%22%231B2C8F%22/%3E%3C/svg%3E") 76% 50% / auto 46% no-repeat, linear-gradient(180deg, #FF9933 0 29%, #FFFFFF 37% 63%, #138808 71%);;
  visibility: hidden; opacity: 0; transition: opacity .45s ease, visibility 0s linear .45s; }
.otr-card.on { visibility: visible; opacity: 1; transition: opacity .45s ease; }
.otr-photo { grid-row: 1 / span 2; position: relative; margin: 0; min-height: 13rem; }
.otr-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent); mask-image: linear-gradient(90deg, #000 62%, transparent); }
.otr-photo::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(0deg, rgba(8,12,26,.8), rgba(8,12,26,0)); }
/* the logo and the photo credit stack in one box at the foot of the photo, so they can never overlap */
.otr-tag { position: absolute; z-index: 2; left: .8rem; right: 1.2rem; bottom: .7rem; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.otr-mark { display: inline-flex; align-items: center; padding: .32rem .7rem .38rem; border-radius: 7px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.4);
  font: 500 1.25rem/1 "Fredoka", "Public Sans", sans-serif; color: #172131; white-space: nowrap; }
.otr-mark svg { width: .8em; height: .95em; margin: 0 .04em; }
.otr-tag figcaption, .otr-tag small { font-size: .56rem; line-height: 1.3; color: rgba(255,255,255,.58); text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.otr-body { grid-column: 2; display: flex; flex-direction: column; gap: .9rem; min-width: 0; padding: 1.7rem 1.6rem .4rem .6rem; }
.otr-kick { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); }
.otr-quote { margin: 0; padding: 0; border: 0; font-style: normal; font-size: clamp(1.25rem, 2.1vw, 1.6rem); font-weight: 800; line-height: 1.22; color: #fff; }
.otr-quote::before { content: "\201C"; color: var(--saffron); font-size: 2.6em; line-height: 0; vertical-align: -.42em; margin-right: .08em; }
.otr-quote.policy::before { content: none; }
.otr-quote .nw, .otr-note .nw { white-space: nowrap; }
.otr-stat { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; padding: .55rem .8rem; border-left: 3px solid var(--saffron); border-radius: 0 6px 6px 0; background: rgba(0,0,0,.28); }
.otr-stat b { font-size: 1.5rem; font-weight: 900; line-height: 1; color: var(--saffron); font-variant-numeric: tabular-nums; }
.otr-stat span { font-size: .86rem; color: rgba(255,255,255,.88); }
.otr-stat a { color: inherit; text-decoration: none; }
.otr-stat a:hover { text-decoration: underline; }
.otr-note { margin: 0; font-size: .8rem; line-height: 1.35; color: rgba(255,255,255,.72); }
.otr-note a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 2px; }
.otr-note a:hover { color: #fff; }
.otr-who { margin: auto 0 0; }
.otr-who b { display: block; font-size: 1.1rem; font-weight: 900; }
.otr-who span { display: block; margin-top: .1rem; font-size: .86rem; color: rgba(255,255,255,.78); }
.otr-who small { display: block; margin-top: .15rem; font-size: .78rem; color: rgba(255,255,255,.55); }
.otr-card.no-stat .otr-quote { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.otr-card.no-stat .otr-who b { font-size: 1.45rem; }
.otr-links { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; padding: .55rem 7.5rem 1.1rem .6rem; }
.otr-links a { display: inline-flex; align-items: center; min-height: 2.1rem; padding: .2rem .7rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.22);
  font-size: .82rem; font-weight: 700; color: #fff; text-decoration: none; }
.otr-links a:hover { border-color: var(--saffron); color: var(--saffron); }
/* previous / current / next: three dots whatever the number of officials; the outer two step back and forward, looping */
.otr-nav { position: absolute; z-index: 3; right: 1rem; bottom: .95rem; display: flex; align-items: center; }
.otr-nav button { display: grid; place-items: center; width: 1.9rem; height: 2.1rem; padding: 0; border: 0; background: none; cursor: pointer; }
.otr-nav button::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.5); transition: background .2s; }
.otr-nav button:hover::before { background: #fff; }
.otr-nav .cur { cursor: default; }
.otr-nav .cur::before { width: .72rem; height: .72rem; background: var(--saffron); }
.otr-nav button:focus-visible { outline: 2px solid var(--saffron); border-radius: 50%; }
/* a group photo (photoWide in officials.json): more room for the photo, the fade pushed to its edge */
.otr-card.wide-photo { grid-template-columns: 50% minmax(0, 1fr); }
.otr-card.wide-photo .otr-photo img { -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
.otr-card.whole-photo .otr-photo img { object-fit: contain; object-position: 50% 42%; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.otr-card.whole-photo .otr-photo::before { content: none; }
@media (prefers-reduced-motion: reduce) { .otr-card, .otr-card.on { transition: none; } }
/* phones: the photo and the words side by side, the links across the bottom */
@media (max-width: 560px) {
  .otr-card { grid-template-columns: 40% minmax(0, 1fr); grid-template-rows: auto auto; min-height: 0; background-position: 0 0, 78% 50%, 0 0; background-size: auto, auto 34%, auto; }
  .otr-photo { grid-row: 1; min-height: 14rem; }
  .otr-photo img { -webkit-mask-image: linear-gradient(90deg, #000 65%, transparent); mask-image: linear-gradient(90deg, #000 65%, transparent); }
  .otr-tag { left: .5rem; right: .4rem; bottom: .5rem; gap: .25rem; }
  .otr-mark { font-size: .8rem; padding: .25rem .45rem .3rem; border-radius: 5px; }
  .otr-tag figcaption { font-size: .5rem; }
  .otr-body { padding: 1.3rem .9rem .6rem .3rem; gap: .55rem; }
  .otr-quote { font-size: 1.02rem; }
  .otr-card.no-stat .otr-quote { font-size: 1.1rem; }
  .otr-stat { padding: .35rem .5rem; } .otr-stat b { font-size: 1.1rem; } .otr-stat span { font-size: .72rem; }
  .otr-note { font-size: .68rem; }
  .otr-who b, .otr-card.no-stat .otr-who b { font-size: 1.05rem; } .otr-who span { font-size: .78rem; } .otr-who small { font-size: .72rem; }
  .otr-links { grid-column: 1 / -1; flex-wrap: nowrap; gap: .3rem; padding: .5rem 5.1rem .9rem .8rem; }   /* Source, Call, X and Facebook on one row */
  .otr-links a { padding: .2rem .55rem; }
  .otr-nav { right: .4rem; bottom: .75rem; }
  .otr-nav button { width: 1.5rem; }
  .otr-card.wide-photo { grid-template-columns: 50% minmax(0, 1fr); }
  .otr-card.wide-photo .otr-photo { min-height: 15rem; }
  /* a whole group photo: full width across the top, the words below it */
  .otr-card.whole-photo { grid-template-columns: minmax(0, 1fr); }
  .otr-card.whole-photo .otr-photo { grid-row: 1; grid-column: 1; min-height: 0; aspect-ratio: 16 / 9; }
  .otr-card.whole-photo .otr-photo img { object-fit: cover; object-position: 50% 30%; -webkit-mask-image: linear-gradient(0deg, transparent, #000 30%); mask-image: linear-gradient(0deg, transparent, #000 30%); }
  .otr-card.whole-photo .otr-body { grid-column: 1; padding: .3rem 1rem .6rem; }
  .otr-card.whole-photo .otr-quote { font-size: 1.15rem; }
}

/* Take Action: the comment buttons side by side; "Read our comment" stays grey until the comment is posted */
.cta-pair { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1.2rem 0; }
.cta-pair .btn { margin: 0; }
.btn.btn-soon { display: inline-flex; align-items: center; padding: .9rem 1.9rem; border-radius: 6px; background: #C9CDD3; color: #6B7280; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 1.1rem; cursor: not-allowed; box-shadow: none; }

/* ---- The light/dark switch sits in exactly the same spot in both modes (computers and wide tablets) ----
   Light mode places it at the right end of the header row; dark mode pins it to that same point so it doesn't jump when flipped. */
@media (min-width: 900px) {
  html:root[data-theme="dark"] body[data-page] .side > .toggle {
    position: fixed; margin: 0; top: 32px; transform: translateY(-50%);
    right: calc(clamp(1rem, 3vw, 2.5rem) + clamp(1rem, 2.5vw, 2.5rem));
  }
}
@media (min-width: 1100px) { html:root[data-theme="dark"] body[data-page] .side > .toggle { top: 30.4px; } }
@media (min-width: 1280px) { html:root[data-theme="dark"] body[data-page] .side > .toggle { right: calc(clamp(1.5rem, 3.5vw, 5rem) + clamp(1rem, 2.5vw, 2.5rem)); } }
/* phones: the switch is pinned (it floats over the header), so keep its column open and the X button beside it, as in light mode */
@media (max-width: 899px) {
  :root[data-theme="dark"][data-theme] body[data-page] .side { grid-template-columns: auto minmax(0, 1fr) auto 102px; }
}
/* mid-size screens (big phones sideways, small tablets): the four card buttons stay on one row */
@media (min-width: 561px) and (max-width: 799px) {
  .otr-links { flex-wrap: nowrap; gap: .3rem; padding-right: 5.1rem; }
  .otr-links a { padding: .2rem .5rem; font-size: .78rem; }
  .otr-nav { right: .4rem; }
  .otr-nav button { width: 1.5rem; }
}
/* cards with a half-width photo: below 900 the buttons run along the bottom of the whole card, under the photo */
@media (min-width: 561px) and (max-width: 899px) {
  .otr-card.wide-photo:not(.whole-photo) .otr-links { grid-column: 1 / -1; flex-wrap: nowrap; padding-left: .8rem; }
}

/* an ally of American workers: the same card on the American flag (navy over red and white stripes, darkened like the Indian one) */
.otr-card.ally { background: linear-gradient(rgba(8,12,26,.7), rgba(8,12,26,.7)), linear-gradient(180deg, #B22234 0.00% 14.29%, #FFFFFF 14.29% 28.57%, #B22234 28.57% 42.86%, #FFFFFF 42.86% 57.14%, #B22234 57.14% 71.43%, #FFFFFF 71.43% 85.71%, #B22234 85.71% 100.00%) right bottom / 62% 47% no-repeat, #0A3161; }
@media (max-width: 560px) { .otr-card.ally { background: linear-gradient(rgba(8,12,26,.7), rgba(8,12,26,.7)), linear-gradient(180deg, #B22234 0.00% 14.29%, #FFFFFF 14.29% 28.57%, #B22234 28.57% 42.86%, #FFFFFF 42.86% 57.14%, #B22234 57.14% 71.43%, #FFFFFF 71.43% 85.71%, #B22234 85.71% 100.00%) right bottom / 60% 58% no-repeat, #0A3161; } }
.otr-card.ally .otr-photo::before { background: linear-gradient(0deg, rgba(10,24,52,.85), rgba(10,24,52,0)); }
.otr-kick { margin: 0; font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #FF7A7A; }
.otr-card.ally .otr-quote::before { color: #FF7A7A; }
.otr-card.ally .otr-stat { border-left-color: #FF7A7A; }
.otr-card.ally .otr-stat b { color: #FF7A7A; white-space: nowrap; }
.otr-card.ally .otr-links a:hover { border-color: #fff; color: #fff; }

/* A comment's own page: the link to our posted comment on Regulations.gov, under the title */
.cmt-gov { margin: 0 0 1.6rem; font-size: 1.05rem; font-weight: 700; }

/* The Comment button above Sources: even space above it and above the divider below */
[data-page^="comment-"] [data-widget="comment-actions"]:not([data-top]) .cta-pair { margin: 2.4rem 0 -.9rem; }

/* Phones: the comment buttons fill the width and wrap their words instead of running off the screen; comments come before the Join ICE / CareerOneStop panels; banner is shorter */
@media (max-width: 699px) {
  .cta-pair { flex-direction: column; align-items: stretch; gap: .7rem; }
  .cta-pair .btn, [data-theme="light"] .cta-pair .btn.btn-cta, [data-theme="light"] .cta-pair .btn.btn-read { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; white-space: normal; padding: .85rem 1rem; font-size: 1rem; letter-spacing: .04em; }
}
@media (max-width: 1099px) {
  .page-take-action { display: flex; flex-direction: column; }
  .page-take-action > h1 { order: -3; }
  .page-take-action > .jump { order: -2; }
  .page-take-action > .ta-main { order: -1; }
}
@media (max-width: 480px) {
  .banner { font-size: .85rem; line-height: 1.3; padding-top: .6rem; padding-bottom: calc(.6rem + env(safe-area-inset-bottom, 0px)); }
}
