/* ============================================================================
   The Home Team — "Open House" (hom-theme 1.0.0, 2026-10-17)
   Loads after theme-variables.css and main.css. All site styling lives here.
   A bright home magazine (Stitch direction A): white ground, warm linen
   panels, ONE garden green (links, labels, roof-line marks, buttons, the
   footer), Domine headlines over Hanken Grotesk text. Photos sit in 8px
   rounded frames with every word UNDER them, never on them. Section heads
   are a green roof-line chevron over a Domine title and one hairline.
   Flat: hairlines and linen tints, no shadows.
   ========================================================================= */

/* --- Base ------------------------------------------------------------------- */

html { overflow-x: clip; background: var(--tp-paper); }
body {
    background: var(--tp-paper);
    color: var(--tp-ink);
    font-family: var(--tp-text);
    font-size: var(--tp-size-body);
    line-height: var(--tp-lh-body);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--tp-display); color: var(--tp-ink); line-height: var(--tp-lh-head); font-weight: 700; letter-spacing: 0; }
a { color: var(--tp-green); }
a:hover { color: var(--tp-green-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--tp-green); outline-offset: 2px; }
button, input, select, textarea { font-family: var(--tp-text); }
::selection { background: var(--tp-green); color: var(--tp-on-green); }
img { background: var(--tp-linen); }

.site-container { max-width: var(--tp-page-max); margin: 0 auto; padding-left: var(--tp-gutter); padding-right: var(--tp-gutter); }
.site-main { padding-top: clamp(1.5rem, 3vw, 2.25rem); padding-bottom: 0; }

.hom-skip-link { position: absolute; left: -9999px; top: 0; background: var(--tp-green); color: var(--tp-on-green); padding: 0.75rem 1rem; z-index: 2000; font-weight: 700; }
.hom-skip-link:focus { left: 1rem; top: 1rem; }

/* The roof-line chevron: the old logo's roof, one green stroke. */
.hom-roof { display: block; width: 20px; height: 10px; color: var(--tp-green); flex: none; }

/* Labels: Hanken Grotesk caps, tracked 0.1em, green. */
.hom-label, .hom-kicker, .hom-breadcrumb, .hom-archive-count, .hom-archive-label, .hom-rhead-aside, .hom-room-all,
.hom-newsletter-label, .hom-fhead, .hom-drawer-label, .hom-toc-count, .hom-contents-cat, .hom-pager-count, .hom-strip {
    font-family: var(--tp-text); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.hom-label { margin: 0; font-size: var(--tp-label); color: var(--tp-meta); }
.hom-meta { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--tp-meta); letter-spacing: 0; text-transform: none; font-weight: 500; }
.hom-meta a { color: inherit; text-decoration: none; }
.hom-dot { color: var(--tp-meta); padding: 0 0.15em; }
.hom-kicker { margin: 0; font-size: var(--tp-label); line-height: 1.4; }
.hom-kicker a { color: var(--tp-green); text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; }
.hom-kicker a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* Photo frame: rounded, flush, a linen ground while the image loads. */
.hom-frame { display: block; background: var(--tp-linen); border-radius: var(--tp-radius); overflow: hidden; }
.hom-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.3s ease-out; }
a.hom-frame:hover img { transform: scale(1.015); }
.hom-frame--wide img { aspect-ratio: 16 / 9; }
.hom-frame--photo img { aspect-ratio: 3 / 2; }
.hom-frame--four img { aspect-ratio: 4 / 3; }
.hom-frame--square img { aspect-ratio: 1 / 1; }
.hom-frame--tall img { aspect-ratio: 4 / 5; }
.hom-frame--mid img { aspect-ratio: 4 / 3; }
.hom-frame--lead img { aspect-ratio: 3 / 2; }
.hom-frame--hero img { aspect-ratio: 16 / 9; height: auto; }

/* --- Masthead: linen utility strip, then the white bar ------------------------------ */

.hom-masthead { position: relative; z-index: 100; }
.hom-strip { background: var(--tp-linen); border-bottom: 1px solid var(--tp-rule); }
.hom-strip-inner { max-width: var(--tp-page-max); margin: 0 auto; padding: 0 var(--tp-gutter); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; min-height: 36px; }
.hom-strip p { margin: 0; font-size: 0.75rem; color: var(--tp-ink); }
.hom-strip-link { display: inline-flex; align-items: center; min-height: 36px; font-size: 0.75rem; color: var(--tp-meta); text-decoration: none; }
.hom-strip-link:hover { color: var(--tp-green); text-decoration: underline; text-underline-offset: 0.2em; }

.hom-bar { background: var(--tp-paper); border-bottom: 1px solid var(--tp-rule); }
.hom-mast-inner { max-width: var(--tp-page-max); margin: 0 auto; padding: 1.1rem var(--tp-gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.hom-brand { min-width: 0; flex: none; }
.hom-brand-name { margin: 0; font-size: inherit; line-height: 1; font-weight: inherit; letter-spacing: inherit; }
.hom-wordmark { display: inline-flex; text-decoration: none; }
.hom-logo { display: block; width: auto; height: 60px; max-width: none; background: none; }

.hom-mast-nav { display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; min-width: 0; }
.hom-drawer-clip { display: contents; }
.hom-mast-nav .main-navigation { min-width: 0; display: flex; }
.hom-mast-nav .primary-menu { display: flex; align-items: stretch; flex-wrap: nowrap; gap: 0 1.75rem; list-style: none; margin: 0; padding: 0; }
.hom-mast-nav .main-navigation li { margin: 0; }
.hom-mast-nav .main-navigation a {
    display: inline-flex; align-items: center; min-height: 44px; position: relative; white-space: nowrap;
    font-family: var(--tp-text); font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--tp-ink); text-decoration: none;
}
.hom-mast-nav .main-navigation a:hover { color: var(--tp-green); }
.hom-mast-nav .main-navigation a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--tp-green); opacity: 0; }
.hom-mast-nav .main-navigation a:hover::after, .hom-mast-nav .main-navigation .current-cat > a::after { opacity: 1; }
.hom-mast-nav .main-navigation .current-cat > a { color: var(--tp-green); font-weight: 600; }
.hom-mast-nav .main-navigation .hom-drawer-label, .hom-mast-nav .main-navigation .hom-drawer-sub { display: none; }

.hom-nav-tools { display: flex; align-items: center; gap: 0.5rem; padding-left: 1.25rem; border-left: 1px solid var(--tp-rule); }
.hom-search-toggle {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: var(--tp-ink); cursor: pointer; border-radius: 999px;
}
.hom-search-toggle svg { color: currentColor; width: 20px; height: 20px; }
.hom-search-toggle:hover, .hom-search-toggle[aria-expanded="true"] { color: var(--tp-green); background: var(--tp-linen); }
.hom-subscribe { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.15rem; border-radius: var(--tp-radius); background: var(--tp-green); color: var(--tp-on-green); font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hom-subscribe:hover { background: var(--tp-green-dark); color: var(--tp-on-green); }
.hom-masthead .mobile-menu-toggle { display: none; }
/* Search opens as a row under the bar, pushing the page down (main.css made it a fixed overlay). */
.hom-masthead .mobile-search-form { position: static; transform: none; box-shadow: none; z-index: auto; max-width: var(--tp-page-max); margin: 0 auto; padding: 0.9rem var(--tp-gutter); background: transparent; border-top: 1px solid var(--tp-rule); }
.hom-masthead .mobile-search-form form { max-width: 100%; margin: 0 auto; }
.hom-masthead .search-field { font-size: 1.0625rem; min-height: 48px; border-radius: var(--tp-radius); border: 1px solid var(--tp-rule); background: var(--tp-paper); color: var(--tp-ink); }
.hom-masthead .mobile-search-form button[type="submit"] { min-height: 48px; border-radius: var(--tp-radius); font-weight: 600; background: var(--tp-green); color: var(--tp-on-green); border: 0; }
.hom-masthead .mobile-search-close { background: transparent !important; color: var(--tp-ink) !important; min-width: 44px; min-height: 44px; }

/* --- Breadcrumb -------------------------------------------------------------------- */

.hom-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; margin: 0 0 0.35rem; font-size: 0.75rem; color: var(--tp-meta); }
.hom-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--tp-meta); text-decoration: none; }
.hom-breadcrumb a:hover { color: var(--tp-green); text-decoration: underline; }
.hom-breadcrumb [aria-current], .hom-breadcrumb a:last-of-type:not(:first-child) { color: var(--tp-green); }
.hom-breadcrumb .sep { color: var(--tp-meta); }

/* --- Section heads: roof-line chevron over a Domine title, one hairline -------------- */

.hom-rhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; margin: 0 0 1.75rem; padding: 0 0 1.1rem; border-bottom: 1px solid var(--tp-rule); }
.hom-rhead-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; min-width: 0; }
.hom-rhead-title { margin: 0; font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem); line-height: 1.15; }
.hom-rhead-aside { font-size: 0.75rem; color: var(--tp-meta); text-decoration: none; }
a.hom-rhead-aside { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; color: var(--tp-green); }
a.hom-rhead-aside:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* --- Front: the mosaic (5 / 4 / 3 of twelve) ------------------------------------------- */

.hom-mosaic { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 1.75rem; margin: 0 0 clamp(3rem, 6vw, 4rem); }
.hom-mosaic-col { min-width: 0; display: flex; flex-direction: column; gap: 1.75rem; }
.hom-mosaic-col--mid, .hom-mosaic-col--small { justify-content: space-between; }
.hom-tile { min-width: 0; display: flex; flex-direction: column; }
.hom-tile-body { display: flex; flex-direction: column; gap: 0.3rem; padding-top: 0.85rem; min-width: 0; }
.hom-tile-title { margin: 0; font-weight: 700; text-wrap: balance; }
.hom-tile-title a { color: var(--tp-ink); text-decoration: none; }
.hom-tile-title a:hover { color: var(--tp-green); }
.hom-tile--tall .hom-tile-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.75rem); line-height: 1.15; }
.hom-tile--mid .hom-tile-title { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); line-height: 1.25; }
.hom-tile--small .hom-tile-title { font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem); line-height: 1.3; }
.hom-tile-dek { margin: 0.25rem 0 0; font-size: 1rem; line-height: 1.55; color: var(--tp-meta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Small mosaic tiles are square on desktop so the three columns end level. */
.hom-mosaic-col--small .hom-frame--four img { aspect-ratio: 1 / 1; }

/* --- Front: room by room -------------------------------------------------------------------- */

.hom-rooms-wrap { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.hom-rooms { display: flex; flex-direction: column; gap: 2rem; }
.hom-room { background: var(--tp-panel); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); padding: clamp(1.1rem, 2.5vw, 1.5rem); }
.hom-room-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 0.25rem; padding: 0 0 0.6rem; border-bottom: 1px solid var(--tp-rule); }
.hom-room-title { margin: 0; font-size: 1.3125rem; }
.hom-room-count { font-family: var(--tp-text); font-size: 0.875rem; font-weight: 500; color: var(--tp-meta); }
.hom-room-count::before { content: "("; } .hom-room-count::after { content: ")"; }
.hom-room-all { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px; font-size: 0.75rem; color: var(--tp-green); text-decoration: none; white-space: nowrap; }
.hom-room-all:hover { color: var(--tp-green-dark); text-decoration: underline; text-underline-offset: 0.2em; }

/* Image-left row (rooms, search fallbacks). */
.hom-hrow { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 1.25rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--tp-rule); min-width: 0; }
.hom-hrow:last-child { border-bottom: 0; padding-bottom: 0.25rem; }
.hom-hrow--text { grid-template-columns: minmax(0, 1fr); }
.hom-hrow-body { min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.hom-hrow-title { margin: 0; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.3; text-wrap: balance; }
.hom-hrow-title a { color: var(--tp-ink); text-decoration: none; }
.hom-hrow-title a:hover { color: var(--tp-green); }
.hom-hrow-dek { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--tp-meta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* DIY strip under the rooms. */
.hom-strip-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; padding: 1.1rem 1.5rem; background: var(--tp-paper); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); text-decoration: none; color: var(--tp-ink); }
.hom-strip-card:hover { border-color: var(--tp-green); color: var(--tp-ink); }
.hom-strip-card-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.hom-strip-card-title { font-family: var(--tp-display); font-weight: 700; font-size: 1.1875rem; }
.hom-strip-card-dek { font-size: 0.9375rem; color: var(--tp-meta); }
.hom-strip-card-go { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 1rem; border: 1px solid var(--tp-green); border-radius: var(--tp-radius); font-size: 0.875rem; font-weight: 600; color: var(--tp-green); white-space: nowrap; }
.hom-strip-card:hover .hom-strip-card-go { background: var(--tp-green); color: var(--tp-on-green); }

/* --- Ad frames: labelled, reserved; nothing for readers when unfilled ----------------- */

.hom-ad { text-align: center; background: var(--tp-paper); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); padding: 0.6rem 0.5rem 1rem; min-height: 290px; }
.hom-ad::before { content: "Advertisement"; display: block; font-family: var(--tp-text); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-meta); margin-bottom: 0.6rem; }
.hom-ad:has(ins[data-ad-status="unfill-optimized"]), .hom-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.hom-ad-placeholder { border: 1px dashed var(--tp-rule); padding: 2rem 1rem; color: var(--tp-meta); font-size: 0.875rem; margin: 0 0.5rem; border-radius: var(--tp-radius); }
.hom-ad--atf { margin: 0 0 1.75rem; min-height: 120px; }

/* --- Archive: the linen masthead, full width ---------------------------------------------- */

.hom-archive.site-main { padding-top: 0; }
.hom-archive-head { margin: 0 calc(50% - 50vw) clamp(2rem, 4vw, 2.75rem); background: var(--tp-linen); border-bottom: 1px solid var(--tp-rule); }
.hom-archive-inner { max-width: var(--tp-page-max); margin: 0 auto; padding: clamp(1.5rem, 3.5vw, 2.5rem) var(--tp-gutter) clamp(1.75rem, 4vw, 2.75rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem 2rem; align-items: end; }
.hom-archive-text { min-width: 0; }
.hom-archive-label { display: flex; align-items: center; gap: 0.4rem; margin: 0.35rem 0 0.4rem; font-size: 0.75rem; color: var(--tp-green); }
.hom-archive-label .hom-roof { width: 14px; height: 7px; }
.hom-archive-title { margin: 0; font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.25rem); line-height: 1.08; text-wrap: balance; }
.hom-archive-line { margin: 0.8rem 0 0; max-width: 46em; font-size: 1.125rem; line-height: 1.6; color: var(--tp-meta); }
.hom-archive-count { margin: 0; display: inline-flex; align-items: center; min-height: 34px; padding: 0 0.9rem; background: var(--tp-paper); border: 1px solid var(--tp-rule); border-radius: 999px; font-size: 0.75rem; color: var(--tp-ink); white-space: nowrap; }
.hom-archive-search .search-form { display: flex; gap: 0.5rem; max-width: 520px; margin: 1.1rem 0 0; }
.hom-archive-search .search-field, .hom-empty .search-field { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 0.9rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-paper); color: var(--tp-ink); font-size: 1.0625rem; }
.hom-archive-search .search-submit, .hom-empty .search-submit { min-height: 48px; padding: 0 1.2rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-green); color: var(--tp-on-green); font-weight: 600; cursor: pointer; }

/* The page's first story: a wide white card, photo left (60%), text right. */
.hom-feature { margin: 0 0 clamp(2.25rem, 4.5vw, 3rem); }
.hom-hstory { min-width: 0; display: flex; flex-direction: column; }
.hom-hstory--archive { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; background: var(--tp-paper); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); overflow: hidden; }
.hom-hstory--archive .hom-frame { border-radius: 0; }
.hom-hstory--archive .hom-frame img { aspect-ratio: 3 / 2; height: 100%; }
.hom-hstory-body { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.hom-hstory--archive .hom-hstory-body { justify-content: center; padding: clamp(1.25rem, 3vw, 2rem); }
.hom-hstory-title { margin: 0; text-wrap: balance; }
.hom-hstory--archive .hom-hstory-title { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); line-height: 1.15; }
.hom-hstory-title a { color: var(--tp-ink); text-decoration: none; }
.hom-hstory-title a:hover { color: var(--tp-green); }
.hom-hstory-dek { margin: 0.2rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--tp-meta); }
.hom-hstory--archive .hom-meta { margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--tp-rule); }

/* Card grid: white cards, photo flush at the top, date on a hairline at the foot. */
.hom-grid-wrap { margin: 0; }
.hom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.hom-gcard { min-width: 0; display: flex; flex-direction: column; background: var(--tp-paper); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); overflow: hidden; }
.hom-gcard .hom-frame { border-radius: 0; }
.hom-gcard-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.15rem 1.1rem; min-width: 0; }
.hom-gcard-title { margin: 0; font-size: 1.125rem; line-height: 1.3; text-wrap: balance; }
.hom-gcard-title a { color: var(--tp-ink); text-decoration: none; }
.hom-gcard-title a:hover { color: var(--tp-green); }
.hom-gcard-meta { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--tp-rule); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.hom-gcard .hom-kicker + .hom-gcard-title { margin-top: -0.1rem; }
.hom-gcard-title + .hom-gcard-meta { margin-top: auto; }
.hom-gcard-body > .hom-gcard-title:last-of-type { margin-bottom: 0.6rem; }

/* Pager: square 44px boxes, centred. */
.hom-pager { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin: 2.25rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--tp-rule); }
.hom-pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.hom-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 0.6rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-paper); color: var(--tp-ink); font-family: var(--tp-text); font-size: 1rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.hom-pager a.page-numbers:hover { border-color: var(--tp-green); color: var(--tp-green); }
.hom-pager .page-numbers.current { background: var(--tp-green); border-color: var(--tp-green); color: var(--tp-on-green); }
.hom-pager .page-numbers.dots { border: 0; background: transparent; min-width: 24px; }
.hom-pager-count { margin: 0; font-size: 0.75rem; color: var(--tp-meta); }

/* Plant library: A–Z with dotted leaders. */
.hom-library-wrap { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.hom-library-wrap--top { margin: 0 0 clamp(2.25rem, 4.5vw, 3rem); }
.hom-library { display: flex; flex-direction: column; gap: 1.5rem; }
.hom-library-title { margin: 0 0 0.25rem; font-family: var(--tp-text); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-green); }
.hom-library-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 2rem; }
.hom-library-list li { margin: 0; }
.hom-library-list a { display: flex; align-items: baseline; gap: 0.5rem; min-height: 44px; padding: 0.55rem 0; color: var(--tp-ink); text-decoration: none; font-size: 1rem; font-weight: 600; }
.hom-library-list a:hover .hom-library-name, .hom-library-list a[aria-current] .hom-library-name { color: var(--tp-green); text-decoration: underline; text-underline-offset: 0.2em; }
.hom-library-dots { flex: 1 1 auto; min-width: 1rem; border-bottom: 1px dotted var(--tp-rule); transform: translateY(-0.3em); }
.hom-library-count { flex: none; font-size: 0.875rem; font-weight: 500; color: var(--tp-meta); font-variant-numeric: tabular-nums; }

/* --- Single ------------------------------------------------------------------------------ */

.hom-article-head { max-width: 880px; margin: 0 0 1.5rem; }
.hom-kicker--title { margin: 0.25rem 0 0; }
.hom-title { margin: 0.2rem 0 0; font-size: var(--tp-title); line-height: 1.15; text-wrap: balance; }
.hom-standfirst { margin: 0.85rem 0 0; max-width: 44em; font-family: var(--tp-text); font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--tp-meta); }
.hom-article-meta { margin: 1rem 0 0; padding: 0 0 1rem; border-bottom: 1px solid var(--tp-rule); font-family: var(--tp-text); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tp-meta); }

/* Reading column + sidebar. */
.hom-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--tp-sidebar); gap: var(--tp-side-gap); align-items: start; }
.hom-layout-main { min-width: 0; }
.hom-hero { margin: 0 0 1.75rem; }
.hom-disclosure { margin: 0 0 1.5rem; padding: 0.75rem 1rem; background: var(--tp-panel); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); font-size: 0.9375rem; line-height: 1.55; color: var(--tp-meta); }
.hom-disclosure a { color: var(--tp-green); font-weight: 600; white-space: nowrap; }
.hom-caption { font-size: 0.875rem; line-height: 1.5; color: var(--tp-meta); padding: 0.55rem 0.1rem 0; }

.hom-article { min-width: 0; }
.hom-article .entry-content { font-size: var(--tp-size-body); line-height: var(--tp-lh-body); color: var(--tp-ink); }
.hom-article .entry-content > * { max-width: 100%; }
.hom-article .entry-content p { text-wrap: pretty; }
.hom-article .entry-content h2 { font-size: var(--tp-h2); font-weight: 700; line-height: 1.18; margin: 3rem 0 1rem; padding: 2.25rem 0 0; border-top: 1px solid var(--tp-rule); border-bottom: 0; letter-spacing: 0; scroll-margin-top: 1.5rem; text-wrap: balance; }
.hom-article .entry-content h3 { font-size: var(--tp-h3); margin: 2.25rem 0 0.75rem; padding-top: 0; border-top: 0; scroll-margin-top: 1.5rem; text-wrap: balance; }
.hom-article .entry-content h2 + h3 { border-top: 0; padding-top: 0; }
/* The first heading right after the hero photo: 44px + the figure's 28px read as a hole (visual QA 2026-10-14, 72px vs 16px below). */
.hom-article .entry-content > h2:first-child, .hom-toc + h2 { margin-top: 0.75rem; padding-top: 0; border-top: 0; }
.hom-item-no { display: inline-block; margin-right: 0.3em; color: var(--tp-green); font-size: 1.35em; line-height: 0.9; font-variant-numeric: lining-nums; vertical-align: -0.04em; }
.hom-article .entry-content h4 { font-family: var(--tp-text); font-weight: 700; font-size: 1.125rem; }
.hom-article .entry-content a { color: var(--tp-green); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.hom-article .entry-content a:hover { color: var(--tp-green-dark); text-decoration-thickness: 2px; }
.hom-article .entry-content strong { font-weight: 700; color: var(--tp-ink); }
.hom-article .entry-content figure { margin: 2.25rem 0; }
.hom-article .entry-content figure img, .hom-article .entry-content p > img { display: block; background: var(--tp-linen); border: 0; padding: 0; border-radius: var(--tp-radius); height: auto; box-shadow: none; }
.hom-article .entry-content figcaption { text-align: left; font-style: normal; font-size: 0.9375rem; line-height: 1.5; color: var(--tp-meta); padding-top: 0.55rem; }
.hom-article .entry-content ol, .hom-article .entry-content ul { padding-left: 1.5rem; }
.hom-article .entry-content li { margin-bottom: 0.5rem; }
.hom-article .entry-content li::marker { color: var(--tp-green); font-weight: 700; }
.hom-article .entry-content blockquote { border: 0; border-left: 3px solid var(--tp-green); border-radius: 0; background: transparent; margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.25rem; font-family: var(--tp-display); font-size: 1.375rem; line-height: 1.45; color: var(--tp-ink); }
.hom-article .entry-content blockquote p { margin: 0; }
.hom-article .entry-content blockquote p + p { margin-top: 0.75rem; }
.hom-article .entry-content hr { border: 0; border-top: 1px solid var(--tp-rule); }
.table-scroll { overflow-x: auto; margin: 1.75rem 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); }
.table-scroll table { min-width: 560px; margin: 0; }
.hom-article .entry-content table { border-collapse: collapse; width: 100%; font-size: 0.95em; background: transparent; }
.hom-article .entry-content th { background: var(--tp-linen); color: var(--tp-ink); font-family: var(--tp-text); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.035em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--tp-rule); }
.hom-article .entry-content td, .hom-article .entry-content th { border-bottom: 1px solid var(--tp-rule); padding: 0.75rem 0.9rem; vertical-align: top; min-width: 9rem; }
.hom-article .entry-content tr:last-child td { border-bottom: 0; }
.hom-article .entry-content td:first-child, .hom-article .entry-content th:first-child { position: sticky; left: 0; z-index: 1; }
.hom-article .entry-content td:first-child { background: var(--tp-paper); font-weight: 600; }
.hom-article .entry-content th:first-child { background: var(--tp-linen); }
.hom-article .entry-content tbody tr:nth-child(even) td { background: var(--tp-panel); }

/* "In this guide" (the article's own contents block, hom_toc_panel): linen box, green numbers. */
.hom-toc { margin: 1.5rem 0 2rem; background: var(--tp-linen); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); }
.hom-toc summary { display: flex; align-items: center; gap: 1rem; min-height: 56px; padding: 0.5rem 1.25rem; cursor: pointer; list-style: none; }
.hom-toc summary::-webkit-details-marker { display: none; }
.hom-toc summary::after { content: "+"; font-size: 1.5rem; color: var(--tp-green); margin-left: 0.25rem; }
.hom-toc[open] summary::after { content: "−"; }
.hom-toc-title { font-family: var(--tp-text); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tp-green); }
.hom-toc-count { margin-left: auto; font-size: 0.75rem; color: var(--tp-meta); }
.hom-article .entry-content .hom-toc-list { list-style: none; margin: 0; padding: 0.25rem 1.25rem 1rem; border-top: 1px solid var(--tp-rule); counter-reset: homtoc; columns: 2; column-gap: 2rem; }
.hom-article .entry-content .hom-toc-list li { margin: 0; padding: 0; counter-increment: homtoc; break-inside: avoid; }
.hom-article .entry-content .hom-toc-list li::marker { content: none; }
.hom-article .entry-content .hom-toc-list a { display: flex; gap: 0.7rem; align-items: baseline; min-height: 44px; padding: 0.45rem 0; color: var(--tp-ink); text-decoration: none; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.hom-article .entry-content .hom-toc-list a::before { content: counter(homtoc); flex: none; min-width: 1.25rem; font-family: var(--tp-display); font-size: 1.25rem; font-weight: 700; color: var(--tp-green); }
.hom-article .entry-content .hom-toc-list a:hover { color: var(--tp-green); text-decoration: underline; }

/* Article pager (posts split with <!--nextpage-->): numbers only. */
.hom-page-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 2.25rem 0 0.5rem; }
.entry-content .hom-page-links .post-page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 0.75rem;
    border: 1px solid var(--tp-green); border-radius: var(--tp-radius); background: var(--tp-panel); color: var(--tp-green);
    font-family: var(--tp-text); font-size: 1rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums;
}
.entry-content .hom-page-links a.post-page-numbers:hover { background: var(--tp-paper); }
.entry-content .hom-page-links .post-page-numbers.current { background: var(--tp-green); border-color: var(--tp-green); color: var(--tp-on-green); }

.hom-team { margin: 2.5rem 0 0; padding: 1.25rem 1.4rem; background: var(--tp-panel); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); }
.hom-team-title { margin: 0 0 0.5rem; font-family: var(--tp-text); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tp-green); }
.hom-team p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--tp-ink); }
.hom-team-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.hom-team-links li { margin: 0; padding: 0; }
.hom-team-links li::before { content: none; }
.hom-team-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; font-weight: 700; }

.hom-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; margin: 2rem 0 0; padding: 0.3rem 0; border-top: 1px solid var(--tp-rule); border-bottom: 1px solid var(--tp-rule); }
.hom-share .hom-label { color: var(--tp-ink); }
.hom-share a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.hom-share a:hover { text-decoration: underline; }

/* Related: six image-top tiles, 3 × 2, under a roof-line head. */
.hom-related { margin: clamp(3rem, 6vw, 4rem) 0 0; padding-top: clamp(2rem, 4vw, 2.5rem); border-top: 1px solid var(--tp-rule); }
.hom-grid--related { row-gap: 2rem; }

/* main.css sets content-visibility:auto (500px placeholder) on the comments; the form is taller,
   so it painted late and shifted the page (visual QA 2026-10-08 on the fork). */
.comments-area { margin-top: 2rem; padding-top: 0; border-top: 0; content-visibility: visible; contain-intrinsic-size: none; }
.comments-area .comments-title, .comments-area .comment-reply-title { font-size: var(--tp-h3); }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-respond { margin: 0; background: var(--tp-panel); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); }
.comments-area label, .comments-area .comment-notes, .comments-area .logged-in-as { color: var(--tp-meta); }
.comments-area input:not([type="checkbox"]):not([type="submit"]), .comments-area textarea { border-radius: var(--tp-radius); border: 1px solid var(--tp-rule); background: var(--tp-paper); color: var(--tp-ink); }
.comments-area input:focus, .comments-area textarea:focus { border-color: var(--tp-green); outline: none; }
.comments-area .submit, .comments-area #submit { background: var(--tp-green) !important; border: none; border-radius: var(--tp-radius) !important; color: var(--tp-on-green) !important; font-weight: 700; min-height: 48px; padding: 0 1.5rem; cursor: pointer; }
.comments-area .submit:hover, .comments-area #submit:hover { background: var(--tp-green-dark) !important; }
.comments-area .comment-body { background: transparent; border: 0; border-bottom: 1px solid var(--tp-rule); border-radius: 0; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.5rem; }
.comment-form-cookies-consent input { flex: 0 0 auto; margin: 0.3rem 0 0; }
.comment-form-cookies-consent label { margin: 0; }

.hom-page { max-width: 820px; margin: 0 auto 0.5rem; }
.hom-empty { max-width: 680px; margin: 0 auto 2rem; padding: 2.5rem 1.5rem; text-align: center; background: var(--tp-panel); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); }
.hom-empty h1, .hom-empty h2 { font-size: var(--tp-title); font-weight: 700; margin: 0.5rem 0 0.75rem; }
.hom-empty .search-form { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; }
.hom-deptlist--chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.hom-deptlist--chips li { border-bottom: 0; }
.hom-deptlist--chips a { padding: 0 1rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-panel); }
.hom-deptlist--chips a:hover { border-color: var(--tp-green); color: var(--tp-green); }

.hom-page-head { text-align: left; margin: 0 0 2rem; padding: 0 0 1.5rem; border-bottom: 1px solid var(--tp-rule); }
.hom-page-kicker { margin: 0 0 .4rem; font-family: var(--tp-text); font-size: 0.75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-green); }
.hom-page-head .hom-page-title { margin: 0; font-family: var(--tp-display); font-size: var(--tp-title); font-weight: 700; line-height: 1.08; color: var(--tp-ink); text-wrap: balance; }
.hom-page-standfirst { margin: .75rem 0 0; font-size: 1.125rem; line-height: 1.55; color: var(--tp-meta); max-width: 40rem; }
.hom-page-updated { margin: .9rem 0 0; font-family: var(--tp-text); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.035em; text-transform: uppercase; color: var(--tp-meta); }
.hom-page .entry-content { font-size: var(--tp-size-body); line-height: var(--tp-lh-body); }
.hom-page .entry-content h2 { font-family: var(--tp-display); font-size: clamp(1.625rem, 1.4rem + .6vw, 2rem); font-weight: 700; line-height: 1.15; margin: 2.25rem 0 .75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--tp-rule); scroll-margin-top: 1.25rem; }
.hom-page .entry-content h2:first-child { margin-top: 0; }
.hom-page .entry-content a { color: var(--tp-green); }
.hom-onpage { margin: 0 0 2rem; padding: 1rem 1.25rem; background: var(--tp-linen); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); }
.hom-onpage-title { margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--tp-rule); font-family: var(--tp-text); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tp-green); }
.hom-page .entry-content .hom-onpage ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.hom-page .entry-content .hom-onpage li { margin: 0; padding: 0; break-inside: avoid; }
.hom-page .entry-content .hom-onpage li::marker { content: none; }
.hom-page .entry-content .hom-onpage a { display: flex; gap: .6rem; align-items: baseline; min-height: 44px; padding: .45rem 0; color: var(--tp-ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.hom-page .entry-content .hom-onpage a:hover span:last-child { color: var(--tp-green); text-decoration: underline; }
.hom-onpage-num { flex: none; color: var(--tp-green); font-family: var(--tp-display); font-weight: 700; }
.hom-page-ask { margin: 2rem 0 0; padding: 1rem 0; border-top: 1px solid var(--tp-rule); }
.hom-page-ask-title { margin: 0 0 .25rem; font-family: var(--tp-display); font-weight: 700; font-size: 1.375rem; }
.hom-page-ask p { margin: 0; }
.hom-page-ask a, .hom-contact-email a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tp-green); font-weight: 600; }
.hom-contact-intro { margin: 0 0 1.5rem; padding: 0 0 1.25rem; border-bottom: 1px solid var(--tp-rule); }
.hom-contact-intro p { margin: 0 0 .5rem; }
.hom-contact-email { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hom-page .inedit-form-group { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.hom-page .inedit-form-group label { font-weight: 600; }
.hom-page .inedit-form-group input, .hom-page .inedit-form-group textarea { font: inherit; min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-paper); color: var(--tp-ink); }
.hom-page .inedit-form-group textarea { min-height: 160px; }
.hom-page .inedit-contact-submit { min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-green); color: var(--tp-on-green); font-weight: 700; cursor: pointer; }

/* --- Sidebar: 300px, boxed widgets, not sticky -------------------------------------------- */

.hom-sidebar { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.hom-widget { background: transparent; border: 0; padding: 0; }
.hom-widget-pop, .hom-widget-topics { background: var(--tp-paper); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); padding: 1.1rem 1.25rem 0.5rem; }
.hom-widget-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--tp-rule); font-size: 1.25rem; line-height: 1.2; }
.hom-widget-title .hom-roof { width: 14px; height: 7px; }
.hom-contents { list-style: none; margin: 0; padding: 0; }
.hom-contents li { display: flex; gap: 0.85rem; align-items: flex-start; margin: 0; padding: 0.85rem 0; border-bottom: 1px solid var(--tp-rule); }
.hom-contents li:last-child { border-bottom: 0; }
.hom-contents-num { flex: none; min-width: 1.1rem; font-family: var(--tp-display); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--tp-green); font-variant-numeric: tabular-nums lining-nums; }
.hom-contents-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.hom-contents-cat { font-size: 0.6875rem; color: var(--tp-green); }
.hom-contents-title { font-family: var(--tp-display); font-weight: 700; font-size: 0.9875rem; line-height: 1.35; color: var(--tp-ink); text-decoration: none; }
.hom-contents-title:hover { color: var(--tp-green); text-decoration: underline; text-decoration-thickness: 1px; }
.hom-deptlist { list-style: none; margin: 0; padding: 0.25rem 0; }
.hom-deptlist li { margin: 0; }
.hom-deptlist a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: 0 0.6rem; margin: 0 -0.6rem; border-radius: 6px; color: var(--tp-ink); text-decoration: none; font-size: 1rem; font-weight: 500; }
.hom-deptlist a:hover { color: var(--tp-green); background: var(--tp-panel); }
.hom-deptlist a.is-current { color: var(--tp-green); background: var(--tp-linen); font-weight: 600; }
.hom-deptlist .hom-count { font-size: 0.8125rem; color: var(--tp-meta); font-variant-numeric: tabular-nums; }
.hom-widget-news { background: var(--tp-linen); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); padding: 1.25rem; }
.hom-widget-news .hom-widget-title { display: block; border: 0; padding: 0; margin: 0 0 0.4rem; font-size: 1.3125rem; text-wrap: balance; }
.hom-widget-dek { margin: 0 0 0.9rem; font-size: 0.9375rem; line-height: 1.5; color: var(--tp-meta); }
.hom-widget-news .newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; }
.hom-widget-news input[type="email"] { min-height: 48px; padding: 0 0.85rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-paper); color: var(--tp-ink); font-size: 1rem; }
.hom-widget-news button { min-height: 48px; padding: 0 1.25rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-green); color: var(--tp-on-green); font-family: var(--tp-text); font-weight: 600; font-size: 1rem; letter-spacing: 0; text-transform: none; cursor: pointer; }
.hom-widget-news button:hover { background: var(--tp-green-dark); }
.hom-newsletter-note { margin: 0.6rem 0 0 !important; font-size: 0.8125rem !important; color: var(--tp-meta); }
.hom-sidebar .hom-ad { min-height: 290px; }

/* --- Newsletter band: a centred linen panel before the footer ------------------------------ */

.hom-newsletter { max-width: var(--tp-page-max); margin: clamp(2rem, 4vw, 3rem) auto clamp(2.5rem, 5vw, 3.5rem); padding: 0 var(--tp-gutter); }
.hom-newsletter-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 3rem); background: var(--tp-linen); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); }
.hom-newsletter-copy { display: flex; flex-direction: column; align-items: center; max-width: 40rem; }
.hom-roof--band { width: 24px; height: 12px; margin-bottom: 0.6rem; }
.hom-newsletter h2 { margin: 0 0 0.5rem; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: 1.12; text-wrap: balance; }
.hom-newsletter-dek { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--tp-meta); }
.hom-newsletter-form-wrap { width: 100%; max-width: 30rem; }
.hom-newsletter .newsletter-form { display: flex; flex-direction: row; gap: 0.6rem; }
.hom-newsletter input[type="email"] { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 1rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-paper); color: var(--tp-ink); font-size: 1.0625rem; }
.hom-newsletter button { min-height: 52px; padding: 0 1.4rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-green); color: var(--tp-on-green); font-family: var(--tp-text); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0; text-transform: none; white-space: nowrap; flex: none; cursor: pointer; }
.hom-newsletter button:hover { background: var(--tp-green-dark); }
.hom-newsletter .hom-newsletter-note { margin-top: 0.75rem !important; }
.newsletter-message { margin-top: 0.75rem; font-weight: 600; }

/* Inline signup inside long lists (hom_inline_newsletter). */
.hom-inline-news { margin: 2rem 0; padding: 1.1rem 1.25rem; background: var(--tp-linen); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); }
.hom-inline-news .hom-newsletter-label { margin: 0 0 0.25rem; font-size: 0.6875rem; color: var(--tp-green); }
.hom-inline-news-title { margin: 0 0 0.75rem !important; font-family: var(--tp-display); font-weight: 700; font-size: 1.25rem; color: var(--tp-ink); }
.hom-inline-news .newsletter-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hom-inline-news input[type=email] { flex: 1 1 220px; min-height: 48px; padding: 0 0.85rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-paper); font: inherit; }
.hom-inline-news button { min-height: 48px; padding: 0 1.25rem; background: var(--tp-green); color: var(--tp-on-green); border: 0; border-radius: var(--tp-radius); font-weight: 600; cursor: pointer; }

/* --- Footer: dark garden green ---------------------------------------------------------------- */

.hom-footer { background: var(--tp-green-dark); color: var(--tp-on-green); }
.hom-footer-inner { max-width: var(--tp-page-max); margin: 0 auto; padding: clamp(2.25rem, 4vw, 3rem) var(--tp-gutter) 1.5rem; }
.hom-footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.hom-footer-word { display: inline-flex; text-decoration: none; }
.hom-footer .hom-logo--footer { height: 64px; }
.hom-footer-about { margin: 0.9rem 0 0; max-width: 34rem; font-size: 1rem; line-height: 1.6; color: var(--tp-on-green-meta); }
.hom-footer-owner { margin: 0.75rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--tp-on-green-meta); }
.hom-footer-owner a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; color: var(--tp-on-green); }
.hom-fhead { margin: 0 0 0.35rem; font-size: 0.75rem; color: var(--tp-on-green-meta); }
.hom-flist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.hom-flist:empty { display: none; }
.hom-flist li { margin: 0; }
.hom-flist a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--tp-on-green); font-size: 0.9375rem; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 0.25em; }
.hom-flist a:hover { color: var(--tp-on-green); text-decoration-color: currentColor; }
.hom-flist--sections { display: flex; flex-direction: column; }
.hom-flist--sections li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.hom-flist--sections li:last-child { border-bottom: 0; }
.hom-flist--sections a { font-family: var(--tp-display); font-size: 1.125rem; font-weight: 700; text-decoration: none; }
.hom-flist--sections a:hover { text-decoration: underline; }
.hom-fcount { font-size: 0.8125rem; font-weight: 600; color: var(--tp-on-green-meta); font-variant-numeric: tabular-nums; }
.hom-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.25rem 2.5rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.hom-footer-links > nav { min-width: 0; }
.hom-footer-links > nav:has(> ul:empty) { display: none; }
.hom-footer-links > nav:last-child { flex: 1 0 100%; }
.hom-flist--legal a { font-size: 0.875rem; color: var(--tp-on-green-meta); }
.hom-colophon { margin: 1rem 0 0; max-width: 64rem; font-size: 0.875rem; line-height: 1.6; color: var(--tp-on-green-meta); }
.hom-footer .hom-footer-note { color: var(--tp-on-green-meta); }

/* --- Static pages: a linen head band ------------------------------------------------------- */

.hom-page-head { background: var(--tp-linen); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); padding: clamp(1.25rem, 3vw, 2rem); }
.hom-deptlist--chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.hom-deptlist--chips a { margin: 0; padding: 0 1rem; border: 1px solid var(--tp-rule); border-radius: 999px; background: var(--tp-paper); }
.hom-deptlist--chips a:hover { border-color: var(--tp-green); color: var(--tp-green); }
.hom-deptlist--chips .hom-count { margin-left: 0.25rem; }

/* --- Responsive ------------------------------------------------------------------------------ */

@media (max-width: 1180px) {
    .hom-mast-nav { gap: 1rem; }
    .hom-mast-nav .primary-menu { gap: 0 1.15rem; }
    .hom-nav-tools { padding-left: 0.75rem; }
}

@media (max-width: 1024px) {
    /* Masthead: wordmark left; search + Subscribe + menu right; sections in the drawer. */
    .hom-mast-inner { padding-top: 0.8rem; padding-bottom: 0.8rem; }
    .hom-nav-tools { border-left: 0; padding-left: 0; gap: 0.25rem; }
    .hom-masthead .mobile-menu-toggle { display: inline-flex !important; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: transparent; border: 0; }
    .hom-masthead .hamburger-line { background: var(--tp-ink); }
    .hom-masthead .mobile-menu-toggle.active .hamburger-line { background: var(--tp-ink); }
    .hom-drawer-clip { display: block; position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 1000; }
    .hom-drawer-clip .main-navigation { position: absolute; pointer-events: auto; background: var(--tp-paper); overflow-y: auto; padding: 0; max-width: none; display: block; }
    .hom-mast-nav .primary-menu, .hom-mast-nav .main-navigation ul.primary-menu { display: block; text-align: left; margin: 0; }
    .hom-mast-nav .main-navigation .primary-menu li { border-bottom: 1px solid var(--tp-rule); }
    .hom-mast-nav .main-navigation a { min-height: 60px; width: 100%; padding: 0 1.5rem; font-family: var(--tp-display); font-size: 1.5rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--tp-ink); }
    .hom-mast-nav .main-navigation a:hover { color: var(--tp-green); }
    .hom-mast-nav .main-navigation a::after { display: none; }
    .hom-mast-nav .main-navigation .current-cat > a { background: var(--tp-linen); color: var(--tp-green); }
    .hom-mast-nav .main-navigation .hom-drawer-label { display: block; margin: 1.25rem 1.5rem 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--tp-rule); font-size: 0.75rem; color: var(--tp-green); }
    .hom-mast-nav .main-navigation .hom-drawer-sub { display: flex; align-items: center; justify-content: center; width: auto; margin: 1.5rem; min-height: 52px; padding: 0 1rem; font-family: var(--tp-text); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; text-transform: none; background: var(--tp-green); color: var(--tp-on-green); border-radius: var(--tp-radius); text-decoration: none; }
    .hom-masthead .mobile-menu-toggle.active { position: fixed; top: 0.75rem; left: auto; right: 0.75rem; z-index: 1002; }

    .hom-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hom-mosaic-col--tall { grid-column: 1 / -1; }
    .hom-mosaic-col--tall .hom-frame--tall img { aspect-ratio: 16 / 9; }
    .hom-mosaic-col--small .hom-frame--four img { aspect-ratio: 4 / 3; }
    .hom-mosaic-col--mid, .hom-mosaic-col--small { justify-content: flex-start; }

    .hom-layout { grid-template-columns: minmax(0, 1fr); }
    .hom-layout > .hom-sidebar { margin-top: 2rem; }
    .hom-sidebar .hom-widget-news, .hom-layout--archive .hom-sidebar .hom-widget-topics { display: none; }
    .hom-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }

    .hom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .hom-footer-top { grid-template-columns: minmax(0, 1fr); }
    .hom-footer-links { flex-direction: column; }
    .hom-hstory--archive { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
    .hom-strip-inner { min-height: 32px; }
    .hom-subscribe { display: none; }
    .hom-mosaic { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .hom-mosaic-col--tall .hom-frame--tall img { aspect-ratio: 3 / 2; }
    .hom-mosaic-col--mid { gap: 1.5rem; }
    .hom-mosaic-col--small { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .hom-tile--small .hom-tile-title { font-size: 1rem; }
    .hom-hrow { grid-template-columns: 38% minmax(0, 1fr); gap: 0 1rem; align-items: start; }
    .hom-hrow-dek { display: none; }
    .hom-room-head { flex-wrap: wrap; }
    .hom-archive-inner { grid-template-columns: minmax(0, 1fr); }
    .hom-archive-count { justify-self: start; }
    .hom-archive-line { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .hom-mosaic-col--small .hom-frame--four img { aspect-ratio: 4 / 3; }
    .hom-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .hom-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
    .hom-newsletter .newsletter-form { flex-direction: column; }
    .hom-page .entry-content .hom-onpage ol { columns: 1; }
    .hom-article .entry-content .hom-toc-list { columns: 1; }
}

@media (max-width: 480px) {
    .hom-strip .hom-strip-line { font-size: 0.6875rem; }
    .hom-logo { height: 46px; }
    .hom-grid--related { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
    a.hom-frame:hover img { transform: none; }
}

/* Theme contact form (inc/contact-form.php): a linen panel with a green top
   rule, the same field and button styles as the newsletter forms; two
   columns for name/email from tablet up. */
.hom-contact-form { margin: 1.75rem 0 2rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--tp-panel); border: 1px solid var(--tp-rule); border-top: 3px solid var(--tp-green); border-radius: var(--tp-radius); }
.hom-contact-form-title { margin: 0 0 1.25rem; font-family: var(--tp-display); font-weight: 700; font-size: 1.375rem; line-height: var(--tp-lh-head); color: var(--tp-ink); }
.hom-contact-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 640px) { .hom-contact-row { grid-template-columns: 1fr 1fr; } }
.hom-page .hom-contact-form .inedit-form-group { margin: 0 0 1.1rem; }
.hom-page .hom-contact-form .inedit-form-group label { font-size: 1rem; color: var(--tp-ink); }
.hom-page .hom-contact-form .inedit-form-group input, .hom-page .hom-contact-form .inedit-form-group select, .hom-page .hom-contact-form .inedit-form-group textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.0625rem; min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-paper); color: var(--tp-ink); }
.hom-page .hom-contact-form .inedit-form-group select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--tp-ink) 50%), linear-gradient(135deg, var(--tp-ink) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 52%, calc(100% - .85rem) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.hom-page .hom-contact-form textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.hom-page .hom-contact-form input:focus, .hom-page .hom-contact-form select:focus, .hom-page .hom-contact-form textarea:focus { outline: 2px solid var(--tp-green); outline-offset: 1px; border-color: var(--tp-green); }
.hom-optional { font-weight: 400; color: var(--tp-meta); }
.hom-contact-hint { margin: .1rem 0 0; font-size: .9375rem; color: var(--tp-meta); }
.hom-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .5rem; }
.hom-page .hom-contact-form .inedit-contact-submit { font-size: 1.0625rem; }
.hom-page .hom-contact-form .inedit-contact-submit:hover { background: var(--tp-green-dark); }
.hom-page .hom-contact-form .inedit-contact-submit:disabled { opacity: .7; cursor: wait; }
.hom-contact-privacy { margin: 0; font-size: .9375rem; color: var(--tp-meta); }
.hom-contact-privacy a { color: var(--tp-green); }
.hom-contact-status { margin-top: 1rem; }
.hom-contact-status:empty { display: none; }
.hom-contact-status.is-ok, .hom-contact-status.is-error { padding: .85rem 1rem; border-radius: var(--tp-radius); font-weight: 600; }
.hom-contact-status.is-ok { background: #EAF1E8; color: #1E4D2B; border: 1px solid #B9D2B3; }
.hom-contact-status.is-error { background: #F8EAE7; color: #7A2617; border: 1px solid #E3BDB4; }
.hom-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
