@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700;800;900&family=Cormorant+Garamond:wght@600;700&display=swap');

:root {
    --ae-bg: #f7f4f2;
    --ae-surface: #ffffff;
    --ae-surface-muted: #f2f3f8;
    --ae-text: #1a2233;
    --ae-text-soft: #5e6471;
    --ae-accent: #2c4f9e;
    --ae-accent-strong: #1d3770;
    --ae-accent-soft: #e8eefb;
    --ae-dark: #141a27;
    --ae-border: #dce2f1;
    --ae-radius: 24px;
    --ae-radius-lg: 36px;
    --ae-shadow: 0 20px 46px rgba(22, 32, 42, .08);
    --ae-container-wide: 1760px;
    --ae-container-narrow: 900px;
    --ae-font: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    --ae-heading: "Cormorant Garamond", Georgia, serif;
    --ae-gradient-start: #1f3977;
    --ae-gradient-end: #b33a4c;
}


html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--ae-font);
    color: var(--ae-text);
    background: linear-gradient(180deg, #fbfaf8 0%, var(--ae-bg) 240px);
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span {
    overflow-wrap: anywhere;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: .15em;
}

a:hover {
    text-decoration-thickness: 2px;
}

.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 {
    clip: auto !important;
    clip-path: none;
    height: auto;
    width: auto;
    background: #fbfdfd;
    color: #111;
    left: 1rem;
    top: 1rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
    z-index: 999999;
}

.container-wide,
.container-narrow {
    width: min(calc(100% - 2rem), var(--ae-container-wide));
    margin-inline: auto;
}

.container-narrow {
    width: min(calc(100% - 2rem), var(--ae-container-narrow));
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.site-footer__title,
.post-card__title,
.widget-title,
.error-404__code {
    font-family: var(--ae-heading);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.02;
}

p {
    margin-top: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 250, 248, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(8, 21, 34, .08);
}

.site-header__inner {
    min-height: 102px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.site-title,
.site-footer__title {
    display: inline-block;
    text-decoration: none;
    font-size: clamp(2rem, 2.4vw, 3.25rem);
}

.site-logo img {
    max-height: 64px;
    width: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 1.5vw, 2.1rem);
    padding: 0;
    margin: 0;
}

.main-navigation a {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.03rem;
    letter-spacing: .01em;
}

.main-navigation .menu-item-has-children > a::after {
    content: "▾";
    margin-left: .45rem;
    font-size: .85em;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-cta,
.button,
.search-submit,
.wp-element-button,
button,
input[type="submit"] {
    appearance: none;
    border: 0;
    border-radius: 18px;
    min-height: 60px;
    padding: .9rem 1.5rem;
    font-family: var(--ae-font);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.header-cta,
.button--yellow,
.search-submit {
    background: linear-gradient(135deg, var(--ae-accent), var(--ae-accent-strong));
    color: var(--ae-dark);
}

.button--dark {
    background: linear-gradient(135deg, #141a27, #233f84);
    color: #fff;
}

.button:hover,
.header-cta:hover,
.search-submit:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(17,19,25,.12);
    text-decoration: none;
}

.search-toggle {
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    flex: 0 0 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--ae-dark);
    background: transparent;
    color: var(--ae-dark);
    text-decoration: none;
}

.search-toggle__icon {
    width: 18px;
    height: 18px;
    border: 3px solid currentColor;
    border-radius: 50%;
    position: relative;
}

.search-toggle__icon::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 3px;
    background: currentColor;
    right: -6px;
    bottom: -5px;
    transform: rotate(45deg);
    border-radius: 2px;
}

.search-toggle:hover {
    background: transparent;
}

.header-search-panel {
    border-top: 1px solid rgba(17, 19, 25, .08);
    background: rgba(255, 255, 255, .98);
}

.header-search-panel[hidden] {
    display: none;
}

.header-search-panel__inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header-search-panel .search-form {
    max-width: 760px;
}

.menu-toggle {
    display: none;
    padding: 0;
    min-height: auto;
    width: 52px;
    height: 52px;
    background: transparent;
    border: 2px solid var(--ae-dark);
    border-radius: 16px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span:not(.screen-reader-text) {
    width: 22px;
    height: 2px;
    background: var(--ae-dark);
    border-radius: 2px;
}

.hero {
    position: relative;
    min-height: min(82vh, 860px);
    color: #fff;
    background-size: cover;
    background-position: center;
    display: grid;
    align-items: end;
}

.hero__content {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.hero__text {
    max-width: 650px;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(3rem, 5vw, 6rem);
}

.hero p {
    font-size: clamp(1.15rem, 2vw, 1.9rem);
    line-height: 1.28;
    margin-bottom: 2rem;
    max-width: 36rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--light {
    background: var(--ae-surface-muted);
}

.section-header {
    max-width: 1100px;
    margin-bottom: 2.75rem;
}

.section-header h2,
.archive-header h1,
.page-header h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.6rem, 4vw, 4.6rem);
}

.section-header p,
.archive-header p {
    margin: 0;
    font-size: clamp(1.1rem, 1.5vw, 1.7rem);
    color: var(--ae-text-soft);
    max-width: 78rem;
}

.card-grid {
    display: grid;
    gap: 2rem;
}

.card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.post-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card__image {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1.25 / 1;
    background: linear-gradient(135deg, #dce8ee, #f8fbfc);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__content {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.post-card__eyebrow,
.single-hero__eyebrow,
.bottom-cta__eyebrow,
.entry-meta__tag {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.post-card__title {
    margin: 0;
    font-size: clamp(2rem, 2.5vw, 3rem);
}

.card-grid--underline .post-card__title a,
.post-card__title a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.post-card__excerpt,
.post-card__meta,
.widget li span,
.single-hero__excerpt {
    color: var(--ae-text-soft);
}

.post-card__meta,
.entry-meta {
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: .95rem;
}

.topic-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-card {
    display: block;
    background: var(--ae-surface);
    border-radius: 22px;
    padding: 1.4rem;
    box-shadow: var(--ae-shadow);
    border: 1px solid var(--ae-border);
    text-decoration: none;
}

.topic-card__media {
    display: block;
    aspect-ratio: 1.4 / 1;
    border-radius: 16px;
    background: linear-gradient(135deg, #dff4f7 0%, #f8fbfc 48%, #b9f4e7 100%);
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.topic-card__media--image {
    background-color: #ececec;
}

.topic-card__title {
    display: block;
    font-family: var(--ae-heading);
    font-size: clamp(1.7rem, 2vw, 2.6rem);
    line-height: 1;
    margin-bottom: .45rem;
}

.topic-card__count {
    color: var(--ae-text-soft);
    font-weight: 700;
}

.bottom-cta {
    padding: 0 0 2rem;
}

.bottom-cta__inner {
    position: relative;
    overflow: hidden;
    border-radius: var(--ae-radius-lg);
    background: linear-gradient(135deg, var(--ae-gradient-start) 0%, var(--ae-gradient-end) 100%);
    min-height: 620px;
    padding: clamp(2rem, 4vw, 3.5rem);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    align-items: center;
}

.bottom-cta__content {
    color: #fff;
    max-width: 700px;
}

.bottom-cta__content h2 {
    margin: 0 0 1.6rem;
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: .95;
}

.bottom-cta__content h2 span {
    display: block;
    color: #fff;
}

.bottom-cta__visual {
    display: flex;
    justify-content: center;
    align-items: end;
    position: relative;
}

.bottom-cta__visual::before,
.bottom-cta__visual::after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,.12);
}

.bottom-cta__visual::before {
    width: 90px;
    height: 280px;
    right: 8%;
    bottom: 5%;
}

.bottom-cta__visual::after {
    width: 180px;
    height: 180px;
    right: -1%;
    top: 18%;
    clip-path: polygon(42% 0, 58% 0, 58% 42%, 100% 42%, 100% 58%, 58% 58%, 58% 100%, 42% 100%, 42% 58%, 0 58%, 0 42%, 42% 42%);
}

.device-frame {
    width: min(320px, 76%);
    aspect-ratio: 10 / 20;
    border-radius: 42px;
    background: #111319;
    padding: 12px;
    box-shadow: 0 35px 75px rgba(17, 19, 25, .28);
}

.device-frame__screen {
    background: #fbfdfd;
    border-radius: 32px;
    height: 100%;
    padding: 1rem;
}

.device-frame__notch {
    position: relative;
    width: 42%;
    height: 24px;
    border-radius: 0 0 18px 18px;
    background: #111319;
    margin: 0 auto -10px;
    z-index: 2;
}

.device-line {
    height: 16px;
    border-radius: 8px;
    background: #d7f6f0;
    margin-bottom: 1rem;
}

.device-line--short {
    width: 58%;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.device-grid span {
    display: block;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #d8f6f1, #6fdac1);
}

.site-footer {
    background: linear-gradient(135deg, #141a27, #233f84);
    color: #fff;
    margin-top: 2rem;
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    background: linear-gradient(135deg, var(--ae-accent), var(--ae-accent-strong));
    color: var(--ae-dark);
    font-weight: 800;
    text-decoration: none;
    position: relative;
}

.back-to-top::after {
    content: "";
    width: 16px;
    height: 16px;
    border-right: 3px solid currentColor;
    border-top: 3px solid currentColor;
    transform: rotate(-45deg);
    margin-left: .9rem;
}

.site-footer__inner {
    padding: 4rem 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
}

.site-footer__menus {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.site-footer .menu,
.site-footer__legal .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .95rem;
}

.site-footer .menu a,
.site-footer__legal .menu a {
    color: rgba(255,255,255,.92);
    font-size: 1.05rem;
    text-decoration: none;
    font-weight: 600;
}

.site-footer__aside {
    display: grid;
    gap: 1.5rem;
    align-content: start;
}

.site-footer__brand p,
.site-footer__bottom p,
.site-footer__legal a {
    color: rgba(255,255,255,.75);
}

.site-footer__bottom {
    padding-bottom: 2.5rem;
}

.site-footer__sponsors-wrap {
    grid-column: 1 / -1;
    padding: 0 0 2rem;
}

.site-footer__sponsors-title {
    margin: 0 0 .85rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}

.site-footer__sponsors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.site-footer__sponsor {
    min-height: 58px;
    padding: .65rem .85rem;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.site-footer__sponsor:hover,
.site-footer__sponsor:focus-visible {
    transform: translateY(-2px);
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.18);
}

.site-footer__sponsor img {
    display: block;
    max-width: 72%;
    max-height: 18px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-main--archive,
.page-main {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.archive-header {
    margin-bottom: 2rem;
}

.breadcrumbs {
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: .96rem;
    color: var(--ae-text-soft);
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: inherit;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 122px;
    display: grid;
    gap: 1rem;
}

.widget {
    background: var(--ae-surface);
    border-radius: 22px;
    padding: 1.3rem;
    box-shadow: var(--ae-shadow);
    border: 1px solid var(--ae-border);
}

.widget-title {
    margin: 0 0 1rem;
    font-size: 2rem;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.widget li a {
    text-decoration: none;
    font-weight: 700;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .75rem;
}

.search-field {
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid var(--ae-border);
    padding: 0 1rem;
    font-size: 1rem;
    width: 100%;
}

.search-field:focus {
    outline: 2px solid rgba(17, 19, 25, .16);
    outline-offset: 2px;
    border-color: rgba(17, 19, 25, .22);
}

.archive-search-form {
    margin-top: 1.5rem;
    max-width: 760px;
}

.single-hero {
    position: relative;
    color: #fff;
}

.single-hero--plain {
    color: var(--ae-text);
    background: var(--ae-surface-muted);
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.single-hero__media {
    position: relative;
    min-height: 420px;
    max-height: 620px;
    overflow: hidden;
    background: #3f3b42;
}

.single-hero__media::before,
.single-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.single-hero__media::before {
    background: linear-gradient(90deg, rgba(17,19,25,.6) 0%, rgba(17,19,25,0) 18%, rgba(17,19,25,0) 82%, rgba(17,19,25,.6) 100%);
    opacity: 0;
    z-index: 1;
}

.single-hero__media::after {
    background: linear-gradient(180deg, rgba(17,19,25,.05), rgba(17,19,25,.72));
    z-index: 2;
}

.single-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.single-hero__overlay {
    position: relative;
    margin-top: -180px;
    padding-bottom: 2rem;
}

.single-hero--plain .single-hero__overlay {
    margin-top: 0;
}

.single-hero__copy {
    max-width: 860px;
}

.single-hero:not(.single-hero--plain) .single-hero__copy {
    display: inline-block;
    padding: 1.35rem 1.45rem 1.4rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(10, 12, 18, .82), rgba(10, 12, 18, .58));
    box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
    backdrop-filter: blur(6px);
}

.single-hero:not(.single-hero--plain) .breadcrumbs,
.single-hero:not(.single-hero--plain) .breadcrumbs a,
.single-hero:not(.single-hero--plain) .single-hero__eyebrow,
.single-hero:not(.single-hero--plain) .entry-meta,
.single-hero:not(.single-hero--plain) .entry-meta__tag,
.single-hero:not(.single-hero--plain) .single-hero__excerpt,
.single-hero:not(.single-hero--plain) .single-hero__copy h1 {
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .32);
}

.single-hero:not(.single-hero--plain) .breadcrumbs,
.single-hero:not(.single-hero--plain) .single-hero__eyebrow,
.single-hero:not(.single-hero--plain) .entry-meta,
.single-hero:not(.single-hero--plain) .single-hero__excerpt {
    opacity: .98;
}

.single-hero__copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.8rem, 5vw, 5rem);
}

.single-hero__excerpt {
    max-width: 48rem;
    font-size: 1.15rem;
    line-height: 1.45;
    color: rgba(255,255,255,.9);
}

.single-hero--plain .single-hero__excerpt,
.single-hero--plain .breadcrumbs {
    color: var(--ae-text-soft);
}

.single-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.single-layout__aside {
    position: sticky;
    top: 120px;
    display: grid;
    gap: 1rem;
}

.single-layout__content,
.entry-content {
    min-width: 0;
}

.single-layout__sidebar {
    grid-column: 1;
}

.single-layout__content {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.single-layout__sidebar .sidebar {
    position: static;
    top: auto;
}

.guide-menu {
    background: var(--ae-surface);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--ae-shadow);
}

.guide-menu__header {
    background: linear-gradient(135deg, var(--ae-accent-soft), #f2fffb);
    padding: 1rem 1.25rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.guide-menu__header::-webkit-details-marker {
    display: none;
}

.guide-menu__heading {
    display: block;
    margin: 0;
    font-family: var(--ae-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.02;
}

.guide-menu__plus {
    position: relative;
    display: none;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.guide-menu__plus::before,
.guide-menu__plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.guide-menu__plus::after {
    width: 2px;
    height: 18px;
}

.guide-menu[open] .guide-menu__plus::after {
    opacity: 0;
}

.guide-menu__body {
    padding: 1.2rem 1.25rem 1.35rem;
}

.guide-menu__title {
    font-weight: 800;
    margin-bottom: .75rem;
}

.guide-menu ol {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: .75rem;
}

.guide-menu a {
    color: var(--ae-dark);
}

.entry-content {
    font-size: 1.08rem;
}

.entry-content > * + * {
    margin-top: 1.2rem;
}

.entry-content h2 {
    margin-top: 2.7rem;
    margin-bottom: .8rem;
    font-size: clamp(2.1rem, 3.3vw, 3.25rem);
}

.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: .75rem;
    font-size: clamp(1.5rem, 2.3vw, 2.2rem);
}

.entry-content strong,
.entry-content b {
    font-weight: 800;
}

.entry-content em,
.entry-content i {
    font-style: italic;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    border-left: 6px solid var(--ae-accent-strong);
    background: linear-gradient(135deg, #ffffff, #f5fffc);
    border-radius: 0 20px 20px 0;
    box-shadow: var(--ae-shadow);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.35rem;
}

.entry-content li + li {
    margin-top: .55rem;
}

.entry-content .wp-block-table,
.entry-content .table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.entry-content .wp-block-table table,
.entry-content .table-responsive table,
.entry-content > table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    background: var(--ae-surface);
    border-radius: 20px;
    box-shadow: var(--ae-shadow);
}

.entry-content > table {
    display: table;
}

.entry-content .table-responsive table {
    width: max-content;
    min-width: 100%;
}

.entry-content thead,
.entry-content tbody,
.entry-content tr {
    width: auto;
}

.entry-content th,
.entry-content td {
    padding: .95rem 1rem;
    border-bottom: 1px solid var(--ae-border);
    text-align: left;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    vertical-align: top;
}

.entry-content th {
    font-weight: 800;
    background: rgba(104, 225, 196, .22);
}

.entry-content figure {
    margin: 2rem 0;
}

.entry-content .wp-block-image img,
.entry-content .wp-block-cover,
.entry-content iframe {
    border-radius: 22px;
    overflow: hidden;
}

.page-article,
.error-404__content {
    background: var(--ae-surface);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--ae-shadow);
    border: 1px solid var(--ae-border);
}

.error-404 {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.error-404__content {
    text-align: left;
    margin-bottom: 2rem;
}

.error-404__code {
    margin: 0 0 .5rem;
    font-size: clamp(4rem, 8vw, 8rem);
}

.error-404__content h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.6rem, 4vw, 4.6rem);
}

.error-404__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.error-404__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pagination-wrap {
    margin-top: 2rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.nav-links .page-numbers {
    min-width: 48px;
    min-height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--ae-border);
    background: var(--ae-surface);
    font-weight: 700;
}

.nav-links .next,
.nav-links .prev {
    padding-inline: .9rem;
}

.nav-links .current {
    background: linear-gradient(135deg, #141a27, #233f84);
    color: #fff;
    border-color: var(--ae-dark);
}

.content-none {
    background: var(--ae-surface);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--ae-shadow);
    border: 1px solid var(--ae-border);
}

.content-none h2 {
    margin-top: 0;
    font-size: 2.4rem;
}

.menu-item-button a {
    background: linear-gradient(135deg, var(--ae-accent), var(--ae-accent-strong));
    color: var(--ae-dark) !important;
    padding: .85rem 1.3rem;
    border-radius: 18px;
}

@media (max-width: 1200px) {
    .content-grid,
    .single-layout {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .single-layout__aside {
        position: static;
    }

    .single-layout__content,
    .single-layout__sidebar {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (min-width: 1025px) {
    .single-hero:not(.single-hero--plain) .single-hero__media {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .single-hero:not(.single-hero--plain) .single-hero__media::before {
        opacity: 1;
    }

    .single-hero:not(.single-hero--plain) .single-hero__media img {
        object-fit: contain;
        object-position: center center;
    }
}

@media (max-width: 1024px) {
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas: "brand toggle actions";
        gap: .85rem;
        padding: .9rem 0;
        min-height: 88px;
    }

    .site-branding {
        grid-area: brand;
        min-width: 0;
    }

    .site-logo img {
        max-height: 52px;
    }

    .site-header__actions {
        grid-area: actions;
        justify-self: end;
        gap: .75rem;
    }

    .main-navigation {
        grid-area: nav;
    }

    .card-grid--three,
    .topic-grid,
    .error-404__grid,
    .bottom-cta__inner {
        grid-template-columns: 1fr;
    }

    .bottom-cta__inner {
        min-height: 0;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        grid-area: toggle;
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .search-toggle {
        width: 48px;
        height: 48px;
        padding: 0;
        min-height: 48px;
        border-radius: 14px;
    }

    .main-navigation {
        position: fixed;
        inset: 88px 0 auto 0;
        background: rgba(255,255,255,.98);
        padding: 1rem;
        border-bottom: 1px solid rgba(17,19,25,.08);
        transform: translateY(-1rem);
        opacity: 0;
        visibility: hidden;
        transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
        pointer-events: none;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
    }

    body.nav-open .main-navigation {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1rem;
    }

    .header-cta {
        display: none;
    }

    .hero {
        min-height: 560px;
    }

    .hero__content {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }

    .single-hero__overlay {
        margin-top: -120px;
    }

    .section,
    .site-main--archive,
    .error-404,
    .single-layout {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .card-grid--two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container-wide,
    .container-narrow {
        width: min(calc(100% - 1.25rem), var(--ae-container-wide));
    }

    .site-header {
        background: #fbfdfd;
        backdrop-filter: none;
    }

    .site-header__inner {
        min-height: 78px;
        gap: .65rem;
    }

    .site-title,
    .site-footer__title {
        font-size: clamp(1.7rem, 9vw, 2.2rem);
    }

    .site-logo img {
        max-height: 44px;
    }

    .hero h1,
    .bottom-cta__content h2,
    .single-hero__copy h1,
    .section-header h2,
    .archive-header h1,
    .page-header h1,
    .post-card__title,
    .content-none h2,
    .error-404__content h1,
    .entry-content h2 {
        line-height: 1.02;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 13vw, 3.4rem);
    }

    .hero p,
    .section-header p,
    .archive-header p,
    .single-hero__excerpt,
    .entry-content {
        font-size: 1rem;
    }

    .hero__actions,
    .error-404__actions,
    .search-form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero__actions .button,
    .error-404__actions .button,
    .search-form > *,
    .search-submit {
        width: 100%;
    }

    .single-hero__media {
        min-height: 300px;
    }

    .single-hero__overlay {
        margin-top: -84px;
        padding-bottom: 1rem;
    }

    .single-hero:not(.single-hero--plain) .single-hero__copy {
        width: 100%;
        padding: 1rem 1rem 1.1rem;
        border-radius: 22px;
        backdrop-filter: none;
    }

    .single-layout,
    .site-footer__inner,
    .site-footer__menus,
    .bottom-cta__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__sponsors {
        grid-template-columns: 1fr;
    }

    .site-footer__sponsors-title {
        margin-bottom: .75rem;
    }

    .single-layout__aside {
        order: 1;
    }

    .single-layout__content {
        order: 2;
    }

    .single-layout__sidebar {
        order: 3;
    }

    .bottom-cta__inner,
    .page-article,
    .error-404__content,
    .widget,
    .topic-card,
    .guide-menu {
        border-radius: 20px;
    }

    .bottom-cta__inner {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .bottom-cta__visual {
        min-height: 0;
    }

    .device-frame {
        width: min(240px, 74vw);
        border-radius: 32px;
    }

    .widget-title,
    .guide-menu__heading {
        font-size: 1.65rem;
    }

    .entry-content h3 {
        font-size: 1.45rem;
    }

    .entry-content table {
        font-size: .95rem;
    }

    .entry-content .wp-block-table table,
    .entry-content .table-responsive table,
    .entry-content > table {
        width: max-content;
        min-width: 100%;
    }

    .nav-links {
        gap: .5rem;
    }

    .nav-links .page-numbers {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) 44px 44px;
    }

    .menu-toggle,
    .search-toggle {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .post-card__title,
    .topic-card__title {
        font-size: 1.9rem;
    }

    .header-search-panel__inner {
        padding-top: .85rem;
        padding-bottom: .85rem;
    }
}

@media (min-width: 1201px) {
    .guide-menu__header {
        pointer-events: none;
    }
}

@media (max-width: 1200px) {
    .single-layout__aside {
        order: 1;
    }

    .single-layout__content {
        order: 2;
    }

    .single-layout__sidebar {
        order: 3;
    }

    .guide-menu__header {
        cursor: pointer;
    }

    .guide-menu__heading {
        font-size: 1.65rem;
    }

    .guide-menu__plus {
        display: inline-block;
    }

    .guide-menu:not([open]) .guide-menu__body {
        display: none;
    }
}

/* v6 targeted hero readability refinement */
.single-hero:not(.single-hero--plain) .single-hero__overlay {
    position: relative;
    z-index: 3;
}

.single-hero:not(.single-hero--plain) .single-hero__copy {
    background: linear-gradient(180deg, rgba(8, 10, 16, .94), rgba(8, 10, 16, .90));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}

.single-hero:not(.single-hero--plain) .breadcrumbs,
.single-hero:not(.single-hero--plain) .breadcrumbs a,
.single-hero:not(.single-hero--plain) .single-hero__eyebrow,
.single-hero:not(.single-hero--plain) .entry-meta,
.single-hero:not(.single-hero--plain) .entry-meta__tag,
.single-hero:not(.single-hero--plain) .single-hero__excerpt,
.single-hero:not(.single-hero--plain) .single-hero__copy h1 {
    text-shadow: none;
}

.single-hero:not(.single-hero--plain) .single-hero__copy h1 {
    color: #ffffff;
}

.single-hero:not(.single-hero--plain) .single-hero__excerpt,
.single-hero:not(.single-hero--plain) .breadcrumbs,
.single-hero:not(.single-hero--plain) .breadcrumbs a,
.single-hero:not(.single-hero--plain) .single-hero__eyebrow,
.single-hero:not(.single-hero--plain) .entry-meta,
.single-hero:not(.single-hero--plain) .entry-meta__tag {
    color: rgba(255, 255, 255, .96);
}

/* v7 targeted hero layout refinement for long titles */
@media (min-width: 1025px) {
    .single-hero:not(.single-hero--plain) .single-hero__copy {
        max-width: min(1180px, calc(100vw - 6rem));
        width: auto;
        padding: 1.3rem 1.6rem 1.45rem;
    }

    .single-hero:not(.single-hero--plain) .single-hero__copy h1 {
        font-size: clamp(2.55rem, 4.1vw, 4.35rem);
        line-height: .96;
        max-width: 15ch;
        text-wrap: balance;
    }
}


.section--home-content {
    padding: 0 0 4.5rem;
}

.home-page-content {
    background: var(--ae-surface);
    border: 1px solid var(--ae-border);
    border-radius: calc(var(--ae-radius) + 4px);
    box-shadow: var(--ae-shadow);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.home-page-content > *:last-child {
    margin-bottom: 0;
}


/* Denmark-friendly refinement */
.main-navigation a {
    padding: .55rem .9rem;
    border-radius: 999px;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: var(--ae-accent-soft);
    color: var(--ae-dark);
    text-decoration: none;
}

.post-card,
.topic-card,
.widget,
.guide-menu,
.search-form,
.archive-header,
.page-article,
.content-none {
    border: 1px solid rgba(188, 36, 59, .08);
}

.hero__actions .button--dark,
.bottom-cta .button--dark {
    box-shadow: 0 16px 34px rgba(123, 31, 47, .22);
}

.header-cta:hover,
.button:hover,
.search-submit:hover,
.wp-element-button:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
}

.single-hero__eyebrow,
.post-card__eyebrow,
.entry-meta__tag,
.bottom-cta__eyebrow {
    color: #9e1f33;
}
