/* =========================================================================
   HCFTA content pages (posts), the Posts nav menu and the homepage posts slider
   Builds on /css/hcfta.css — relies on the --hc-* tokens defined on .hc-page
   ========================================================================= */

[x-cloak] { display: none !important; }

.hc-page { --hc-measure: 740px; }

.hc-nav a.is-active { color: var(--hc-navy); }

/* ---------- Title band ---------- */
.hc-article-hero {
  background:
    linear-gradient(rgba(244, 244, 244, .82), rgba(244, 244, 244, .82)),
    url('/images/hcfta/academy-bg.jpg') center / cover no-repeat,
    linear-gradient(180deg, #e9eef3 0%, #dfe5ec 100%);
  padding: 56px 0 72px;
  border-bottom: 1px solid rgba(39, 82, 163, .12);
}
.hc-article-hero .hc-container.hc-article-hero__inner { max-width: calc(var(--hc-measure) + var(--hc-gutter) * 2); }
.hc-article-hero--index .hc-container.hc-article-hero__inner { max-width: calc(var(--hc-container) + var(--hc-gutter) * 2); }

.hc-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 16px; color: var(--hc-sky); margin-bottom: 34px; }
.hc-breadcrumb a { color: var(--hc-sky); text-decoration: none; }
.hc-breadcrumb a:hover { color: var(--hc-navy); text-decoration: underline; }

.hc-article-hero__eyebrow { margin: 0 0 12px; font-size: clamp(18px, 2vw, 22px); letter-spacing: .04em; }
.hc-article-hero__title  { margin: 0; color: var(--hc-navy); }
.hc-article-hero__dek    { margin: 22px 0 0; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.35; color: var(--hc-navy); }

.hc-article-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 30px; font-size: 17px; color: var(--hc-sky); }
.hc-article-meta i { margin-right: 6px; }

/* Category filter pills */
.hc-filter { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hc-filter a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 18px;
  border: 2px solid var(--hc-navy); border-radius: 999px;
  font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
  color: var(--hc-navy); text-decoration: none; background: rgba(255, 255, 255, .6);
  transition: background .15s ease, color .15s ease;
}
.hc-filter a:hover,
.hc-filter a.is-active { background: var(--hc-navy); color: var(--hc-white); }

/* ---------- Article body ---------- */
.hc-article { padding: 64px 0 90px; }
.hc-article > .hc-container.hc-container { max-width: calc(var(--hc-measure) + var(--hc-gutter) * 2); }

.hc-article__figure { margin: -112px 0 56px; }
.hc-article__figure img {
  display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover;
  border-radius: var(--hc-radius-card); box-shadow: var(--hc-shadow-soft);
}
.hc-article__figure figcaption { margin-top: 12px; font-size: 15px; color: var(--hc-sky); text-align: center; }

/* Long-form typography — matches the site: Alegreya Sans body, Alegreya serif for h2/quotes */
.hc-page .hc-prose { font-family: var(--hc-sans); font-size: 21px; line-height: 1.65; color: #1f3f7d; }
.hc-prose > * { margin: 0; }
.hc-prose > * + * { margin-top: 1.1em; }

.hc-prose h2, .hc-page .hc-prose h2 {
  font-family: var(--hc-serif); font-weight: 400; color: var(--hc-navy);
  font-size: clamp(28px, 3vw, 36px); line-height: 1.2; margin-top: 1.9em;
}
.hc-prose h3 {
  font-family: var(--hc-sans); font-weight: 700; text-transform: uppercase; color: var(--hc-navy);
  font-size: 22px; line-height: 1.25; letter-spacing: .02em; margin-top: 1.7em;
}
.hc-prose h4 { font-family: var(--hc-sans); font-weight: 700; color: var(--hc-sky); font-size: 20px; margin-top: 1.5em; }
.hc-prose h2 + *, .hc-prose h3 + *, .hc-prose h4 + * { margin-top: .6em; }

.hc-prose a { color: var(--hc-sky); text-decoration: underline; text-underline-offset: 3px; }
.hc-prose a:hover { color: var(--hc-navy); }
.hc-prose strong { font-weight: 700; color: var(--hc-navy); }

/* Lists use the same check-mark motif as the home hero */
.hc-prose ul { list-style: none; padding-left: 0; }
.hc-prose ul li { position: relative; padding-left: 36px; }
.hc-prose ul li + li { margin-top: .45em; }
.hc-prose ul li::before {
  content: "\F26B"; /* bootstrap-icons check-circle */
  font-family: "bootstrap-icons"; position: absolute; left: 0; top: .1em;
  color: var(--hc-navy); font-size: .95em;
}
.hc-prose ol { list-style: decimal; padding-left: 1.4em; }
.hc-prose ol li::marker { font-family: var(--hc-sans); font-weight: 700; color: var(--hc-sky); }
.hc-prose ol li + li { margin-top: .45em; }

.hc-prose blockquote {
  margin-top: 1.6em; margin-bottom: 1.6em; padding: 28px 32px;
  background: var(--hc-gradient-statement); color: var(--hc-white);
  border-radius: var(--hc-radius-box); box-shadow: var(--hc-shadow-soft);
  font-family: var(--hc-serif); font-size: 25px; line-height: 1.4;
}
.hc-prose blockquote p { margin: 0; font-family: inherit; }
.hc-prose blockquote cite { display: block; margin-top: 12px; font-family: var(--hc-sans); font-style: normal; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }

/* Optional callout: <div class="hc-callout"><p>…</p></div> */
.hc-prose .hc-callout {
  padding: 22px 26px; border-left: 6px solid var(--hc-yellow);
  background: var(--hc-white); border-radius: 0 var(--hc-radius-small) var(--hc-radius-small) 0;
  box-shadow: var(--hc-shadow-soft); font-family: var(--hc-sans); font-size: 19px;
}

.hc-prose img, .hc-prose figure img { display: block; max-width: 100%; height: auto; border-radius: var(--hc-radius-box); }
.hc-prose figcaption { margin-top: 10px; font-family: var(--hc-sans); font-size: 15px; color: var(--hc-sky); text-align: center; }
.hc-prose hr { border: 0; height: 1px; background: rgba(39, 82, 163, .25); margin: 2.4em 0; opacity: 1; }

.hc-prose table { width: 100%; border-collapse: collapse; font-family: var(--hc-sans); font-size: 17px; }
.hc-prose th { background: var(--hc-navy); color: var(--hc-white); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; text-align: left; }
.hc-prose th, .hc-prose td { padding: 10px 14px; border-bottom: 1px solid rgba(39, 82, 163, .18); }
.hc-prose tr:nth-child(even) td { background: rgba(255, 255, 255, .6); }

.hc-prose code { font-size: .85em; background: var(--hc-white); padding: 2px 6px; border-radius: 4px; color: var(--hc-navy); }
.hc-prose iframe, .hc-prose wistia-player { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--hc-radius-box); }

/* Article footer: back link + share */
.hc-article__footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(39, 82, 163, .2);
  font-size: 17px;
}
.hc-article__back { color: var(--hc-sky); text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }
.hc-article__back:hover { color: var(--hc-navy); }
.hc-share { display: flex; align-items: center; gap: 12px; color: var(--hc-sky); text-transform: uppercase; letter-spacing: .02em; }
.hc-share a, .hc-share button {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: var(--hc-navy); color: var(--hc-white);
  font-size: 17px; text-decoration: none; cursor: pointer; box-shadow: var(--hc-shadow);
  transition: transform .15s ease, filter .15s ease;
}
.hc-share a:hover, .hc-share button:hover { filter: brightness(1.12); transform: translateY(-1px); color: var(--hc-white); }

/* ---------- Listing ---------- */
.hc-articles { padding: 72px 0 110px; }
.hc-post-featured { margin-bottom: 72px; background: rgba(255, 255, 255, .5); }
.hc-post-featured .hc-course__title a,
.hc-post-card__title a { color: var(--hc-navy); text-decoration: none; }
.hc-post-featured .hc-course__title a:hover,
.hc-post-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hc-post-featured .hc-course__tag { margin: 0 0 14px; font-size: 18px; }
.hc-post-featured .hc-course__text { margin-top: 24px; }
.hc-post-featured .hc-course__text p { margin: 0; }

.hc-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 34px; }

.hc-post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--hc-white); border-radius: var(--hc-radius-card); box-shadow: var(--hc-shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hc-post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 40, 80, .18); }
.hc-post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hc-input); }
.hc-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-post-card__placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: var(--hc-gradient-why); color: rgba(255, 255, 255, .85); font-size: 48px;
}
.hc-post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 22px; }
.hc-post-card__tag { margin: 0 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--hc-sky); }
.hc-page .hc-post-card__title { margin: 0; font-family: var(--hc-serif); font-weight: 400; font-size: 24px; line-height: 1.2; text-transform: none; color: var(--hc-navy); }
.hc-post-card__excerpt { margin: 12px 0 0; font-size: 17px; line-height: 1.45; color: #2d4d8a; }
.hc-post-card__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 20px;
}
.hc-post-card__meta { font-size: 14px; color: var(--hc-sky); }
.hc-post-card__more { font-size: 15px; text-transform: uppercase; letter-spacing: .03em; color: var(--hc-navy); text-decoration: none; white-space: nowrap; }
.hc-post-card__more:hover { color: var(--hc-sky); }

.hc-empty { text-align: center; padding: 60px 0; color: var(--hc-sky); }
.hc-empty i { font-size: 56px; }
.hc-empty p { margin-top: 12px; }

/* Pagination */
.hc-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 64px; }
.hc-pagination__item {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--hc-radius-small); background: var(--hc-white); color: var(--hc-navy);
  font-size: 17px; text-decoration: none; box-shadow: var(--hc-shadow-soft);
}
a.hc-pagination__item:hover { background: var(--hc-sky); color: var(--hc-white); }
.hc-pagination__item.is-current { background: var(--hc-navy); color: var(--hc-white); }
.hc-pagination__item.is-disabled { opacity: .45; box-shadow: none; }

/* ---------- Related ---------- */
.hc-related { padding: 80px 0 100px; border-top: 1px solid rgba(39, 82, 163, .12); }
.hc-related__title { margin: 0 0 48px; text-align: center; color: var(--hc-navy); }

/* ---------- Closing CTA ---------- */
.hc-content-cta { background: var(--hc-gradient-why); color: var(--hc-white); padding: 90px 0; text-align: center; }
.hc-content-cta__inner { max-width: 900px; }
.hc-content-cta .hc-content-cta__eyebrow { margin: 0 0 14px; color: var(--hc-yellow); font-size: clamp(18px, 2vw, 24px); }
.hc-content-cta .hc-content-cta__title { margin: 0; color: var(--hc-white); }
.hc-content-cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.hc-content-cta__btns .hc-btn {
  height: 40px; min-width: 260px; padding: 0 24px;
  font-size: 17px; font-weight: 700; border-radius: var(--hc-radius-small); box-shadow: var(--hc-shadow);
}
.hc-content-cta__btns .hc-btn--secondary { background: var(--hc-white); color: var(--hc-navy); }

/* ---------- Draft preview banner ---------- */
.hc-draft-notice {
  margin: 0; padding: 10px 20px; text-align: center;
  background: var(--hc-yellow); color: var(--hc-navy); font-size: 17px; font-weight: 700;
}
.hc-draft-notice i { margin-right: 6px; }

/* ---------- Posts nav menu ---------- */
.hc-nav__item { position: relative; }
.hc-nav__item > a i { font-size: 12px; margin-left: 4px; }
.hc-nav__menu {
  display: none; position: absolute; top: 100%; left: -18px; z-index: 30; min-width: 170px;
  padding: 10px 0; background: var(--hc-white); border-radius: var(--hc-radius-small); box-shadow: var(--hc-shadow-soft);
}
.hc-nav__item:hover .hc-nav__menu,
.hc-nav__item:focus-within .hc-nav__menu { display: block; }
.hc-nav .hc-nav__menu a { display: block; padding: 6px 18px; white-space: nowrap; }
.hc-mobile-nav .hc-mobile-nav__sub { padding-left: 20px; font-size: 19px; }

/* ---------- Homepage featured posts slider ---------- */
.hc-featured-posts { padding: 72px 0 24px; }
.hc-featured-posts__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; }
.hc-featured-posts__head h2 { margin: 0; }
.hc-featured-posts__nav { display: flex; gap: 10px; }
.hc-featured-posts__nav button {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: var(--hc-navy); color: var(--hc-white); font-size: 18px; cursor: pointer;
}
.hc-featured-posts__nav button:disabled { opacity: .35; cursor: default; }
.hc-featured-posts__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 68px) / 3); gap: 34px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 4px 4px 24px; margin: 0 -4px;
}
.hc-featured-posts__track::-webkit-scrollbar { display: none; }
.hc-featured-posts__track > * { scroll-snap-align: start; }

/* ---------- 404: unfinished drafting sheet ---------- */
.hc-404 {
  padding: 80px 0 110px;
  background:
    linear-gradient(rgba(244, 244, 244, .9), rgba(244, 244, 244, .9)),
    url('/images/hcfta/academy-bg.jpg') center / cover no-repeat;
}
.hc-404__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hc-404__text .hc-eyebrow { margin-bottom: 14px; }
.hc-404__text .hc-display { color: var(--hc-navy); }
.hc-404__text .hc-lead { margin-top: 22px; }
.hc-404__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }
.hc-404__help { margin-top: 28px; color: var(--hc-sky); }
.hc-404__help a { color: var(--hc-navy); text-underline-offset: 3px; }

.hc-404__sheet svg {
  display: block; width: 100%; height: auto; color: var(--hc-navy);
  transform: rotate(-1.5deg); filter: drop-shadow(0 10px 24px rgba(20, 40, 80, .18));
}
.hc-404__sheet text { font-family: var(--hc-sans); font-size: 12px; letter-spacing: .06em; fill: var(--hc-navy); }
.hc-404__grid-fill { color: rgba(61, 138, 192, .22); }
.hc-404__line, .hc-404__line * { stroke: var(--hc-navy); fill: none; }
.hc-404__wall path { fill: none; stroke: var(--hc-navy); stroke-width: 6; stroke-linecap: square; }
.hc-404__construct path { fill: none; stroke: var(--hc-sky); stroke-width: 1.2; stroke-dasharray: 6 5; }
.hc-404__dim path { fill: none; stroke: var(--hc-sky); stroke-width: 1; }
.hc-404__dim text { fill: var(--hc-sky); }
.hc-404__label text { font-size: 13px; }
.hc-404__sheet .hc-404__note { fill: var(--hc-sky); font-style: italic; font-size: 15px; }
.hc-404__callout circle, .hc-404__callout path { fill: none; stroke: var(--hc-navy); stroke-width: 1.4; }
.hc-404__callout circle { fill: rgba(232, 206, 69, .35); }
.hc-404__callout .hc-404__callout-dot { fill: var(--hc-navy); stroke: none; }
.hc-404__sheet .hc-404__callout-num { font-size: 14px; font-weight: 700; }
.hc-404__square path { fill: rgba(61, 138, 192, .1); stroke: var(--hc-sky); stroke-width: 1.4; fill-rule: evenodd; }
.hc-404__square path + path { fill: #fff; }
.hc-404__titleblock rect, .hc-404__titleblock path { fill: none; stroke: var(--hc-navy); stroke-width: 1.2; }
.hc-404__titleblock text { font-size: 11px; }
.hc-404__sheet .hc-404__tb-strong { font-weight: 700; font-size: 13px; }
.hc-404__sheet .hc-404__label-text { font-size: 11px; font-weight: 700; }


/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hc-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-featured-posts__track { grid-auto-columns: calc((100% - 34px) / 2); }
}
@media (max-width: 760px) {
  .hc-404 { padding: 48px 0 72px; }
  .hc-404__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hc-404__btns .hc-btn { width: 100%; min-width: 0; }
  .hc-article-hero { padding: 36px 0 56px; }
  .hc-breadcrumb { margin-bottom: 22px; }
  .hc-article { padding: 40px 0 64px; }
  .hc-article__figure { margin: -76px 0 40px; }
  .hc-page .hc-prose { font-size: 19px; }
  .hc-prose blockquote { padding: 22px; font-size: 21px; }
  .hc-prose table { display: block; overflow-x: auto; }
  .hc-post-grid { grid-template-columns: minmax(0, 1fr); }
  .hc-featured-posts__track { grid-auto-columns: 85%; }
  .hc-post-featured { margin-bottom: 48px; }
  .hc-content-cta { padding: 64px 0; }
  .hc-content-cta__btns .hc-btn { width: 100%; min-width: 0; height: auto; min-height: 40px; padding: 6px 12px; }
}
