/* =============================================================================
   Himetop — Child theme custom CSS
   Hand-written, no Tailwind runtime. Built to match the Figma mockup exactly
   while staying editor-friendly and light (~40 KB uncompressed).
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Fonts (self-hosted, variable woff2)
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/raleway-var.woff2') format('woff2-variations'),
         url('fonts/raleway-var.woff2') format('woff2');
}
@font-face {
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/raleway-italic-var.woff2') format('woff2-variations'),
         url('fonts/raleway-italic-var.woff2') format('woff2');
}

/* -----------------------------------------------------------------------------
   2. Design tokens (the same palette as the mockup, exposed as CSS variables
      so you can re-theme without touching the whole stylesheet)
   -------------------------------------------------------------------------- */

:root {
    /* Primary palette */
    --himetop-primary:             #000722;  /* darkest navy (footer bg, titles) */
    --himetop-primary-container:   #001c54;  /* brand navy (buttons, headings) */
    --himetop-primary-fixed:       #dbe1ff;
    --himetop-primary-fixed-dim:   #b3c5ff;
    --himetop-on-primary:          #ffffff;
    --himetop-on-primary-fixed:    #00184a;

    /* Neutrals */
    --himetop-background:              #f8f9fa;
    --himetop-on-background:           #191c1d;
    --himetop-on-surface:              #191c1d;
    --himetop-on-surface-variant:      #444650;
    --himetop-outline:                 #757681;
    --himetop-outline-variant:         #c5c6d1;
    --himetop-surface-container:       #edeeef;
    --himetop-surface-container-low:   #f3f4f5;
    --himetop-surface-container-lowest:#ffffff;
    --himetop-surface-container-high:  #e7e8e9;

    /* Slate ramp used by the mockup */
    --himetop-slate-300: #cbd5e1;
    --himetop-slate-400: #94a3b8;
    --himetop-slate-500: #64748b;
    --himetop-slate-600: #475569;
    --himetop-slate-700: #334155;

    /* Shadows */
    --himetop-shadow-editorial: 0px 24px 48px rgba(0, 28, 84, 0.06);
    --himetop-shadow-sm:        0px 2px 6px rgba(0, 28, 84, 0.05);

    /* Radii — matching the mockup's Tailwind custom config exactly
       DEFAULT=0.125rem  lg=0.25rem  xl=0.75rem  full=9999px */
    --himetop-r:        0.125rem;
    --himetop-r-lg:     0.25rem;
    --himetop-r-xl:     0.75rem;
    --himetop-r-full:   9999px;

    /* Layout */
    --himetop-container: 1280px;
    --himetop-reading:   960px;  /* ~53 characters per line at 18px — comfortable but roomy */
    --himetop-header-h:  7rem;   /* 32px utility + 80px nav = 112px = pt-28 */
}

/* -----------------------------------------------------------------------------
   3. Base reset + typography
   -------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body.himetop,
body.himetop .entry-content {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--himetop-on-background);
    background: var(--himetop-background);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.himetop ::selection {
    background: var(--himetop-primary-container);
    color: #fff;
}

/* Use :where() so these defaults have specificity 0 and can be overridden
   freely by component classes without specificity fights. */
:where(body.himetop) a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

:where(body.himetop) img {
    max-width: 100%;
    height: auto;
    display: block;
}

:where(body.himetop) h1,
:where(body.himetop) h2,
:where(body.himetop) h3,
:where(body.himetop) h4,
:where(body.himetop) h5,
:where(body.himetop) h6 {
    font-family: 'Raleway', sans-serif;
    color: var(--himetop-primary-container);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 0.75em;
    font-weight: 800;
}

/* Astra sets a global container max-width; the Himetop layout uses full width
   and its own containers, so opt out on the pages we control. */
body.himetop.himetop-full .site-content > .ast-container,
body.himetop.himetop-full #primary,
body.himetop.himetop-full .entry-content {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* -----------------------------------------------------------------------------
   4. Utility primitives (used across sections, not Tailwind)
   -------------------------------------------------------------------------- */

.himetop-container {
    max-width: var(--himetop-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.himetop-shadow {
    box-shadow: var(--himetop-shadow-editorial);
}

.himetop-icon {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.2em;
    fill: currentColor;
    flex-shrink: 0;
}
.himetop-icon--sm { width: 1em;    height: 1em;    }
.himetop-icon--lg { width: 1.75em; height: 1.75em; }
.himetop-icon--xl { width: 3rem;   height: 3rem;   }

/* Editorial label (the small uppercase eyebrow text) */
.himetop-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.625rem; /* 10px */
    font-weight: 700;
    color: var(--himetop-primary-container);
}

.himetop-eyebrow--bar {
    border-left: 2px solid currentColor;
    padding-left: 1rem;
}

/* Buttons — base matches hero CTAs: px-8 py-4 text-sm rounded-xl tracking-widest */
.himetop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;        /* py-4 px-8 */
    font-size: 0.875rem;       /* text-sm */
    font-weight: 700;          /* font-bold */
    text-transform: uppercase;
    letter-spacing: 0.1em;     /* tracking-widest */
    border-radius: var(--himetop-r-xl); /* rounded-xl = 0.75rem */
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    line-height: 1;
    font-family: inherit;
}
.himetop-btn:active { transform: scale(0.97); }

.himetop-btn.himetop-btn--primary {
    background: var(--himetop-primary-container);
    color: #fff;
}
.himetop-btn.himetop-btn--primary:hover {
    background: var(--himetop-primary);
    color: #fff;
}

.himetop-btn.himetop-btn--on-dark {
    background: #fff;
    color: var(--himetop-primary-container);
    box-shadow: var(--himetop-shadow-editorial);
}
.himetop-btn.himetop-btn--on-dark:hover {
    background: var(--himetop-surface-container-low);
    color: var(--himetop-primary-container);
}

.himetop-btn.himetop-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
.himetop-btn.himetop-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Nav variant: px-5 py-2 text-xs rounded-lg tracking-wider — the header CTA */
.himetop-btn--nav {
    padding: 0.5rem 1.25rem;       /* py-2 px-5 */
    font-size: 0.75rem;            /* text-xs */
    letter-spacing: 0.05em;        /* tracking-wider */
    border-radius: var(--himetop-r-lg); /* rounded-lg = 0.25rem */
}

/* Small variant: px-3 py-1.5 text-[10px] rounded-lg */
.himetop-btn--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem;
    border-radius: var(--himetop-r-lg);
    letter-spacing: 0.05em;
}

/* Editorial link (underline pencil) */
a.himetop-link-editorial,
.himetop-link-editorial {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.6875rem; /* 11px */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--himetop-primary-container);
    border-bottom: 2px solid currentColor;
    padding-bottom: 0.25rem;
    text-decoration: none;
}
a.himetop-link-editorial:hover,
.himetop-link-editorial:hover {
    color: #1d4ed8;
}

/* -----------------------------------------------------------------------------
   5. Header — utility bar + main nav
   -------------------------------------------------------------------------- */

.himetop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.himetop-utility-bar {
    background: var(--himetop-primary-container);
    color: #fff;
    height: 2rem;                   /* h-8 = 32px */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;                /* px-8 */
    font-size: 0.625rem;            /* text-[10px] */
    text-transform: uppercase;
    letter-spacing: 0.1em;          /* tracking-widest */
    font-weight: 600;               /* font-semibold */
}
.himetop-utility-bar * { color: inherit; }
.himetop-utility-bar__left,
.himetop-utility-bar__right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.himetop-utility-bar__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.himetop-utility-bar a {
    color: #fff;
    opacity: 0.9;
    text-decoration: none;
}
.himetop-utility-bar a:hover {
    opacity: 1;
    color: #fff;
}
.himetop-utility-bar__sep {
    opacity: 0.3;
}

.himetop-nav {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 28, 84, 0.08);
}
.himetop-nav__left {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.himetop-nav .himetop-nav__logo {
    font-size: 1.5rem;            /* text-2xl */
    font-weight: 800;             /* font-extrabold */
    letter-spacing: -0.05em;      /* tracking-tighter */
    color: var(--himetop-primary-container);
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}
.himetop-nav .himetop-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .himetop-nav .himetop-nav__menu { display: flex; }
}
.himetop-nav .himetop-nav__menu a {
    color: var(--himetop-slate-600);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.himetop-nav .himetop-nav__menu a:hover,
.himetop-nav .himetop-nav__menu .current-menu-item > a {
    color: var(--himetop-primary-container);
}
.himetop-nav .himetop-nav__menu .sub-menu {
    display: none;
}

.himetop-nav__right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.himetop-search {
    display: none;
    align-items: center;
    background: var(--himetop-surface-container-low);
    border-radius: var(--himetop-r-full);
    padding: 0.375rem 1rem;
    gap: 0.5rem;
}
@media (min-width: 1280px) {
    .himetop-search { display: flex; }
}
.himetop-search input {
    background: transparent;
    border: none;
    font-size: 0.75rem;
    width: 8rem;
    outline: none;
    font-family: inherit;
    color: var(--himetop-on-surface);
}
.himetop-search input::placeholder {
    color: rgba(117, 118, 129, 0.6);
}

.himetop-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--himetop-primary-container);
    cursor: pointer;
}
@media (min-width: 1024px) {
    .himetop-nav__toggle { display: none; }
}

/* -----------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.himetop-main {
    padding-top: var(--himetop-header-h);
}

.himetop-hero {
    position: relative;
    width: 100%;
    min-height: 44rem;                  /* a bit shorter so content sits higher */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 0 10rem;              /* leave ~160px at the bottom for the quote overlap */
}
.himetop-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.himetop-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 28, 84, 0.85) 0%, rgba(0, 7, 34, 0.65) 100%);
}
.himetop-hero__inner {
    position: relative;
    width: 100%;
    max-width: var(--himetop-container);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
    align-items: stretch;          /* both columns same height */
}
.himetop-hero__content {
    grid-column: 1 / -1;
    max-width: 56rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 880px) {
    .himetop-hero__content {
        grid-column: span 6;
    }
    /* .himetop-carousel grid-column override is later in the file
       (after the carousel's main rule block) to win the cascade. */
}
.himetop-hero__brand {
    color: #fff;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: clamp(0.8125rem, 1vw, 1rem);   /* ~13px → 16px, fits on one line */
    letter-spacing: 0.01em;
    margin: 0 0 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;                       /* force single line */
    overflow: hidden;
    text-overflow: ellipsis;                   /* graceful fallback if too narrow */
}
.himetop-hero__eyebrow {
    color: rgba(255, 255, 255, 0.7);
    border-color: #fff;
    margin-bottom: 1.5rem;
    display: inline-block;
}
.himetop-hero__title {
    color: #fff;
    /* Contained clamp: 40px → 80px */
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
}
.himetop-hero__title em,
.himetop-hero__accent {
    font-style: normal;
    color: var(--himetop-primary-fixed-dim);
}
.himetop-hero__lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 38rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
    .himetop-hero__lead { font-size: 1.25rem; }
}
.himetop-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* -----------------------------------------------------------------------------
   6b. Hero carousel — editorial slot for featured landmarks
   -------------------------------------------------------------------------- */

.himetop-carousel {
    grid-column: 1 / -1;
    position: relative;
    width: 100%;
    height: 100%;                  /* fill the grid row stretched by sibling text col */
    min-height: 28rem;             /* hard floor — guarantees visibility */
    margin-top: 3rem;
}
@media (min-width: 880px) {
    .himetop-carousel {
        grid-column: span 6;       /* sit beside the text column on desktop */
        margin-top: 0;
    }
}

.himetop-carousel__frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 28rem;             /* same hard floor as parent */
    border-radius: var(--himetop-r-xl);
    overflow: hidden;
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    isolation: isolate;
    background: #001c54;           /* visible fallback while images load */
}

.himetop-carousel__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    background: #1a1a1a;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}
.himetop-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.himetop-carousel__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 6s ease-out;
}
/* Optional clickable wrapper when a link is set in ACF */
.himetop-carousel__a {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 1;
}
.himetop-carousel__a:hover ~ .himetop-carousel__caption,
.himetop-carousel__a:focus ~ .himetop-carousel__caption {
    transform: translateY(-2px);
}
.himetop-carousel__slide.is-active .himetop-carousel__img {
    transform: scale(1);
}

.himetop-carousel__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.75rem 2.5rem;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%);
    color: #fff;
    z-index: 2;
}
.himetop-carousel__meta {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    opacity: 0.82;
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.himetop-carousel__title {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.05rem, 1.8vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* nav arrows + dots */
.himetop-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 3;
    opacity: 0;
}
.himetop-carousel:hover .himetop-carousel__nav,
.himetop-carousel:focus-within .himetop-carousel__nav {
    opacity: 1;
}
.himetop-carousel__nav:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.08);
}
.himetop-carousel__nav--prev { left: 0.875rem; }
.himetop-carousel__nav--next { right: 0.875rem; }

.himetop-carousel__dots {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 3;
}
@media (min-width: 1024px) {
    .himetop-carousel__dots { bottom: -1.75rem; }
}
.himetop-carousel__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, width 0.25s ease;
}
.himetop-carousel__dot.is-active {
    background: #fff;
    width: 1.5rem;
}
.himetop-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* -----------------------------------------------------------------------------
   7. Quote callout (the pull-quote card that overlaps the hero)
   -------------------------------------------------------------------------- */

.himetop-quote {
    background: var(--himetop-surface-container-lowest);
    padding: 5rem 2rem;             /* py-20 px-8 */
    position: relative;
    margin: -4rem auto 0;           /* -mt-16 */
    max-width: 72rem;               /* max-w-6xl */
    border-radius: var(--himetop-r-xl);  /* rounded-xl = 0.75rem */
    box-shadow: var(--himetop-shadow-editorial);
    z-index: 10;
}
.himetop-quote__inner {
    max-width: 56rem;               /* max-w-4xl */
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.himetop-quote__mark {
    color: rgba(0, 28, 84, 0.2);    /* primary-container/20 */
    font-size: 3.75rem;             /* text-6xl */
    line-height: 1;
    margin-bottom: 1.5rem;          /* mb-6 */
    display: inline-flex;
}
.himetop-quote__mark svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}
.himetop-quote h2.himetop-quote__text {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    font-style: italic;
    color: var(--himetop-primary-container);
    line-height: 1.35;
    margin-bottom: 2rem;
}
.himetop-quote__author {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.himetop-quote__author-name {
    font-weight: 700;
    color: var(--himetop-primary-container);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.875rem;
}
.himetop-quote__author-role {
    color: var(--himetop-outline);
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 0.25rem;
}

/* -----------------------------------------------------------------------------
   8. Section header (used by participation + feed sections)
   -------------------------------------------------------------------------- */

.himetop-section {
    padding: 6rem 0;                /* py-24 — horizontal handled by inner */
}
.himetop-section__inner {
    max-width: var(--himetop-container);
    margin: 0 auto;
    padding: 0 2rem;                /* px-8 */
}
.himetop-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    gap: 2rem;
    flex-wrap: wrap;
}
.himetop-section__title-wrap {
    max-width: 36rem;
}
.himetop-section__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--himetop-primary-container);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.himetop-section__subtitle {
    color: var(--himetop-slate-600);
    line-height: 1.7;
}

/* -----------------------------------------------------------------------------
   9. Participation cards (2-col grid, one light + one dark)
   -------------------------------------------------------------------------- */

.himetop-part-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .himetop-part-grid { grid-template-columns: 1fr 1fr; }
}

.himetop-card {
    padding: 2.5rem;
    border-radius: var(--himetop-r-xl);
    box-shadow: var(--himetop-shadow-editorial);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}
.himetop-card:hover { transform: translateY(-0.5rem); }

.himetop-card--light {
    background: var(--himetop-surface-container-lowest);
}
.himetop-card--dark {
    background: var(--himetop-primary-container);
    color: #fff;
}
.himetop-card--dark h4,
.himetop-card--dark h5 {
    color: #fff;
}

.himetop-card__icon {
    width: 4rem;                    /* w-16 */
    height: 4rem;                   /* h-16 */
    border-radius: var(--himetop-r-full);
    background: var(--himetop-surface-container-low);
    color: var(--himetop-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;             /* mb-8 */
    transition: background-color 0.3s ease, color 0.3s ease;
}
.himetop-card__icon svg {
    width: 1.875rem;                 /* text-3xl = 30px */
    height: 1.875rem;
}
.himetop-card--light:hover .himetop-card__icon {
    background: var(--himetop-primary-container);
    color: #fff;
}

.himetop-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.himetop-card__text {
    color: var(--himetop-slate-600);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.himetop-card--dark .himetop-card__text {
    color: rgba(255, 255, 255, 0.7);
}

.himetop-card__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.himetop-card__bullets li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--himetop-slate-700);
}
.himetop-card__bullets svg {
    color: #2563eb;
    flex-shrink: 0;
}

/* Dark card: the "New Release" badge + the embedded resource card */
.himetop-card__badge {
    display: inline-block;
    background: rgba(179, 197, 255, 0.2);
    color: var(--himetop-primary-fixed-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--himetop-r-full);
    margin-bottom: 1.5rem;
}
.himetop-card__resource {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;                /* p-6 */
    border-radius: var(--himetop-r-lg);  /* rounded-lg */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 2.5rem;          /* mb-10 */
}
.himetop-card__resource-inner {
    display: flex;
    gap: 1rem;                      /* gap-4 */
    align-items: flex-start;
}
.himetop-card__resource-cover {
    width: 5rem;                    /* w-20 */
    height: 7rem;                   /* h-28 */
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--himetop-r);   /* DEFAULT = 0.125rem */
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}
.himetop-card__resource h5 {
    font-size: 0.875rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 0.25rem;
}
.himetop-card__resource-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.himetop-card__bg-icon {
    position: absolute;
    right: -2.5rem;
    top: -2.5rem;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}
.himetop-card__bg-icon svg {
    width: 14rem;
    height: 14rem;
}

.himetop-card--dark .himetop-link-editorial {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}
.himetop-card--dark .himetop-link-editorial:hover {
    border-bottom-color: #fff;
}

/* -----------------------------------------------------------------------------
   10. Institutional split (image left + text right with 3 stats)
   -------------------------------------------------------------------------- */

.himetop-institutional {
    background: var(--himetop-surface-container-low);
    padding: 6rem 2rem;
}
.himetop-institutional__inner {
    max-width: var(--himetop-container);
    margin: 0 auto;
    padding: 0 2rem;                 /* px-8 */
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;                       /* gap-16 */
    align-items: center;
}
@media (min-width: 1024px) {
    .himetop-institutional__inner {
        grid-template-columns: 5fr 7fr;
    }
}
.himetop-institutional__figure {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--himetop-r-xl);
    overflow: hidden;
    box-shadow: var(--himetop-shadow-editorial);
    order: 2;
}
@media (min-width: 1024px) {
    .himetop-institutional__figure { order: 1; }
}
.himetop-institutional__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.himetop-institutional__figure:hover img {
    transform: scale(1.07);
}
.himetop-institutional__figure-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 28, 84, 0.8) 0%, transparent 60%);
}
.himetop-institutional__figure-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: #fff;
}
.himetop-institutional__figure-caption .eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.5rem;
}
.himetop-institutional__figure-caption h4 {
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    margin: 0;
}
.himetop-institutional__figure-caption p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.himetop-institutional__body {
    order: 1;
}
@media (min-width: 1024px) {
    .himetop-institutional__body { order: 2; }
}
.himetop-institutional__body > .himetop-eyebrow {
    font-size: 0.625rem;              /* text-[10px] */
    letter-spacing: 0.3em;            /* tracking-[0.3em] */
    margin-bottom: 1rem;              /* mb-4 */
    display: block;
}
.himetop-institutional__body h3 {
    font-size: clamp(2.25rem, 4vw, 3rem);  /* text-4xl → text-5xl */
    line-height: 1.25;                 /* leading-tight */
    margin-bottom: 2rem;               /* mb-8 */
    letter-spacing: -0.02em;
}
.himetop-institutional__body .prose {
    color: var(--himetop-slate-700);
    line-height: 1.8;                  /* leading-[1.8] */
    font-weight: 500;                  /* font-medium */
    max-width: 42rem;                  /* max-w-2xl */
}
.himetop-institutional__body .prose p {
    margin-bottom: 1.5rem;
}
.himetop-institutional__body .prose strong {
    color: var(--himetop-primary-container);
    font-weight: 700;
}

.himetop-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(197, 198, 209, 0.3);
    flex-wrap: wrap;
}
.himetop-stats__item {
    display: flex;
    flex-direction: column;
}
.himetop-stats__value {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--himetop-primary-container);
    line-height: 1;
}
.himetop-stats__label {
    font-size: 0.625rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--himetop-outline);
    letter-spacing: 0.15em;
    margin-top: 0.4rem;
}
.himetop-stats__sep {
    width: 1px;
    height: 2.5rem;
    background: rgba(197, 198, 209, 0.3);
}

/* -----------------------------------------------------------------------------
   11. Community feed + action sidebar
   -------------------------------------------------------------------------- */

.himetop-feed-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .himetop-feed-row { grid-template-columns: 2fr 1fr; }
}

.himetop-feed {
    background: var(--himetop-surface-container-lowest);
    border-radius: var(--himetop-r-xl);
    box-shadow: var(--himetop-shadow-editorial);
    padding: 2.5rem;
    border: 1px solid rgba(225, 227, 228, 0.5);
}
.himetop-feed__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--himetop-surface-container);
}
.himetop-feed__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;                   /* gap-3 */
    font-size: 1.25rem;             /* text-xl */
    font-weight: 800;               /* font-extrabold */
    color: var(--himetop-primary-container);
    letter-spacing: -0.025em;       /* tracking-tight */
    margin: 0;
}
.himetop-feed__live {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.himetop-feed__live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
}
.himetop-feed__live-label {
    font-size: 0.5625rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--himetop-outline);
    letter-spacing: 0.15em;
}

.himetop-feed__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.himetop-feed__item {
    display: flex;
    gap: 1.5rem;
}
.himetop-feed__avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.himetop-feed__avatar {
    width: 3rem;                    /* w-12 */
    height: 3rem;                   /* h-12 */
    border-radius: var(--himetop-r-lg); /* rounded-lg = 0.25rem */
    background: var(--himetop-surface-container);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--himetop-outline);
    flex-shrink: 0;
}
.himetop-feed__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.himetop-feed__line {
    width: 2px;
    flex-grow: 1;
    background: var(--himetop-surface-container);
    margin-top: 0.5rem;
}
.himetop-feed__body {
    padding-bottom: 2rem;
    flex: 1;
}
.himetop-feed__item:last-child .himetop-feed__body {
    padding-bottom: 0;
}
.himetop-feed__author {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--himetop-primary-container);
    margin-bottom: 0.25rem;
}
.himetop-feed__action {
    font-weight: 400;
    color: var(--himetop-outline);
    margin-left: 0.5rem;
}
.himetop-feed__excerpt {
    color: var(--himetop-slate-600);
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}
.himetop-feed__meta {
    font-size: 0.625rem;
    color: var(--himetop-outline);
    font-weight: 500;
}
.himetop-feed__thumbs {
    display: flex;
    gap: 0.5rem;
    margin: 0.25rem 0 0.75rem;
}
.himetop-feed__thumbs img,
.himetop-feed__thumbs div {
    width: 4rem;
    height: 3rem;
    border-radius: var(--himetop-r-sm);
    background: var(--himetop-surface-container);
    object-fit: cover;
}

.himetop-feed__more {
    width: 100%;
    margin-top: 1.5rem;             /* mt-6 */
    padding: 1rem;                  /* py-4 */
    border: 1px dashed var(--himetop-outline-variant);
    background: transparent;
    color: var(--himetop-outline);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;          /* tracking-widest */
    font-size: 0.625rem;            /* text-[10px] */
    border-radius: var(--himetop-r-lg); /* rounded-lg */
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
}
.himetop-feed__more:hover {
    background: var(--himetop-surface-container-low);
}

/* Sidebar */
.himetop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.himetop-action-card {
    background: var(--himetop-primary-container);
    color: #fff;
    padding: 2rem;                  /* p-8 */
    border-radius: var(--himetop-r-xl);  /* rounded-xl */
    box-shadow: var(--himetop-shadow-editorial);
}
.himetop-action-card h4 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.himetop-action-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.himetop-action-card .himetop-btn {
    width: 100%;
    background: var(--himetop-primary-fixed);
    color: var(--himetop-primary-container);
}
.himetop-action-card .himetop-btn:hover {
    background: #fff;
    color: var(--himetop-primary-container);
}

.himetop-quicklinks {
    background: #fff;
    padding: 2rem;                  /* p-8 */
    border-radius: var(--himetop-r-xl);  /* rounded-xl */
    border: 1px solid var(--himetop-surface-container);
}
.himetop-quicklinks h4 {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--himetop-primary-container);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}
.himetop-quicklinks ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.himetop-quicklinks .himetop-quicklinks a,
.himetop-quicklinks li a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--himetop-slate-600);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}
.himetop-quicklinks li a:hover {
    color: var(--himetop-primary-container);
}
.himetop-quicklinks li a svg {
    opacity: 0.5;
}

/* -----------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.himetop-footer {
    background: var(--himetop-primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 5rem 2rem;
}
.himetop-footer * { color: inherit; }
.himetop-footer__inner {
    max-width: var(--himetop-container);
    margin: 0 auto;
}
.himetop-footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    margin-bottom: 4rem;
}
@media (min-width: 768px) {
    .himetop-footer__top { flex-direction: row; align-items: center; }
}
.himetop-footer .himetop-footer__brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.himetop-footer .himetop-footer__brand p {
    color: var(--himetop-slate-400);
    font-size: 0.875rem;            /* text-sm */
    max-width: 24rem;               /* max-w-sm */
    line-height: 1.6;
    margin: 0;
}
.himetop-footer .himetop-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 3rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.625rem;
    font-weight: 700;
    list-style: none;
    padding: 0;
    margin: 0;
}
.himetop-footer .himetop-footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.himetop-footer .himetop-footer__links a:hover { color: #fff; }
.himetop-footer .himetop-footer__links a.is-current,
.himetop-footer .himetop-footer__links .current-menu-item > a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.5rem;
}

.himetop-footer__report {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.himetop-footer__report:hover,
.himetop-footer__report:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}
.himetop-footer__report .himetop-icon { fill: currentColor; }
@media (min-width: 768px) {
    .himetop-footer__report { margin-top: 2rem; }
}

.himetop-footer .himetop-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 3rem;
    margin-bottom: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}
@media (min-width: 768px) {
    .himetop-footer .himetop-footer__grid { grid-template-columns: repeat(3, 1fr); }
}
.himetop-footer .himetop-footer__grid h5 {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--himetop-slate-500);
    margin-bottom: 1rem;
}
.himetop-footer .himetop-footer__grid p {
    color: var(--himetop-slate-300);
    font-size: 0.75rem;
    line-height: 1.7;
    margin: 0;
}

.himetop-footer .himetop-footer__lang {
    display: flex;
    gap: 1rem;
}
.himetop-footer .himetop-footer__lang a,
.himetop-footer .himetop-footer__lang button {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--himetop-slate-500);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.himetop-footer .himetop-footer__lang a:hover,
.himetop-footer .himetop-footer__lang button:hover {
    color: var(--himetop-slate-300);
}
.himetop-footer .himetop-footer__lang .is-active { color: #fff; }

.himetop-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.himetop-footer__rule {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-bottom: 2rem;
}
.himetop-footer .himetop-footer__copy {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--himetop-slate-500);
    text-align: center;
}

/* -----------------------------------------------------------------------------
   13. Single page template (internal article)
   -------------------------------------------------------------------------- */

.himetop-article {
    max-width: var(--himetop-container);
    margin: 0 auto;
    padding: 4rem 2rem 6rem;      /* 64px top — main already compensates for the fixed header */
}

/* Inner elements stick to a reading width, LEFT-aligned to the container's
   left edge so they align exactly with the index page headers at the same x. */
.himetop-article > .himetop-breadcrumbs,
.himetop-article__header,
.himetop-article__body,
.himetop-article__refs,
.himetop-article__nav {
    max-width: var(--himetop-reading);
    margin-left: 0;
    margin-right: 0;
}

.himetop-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--himetop-outline);
    margin-bottom: 3rem;
}
.himetop-breadcrumbs a {
    color: inherit;
}
.himetop-breadcrumbs a:hover {
    color: var(--himetop-primary);
}
.himetop-breadcrumbs svg {
    width: 0.75em;
    height: 0.75em;
    opacity: 0.6;
}
.himetop-breadcrumbs .current {
    color: var(--himetop-primary);
    font-weight: 700;
}

.himetop-article__header {
    margin-bottom: 4rem;
}
.himetop-article__title {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 900;
    color: var(--himetop-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 1.5rem;
}
.himetop-article__lead {
    font-size: 1.25rem;
    color: var(--himetop-on-surface-variant);
    font-weight: 300;
    line-height: 1.7;
    border-left: 4px solid var(--himetop-primary-container);
    padding-left: 1.5rem;
    font-style: italic;
    margin: 0;
}

.himetop-article__body {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--himetop-on-surface);
}
.himetop-article__body p {
    margin-bottom: 1.5rem;
}
.himetop-article__body strong {
    color: var(--himetop-primary-container);
    font-weight: 700;
}
.himetop-article__body em,
.himetop-article__body i {
    font-style: italic;
}
.himetop-article__body h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1rem;
}
.himetop-article__body h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-top: 2.5rem;
}
.himetop-article__body ul,
.himetop-article__body ol {
    margin: 0 0 1.5rem 1.5rem;
}
.himetop-article__body li { margin-bottom: 0.5rem; }

.himetop-article__body a {
    color: var(--himetop-primary-container);
    border-bottom: 1px solid rgba(0, 28, 84, 0.3);
}
.himetop-article__body a:hover {
    border-bottom-color: var(--himetop-primary-container);
}

/* Compact "@" mailto badge — used in scraped content for credits.
   The visible glyph is just "@", but href + tooltip + aria-label expose
   the full email to clipboard, click, and screen readers. */
.himetop-email-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4em;
    height: 1.4em;
    margin: 0 0.15em;
    border-radius: 50%;
    background: var(--himetop-primary-container);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.85em;
    line-height: 1;
    border-bottom: 0 !important;
    transition: background 0.15s ease, transform 0.15s ease;
    vertical-align: 0.05em;
}
.himetop-email-icon:hover,
.himetop-email-icon:focus {
    background: #00103a;
    transform: scale(1.1);
    color: #fff !important;
}

/* Stethoscope bullet — applied to all content lists sitewide.
   Targets article body, index intro, and accordion lists only —
   NOT navigation, footer, tags, or breadcrumbs. */
.himetop-article__body ul li,
.himetop-index__intro ul li,
.himetop-accordion .himetop-child-index__list li {
    list-style: none;
    position: relative;
    padding-left: 1.6rem;
}
.himetop-article__body ul,
.himetop-index__intro ul {
    padding-left: 0;
}
.himetop-article__body ul li::before,
.himetop-index__intro ul li::before,
.himetop-accordion .himetop-child-index__list li::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0f1";
    position: absolute;
    left: 0;
    top: 0.15em;
    font-size: 0.8em;
    color: var(--himetop-primary-container);
    opacity: 0.6;
}
/* Wikidot wrapped nested lists in extra <li style="list-style:none;display:inline">
   shells that have no semantic value. Hide the stethoscope on those wrappers
   and remove the padding so the leaf items align with the parent. */
.himetop-article__body ul li[style*="list-style"][style*="none"]::before,
.himetop-index__intro ul li[style*="list-style"][style*="none"]::before {
    content: none;
}
.himetop-article__body ul li[style*="list-style"][style*="none"],
.himetop-index__intro ul li[style*="list-style"][style*="none"] {
    padding-left: 0;
}

/* Article images get a zoom-in cursor so it's obvious they're clickable —
   the lightbox opens the full-resolution original on click. */
.himetop-article__body figure img,
.himetop-article__body a img,
.himetop-index__intro figure img,
.himetop-index__intro a img {
    cursor: zoom-in;
}

/* Figure + figcaption — apply to both article and index intro scraped content */
.himetop-article__body figure.wp-block-image,
.himetop-index__intro figure.wp-block-image,
.himetop-article__body #page-content figure,
.himetop-index__intro #page-content figure,
.himetop-article__body #page-content img:not(figure img),
.himetop-index__intro #page-content img:not(figure img) {
    margin: 2.5rem 0;
    display: block;
}
.himetop-article__body figure.wp-block-image img,
.himetop-index__intro figure.wp-block-image img,
.himetop-article__body #page-content figure img,
.himetop-index__intro #page-content figure img {
    border-radius: var(--himetop-r-lg);
    box-shadow: var(--himetop-shadow-sm);
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
}
.himetop-article__body figure.wp-block-image figcaption,
.himetop-index__intro figure.wp-block-image figcaption,
.himetop-article__body #page-content figure figcaption,
.himetop-index__intro #page-content figure figcaption {
    margin-top: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--himetop-outline);
    text-align: center;
    font-style: normal;
}
/* Two consecutive figures without text between them — keep breathing room */
.himetop-article__body figure + figure,
.himetop-index__intro figure + figure,
.himetop-article__body #page-content figure + figure,
.himetop-index__intro #page-content figure + figure {
    margin-top: 2.5rem;
}

/* Lightbox overlay */
.himetop-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 24, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 2rem;
}
.himetop-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}
.himetop-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    width: auto;
    height: auto;
    border-radius: var(--himetop-r-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}
.himetop-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.himetop-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.himetop-lightbox__caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(90vw, 60rem);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    text-align: center;
    padding: 0.5rem 1rem;
}

/* Tags (per-page) */
.himetop-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--himetop-surface-container-high);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.himetop-tags__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--himetop-outline);
}
.himetop-tags__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.himetop-tags__tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--himetop-surface-container);
    color: var(--himetop-primary-container);
    border-radius: var(--himetop-r-lg);
    font-size: 0.8125rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.himetop-tags__tag:hover,
.himetop-tags__tag:focus {
    background: var(--himetop-surface-container-high);
    border-color: var(--himetop-primary-container);
}

/* Homepage: News section */
.himetop-anniversary-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: var(--himetop-surface-container);
    border-left: 3px solid var(--himetop-primary-container);
    border-radius: var(--himetop-r-lg);
    margin-bottom: 2.5rem;
}
.himetop-anniversary-strip__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--himetop-primary-container);
}
.himetop-anniversary-strip ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}
.himetop-anniversary-strip a {
    color: var(--himetop-on-surface);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 28, 84, 0.15);
}
.himetop-anniversary-strip a:hover {
    border-bottom-color: var(--himetop-primary-container);
}

.himetop-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.himetop-news-card {
    background: #fff;
    border: 1px solid var(--himetop-surface-container-high);
    border-radius: var(--himetop-r-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.himetop-news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--himetop-shadow-sm);
}
.himetop-news-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.himetop-news-card__media {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--himetop-surface-container);
}
.himetop-news-card__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--himetop-outline);
}
.himetop-news-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.himetop-news-card__meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--himetop-outline);
    margin-bottom: 0.5rem;
}
.himetop-news-card__type {
    color: var(--himetop-primary-container);
    font-weight: 600;
}
.himetop-news-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    line-height: 1.3;
    color: var(--himetop-primary-container);
}
.himetop-news-card__excerpt {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--himetop-on-surface);
}

/* Homepage: Random Landmarks */
.himetop-random-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.himetop-random-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--himetop-r-lg);
    overflow: hidden;
    background: var(--himetop-surface-container);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.himetop-random-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--himetop-shadow-sm);
}
.himetop-random-card__media {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
}
.himetop-random-card__title {
    margin: 0;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.3;
    color: var(--himetop-primary-container);
}

/* Map page */
.himetop-map-wrap {
    max-width: var(--himetop-container);
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}
.himetop-map {
    width: 100%;
    height: min(75vh, 720px);
    border-radius: var(--himetop-r-lg);
    overflow: hidden;
    box-shadow: var(--himetop-shadow-sm);
    background: var(--himetop-surface-container);
}
.himetop-map__meta {
    margin-top: 1rem;
    color: var(--himetop-outline);
    font-size: 0.8125rem;
}
/* Leaflet popup */
.leaflet-popup-content-wrapper {
    border-radius: var(--himetop-r-lg) !important;
}
.leaflet-popup-content {
    font-family: inherit;
    margin: 0.875rem 1rem;
}
.leaflet-popup-content a {
    color: var(--himetop-primary-container);
    font-weight: 600;
    text-decoration: none;
}

/* News single/archive */
.himetop-news-article {
    max-width: var(--himetop-container);
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}
.himetop-news-article__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--himetop-outline);
    margin-bottom: 1rem;
}
.himetop-news-article__meta .type {
    color: var(--himetop-primary-container);
    font-weight: 600;
}
.himetop-news-article__title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    margin: 0 0 2rem;
    color: var(--himetop-primary-container);
    max-width: var(--himetop-reading);
}
.himetop-news-article__body {
    max-width: var(--himetop-reading);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--himetop-on-surface);
}
.himetop-news-article__featured {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--himetop-r-lg);
    margin: 0 0 2.5rem;
    box-shadow: var(--himetop-shadow-sm);
}

/* =============================================================
   Search results — editorial SERP (Google-inspired, Himetop voice)
   ============================================================= */
.himetop-serp {
    max-width: 740px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
    font-family: var(--himetop-font-sans,
        -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
    color: var(--himetop-on-surface);
}
.himetop-serp mark {
    background: rgba(255, 220, 120, 0.55);
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

/* Refine-search form */
.himetop-serp__head {
    margin-bottom: 2rem;
}
.himetop-serp__form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--himetop-surface-container-high);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    background: #fff;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.himetop-serp__form:focus-within {
    border-color: var(--himetop-primary-container);
    box-shadow: 0 1px 6px rgba(0, 28, 84, 0.12);
}
.himetop-serp__form-icon {
    flex: 0 0 auto;
    color: var(--himetop-outline);
}
.himetop-serp__form input[type="search"] {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1rem;
    color: var(--himetop-on-surface);
    padding: 0.25rem 0.5rem;
    font: inherit;
}
.himetop-serp__form input[type="search"]::-webkit-search-cancel-button { display: none; }
.himetop-serp__form-btn {
    background: var(--himetop-primary-container);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.15s ease;
}
.himetop-serp__form-btn:hover {
    background: #00103a;
}

.himetop-serp__stats {
    margin: 1rem 0 0;
    color: var(--himetop-outline);
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}
.himetop-serp__stats strong {
    color: var(--himetop-on-surface);
    font-weight: 600;
}

/* Result list — pure Google SERP structure */
.himetop-serp__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}
.himetop-serp__result {
    padding: 1.25rem 0;
    border-top: 1px solid transparent;
}
.himetop-serp__result + .himetop-serp__result {
    border-top-color: rgba(0, 0, 0, 0.05);
}

.himetop-serp__crumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #5f6368;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.himetop-serp__favicon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--himetop-primary-container);
    position: relative;
    flex: 0 0 16px;
}
.himetop-serp__favicon::after {
    content: "H";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.himetop-serp__path {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.himetop-serp__title {
    margin: 0;
    font-weight: 400;
}
.himetop-serp__title a {
    font-family: var(--himetop-font-display,
        "Raleway", -apple-system, "Segoe UI", Roboto, sans-serif);
    font-size: 1.375rem;
    line-height: 1.3;
    color: var(--himetop-primary-container);
    text-decoration: none;
    font-weight: 500;
}
.himetop-serp__title a:hover,
.himetop-serp__title a:focus {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.himetop-serp__title a:visited {
    color: #603f8a; /* the classic visited-link muted purple */
}

.himetop-serp__snippet {
    margin: 0.35rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.58;
    color: #4d5156;
}

/* Empty state */
.himetop-serp__empty {
    padding: 3rem 0;
    color: var(--himetop-on-surface);
}
.himetop-serp__empty h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 1rem;
    color: var(--himetop-on-surface);
}
.himetop-serp__empty ul {
    margin: 0.5rem 0 0 1.2rem;
    padding: 0;
    color: #4d5156;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Pagination — mirrors Google's "GoooooogleOO" numbered pager, with Himetop voice. */
.himetop-serp__pager {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.himetop-serp__pager-logo {
    font-family: var(--himetop-font-display, "Raleway", serif);
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--himetop-primary-container);
    line-height: 1;
    user-select: none;
}
.himetop-serp__pager ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}
.himetop-serp__pager a,
.himetop-serp__pager .current,
.himetop-serp__pager .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.55rem;
    font-size: 0.9375rem;
    color: var(--himetop-primary-container);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.12s ease, color 0.12s ease;
}
.himetop-serp__pager a:hover {
    background: var(--himetop-surface-container);
    text-decoration: underline;
}
.himetop-serp__pager .current {
    color: #202124;
    font-weight: 600;
    cursor: default;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.himetop-serp__pager .prev,
.himetop-serp__pager .next {
    font-weight: 500;
    padding: 0 0.85rem;
}
.himetop-serp__pager .dots {
    color: var(--himetop-outline);
}

/* Tag archive: list of pages tagged */
.himetop-tag-results {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.himetop-tag-result {
    display: block;
    padding: 1.25rem 1.5rem;
    background: var(--himetop-surface-container);
    border-radius: var(--himetop-r-lg);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.himetop-tag-result:hover {
    border-color: var(--himetop-primary-container);
    transform: translateY(-2px);
}
.himetop-tag-result h3 {
    margin: 0 0 0.35rem;
    font-size: 1.0625rem;
    color: var(--himetop-primary-container);
}
.himetop-tag-result p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--himetop-outline);
    line-height: 1.5;
}

/* Tag archive page (system:page-tags-list equivalent) */
.himetop-tag-cloud {
    max-width: var(--himetop-container);
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: baseline;
}
.himetop-tag-cloud a {
    text-decoration: none;
    color: var(--himetop-primary-container);
    padding: 0.25rem 0.75rem;
    border-radius: var(--himetop-r-lg);
    transition: background 0.15s ease;
}
.himetop-tag-cloud a:hover {
    background: var(--himetop-surface-container);
}

/* Article footer: references */
.himetop-article__refs {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--himetop-surface-container-high);
}
.himetop-article__refs h2 {
    font-size: 0.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--himetop-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.himetop-article__refs ol,
.himetop-article__refs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.himetop-article__refs li {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--himetop-on-surface-variant);
    font-weight: 300;
}
.himetop-article__refs li .num {
    color: var(--himetop-primary-container);
    font-weight: 700;
    flex-shrink: 0;
}

.himetop-article__nav {
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--himetop-surface-container-low);
    border-bottom: 1px solid var(--himetop-surface-container-low);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.himetop-article__nav a.adj {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--himetop-outline);
    font-weight: 700;
}
.himetop-article__nav a.adj:hover { color: var(--himetop-primary); }
.himetop-article__actions {
    display: flex;
    gap: 1rem;
}
.himetop-article__actions button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--himetop-r-full);
    background: var(--himetop-surface-container-low);
    border: none;
    color: var(--himetop-primary-container);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.himetop-article__actions button:hover {
    background: var(--himetop-primary-container);
    color: #fff;
}

/* -----------------------------------------------------------------------------
   14. Index page (children grid — updated look)
   -------------------------------------------------------------------------- */

.himetop-index {
    max-width: var(--himetop-container);
    margin: 0 auto;
    padding: 4rem 2rem 6rem;      /* same as article — consistent spacing under the fixed header */
}
.himetop-index__header {
    margin-bottom: 3rem;
    max-width: var(--himetop-reading); /* align title with intro edge */
}
.himetop-index__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--himetop-primary);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1rem;
}
.himetop-index__intro {
    color: var(--himetop-on-surface);
    font-size: 1.0625rem;
    line-height: 1.75;
    /* no max-width: let the inline scraped list use the full 1280 container */
}
.himetop-index__intro a {
    color: var(--himetop-primary-container);
    border-bottom: 1px solid rgba(0, 28, 84, 0.25);
    transition: border-color 0.2s ease;
}
.himetop-index__intro a:hover {
    border-bottom-color: var(--himetop-primary-container);
}
.himetop-index__intro p {
    margin: 0 0 1rem;
}
.himetop-index__intro ul,
.himetop-index__intro ol {
    margin: 0 0 1.5rem 1.25rem;
}
.himetop-index__intro li {
    margin-bottom: 0.375rem;
}

/* Auto-generated child page index (page-index.php) */
.himetop-child-index {
    margin-top: 2rem;
}
.himetop-child-index__az {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.125rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--himetop-surface-container-high);
}
/* also applies to letter buttons in accordion mode */
.himetop-az-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--himetop-r-lg);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--himetop-primary-container);
    text-decoration: none;
    background: var(--himetop-surface-container);
    border: none;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    font-family: inherit;
}
.himetop-az-btn:hover {
    background: var(--himetop-primary-container);
    color: #fff;
}
.himetop-az-btn--action {
    width: auto;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--himetop-outline);
    background: transparent;
    border: 1px solid var(--himetop-surface-container-high);
}
.himetop-az-btn--action:hover {
    background: var(--himetop-surface-container);
    color: var(--himetop-on-surface);
}

/* Accordion (details/summary) */
.himetop-accordion {
    border-bottom: 1px solid var(--himetop-surface-container-high);
}
.himetop-accordion[open] .himetop-accordion__chevron {
    transform: rotate(180deg);
}
.himetop-accordion__summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.himetop-accordion__summary::-webkit-details-marker { display: none; }
.himetop-accordion__summary::marker { display: none; }
.himetop-accordion__summary:hover .himetop-accordion__letter {
    color: var(--himetop-primary-container);
}
.himetop-accordion__letter {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--himetop-primary-container);
    min-width: 2rem;
    line-height: 1;
    transition: color 0.15s ease;
}
.himetop-accordion__count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--himetop-outline);
    background: var(--himetop-surface-container);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}
.himetop-accordion__chevron {
    margin-left: auto;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--himetop-surface-container);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex: 0 0 1.25rem;
}
.himetop-accordion__chevron::after {
    content: '';
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--himetop-on-surface);
    border-bottom: 2px solid var(--himetop-on-surface);
    transform: rotate(45deg) translate(-1px, -1px);
}
.himetop-accordion[open] > .himetop-accordion__summary .himetop-accordion__chevron::after {
    transform: rotate(-135deg) translate(-1px, -1px);
}
.himetop-accordion .himetop-child-index__list {
    columns: 3;
    padding-bottom: 1.25rem;
}
@media (max-width: 700px) {
    .himetop-accordion .himetop-child-index__list { columns: 2; }
}
@media (max-width: 440px) {
    .himetop-accordion .himetop-child-index__list { columns: 1; }
}

.himetop-child-index__az a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--himetop-r-lg);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--himetop-primary-container);
    text-decoration: none;
    background: var(--himetop-surface-container);
    transition: background 0.12s ease, color 0.12s ease;
}
.himetop-child-index__az a:hover {
    background: var(--himetop-primary-container);
    color: #fff;
}
.himetop-child-index__count {
    font-size: 0.8125rem;
    color: var(--himetop-outline);
    margin: 0 0 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.himetop-child-index__letter {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--himetop-primary-container);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--himetop-primary-container);
    display: inline-block;
    min-width: 2rem;
    text-align: center;
    line-height: 1;
    scroll-margin-top: calc(var(--himetop-header-h) + 1.5rem);
}
.himetop-child-index__list {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    columns: 3;
    column-gap: 2rem;
}
@media (max-width: 900px) {
    .himetop-child-index__list { columns: 2; }
}
@media (max-width: 560px) {
    .himetop-child-index__list { columns: 1; }
}
.himetop-child-index__list li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.35rem 0;
    break-inside: avoid;
    border-bottom: 1px solid var(--himetop-surface-container-high);
    font-size: 1rem;
}
.himetop-child-index__list a {
    color: var(--himetop-primary-container);
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    border-radius: var(--himetop-r-md, 6px);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.himetop-child-index__list a:hover,
.himetop-child-index__list a:focus-visible {
    background-color: var(--himetop-surface-container);
    color: var(--himetop-primary);
    transform: translateX(2px);
    outline: none;
}
.himetop-child-index__sub-count {
    font-size: 0.75rem;
    color: var(--himetop-outline);
    background: var(--himetop-surface-container);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Wikidot #page-content wrapper — normalize spacing since we now give it
   the full container width on index pages */
.himetop-index__intro #page-content,
.himetop-article__body #page-content {
    max-width: none;
}
.himetop-index__intro #page-content > *:first-child,
.himetop-article__body #page-content > *:first-child {
    margin-top: 0;
}
.himetop-index__intro #page-content > *:last-child,
.himetop-article__body #page-content > *:last-child {
    margin-bottom: 0;
}

.himetop-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0 0;
    padding: 0;
    list-style: none;
}

.himetop-index-card {
    background: #fff;
    border-radius: var(--himetop-r-xl);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 28, 84, 0.04);
    border: 1px solid var(--himetop-surface-container);
}
.himetop-index-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--himetop-shadow-editorial);
}
.himetop-index-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.himetop-index-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--himetop-surface-container);
}
.himetop-index-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.himetop-index-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--himetop-primary-container);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.himetop-index-card-excerpt {
    font-size: 0.8125rem;
    color: var(--himetop-slate-600);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -----------------------------------------------------------------------------
   15. Tables (from the old stylesheet, refined)
   -------------------------------------------------------------------------- */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: var(--himetop-r);
    border: 1px solid var(--himetop-surface-container);
}
.wp-block-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 0;
}
.wp-block-table th,
.wp-block-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--himetop-surface-container);
    text-align: left;
    vertical-align: top;
}
.wp-block-table thead th {
    background: var(--himetop-surface-container-low);
    font-weight: 700;
    color: var(--himetop-primary-container);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

/* -----------------------------------------------------------------------------
   16. Admin bar + Astra overrides (hide their hero/title bar on himetop pages)
   -------------------------------------------------------------------------- */

body.admin-bar .himetop-header {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .himetop-header { top: 46px; }
}

/* -----------------------------------------------------------------------------
   17. Small helpers
   -------------------------------------------------------------------------- */

.himetop-hidden { display: none !important; }
.himetop-visually-hidden {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.himetop-full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* --------------------------------------------------------------------------
   18. Print stylesheet
   - hide chrome (header, footer, breadcrumbs nav, share buttons, hero carousel)
   - black-on-white text, full-width content
   - reveal link URLs after anchors so paper readers can follow
   - keep figures together with their captions
   -------------------------------------------------------------------------- */
@media print {
    /* Page setup */
    @page { margin: 2cm 1.6cm; }
    html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
    body * { box-shadow: none !important; text-shadow: none !important; }

    .himetop-header,
    .himetop-utility-bar,
    .himetop-nav,
    .himetop-footer,
    .himetop-article__nav,
    .himetop-article__actions,
    .himetop-breadcrumbs,
    .himetop-tags,
    .himetop-hero,
    .himetop-carousel,
    .himetop-lightbox,
    .himetop-child-index__az,
    .himetop-az-btn,
    .himetop-footer__report,
    nav[role="navigation"],
    .skip-link {
        display: none !important;
    }

    .himetop-main,
    .himetop-article,
    .himetop-article__body,
    .himetop-index,
    .himetop-index__intro {
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #000 !important;
        background: #fff !important;
    }

    .himetop-article__title,
    .himetop-index__title {
        font-size: 22pt !important;
        margin: 0 0 0.6em !important;
        color: #000 !important;
    }

    a, a:visited {
        color: #000 !important;
        text-decoration: underline !important;
    }
    /* Reveal anchor targets next to internal text (skip mailto/anchors-only) */
    .himetop-article__body a[href^="http"]::after,
    .himetop-article__body a[href^="/"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #555 !important;
        word-break: break-all;
    }
    /* Don't reveal URL for image links — they're noise next to the figure */
    .himetop-article__body figure a::after { content: none !important; }

    figure, img { break-inside: avoid; page-break-inside: avoid; }
    figcaption { font-size: 9pt; color: #333 !important; }
    img { max-width: 100% !important; height: auto !important; cursor: default !important; }
    h2, h3, h4 { page-break-after: avoid; }
    ul, ol { page-break-inside: avoid; }
    .himetop-article__refs li::before { content: none !important; }

    /* Article URL at the very top — helps readers find the source online */
    .himetop-article__body::before {
        content: "Source: " attr(data-print-url);
        display: block;
        font-size: 9pt;
        color: #555 !important;
        margin-bottom: 1em;
        word-break: break-all;
    }
}
