/*
 * Inner pages (About, Services, Contact, Blog, Initiatives, single post / initiative, 404).
 * Same visual language as the homepage: Apple-gray band with a dot grid, mono eyebrow,
 * tight display headings, rounded media. Used by the Bricks templates through these classes.
 */
.hn-p { --ink: #20242B; --muted: #6B717C; --surface: #F5F5F7; --brand: #122AAD; --green: #027A40; --line: rgba(32, 36, 43, .1); color: var(--ink); }

/* Intro band ---------------------------------------------------------------- */
.hn-band { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.hn-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(27, 31, 39, .11) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 25%, transparent 78%); }
.hn-band-in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 96px; padding-bottom: 80px; }
.hn-eyebrow { font-size: 11px; font-weight: 500; color: var(--green); margin: 0; }
.hn-title { margin: 0; max-width: 16ch; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; font-weight: 600; color: var(--ink); }
.hn-intro { margin: 0; max-width: 60ch; font-size: 18px; line-height: 1.65; color: var(--muted); }
.hn-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.hn-back:hover { color: var(--brand); }

/* Body ------------------------------------------------------------------------ */
.hn-body { padding-top: 80px; padding-bottom: 80px; }
.hn-split { display: grid; gap: 48px; align-items: start; }
.hn-narrow { max-width: 760px; }
.hn-media { display: block; width: 100%; height: auto; border-radius: 24px; object-fit: cover; }
.hn-media img { display: block; width: 100%; height: auto; border-radius: 24px; object-fit: cover; }
@media (min-width: 1024px) {
  .hn-split { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .hn-split--contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .hn-split--aside { grid-template-columns: minmax(0, 1fr) 320px; }
  .hn-sticky { position: sticky; top: calc(var(--hdr-h, 90px) + 24px); }
}

/* Rich text (page / post bodies and editable text blocks) */
.wp-content, .hn-rich { font-size: 18px; line-height: 1.75; color: #2B2F36; }
.wp-content > * , .hn-rich > * { margin-top: 0; margin-bottom: 0; }
.wp-content > * + *, .hn-rich > * + * { margin-top: 1.25em; }
.wp-content h2, .wp-content h3, .hn-rich h2, .hn-rich h3 { font-weight: 600; color: var(--ink, #20242B); letter-spacing: -0.02em; line-height: 1.2; margin-top: 2em; }
.wp-content h2, .hn-rich h2 { font-size: 30px; }
.wp-content h3, .hn-rich h3 { font-size: 23px; }
.wp-content a, .hn-rich a { color: #122AAD; text-decoration: underline; text-underline-offset: 3px; }
.wp-content img, .wp-content figure { max-width: 100%; height: auto; border-radius: 20px; margin-inline: 0; }
.wp-content blockquote, .hn-rich blockquote { border-left: 3px solid #029F52; padding-left: 1.25em; margin-inline: 0; color: #4B515C; }
.wp-content ul, .wp-content ol, .hn-rich ul, .hn-rich ol { padding-left: 1.4em; }
.wp-content li + li, .hn-rich li + li { margin-top: .35em; }

/* Buttons --------------------------------------------------------------------- */
.hn-btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 12px 20px; font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.4; }
.hn-btn-primary { background: #122AAD; color: #fff; box-shadow: 0 8px 20px -10px rgba(18, 42, 173, .7); }
.hn-btn-primary:hover { background: #0E2290; color: #fff; }
.hn-btn-ghost { background: #fff; color: var(--ink, #20242B); border: 1px solid rgba(32, 36, 43, .15); }
.hn-btn-ghost:hover { border-color: rgba(18, 42, 173, .5); }
.hn-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hn-actions:empty { display: none; }

/* Card grid (Blog, Initiatives, related) ---------------------------------------- */
.hn-grid { display: grid; gap: 56px 32px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .hn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hn-grid > .hn-state { grid-column: 1 / -1; }
.hn-card { display: block; color: inherit; text-decoration: none; }
.hn-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px; background: linear-gradient(135deg, rgba(18, 42, 173, .1), rgba(2, 159, 82, .1)); }
.hn-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.hn-card:hover .hn-card-media img { transform: scale(1.03); }
.hn-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 20px; font-size: 13px; color: #6B717C; }
.hn-card-kicker { font-size: 10.5px; color: #027A40; }
.hn-card-kicker:empty { display: none; }
.hn-card-title { margin: 8px 0 0; font-size: 24px; line-height: 1.2; font-weight: 600; color: #20242B; transition: color .2s; }
.hn-card:hover .hn-card-title { color: #122AAD; }
.hn-card-excerpt { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: #6B717C; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hn-card-excerpt:empty { display: none; }

.hn-state { border: 1px solid rgba(32, 36, 43, .1); background: #F5F5F7; border-radius: 24px; padding: 32px; }
.hn-state p { margin: 0; color: #6B717C; font-size: 15px; }
.hn-state p:first-child { color: #20242B; font-size: 18px; font-weight: 600; margin-bottom: 8px; }

/* Pagination (Bricks element) */
.hn-pager { margin-top: 64px; border-top: 1px solid rgba(32, 36, 43, .1); padding-top: 32px; }
.hn-pager:not(:has(a, span.current)) { display: none; }
.hn-pager .bricks-pagination ul { display: flex; gap: 8px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.hn-pager .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; color: #20242B; text-decoration: none; font-weight: 500; }
.hn-pager .page-numbers.current { background: #122AAD; color: #fff; }

/* Related band */
.hn-related { background: #F5F5F7; border-top: 1px solid rgba(32, 36, 43, .1); padding: 64px 0; }
.hn-related:not(:has(.hn-card)) { display: none; }
.hn-h2 { margin: 0 0 40px; font-size: 30px; font-weight: 600; line-height: 1.15; color: #20242B; }

/* Single initiative header ------------------------------------------------------ */
.hn-hero-in { display: grid; gap: 40px; align-items: end; padding-top: 64px; padding-bottom: 56px; }
.hn-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hn-hero-title { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.03; font-weight: 600; color: #20242B; }
.hn-hero-img img, img.hn-hero-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 80px -40px rgba(15, 20, 45, .5); }
@media (min-width: 1024px) { .hn-hero-in { grid-template-columns: 1.1fr 1fr; padding-top: 80px; } }

.hn-facts { border: 1px solid rgba(32, 36, 43, .1); background: #fff; border-radius: 24px; padding: 24px; }
.hn-facts dl { margin: 0; display: grid; gap: 16px; }
.hn-facts dt { font-size: 10px; color: #6B717C; margin: 0 0 2px; }
.hn-facts dd { margin: 0; font-size: 15px; color: #20242B; }
.hn-facts-topics { margin-top: 24px; border-top: 1px solid rgba(32, 36, 43, .1); padding-top: 20px; }
.hn-facts-topics > p { font-size: 10px; color: #6B717C; margin: 0 0 12px; }
.hn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hn-chips li { border-radius: 999px; background: #F5F5F7; padding: 4px 12px; font-size: 13px; color: #20242B; }
.hn-post-tags { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(32, 36, 43, .1); }

.hn-gallery { margin-top: 48px; }
.hn-gallery h2 { margin: 0 0 20px; font-size: 26px; font-weight: 600; }
.hn-gallery ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .hn-gallery ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hn-gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: #F5F5F7; cursor: zoom-in; }
.hn-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hn-gallery a:hover img { transform: scale(1.04); }
.hn-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
.hn-lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.hn-lightbox img { display: block; max-width: min(92vw, 1400px); max-height: 88vh; border-radius: 12px; }
.hn-lightbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; cursor: pointer; }

/* Single post -------------------------------------------------------------------- */
.hn-article { max-width: 860px; padding-top: 80px; padding-bottom: 80px; }
.hn-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; font-size: 13px; color: #6B717C; }
.hn-article-title { margin: 12px 0 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 600; color: #20242B; }
.hn-article-img { margin-top: 40px; }
.hn-article-img img { display: block; width: 100%; height: auto; border-radius: 24px; }
.hn-article-body { margin-top: 40px; }

/* Contact ---------------------------------------------------------------------- */
.hn-contact { display: grid; gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.hn-contact li { display: flex; gap: 16px; }
.hn-contact-ico { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 16px; background: #F5F5F7; color: #122AAD; }
.hn-contact .m { margin: 0; font-size: 10.5px; color: #027A40; }
.hn-contact a, .hn-contact div > p:not(.m) { margin: 0; font-size: 17px; color: #20242B; text-decoration: none; word-break: break-word; }
.hn-contact a:hover { color: #122AAD; }
.hn-contact-social { padding-left: 60px; flex-wrap: wrap; gap: 8px 20px !important; font-size: 15px; color: #6B717C; }
.hn-contact-social a { font-size: 15px !important; color: #6B717C !important; }
.inquiry-dialog.inquiry-inline { position: static; inset: auto; transform: none; display: block; width: 100%; max-width: none; max-height: none; margin: 0; overflow: visible; box-shadow: 0 24px 60px -40px rgba(15, 20, 45, .35); }

@media (max-width: 640px) {
  .hn-band-in { padding-top: 64px; padding-bottom: 56px; }
  .hn-body, .hn-article { padding-top: 56px; padding-bottom: 56px; }
}

/* Initiative without extra text or gallery: drop the empty column, facts sit on the left. */
.hn-split--aside:has(> .hn-story:not(:has(.wp-content, .hn-gallery))) { grid-template-columns: minmax(0, 420px); }
.hn-story:not(:has(.wp-content, .hn-gallery)) { display: none; }
.hn-eyebrow:empty { display: none; }

/* Images never wider than their column (the Bricks compat layer removes max-width on brxe-*). */
.hn-p img { max-width: 100%; height: auto; }
img.hn-article-img { display: block; width: 100%; border-radius: 24px; }
.hn-card-media img { height: 100%; }

/* The homepage CSS pads every <article> on phones; the inner pages' articles manage their own spacing. */
@media (max-width: 640px) {
  article.hn-p { padding: 0 !important; }
  article.hn-article { padding: 56px 16px !important; }
}
