/* ==========================================================================
 * The Benefits & Updates page, redesigned (build-guide-hub.js)
 *
 * A banner with a photograph, topic tiles, the featured article, every
 * article as a card with its own photograph, a side column (topics, "Start
 * here", the call to action), and the six category cards. Scoped to
 * .gh-page and to gh- classes only that builder writes, in the
 * same card language as the home page.
 *
 * A file of its own, linked from benefits-and-updates.html after styles.css,
 * because every other page would otherwise download these rules for nothing.
 * The single-file build (build.js) appends it to the stylesheet it inlines.
 * ========================================================================== */
.gh-page {
  --gh-blue: #1f6bc9;
  --gh-blue-deep: #17589f;
  --gh-sky: #eef5fd;
  --gh-sky-line: #d9e6f5;
  --gh-radius: 14px;
  --gh-shadow: 0 1px 2px rgba(14, 44, 76, 0.06), 0 8px 22px -12px rgba(14, 44, 76, 0.22);
  --gh-shadow-hover: 0 2px 4px rgba(14, 44, 76, 0.08), 0 14px 30px -14px rgba(14, 44, 76, 0.3);
  padding-top: 0;
}

/* ---- banner ------------------------------------------------------------ */
.gh-hero { background: var(--gh-sky); border-bottom: 1px solid var(--gh-sky-line); overflow: hidden; }
.gh-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 300px;
}
.gh-hero__text { padding: 30px 0; }
.gh-hero__head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.gh-hero__icon {
  display: grid; place-items: center; flex: none;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--sheet); color: var(--gh-blue);
  box-shadow: var(--gh-shadow);
}
.gh-hero__svg { width: 34px; height: 34px; }
.gh-hero__kicker {
  margin: 0 0 4px;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gh-blue);
}
.gh-page .gh-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
  line-height: 1.12;
  color: var(--accent-deep);
  text-wrap: balance;
}
.gh-hero__lede { margin: 0 0 10px; max-width: 56ch; font-size: 1.02rem; line-height: 1.6; color: var(--ink); }
.gh-hero__scope { margin: 0; max-width: 60ch; font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }
.gh-hero__media { position: relative; align-self: stretch; margin-right: calc(-1 * var(--shell-pad)); }
.gh-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 380px;
  object-fit: cover;
  object-position: 60% 30%;
}
.gh-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gh-sky) 0%, rgba(238, 245, 253, 0.6) 12%, rgba(238, 245, 253, 0) 30%);
  pointer-events: none;
}

/* ---- topic tiles ------------------------------------------------------- */
.gh-pills { padding-top: 20px; padding-bottom: 4px; }
/* Three even rows of three: nine tiles in one row leave about 80px for a
   name, and "Novedades" or "Pinakabagong update" does not fit in that. Four
   columns made two even rows while there were eight tiles; the ninth,
   Education & College Aid, would have sat alone on a third. */
.gh-pills__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gh-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 62px;
  padding: 9px 10px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--gh-radius);
  box-shadow: 0 1px 2px rgba(14, 44, 76, 0.05);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gh-pill:hover { border-color: var(--gh-blue); box-shadow: var(--gh-shadow); }
.gh-pill:focus-visible { outline: 3px solid var(--gh-blue); outline-offset: 2px; }
.gh-pill__icon {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cat-wash, var(--accent-wash)); color: var(--cat-ink, var(--accent));
}
.gh-pill__svg { width: 20px; height: 20px; }
.gh-pill__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.gh-pill__name { font-size: 0.84rem; font-weight: 700; color: var(--accent-deep); }
.gh-pill__count { font-size: 0.74rem; color: var(--ink-soft); }
.gh-pill--all { background: var(--gh-blue); border-color: var(--gh-blue); }
.gh-pill--all .gh-pill__icon { background: rgba(255, 255, 255, 0.18); color: #fff; }
.gh-pill--all .gh-pill__name, .gh-pill--all .gh-pill__count { color: #fff; }
.gh-pill--all:hover { background: var(--gh-blue-deep); border-color: var(--gh-blue-deep); }
.gh-pill--latest-updates { --cat-wash: #e6effb; --cat-ink: #17589f; }
.gh-pill--social-security { --cat-wash: #e3f0fb; --cat-ink: #1f6bc9; }
.gh-pill--health-insurance { --cat-wash: #fde8ee; --cat-ink: #c23a62; }
.gh-pill--tax-benefits { --cat-wash: #fdf0dc; --cat-ink: #b26a0b; }
.gh-pill--food-family { --cat-wash: #e3f4e8; --cat-ink: #23804a; }
.gh-pill--housing-utilities { --cat-wash: #ece8fb; --cat-ink: #5b45c4; }
.gh-pill--work-income { --cat-wash: #e0f3f4; --cat-ink: #127a80; }
.gh-pill--education { --cat-wash: #fbeef7; --cat-ink: #b03586; }

.gh-pill__name { overflow-wrap: break-word; }
@media (max-width: 899px) {
  .gh-pills { padding-inline: 0; }
  .gh-pills__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px var(--shell-pad) 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .gh-pills__list::-webkit-scrollbar { display: none; }
  .gh-pills__list > li { flex: none; scroll-snap-align: start; }
  .gh-pill { padding: 8px 14px 8px 8px; min-height: 54px; }
}

/* ---- layout ------------------------------------------------------------ */
.gh-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  gap: 32px;
  align-items: start;
  padding-top: 26px;
}
.gh-main { min-width: 0; }
@media (max-width: 1023px) {
  .gh-layout { grid-template-columns: minmax(0, 1fr); }
}

.gh-page .gh-h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent-deep);
}
.gh-h2__count { color: var(--ink-soft); font-weight: 600; }
.gh-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.gh-head .gh-h2 { margin-bottom: 6px; }
.gh-head__note { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }
.gh-intro { margin: 0 0 18px; max-width: 70ch; font-size: 0.95rem; color: var(--ink-soft); }

.gh-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--sheet);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  box-shadow: 0 1px 3px rgba(14, 44, 76, 0.18);
}
.gh-cat {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cat-wash, var(--accent-wash));
  color: var(--cat-ink, var(--gh-blue-deep));
  font-size: 0.74rem;
  font-weight: 700;
}
.gh-cat--latest-updates { --cat-wash: #e6effb; --cat-ink: #17589f; }
.gh-cat--social-security { --cat-wash: #e3f0fb; --cat-ink: #17589f; }
.gh-cat--health-insurance { --cat-wash: #fde8ee; --cat-ink: #a52f52; }
.gh-cat--tax-benefits { --cat-wash: #fdf0dc; --cat-ink: #8a5716; }
.gh-cat--food-family { --cat-wash: #e3f4e8; --cat-ink: #1e6b3e; }
.gh-cat--housing-utilities { --cat-wash: #ece8fb; --cat-ink: #4c39a8; }
.gh-cat--work-income { --cat-wash: #e0f3f4; --cat-ink: #0f6469; }
.gh-cat--education { --cat-wash: #fbeef7; --cat-ink: #9c2577; }
.gh-arrow {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- featured article -------------------------------------------------- */
.gh-featured { margin-bottom: 34px; }
.gh-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow);
  overflow: hidden;
}
.gh-feature__media { position: relative; min-height: 220px; }
.gh-feature__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gh-feature__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; }
.gh-feature__title { margin: 0; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.25; text-wrap: balance; }
.gh-feature__title a { color: var(--accent-deep); text-decoration: none; }
.gh-feature__title a:hover { color: var(--gh-blue); text-decoration: underline; }
.gh-feature__lede { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); }
.gh-feature__go { margin: 4px 0 0; }
.gh-featured .guide-more { margin-top: 12px; }
@media (max-width: 699px) {
  .gh-feature { grid-template-columns: minmax(0, 1fr); }
  .gh-feature__media { min-height: 0; aspect-ratio: 16 / 9; }
  .gh-feature__body { padding: 18px; }
  .gh-feature__title { font-size: 1.2rem; }
}

/* ---- every article ----------------------------------------------------- */
.gh-all { margin-bottom: 10px; }
.gh-page .gh-all .guide-all-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.gh-page .gh-card--lead { display: none; }
.gh-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow);
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.gh-card:hover { box-shadow: var(--gh-shadow-hover); border-color: var(--gh-sky-line); }
.gh-card__media { position: relative; }
.gh-card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--gh-sky); }
.gh-card__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 8px; padding: 14px 16px 16px; }
.gh-card__title { margin: 0; font-family: var(--font-display); font-size: 1.04rem; line-height: 1.3; text-wrap: balance; }
.gh-page .gh-card__title a { font-size: inherit; color: var(--accent-deep); text-decoration: none; }
.gh-page .gh-card__title a:hover { color: var(--gh-blue); text-decoration: underline; }
.gh-card__lede {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gh-page .gh-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  min-height: 32px;
  color: var(--gh-blue);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.gh-page .gh-card__more:hover { text-decoration: underline; }
.gh-all__calcs { margin: 0; }
@media (max-width: 1199px) {
  .gh-page .gh-all .guide-all-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 619px) {
  .gh-page .gh-all .guide-all-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---- side column ------------------------------------------------------- */
.gh-side { display: grid; gap: 22px; min-width: 0; }
.gh-box {
  padding: 18px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow);
}
.gh-box--topics { background: var(--gh-sky); border-color: var(--gh-sky-line); }
.gh-page .gh-box__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent-deep);
}
.gh-box__intro { margin: -4px 0 10px; font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }
.gh-side__list, .gh-start, .gh-cta__points { margin: 0; padding: 0; list-style: none; }
.gh-side__list li + li { margin-top: 6px; }
.gh-side__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 10px 6px 6px;
  background: var(--sheet);
  border-radius: 10px;
  color: var(--accent-deep);
  text-decoration: none;
}
.gh-side__link:hover .gh-side__name { color: var(--gh-blue); text-decoration: underline; }
.gh-side__link:focus-visible, .gh-start__link:focus-visible { outline: 3px solid var(--gh-blue); outline-offset: 2px; }
.gh-side__icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cat-wash, var(--accent-wash)); color: var(--cat-ink, var(--gh-blue));
}
.gh-side__svg { width: 19px; height: 19px; }
.gh-side__name { flex: 1 1 auto; min-width: 0; font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.gh-side__link .gh-arrow, .gh-start__link .gh-arrow { color: var(--gh-blue); }

.gh-start li + li { border-top: 1px solid var(--rule); }
.gh-start__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 0;
  color: var(--accent-deep);
  text-decoration: none;
}
.gh-start__link:hover .gh-start__name { color: var(--gh-blue); text-decoration: underline; }
.gh-start__num {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-wash); color: var(--gh-blue-deep);
  font-size: 0.8rem; font-weight: 700;
}
.gh-start__thumb {
  flex: none;
  width: 64px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--gh-sky);
}
.gh-start__thumb--icon { display: grid; place-items: center; color: var(--gh-blue); }
.gh-start__svg { width: 24px; height: 24px; }
.gh-start__name { flex: 1 1 auto; min-width: 0; font-size: 0.88rem; font-weight: 600; line-height: 1.35; }

.gh-box--cta { background: linear-gradient(160deg, #e3eefc 0%, #f4f8fe 100%); border-color: var(--gh-sky-line); }
.gh-cta__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 10px; border-radius: 12px;
  background: var(--gh-blue); color: #fff;
}
.gh-cta__svg { width: 28px; height: 28px; }
.gh-page .gh-cta__title { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; color: var(--accent-deep); }
.gh-cta__text { margin: 0 0 14px; font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); }
.gh-page .gh-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--gh-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.gh-page .gh-cta__btn:hover { background: var(--gh-blue-deep); }
.gh-page .gh-cta__btn:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
.gh-cta__points { margin-top: 14px; display: grid; gap: 8px; }
.gh-cta__points li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 600; color: var(--accent-deep); }
.gh-cta__point-svg { width: 20px; height: 20px; flex: none; color: var(--gh-blue); }

@media (min-width: 620px) and (max-width: 1023px) {
  .gh-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-box--cta { grid-column: 1 / -1; }
}

/* ---- the category cards ----------------------------------------------- */
.gh-cats { padding-top: 34px; }
.gh-page .guide-cat { border-radius: var(--gh-radius); box-shadow: var(--gh-shadow); }
.gh-page .guide-cat__title { display: flex; align-items: center; gap: 10px; }

/* ---- phone ------------------------------------------------------------- */
@media (max-width: 899px) {
  .gh-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .gh-hero__text { padding: 22px 0 18px; }
  .gh-hero__media { margin: 0 calc(-1 * var(--shell-pad)); }
  .gh-hero__img { min-height: 0; height: 200px; max-height: none; object-position: 60% 25%; }
  .gh-hero__media::after { background: linear-gradient(180deg, var(--gh-sky) 0%, rgba(238, 245, 253, 0) 25%); }
}
@media (max-width: 599px) {
  .gh-hero__head { gap: 12px; }
  .gh-hero__icon { width: 52px; height: 52px; }
  .gh-hero__svg { width: 26px; height: 26px; }
  .gh-hero__img { height: 170px; }
  .gh-layout { padding-top: 18px; }
}
/* From 900px the photograph stops at the content column's right edge -- the
   same line as the menu, the tiles and the side column, and the line the
   home page's banner stops at (--shell-edge) -- rather than running on to
   the window's edge. */
@media (min-width: 900px) {
  .gh-hero { position: relative; }
  .gh-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .gh-hero__text { max-width: 50%; position: relative; z-index: 1; }
  .gh-hero__media {
    position: absolute; top: 0; bottom: 0; margin: 0;
    right: var(--shell-edge);
    width: min(48%, calc((var(--shell) - 2 * var(--shell-pad)) * 0.48));
  }
  .gh-hero__img { height: 100%; min-height: 0; max-height: none; }
}
/* The card is one link: its title, stretched over the card. */
.gh-page .gh-card { position: relative; }
.gh-page .gh-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--gh-radius); }
.gh-page .gh-card__title a:focus-visible { outline: none; }
.gh-page .gh-card:focus-within { outline: 3px solid var(--gh-blue); outline-offset: 2px; }
.gh-page .gh-card:hover .gh-card__more span { text-decoration: underline; }

/* ---- pages of twelve (ui.js, pageGuideList) ---------------------------- */
.gh-page .gh-card[hidden] { display: none; }
.gh-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 26px;
}
.gh-pager[hidden] { display: none; }
.gh-pager__pages { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gh-pager__step, .gh-pager__page {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--sheet);
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(14, 44, 76, 0.06);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.gh-pager__step { color: var(--gh-blue); }
.gh-pager__step--prev .gh-pager__svg { transform: rotate(180deg); }
.gh-pager__svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.gh-pager__step:hover:not(:disabled), .gh-pager__page:hover { border-color: var(--gh-blue); }
.gh-pager__page[aria-current="page"] {
  background: var(--gh-blue);
  border-color: var(--gh-blue);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(31, 107, 201, 0.55);
}
.gh-pager__step:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.gh-pager__step:focus-visible, .gh-pager__page:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
#gh-all-title:focus { outline: none; }
/* Nine page buttons and the two arrows need 590px in one row, and a phone
   has 288 to 382px: the row ran off both edges, taking the arrows and the
   first and last pages with it. Below 640px the numbers sit in rows of five
   between the arrows -- 5 + 4 for nine pages -- each as wide as the row
   allows, up to the 46px they have on a desktop. The order the buttons are
   read and tabbed in is the order they always had; only the wrapping is new.
   Six to a row from eleven pages, so a page of articles added later does not
   leave one button alone on a row. */
@media (max-width: 639px) {
  .gh-pager { display: grid; grid-template-columns: auto minmax(0, max-content) auto; gap: 8px; }
  .gh-pager__pages { display: grid; grid-template-columns: repeat(5, minmax(0, 46px)); justify-content: center; gap: 6px; }
  .gh-pager__pages:has(> li:nth-child(11)) { grid-template-columns: repeat(6, minmax(0, 46px)); }
  .gh-pager__page { width: 100%; min-width: 0; padding: 0; }
}

/* The new page's cards slide in from the side the reader went towards. */
@keyframes gh-from-right { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes gh-from-left { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.gh-slide--from-right > li { animation: gh-from-right 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.gh-slide--from-left > li { animation: gh-from-left 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .gh-slide--from-right > li, .gh-slide--from-left > li { animation: none; }
}
/* The cards may slide a little past the column while they arrive. */
.gh-all { overflow-x: clip; overflow-clip-margin: 8px; }

/* ---- the category archives (build-documents.js -> categoryBody) --------- */
.gh-page .gh-hero h1.doc__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
  line-height: 1.12;
  color: var(--accent-deep);
  text-wrap: balance;
}
.gh-page .gh-hero .doc__lede { margin: 0; }
.gh-page .gh-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
@media (max-width: 1199px) { .gh-page .gh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 619px) { .gh-page .gh-cards { grid-template-columns: minmax(0, 1fr); } }
.gh-page .gh-card .cat-list__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  line-height: 1.3;
  text-wrap: balance;
}
.gh-page .gh-card .cat-list__title a { color: var(--accent-deep); text-decoration: none; }
.gh-page .gh-card .cat-list__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--gh-radius); }
.gh-page .gh-card .cat-list__title a:focus-visible { outline: none; }
.gh-page .gh-card .cat-list__title a:hover { color: var(--gh-blue); text-decoration: underline; }
.gh-page .gh-card .cat-list__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* This archive's own tile and topic row, lit; "All articles" goes plain. */
.gh-pill--off { background: var(--sheet); border-color: var(--rule); }
.gh-pill--off .gh-pill__icon { background: var(--accent-wash); color: var(--gh-blue); }
.gh-pill--off .gh-pill__name { color: var(--accent-deep); }
.gh-pill--off .gh-pill__count { color: var(--ink-soft); }
.gh-pill--off:hover { background: var(--sheet); border-color: var(--gh-blue); }
.gh-pill--on { border-color: var(--gh-blue); box-shadow: 0 0 0 2px var(--gh-blue) inset, var(--gh-shadow); }
.gh-side__link--on { box-shadow: 0 0 0 2px var(--gh-blue) inset; }
.gh-side__link--on .gh-side__name { color: var(--gh-blue); }

.gh-calcs { margin-bottom: 24px; }
.gh-page .gh-calcs .doc__map {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gh-page .gh-calcs .doc__map a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(14, 44, 76, 0.05);
}
.gh-page .gh-calcs .doc__map a:hover { border-color: var(--gh-blue); color: var(--gh-blue); }
.gh-page .doc__back { margin: 0 0 10px; }
.gh-page .doc__back a { color: var(--gh-blue); font-weight: 700; }
/* The archive list used to be rows with rules between them; as cards, none. */
.gh-page .cat-list__item.gh-card,
.gh-page .cat-list__item.gh-card:last-child { padding: 0; border: 1px solid var(--rule); }
/* A banner whose picture carries what matters at its right edge (an owner's
   picture with text cards there): keep that edge in view. */
.gh-hero__img--right { object-position: 100% 30%; }
@media (max-width: 899px) { .gh-hero__img--right { object-position: 100% 25%; } }
