/*
 * HelpAlong Updates and NDIS article system — v12.13.0
 * Scoped to the WordPress posts index and ordinary single posts.
 */

.ha-updates-hero,
.ha-article-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.6rem, 7vw, 6.75rem);
  border-bottom: 1px solid #d7e5ea;
  background: var(--ha-page-hero-background);
}

.ha-updates-hero::before,
.ha-article-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -13rem;
  right: -10rem;
  width: min(38rem, 58vw);
  aspect-ratio: 1;
  border: 1px solid rgba(56, 165, 193, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, .34), 0 0 0 10rem rgba(255, 255, 255, .2);
  pointer-events: none;
}

.ha-updates-hero .ha-breadcrumbs,
.ha-article-hero .ha-breadcrumbs { margin-bottom: clamp(1.8rem, 4vw, 3rem); }

.ha-updates-hero__grid,
.ha-article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  align-items: center;
  gap: clamp(2.4rem, 6vw, 6rem);
}

.ha-updates-hero__copy,
.ha-article-hero__copy { min-width: 0; }

.ha-updates-hero h1,
.ha-article-hero h1 {
  max-width: 900px;
  margin-bottom: 1.15rem;
  font-size: clamp(2.65rem, 5.5vw, 5.35rem);
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}

.ha-article-hero h1 { font-size: clamp(2.45rem, 4.7vw, 4.65rem); }
.ha-updates-hero .ha-page-lead,
.ha-article-hero .ha-page-lead { max-width: 760px; margin-bottom: 0; color: #38545f; line-height: 1.65; }

.ha-updates-assurance {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(16, 43, 58, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 22px 56px rgba(16, 43, 58, .1);
  backdrop-filter: blur(8px);
}

.ha-updates-assurance .ha-card-kicker { margin-bottom: 1rem; color: var(--ha-primary); }
.ha-updates-assurance ul { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.ha-updates-assurance li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: .75rem; color: #29444f; font-size: .92rem; font-weight: 700; line-height: 1.5; }
.ha-updates-assurance .ha-icon { width: 21px; height: 21px; margin-top: .05rem; color: var(--ha-secondary-dark); }

.ha-updates-library { background: linear-gradient(180deg, #fff, #f8fbfc 70%, #fff); }
.ha-updates-library__intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, .65fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #dbe7eb;
}

.ha-updates-library__intro h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3.35rem); letter-spacing: -.04em; }
.ha-updates-library__intro > p { margin: 0; color: #46606b; line-height: 1.7; }

.ha-updates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }
.ha-updates-grid .ha-post-card {
  position: relative;
  border-color: #d5e3e8;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(16, 43, 58, .055);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.ha-updates-grid .ha-post-card:hover {
  border-color: #a9cbd4;
  box-shadow: 0 20px 44px rgba(16, 43, 58, .1);
  transform: translateY(-3px);
}

.ha-updates-grid .ha-post-card--featured { grid-column: span 2; display: grid; grid-template-columns: minmax(250px, .9fr) minmax(0, 1.1fr); }
.ha-updates-grid .ha-post-card--featured .ha-post-media { height: 100%; min-height: 320px; aspect-ratio: auto; }
.ha-updates-grid .ha-post-card--featured .ha-post-card__body { justify-content: center; padding: clamp(1.6rem, 4vw, 2.5rem); }
.ha-updates-grid .ha-post-card--featured h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.035em; }

.ha-updates-grid .ha-post-media--fallback,
.ha-related-section .ha-post-media--fallback {
  position: relative;
  min-height: 190px;
  background:
    radial-gradient(circle at 12% 86%, rgba(157, 43, 120, .12), transparent 8rem),
    linear-gradient(135deg, #edf8fb, #fff 62%, #fdf5fa);
}

.ha-updates-grid .ha-post-media--fallback::before,
.ha-related-section .ha-post-media--fallback::before {
  content: "";
  position: absolute;
  top: -25%;
  right: -18%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(56, 165, 193, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgba(255, 255, 255, .36);
}

.ha-updates-grid .ha-post-media__icon,
.ha-related-section .ha-post-media__icon { z-index: 1; border: 0; background: #38a5c1; color: #fff; box-shadow: 0 14px 30px rgba(24, 121, 147, .2); }
.ha-post-card__topic { margin: 0 0 .55rem !important; color: var(--ha-primary) !important; font-size: .72rem !important; font-weight: 850; letter-spacing: .08em; line-height: 1.35 !important; text-transform: uppercase; }
.ha-updates-grid .ha-post-card__body > p:not(.ha-post-card__topic) { line-height: 1.65; }
.ha-updates-grid .ha-text-link { width: fit-content; }

.ha-updates-pagination { margin-top: clamp(2rem, 5vw, 3.5rem); }
.ha-updates-pagination .nav-links { padding: .55rem; border: 1px solid #d2e0e5; border-radius: 13px; background: #fff; box-shadow: 0 10px 28px rgba(16, 43, 58, .05); }
.ha-updates-pagination .prev,
.ha-updates-pagination .next { gap: .45rem; min-width: 112px; }
.ha-updates-pagination .prev .ha-icon { transform: rotate(180deg); }
.ha-updates-pagination .ha-icon { width: 16px; height: 16px; }

.ha-updates-next { padding-block: clamp(2.5rem, 5vw, 4.5rem); border-block: 1px solid #d8e5e9; background: #f2f8fa; }
.ha-updates-next__inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; }
.ha-updates-next__inner > div:first-child { max-width: 780px; }
.ha-updates-next h2 { margin-bottom: .45rem; font-size: clamp(1.75rem, 3vw, 2.55rem); }
.ha-updates-next p:last-child { margin: 0; color: #46606b; line-height: 1.65; }
.ha-updates-next__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: .7rem; }

/* Single article */
.ha-article-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
.ha-article-hero__media { position: relative; overflow: hidden; min-height: 310px; aspect-ratio: 5 / 4; border-radius: 20px; background: #eaf5f8; box-shadow: 0 24px 58px rgba(16, 43, 58, .13); }
.ha-article-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ha-article-hero__media--fallback { display: grid; place-items: center; background: linear-gradient(145deg, #dff2f6, #fff 60%, #f7e8f2); }
.ha-article-hero__media--fallback::before,
.ha-article-hero__media--fallback::after { content: ""; position: absolute; border: 1px solid rgba(56, 165, 193, .22); border-radius: 50%; }
.ha-article-hero__media--fallback::before { width: 86%; aspect-ratio: 1; top: -44%; right: -26%; box-shadow: 0 0 0 3rem rgba(255, 255, 255, .32); }
.ha-article-hero__media--fallback::after { width: 42%; aspect-ratio: 1; bottom: -19%; left: -14%; background: rgba(157, 43, 120, .06); }
.ha-article-hero__media--fallback > span { z-index: 1; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 22px; background: #38a5c1; color: #fff; box-shadow: 0 18px 36px rgba(24, 121, 147, .24); }
.ha-article-hero__media--fallback .ha-icon { width: 44px; height: 44px; }

.ha-article-meta { gap: .65rem 1.1rem; margin-top: 1.45rem; }
.ha-article-meta > span { padding-right: 1rem; border-right: 1px solid #c7d9df; }
.ha-article-meta > span:last-child { padding-right: 0; border-right: 0; }

.ha-article-main { background: linear-gradient(180deg, #f8fbfc 0, #fff 18rem); }
.ha-article-page { padding-block: clamp(3rem, 6vw, 5.5rem); }
.ha-article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(260px, 330px); align-items: start; justify-content: center; gap: clamp(2rem, 5vw, 4.5rem); }
.ha-article-page .ha-reading-surface { padding: clamp(1.6rem, 4vw, 3.6rem); border-radius: 18px; box-shadow: 0 18px 50px rgba(16, 43, 58, .07); }
.ha-article-page .ha-reading-surface > .ha-lead:first-child { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #dbe6e9; color: #294854; font-size: clamp(1.12rem, 2vw, 1.3rem); }
.ha-article-page .ha-reading-surface h2 { scroll-margin-top: 9rem; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.14; }
.ha-article-page .ha-reading-surface h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.ha-article-page .ha-reading-surface p,
.ha-article-page .ha-reading-surface li { color: #304b56; line-height: 1.78; }
.ha-article-page .ha-reading-surface li + li { margin-top: .55rem; }
.ha-article-page .ha-reading-surface a { text-underline-offset: .18em; text-decoration-thickness: .08em; }
.ha-article-page .ha-reading-surface .ha-check-list { display: grid; gap: .7rem; margin: 1.25rem 0 2rem; padding: 0; list-style: none; }
.ha-article-page .ha-reading-surface .ha-check-list li { position: relative; padding-left: 1.8rem; }
.ha-article-page .ha-reading-surface .ha-check-list li::before { content: "✓"; position: absolute; top: .02rem; left: 0; color: var(--ha-secondary-dark); font-weight: 900; }
.ha-article-page .ha-content-callout,
.ha-article-page .ha-source-note { margin-block: 2rem; padding: 1.25rem 1.35rem; border: 1px solid #cfe2e7; border-radius: 12px; background: #f3fafb; }
.ha-article-page .ha-content-callout h2,
.ha-article-page .ha-content-callout h3 { margin-top: 0; font-size: 1.3rem; }
.ha-article-page .ha-source-note { border-left: 4px solid var(--ha-secondary-dark); color: #3d5964; font-size: .9rem; }
.ha-article-page .ha-source-list { margin: .65rem 0 0; padding-left: 1.2rem; }
.ha-article-page .ha-source-list li { font-size: .9rem; }
.ha-article-page .ha-article-note { margin-top: 2.75rem; }

.ha-article-sidebar { position: sticky; top: 130px; display: grid; gap: 1rem; }
.ha-article-sidebar__card { padding: 1.55rem; border: 1px solid #d4e3e7; border-radius: 15px; background: #fff; box-shadow: 0 14px 36px rgba(16, 43, 58, .07); }
.ha-article-sidebar__card h2 { margin-bottom: .7rem; font-size: 1.45rem; }
.ha-article-sidebar__card > p:not(.ha-card-kicker) { color: #49626c; font-size: .9rem; line-height: 1.65; }
.ha-article-sidebar__card nav { display: grid; margin-top: 1.2rem; border-top: 1px solid #dbe6e9; }
.ha-article-sidebar__card nav a { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: .6rem; padding-block: .8rem; border-bottom: 1px solid #dbe6e9; color: var(--ha-navy); font-size: .9rem; font-weight: 800; text-decoration: none; }
.ha-article-sidebar__card nav a:hover { color: var(--ha-primary); }
.ha-article-sidebar__card nav .ha-icon { width: 16px; height: 16px; color: var(--ha-secondary-dark); }
.ha-article-sidebar__notice { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: .8rem; padding: 1.1rem; border-radius: 12px; background: #eaf6f8; }
.ha-article-sidebar__notice > .ha-icon { width: 28px; height: 28px; color: var(--ha-secondary-dark); }
.ha-article-sidebar__notice strong { color: var(--ha-navy); font-size: .88rem; }
.ha-article-sidebar__notice p { margin: .25rem 0 0; color: #435e69; font-size: .79rem; line-height: 1.55; }

.ha-article-page .ha-post-navigation { max-width: 1135px; margin: clamp(2rem, 5vw, 3.5rem) auto 0; }
.ha-article-page .ha-post-navigation > span { padding: 1.15rem 1.25rem; border-radius: 13px; box-shadow: 0 8px 24px rgba(16, 43, 58, .045); }
.ha-article-page .ha-post-navigation a:hover { color: var(--ha-primary); }
.ha-related-section .ha-archive-section-head .ha-text-link { flex: 0 0 auto; }

@media (max-width: 1050px) {
  .ha-updates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ha-updates-grid .ha-post-card--featured { grid-column: 1 / -1; }
  .ha-article-layout { grid-template-columns: minmax(0, 760px); }
  .ha-article-sidebar { position: static; grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr); }
}

@media (max-width: 800px) {
  .ha-updates-hero__grid,
  .ha-article-hero__grid,
  .ha-updates-library__intro { grid-template-columns: 1fr; }
  .ha-updates-hero__grid,
  .ha-article-hero__grid { gap: 2rem; }
  .ha-updates-assurance { max-width: 650px; }
  .ha-article-hero__media { min-height: 240px; aspect-ratio: 16 / 9; }
  .ha-updates-next__inner { align-items: flex-start; flex-direction: column; }
  .ha-updates-next__actions { width: 100%; }
  .ha-article-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .ha-updates-hero,
  .ha-article-hero { padding-block: 3rem; }
  .ha-updates-hero h1,
  .ha-article-hero h1 { font-size: clamp(2.35rem, 13vw, 3.45rem); }
  .ha-updates-grid { grid-template-columns: 1fr; }
  .ha-updates-grid .ha-post-card--featured { display: flex; grid-column: auto; }
  .ha-updates-grid .ha-post-card--featured .ha-post-media { min-height: 190px; aspect-ratio: 16 / 9; }
  .ha-updates-grid .ha-post-card--featured h2 { font-size: 1.45rem; }
  .ha-updates-next__actions { display: grid; }
  .ha-updates-next__actions .ha-button { width: 100%; }
  .ha-article-page .ha-reading-surface { padding: 1.35rem; border-radius: 14px; }
  .ha-article-meta > span { width: 100%; padding-right: 0; border-right: 0; }
  .ha-article-page .ha-post-navigation { grid-template-columns: 1fr; }
  .ha-post-nav-next { text-align: left; }
  .ha-related-section .ha-archive-section-head { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .ha-updates-grid .ha-post-card { transition: none; }
  .ha-updates-grid .ha-post-card:hover { transform: none; }
}

body.ha-high-contrast .ha-updates-hero .ha-page-lead,
body.ha-high-contrast .ha-article-hero .ha-page-lead,
body.ha-high-contrast .ha-updates-library__intro > p,
body.ha-high-contrast .ha-updates-next p,
body.ha-high-contrast .ha-article-page .ha-reading-surface :where(p, li),
body.ha-high-contrast .ha-article-sidebar :where(p, strong) { color: var(--ha-ink); }

body.ha-high-contrast .ha-updates-assurance,
body.ha-high-contrast .ha-post-card,
body.ha-high-contrast .ha-reading-surface,
body.ha-high-contrast .ha-article-sidebar__card { border-color: var(--ha-border); }

@media (forced-colors: active) {
  .ha-updates-assurance,
  .ha-post-card,
  .ha-reading-surface,
  .ha-article-sidebar__card,
  .ha-article-sidebar__notice,
  .ha-updates-pagination .nav-links { border: 1px solid CanvasText; box-shadow: none; }
  .ha-post-media__icon,
  .ha-article-hero__media--fallback > span { border: 1px solid CanvasText; background: Canvas; color: CanvasText; box-shadow: none; }
  .ha-updates-grid .ha-post-card:hover { border-color: Highlight; box-shadow: none; }
}

@media print {
  .ha-article-sidebar,
  .ha-post-navigation,
  .ha-related-section,
  .ha-mobile-actions { display: none !important; }
  .ha-article-hero { padding-block: 1.5rem; background: #fff !important; }
  .ha-article-hero__grid,
  .ha-article-layout { display: block; }
  .ha-article-hero__media { display: none; }
  .ha-article-page .ha-reading-surface { padding: 0; border: 0; box-shadow: none; }
}

/* Updates archive editorial redesign — v12.13.0. Intentionally archive-only. */
.ha-updates-hero {
  padding-block: clamp(3.3rem, 6vw, 5.6rem);
  background:
    radial-gradient(circle at 5% 92%, rgba(157, 43, 120, .08), transparent 22rem),
    linear-gradient(122deg, #94b4bf 0%, #fff 56%, #fdf6fa 100%);
}

.ha-updates-hero::before {
  top: -19rem;
  right: -15rem;
  width: min(40rem, 60vw);
  border-color: rgba(56, 165, 193, .12);
  box-shadow: 0 0 0 4.5rem rgba(255, 255, 255, .3), 0 0 0 9rem rgba(255, 255, 255, .17);
}

.ha-updates-hero .ha-breadcrumbs { margin-bottom: clamp(1.4rem, 3vw, 2.1rem); }
.ha-updates-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr); gap: clamp(2.5rem, 6vw, 5.5rem); }
.ha-updates-hero h1 { margin-bottom: .95rem; font-size: clamp(2.7rem, 5vw, 4.85rem); }
.ha-updates-hero .ha-page-lead { max-width: 690px; font-size: clamp(1.05rem, 1.75vw, 1.22rem); }

.ha-updates-guide {
  padding: clamp(1.3rem, 2.7vw, 1.75rem);
  border: 1px solid rgba(16, 43, 58, .12);
  border-radius: 17px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 22px 56px rgba(16, 43, 58, .1);
  backdrop-filter: blur(8px);
}

.ha-updates-guide > .ha-card-kicker { margin-bottom: .35rem; color: #75195c; }
.ha-updates-guide > h2 { margin: 0 0 1.15rem; font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.2; }
.ha-updates-guide__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.ha-updates-guide__grid > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; min-height: 76px; padding: .7rem; border: 1px solid #dce7ea; border-radius: 11px; background: #f9fbfc; }
.ha-updates-guide__grid > div > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #38a5c1; color: #102b3a; }
.ha-updates-guide__grid > div > span .ha-icon { width: 20px; height: 20px; }
.ha-updates-guide__grid strong,
.ha-updates-guide__grid small { display: block; }
.ha-updates-guide__grid strong { color: var(--ha-navy); font-size: .86rem; line-height: 1.3; }
.ha-updates-guide__grid small { margin-top: .18rem; color: #596e77; font-size: .7rem; line-height: 1.4; }

.ha-updates-index .ha-updates-library {
  padding-block: clamp(3.75rem, 6.5vw, 6.5rem);
  background: linear-gradient(180deg, #fff 0%, #f6f9fa 18rem, #f9fbfc 100%);
}

.ha-updates-library__intro { grid-template-columns: minmax(0, 1fr) minmax(310px, .65fr); align-items: center; margin-bottom: clamp(2.15rem, 4vw, 3.3rem); padding-bottom: 1.5rem; }
.ha-updates-library__intro h2 { font-size: clamp(2rem, 3.5vw, 3.05rem); }
.ha-updates-library__summary > p { margin: 0; color: #46606b; line-height: 1.7; }
.ha-updates-library__summary > span { display: inline-flex; align-items: center; min-height: 32px; margin-top: .8rem; padding: .35rem .7rem; border: 1px solid #c6dce2; border-radius: 8px; background: #fff; color: #526873; font-size: .75rem; font-weight: 800; }

.ha-updates-index .ha-updates-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.ha-updates-index .ha-post-card--updates {
  --ha-update-accent: #6e1d58;
  --ha-update-soft: #fbf2f8;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: stretch;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid #d5e2e6;
  border-top: 4px solid var(--ha-update-accent);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 43, 58, .055);
}

.ha-updates-index .ha-post-topic--provider-choice,
.ha-updates-index .ha-post-topic--getting-started { --ha-update-accent: #7b205f; --ha-update-soft: #fbf1f7; }
.ha-updates-index .ha-post-topic--home-living { --ha-update-accent: #08768b; --ha-update-soft: #edf8fa; }
.ha-updates-index .ha-post-topic--ndis-changes { --ha-update-accent: #3f5f78; --ha-update-soft: #f0f5f8; }
.ha-updates-index .ha-post-topic--everyday-life { --ha-update-accent: #3d7167; --ha-update-soft: #eef7f4; }
.ha-updates-index .ha-post-topic--plan-and-funding { --ha-update-accent: #70521b; --ha-update-soft: #faf6ed; }
.ha-updates-index .ha-post-topic--ndis-information { --ha-update-accent: #385c6b; --ha-update-soft: #f0f6f8; }

.ha-updates-index .ha-post-card--updates:hover {
  border-color: #aacbd4;
  border-top-color: var(--ha-update-accent);
  box-shadow: 0 17px 38px rgba(16, 43, 58, .095);
  transform: translateY(-3px);
}

.ha-updates-index .ha-post-card--updates .ha-post-media {
  align-self: start;
  width: 48px;
  height: 48px;
  min-height: 0;
  margin: 1.25rem 0 0 1.15rem;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 11px;
  background: #38a5c1;
}

.ha-updates-index .ha-post-card--updates .ha-post-media img { width: 100%; height: 100%; object-fit: cover; }
.ha-updates-index .ha-post-card--updates .ha-post-media--fallback::before { display: none; }
.ha-updates-index .ha-post-card--updates .ha-post-media__icon { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.ha-updates-index .ha-post-card--updates .ha-post-media__icon .ha-icon { width: 23px; height: 23px; }

.ha-updates-index .ha-post-card--updates .ha-post-card__body { justify-content: flex-start; padding: 1.2rem 1.25rem 1.25rem .95rem; }
.ha-updates-index .ha-post-card--updates .ha-post-card__topic { margin-bottom: .45rem !important; color: var(--ha-update-accent) !important; font-size: .68rem !important; }
.ha-updates-index .ha-post-card--updates .ha-post-card__meta { gap: .3rem .65rem; margin-bottom: .65rem; color: #647780; font-size: .68rem; }
.ha-updates-index .ha-post-card--updates h3 { margin: 0 0 .55rem; font-size: clamp(1.05rem, 1.45vw, 1.2rem); line-height: 1.28; }
.ha-updates-index .ha-post-card--updates h3 a { color: var(--ha-navy); text-decoration: none; }
.ha-updates-index .ha-post-card--updates .ha-post-card__body > p:not(.ha-post-card__topic) { margin: 0 0 1rem; color: #526873; font-size: .84rem; line-height: 1.6; }
.ha-updates-index .ha-post-card--updates .ha-text-link { align-self: flex-start; margin-top: auto; color: var(--ha-update-accent); font-size: .82rem; }

.ha-updates-index .ha-post-card--featured {
  grid-column: 1 / -1;
  grid-template:
    "body visual" minmax(285px, auto)
    / minmax(0, 1.25fr) minmax(300px, .75fr);
  min-height: 0;
  border-top-width: 5px;
}

.ha-updates-index .ha-post-card--featured .ha-post-card__body { grid-area: body; justify-content: center; max-width: 820px; padding: clamp(1.8rem, 4vw, 2.7rem); }
.ha-updates-index .ha-post-card--featured .ha-post-media { grid-area: visual; align-self: stretch; width: auto; height: auto; min-height: 100%; margin: 0; border-radius: 0; background: var(--ha-update-soft); }
.ha-updates-index .ha-post-card--featured .ha-post-media--fallback { position: relative; display: grid; place-items: center; }
.ha-updates-index .ha-post-card--featured .ha-post-media--fallback::before { display: block; top: -28%; right: -18%; width: 80%; border-color: color-mix(in srgb, var(--ha-update-accent) 20%, transparent); box-shadow: 0 0 0 3rem rgba(255,255,255,.35); }
.ha-updates-index .ha-post-card--featured .ha-post-media__icon { width: 84px; height: 84px; border-radius: 19px; background: #38a5c1; box-shadow: 0 16px 34px rgba(16, 43, 58, .14); }
.ha-updates-index .ha-post-card--featured .ha-post-media__icon .ha-icon { width: 38px; height: 38px; }
.ha-updates-index .ha-post-card--featured h2 { max-width: 780px; margin: 0 0 .7rem; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.12; }
.ha-post-card__feature-label { align-self: flex-start; display: inline-flex; margin-bottom: .75rem; padding: .32rem .58rem; border-radius: 7px; background: var(--ha-update-soft); color: var(--ha-update-accent); font-size: .66rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }

.ha-updates-index .ha-updates-pagination { display: flex; justify-content: center; margin-top: clamp(2.2rem, 4vw, 3.25rem); }
.ha-updates-index .ha-updates-pagination .nav-links { display: inline-flex; width: auto; margin: 0; padding: .4rem; border-radius: 11px; }
.ha-updates-index .ha-updates-pagination .page-numbers { min-width: 42px; min-height: 42px; border-radius: 7px; }

.ha-updates-index .ha-updates-next { padding-block: clamp(2.7rem, 5vw, 4rem); background: linear-gradient(125deg, #eef6f8, #fff 60%, #faf2f7); }
.ha-updates-index .ha-updates-next__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; }
.ha-updates-next__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #38a5c1; color: #102b3a; }
.ha-updates-next__icon .ha-icon { width: 27px; height: 27px; }
.ha-updates-index .ha-updates-next h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }

@media (max-width: 1080px) {
  .ha-updates-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 2.5rem; }
  .ha-updates-index .ha-updates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ha-updates-index .ha-post-card--featured { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .ha-updates-hero__grid,
  .ha-updates-library__intro { grid-template-columns: 1fr; }
  .ha-updates-guide { max-width: 720px; }
  .ha-updates-index .ha-updates-next__inner { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .ha-updates-index .ha-updates-next__actions { grid-column: 1 / -1; width: auto; }
}

@media (max-width: 680px) {
  .ha-updates-hero { padding-block: 2.75rem 3.2rem; }
  .ha-updates-hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .ha-updates-guide__grid { grid-template-columns: 1fr; }
  .ha-updates-index .ha-updates-grid { grid-template-columns: 1fr; }
  .ha-updates-index .ha-post-card--featured {
    grid-column: auto;
    grid-template: "visual body" auto / 68px minmax(0, 1fr);
    min-height: 270px;
  }
  .ha-updates-index .ha-post-card--featured .ha-post-media { align-self: start; width: 48px; height: 48px; min-height: 0; margin: 1.25rem 0 0 1.15rem; border-radius: 11px; background: #38a5c1; }
  .ha-updates-index .ha-post-card--featured .ha-post-media--fallback::before { display: none; }
  .ha-updates-index .ha-post-card--featured .ha-post-media__icon { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
  .ha-updates-index .ha-post-card--featured .ha-post-media__icon .ha-icon { width: 23px; height: 23px; }
  .ha-updates-index .ha-post-card--featured .ha-post-card__body { justify-content: flex-start; padding: 1.2rem 1.25rem 1.25rem .95rem; }
  .ha-updates-index .ha-post-card--featured h2 { font-size: 1.35rem; line-height: 1.22; }
  .ha-updates-index .ha-updates-next__inner { grid-template-columns: 1fr; }
  .ha-updates-index .ha-updates-next__actions { grid-column: auto; display: grid; width: 100%; }
}

@media (max-width: 430px) {
  .ha-updates-index .ha-post-card--updates,
  .ha-updates-index .ha-post-card--featured { grid-template: "visual" auto "body" auto / 1fr; min-height: 0; }
  .ha-updates-index .ha-post-card--updates .ha-post-media,
  .ha-updates-index .ha-post-card--featured .ha-post-media { grid-area: visual; margin: 1.1rem 0 0 1.1rem; }
  .ha-updates-index .ha-post-card--updates .ha-post-card__body,
  .ha-updates-index .ha-post-card--featured .ha-post-card__body { grid-area: body; padding: .9rem 1.1rem 1.2rem; }
}
