/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --primary-color: #302824;
    --brand-color: #dfbb9e;
    --brand-color-rgb: 223, 187, 158;
    --accent-color: #98613f;
    --accent-color-rgb: 152, 97, 63;
    --accent-hover: #71442c;
    --accent-soft: #f3e5da;
    --accent-focus: rgba(152, 97, 63, 0.32);
    --dark-surface: #241c1a;
    --dark-surface-deep: #171311;
    --nav-text: #f8f4f0;
    --text-color: #332e2b;
    --text-light: #6c625d;
    --border-color: #ded7d2;
    --page-bg: #ffffff;
    --bg-light: #f8f5f2;
    --link-color: var(--accent-color);
    --link-hover: var(--accent-hover);
    --surface-warm: #f7f3ef;
    --surface-muted: #f2f4f5;
    --border-strong: #cfc3bb;
    --shadow-soft: 0 14px 35px rgba(36, 28, 26, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--page-bg);
    font-size: 18px;
}

html {
    /* The design is light only. Declaring it stops browsers applying an automatic
       dark treatment, and keeps scrollbars and form controls light. */
    color-scheme: light;
    scroll-behavior: smooth;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.ad {
    background-color: #c79200;
}

.navbar {
    border-bottom: 1px solid rgba(var(--brand-color-rgb), 0.24);
    padding: 0.4rem 0;
    margin-bottom: 1rem;
    background: var(--dark-surface);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 14px rgba(23, 19, 17, 0.18);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--brand-color);
}

.language-picker {
    position: relative;
    flex: 0 0 auto;
}

.language-picker__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 3.75rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(var(--brand-color-rgb), 0.52);
    border-radius: 999px;
    color: var(--nav-text);
    background: rgba(var(--brand-color-rgb), 0.06);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.language-picker__trigger:hover {
    border-color: var(--brand-color);
    color: var(--brand-color);
}

.language-picker__trigger[aria-expanded="true"] {
    border-color: var(--brand-color);
    color: var(--dark-surface);
    background: var(--brand-color);
}

.language-picker__chevron {
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.language-picker__trigger[aria-expanded="true"] .language-picker__chevron {
    transform: rotate(180deg);
}

.language-picker__menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: 4.5rem;
    padding: 0.3rem;
    border: 1px solid rgba(var(--brand-color-rgb), 0.3);
    border-radius: 10px;
    background: #332824;
    box-shadow: 0 12px 28px rgba(23, 19, 17, 0.28);
}

.language-picker__menu[hidden] {
    display: none;
}

.language-switch {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: 7px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.language-switch:hover,
.language-switch:focus-visible {
    color: var(--dark-surface);
    background: var(--brand-color);
}

.nav-logo:focus-visible,
.nav-link:focus-visible,
.nav-toggle:focus-visible,
.language-picker__trigger:focus-visible {
    outline: 3px solid var(--brand-color);
    outline-offset: 3px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--brand-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-7px, 7px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.layout {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.layout__left {
    flex-basis: 40px;
    flex-grow: 0;
    flex-shrink: 0;
    margin: 20px;
}

.layout__mid {
    flex-basis: 700px;
    flex-grow: 0;
    flex-wrap: nowrap;
    margin-right: 25px;
}

.layout__right {
    flex-basis: 130px;
    flex-grow: 1;
    flex-shrink: 0;
    max-width: 350px;

    margin-right: 15px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.button-top {
	display: none;
	position: sticky;
	top: 90%;
	width: 40px;
	height: 40px;
	border:none;
	outline: none;
	background-color: rgba(var(--accent-color-rgb), 0.28);
	color: #fff;
	cursor: pointer;
	padding: 5px;
	transform: rotate(180deg);
	border-radius: 4px;
	font-size: 16px;
}

.button-top svg {
	display: block;
	width: 100%;
	height: 100%;
}



/* Hero Section */
.hero {
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.hero p {
    text-align: left;
    font-size: 1.2rem;
    color: var(--text-light);
}

.a {
    text-decoration: none;
    color: var(--accent-color);
}

.a:hover {
    color: var(--link-hover);
}

.categories {
    margin-bottom: 3rem;
    text-align: center;
}

.categories h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-title {
    background-color: var(--accent-color);
    display: inline-block;
    padding: 0.1rem 1rem;
    font-size: 1.2rem;
    color: #ffffff;
   
}

.category-title__underline {
    border-bottom: 3px solid var(--accent-color);
    margin-bottom: 2rem;
}

/* Articles List */
.articles {
    margin-bottom: 4rem;
}

/* Cards Grid Container */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    margin-bottom: 4rem;
}

/* Card Type 1: Image on top, title below */
.card-img {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s;
}

.card-img:hover {
    transform: translateY(-4px);
}

.card-img__image {
    width: 100%;
    height: 265px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-img__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0;
}

.card-img:hover .card-img__title {
    color: var(--link-hover);
}

/* Card Type 2: Image and title side by side */
.card-title {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.card-title:hover {
    transform: translateY(-4px);
}

.card-title__image {
    width: 50%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.card-title__content {
    width: 50%;
    display: flex;
}

.card-title__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    margin: 0;
}

.card-title:hover .card-title__title {
    color: var(--link-hover);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0.75rem;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb__item:not(:first-child)::before {
    content: "/";
    margin: 0 0.4rem;
}

.breadcrumb a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--link-hover);
}

/* Full Article Page */
.article-full {
    margin-bottom: 4rem;
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.375rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.75rem;
    row-gap: 0.125rem;
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.4;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 3rem;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.article-body h2[id],
.article-body h3[id] {
    scroll-margin-top: 5.5rem;
}

.article-toc {
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3.5vw, 1.75rem);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(var(--brand-color-rgb), 0.16), rgba(var(--brand-color-rgb), 0.04)),
        var(--surface-warm);
    box-shadow: 0 10px 24px rgba(36, 28, 26, 0.07);
}

.article-body .article-toc__list,
.article-body .article-toc__sublist {
    padding: 0;
    margin: 0;
    list-style: none;
}

.article-body .article-toc__sublist {
    margin: 0.1rem 0 0.55rem 0.35rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(var(--accent-color-rgb), 0.3);
}

.article-body .article-toc__item {
    margin: 0;
}

.article-toc__item--h2 + .article-toc__item--h2 {
    margin-top: 0.45rem;
}

.article-body .article-toc a {
    display: block;
    border: 0;
    color: var(--primary-color);
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.article-body .article-toc__item--h2 > a {
    position: relative;
    padding: 0.48rem 0.65rem 0.48rem 1rem;
    font-size: 1rem;
    font-weight: 750;
}

.article-body .article-toc__item--h2 > a::before {
    position: absolute;
    top: 1.02em;
    left: 0;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--accent-color);
    content: '';
}

.article-body .article-toc__item--h3 > a {
    padding: 0.34rem 0.65rem;
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 550;
}

.article-body .article-toc a:hover {
    border: 0;
    color: var(--link-hover);
    transform: translateX(3px);
}

.article-body .article-toc a:focus-visible {
    outline: 3px solid var(--accent-focus);
    outline-offset: 2px;
}

.article-body ul,
.ul {
    list-style-type: disc;
    margin-left: 1rem;
}

.article-body ul li,
.ul li {
    margin-bottom: .4rem;
}

.article-body ul li::marker,
.ul li::marker {
    color: var(--accent-color);
}

.ul--no-marker {
    list-style-type: none;
}

.article-body ol {
   counter-reset: myCounter;
   padding: 0 0.5rem;
   margin-bottom: 26px;
}

.article-body ol li {
    position: relative;
    padding-left: 2.2em;
    margin: 0.45em 0;
    list-style: none;
    line-height: inherit;
    margin-bottom: 10px;
}

.article-body ol li:before {
    content: counter(myCounter);
    counter-increment: myCounter;
    position: absolute;
    top: 0;
    left: 0;
    width: 1.8em;
    height: 1.8em;
    line-height: 1.8em;
    padding: 0px;
    color: #fff;
    background: var(--accent-color);
    font-weight: bold;
    text-align: center;
    border-radius: .2em;
}

.article-body ol li:after {
    position: absolute;
    top: 2.1em;
    left: 0.9em;
    width: 2px;
    height: calc(100% - 2em);
    content: '';
    background-color: rgb(203, 203, 203);
    z-index: 0;
}

.article-body blockquote {
    position: relative;
    margin: clamp(2rem, 4vw, 3rem) clamp(0.4rem, 1.5vw, 0.75rem);
    padding: clamp(1.4rem, 3vw, 1.9rem) clamp(0.9rem, 2.5vw, 1.35rem);
    border: 0 !important;
    border-radius: 0;
    color: var(--primary-color);
    background:
        linear-gradient(to right, var(--accent-color), rgba(var(--accent-color-rgb), 0)) top left / clamp(5rem, 32%, 12rem) 3px no-repeat,
        linear-gradient(to bottom, var(--accent-color), rgba(var(--accent-color-rgb), 0)) top left / 3px clamp(3rem, 55%, 5.5rem) no-repeat,
        linear-gradient(to left, var(--accent-color), rgba(var(--accent-color-rgb), 0)) bottom right / clamp(5rem, 32%, 12rem) 3px no-repeat,
        linear-gradient(to top, var(--accent-color), rgba(var(--accent-color-rgb), 0)) bottom right / 3px clamp(3rem, 55%, 5.5rem) no-repeat,
        rgba(var(--brand-color-rgb), 0.22);
    box-shadow: 0 10px 24px rgba(36, 28, 26, 0.09);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.25rem, 1.08rem + 0.58vw, 1.55rem);
    font-weight: 400;
    letter-spacing: -0.018em;
    line-height: 1.5;
    text-align: left;
}

.article-body blockquote p {
    margin: 0;
    text-wrap: balance;
}

.article-body blockquote p + p {
    margin-top: 0.8rem;
}

.article-body a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.article-body a:hover {
    border-bottom-color: var(--link-color);
}

.article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.75rem auto;
}

.article-gallery__source {
    cursor: zoom-in;
}

.article-gallery__source:focus-visible,
a:focus-visible .article-gallery__source {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
}

/* Article image gallery */
.image-gallery {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: clamp(4rem, 7vw, 5.5rem) clamp(4rem, 10vw, 8rem) 1.5rem;
    border: 0;
    background: rgba(0, 0, 0, 0.87);
    backdrop-filter: blur(2px);
    overscroll-behavior: contain;
}

.image-gallery:not([open]),
.image-gallery__button[hidden] {
    display: none;
}

.image-gallery::backdrop {
    background: transparent;
}

.image-gallery__stage {
    display: flex;
    width: min(100%, 1440px);
    max-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.image-gallery__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 9rem);
    max-height: calc(100dvh - 9rem);
    object-fit: contain;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    user-select: none;
}

.image-gallery__button {
    position: absolute;
    display: flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.image-gallery__button:hover {
    border-color: #fff;
    background: rgba(0, 0, 0, 0.72);
}

.image-gallery__button:focus-visible,
.image-gallery__pinterest:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.image-gallery__button svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.image-gallery__close {
    top: 1rem;
    right: 1rem;
}

.image-gallery__close:hover {
    transform: rotate(5deg);
}

.image-gallery__nav {
    top: 50%;
    transform: translateY(-50%);
}

.image-gallery__nav:hover {
    transform: translateY(-50%) scale(1.06);
}

.image-gallery__nav--previous {
    left: clamp(0.75rem, 3vw, 2rem);
}

.image-gallery__nav--next {
    right: clamp(0.75rem, 3vw, 2rem);
}

.image-gallery__controls {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.image-gallery__counter {
    min-width: 5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 650;
    text-align: center;
}

.image-gallery__pinterest {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: #fff;
    background: #e60023;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.image-gallery__pinterest:hover {
    background: #bd001d;
    transform: translateY(-1px);
}

.image-gallery__pinterest svg {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
}

@media (max-width: 779.9px) {
    .image-gallery {
        padding: 4rem 0.65rem 1rem;
    }

    .image-gallery__image {
        max-height: calc(100vh - 8.5rem);
        max-height: calc(100dvh - 8.5rem);
    }

    .image-gallery__button {
        width: 2.75rem;
        height: 2.75rem;
        background: rgba(0, 0, 0, 0.58);
    }

    .image-gallery__close {
        top: 0.65rem;
        right: 0.65rem;
    }

    .image-gallery__nav--previous {
        left: 0.45rem;
    }

    .image-gallery__nav--next {
        right: 0.45rem;
    }

    .image-gallery__controls {
        gap: 0.65rem;
    }
}

.back-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--link-hover);
}

/* Related Articles Section */
.related-articles {
    margin-top: 4rem;
    margin-bottom: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.related-articles__heading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
}

/* First 2 articles (card-img) - span 1 column each */
.related-articles__grid > .card-img:nth-of-type(1),
.related-articles__grid > .card-img:nth-of-type(2) {
    grid-column: span 1;
}

/* Next 4 articles (card-title) - span 2 columns each (full width) */
.related-articles__grid > .card-title {
    grid-column: span 2;
}



/* Category Archive Page */
.category-archive {
    margin-bottom: 4rem;
}

.category-header {
    margin-bottom: 1.5rem;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-description {
    font-size: 1.1rem;
    color: var(--text-light);

    margin: 0 auto;
    line-height: 1.8;
}

.category-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* No Articles Message */
.no-articles {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-light);
}


/* Share Panel */
.share-panel {
    position: sticky;
    top: 70px;
    background: white;
    margin-bottom: 5rem;
}

.share-panel p {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 20%;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.share-btn svg {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.share-btn:hover svg {
    transform: scale(1.1);
}

.share-btn--pinterest {
    background-color: #ffa3b1;
    color: white;
}

.share-btn--pinterest:hover {
    background-color: #E60023;
}

.share-btn--vk {
    background-color: #7eb6f6;
    color: white;
}

.share-btn--vk:hover {
    background-color: #0077FF;
}

.share-btn--facebook {
    background-color: #708db2;
    color: white;
}

.share-btn--facebook:hover {
    background-color: #1877F2;
}

.share-btn--ok {
    background-color: #d9aa75;
    color: #d9aa75;
}

.share-btn--ok:hover {
    background-color: #ee8208;
}

.share-btn--reddit {
    background-color: #ff8a65;
    color: white;
}

.share-btn--reddit:hover {
    background-color: #ff4500;
}

.footer {
    background-color: var(--dark-surface);
    color: #FFFFFF;
}

.footer__subfooter {
    padding: 0 1rem;
    background-color: var(--dark-surface-deep);
}

.footer__subfooter .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.footer__subfooter .col-2 {
    flex: 0 0 auto;
}

.subfooter-link {
    display: inline-flex;
    align-items: center;
}

.subfooter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.5rem;
    justify-content: flex-end;
}
.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.footer a {
    color: var(--brand-color);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Footer logo - smaller than nav logo */
.footer-logo {
    height: auto;
    width: 180px;
}

.footer__body {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.5rem 1rem 2rem 1rem;
    align-items: flex-start;
}

/* Desktop layout (above 779.9px) */
.footer__body__info {
    flex: 0 0 calc(40% - 1rem);
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__body__links {
    flex: 1 1 auto;
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__body__links > p {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

@media (max-width: 779.9px) {

    .layout {
         flex-wrap: wrap;
    }

    .layout__left {
        flex-basis: 40px;
        flex-grow: 1;
        flex-shrink: 1;
        margin: 20px;
    }

    .share-panel {
        position: relative;
        top: 0;
        margin-bottom: 1rem;
    }

    .share-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .button-top {
		display: none !important;
	}

    .hero h2 {
        font-size: 2rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .category-header h1 {
        font-size: 2rem;
    }

    .category-list {
        flex-direction: column;
        align-items: stretch;
    }

    .category-link {
        text-align: center;
    }

    .related-articles__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .related-articles__grid > .card-img:nth-of-type(1),
    .related-articles__grid > .card-img:nth-of-type(2),
    .related-articles__grid > .card-title {
        grid-column: span 1;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .card-img__image {
        height: 275px;
    }

    .card-title {
        gap: 0.75rem;
    }

    .card-title__image {
        width: 33%;
        height: 120px;
    }

    .card-title__content {
        width: 67%;
    }

    .card-title__title {
        font-size: 1.1rem;
    }

    .article-header,
    .article-body p,
    .article-body h2,
    .article-body h3,
    .article-body ul,
    .related-articles {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .article-toc {
        max-width: calc(100% - 1.5rem);
        margin-right: 0.75rem;
        margin-left: 0.75rem;
    }

    .footer__body__info {
        flex: 0 0 100%;
        order: 3;
    }

    .footer__body__links1 {
        flex: 1 0 auto;
        order: 2;
    }
    .footer__body__links2 {
        flex: 1 0 auto;
        order: 1;
    }

    .footer__subfooter .row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer__subfooter .col-2 {
        flex: 0 0 100%;
        text-align: center;
    }

    .text-mob-center {
        text-align: center;
    }
}

@media (max-width: 1074.9px) {
    .layout__right {
        display: none;
    }

    .layout__mid {
        margin-right: 0;
    }

}

@media (min-width: 960px) and (max-width: 1074.9px) {
    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 959.9px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 53px;
        flex-direction: column;
        width: 100%;
        max-height: calc(100vh - 53px);
        overflow-y: auto;
        padding: 2rem 0;
        gap: 0;
        background-color: var(--dark-surface);
        text-align: center;
        box-shadow: 0 10px 27px rgba(23, 19, 17, 0.24);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(var(--brand-color-rgb), 0.18);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover {
        color: var(--brand-color);
        background-color: rgba(var(--brand-color-rgb), 0.08);
    }

    .language-picker {
        width: 100%;
    }

    .language-picker__trigger {
        width: 100%;
        padding: 1rem 2rem;
        border: 0;
        border-bottom: 1px solid rgba(var(--brand-color-rgb), 0.18);
        border-radius: 0;
    }

    .language-picker__trigger:focus-visible {
        outline-offset: -3px;
    }

    .language-picker__menu {
        position: static;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: var(--dark-surface-deep);
        box-shadow: none;
    }

    .language-switch {
        border: 0;
        border-radius: 0;
    }
}

/* Editorial discovery layouts: homepage and category archives */
.home-page {
    padding-bottom: 2rem;
}

html[data-page-layout="home"] .navbar {
    margin-bottom: 0;
}

.hero--home {
    padding: 2rem 0.5rem;
    margin-bottom: 0;
    text-align: left;
}

.hero--home-with-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.hero__copy {
    min-width: 0;
}

.hero--home h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(2.35rem, 3.7vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero__intro {
    max-width: 680px;
    margin-top: clamp(1.25rem, 2.2vw, 1.8rem);
}

.hero--home .hero__intro p {
    margin: 0;
    color: var(--text-light);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
}

.hero--home .hero__intro p + p {
    margin-top: 0.85rem;
}

.hero__featured {
    width: 100%;
    max-width: 520px;
    justify-self: end;
}

.story-card--hero .story-card__media {
    aspect-ratio: 16 / 9;
}

.story-card--hero .story-card__body {
    min-height: 82px;
}

.story-card--hero .story-card__title {
    font-size: clamp(1.05rem, 1.45vw, 1.25rem);
}

.home-sections {
    padding-top: clamp(2rem, 3vw, 3rem);
}

.category-section {
    margin-bottom: clamp(4rem, 6vw, 5.5rem);
}

.category-section__header {
    margin-bottom: 1.4rem;
}

.category-section__link {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 0.8rem;
    border-top: 3px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.category-section__link h2 {
    margin: 0;
    font-size: clamp(1.85rem, 3.1vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.category-section__action {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    padding-bottom: 0.1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 650;
    white-space: nowrap;
}

.category-section__action span {
    color: var(--accent-color);
    font-size: 1.3em;
    transition: transform 0.2s ease;
}

.category-section__link:hover,
.category-section__link:focus-visible {
    color: var(--link-hover);
}

.category-section__link:hover .category-section__action span,
.category-section__link:focus-visible .category-section__action span {
    transform: translateX(4px);
}

.category-section__link:focus-visible,
.story-card:focus-visible {
    outline: 3px solid var(--accent-focus);
    outline-offset: 4px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1rem, 2.2vw, 1.75rem);
    align-items: stretch;
}

.story-card {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface-warm);
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.story-card--large {
    grid-column: span 6;
}

.story-card--medium {
    grid-column: span 4;
}

.story-card--small {
    grid-column: span 3;
}

.story-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
}

.story-card__media {
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 8 / 5;
    background: var(--surface-muted);
}

.story-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.story-card:hover .story-card__image {
    transform: scale(1.025);
}

.story-card__body {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 88px;
    padding: clamp(0.9rem, 1.55vw, 1.25rem);
    background: var(--surface-warm);
}

.story-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--primary-color);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-weight: 680;
    line-height: 1.3;
    letter-spacing: -0.018em;
    overflow-wrap: anywhere;
    text-wrap: pretty;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    transition: color 0.2s ease;
}

.story-card:hover .story-card__title {
    color: var(--link-hover);
}

.story-card--no-image {
    grid-template-rows: minmax(150px, 1fr);
    background:
        linear-gradient(135deg, rgba(var(--brand-color-rgb), 0.34), rgba(247, 243, 239, 0.96) 58%),
        var(--surface-warm);
}

.category-archive {
    padding-top: clamp(0.75rem, 1.5vw, 1.25rem);
    margin-bottom: clamp(4.5rem, 8vw, 7rem);
}

.category-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
    border-bottom: 0;
}

.category-header__copy {
    max-width: 920px;
}

.category-header h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: clamp(3rem, 5.5vw, 4.75rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-align: left;
}

.category-description {
    max-width: 760px;
    margin: clamp(2.75rem, 5vw, 4.5rem) 0 0;
    color: var(--text-light);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
}

@media (max-width: 899.9px) {
    .hero--home-with-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .hero__featured {
        max-width: 640px;
        justify-self: start;
    }
}

@media (max-width: 779.9px) {
    .hero--home {
        padding: 1rem 0 1.5rem;
    }

    .hero--home h1 {
        font-size: clamp(2.15rem, 8vw, 3rem);
    }

    .home-sections {
        padding-top: 2rem;
    }

    .category-section {
        margin-bottom: 4.5rem;
    }

    .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .story-card--large {
        grid-column: span 2;
    }

    .story-card--medium {
        grid-column: span 1;
    }

    .story-card--small {
        grid-column: span 2;
        grid-template-columns: minmax(118px, 40%) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        height: clamp(118px, 32vw, 144px);
    }

    .story-card--small .story-card__media {
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }

    .story-card--small .story-card__body {
        min-height: 0;
    }

    .story-card--no-image.story-card--small {
        grid-template-columns: minmax(0, 1fr);
    }

    .category-archive {
        padding-top: 0.75rem;
    }

    .category-header {
        padding-bottom: 0;
        margin-bottom: 1rem;
    }

    .category-header h1 {
        font-size: clamp(2.9rem, 11vw, 4.25rem);
    }
}

@media (max-width: 519.9px) {
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .category-section__link {
        align-items: center;
    }

    .category-section__action {
        font-size: 0;
    }

    .category-section__action span {
        font-size: 1.25rem;
    }

    .story-grid {
        gap: 0.85rem;
    }

    .story-card {
        border-radius: 11px;
    }

    .story-card__body {
        min-height: 76px;
        padding: 0.85rem;
    }

    .story-card__title {
        font-size: clamp(0.94rem, 4.2vw, 1.08rem);
        line-height: 1.28;
    }

    .story-card--small {
        grid-template-columns: minmax(108px, 38%) minmax(0, 1fr);
    }

    .story-card--small .story-card__media {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .article-toc a,
    .category-section__action span,
    .story-card,
    .story-card__image,
    .image-gallery__button,
    .image-gallery__pinterest {
        transition: none;
    }
}

/* About, terms, and privacy pages */
.static-page {
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* Cancels the navbar's 1rem bottom margin so the hero meets the navbar */
.static-page__hero {
    margin-top: -1rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background:
        radial-gradient(circle at 87% 18%, rgba(var(--brand-color-rgb), 0.36), transparent 25rem),
        linear-gradient(145deg, #f7f0ea 0%, #fbfaf8 58%, #f4f1ee 100%);
}

.static-page__hero-inner {
    position: relative;
    padding-top: clamp(3.5rem, 7vw, 6.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.static-page__hero-inner::after {
    position: absolute;
    right: clamp(1rem, 6vw, 5rem);
    bottom: -5rem;
    width: clamp(9rem, 18vw, 15rem);
    height: clamp(9rem, 18vw, 15rem);
    border: 1px solid rgba(var(--accent-color-rgb), 0.18);
    border-radius: 50%;
    content: '';
}

.static-page__eyebrow {
    margin: 0 0 1.25rem;
    color: var(--accent-color);
    font-size: 0.76rem;
    font-weight: 780;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.static-page__hero h1 {
    max-width: 980px;
    margin: 0;
    color: var(--primary-color);
    font-size: clamp(3rem, 6.5vw, 5.75rem);
    font-weight: 720;
    line-height: 0.97;
    letter-spacing: -0.055em;
    hyphens: auto;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.static-page__intro {
    max-width: 830px;
    margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
    color: var(--text-light);
    font-size: clamp(1.08rem, 1.8vw, 1.35rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.static-page__updated {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin: 1.75rem 0 0;
    border: 1px solid rgba(var(--accent-color-rgb), 0.24);
    border-radius: 999px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    font-weight: 650;
}

.static-page__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.static-page__card {
    min-width: 0;
    padding: clamp(1.25rem, 2.7vw, 2.1rem);
    border: 1px solid var(--border-color);
    background: var(--surface-warm);
}

.static-page__card:first-child {
    border-radius: 14px 0 0 14px;
}

.static-page__card:last-child {
    border-radius: 0 14px 14px 0;
}

.static-page__card-marker {
    display: block;
    margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.static-page__card h2 {
    margin: 0 0 0.6rem;
    color: var(--primary-color);
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.static-page__card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.94rem;
    line-height: 1.6;
}

.static-page__layout {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 780px);
    gap: clamp(3rem, 7vw, 7rem);
    justify-content: center;
    padding-top: clamp(3rem, 6vw, 5.5rem);
}

.static-page__layout--single {
    grid-template-columns: minmax(0, 780px);
}

.static-page__toc {
    min-width: 0;
}

.static-page__toc nav {
    position: sticky;
    top: 5.5rem;
}

.static-page__toc-label {
    padding-bottom: 0.9rem;
    margin: 0;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.static-page__toc ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.static-page__toc li {
    border-bottom: 1px solid var(--border-color);
}

.static-page__toc a {
    display: block;
    padding: 0.72rem 0;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.static-page__toc a:hover {
    padding-left: 0.25rem;
    color: var(--link-hover);
}

.static-page__toc a:focus-visible,
.static-page__external-links a:focus-visible {
    outline: 3px solid var(--accent-focus);
    outline-offset: 3px;
}

.static-page__content {
    min-width: 0;
}

.static-page__section {
    padding: clamp(2.2rem, 4vw, 3.6rem) 0;
    border-top: 1px solid var(--border-color);
    scroll-margin-top: 6rem;
}

.static-page__section:first-child {
    padding-top: 0;
    border-top: 0;
}

.static-page__section h2 {
    max-width: 690px;
    margin: 0 0 1.35rem;
    color: var(--primary-color);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.static-page__section p,
.static-page__section li {
    color: var(--text-color);
    font-size: clamp(1rem, 1.3vw, 1.08rem);
    line-height: 1.78;
}

.static-page__section p {
    margin: 0;
}

.static-page__section p + p {
    margin-top: 1rem;
}

.static-page__contact-image {
    display: block;
    width: min(100%, 20rem);
    height: auto;
    margin-top: 1rem;
}

.static-page__section ul {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 1.25rem 0 0;
    list-style: none;
}

.static-page__section li {
    position: relative;
    padding-left: 1.55rem;
}

.static-page__section li::before {
    position: absolute;
    top: 0.78em;
    left: 0;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: var(--accent-color);
    content: '';
}

.static-page__external-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.static-page__external-links a {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    min-height: 4.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--primary-color);
    background: var(--surface-warm);
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.static-page__external-links a:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    color: var(--link-hover);
}

.static-page__external-links a span:last-child {
    flex: 0 0 auto;
    color: var(--accent-color);
    font-size: 1.1rem;
}

@media (max-width: 899.9px) {
    .static-page__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.75rem;
    }

    .static-page__toc nav {
        position: static;
        overflow-x: auto;
        padding-bottom: 0.65rem;
        border-bottom: 1px solid var(--border-color);
    }

    .static-page__toc-label {
        border-bottom: 0;
    }

    .static-page__toc ol {
        display: flex;
        gap: 0.55rem;
        width: max-content;
    }

    .static-page__toc li {
        border: 0;
    }

    .static-page__toc a {
        padding: 0.55rem 0.8rem;
        border: 1px solid var(--border-color);
        border-radius: 999px;
        background: var(--surface-warm);
        white-space: nowrap;
    }

    .static-page__toc a:hover {
        padding-left: 0.8rem;
    }

    .static-page__section:first-child {
        padding-top: 0;
    }
}

@media (max-width: 679.9px) {
    .static-page__hero-inner {
        padding-top: 3rem;
        padding-bottom: 3.25rem;
    }

    .static-page__hero h1 {
        font-size: clamp(2.65rem, 13vw, 4.3rem);
    }

    .static-page__hero-inner::after {
        right: -4rem;
    }

    .static-page__cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .static-page__card,
    .static-page__card:first-child,
    .static-page__card:last-child {
        border-radius: 12px;
    }

    .static-page__card-marker {
        margin-bottom: 1.1rem;
    }

    .static-page__external-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .subfooter-links {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .static-page__toc a,
    .static-page__external-links a {
        transition: none;
    }
}

/* Language suggestion bar */
.language-suggest {
    background: var(--accent-soft);
    border-bottom: 1px solid rgba(var(--accent-color-rgb), 0.22);
    font-size: 0.9375rem;
}

.language-suggest[hidden] {
    display: none;
}

.language-suggest__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

.language-suggest__link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.language-suggest__link:hover,
.language-suggest__link:focus-visible {
    color: var(--accent-hover);
}

.language-suggest__dismiss {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
}

.language-suggest__dismiss:hover,
.language-suggest__dismiss:focus-visible {
    background: rgba(var(--accent-color-rgb), 0.14);
    color: var(--text-color);
}

@media (max-width: 600px) {
    .language-suggest__inner {
        flex-wrap: wrap;
        gap: 0.375rem 0.625rem;
    }
}
