/* Shared styles for static blog article pages (blog/<slug>.html).
   Paths here are root-relative because url() in an external stylesheet
   resolves against the stylesheet, not the document. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/fraunces-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/fraunces-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/fraunces-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/outfit-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/outfit-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --terracotta: #E85D04;
    --terracotta-dark: #D35400;
    --terracotta-light: #F97316;
    --teal: #1A3A3A;
    --teal-light: #2A5555;
    --golden: #F9A825;
    --golden-dark: #F59E0B;
    --cream: #FAF7F2;
    --cream-dark: #F0EBE3;
    --charcoal: #1C1C1E;
    --charcoal-light: #2C2C2E;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Narrow measure for the article body; page chrome (nav, related posts,
       footer) uses --chrome-max to line up with blog.html. */
    --container-max: 800px;
    --chrome-max: 1200px;
    --container-padding: 1.5rem;

    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--cream);
}

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

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.nav-inner {
    max-width: var(--chrome-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }

.nav-logo-svg { height: 36px; width: auto; overflow: visible; }
.nav-logo-svg .logo-text { fill: #eb4e19; }
.nav-logo-svg .logo-circle {
    fill: #f9b234;
    transform-origin: 471px 335px;
    will-change: transform;
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: color var(--transition-base);
}

.nav-back:hover { color: var(--terracotta); }

/* ---------- Article header ---------- */
.article-header {
    background: var(--teal);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(232, 200, 114, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(199, 91, 57, 0.2) 0%, transparent 50%);
}

.article-header-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.article-category {
    display: inline-block;
    background: var(--terracotta);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
}

.article-meta-item { display: flex; align-items: center; gap: 0.375rem; }
.article-meta-item svg { opacity: 0.7; }

/* ---------- Featured image ---------- */
.article-featured-image {
    margin: -2rem auto 0;
    max-width: var(--container-max);
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

.article-featured-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* ---------- Article body ---------- */
.article-content { padding: 3rem 0 4rem; }

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--charcoal);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--charcoal);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-body h2 { font-size: 1.75rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.25rem; }

.article-body p { margin-bottom: 1.5rem; }

.article-body a {
    color: var(--terracotta);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover { color: var(--terracotta-dark); }

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li { margin-bottom: 0.5rem; }

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-left: 4px solid var(--terracotta);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--gray-600);
}

.article-body blockquote p:last-of-type { margin-bottom: 0; }

.article-body blockquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.9375rem;
    color: var(--gray-500);
}

.article-body figure { margin: 2rem 0; }
.article-body figure img { border-radius: var(--radius-lg); }

.article-body figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
}

/* Portrait app screenshots shouldn't run the full column width. */
.article-body figure.is-portrait img {
    max-width: min(360px, 100%);
    margin-inline: auto;
}

/* ---------- Image comparison slider ----------
   Selectors below are scoped with .article-body because the generic
   `.article-body figure / ul / li / img` rules above would otherwise win on
   specificity and re-apply list indents, figure margins and corner radii. */
.article-body .compare { margin: 2.5rem 0; }

.compare__frame {
    --pos: 50%;
    position: relative;
    width: 100%;
    aspect-ratio: var(--ar, 3 / 2);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--charcoal);
    touch-action: pan-y;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}

.article-body .compare__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    pointer-events: none;
}

.compare__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 3px;
    margin-left: -1.5px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
}

.compare__grip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--charcoal);
    flex-shrink: 0;
}

.compare__handle:focus-visible {
    outline: 3px solid var(--golden);
    outline-offset: 2px;
}

.compare__label {
    position: absolute;
    top: 0.75rem;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    background: rgba(0,0,0,0.55);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    pointer-events: none;
}

.compare__label--before { left: 0.75rem; }
.compare__label--after { right: 0.75rem; }

.article-body .compare__hint {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
}

/* ---------- Slideshow (native scroll-snap; JS adds controls) ---------- */
.article-body .slideshow { margin: 2.5rem 0; position: relative; }

.article-body .slideshow__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* No scroll-behavior:smooth — the script tweens scrollLeft frame by frame,
       and this would make every one of those steps animate on its own. */
    border-radius: var(--radius-lg);
    list-style: none;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--charcoal);
}

.slideshow__track::-webkit-scrollbar { display: none; }

/* No scroll-snap-stop:always here — it would stop a multi-slide jump (dots,
   repeated arrow clicks) at the first snap point it crosses. */
.article-body .slideshow__slide {
    scroll-snap-align: start;
    margin: 0;
    min-width: 0;
}

.article-body .slideshow__slide img {
    width: 100%;
    aspect-ratio: var(--ar, 3 / 2);
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}

.slideshow__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    transition: background var(--transition-base), transform var(--transition-base);
}

.slideshow__btn:hover:not(:disabled) {
    background: var(--white);
    transform: translateY(-50%) scale(1.06);
}

.slideshow__btn:disabled { opacity: 0.35; cursor: default; }
.slideshow__btn--prev { left: 12px; }
.slideshow__btn--next { right: 12px; }

.slideshow__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0.875rem;
}

.slideshow__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base);
}

.slideshow__dot[aria-current="true"] {
    background: var(--terracotta);
    transform: scale(1.3);
}

.slideshow__count {
    margin-top: 0.5rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ---------- Photo gallery ----------
   Row aspect-ratio and column flex-basis are set inline per gallery, carrying
   over the proportions the photos were originally laid out with. */
.article-body .gallery {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.article-body .gallery__row { display: flex; gap: 6px; }

.article-body .gallery__col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 0;
    flex-shrink: 1;
    min-width: 0;
}

.article-body .gallery__item { margin: 0; flex: 1 1 0; min-height: 0; }

.article-body .gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 0;
}

@media (max-width: 600px) {
    .article-body .gallery__row { flex-direction: column; aspect-ratio: auto !important; }
    .article-body .gallery__col { flex-basis: auto !important; }
    .article-body .gallery__item img { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .slideshow__track { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Share actions ---------- */
.article-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.article-actions-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.article-actions-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--gray-300);
    background: var(--white);
    color: var(--charcoal);
    cursor: pointer;
    transition: all var(--transition-base);
}

.action-btn:hover { border-color: var(--gray-400); background: var(--gray-100); }
.action-btn svg { flex-shrink: 0; }

.action-btn--icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.action-btn--xcom:hover { background: #000; border-color: #000; color: var(--white); }
.action-btn--fb:hover { background: #1877F2; border-color: #1877F2; color: var(--white); }
.action-btn--li:hover { background: #0A66C2; border-color: #0A66C2; color: var(--white); }
.action-btn--th:hover { background: #000; border-color: #000; color: var(--white); }
.action-btn--copy:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); }
.action-btn--copy.copied { background: #22c55e; border-color: #22c55e; color: var(--white); }
.action-btn--more { display: none; }
.action-btn--more:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }

@media (max-width: 768px) {
    .action-btn--more { display: inline-flex; }
}

/* ---------- Back to blog ---------- */
.article-back {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--gray-300);
}

.btn-outline:hover { background: var(--gray-100); border-color: var(--gray-400); }

/* ---------- Related articles ---------- */
.related-posts {
    max-width: var(--chrome-max);
    margin: 0 auto;
    padding: 3rem 1.5rem 1rem;
}

.related-posts h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--teal);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: transform .2s ease, box-shadow .2s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -8px rgba(0,0,0,.15);
}

.related-card-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.related-card-body { padding: 1rem 1.15rem 1.25rem; }

.related-card-cat {
    font-family: var(--font-mono);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--terracotta);
}

.related-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--charcoal);
    margin-top: .4rem;
}

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); padding: 4rem 0 2rem; }

/* The footer is site chrome, so it gets the full width rather than the
   article's narrow reading measure. */
.footer .container { max-width: var(--chrome-max); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand { max-width: 280px; }

.footer-logo-svg { height: 40px; width: auto; }
.footer-logo-svg .logo-text { fill: rgba(255,255,255,0.9); }
.footer-logo-svg .logo-circle { fill: #f9b234; }

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--gray-400);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-base);
}

.footer-social-link:hover { background: var(--terracotta); transform: translateY(-2px); }

.footer-column-title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-links,
.footer-links-list { list-style: none; }

.footer-links li,
.footer-links-list li { margin-bottom: 0.75rem; }

.footer-link {
    font-size: 0.9375rem;
    color: var(--gray-400);
    transition: color var(--transition-base);
}

.footer-link:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright { font-size: 0.875rem; color: var(--gray-500); }

.footer-legal { display: flex; gap: 2rem; }

.footer-legal-link {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: color var(--transition-base);
}

.footer-legal-link:hover { color: var(--white); }

/* ---------- Language switcher (matches the rest of the site) ---------- */
.lang-switcher { position: relative; display: inline-block; font-family: var(--font-mono); }

.lang-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--charcoal);
    background: transparent;
    border: 1px solid rgba(28,28,30,0.3);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 12rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.35rem;
    display: none;
    z-index: 1000;
}

.lang-switcher.open .lang-switcher-menu { display: block; }

.lang-switcher-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    text-transform: none;
}

.lang-switcher-menu a:hover { background: var(--cream); }
.lang-switcher-menu a[aria-current="true"] { color: var(--terracotta); font-weight: 600; }

.footer-lang-switcher .lang-switcher-toggle {
    color: var(--gray-400);
    border-color: rgba(255,255,255,0.18);
}

.footer-lang-switcher .lang-switcher-menu {
    right: auto;
    left: 0;
    bottom: calc(100% + 0.5rem);
    top: auto;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; max-width: 100%; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-column-title { margin-top: 1rem; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-legal { flex-wrap: wrap; justify-content: center; }
}
