/*
Theme Name: FoxyChef
Theme URI: https://foxychef.com
Author: Foxy Team
Description: Culinary Precision — ingredient substitutes, calorie tables and practical equipment-based recipes. Fast. Fresh. Focused.
Version: 1.0.0
License: GPL-2.0+
Text Domain: foxychef
*/

/* ── Design tokens (Culinary Precision) ─────────────────────────────────── */
:root {
    --fox-orange:      #F05A28;
    --fox-orange-dark: #D04411;
    --fox-orange-tint: #fdeee8;
    --charcoal:        #2D3436;
    --leafy-green:     #2ECC71;
    --green-tint:      #e9faf1;
    --accent-yellow:   #F1C40F;
    --surface:         #f8f9fa;
    --card:            #ffffff;
    --container:       #edeeef;
    --container-high:  #e1e3e4;
    --text:            #191c1d;
    --text-soft:       #5a6062;
    --text-faint:      #8a9092;
    --outline:         #e1e3e4;
    --outline-warm:    #e2bfb5;
    --radius:          4px;
    --radius-lg:       8px;
    --shadow-card:     0 4px 12px rgba(0,0,0,.05);
    --max-width:       1200px;
    --font-head:       'Montserrat', -apple-system, sans-serif;
    --font-body:       'Inter', -apple-system, sans-serif;
}

/* ── Reset / base ───────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fox-orange); text-decoration: none; }
a:hover { color: var(--fox-orange-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--charcoal); line-height: 1.25; }
h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 32px; font-weight: 600; }
h3 { font-size: 24px; font-weight: 600; }
@media (max-width: 720px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
}

.fc-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 64px; }
@media (max-width: 1100px) { .fc-wrap { padding: 0 24px; } }
@media (max-width: 640px) { .fc-wrap { padding: 0 14px; } }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.fc-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--outline-warm);
    position: sticky; top: 0; z-index: 50;
}
.fc-topbar-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 64px;
    display: flex; align-items: center; gap: 32px; height: 64px;
}
@media (max-width: 900px) { .fc-topbar-inner { padding: 0 16px; gap: 12px; } }
.fc-logo {
    font-family: var(--font-head); font-weight: 800; font-size: 24px;
    color: var(--fox-orange); display: flex; align-items: center; gap: 8px;
    white-space: nowrap;
}
.fc-logo:hover { color: var(--fox-orange-dark); }
.fc-logo img { width: 32px; height: 32px; flex: 0 0 32px; }
.fc-topnav { display: flex; gap: 24px; margin: 0 auto; }
.fc-topnav a {
    font-size: 15px; font-weight: 500; color: var(--charcoal);
    padding: 20px 2px; border-bottom: 2px solid transparent;
}
.fc-topnav a:hover { color: var(--fox-orange); }
.fc-topnav a.active { color: var(--fox-orange-dark); border-bottom-color: var(--fox-orange); font-weight: 600; }
@media (max-width: 860px) { .fc-topnav { display: none; } }

.fc-topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Language switcher */
.fc-lang { position: relative; }
.fc-lang::after { content: ''; position: absolute; bottom: -10px; left: 0; right: 0; height: 10px; }
.fc-lang-btn {
    background: none; border: 1px solid var(--outline); border-radius: var(--radius-lg);
    padding: 7px 12px; font-family: var(--font-body); font-size: 13px; font-weight: 600;
    color: var(--charcoal); cursor: pointer;
}
.fc-lang-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 6px);
    background: var(--card); border: 1px solid var(--outline); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card); min-width: 130px; overflow: hidden;
}
.fc-lang:hover .fc-lang-dropdown, .fc-lang:focus-within .fc-lang-dropdown { display: block; }
.fc-lang-dropdown a { display: block; padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--charcoal); }
.fc-lang-dropdown a:hover { background: var(--container); }
.fc-lang-dropdown a.active { color: var(--fox-orange); font-weight: 700; }

/* Mobile bottom-ish nav (simple burger substitute) */
.fc-mobile-nav {
    display: none;
}
@media (max-width: 860px) {
    .fc-mobile-nav {
        display: flex; gap: 4px; overflow-x: auto;
        padding: 7px 14px; background: var(--surface);
        border-bottom: 1px solid var(--outline);
        scrollbar-width: none;
    }
    .fc-mobile-nav::-webkit-scrollbar { display: none; }
    .fc-mobile-nav a {
        flex: 0 0 auto; font-size: 12.5px; font-weight: 600; color: var(--charcoal);
        background: var(--container); border-radius: 999px; padding: 6px 11px;
    }
    .fc-mobile-nav a.active { background: var(--fox-orange); color: #fff; }
}

/* ── Hero (home) ────────────────────────────────────────────────────────── */
.fc-hero { text-align: center; padding: 72px 0 40px; }
.fc-hero h1 span { color: var(--fox-orange); }
.fc-hero-sub { font-size: 18px; color: var(--text-soft); margin-top: 12px; }

.fc-hero-search { max-width: 720px; margin: 32px auto 0; display: flex; }
.fc-hero-search input {
    flex: 1; height: 56px; padding: 0 20px 0 48px;
    font-family: var(--font-body); font-size: 16px;
    border: 1px solid var(--outline-warm); border-right: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a9092' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 16px center;
    outline: none;
}
.fc-hero-search input:focus { border-color: var(--fox-orange); }
.fc-hero-search button {
    height: 56px; padding: 0 28px; border: none; cursor: pointer;
    background: var(--fox-orange); color: #fff;
    font-family: var(--font-body); font-weight: 600; font-size: 16px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.fc-hero-search button:hover { background: var(--fox-orange-dark); }

.fc-hero-chips { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.fc-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
    border: 1px solid var(--outline); background: var(--card); color: var(--charcoal);
}
.fc-chip:hover { border-color: var(--fox-orange); color: var(--fox-orange); }
.fc-chip.chip-green { border-color: var(--leafy-green); color: #1e9e56; }
.fc-chip.chip-green:hover { background: var(--green-tint); }
.fc-chip.chip-yellow { border-color: var(--accent-yellow); color: #9c7d06; }
.fc-chip.chip-orange { background: var(--fox-orange); border-color: var(--fox-orange); color: #fff; }

/* ── Section headings ───────────────────────────────────────────────────── */
.fc-section { padding: 40px 0 8px; }
.fc-section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    border-bottom: 1px solid var(--outline); padding-bottom: 12px; margin-bottom: 24px;
}
.fc-section-head .fc-view-all { font-size: 14px; font-weight: 600; color: var(--fox-orange); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.fc-grid { display: grid; gap: 24px; }
.fc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.fc-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) {
    .fc-grid { gap: 18px; }
    .fc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .fc-grid { gap: 14px; }
    .fc-grid-3, .fc-grid-2 { grid-template-columns: 1fr; }
}

.fc-card {
    background: var(--card); border: 1px solid var(--outline); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-card);
    transition: transform .15s ease, box-shadow .15s ease;
    display: flex; flex-direction: column;
}
.fc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.fc-card-img { aspect-ratio: 16/10; background: var(--container); position: relative; }
.fc-card-img img { width: 100%; height: 100%; object-fit: cover; }
.fc-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fc-card-title { font-family: var(--font-head); font-size: 19px; font-weight: 600; color: var(--charcoal); }
a .fc-card-title:hover, .fc-card a:hover .fc-card-title { color: var(--fox-orange); }
.fc-card-excerpt { font-size: 14px; color: var(--text-soft); }
.fc-card-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-faint); margin-top: auto; padding-top: 8px; }

/* Tags */
.fc-tag {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.fc-tag-orange { background: var(--fox-orange); color: #fff; }
.fc-tag-orange-soft { background: var(--fox-orange-tint); color: var(--fox-orange-dark); }
.fc-tag-green { background: var(--leafy-green); color: #fff; }
.fc-tag-green-soft { background: var(--green-tint); color: #1e9e56; }
.fc-tag-neutral { background: var(--container); color: var(--text-soft); }
.fc-card-img .fc-tag { position: absolute; top: 12px; left: 12px; }

/* ── Pro-tip / lifehack box ─────────────────────────────────────────────── */
.fc-tip {
    background: var(--card); border: 1px solid var(--outline);
    border-left: 4px solid var(--leafy-green); border-radius: var(--radius);
    padding: 20px 24px; box-shadow: var(--shadow-card);
}
.fc-tip-label {
    font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: #1e9e56; display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.fc-tip-title { font-family: var(--font-head); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.fc-tip-text { font-size: 14.5px; color: var(--text-soft); }
.fc-tip.tip-orange { border-left-color: var(--fox-orange); }
.fc-tip.tip-orange .fc-tip-label { color: var(--fox-orange-dark); }

/* ── Substitutes table ──────────────────────────────────────────────────── */
.fc-table-search {
    width: 100%; max-width: 480px; padding: 12px 4px 12px 34px;
    font-family: var(--font-body); font-size: 16px;
    border: none; border-bottom: 2px solid var(--outline-warm);
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a9092' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 4px center;
    outline: none; margin-bottom: 24px;
}
.fc-table-search:focus { border-bottom-color: var(--fox-orange); }

.fc-table-wrap {
    background: var(--card); border: 1px solid var(--outline); border-radius: var(--radius);
    overflow-x: auto; box-shadow: var(--shadow-card);
}
table.fc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fc-table thead th {
    position: sticky; top: 0; background: var(--card);
    text-align: left; padding: 14px 20px;
    font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--text-soft); border-bottom: 1px solid var(--outline-warm);
    white-space: nowrap;
}
.fc-table tbody td { padding: 16px 20px; border-bottom: 1px solid var(--outline); vertical-align: top; }
.fc-table tbody tr:nth-child(even) { background: #fbfbfc; }
.fc-table tbody tr:last-child td { border-bottom: none; }
.fc-table tbody tr:hover { background: var(--fox-orange-tint); }
.fc-table .fc-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin-right: 8px; vertical-align: middle;
}
.fc-dot-orange { background: var(--fox-orange); }
.fc-dot-green { background: var(--leafy-green); }
.fc-table td.fc-td-main { font-weight: 600; color: var(--charcoal); white-space: nowrap; }
.fc-table td.fc-td-main a { color: var(--charcoal); }
.fc-table td.fc-td-main a:hover { color: var(--fox-orange); }
.fc-table td.fc-td-ratio { color: var(--text-soft); font-size: 14px; }

/* ── Filter chips row (archives) ────────────────────────────────────────── */
.fc-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.fc-filter {
    padding: 9px 18px; border-radius: 999px; cursor: pointer;
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
    background: var(--container); color: var(--charcoal); border: 1px solid transparent;
    line-height: 1.2;
}
.fc-filter:hover { background: var(--container-high); }
.fc-filter.active { background: var(--fox-orange); color: #fff; }

@media (max-width: 1100px) {
    .fc-filters { gap: 8px; margin-bottom: 22px; }
    .fc-filter { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 1100px) and (min-width: 641px) {
    h1 { font-size: 40px; }
    h2 { font-size: 28px; }
    .fc-hero { padding: 54px 0 32px; }
    .fc-hero-sub { font-size: 17px; }
    .fc-card-body { padding: 16px; }
    .fc-card-title { font-size: 17.5px; }
    .fc-card-meta { gap: 10px; flex-wrap: wrap; }
    .fc-chip { padding: 8px 14px; font-size: 13px; }
}

/* ── Single: recipe / substitute ────────────────────────────────────────── */
.fc-single { padding: 48px 0 64px; }
.fc-single-head { max-width: 760px; }
.fc-single-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.fc-single-lede { font-size: 18px; color: var(--text-soft); margin-top: 16px; }

.fc-meta-bar {
    display: flex; margin: 28px 0;
    border-top: 1px solid var(--outline-warm); border-bottom: 1px solid var(--outline-warm);
}
.fc-meta-cell { padding: 14px 32px 14px 0; margin-right: 32px; border-right: 1px solid var(--outline); }
.fc-meta-cell:last-child { border-right: none; }
.fc-meta-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); }
.fc-meta-value { font-size: 17px; font-weight: 700; color: var(--charcoal); }

.fc-single-cols { display: grid; grid-template-columns: 340px 1fr; gap: 48px; margin-top: 40px; }
@media (max-width: 900px) { .fc-single-cols { grid-template-columns: 1fr; } }

.fc-col-title {
    font-family: var(--font-head); font-size: 24px; font-weight: 600;
    border-bottom: 1px solid var(--outline); padding-bottom: 12px; margin-bottom: 20px;
}

/* Ingredients checklist */
.fc-ingredients {
    background: var(--card); border: 1px solid var(--outline-warm); border-radius: var(--radius);
    padding: 20px;
}
.fc-ingredient { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 15px; }
.fc-ingredient input[type=checkbox] {
    width: 20px; height: 20px; margin-top: 1px; accent-color: var(--fox-orange); cursor: pointer; flex: 0 0 auto;
}
.fc-ingredient b { font-weight: 700; }
.fc-ingredient.checked { text-decoration: line-through; color: var(--text-faint); }

/* Steps */
.fc-step { display: flex; gap: 20px; margin-bottom: 28px; }
.fc-step-num {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--radius-lg);
    background: var(--fox-orange); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
}
.fc-step-title { font-family: var(--font-head); font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.fc-step-text { font-size: 15.5px; color: var(--text-soft); line-height: 1.65; }

/* Substitution box in recipes */
.fc-swap-box {
    border: 1px solid var(--outline-warm); border-left: 4px solid var(--leafy-green);
    border-radius: var(--radius); padding: 18px 20px; margin-top: 24px; background: var(--card);
}
.fc-swap-box-label {
    font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: #1e9e56; margin-bottom: 8px;
}
.fc-swap-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--outline); font-size: 14px; }
.fc-swap-row:last-child { border-bottom: none; }
.fc-swap-row .from { font-weight: 600; color: var(--charcoal); }
.fc-swap-row .to { color: var(--text-soft); text-align: right; }

/* Ratio card (single substitute) */
.fc-ratio-card {
    background: var(--fox-orange-tint); border: 1px solid var(--outline-warm);
    border-radius: var(--radius-lg); padding: 24px; text-align: center; margin: 28px 0;
}
.fc-ratio-formula { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--fox-orange-dark); }
.fc-ratio-note { font-size: 14px; color: var(--text-soft); margin-top: 8px; }

/* Content prose */
.fc-prose { max-width: 760px; font-size: 16.5px; line-height: 1.7; }
.fc-prose h2 { margin: 36px 0 14px; font-size: 26px; }
.fc-prose h3 { margin: 28px 0 10px; font-size: 21px; }
.fc-prose p { margin-bottom: 16px; }
.fc-prose ul, .fc-prose ol { margin: 0 0 16px 22px; }
.fc-prose li { margin-bottom: 8px; }
.fc-prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.fc-prose th { text-align: left; padding: 12px 16px; background: var(--container); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.fc-prose td { padding: 12px 16px; border-bottom: 1px solid var(--outline); }
.fc-prose tr:nth-child(even) td { background: #fbfbfc; }
.fc-prose img { border-radius: var(--radius); margin: 20px 0; }
.fc-prose blockquote {
    border-left: 4px solid var(--fox-orange); padding: 12px 20px; margin: 20px 0;
    background: var(--fox-orange-tint); border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--charcoal);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.fc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 28px; border-radius: var(--radius-lg);
    font-family: var(--font-body); font-size: 15px; font-weight: 600;
    cursor: pointer; border: none;
}
.fc-btn-primary { background: var(--fox-orange); color: #fff; }
.fc-btn-primary:hover { background: var(--fox-orange-dark); color: #fff; }
.fc-btn-dark { background: var(--charcoal); color: #fff; }
.fc-btn-dark:hover { background: #191c1d; color: #fff; }
.fc-btn-outline { background: transparent; border: 1.5px solid var(--charcoal); color: var(--charcoal); }
.fc-btn-outline:hover { background: var(--charcoal); color: #fff; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.fc-pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0; }
.fc-pagination .page-numbers {
    min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 12px; border: 1px solid var(--outline); border-radius: var(--radius-lg);
    font-size: 14px; font-weight: 600; color: var(--charcoal); background: var(--card);
}
.fc-pagination .page-numbers.current { background: var(--fox-orange); border-color: var(--fox-orange); color: #fff; }
.fc-pagination .page-numbers:hover:not(.current) { border-color: var(--fox-orange); color: var(--fox-orange); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.fc-footer { background: var(--container-high); margin-top: 64px; padding: 48px 0 40px; }
.fc-footer-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 64px;
    display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
@media (max-width: 900px) { .fc-footer-inner { padding: 0 16px; } }
.fc-footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--charcoal); }
.fc-footer-tagline { font-size: 14px; color: var(--text-soft); margin-top: 8px; }
.fc-footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.fc-footer-links a { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.fc-footer-links a:hover { color: var(--fox-orange); }
.fc-footer-copy { width: 100%; margin-top: 24px; font-size: 13px; color: var(--text-faint); }

/* ── 404 / search ───────────────────────────────────────────────────────── */
.fc-404 { text-align: center; padding: 96px 0; }
.fc-404 .code { font-family: var(--font-head); font-size: 96px; font-weight: 800; color: var(--fox-orange); line-height: 1; }

/* ── Utility ────────────────────────────────────────────────────────────── */
.fc-muted { color: var(--text-faint); }
.fc-mt-0 { margin-top: 0; }
.fc-hidden { display: none !important; }

/* ── Mobile polish (≤720px) ─────────────────────────────────────────────── */
@media (max-width: 720px) {
    body { font-size: 15px; }
    .fc-topbar-inner { height: 56px; padding: 0 14px; }
    .fc-logo { font-size: 20px; }
    .fc-logo img { width: 28px; height: 28px; flex-basis: 28px; }
    .fc-lang-btn { padding: 6px 9px; font-size: 12px; }

    .fc-hero { padding: 30px 0 20px; }
    .fc-hero-sub { font-size: 15px; margin-top: 8px; }
    /* Search stacks into input-over-button so the button stays kitchen-sized */
    .fc-hero-search { flex-direction: column; gap: 8px; margin-top: 22px; }
    .fc-hero-search input {
        height: 48px; padding-left: 42px; font-size: 15px;
        border-right: 1px solid var(--outline-warm);
        border-radius: var(--radius-lg);
    }
    .fc-hero-search button { border-radius: var(--radius-lg); width: 100%; height: 46px; font-size: 15px; }
    .fc-hero-chips { gap: 7px; margin-top: 18px; }
    .fc-chip { padding: 7px 11px; font-size: 12.5px; gap: 4px; }

    .fc-section { padding: 24px 0 8px; }
    .fc-section-head { flex-wrap: wrap; gap: 4px 12px; }
    .fc-card-img { aspect-ratio: 16/9; }
    .fc-card-body { padding: 14px; gap: 6px; }
    .fc-card-title { font-size: 16.5px; }
    .fc-card-excerpt { font-size: 13.5px; }
    .fc-card-meta { gap: 9px; flex-wrap: wrap; font-size: 12.5px; padding-top: 6px; }
    .fc-tag { padding: 3px 8px; font-size: 10px; }
    .fc-card-img .fc-tag { top: 9px; left: 9px; }

    /* Filter chips scroll horizontally instead of wrapping into a wall */
    .fc-filters {
        flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
        gap: 7px; padding-bottom: 6px; margin-left: -14px; margin-right: -14px;
        padding-left: 14px; padding-right: 14px; scrollbar-width: none;
    }
    .fc-filters::-webkit-scrollbar { display: none; }
    .fc-filter { flex: 0 0 auto; padding: 7px 11px; font-size: 12.5px; }

    .fc-single { padding: 28px 0 40px; }
    .fc-meta-bar { flex-wrap: wrap; }
    .fc-meta-cell { padding: 10px 20px 10px 0; margin-right: 20px; }
    .fc-meta-value { font-size: 15px; }

    .fc-single-cols { gap: 28px; margin-top: 24px; }
    .fc-step { gap: 14px; margin-bottom: 20px; }
    .fc-step-num { flex: 0 0 36px; width: 36px; height: 36px; font-size: 17px; }

    .fc-table thead th { padding: 10px 12px; font-size: 11px; }
    .fc-table tbody td { padding: 12px; font-size: 14px; }
    .fc-td-main { white-space: normal !important; }

    .fc-footer { padding: 32px 0 28px; }
    .fc-footer-links { gap: 12px 18px; }

    .fc-prose { font-size: 15.5px; }
    .fc-404 { padding: 56px 0; }
    .fc-404 .code { font-size: 64px; }
}

/* Comfortable tap targets for language dropdown on touch screens */
@media (hover: none) {
    .fc-lang-dropdown a { padding: 12px 16px; }
    .fc-card:hover { transform: none; }
}
