:root {
  --hib-cream: #fffaf0;
  --hib-paper: #ffffff;
  --hib-ink: #183126;
  --hib-forest: #2f7138;
  --hib-forest-dark: #1f542b;
  --hib-sage: #e7f0df;
  --hib-yellow: #ffc84a;
  --hib-peach: #ffe0c2;
  --hib-lavender: #eee7f8;
  --hib-muted: #5d6b63;
  --hib-border: #d8e1d6;
  --hib-shadow: 0 18px 50px rgba(26, 66, 38, 0.1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--hib-cream);
  color: var(--hib-ink);
}

a { text-underline-offset: 0.2em; }
a:hover { text-decoration: underline; }

.hib-announcement {
  background: var(--hib-forest-dark);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.55rem 1rem;
  text-align: center;
}

.hib-site-header {
  background: rgba(255, 250, 240, 0.96);
  border-bottom: 1px solid var(--hib-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-bar .hib-site-header { top: 32px; }

.hib-header-inner {
  align-items: center;
  display: flex;
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
  justify-content: space-between;
  min-height: 78px;
}

.hib-header-search {
  flex: 0 0 auto;
  margin: 0;
}

.hib-header-search .wp-block-search__button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 42px;
}

.hib-header-search .wp-block-search__inside-wrapper {
  gap: 0.75rem;
  margin: 0;
}

.hib-header-search.wp-block-search__button-only:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
  max-width: 100%;
  width: min(215px, 62vw);
}

.hib-header-search .wp-block-search__input { min-width: 0; }

.hib-primary-nav {
  align-items: center;
  display: flex;
  gap: clamp(0.65rem, 1.1vw, 1.15rem);
  margin-left: auto;
}

.hib-primary-nav a {
  color: var(--hib-ink);
  font-size: clamp(0.76rem, 0.88vw, 0.88rem);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hib-primary-nav a:hover,
.hib-primary-nav a:focus-visible { color: var(--hib-forest); text-decoration: underline; }

.hib-menu-toggle,
.hib-menu-close,
.hib-menu-scrim { display: none; }

.hib-brand {
  background: url("../images/helpfulinfobase-logo.png") left center / contain no-repeat;
  display: block;
  flex: 0 0 auto;
  height: 54px;
  width: clamp(220px, 25vw, 310px);
}

.hib-brand:focus-visible {
  border-radius: 6px;
  outline: 3px solid var(--hib-yellow);
  outline-offset: 4px;
}

.hib-brand .screen-reader-text {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.hib-section { padding: clamp(3.5rem, 7vw, 6rem) 1.25rem; }

.hib-trending-list .wp-block-post {
  background: var(--hib-paper);
  border: 1px solid var(--hib-border);
  border-radius: 16px;
  padding: 1.1rem;
}

.hib-trending-list .wp-block-post-featured-image { margin-bottom: 1rem; }
.hib-trending-list .wp-block-post-featured-image img { aspect-ratio: 16 / 9; max-height: 230px; object-fit: cover; width: 100%; }
.hib-trending-list .wp-block-post-title { font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important; line-height: 1.2; margin-block: 0.45rem; }
.hib-trending-list .wp-block-post-excerpt { font-size: 1rem; line-height: 1.55; }

.hib-site-footer {
  background: var(--hib-forest-dark);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 3rem;
  padding: 2.25rem 1.25rem 1.25rem;
}

.hib-site-footer a { color: white; }
.hib-site-footer .wp-block-columns { gap: clamp(1.25rem, 4vw, 3rem); margin-bottom: 1.25rem; }
.hib-site-footer h2,
.hib-site-footer h3 { margin-block: 0 0.55rem; }
.hib-site-footer p { margin-block: 0.4rem; }
.hib-site-footer ul { margin-block: 0; }
.hib-site-footer li + li { margin-top: 0.3rem; }
.hib-footer-note { color: rgba(255, 255, 255, 0.7); font-size: 0.86rem; }
.hib-footer-links { align-items: center; display: flex; flex-wrap: wrap; gap: 0.35rem 0.7rem; justify-content: center; }
.hib-footer-links > span[aria-hidden="true"] { color: rgba(255, 255, 255, 0.42); }

.hib-published-date { margin-bottom: 1.25rem; }

.hib-breadcrumbs {
  color: var(--hib-muted);
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.9rem;
}

.hib-breadcrumbs a { color: var(--hib-muted); }
.hib-breadcrumbs__sep { margin: 0 0.4rem; }
.hib-breadcrumbs [aria-current="page"] { color: var(--hib-ink); }

.hib-byline {
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0 1.75rem;
}

.hib-byline .wp-block-avatar { flex: 0 0 auto; margin: 0; }
.hib-byline .wp-block-avatar img { border-radius: 999px; display: block; }

.hib-byline__meta { gap: 0.15rem !important; }

.hib-byline__name {
  color: var(--hib-ink);
  display: block;
  font-weight: 800;
}

.hib-byline__dates {
  align-items: center;
  color: var(--hib-muted);
  font-size: 0.86rem;
  gap: 0.6rem !important;
}

.hib-byline__dates > * { margin: 0; }

.hib-byline__dates > *:not(:last-child)::after {
  color: var(--hib-border);
  content: "\00B7";
  margin-left: 0.6rem;
}

.hib-byline__date--updated { color: var(--hib-forest-dark); }

.hib-author-card {
  align-items: flex-start;
  background: var(--hib-paper);
  border: 1px solid var(--hib-border);
  border-radius: 12px;
  gap: 1rem;
  margin: 2.5rem 0 1rem;
  padding: 1.25rem;
}

.hib-author-card .wp-block-avatar { flex: 0 0 auto; margin: 0; }
.hib-author-card .wp-block-avatar img { border-radius: 999px; display: block; }
.hib-author-card__label { color: var(--hib-muted); font-size: 0.8rem; margin: 0 0 0.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
.hib-author-card__name { display: block; font-weight: 800; margin-bottom: 0.35rem; }
.hib-author-card__bio { color: var(--hib-ink); font-size: 0.96rem; line-height: 1.55; margin: 0; }

.hib-spoiler-warning {
  background: var(--hib-yellow);
  border-radius: 8px;
  color: #17251d;
  font-weight: 700;
  margin-block: 1.75rem;
  padding: 0.85rem 1.1rem;
}

.hib-spoiler-warning p { margin: 0; }

.hib-article-callout--update { border-left-color: var(--hib-forest-dark); }
.hib-article-callout--correction { background: #fbeceb; border-left-color: #a33b32; }

.hib-quick-facts { margin-block: 1.75rem; }
.hib-quick-facts__table td { padding: 0.5rem 0.75rem; vertical-align: top; }
.hib-quick-facts__table td:first-child { color: var(--hib-muted); width: 40%; }

.hib-related {
  background: var(--hib-sage);
  border-radius: 12px;
  margin-block: 2rem;
  padding: 1.25rem 1.5rem;
}

.hib-related__list { margin: 0; }
.hib-related__list li + li { margin-top: 0.4rem; }

.hib-article-intro {
  color: #314a3a;
  font-size: clamp(1.2rem, 2.5vw, 1.42rem) !important;
  line-height: 1.55;
}

.hib-article-callout {
  background: #edf5e8;
  border-left: 5px solid var(--hib-forest);
  border-radius: 8px;
  margin-block: 1.75rem;
  padding: 1rem 1.25rem;
}

.hib-article-callout p { margin: 0; }
.hib-article-stock {
  background: #dfe4df;
  border-radius: 5px;
  height: clamp(210px, 38vw, 380px);
  margin: 1.75rem 0 2rem;
  max-height: 380px;
  max-width: 100%;
  position: relative;
  width: 100%;
}

.hib-article-stock > img {
  border-radius: 5px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hib-article-stock__info {
  align-items: center;
  background: rgba(17, 24, 20, 0.9);
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: 0.55rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: Georgia, serif;
  font-size: 0.78rem;
  font-weight: 800;
  height: 25px;
  justify-content: center;
  left: 0.55rem;
  line-height: 1;
  padding: 0;
  position: absolute;
  width: 25px;
  z-index: 3;
}

.hib-article-stock__info:hover,
.hib-article-stock__info:focus-visible { background: #111; outline: 3px solid #ffc84a; outline-offset: 2px; }

.hib-article-stock__panel {
  background: #fff;
  border: 2px solid #be1455;
  border-radius: 6px;
  bottom: 0;
  box-shadow: 0 14px 32px rgba(23, 31, 26, 0.2);
  color: #26372e;
  font-size: 0.86rem;
  left: 0;
  line-height: 1.45;
  max-width: calc(100vw - 2rem);
  padding: 0.9rem 2rem 0.9rem 0.9rem;
  position: absolute;
  transform: translateY(calc(100% - 1px));
  width: 340px;
  z-index: 20;
}

.hib-article-stock__panel[hidden] { display: none !important; }
.hib-article-stock__panel p { font-size: inherit; margin: 0.35rem 0 0.5rem; }
.hib-article-stock__close { background: transparent; border: 0; color: #be1455; cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 0; position: absolute; right: 0.45rem; top: 0.35rem; }
.hib-source-title { border-top: 1px solid var(--hib-border); margin-top: 3rem; padding-top: 1.5rem; }
.hib-source-list { font-size: 0.96rem !important; }
.hib-source-list li + li { margin-top: 0.55rem; }

/* Replace Jetpack's editable legacy row with one consistent reader-facing share bar. */
.sharedaddy,
.sd-sharing-enabled,
.wp-block-jetpack-sharing-buttons { display: none !important; }

.hib-share {
  border-top: 1px solid var(--hib-border);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
}

.hib-share h2 { font-size: 1.35rem; margin: 0 0 0.85rem; }

.hib-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hib-share__button {
  align-items: center;
  background: #fff;
  border: 1px solid #aebcb2;
  border-radius: 999px;
  box-sizing: border-box;
  color: var(--hib-forest-dark);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  height: 46px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  text-decoration: none;
  vertical-align: middle;
  width: 46px;
}

.hib-share__icon {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  flex: 0 0 22px;
  height: 22px;
  margin: 0;
  width: 22px;
}

.hib-share__icon--facebook { background-image: url("../icons/facebook.svg"); }
.hib-share__icon--x { background-image: url("../icons/x.svg"); }
.hib-share__icon--linkedin { background-image: url("../icons/linkedin.svg"); }
.hib-share__icon--instagram { background-image: url("../icons/instagram.svg"); }
.hib-share__icon--link { background-image: url("../icons/link.svg"); filter: invert(1); }

.hib-share__button:hover,
.hib-share__button:focus-visible {
  background: var(--hib-sage);
  border-color: var(--hib-forest);
  outline: 2px solid transparent;
  text-decoration: none;
}

.hib-share__button--copy { background: var(--hib-forest); border-color: var(--hib-forest); color: #fff; }
.hib-share__button--copy:hover,
.hib-share__button--copy:focus-visible { background: var(--hib-forest-dark); color: #fff; }
.hib-share__status { color: var(--hib-muted); font-size: 0.88rem; margin: 0.65rem 0 0; min-height: 1.35em; }

.wp-block-post-content > p,
.wp-block-post-content > ul,
.wp-block-post-content > ol { font-size: 1.08rem; }

.hib-article-featured-image,
.wp-block-post-featured-image {
  margin: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.75rem, 4vw, 2.75rem);
}

.hib-article-featured-image img,
.wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.wp-block-post-content .wp-block-table {
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
  overflow-x: auto;
}

.wp-block-post-content .wp-block-table table {
  border: 1px solid #93a59a;
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

.wp-block-post-content .wp-block-table th,
.wp-block-post-content .wp-block-table td {
  border: 1px solid #93a59a;
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.wp-block-post-content .wp-block-table th {
  background: var(--hib-sage);
  color: var(--hib-ink);
  font-weight: 800;
}

.wp-block-post-content .wp-block-table tbody tr:nth-child(even) {
  background: #f7faf6;
}

.wp-block-post-content .wp-block-table figcaption {
  color: var(--hib-muted);
  font-size: 0.88rem;
  margin-top: 0.55rem;
  text-align: left;
}

/* Homepage modules & the [hib_post_list] shortcode output shared across them. */

.hib-home-intro {
  padding: clamp(3.25rem, 6vw, 5.5rem) 1.25rem clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.hib-home-intro h1 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hib-home-intro p {
  color: #40564a;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  margin-inline: auto;
  max-width: 760px;
}

.hib-section-heading { margin-bottom: 1.5rem; }
.hib-section-heading h2,
.hib-section-heading h3 { margin: 0; }
.hib-section-note { color: var(--hib-muted); font-size: 0.92rem; margin: 0.3rem 0 0; }

.hib-topic-hubs { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.hib-topic-hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hib-topic-hub-card {
  background: var(--hib-paper);
  border: 1px solid var(--hib-border);
  border-radius: 16px;
  color: var(--hib-ink);
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-width: 0;
  min-height: 245px;
  padding: 1.25rem;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.hib-topic-hub-card:hover,
.hib-topic-hub-card:focus-visible {
  box-shadow: var(--hib-shadow);
  text-decoration: none;
  transform: translateY(-3px);
}

.hib-topic-hub-card::before {
  background: var(--hib-forest);
  border-radius: 999px;
  content: "";
  height: 6px;
  margin-bottom: 1rem;
  width: 54px;
}

.hib-topic-hub-card--sports::before { background: #da6b35; }
.hib-topic-hub-card--tech::before { background: #336dc3; }
.hib-topic-hub-card--money::before { background: #8b5aa8; }
.hib-topic-hub-card--consumer::before { background: #c58a2c; }
.hib-topic-hub-card:nth-child(4) { grid-column: 2 / span 2; }
.hib-topic-hub-card:nth-child(5) { grid-column: 4 / span 2; }
.hib-topic-hub-card__number { color: var(--hib-muted); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; }
.hib-topic-hub-card strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.28rem, 1.8vw, 1.7rem); line-height: 1.1; margin: 0.45rem 0 0.7rem; }
.hib-topic-hub-card > span:not(.hib-topic-hub-card__number) { color: #40564a; font-size: 0.92rem; line-height: 1.5; }
.hib-topic-hub-card em { color: var(--hib-forest-dark); font-size: 0.84rem; font-style: normal; font-weight: 800; margin-top: auto; padding-top: 1rem; }

.hib-post-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.hib-latest-stories .hib-post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hib-recently-updated .hib-post-list { grid-template-columns: 1fr; }

.hib-post-list__item {
  background: var(--hib-paper);
  border: 1px solid var(--hib-border);
  border-radius: 14px;
  overflow: hidden;
  padding: 1rem;
}

.hib-recently-updated .hib-post-list__item {
  align-items: baseline;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hib-border);
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 1rem 0;
}

.hib-post-list__item--with-image { grid-column: 1 / -1; padding: 0; }
.hib-post-list__item--with-image article { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.hib-post-list__media { display: block; flex: 1 1 320px; }
.hib-post-list__media img { border-radius: 12px 0 0 12px; display: block; height: 100%; max-height: 280px; object-fit: cover; width: 100%; }
.hib-post-list__item--with-image .hib-post-list__body { flex: 1 1 260px; padding: 1.25rem 1.25rem 1.25rem 0; }

.hib-trending-now .hib-post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hib-trending-now .hib-post-list__item--with-image,
.hib-latest-stories .hib-post-list__item--with-image,
.hib-popular-explainers .hib-post-list__item--with-image { grid-column: auto; }

.hib-trending-now .hib-post-list__item--with-image article,
.hib-latest-stories .hib-post-list__item--with-image article,
.hib-popular-explainers .hib-post-list__item--with-image article {
  display: block;
}

.hib-trending-now .hib-post-list__item:first-child { grid-column: span 2; }
.hib-trending-now .hib-post-list__media img,
.hib-latest-stories .hib-post-list__media img,
.hib-popular-explainers .hib-post-list__media img {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  height: auto;
  max-height: none;
}

.hib-trending-now .hib-post-list__item--with-image .hib-post-list__body,
.hib-latest-stories .hib-post-list__item--with-image .hib-post-list__body,
.hib-popular-explainers .hib-post-list__item--with-image .hib-post-list__body { padding: 1rem; }

.hib-trending-now .hib-post-list__item:first-child .hib-post-list__title { font-size: clamp(1.45rem, 2.7vw, 2rem); }
.hib-popular-explainers .hib-post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hib-post-list__category {
  color: var(--hib-forest-dark);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.hib-post-list__title { font-size: 1.1rem; line-height: 1.3; margin: 0 0 0.3rem; }
.hib-post-list__item--with-image .hib-post-list__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.hib-post-list__title a { color: var(--hib-ink); text-decoration: none; }
.hib-post-list__title a:hover { color: var(--hib-forest); }

.hib-post-list__excerpt { color: #40564a; font-size: 0.96rem; line-height: 1.5; margin: 0 0 0.3rem; }
.hib-post-list__date { color: var(--hib-muted); font-size: 0.82rem; }
.hib-post-list__empty { color: var(--hib-muted); font-style: italic; }

.hib-category-strips { display: grid; gap: 0; }

.hib-topic-section { border-top: 1px solid var(--hib-border); padding: clamp(2rem, 4vw, 3.5rem) 0; }
.hib-topic-section:first-child { border-top: 0; padding-top: 0.5rem; }
.hib-topic-section:last-child { padding-bottom: 0; }
.hib-topic-section .hib-section-heading > p { flex: 0 0 auto; margin: 0; }
.hib-topic-section .hib-section-heading a { font-weight: 800; }
.hib-topic-section .hib-post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hib-topic-section .hib-post-list__item--with-image { grid-column: auto; }
.hib-topic-section .hib-post-list__item--with-image article { display: block; }
.hib-topic-section .hib-post-list__media img { aspect-ratio: 16 / 9; border-radius: 0; height: auto; max-height: none; }
.hib-topic-section .hib-post-list__item--with-image .hib-post-list__body { padding: 1rem; }
.hib-topic-section .hib-post-list__item--with-image .hib-post-list__title { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.hib-topic-section .hib-post-list__empty { background: var(--hib-cream); border: 1px dashed var(--hib-border); border-radius: 12px; margin: 0; padding: 1rem 1.15rem; }

.hib-about-strip { border-radius: 24px; }
.hib-about-strip a { font-weight: 700; }

/* Category, author, search, and 404 archive scaffolding. */

.hib-category-heading,
.hib-search-heading { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); max-width: none; }
.hib-category-heading .wp-block-query-title,
.hib-search-heading .wp-block-query-title { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.hib-category-heading .taxonomy-description { color: var(--hib-muted); font-size: 1.05rem; max-width: 720px; }

.hib-topic-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.25rem; }
.hib-topic-chips a { background: var(--hib-paper); border: 1px solid var(--hib-border); border-radius: 999px; color: var(--hib-ink); font-size: 0.86rem; font-weight: 800; padding: 0.45rem 0.8rem; text-decoration: none; }
.hib-topic-chips a:hover,
.hib-topic-chips a:focus-visible { background: var(--hib-sage); border-color: var(--hib-forest); text-decoration: none; }

.hib-editorial-notice { background: #f5effa; border-left: 5px solid #8b5aa8; border-radius: 8px; color: #3d3047; line-height: 1.55; margin-top: 1.25rem; max-width: 780px; padding: 1rem 1.15rem; }
.hib-editorial-notice strong { display: block; margin-bottom: 0.2rem; }

.hib-category-start-here { margin-bottom: clamp(2rem, 4vw, 3rem); }
.hib-category-start-here > h2 { margin-bottom: 1.25rem; }
.hib-category-start-here .hib-post-list { grid-template-columns: 1fr; }
.hib-category-start-here .hib-post-list__item { padding: 0; }
.hib-category-start-here .hib-post-list__item article { min-height: 260px; width: 100%; }
.hib-category-start-here .hib-post-list__body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 3vw, 2.1rem);
}
.hib-category-start-here .hib-post-list__item--with-image article {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
}
.hib-category-start-here .hib-post-list__item article:not(:has(.hib-post-list__media)) {
  display: block;
  min-height: 0;
}
.hib-category-start-here .hib-post-list__media { min-height: 100%; }
.hib-category-start-here .hib-post-list__media img {
  border-radius: 0;
  height: 100%;
  max-height: none;
  min-height: 260px;
  object-fit: cover;
}
.hib-category-start-here .hib-post-list__item--with-image .hib-post-list__body {
  padding: clamp(1.35rem, 3vw, 2.1rem);
}
.hib-category-start-here .hib-post-list__title {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  max-width: 22ch;
}
.hib-category-stories > h2 { margin-bottom: 1.25rem; }
.hib-category-stories .hib-post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hib-category-stories .hib-post-list__item--with-image { grid-column: auto; }
.hib-category-stories .hib-post-list__item--with-image article { display: block; }
.hib-category-stories .hib-post-list__media img { aspect-ratio: 16 / 9; border-radius: 0; height: auto; max-height: none; }
.hib-category-stories .hib-post-list__item--with-image .hib-post-list__body { padding: 1.1rem; }
.hib-category-stories .hib-post-list__item--with-image .hib-post-list__title { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }

.hib-author-header { align-items: flex-start; gap: 1.25rem; margin-bottom: 2rem; }
.hib-author-header .wp-block-avatar { flex: 0 0 auto; margin: 0; }
.hib-author-header .wp-block-avatar img { border-radius: 999px; display: block; }
.hib-author-header__bio { color: #40564a; font-size: 1.02rem; line-height: 1.55; margin-top: 0.5rem; }

.hib-404 { text-align: left; }
.hib-404 .wp-block-search { margin: 1.5rem 0 2.5rem; max-width: 420px; }

/*
 * Reserved ad slot heights. Not populated with markup pre-approval; kept here
 * so that dropping an ad unit in later (Ad Inserter or similar) doesn't shift
 * layout. Apply .hib-ad-slot to the wrapper and set a size modifier.
 */
.hib-ad-slot {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-block: 2rem;
  overflow: hidden;
}

.hib-ad-slot--in-article { min-height: 250px; }
.hib-ad-slot--leaderboard { min-height: 90px; }
.hib-ad-slot--sidebar { min-height: 600px; }

@media (max-width: 781px) {
  .admin-bar .hib-site-header { top: 46px; }
  .hib-header-inner { gap: 0.65rem; justify-content: flex-start; min-height: 66px; }
  .hib-brand { height: 46px; width: clamp(175px, 52vw, 235px); }
  .hib-header-search { margin-left: auto; }
  .hib-header-search.wp-block-search__button-only:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper { width: min(190px, 56vw); }
  .hib-site-footer { margin-top: 2rem; padding-top: 1.75rem; }

  .hib-menu-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--hib-ink);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 38px;
    font-size: 1.55rem;
    height: 38px;
    justify-content: center;
    padding: 0;
  }

  .hib-primary-nav {
    align-items: stretch;
    animation: none;
    background: var(--hib-cream);
    box-shadow: 12px 0 35px rgba(13, 34, 21, 0.22);
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100dvh;
    inset: 0 auto 0 0;
    margin: 0;
    max-width: none;
    overflow-y: auto;
    padding: 4.75rem 1.35rem 2rem;
    position: fixed;
    transform: translateX(-105%);
    transition: transform 220ms ease-out;
    width: min(68vw, 240px);
    z-index: 100002;
  }

  .hib-primary-nav.is-open { transform: translateX(0); }

  .hib-primary-nav a {
    border-bottom: 1px solid var(--hib-border);
    display: block;
    font-size: 1rem;
    padding: 0.9rem 0;
    text-align: left;
    width: 100%;
  }

  .hib-menu-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--hib-ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 2rem;
    height: 40px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    width: 40px;
  }

  .hib-menu-scrim:not([hidden]) {
    background: rgba(15, 38, 24, 0.5);
    border: 0;
    display: block;
    inset: 0;
    padding: 0;
    position: fixed;
    z-index: 100001;
  }

  body.hib-menu-open { overflow: hidden; }

  .hib-latest-stories .hib-post-list,
  .hib-trending-now .hib-post-list,
  .hib-topic-section .hib-post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hib-topic-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hib-topic-hub-card,
  .hib-topic-hub-card:nth-child(4),
  .hib-topic-hub-card:nth-child(5) { grid-column: auto; }
  .hib-topic-hub-card { min-height: 220px; }
}

@media (max-width: 620px) {
  .hib-post-list,
  .hib-latest-stories .hib-post-list,
  .hib-trending-now .hib-post-list,
  .hib-popular-explainers .hib-post-list,
  .hib-topic-section .hib-post-list { grid-template-columns: 1fr; }

  .hib-topic-hub-grid { grid-template-columns: 1fr; }
  .hib-category-stories .hib-post-list { grid-template-columns: 1fr; }
  .hib-topic-hub-card { min-height: 0; }
  .hib-topic-section .hib-section-heading { align-items: flex-start; flex-direction: column; gap: 0.75rem; }

  .hib-trending-now .hib-post-list__item:first-child { grid-column: auto; }

  .hib-post-list__item--with-image article { flex-direction: column; }
  .hib-post-list__item--with-image .hib-post-list__body { padding: 0 1rem 1rem; }
  .hib-category-start-here .hib-post-list__item--with-image article { display: block; min-height: 0; }
  .hib-category-start-here .hib-post-list__media { width: 100%; }
  .hib-category-start-here .hib-post-list__media img { aspect-ratio: 16 / 9; height: auto; min-height: 0; width: 100%; }
  .hib-category-start-here .hib-post-list__item--with-image .hib-post-list__body { padding: 1.2rem; width: 100%; }
  .hib-category-start-here .hib-post-list__title { max-width: none; }
}

@keyframes hib-menu-slide-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hib-primary-nav { transition: none; }
}
