/*
 * Blog article template (WL-0097), ported from the approved design
 * (artifacts/shared/location-article-mockups-2026-10-01/build_article.py).
 * Tokens and shared blocks (.hc-wrap, .hc-pill, .hc-teal, the floating button) come from
 * css/hc-shared.css. Every rule here is scoped under .hc-article.
 */

.hc-article {
  --hc-aqua-edge: #bfeff4;
  --hc-teal-light: #71e0ea;
  --hc-art-sticky: calc(var(--header-height, 70px) + 56px);
}

/* The theme caps every <section> at 1600px and hides its overflow (css/style.css); hidden overflow
   would stop the side panel from sticking. Bands are full-bleed; content stays in .hc-wrap. */
.hc-article .hc-mod,
.hc-article > section {
  max-width: none;
  overflow: visible;
}

/* ---------- On this page ---------- */

.hc-article .hc-art-toc {
  position: sticky;
  top: var(--header-height, 70px);
  z-index: 40;
  background: var(--hc-white);
  border-bottom: 1px solid #eef0f3;
  box-shadow: 0 4px 12px rgb(58 63 70 / 4%);
}

.hc-article .hc-art-toc__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(var(--hc-wrap), 100% - 32px);
  min-height: 56px;
  margin-inline: auto;
}

.hc-article .hc-art-toc__label {
  flex-shrink: 0;
  margin-right: 6px;
  color: var(--hc-grey);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hc-article .hc-art-toc__list {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.hc-article .hc-art-toc__list::-webkit-scrollbar {
  display: none;
}

.hc-article .hc-art-toc__list a {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  color: var(--hc-slate);
  border: 1px solid var(--hc-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.hc-article .hc-art-toc__list a:hover {
  color: var(--hc-teal-deep);
  border-color: var(--hc-cyan);
}

.hc-article .hc-art-toc__list a.is-active {
  color: var(--hc-btn-text);
  background: var(--hc-cyan);
  border-color: var(--hc-cyan);
}

/* Section headings land below the header and the pinned bar. */
.hc-article .hc-art-body h2[id],
.hc-article .hc-art-body h3[id] {
  scroll-margin-top: calc(var(--hc-art-sticky) + 16px);
}

/* ---------- Hero ---------- */

.hc-article .hc-art-hero {
  background: var(--hc-aqua);
}

.hc-article .hc-art-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 40px;
  align-items: center;
  padding-block: 40px 48px;
}

.hc-article .hc-art-hero--no-image .hc-art-hero__inner {
  grid-template-columns: minmax(0, 760px);
}

.hc-article .hc-art-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hc-article .hc-art-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--hc-grey);
  font-size: 14px;
}

.hc-article .hc-art-crumbs a {
  color: var(--hc-teal-deep);
}

.hc-article .hc-art-crumbs__current {
  color: var(--hc-slate);
  font-weight: 600;
}

.hc-article .hc-art-hero h1 {
  color: var(--hc-slate);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

.hc-article .hc-art-hero__lead {
  color: var(--hc-grey);
  font-size: 20px;
  line-height: 1.5;
}

.hc-article .hc-art-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: var(--hc-grey);
  font-size: 15px;
}

.hc-article .hc-art-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  color: var(--hc-white);
  background: var(--hc-slate);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.hc-article .hc-art-hero__image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--hc-radius);
}

/* ---------- Body and side panel ---------- */

.hc-article .hc-art-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 720px) 360px;
  justify-content: space-between;
  gap: 56px;
  align-items: start;
  padding-block: 40px 72px;
}

.hc-article .hc-art-body {
  min-width: 0;
  color: var(--hc-slate);
  font-size: 18px;
  line-height: 1.7;
}

.hc-article .hc-art-body p {
  margin: 0 0 22px;
}

.hc-article .hc-art-body a {
  color: var(--hc-teal-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hc-article .hc-art-body h2,
.hc-article .hc-art-body h3 {
  margin: 44px 0 18px;
  padding-top: 44px;
  /* HomeCaring blue for headings (client brand rule, 07/10/2026); see CLAUDE.md "Brand rules". */
  color: var(--hc-cyan);
  border-top: 1px solid var(--hc-line);
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.hc-article .hc-art-body h2 b,
.hc-article .hc-art-body h2 strong,
.hc-article .hc-art-body h3 b,
.hc-article .hc-art-body h3 strong {
  font-weight: inherit;
}

.hc-article .hc-art-body h4 {
  margin: 28px 0 12px;
  color: var(--hc-slate);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* Lists (ul with coral dots, ol with numbered circles) come from css/hc-shared.css. */

.hc-article .hc-art-body blockquote {
  margin: 0 0 24px;
  color: var(--hc-cyan);
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
}

.hc-article .hc-art-body blockquote p:last-child {
  margin-bottom: 0;
}

.hc-article .hc-art-body img {
  height: auto;
  border-radius: 16px;
}

.hc-article .hc-art-body iframe,
.hc-article .hc-art-body video {
  max-width: 100%;
}

.hc-article .hc-art-body table {
  display: block;
  max-width: 100%;
  margin: 0 0 24px;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

.hc-article .hc-art-body th,
.hc-article .hc-art-body td {
  padding: 8px 12px;
  border: 1px solid var(--hc-line);
  text-align: left;
}

.hc-article .hc-art-body > :last-child {
  margin-bottom: 0;
}

.hc-article .hc-art-rail--side {
  position: sticky;
  top: calc(var(--hc-art-sticky) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hc-article .hc-art-rail--inline {
  display: none;
}

.hc-article .hc-art-rail__card {
  display: flex;
  flex-direction: column;
  border-radius: var(--hc-radius);
}

.hc-article .hc-art-rail__card--dark {
  gap: 14px;
  padding: 28px;
  background: var(--hc-slate);
}

.hc-article .hc-art-rail__card--dark p {
  margin: 0;
}

.hc-article .hc-art-rail__eyebrow {
  color: var(--hc-teal-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hc-article .hc-art-rail__title {
  color: var(--hc-white);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.hc-article .hc-art-rail__text {
  color: var(--hc-aqua);
  font-size: 15px;
  line-height: 1.5;
}

.hc-article .hc-art-rail__call,
.hc-article .hc-art-rail__call:hover {
  color: var(--hc-teal-light);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.hc-article .hc-art-rail__card--hub {
  gap: 6px;
  padding: 24px 28px;
  background: var(--hc-aqua);
  border: 1px solid var(--hc-aqua-edge);
  text-decoration: none;
}

.hc-article .hc-art-rail__hub-title {
  color: var(--hc-slate);
  font-size: 18px;
  font-weight: 700;
}

.hc-article .hc-art-rail__hub-text {
  color: var(--hc-grey);
  font-size: 14px;
  line-height: 1.5;
}

.hc-article .hc-art-rail__hub-link {
  color: var(--hc-teal-deep);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Opt-in components (inc/article-components.php) ---------- */

.hc-article .hc-art-body .hc-art-inshort {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 32px;
  padding: 26px 32px;
  background: var(--hc-aqua);
  border: 1px solid var(--hc-aqua-edge);
  border-radius: var(--hc-radius);
}

.hc-article .hc-art-body .hc-art-inshort__label {
  margin: 0;
  color: var(--hc-teal-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hc-article .hc-art-body .hc-art-inshort ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.hc-article .hc-art-body .hc-art-inshort li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.hc-article .hc-art-body .hc-art-inshort li::before,
.hc-article .hc-art-body .hc-art-cardlist li::before {
  content: none;
}

.hc-article .hc-art-tick {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--hc-white);
  background: var(--hc-cyan);
  border-radius: 50%;
}

.hc-article .hc-art-body .hc-art-cardlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.hc-article .hc-art-body .hc-art-cardlist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 16px 18px;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.hc-article .hc-art-body .hc-art-cardlist li::after {
  order: -1;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--hc-coral-dot);
  border-radius: 50%;
  content: "";
}

.hc-article .hc-art-body .hc-art-callout {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 8px 0 24px;
  padding: 24px 28px;
  background: var(--hc-slate);
  border-radius: var(--hc-radius);
}

.hc-article .hc-art-callout__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--hc-cyan);
  border: 2px solid var(--hc-cyan);
  border-radius: 12px;
}

.hc-article .hc-art-callout__copy {
  flex: 1;
}

.hc-article .hc-art-body .hc-art-callout p {
  margin: 0;
}

.hc-article .hc-art-callout__title {
  color: var(--hc-white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.hc-article .hc-art-callout__text {
  color: var(--hc-aqua);
  font-size: 15px;
  line-height: 1.5;
}

.hc-article .hc-art-body a.hc-art-callout__link {
  flex-shrink: 0;
  color: var(--hc-teal-light);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.hc-article .hc-art-body .hc-art-infocards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}

.hc-article .hc-art-infocard {
  padding: 28px;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  box-shadow: 0 2px 8px rgb(58 63 70 / 8%);
}

.hc-article .hc-art-infocard__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--hc-cyan);
  background: var(--hc-aqua);
  border-radius: 50%;
}

.hc-article .hc-art-body .hc-art-infocard p {
  margin: 0;
}

.hc-article .hc-art-infocard__title {
  margin-bottom: 8px !important;
  color: var(--hc-slate);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.hc-article .hc-art-infocard__text {
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Closing call to action ---------- */

.hc-article .hc-art-cta {
  padding: 0 0 88px;
}

.hc-article .hc-art-cta__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  overflow: hidden;
  background: var(--hc-slate);
  border-radius: var(--hc-radius);
}

.hc-article .hc-art-cta__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 56px;
}

.hc-article .hc-art-cta__title {
  color: var(--hc-white);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hc-article .hc-art-cta__text {
  color: var(--hc-aqua);
  font-size: 17px;
  line-height: 1.6;
}

.hc-article .hc-art-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hc-article .hc-art-cta__photo {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

/* ---------- Keep reading ---------- */

.hc-article .hc-art-more {
  padding: 88px 0;
  background: var(--hc-soft);
}

.hc-article .hc-art-more__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.hc-article .hc-art-more__title {
  color: var(--hc-slate);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hc-article .hc-art-more__all {
  font-weight: 700;
  text-decoration: none;
}

.hc-article .hc-art-more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hc-article .hc-art-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: var(--hc-slate);
  background: var(--hc-white);
  border-radius: var(--hc-radius);
  box-shadow: 0 2px 8px rgb(58 63 70 / 8%);
  text-decoration: none;
}

.hc-article .hc-art-card:hover {
  color: var(--hc-slate);
}

.hc-article .hc-art-card__img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hc-article .hc-art-card__img--blank {
  background: var(--hc-aqua);
}

.hc-article .hc-art-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 26px 28px;
}

.hc-article .hc-art-card__topic {
  color: var(--hc-teal-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hc-article .hc-art-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.hc-article .hc-art-card__time {
  color: var(--hc-grey);
  font-size: 14px;
}

/* The article's floating button is for phones only. */
@media (min-width: 900px) {
  .hc-article .hc-float-enquire--phone {
    display: none;
  }
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 1100px) {
  .hc-article .hc-art-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
  }

  .hc-article .hc-art-main__inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .hc-article .hc-art-hero__inner,
  .hc-article .hc-art-hero--no-image .hc-art-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-block: 24px 28px;
  }

  .hc-article .hc-art-hero__copy {
    gap: 14px;
  }

  .hc-article .hc-art-crumbs {
    font-size: 13px;
  }

  .hc-article .hc-art-hero__lead {
    font-size: 17px;
  }

  .hc-article .hc-art-hero__meta {
    gap: 6px 10px;
    font-size: 13px;
  }

  /* "Updated ..." wraps to its own line on phones; a trailing dot would dangle. */
  .hc-article .hc-art-hero__dot {
    display: none;
  }

  .hc-article .hc-art-pill {
    min-height: 28px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hc-article .hc-art-hero__image {
    height: 220px;
    border-radius: 20px;
  }

  .hc-article .hc-art-main__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 28px 40px;
  }

  .hc-article .hc-art-rail--side {
    display: none;
  }

  .hc-article .hc-art-rail--inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0 0;
  }

  .hc-article .hc-art-rail--inline .hc-art-rail__card--dark {
    padding: 22px;
  }

  .hc-article .hc-art-rail--inline .hc-art-rail__title {
    font-size: 22px;
  }

  .hc-article .hc-art-body {
    font-size: 17px;
  }

  .hc-article .hc-art-body p {
    margin-bottom: 18px;
  }

  .hc-article .hc-art-body h2,
  .hc-article .hc-art-body h3 {
    margin-top: 32px;
    padding-top: 32px;
  }

  .hc-article .hc-art-body .hc-art-cardlist,
  .hc-article .hc-art-body .hc-art-infocards {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-article .hc-art-body .hc-art-inshort {
    padding: 22px;
  }

  .hc-article .hc-art-body .hc-art-inshort li {
    font-size: 15px;
  }

  .hc-article .hc-art-body .hc-art-callout {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px;
  }

  .hc-article .hc-art-infocard {
    padding: 22px;
  }

  .hc-article .hc-art-cta {
    padding: 0 0 40px;
  }

  .hc-article .hc-art-cta__box {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-article .hc-art-cta__photo {
    order: -1;
    height: 170px;
    min-height: 0;
  }

  .hc-article .hc-art-cta__copy {
    gap: 12px;
    padding: 24px;
  }

  .hc-article .hc-art-cta__actions .hc-pill {
    width: 100%;
  }

  .hc-article .hc-art-more {
    padding: 40px 0;
  }

  .hc-article .hc-art-more__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  /* Two related posts on phones. */
  .hc-article .hc-art-more__grid > li:nth-child(n + 3) {
    display: none;
  }

  .hc-article .hc-art-card {
    border-radius: 20px;
  }

  .hc-article .hc-art-card__img {
    height: 170px;
  }

  .hc-article .hc-art-card__body {
    gap: 6px;
    padding: 18px 20px 22px;
  }

  .hc-article .hc-art-card__title {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-article,
  .hc-article * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
