/*
Theme Name: Periodico Mar Adentro
Theme URI: https://ulffrostypaw.com/themes/marAdentro
Author: Ulf FrostyPaw Software
Author URI: https://ulffrostypaw.com
Description: Tema editorial con diseño tipo newspaper para WordPress.
Version: 1.0.0
Text Domain: mar-adentro
*/

:root {
    --background: #f4f1ea;
    --surface: #ffffff;
    --surface-alt: #f8f6f1;
    --border: #d8d2c8;
    --text: #1f1f1f;
    --muted: #666055;
    --accent: #a31d1d;
    --accent-dark: #7d1212;
    --heading: #121212;
    --topbar-bg: #111111;
    --topbar-text: #f4eee4;
    --header-bg: #ffffff;
    --footer-bg: #111111;
    --footer-text: #f3ede3;
    --shadow: 0 20px 45px rgba(25, 25, 25, 0.08);
    --radius: 18px;
    --shell: 1240px;
    --site-title-color: #121212;
    --menu-link-color: #121212;
    --menu-hover-bg: #121212;
    --menu-hover-text: #ffffff;
    --header-border: #d8d2c8;
    --header-padding: 22px;
    --logo-max-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(
        180deg,
        var(--background) 0%,
        color-mix(in srgb, var(--background) 92%, #ffffff 8%) 100%
    );
    color: var(--text);
    line-height: 1.65;
}

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

figure {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar {
    background: var(--topbar-bg);
    color: var(--topbar-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar__inner,
.header-shell,
.site-shell,
.footer-shell {
    width: min(calc(100% - 32px), var(--shell));
    margin: 0 auto;
}

.topbar__inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar__content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.topbar__text {
    font-size: 0.88rem;
    color: inherit;
}

.topbar--left .topbar__inner {
    justify-content: flex-start;
}

.topbar--center .topbar__inner {
    justify-content: center;
    text-align: center;
}

.topbar--center .topbar__content {
    justify-content: center;
}

.topbar__date {
    font-size: 0.88rem;
    text-transform: capitalize;
    letter-spacing: 0.04em;
    color: inherit;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: inherit;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.site-header {
    background: color-mix(in srgb, var(--header-bg) 94%, transparent 6%);
    border-bottom: 1px solid var(--header-border);
    z-index: 20;
    backdrop-filter: blur(12px);
}

.site-header--sticky {
    position: sticky;
    top: 0;
}

.site-header--static {
    position: relative;
}

.header-shell {
    padding: var(--header-padding) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.branding {
    display: flex;
    align-items: center;
    gap: 18px;
}

.branding__logo img {
    max-height: var(--logo-max-height);
    width: auto;
}

.site-title {
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    line-height: 1;
    color: var(--site-title-color);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
}

.site-tagline {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.95rem;
}

body.menu-open {
    overflow: hidden;
}

.main-navigation {
    margin-left: auto;
}

.menu-toggle,
.main-navigation__close,
.offcanvas-backdrop {
    display: none;
}

.menu-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--heading);
}

.main-navigation .menu {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.main-navigation .menu > li {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.main-navigation .menu > li > a {
    display: block;
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--menu-link-color);
    font-size: 0.95rem;
    font-weight: 700;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.main-navigation .menu > li > a:hover,
.main-navigation .menu > li.current-menu-item > a,
.main-navigation .menu > li.current-menu-parent > a {
    background: var(--menu-hover-bg);
    color: var(--menu-hover-text);
}

.main-navigation .sub-menu {
    list-style: none;
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    left: auto;
    min-width: min(220px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    width: max-content;
    background: var(--heading);
    padding: 10px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    overflow-wrap: break-word;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.main-navigation .sub-menu a {
    display: block;
    color: #f5f0e8;
    padding: 10px 12px;
    border-radius: 12px;
}

.main-navigation .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

.hero-slider__track {
    position: relative;
    width: 100%;
    min-height: clamp(260px, 42vw, 560px);
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: clamp(24px, 4vw, 48px);
    background: linear-gradient(
        180deg,
        rgba(17, 17, 17, 0.08) 0%,
        rgba(17, 17, 17, 0.28) 45%,
        rgba(17, 17, 17, 0.82) 100%
    );
}

.hero-slider__content {
    max-width: min(100%, 760px);
    color: #fff;
}

.hero-slider__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

.hero-slider__description {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.7;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.92);
}

.hero-slider__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 18px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.hero-slider__button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    color: #fff;
}

.hero-slider__control {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.45);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.hero-slider__control:hover {
    background: rgba(17, 17, 17, 0.72);
}

.hero-slider__control--prev {
    left: 20px;
}

.hero-slider__control--next {
    right: 20px;
}

.hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-slider__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.hero-slider__dot.is-active {
    background: #fff;
    transform: scale(1.18);
}

.site-shell {
    padding: 38px 0 56px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--accent) 0%,
        color-mix(in srgb, var(--accent) 18%, transparent 82%) 100%
    );
}

.section-heading span,
.widget-kicker,
.post-category {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 800;
}

.section-heading span,
.widget-kicker,
.post-category {
    color: var(--accent);
}

.headline-strip {
    margin-bottom: 38px;
}

.headline-strip__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.headline-tile,
.news-card,
.sidebar-widget,
.single-article,
.archive-hero,
.news-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.headline-tile {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.headline-tile--featured {
    grid-column: span 3;
    grid-row: span 2;
    aspect-ratio: auto;
    min-height: 100%;
}

.headline-tile--compact {
    aspect-ratio: 1 / 1;
}

.headline-tile__media,
.single-article__media {
    display: block;
    position: relative;
    height: 100%;
    background: #e7e1d6;
}

.headline-tile__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(18, 18, 18, 0.08) 0%,
        rgba(18, 18, 18, 0.76) 100%
    );
    transition: background 0.28s ease;
}

.headline-tile__media img,
.single-article__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.headline-tile__media img {
    transition: transform 0.45s ease;
}

.headline-tile__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px;
    z-index: 1;
    transition: transform 0.28s ease;
}

.headline-tile__category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.headline-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px rgba(25, 25, 25, 0.16);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border) 72%);
}

.headline-tile:hover .headline-tile__media img {
    transform: scale(1.06);
}

.headline-tile:hover .headline-tile__media::after {
    background: linear-gradient(
        180deg,
        rgba(18, 18, 18, 0.03) 0%,
        rgba(18, 18, 18, 0.84) 100%
    );
}

.headline-tile:hover .headline-tile__overlay {
    transform: translateY(-4px);
}

.headline-tile__title,
.news-card__title,
.news-row__title,
.single-article__title,
.archive-title,
.sidebar-widget h2,
.footer-brand,
.related-news-list a,
.pagination .page-numbers,
.footer-column__title,
.footer-links-list a {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--heading);
}

.headline-tile__title {
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.headline-tile--featured .headline-tile__title {
    font-size: clamp(1.9rem, 2.8vw, 2.8rem);
}

.headline-tile--compact .headline-tile__title {
    font-size: 1.2rem;
}

.newspaper-layout,
.archive-layout,
.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.archive-layout--full {
    grid-template-columns: 1fr;
}

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

.news-card {
    overflow: hidden;
}

.news-card__media img,
.media-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--background) 75%, var(--surface) 25%) 0%,
        color-mix(in srgb, var(--surface-alt) 80%, #ffffff 20%) 100%
    );
    color: var(--muted);
    font-weight: 700;
    padding: 24px;
    text-align: center;
    min-height: 100%;
}

.news-card__content,
.archive-hero__content,
.single-article__header,
.single-article__content,
.sidebar-widget {
    padding: 24px;
}

.news-card__title {
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 10px 0 12px;
}

.news-list {
    display: grid;
    gap: 18px;
}

.news-list--archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.news-list--archive .news-row--with-media {
    grid-template-columns: minmax(0, 1.35fr) 180px;
}

.news-row {
    display: grid;
    align-items: stretch;
    overflow: hidden;
}

.news-row--with-media {
    grid-template-columns: minmax(0, 1.6fr) 240px;
}

.news-row--text-only {
    grid-template-columns: 1fr;
}

.news-row__content {
    padding: 22px 24px;
}

.news-row__title {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.16;
    margin: 10px 0 12px;
}

.news-row__excerpt,
.news-card__excerpt,
.sidebar-widget p,
.empty-message,
.related-news-list span,
.archive-description,
.post-meta,
.headline-card__date,
.single-article__content p,
.single-article__content li,
.single-article__content blockquote,
.footer-copy,
.footer-description,
.footer-links-list a {
    color: var(--muted);
}

.news-row__media {
    display: block;
    min-height: 100%;
    background: color-mix(
        in srgb,
        var(--surface-alt) 70%,
        var(--background) 30%
    );
}

.news-row__media img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.news-card__title a:hover,
.news-row__title a:hover,
.related-news-list a:hover,
.archive-title a:hover,
.pagination .page-numbers:hover,
.headline-tile__media:hover .headline-tile__title,
.site-title:hover,
.footer-links-list a:hover {
    color: var(--accent);
}

.headline-card__date {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.88rem;
}

.sidebar {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 120px;
}

.sidebar-widget h2,
.widget-title {
    font-size: 1.6rem;
    margin: 10px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--heading);
}

.widget-area {
    display: grid;
    gap: 20px;
}

.widget-area__item {
    overflow: hidden;
}

.widget-area .textwidget,
.widget-area p,
.widget-area li,
.widget-area label,
.widget-area select,
.widget-area input,
.widget-area textarea {
    color: var(--muted);
}

.widget-area ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.widget-area a:hover {
    color: var(--accent);
}

.theme-ad-slot {
    background: var(--surface-alt);
    border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--border) 65%);
}

.theme-ad-slot__label {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.theme-ad-slot__content {
    overflow: hidden;
}

.theme-ad-slot__content img,
.theme-ad-slot__content iframe {
    max-width: 100%;
    height: auto;
}

.single-article__ad {
    margin: 24px;
    padding: 24px;
    border-radius: 16px;
    box-shadow: none;
}

.newsletter-widget {
    background: linear-gradient(
        180deg,
        var(--surface) 0%,
        var(--surface-alt) 100%
    );
}

.newsletter-form,
.newsletter-embed form {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.newsletter-embed {
    margin-top: 18px;
}

.newsletter-embed input[type="email"],
.newsletter-embed input[type="text"],
.newsletter-embed input[type="search"],
.newsletter-embed input:not([type]),
.newsletter-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--heading);
}

.newsletter-embed input[type="email"]:focus,
.newsletter-embed input[type="text"]:focus,
.newsletter-embed input[type="search"]:focus,
.newsletter-embed input:not([type]):focus,
.newsletter-form input:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 18%, transparent 82%);
    border-color: var(--accent);
}

.newsletter-embed button,
.newsletter-embed input[type="submit"],
.newsletter-form button {
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.newsletter-embed button:hover,
.newsletter-embed input[type="submit"]:hover,
.newsletter-form button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.newsletter-embed p,
.newsletter-embed label,
.newsletter-embed small,
.newsletter-embed .mailerlite-form-description,
.newsletter-embed .mailpoet_text {
    color: var(--muted);
}

.related-news-list,
.latest-news-list,
.footer-links-list {
    list-style: none;
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.related-news-list li,
.latest-news-list li,
.footer-links-list li {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.related-news-list li:last-child,
.latest-news-list li:last-child,
.footer-links-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.related-news-list a,
.latest-news-list a {
    display: block;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.footer-links-list {
    margin-top: 10px;
}

.footer-links-list a {
    display: inline-block;
    font-size: 1rem;
    line-height: 1.4;
}

.archive-hero {
    margin-bottom: 28px;
    overflow: hidden;
}

.archive-title,
.single-article__title {
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    line-height: 1.08;
    margin: 10px 0 16px;
}

.archive-description {
    max-width: 780px;
    font-size: 1.04rem;
}

.pagination-wrap,
.archive-pagination {
    margin-top: 28px;
}

.archive-pagination {
    display: flex;
    justify-content: center;
}

.archive-load-more,
.archive-pagination__done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--heading);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.archive-load-more:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.archive-pagination.is-loading .archive-load-more {
    opacity: 0.8;
    pointer-events: none;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.single-article {
    overflow: hidden;
}

.single-article__media img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.single-article__content {
    font-size: 1.05rem;
}

.single-article__content > * + * {
    margin-top: 1.2em;
}

.single-article__content h2,
.single-article__content h3,
.single-article__content h4 {
    color: var(--heading);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.2;
}

.single-article__content ul,
.single-article__content ol {
    padding-left: 1.3rem;
}

.single-article__content a {
    color: var(--accent);
    text-decoration: underline;
}

.latest-news--single {
    margin-top: 36px;
}

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 10px;
}

.footer-shell {
    padding: 30px 0;
}

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

.footer-brand {
    font-size: 1.35rem;
    color: var(--footer-text);
    margin-bottom: 10px;
}

.footer-description {
    max-width: 560px;
    margin-bottom: 12px;
}

.footer-copy {
    color: color-mix(in srgb, var(--footer-text) 74%, transparent 26%);
    font-size: 0.94rem;
}

.footer-column__title {
    color: var(--footer-text);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.social-links--footer a {
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1200px) {
    .headline-strip__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .headline-tile--featured {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: auto;
    }

    .headline-tile--compact {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 1100px) {
    .topbar__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar--center .topbar__inner {
        align-items: center;
    }

    .newspaper-layout,
    .archive-layout,
    .single-layout,
    .footer-shell--grid,
    .news-row--with-media,
    .news-list--archive {
        grid-template-columns: 1fr;
    }

    .archive-layout--full {
        grid-template-columns: 1fr;
    }

    .news-list--archive .news-row--with-media {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .news-row__media {
        min-height: 240px;
    }
}

@media (max-width: 900px) {
    .topbar__inner,
    .header-shell,
    .site-shell,
    .footer-shell {
        width: min(calc(100% - 24px), var(--shell));
    }

    .header-shell {
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
    }

    .branding {
        min-width: 0;
        flex: 1;
    }

    .branding__text {
        min-width: 0;
    }

    .site-title {
        font-size: clamp(1.45rem, 5vw, 2rem);
        word-break: break-word;
    }

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

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 40;
        display: flex;
        flex-direction: column;
        width: min(88vw, 360px);
        height: 100dvh;
        margin-left: 0;
        padding: 22px 18px 24px;
        background: var(--surface);
        box-shadow: -20px 0 45px rgba(0, 0, 0, 0.16);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        overflow-y: auto;
    }

    body.menu-open .main-navigation {
        transform: translateX(0);
    }

    .main-navigation__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: flex-end;
        width: 42px;
        height: 42px;
        margin-bottom: 14px;
        border: 0;
        border-radius: 999px;
        background: var(--surface-alt);
        color: var(--heading);
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
    }

    .main-navigation .menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .main-navigation .menu > li {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .main-navigation .menu > li > a {
        border-radius: 14px;
        padding: 14px 16px;
    }

    .main-navigation .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        margin-top: 4px;
        padding: 6px 0 0 14px;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .main-navigation .sub-menu a {
        color: var(--text);
        padding: 8px 0;
    }

    .offcanvas-backdrop {
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(17, 17, 17, 0.45);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.28s ease,
            visibility 0.28s ease;
    }

    body.menu-open .offcanvas-backdrop {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .hero-slider__track {
        min-height: 220px;
    }

    .site-shell {
        padding: 28px 0 42px;
    }

    .headline-strip__grid,
    .news-grid,
    .news-list--archive {
        grid-template-columns: 1fr;
    }

    .headline-tile,
    .headline-tile--featured,
    .headline-tile--compact {
        grid-column: span 1;
        aspect-ratio: auto;
        min-height: 320px;
    }

    .news-card__content,
    .archive-hero__content,
    .single-article__header,
    .single-article__content,
    .sidebar-widget,
    .headline-tile__overlay,
    .news-row__content {
        padding: 20px;
    }

    .headline-tile--featured .headline-tile__title,
    .archive-title,
    .single-article__title {
        font-size: 1.9rem;
    }

    .news-card__title,
    .news-row__title,
    .sidebar-widget h2,
    .footer-column__title {
        font-size: 1.3rem;
    }

    .news-row__media {
        min-height: 200px;
    }
}

@media (max-width: 560px) {
    .branding {
        gap: 12px;
        align-items: flex-start;
    }

    .branding__logo img {
        max-height: min(var(--logo-max-height), 52px);
    }

    .topbar__content,
    .social-links--topbar {
        width: 100%;
        justify-content: center;
    }

    .hero-slider__control {
        width: 40px;
        height: 40px;
    }

    .hero-slider__control--prev {
        left: 12px;
    }

    .hero-slider__control--next {
        right: 12px;
    }
}
