:root {
    --gate-primary: #2f6f3e;
    --gate-accent: #96b852;
    --gate-dark: #102015;
    --gate-muted: #f3f6ef;
    --gate-white: #ffffff;
    --gate-text: #27312a;
    --gate-border: rgba(16, 32, 21, 0.14);
    --gate-shadow: 0 18px 48px rgba(16, 32, 21, 0.12);
    --gate-radius: 22px;
    --gate-radius-small: 14px;
    --gate-max: 1180px;
    --gate-narrow: 780px;
    --gate-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gate-text);
    background: var(--gate-white);
    font-family: var(--gate-font);
    font-size: 18px;
    line-height: 1.65;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--gate-primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus {
    color: var(--gate-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gate-dark);
    line-height: 1.15;
    margin: 0 0 0.7em;
}

h1 {
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    letter-spacing: -0.055em;
}

h2 {
    font-size: clamp(1.85rem, 4vw, 3rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
    margin: 0 0 1.2em;
}

.gate-container {
    width: min(var(--gate-max), calc(100% - 40px));
    margin-inline: auto;
}

.narrow-content {
    max-width: var(--gate-narrow);
    margin-inline: auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background: var(--gate-white);
    border-radius: 6px;
    box-shadow: var(--gate-shadow);
    clip: auto !important;
    clip-path: none;
    color: var(--gate-dark);
    display: block;
    font-weight: 700;
    height: auto;
    left: 16px;
    padding: 12px 16px;
    top: 16px;
    width: auto;
    z-index: 100000;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--gate-border);
}

.site-header__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-branding__link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gate-dark);
    text-decoration: none;
}

.site-branding__logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-branding__logo img,
.custom-logo {
    display: block;
    max-height: 58px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

.site-branding__mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gate-primary), var(--gate-accent));
    color: var(--gate-white);
    font-weight: 800;
    letter-spacing: -0.08em;
}

.site-branding__text {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.site-branding__title {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-branding__description {
    color: rgba(39, 49, 42, 0.68);
    font-size: 0.88rem;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation__menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.main-navigation__menu a {
    display: block;
    color: var(--gate-dark);
    font-size: 0.96rem;
    font-weight: 650;
    padding: 10px 13px;
    border-radius: 999px;
    text-decoration: none;
}

.main-navigation__menu a:hover,
.main-navigation__menu a:focus,
.main-navigation__menu .current-menu-item > a {
    background: var(--gate-muted);
    color: var(--gate-primary);
}

.main-navigation__toggle {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gate-border);
    border-radius: 999px;
    background: var(--gate-white);
    color: var(--gate-dark);
    padding: 10px 14px;
    font-weight: 700;
}

.main-navigation__toggle-icon,
.main-navigation__toggle-icon::before,
.main-navigation__toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.main-navigation__toggle-icon {
    position: relative;
}

.main-navigation__toggle-icon::before,
.main-navigation__toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.main-navigation__toggle-icon::before {
    top: -6px;
}

.main-navigation__toggle-icon::after {
    top: 6px;
}

.hero-section {
    padding: clamp(70px, 10vw, 130px) 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(150, 184, 82, 0.20), transparent 36%),
        linear-gradient(135deg, var(--gate-muted), #ffffff 68%);
}

.hero-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.lead {
    color: rgba(39, 49, 42, 0.80);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    max-width: 720px;
}

.eyebrow {
    color: var(--gate-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.9em;
    text-transform: uppercase;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.gate-button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--gate-primary);
    color: var(--gate-white) !important;
    font-weight: 750;
    padding: 0.8em 1.25em;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(47, 111, 62, 0.22);
}

.gate-button:hover,
.gate-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
    background: var(--gate-dark);
    color: var(--gate-white) !important;
}

.gate-button--secondary,
.is-style-gate-outline .wp-block-button__link {
    background: transparent;
    border: 1px solid var(--gate-border);
    color: var(--gate-dark) !important;
    box-shadow: none;
}

.hero-card,
.info-card,
.post-card,
.is-style-gate-card {
    background: var(--gate-white);
    border: 1px solid var(--gate-border);
    border-radius: var(--gate-radius);
    box-shadow: var(--gate-shadow);
}

.hero-card {
    padding: clamp(28px, 4vw, 40px);
}

.hero-card__label {
    display: inline-flex;
    border-radius: 999px;
    background: var(--gate-muted);
    color: var(--gate-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 11px;
    text-transform: uppercase;
}

.gate-section {
    padding: clamp(58px, 8vw, 96px) 0;
}

.gate-section--muted {
    background: var(--gate-muted);
}

.section-heading {
    max-width: 800px;
    margin-bottom: 34px;
}

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

.info-card,
.is-style-gate-card {
    padding: clamp(24px, 4vw, 34px);
}

.is-style-gate-highlight {
    background: linear-gradient(135deg, var(--gate-primary), var(--gate-dark));
    color: var(--gate-white);
    border-radius: var(--gate-radius);
    padding: clamp(28px, 4vw, 42px);
}

.is-style-gate-highlight h1,
.is-style-gate-highlight h2,
.is-style-gate-highlight h3,
.is-style-gate-highlight p,
.is-style-gate-highlight a {
    color: var(--gate-white);
}

.is-style-gate-checklist {
    list-style: none;
    padding-left: 0;
}

.is-style-gate-checklist li {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: 0.6em;
}

.is-style-gate-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.56em;
    width: 0.72em;
    height: 0.72em;
    border-radius: 999px;
    background: var(--gate-accent);
}

.page-hero {
    padding-top: clamp(56px, 8vw, 96px);
    padding-bottom: clamp(24px, 5vw, 48px);
}

.entry-content {
    padding-bottom: clamp(60px, 8vw, 96px);
}

.entry-content > * {
    max-width: var(--gate-narrow);
    margin-left: auto;
    margin-right: auto;
}

.entry-content > .alignwide {
    max-width: var(--gate-max);
}

.entry-content > .alignfull {
    max-width: none;
    width: 100%;
}

.entry-content .wp-block-columns,
.entry-content .wp-block-group.alignwide,
.entry-content .wp-block-query.alignwide {
    max-width: var(--gate-max);
}

.featured-media img {
    width: 100%;
    border-radius: var(--gate-radius);
    box-shadow: var(--gate-shadow);
}

.post-card {
    overflow: hidden;
}

.post-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.post-card__body {
    padding: 24px;
}

.post-card__meta {
    color: rgba(39, 49, 42, 0.62);
    font-size: 0.86rem;
    margin-bottom: 10px;
}

.post-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5em;
}

.post-card__title a {
    color: var(--gate-dark);
    text-decoration: none;
}

.read-more {
    font-weight: 800;
    text-decoration: none;
}

.site-footer {
    background: var(--gate-dark);
    color: rgba(255, 255, 255, 0.78);
    padding: 48px 0;
}

.site-footer a,
.site-footer strong {
    color: var(--gate-white);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    gap: 28px;
    align-items: start;
}

.site-footer__brand {
    display: grid;
    gap: 6px;
}

.site-footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__menu a {
    text-decoration: none;
}

.site-footer__meta {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin: 8px 0 0;
    padding-top: 22px;
    font-size: 0.88rem;
}

.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table th,
.wp-block-table td {
    border: 1px solid var(--gate-border);
    padding: 12px 14px;
}

.wp-block-table th {
    background: var(--gate-muted);
    color: var(--gate-dark);
    text-align: left;
}

@media (max-width: 980px) {
    .hero-section__grid,
    .card-grid,
    .post-grid,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .main-navigation__toggle {
        display: inline-flex;
    }

    .main-navigation__menu {
        position: absolute;
        inset: 82px 20px auto 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--gate-white);
        border: 1px solid var(--gate-border);
        border-radius: var(--gate-radius-small);
        box-shadow: var(--gate-shadow);
        padding: 10px;
    }

    .main-navigation.is-open .main-navigation__menu {
        display: flex;
    }

    .main-navigation__menu a {
        border-radius: 10px;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .gate-container {
        width: min(var(--gate-max), calc(100% - 28px));
    }

    .site-header__inner {
        min-height: 74px;
    }

    .site-branding__description {
        display: none;
    }
}


/* v0.3.0 layout refinement -------------------------------------------------
   The first staging test showed that WordPress core layout classes can shrink
   block patterns unexpectedly in classic themes. These stronger rules make the
   homepage sections robust: centered, wide, and aligned consistently. */

.gate-frontpage .entry-content {
    padding-bottom: 0;
}

.gate-frontpage .entry-content > * + * {
    margin-block-start: 0;
}

.gate-frontpage .entry-content > .alignfull,
.entry-content > .wp-block-group.alignfull.hero-section {
    max-width: none;
    width: 100%;
}

.entry-content > .wp-block-group.alignwide,
.entry-content > .wp-block-columns.alignwide,
.entry-content > .wp-block-query.alignwide,
.entry-content .wp-block-group.alignwide,
.entry-content .wp-block-columns.alignwide,
.entry-content .wp-block-query.alignwide {
    max-width: var(--gate-max);
    width: min(var(--gate-max), calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.entry-content .hero-section {
    min-height: clamp(520px, 58vh, 720px);
    display: flex;
    align-items: center;
}

.entry-content .hero-section > .hero-section__grid,
.entry-content .hero-section .hero-section__grid,
.hero-section .hero-section__grid {
    width: min(var(--gate-max), calc(100% - 40px)) !important;
    max-width: var(--gate-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr) !important;
    align-items: center;
    gap: clamp(42px, 7vw, 96px);
}

.hero-section .wp-block-column {
    min-width: 0;
}

.hero-section h1 {
    max-width: 720px;
}

.hero-section .lead {
    max-width: 660px;
}

.hero-card {
    max-width: 460px;
    justify-self: end;
}

.entry-content .card-grid,
.entry-content .post-grid {
    width: min(var(--gate-max), calc(100% - 40px)) !important;
    max-width: var(--gate-max) !important;
    margin: clamp(70px, 8vw, 110px) auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(20px, 3vw, 28px) !important;
    align-items: stretch;
}

.entry-content .card-grid > *,
.entry-content .post-grid > * {
    min-width: 0;
}

.entry-content .card-grid .info-card {
    height: 100%;
    box-shadow: 0 14px 36px rgba(16, 32, 21, 0.09);
}

.entry-content .is-style-gate-highlight.alignwide,
.entry-content > .is-style-gate-highlight.alignwide,
.entry-content .wp-block-group.is-style-gate-highlight {
    width: min(var(--gate-max), calc(100% - 40px)) !important;
    max-width: var(--gate-max) !important;
    margin: clamp(36px, 6vw, 70px) auto clamp(70px, 8vw, 110px) !important;
    padding: clamp(36px, 5vw, 64px);
}

.entry-content .is-style-gate-highlight .wp-block-columns {
    display: flex;
    align-items: center;
    gap: 32px;
}

.entry-content .is-style-gate-highlight .wp-block-button__link {
    background: var(--gate-white);
    color: var(--gate-primary) !important;
    box-shadow: none;
}

.entry-content .is-style-gate-highlight .wp-block-button__link:hover,
.entry-content .is-style-gate-highlight .wp-block-button__link:focus {
    background: rgba(255, 255, 255, 0.88);
    color: var(--gate-dark) !important;
}

.site-header__inner {
    width: min(var(--gate-max), calc(100% - 40px));
}

.site-footer__inner {
    width: min(var(--gate-max), calc(100% - 40px));
}

@media (max-width: 980px) {
    .entry-content .hero-section > .hero-section__grid,
    .entry-content .hero-section .hero-section__grid,
    .hero-section .hero-section__grid,
    .entry-content .card-grid,
    .entry-content .post-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-card {
        max-width: none;
        justify-self: stretch;
    }

    .entry-content .is-style-gate-highlight .wp-block-columns {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .entry-content > .wp-block-group.alignwide,
    .entry-content > .wp-block-columns.alignwide,
    .entry-content > .wp-block-query.alignwide,
    .entry-content .wp-block-group.alignwide,
    .entry-content .wp-block-columns.alignwide,
    .entry-content .wp-block-query.alignwide,
    .entry-content .hero-section > .hero-section__grid,
    .entry-content .hero-section .hero-section__grid,
    .hero-section .hero-section__grid,
    .entry-content .card-grid,
    .entry-content .post-grid,
    .entry-content .is-style-gate-highlight.alignwide,
    .entry-content > .is-style-gate-highlight.alignwide,
    .entry-content .wp-block-group.is-style-gate-highlight {
        width: min(var(--gate-max), calc(100% - 28px)) !important;
    }
}

/* v0.4.0 compact desktop scale --------------------------------------------
   Feedback from the first real staging view showed that the layout felt like
   a browser zoom of 125-150% on 1920x1200 and 2560x1440 displays. The design
   below keeps the same visual direction but reduces type, header, hero height,
   card spacing, and CTA dimensions so the site is comfortable at 100% zoom. */
:root {
    --gate-max: 1080px;
    --gate-narrow: 720px;
    --gate-radius: 18px;
    --gate-radius-small: 12px;
    --gate-shadow: 0 12px 34px rgba(16, 32, 21, 0.10);
}

body {
    font-size: 16px;
    line-height: 1.58;
}

h1 {
    font-size: clamp(2.45rem, 4.2vw, 3.55rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h3 {
    font-size: clamp(1.08rem, 1.55vw, 1.28rem);
}

.site-header__inner {
    min-height: 68px;
    gap: 26px;
}

.site-branding__link {
    gap: 11px;
}

.site-branding__mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 0.98rem;
}

.site-branding__title {
    font-size: 0.96rem;
}

.site-branding__description {
    font-size: 0.78rem;
}

.site-branding__logo img,
.custom-logo {
    max-height: 46px;
    max-width: 106px;
}

.main-navigation__menu a {
    font-size: 0.88rem;
    padding: 8px 12px;
}

.hero-section {
    padding: clamp(46px, 5.2vw, 78px) 0;
}

.entry-content .hero-section {
    min-height: auto;
}

.entry-content .hero-section > .hero-section__grid,
.entry-content .hero-section .hero-section__grid,
.hero-section .hero-section__grid {
    width: min(var(--gate-max), calc(100% - 48px)) !important;
    max-width: var(--gate-max) !important;
    grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.78fr) !important;
    gap: clamp(34px, 5vw, 70px) !important;
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.8em;
}

.lead,
.hero-section .lead {
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.62;
    max-width: 580px;
}

.button-row {
    gap: 10px;
    margin-top: 22px;
}

.gate-button,
.wp-block-button__link {
    font-size: 0.88rem;
    padding: 0.68em 1.05em;
    box-shadow: 0 8px 20px rgba(47, 111, 62, 0.18);
}

.hero-card {
    max-width: 390px;
    padding: clamp(22px, 3vw, 30px);
}

.hero-card__label {
    font-size: 0.68rem;
    padding: 5px 9px;
}

.hero-card p:last-child,
.info-card p:last-child,
.is-style-gate-highlight p:last-child {
    margin-bottom: 0;
}

.gate-section {
    padding: clamp(42px, 5.5vw, 70px) 0;
}

.entry-content .card-grid,
.entry-content .post-grid {
    width: min(var(--gate-max), calc(100% - 48px)) !important;
    max-width: var(--gate-max) !important;
    margin: clamp(42px, 5vw, 64px) auto !important;
    gap: clamp(16px, 2vw, 22px) !important;
}

.info-card,
.is-style-gate-card {
    padding: clamp(20px, 2.4vw, 26px);
}

.info-card h3,
.is-style-gate-card h3 {
    margin-bottom: 0.45em;
}

.info-card p,
.is-style-gate-card p {
    font-size: 0.92rem;
    line-height: 1.55;
}

.entry-content .is-style-gate-highlight.alignwide,
.entry-content > .is-style-gate-highlight.alignwide,
.entry-content .wp-block-group.is-style-gate-highlight {
    width: min(var(--gate-max), calc(100% - 48px)) !important;
    max-width: var(--gate-max) !important;
    margin: clamp(24px, 3.5vw, 42px) auto clamp(44px, 5.5vw, 72px) !important;
    padding: clamp(26px, 3.4vw, 42px);
}

.entry-content .is-style-gate-highlight .wp-block-columns {
    gap: 24px;
}

.entry-content .is-style-gate-highlight .eyebrow {
    margin-bottom: 0.65em;
}

.entry-content .is-style-gate-highlight h2 {
    max-width: 680px;
    margin-bottom: 0;
}

.site-footer {
    padding: 34px 0;
    font-size: 0.9rem;
}

.site-footer__inner {
    gap: 22px;
}

.site-footer__meta {
    padding-top: 16px;
    font-size: 0.82rem;
}

@media (min-width: 1180px) {
    .hero-section {
        padding-top: 64px;
        padding-bottom: 70px;
    }

    .entry-content .card-grid,
    .entry-content .post-grid {
        margin-top: 52px !important;
        margin-bottom: 54px !important;
    }
}

@media (max-width: 980px) {
    h1 {
        font-size: clamp(2.25rem, 7vw, 3.2rem);
    }

    .entry-content .hero-section > .hero-section__grid,
    .entry-content .hero-section .hero-section__grid,
    .hero-section .hero-section__grid {
        grid-template-columns: 1fr !important;
    }

    .hero-section {
        padding: 44px 0 54px;
    }

    .hero-card {
        max-width: none;
    }
}

@media (max-width: 620px) {
    h1 {
        font-size: clamp(2rem, 12vw, 2.75rem);
    }

    .site-header__inner {
        min-height: 64px;
    }

    .site-branding__mark {
        width: 40px;
        height: 40px;
    }

    .entry-content .hero-section > .hero-section__grid,
    .entry-content .hero-section .hero-section__grid,
    .hero-section .hero-section__grid,
    .entry-content .card-grid,
    .entry-content .post-grid,
    .entry-content .is-style-gate-highlight.alignwide,
    .entry-content > .is-style-gate-highlight.alignwide,
    .entry-content .wp-block-group.is-style-gate-highlight {
        width: min(var(--gate-max), calc(100% - 28px)) !important;
    }
}

/* v0.5.0 laptop-first scale -----------------------------------------------
   Target: make the staging page comfortable at 100% browser zoom on common
   laptop viewports such as 1366x768, 1440x900 and effective 1536x864.
   Large monitors remain centered and calm, but they are no longer the design
   baseline. */
:root {
    --gate-max: 1040px;
    --gate-narrow: 680px;
    --gate-radius: 16px;
    --gate-radius-small: 11px;
    --gate-shadow: 0 10px 28px rgba(16, 32, 21, 0.09);
}

body {
    font-size: 15.5px;
    line-height: 1.54;
}

h1 {
    font-size: clamp(2.15rem, 3.05vw, 3rem);
    line-height: 1.03;
    letter-spacing: -0.048em;
}

h2 {
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    line-height: 1.1;
}

h3 {
    font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.site-header__inner {
    min-height: 58px;
    gap: 22px;
}

.site-branding__link {
    gap: 10px;
}

.site-branding__mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 0.86rem;
}

.site-branding__title {
    font-size: 0.88rem;
}

.site-branding__description {
    font-size: 0.72rem;
}

.site-branding__logo img,
.custom-logo {
    max-height: 40px;
    max-width: 96px;
}

.main-navigation__menu a {
    font-size: 0.82rem;
    padding: 7px 10px;
}

.hero-section {
    padding: clamp(34px, 4.4vw, 58px) 0 clamp(38px, 4.8vw, 62px);
}

.entry-content .hero-section > .hero-section__grid,
.entry-content .hero-section .hero-section__grid,
.hero-section .hero-section__grid {
    width: min(var(--gate-max), calc(100% - 48px)) !important;
    max-width: var(--gate-max) !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(270px, 0.78fr) !important;
    gap: clamp(30px, 4vw, 56px) !important;
}

.eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.7em;
}

.lead,
.hero-section .lead {
    font-size: clamp(0.94rem, 1.12vw, 1.04rem);
    line-height: 1.55;
    max-width: 540px;
}

.button-row {
    gap: 9px;
    margin-top: 18px;
}

.gate-button,
.wp-block-button__link {
    font-size: 0.8rem;
    padding: 0.62em 0.98em;
    box-shadow: 0 7px 17px rgba(47, 111, 62, 0.16);
}

.hero-card {
    max-width: 350px;
    padding: clamp(19px, 2.4vw, 26px);
}

.hero-card__label {
    font-size: 0.63rem;
    padding: 4px 8px;
}

.hero-card h2 {
    margin-bottom: 0.45em;
}

.hero-card p {
    line-height: 1.48;
}

.gate-section {
    padding: clamp(36px, 4.8vw, 60px) 0;
}

.entry-content .card-grid,
.entry-content .post-grid {
    width: min(var(--gate-max), calc(100% - 48px)) !important;
    max-width: var(--gate-max) !important;
    margin: clamp(30px, 4.1vw, 48px) auto !important;
    gap: clamp(14px, 1.8vw, 18px) !important;
}

.info-card,
.is-style-gate-card {
    padding: clamp(17px, 2vw, 22px);
}

.info-card h3,
.is-style-gate-card h3 {
    margin-bottom: 0.4em;
}

.info-card p,
.is-style-gate-card p {
    font-size: 0.86rem;
    line-height: 1.5;
}

.entry-content .is-style-gate-highlight.alignwide,
.entry-content > .is-style-gate-highlight.alignwide,
.entry-content .wp-block-group.is-style-gate-highlight {
    width: min(var(--gate-max), calc(100% - 48px)) !important;
    max-width: var(--gate-max) !important;
    margin: clamp(20px, 3vw, 34px) auto clamp(36px, 4.8vw, 58px) !important;
    padding: clamp(22px, 2.8vw, 34px);
}

.entry-content .is-style-gate-highlight .wp-block-columns {
    gap: 20px;
}

.entry-content .is-style-gate-highlight h2 {
    max-width: 600px;
}

.site-footer {
    padding: 28px 0;
    font-size: 0.84rem;
}

.site-footer__inner {
    gap: 18px;
}

.site-footer__meta {
    margin-top: 4px;
    padding-top: 14px;
    font-size: 0.78rem;
}

@media (min-width: 981px) and (max-width: 1536px), (min-width: 981px) and (max-height: 900px) {
    :root {
        --gate-max: 980px;
        --gate-narrow: 650px;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: clamp(2.05rem, 3vw, 2.75rem);
    }

    h2 {
        font-size: clamp(1.35rem, 2vw, 1.82rem);
    }

    .site-header__inner {
        min-height: 56px;
    }

    .site-branding__mark {
        width: 36px;
        height: 36px;
    }

    .hero-section {
        padding: 30px 0 38px;
    }

    .entry-content .hero-section > .hero-section__grid,
    .entry-content .hero-section .hero-section__grid,
    .hero-section .hero-section__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(255px, 0.74fr) !important;
        gap: clamp(26px, 3.4vw, 44px) !important;
    }

    .lead,
    .hero-section .lead {
        font-size: 0.92rem;
        line-height: 1.5;
        max-width: 500px;
    }

    .hero-card {
        max-width: 318px;
        padding: 19px 21px;
    }

    .hero-card h2 {
        font-size: clamp(1.35rem, 2vw, 1.65rem);
    }

    .hero-card p {
        font-size: 0.86rem;
    }

    .button-row {
        margin-top: 16px;
    }

    .entry-content .card-grid,
    .entry-content .post-grid {
        margin-top: 30px !important;
        margin-bottom: 34px !important;
    }

    .info-card,
    .is-style-gate-card {
        padding: 17px 19px;
    }

    .entry-content .is-style-gate-highlight.alignwide,
    .entry-content > .is-style-gate-highlight.alignwide,
    .entry-content .wp-block-group.is-style-gate-highlight {
        margin-top: 18px !important;
        margin-bottom: 38px !important;
        padding: 22px 28px;
    }

    .site-footer {
        padding: 26px 0;
    }
}

@media (min-width: 981px) and (max-height: 760px) {
    .site-header__inner {
        min-height: 52px;
    }

    .site-branding__mark {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .site-branding__description {
        display: none;
    }

    .main-navigation__menu a {
        font-size: 0.78rem;
        padding: 6px 9px;
    }

    .hero-section {
        padding: 24px 0 30px;
    }

    h1 {
        font-size: clamp(1.95rem, 2.7vw, 2.45rem);
    }

    .lead,
    .hero-section .lead {
        font-size: 0.88rem;
        line-height: 1.46;
    }

    .hero-card {
        padding: 17px 19px;
    }

    .hero-card h2 {
        font-size: 1.42rem;
    }

    .entry-content .card-grid,
    .entry-content .post-grid {
        margin-top: 24px !important;
        margin-bottom: 26px !important;
    }

    .entry-content .is-style-gate-highlight.alignwide,
    .entry-content > .is-style-gate-highlight.alignwide,
    .entry-content .wp-block-group.is-style-gate-highlight {
        margin-top: 14px !important;
        margin-bottom: 30px !important;
        padding: 20px 24px;
    }

    .site-footer {
        padding: 22px 0;
    }
}

@media (max-width: 980px) {
    h1 {
        font-size: clamp(2rem, 6.2vw, 2.75rem);
    }

    .hero-section {
        padding: 34px 0 42px;
    }

    .entry-content .hero-section > .hero-section__grid,
    .entry-content .hero-section .hero-section__grid,
    .hero-section .hero-section__grid,
    .entry-content .card-grid,
    .entry-content .post-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: clamp(1.85rem, 10.5vw, 2.45rem);
    }

    .hero-section {
        padding: 28px 0 34px;
    }

    .entry-content .card-grid,
    .entry-content .post-grid {
        margin-top: 24px !important;
        margin-bottom: 28px !important;
    }
}

/* v0.5.1: keep custom logo and site title next to each other in the header. */
.site-branding__link {
    flex-direction: row;
    flex-wrap: nowrap;
}

@media (max-width: 620px) {
    .site-branding__logo img,
    .custom-logo {
        max-height: 36px;
        max-width: 82px;
    }
}

/* v0.5.1 header logo alignment --------------------------------------------
   WordPress renders the custom logo as its own link. The previous header
   wrapped that logo link inside another header link, which browsers corrected
   by breaking the layout. The header now uses a neutral flex container so the
   custom logo/mark and title sit next to each other reliably. */
.site-branding {
    min-width: 0;
}

.site-branding__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gate-dark);
    text-decoration: none;
    min-width: 0;
}

.site-branding__logo,
.site-branding__logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

.site-branding__logo img,
.site-branding__logo .custom-logo,
.custom-logo {
    display: block;
    max-height: 42px;
    max-width: 86px;
    width: auto;
    object-fit: contain;
}

.site-branding__mark {
    flex: 0 0 auto;
    text-decoration: none;
}

.site-branding__text {
    display: grid;
    align-content: center;
    min-width: 0;
    line-height: 1.15;
}

.site-branding__title {
    display: block;
    color: var(--gate-dark);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    white-space: nowrap;
}

.site-branding__title:hover,
.site-branding__title:focus {
    color: var(--gate-primary);
}

.site-branding__description {
    white-space: nowrap;
}

@media (max-width: 620px) {
    .site-branding__logo img,
    .site-branding__logo .custom-logo,
    .custom-logo {
        max-height: 36px;
        max-width: 74px;
    }

    .site-branding__link {
        gap: 9px;
    }
}


/* v0.5.2 clickable information cards --------------------------------------
   If an information card contains exactly one link, JavaScript makes the
   whole card clickable. The CSS below gives these cards a clear interaction
   state without changing the editorial block structure. */
.info-card.is-clickable-card,
.is-style-gate-card.is-clickable-card {
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.info-card.is-clickable-card:hover,
.info-card.is-clickable-card:focus-visible,
.is-style-gate-card.is-clickable-card:hover,
.is-style-gate-card.is-clickable-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(47, 111, 62, 0.36);
    box-shadow: 0 18px 42px rgba(16, 32, 21, 0.13);
    outline: none;
}

.info-card h3 a,
.is-style-gate-card h3 a {
    color: var(--gate-dark);
    text-decoration: none;
}

.info-card h3 a:hover,
.info-card h3 a:focus,
.is-style-gate-card h3 a:hover,
.is-style-gate-card h3 a:focus {
    color: var(--gate-primary);
}

.info-card h3 a::after,
.is-style-gate-card h3 a::after {
    content: "  \2192";
    color: var(--gate-primary);
    font-weight: 800;
    opacity: 0.75;
}

.info-card .card-link,
.is-style-gate-card .card-link,
.info-card p > a:only-child,
.is-style-gate-card p > a:only-child {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    margin-top: 0.35rem;
    color: var(--gate-primary);
    font-weight: 800;
    text-decoration: none;
}

.info-card .card-link:hover,
.info-card .card-link:focus,
.is-style-gate-card .card-link:hover,
.is-style-gate-card .card-link:focus,
.info-card p > a:only-child:hover,
.info-card p > a:only-child:focus,
.is-style-gate-card p > a:only-child:hover,
.is-style-gate-card p > a:only-child:focus {
    color: var(--gate-dark);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
