/*
 * HelpAlong public content system — v12.0.0
 * Deliberately not enqueued on the Staff Portal, homepage, Careers, Contact or
 * accommodation templates, which each have their own approved design system.
 */

.ha-public-content-page .ha-page-hero {
  padding-block: clamp(3.5rem, 6.5vw, 6.25rem);
  background: var(--ha-page-hero-background);
}

.ha-public-content-page .ha-page-hero h1 {
  max-width: 940px;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.ha-public-content-page .ha-page-lead {
  max-width: 760px;
  color: #48616d;
  line-height: 1.65;
}

.ha-public-content-page .ha-content-index {
  background: linear-gradient(180deg, #fff 0%, #fbfdfe 100%);
}

.ha-archive-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 0 clamp(1.6rem, 4vw, 2.6rem);
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--ha-border);
}

.ha-archive-section-head > div { max-width: 760px; }
.ha-archive-section-head .ha-eyebrow { margin-bottom: .5rem; }
.ha-archive-section-head h2 { margin: 0 0 .55rem; font-size: clamp(1.75rem, 3vw, 2.55rem); }
.ha-archive-section-head p:last-child { margin: 0; color: var(--ha-muted); line-height: 1.65; }

.ha-archive-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid #c7e2e9;
  border-radius: 10px;
  background: #f3fafc;
  color: var(--ha-navy);
  font-size: .82rem;
  font-weight: 800;
}

.ha-content-index .ha-intro-content:empty { display: none; }
.ha-content-index .ha-intro-content:not(:empty) { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.ha-services-index .ha-services-grid--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ha-services-index .ha-service-card { min-height: 300px; padding: 1.55rem; }
.ha-services-index .ha-service-card h3 { font-size: 1.22rem; }
.ha-services-index .ha-service-card p { line-height: 1.65; }

.ha-location-index .ha-location-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 275px;
  padding: 1.55rem;
  overflow: hidden;
}
.ha-location-index .ha-location-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(39, 169, 204, .07);
  pointer-events: none;
}
.ha-location-index .ha-location-card h3 { margin-bottom: .65rem; font-size: 1.35rem; }
.ha-location-index .ha-location-card h3 a { color: var(--ha-navy); text-decoration: none; }
.ha-location-index .ha-location-card .ha-text-link { margin-top: auto; }

.ha-resource-index .ha-resource-card {
  min-height: 245px;
  padding: 1.55rem;
}
.ha-resource-index .ha-resource-card > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.ha-resource-index .ha-resource-card .ha-text-link { margin-top: auto; }

.ha-faq-index .ha-faq-list { gap: .7rem; }
.ha-faq-index .ha-faq-item { border-radius: 14px; box-shadow: 0 8px 24px rgba(16, 43, 58, .045); }
.ha-faq-index .ha-faq-item summary { min-height: 60px; padding: 1.1rem 1.25rem; font-size: 1rem; line-height: 1.45; }
.ha-faq-index .ha-faq-item summary:hover { background: #f8fcfd; }
.ha-faq-index .ha-faq-item[open] { border-color: #b7dce5; }
.ha-faq-index .ha-faq-item[open] summary { color: var(--ha-primary); }
.ha-faq-index .ha-faq-item > div { padding: 0 1.25rem 1.35rem; color: #415b67; line-height: 1.75; }

.ha-generic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.ha-reading-surface {
  min-width: 0;
  padding: clamp(1.45rem, 4vw, 3rem);
  border: 1px solid rgba(16, 43, 58, .09);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(16, 43, 58, .07);
}

.ha-reading-surface .ha-entry-content { color: #304a56; }
.ha-reading-surface .ha-entry-content > h2:first-child { margin-top: 0; }
.ha-reading-surface .ha-entry-content a:not(.ha-button) { text-decoration-thickness: .08em; text-underline-offset: .17em; }

/* Decision-friendly NDIS information components. These are presentation-only
 * patterns for editor content and do not alter forms, post types or portal logic. */
.ha-entry-content .ha-content-callout {
  margin: clamp(1.5rem, 4vw, 2.25rem) 0;
  padding: clamp(1.2rem, 3vw, 1.65rem);
  border: 1px solid #bddde5;
  border-left: 5px solid var(--ha-secondary-dark);
  border-radius: 8px 14px 14px 8px;
  background: linear-gradient(135deg, #f1fafc, #fff 72%);
}
.ha-entry-content .ha-content-callout > :first-child { margin-top: 0; }
.ha-entry-content .ha-content-callout > :last-child { margin-bottom: 0; }
.ha-entry-content .ha-content-callout h2 { font-size: clamp(1.3rem, 2.3vw, 1.7rem); }

.ha-entry-content .ha-source-note {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid #d8e5e9;
  border-radius: 10px;
  background: #f8fbfc;
  color: #4a626d;
  font-size: .9rem;
  line-height: 1.65;
}

.ha-entry-content :where(.ha-decision-grid,.ha-term-grid) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.8rem 0 2.2rem;
}
.ha-entry-content :where(.ha-decision-grid,.ha-term-grid) > div {
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid #d2e3e8;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f6fbfc);
}
.ha-entry-content :where(.ha-decision-grid,.ha-term-grid) h2 {
  margin: .25rem 0 .65rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}
.ha-entry-content :where(.ha-decision-grid,.ha-term-grid) p:last-child { margin-bottom: 0; }
.ha-entry-content .ha-decision-grid > div:first-child { border-top: 4px solid #b34b56; }
.ha-entry-content .ha-decision-grid > div:nth-child(2) { border-top: 4px solid #b57a17; }
.ha-entry-content .ha-decision-grid > div:nth-child(3) { border-top: 4px solid var(--ha-primary); }
.ha-entry-content .ha-term-grid > div { border-top: 4px solid var(--ha-secondary-dark); }
.ha-entry-content .ha-eyebrow { margin-bottom: .25rem; }

.ha-entry-content .ha-step-list { counter-reset: ha-content-step; padding-left: 0; list-style: none; }
.ha-entry-content .ha-step-list > li {
  position: relative;
  min-height: 2.65rem;
  margin: 0 0 .85rem;
  padding: .72rem .85rem .72rem 3.55rem;
  border: 1px solid #dbe7ea;
  border-radius: 10px;
  background: #fff;
}
.ha-entry-content .ha-step-list > li::before {
  counter-increment: ha-content-step;
  content: counter(ha-content-step);
  position: absolute;
  top: .64rem;
  left: .75rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--ha-navy);
  color: #fff;
  font-size: .82rem;
  font-weight: 850;
}

.ha-entry-content .ha-check-list { padding-left: 0; list-style: none; }
.ha-entry-content .ha-check-list > li { position: relative; padding-left: 1.75rem; }
.ha-entry-content .ha-check-list > li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #147351;
  font-weight: 900;
}

.ha-entry-content .ha-content-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ha-entry-content .ha-content-grid h2 { margin: 0 0 .65rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.ha-entry-content .ha-content-grid > div > :last-child { margin-bottom: 0; }
.ha-contact-card > .ha-text-link { display: inline-flex; margin-top: 1.15rem; }

.ha-page-help {
  position: sticky;
  top: calc(var(--ha-header-height, 90px) + 1.5rem);
  padding: 1.55rem;
  border: 1px solid #cfe4ea;
  border-radius: 16px;
  background: linear-gradient(155deg, #f4fafc, #fff 62%, #fff8fb);
  box-shadow: 0 12px 36px rgba(16, 43, 58, .065);
}
.ha-page-help__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 13px;
  background: var(--ha-navy);
  color: #fff;
}
.ha-page-help__icon .ha-icon { width: 25px; height: 25px; }
.ha-page-help h2 { margin-bottom: .65rem; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.ha-page-help > p:not(.ha-card-kicker) { color: var(--ha-muted); font-size: .93rem; line-height: 1.65; }
.ha-page-help__actions { display: grid; gap: 1rem; margin-top: 1.25rem; }
.ha-page-help__actions .ha-button { width: 100%; }

.ha-generic-page--about .ha-content-grid > div {
  position: relative;
  padding: 1.45rem;
  border-color: #d5e6eb;
  background: linear-gradient(145deg, #fff, #f6fbfc);
}
.ha-generic-page--about .ha-content-grid h3 { padding-left: .85rem; border-left: 3px solid var(--ha-secondary); }

.ha-generic-page--story .ha-timeline-content { position: relative; display: grid; gap: 0; padding-left: 2.2rem; }
.ha-generic-page--story .ha-timeline-content::before { content: ""; position: absolute; top: .8rem; bottom: .6rem; left: .45rem; width: 2px; background: #cce4ea; }
.ha-generic-page--story .ha-timeline-content h2 { position: relative; margin-top: 1.75rem; }
.ha-generic-page--story .ha-timeline-content h2::before { content: ""; position: absolute; top: .36em; left: -2.18rem; width: 15px; height: 15px; border: 3px solid #fff; border-radius: 50%; background: var(--ha-primary); box-shadow: 0 0 0 2px #b9dce5; }

.ha-post-grid { gap: 1.25rem; }
.ha-post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
}
.ha-post-card .ha-post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eaf4f7; }
.ha-post-card .ha-post-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ha-post-card:hover .ha-post-media img { transform: scale(1.025); }
.ha-post-card > div { display: flex; flex: 1; flex-direction: column; padding: 1.45rem; }
.ha-post-card h2,.ha-post-card h3 { margin: 0 0 .65rem; font-size: clamp(1.18rem, 2vw, 1.42rem); }
.ha-post-card h2 a,.ha-post-card h3 a { color: var(--ha-navy); }
.ha-post-card > div > p:not(.ha-card-kicker) { color: var(--ha-muted); line-height: 1.65; }
.ha-post-card .ha-text-link { margin-top: auto; }
.ha-post-media--fallback { display: grid; place-items: center; min-height: 190px; background: linear-gradient(145deg, #edf8fb, #fff7fb); color: var(--ha-secondary-dark); }
.ha-post-media__icon { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid #c8e1e8; border-radius: 15px; background: rgba(255,255,255,.72); }
.ha-post-media__icon .ha-icon { width: 30px; height: 30px; }
.ha-post-card__meta { display: flex; flex-wrap: wrap; gap: .35rem .75rem; margin-bottom: .65rem; color: var(--ha-muted); font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .045em; }

.ha-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: 1.3rem;
  color: var(--ha-muted);
  font-size: .84rem;
  font-weight: 700;
}
.ha-article-meta span { display: inline-flex; align-items: center; gap: .42rem; }
.ha-article-meta .ha-icon { width: 17px; height: 17px; color: var(--ha-secondary-dark); }
.ha-article-page .ha-single-image { margin: 0 0 1.5rem; overflow: hidden; border-radius: 18px; }
.ha-article-page .ha-reading-surface { padding: clamp(1.5rem, 4vw, 3rem); }
.ha-article-note { margin-top: 2.5rem; padding: 1.15rem 1.3rem; border-left: 4px solid var(--ha-secondary-dark); border-radius: 0 12px 12px 0; background: #f2f9fb; font-size: .9rem; line-height: 1.65; }

.ha-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.ha-post-navigation > span { display: flex; flex-direction: column; min-width: 0; padding: 1rem 1.1rem; border: 1px solid var(--ha-border); border-radius: 12px; background: #fff; }
.ha-post-navigation small { display: block; margin-bottom: .25rem; color: var(--ha-muted); font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.ha-post-navigation a { color: var(--ha-navy); font-weight: 800; text-decoration: none; }
.ha-post-nav-next { text-align: right; }
.ha-related-section { border-top: 1px solid var(--ha-border); background: #f8fbfc; }

.ha-search-refine {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(280px, 1fr);
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--ha-border);
  border-radius: 14px;
  background: #f7fbfc;
}
.ha-search-refine h2 { margin: 0; font-size: 1.35rem; }
.ha-search-refine .search-form { display: flex; gap: .6rem; }
.ha-search-refine label { flex: 1; }
.ha-search-refine .search-field { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid #a9c3cc; border-radius: 8px; background: #fff; }
.ha-search-refine .search-submit { min-height: 48px; padding: .7rem 1.1rem; border: 0; border-radius: 8px; background: var(--ha-navy); color: #fff; font-weight: 800; cursor: pointer; }

.ha-pagination { margin-top: 2.2rem; }
.ha-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.ha-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .55rem .78rem;
  border: 1px solid #bfd4db;
  border-radius: 9px;
  background: #fff;
  color: var(--ha-navy);
  font-weight: 800;
  text-decoration: none;
}
.ha-pagination .page-numbers.current { border-color: var(--ha-navy); background: var(--ha-navy); color: #fff; }
.ha-pagination a.page-numbers:hover { border-color: var(--ha-secondary-dark); color: var(--ha-secondary-dark); }

.ha-location-next,.ha-resource-related { margin-top: clamp(2.5rem, 5vw, 4rem); }
.ha-next-step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ha-next-step-card { display: flex; flex-direction: column; min-height: 210px; padding: 1.35rem; border: 1px solid var(--ha-border); border-radius: 14px; background: #fff; }
.ha-next-step-card > span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .9rem; border-radius: 11px; background: #eef8fa; color: var(--ha-primary); }
.ha-next-step-card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.ha-next-step-card p { margin-bottom: 1rem; color: var(--ha-muted); font-size: .9rem; line-height: 1.6; }
.ha-next-step-card .ha-text-link { margin-top: auto; }

.ha-content-page--referral .ha-entry-content > .wp-block-group:first-child,
.ha-content-page--feedback-complaints .ha-entry-content > .wp-block-group:first-child,
.ha-content-page--apply .ha-entry-content > .wp-block-group:first-child,
.ha-team-page .ha-entry-content { min-width: 0; }
.ha-content-page--referral .ha-info-panel,
.ha-content-page--feedback-complaints .ha-info-panel,
.ha-content-page--apply .ha-info-panel { margin-top: 0; }
.ha-team-page > .ha-container { max-width: var(--ha-container); }
.ha-team-page .wp-block-columns { gap: 1.25rem; }
.ha-team-page .wp-block-column { padding: 1.25rem; border: 1px solid var(--ha-border); border-radius: 15px; background: #fff; }

.ha-error-page { min-height: 62vh; padding: clamp(4.5rem, 9vw, 8rem) 0; background: linear-gradient(135deg, #f5fbfd, #fff 58%, #fff6fa); }
.ha-error-page .ha-narrow { text-align: center; }
.ha-error-code { margin: 0; color: var(--ha-secondary-dark); font-size: clamp(3.8rem, 12vw, 8rem); font-weight: 900; line-height: .9; letter-spacing: -.06em; }
.ha-error-page h1 { margin-top: 1rem; font-size: clamp(2rem, 5vw, 3.5rem); }
.ha-error-page .search-form { display: flex; max-width: 620px; margin: 1.5rem auto; gap: .55rem; }
.ha-error-page .search-form label { flex: 1; }
.ha-error-page .search-field { width: 100%; min-height: 50px; padding: .75rem 1rem; border: 1px solid #a9c3cc; border-radius: 9px; background: #fff; }
.ha-error-page .search-submit { min-height: 50px; padding: .75rem 1.1rem; border: 0; border-radius: 9px; background: var(--ha-navy); color: #fff; font-weight: 800; }
.ha-error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1rem; }
.ha-error-links a { padding: .6rem .85rem; border: 1px solid var(--ha-border); border-radius: 8px; background: #fff; color: var(--ha-navy); font-weight: 750; text-decoration: none; }

.ha-public-content-page :where(.ha-service-card,.ha-location-card,.ha-resource-card,.ha-post-card,.ha-next-step-card):focus-within {
  border-color: var(--ha-secondary-dark);
  box-shadow: 0 0 0 3px rgba(8, 127, 167, .16);
}

@supports (content-visibility: auto) {
  .ha-public-content-page .ha-related-section,
  .ha-public-content-page .ha-inline-cta { content-visibility: auto; contain-intrinsic-size: 1px 430px; }
}

@media (max-width: 1024px) {
  .ha-services-index .ha-services-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ha-generic-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 2rem; }
}

@media (max-width: 820px) {
  .ha-generic-layout { grid-template-columns: 1fr; }
  .ha-page-help { position: static; }
  .ha-next-step-grid { grid-template-columns: 1fr; }
  .ha-next-step-card { min-height: 0; }
  .ha-search-refine { grid-template-columns: 1fr; }
  .ha-entry-content :where(.ha-decision-grid,.ha-term-grid),
  .ha-entry-content .ha-content-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .ha-public-content-page .ha-page-hero { padding-block: 2.8rem; }
  .ha-archive-section-head { display: block; }
  .ha-archive-count { margin-top: 1rem; }
  .ha-services-index .ha-services-grid--archive { grid-template-columns: 1fr; }
  .ha-reading-surface { padding: 1.25rem; border-radius: 14px; }
  .ha-page-help { padding: 1.3rem; }
  .ha-post-navigation { grid-template-columns: 1fr; }
  .ha-post-nav-next { text-align: left; }
  .ha-search-refine .search-form,.ha-error-page .search-form { display: grid; }
  .ha-search-refine .search-submit,.ha-error-page .search-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ha-public-content-page .ha-post-media img { transition: none; }
  .ha-public-content-page .ha-post-card:hover .ha-post-media img { transform: none; }
}

@media (forced-colors: active) {
  .ha-archive-count,.ha-reading-surface,.ha-page-help,.ha-post-card,.ha-next-step-card { border: 1px solid CanvasText; }
}

@media print {
  .ha-page-help,.ha-inline-cta,.ha-related-section,.ha-post-navigation,.ha-search-refine { display: none !important; }
  .ha-generic-layout { display: block; }
  .ha-reading-surface { padding: 0; border: 0; box-shadow: none; }
  .ha-entry-content :where(.ha-content-callout,.ha-source-note,.ha-decision-grid > div,.ha-term-grid > div,.ha-step-list > li) { break-inside: avoid; box-shadow: none; }
}
