/* =========================================================================
   LINGO UNCHARTED — DESIGN SYSTEM
   -------------------------------------------------------------------------
   Palette
     --color-dark    #0B192C  Deep Midnight Blue   (headers, hero, body text)
     --color-light   #FBFBFB  Clean Off-White       (page backgrounds)
     --color-accent  #FF9F1C  Warm Ochre / Amber    (CTAs, active states)
     --color-support #E2E8F0  Soft Slate Gray       (borders, dividers)

   Type
     Display : "Fraunces"       — old-map, expedition-log character
     Body    : "Inter"          — clean, highly legible
     Mono    : "IBM Plex Mono"  — coordinates / labels / tags

   Signature element
     A dashed "trail" that connects the nav's language waypoints, echoed
     in section dividers and card footers — the site's map motif.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    /* Core palette */
    --color-dark: #0B192C;
    --color-light: #FBFBFB;
    --color-accent: #FF9F1C;
    --color-support: #E2E8F0;

    /* Derived tones */
    --color-dark-soft: #16273F;   /* lifted navy for cards-on-dark */
    --color-dark-80: rgba(11, 25, 44, 0.8);
    --color-dark-40: rgba(11, 25, 44, 0.4);
    --color-accent-soft: rgba(255, 159, 28, 0.14);
    --color-accent-dark: #E08600;

    /* Type */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

    /* Layout */
    --max-width: 1180px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --header-height: 84px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
    margin: 0;
    background: var(--color-light);
    color: var(--color-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-dark);
    margin: 0 0 0.5em;
    line-height: 1.15;
    font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

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

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

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.9em;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-dark);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 159, 28, 0.28);
}

.btn-ghost {
    background: transparent;
    color: var(--color-light);
    border-color: rgba(251, 251, 251, 0.35);
}

.btn-ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary {
    background: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-support);
}

.btn-secondary:hover {
    background: #F0F2F5;
}

.btn-danger {
    background: #FBEAEA;
    color: #B3261E;
    border-color: #F2C9C7;
}

.btn-danger:hover {
    background: #F6D8D6;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
}

/* Reusable filter/pill bar (blog language filter, dictionary controls, etc.) */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar select,
.filter-bar input[type="search"] {
    padding: 9px 14px;
    border: 1px solid var(--color-support);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--color-light);
    color: var(--color-dark);
}

/* ---------------------------------------------------------------------
   Public forms (contact page, newsletter modal) — a lightweight, public
   counterpart to the admin panel's form styling.
   --------------------------------------------------------------------- */
.form-card {
    background: var(--color-light);
    border: 1px solid var(--color-support);
    border-radius: var(--radius-md);
    padding: 28px;
}

.site-form label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    margin-top: 18px;
}

.site-form label:first-of-type { margin-top: 0; }

.site-form input[type="text"],
.site-form input[type="email"],
.site-form select,
.site-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-support);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--color-light);
    color: var(--color-dark);
}

.site-form textarea { resize: vertical; min-height: 120px; }

.form-actions {
    margin-top: 24px;
}

.flash {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.flash-success { background: #E3F5E9; color: #1E7A42; border: 1px solid #C4E9D0; }
.flash-error { background: #FBEAEA; color: #B3261E; border: 1px solid #F2C9C7; }

/* ---------------------------------------------------------------------
   Site header / nav — the "route map" signature
   --------------------------------------------------------------------- */
.site-header {
    background: var(--color-dark);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.12);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-light);
}

.brand-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
}

.brand-tagline {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: 2px;
}

/* The trail nav */
.trail-nav {
    display: flex;
    align-items: center;
}

.trail-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

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

/* dashed segment BETWEEN waypoints */
.trail-nav li + li::before {
    content: '';
    width: 28px;
    height: 0;
    border-top: 1px dashed rgba(226, 232, 240, 0.4);
    margin: 0 6px;
}

.waypoint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    color: rgba(251, 251, 251, 0.75);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.2s var(--ease);
}

.waypoint .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.5);
    transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.waypoint:hover,
.waypoint.is-active {
    color: var(--color-light);
}

.waypoint:hover .dot,
.waypoint.is-active .dot {
    background: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-soft);
    transform: scale(1.15);
}

.waypoint.is-active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}

/* Language code chip inside nav + sidebar */
.lang-code {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.65;
}

.waypoint-toggle {
    background: none;
    border: none;
    font-family: var(--font-body);
    cursor: pointer;
}

.waypoint-toggle .chevron {
    margin-left: 2px;
    transition: transform 0.2s var(--ease);
    color: rgba(251, 251, 251, 0.5);
}

.has-dropdown.is-open .waypoint-toggle .chevron,
.has-dropdown:hover .waypoint-toggle .chevron {
    transform: rotate(180deg);
    color: var(--color-accent);
}

/* Dropdown panel */
.has-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--color-light);
    border: 1px solid var(--color-support);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(11, 25, 44, 0.16);
    min-width: 230px;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
    z-index: 50;
}

/* Invisible bridge that fills the gap between the button and the panel,
   so moving the mouse from one to the other never leaves the hoverable
   area (without this, the dropdown can close before you reach it). */
.dropdown-panel::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -20px;
    right: -20px;
    height: 14px;
}

.has-dropdown:hover .dropdown-panel,
.has-dropdown.is-open .dropdown-panel,
.has-dropdown.hover-open .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--color-dark);
    font-size: 0.92rem;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.dropdown-link:hover {
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
}

.dropdown-link.is-current {
    color: var(--color-accent-dark);
    font-weight: 600;
    background: var(--color-accent-soft);
}

.dropdown-icon {
    font-size: 0.95rem;
    line-height: 1;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 28px;
    height: 22px;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-light);
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle span { top: 10px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
    background: var(--color-dark);
    background-image: url('../images/topo-pattern.svg');
    background-repeat: repeat;
    background-size: 400px;
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,25,44,0.55) 0%, rgba(11,25,44,0.92) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1,
.hero .eyebrow {
    color: var(--color-light);
}

.hero h1 { color: var(--color-light); }

.hero p.lede {
    color: rgba(251, 251, 251, 0.78);
    font-size: 1.1rem;
    max-width: 560px;
    margin-bottom: 2em;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.section {
    padding: 84px 0;
}

.section-header {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-header p {
    color: var(--color-dark-80);
}

.section-alt {
    background: #F4F6F8;
}

/* Divider echoing the trail motif */
.trail-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 40px;
    color: var(--color-support);
}

.trail-divider .line {
    width: 60px;
    height: 0;
    border-top: 1px dashed var(--color-support);
}

.trail-divider .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}

/* ---------------------------------------------------------------------
   Language cards (used on homepage to link to the four language pages)
   --------------------------------------------------------------------- */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.lang-card {
    background: var(--color-light);
    border: 1px solid var(--color-support);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lang-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 12px 28px rgba(11, 25, 44, 0.08);
}

.lang-card .code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent-dark);
    letter-spacing: 0.06em;
}

.lang-card h3 {
    margin: 10px 0 8px;
}

.lang-card p {
    color: var(--color-dark-80);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.lang-card .go {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-card:hover .go { color: var(--color-accent-dark); }

/* ---------------------------------------------------------------------
   Placeholder page (used by the four stub language pages)
   --------------------------------------------------------------------- */
.placeholder-page {
    padding: 90px 0;
    text-align: center;
}

.placeholder-page .flag-code {
    font-family: var(--font-mono);
    color: var(--color-accent-dark);
    background: var(--color-accent-soft);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-bottom: 22px;
}

.placeholder-page p {
    max-width: 480px;
    margin-inline: auto;
    color: var(--color-dark-80);
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
    background: var(--color-dark);
    color: rgba(251, 251, 251, 0.72);
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.15);
}

.footer-grid h4 {
    color: var(--color-light);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li { margin-bottom: 10px; }

.footer-grid a {
    color: rgba(251, 251, 251, 0.72);
    transition: color 0.2s var(--ease);
}

.footer-grid a:hover { color: var(--color-accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom .brand-name {
    font-size: 1rem;
    color: var(--color-light);
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }

    .trail-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-dark);
        border-bottom: 1px solid rgba(226, 232, 240, 0.12);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    }

    .trail-nav.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .trail-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 24px 20px;
        gap: 4px;
    }

    .trail-nav li { width: 100%; }

    .trail-nav li + li::before { display: none; }

    .waypoint { padding: 12px 0; width: 100%; }

    .waypoint.is-active::after { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    /* Dropdowns become inline accordions on mobile */
    .dropdown-panel {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(251, 251, 251, 0.04);
        margin: 4px 0 8px;
        width: 100%;
    }

    .has-dropdown.is-open .dropdown-panel { display: block; }

    .dropdown-link { color: rgba(251, 251, 251, 0.75); }
    .dropdown-link:hover,
    .dropdown-link.is-current { background: rgba(255, 159, 28, 0.12); color: var(--color-accent); }

    .waypoint-toggle { width: 100%; justify-content: space-between; }
}

/* ---------------------------------------------------------------------
   Article pages — hero + two-column (content / sidebar) layout
   --------------------------------------------------------------------- */
.page-hero {
    background: var(--color-dark);
    background-image: url('../images/topo-pattern.svg');
    background-repeat: repeat;
    background-size: 400px;
    padding: 56px 0 44px;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,25,44,0.6) 0%, rgba(11,25,44,0.94) 100%);
}

.page-hero .container { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 { color: var(--color-light); margin-bottom: 0.4em; }
.page-hero .eyebrow { color: var(--color-accent); }
.page-lede { color: rgba(251, 251, 251, 0.78); font-size: 1.05rem; max-width: 620px; margin: 0; }

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
}

.main-content {
    max-width: 720px;
}

.main-content h2 {
    margin-top: 2em;
    padding-top: 0.2em;
}

.main-content h2:first-child { margin-top: 0; }

.main-content h3 {
    margin-top: 1.6em;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
}

.main-content p,
.main-content li {
    color: var(--color-dark);
}

.main-content ul,
.main-content ol {
    padding-left: 1.3em;
    margin-bottom: 1.2em;
}

.main-content li { margin-bottom: 0.4em; }

.main-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.95rem;
}

.main-content th,
.main-content td {
    border: 1px solid var(--color-support);
    padding: 10px 12px;
    text-align: left;
}

.main-content th {
    background: #F4F6F8;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-dark-80);
}

.main-content blockquote {
    margin: 1.6em 0;
    padding: 18px 22px;
    border-left: 3px solid var(--color-accent);
    background: var(--color-accent-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.main-content code {
    font-family: var(--font-mono);
    background: #F0F2F5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

.callout {
    border: 1px solid var(--color-support);
    background: #F4F6F8;
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin: 1.6em 0;
}

.callout h4 {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: var(--color-accent-dark);
    margin-bottom: 10px;
}

.callout p:last-child { margin-bottom: 0; }

/* Sidebar */
.page-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--color-light);
    border: 1px solid var(--color-support);
    border-radius: var(--radius-md);
    padding: 22px;
}

.sidebar-card h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-dark);
    margin: 0 0 6px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent);
}

.sidebar-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.sidebar-list li { margin-bottom: 2px; }

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 4px;
    font-size: 0.92rem;
    color: var(--color-dark-80);
    border-bottom: 1px dashed var(--color-support);
    transition: color 0.15s var(--ease), padding-left 0.15s var(--ease);
}

.sidebar-list li:last-child .sidebar-link { border-bottom: none; }

.sidebar-link:hover {
    color: var(--color-accent-dark);
    padding-left: 8px;
}

.sidebar-link.is-current {
    color: var(--color-dark);
    font-weight: 700;
}

.sidebar-list-languages .sidebar-link {
    justify-content: flex-start;
    gap: 10px;
}

.sidebar-list-languages .lang-code {
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 1;
}

/* Breadcrumb-style back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(251, 251, 251, 0.6);
    margin-bottom: 16px;
}

.back-link:hover { color: var(--color-accent); }

@media (max-width: 920px) {
    .content-layout { grid-template-columns: 1fr; }
    .page-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .sidebar-card { flex: 1 1 260px; }
}

@media (max-width: 600px) {
    .page-sidebar { flex-direction: column; }
}
