/*
Theme Name: TRUBA GeneratePress Child V2
Theme URI: https://www.truba.gov.tr/
Description: TRUBA institutional child theme — V3.3 floating-masthead header + single status-band footer (anasayfa-taslak reference).
Author: TRUBA / ULAKBIM
Template: generatepress
Version: 3.3.0
Text Domain: truba-generatepress-child-v2
*/

/* ==========================================================================
   0. DESIGN TOKENS (from the anasayfa-taslak draft)
   ========================================================================== */
:root {
    --truba-font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

    --truba-ink: #0b0c10;
    --truba-ink-soft: #23282e;
    --truba-page: #f6f7f7;
    --truba-band: #e4eaee;
    --truba-band-low: #dde1e4;

    --truba-blue-a: #2c7bb2;
    --truba-blue: #215fa3;
    --truba-blue-b: #173c93;
    --truba-steel: #3b628c;
    --truba-teal: #2c8c96;
    --truba-aqua: rgba(158, 222, 222, 0.6);
    --truba-ok: #3fb488;

    --truba-glass: rgba(240, 241, 242, 0.74);
    --truba-glass-edge: rgba(255, 255, 255, 0.82);
    --truba-focus: #1f6fd0;

    --truba-wrap: 1200px;
    --truba-gutter: 24px;
    --truba-straddle: 82px;  /* how far the tiles climb into the hero */
    --truba-masthead-h: 96px; /* height the floating masthead takes from the hero top (76px ≤1220, 62px ≤560) */
    --truba-topbar-h: 40px;   /* height of the contact topbar */
    --truba-header-h: calc(var(--truba-topbar-h) + var(--truba-masthead-h)); /* total fixed header height */

    color-scheme: light;
}

/* ==========================================================================
   1. BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--truba-page);
    color: var(--truba-ink);
    font: 400 16px / 1.5 var(--truba-font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.truba-v31 .site-main,
body.truba-v31 #truba-main-content { min-height: 0; }

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.15s; }
button { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--truba-focus); outline-offset: 3px; }

body.truba-v31 h1,
body.truba-v31 h2,
body.truba-v31 h3,
body.truba-v31 h4,
body.truba-v31 h5,
body.truba-v31 h6 {
    font-family: var(--truba-font);
    color: var(--truba-ink);
    margin: 0 0 0.6em;
}

.container,
.truba-container {
    width: min(100% - 2 * var(--truba-gutter), var(--truba-wrap));
    margin-inline: auto;
}

/* Skip link */
.truba-skip-link {
    position: absolute;
    top: -80px;
    left: 12px;
    z-index: 120;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--truba-ink);
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(15, 30, 50, 0.2);
}
.truba-skip-link:focus { top: 40px; }

/* ==========================================================================
   2. HEADER — reference draft: contact bar + FLOATING masthead (no background)
   ========================================================================== */
.truba-site-header {
    position: relative;
    z-index: 20;
}

/* --- 2a. Contact bar: email (left) + phone (right) only --- */
.truba-topbar {
    background: var(--truba-band);
    color: var(--truba-ink-soft);
    font-size: 14px;
}
.truba-topbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2px 24px;
    min-height: 41px;
    padding-block: 6px;
}
.truba-contact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    transition: color 0.15s;
}
.truba-contact svg { flex: none; width: 17px; height: 17px; color: #6b7580; }
.truba-contact:hover { color: var(--truba-blue); }

/* --- 2b. Floating masthead — transparent, floats into the hero ---
   Right edge lines up with the content column; the logos sit 148px outside
   its left edge (the window edge at the 1520px design width). */
.truba-masthead {
    position: absolute;
    inset: 100% 0 auto 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 12px max(var(--truba-gutter), calc(50% - var(--truba-wrap) / 2)) 0 max(clamp(8px, 0.8vw, 12px), calc(50% - var(--truba-wrap) / 2 - 148px));
}

/* Brand: institutional logo card (first) + TRUBA logo (second) */
.truba-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: none;
    min-width: 0;
}
.truba-gov {
    flex: none;
    height: clamp(60px, 4.9vw, 74px);
    padding: 7px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 30, 50, 0.1);
}
.truba-gov__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 1px solid #b9bfc6;
    border-radius: 3px;
    overflow: hidden;
}
.truba-gov__frame img { height: 100%; width: auto; display: block; }
.truba-brand__home { display: inline-flex; align-items: center; flex: none; }
.truba-brand__home img {
    height: clamp(60px, 4.9vw, 74px);
    width: auto;
    display: block;
}

/* Tools: nav pill + language pill + hamburger */
.truba-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}

/* Nav pill (desktop: visible) */
.truba-nav {
    display: flex;
    align-items: center;
    height: 62px;
    padding: 0 clamp(18px, 1.9vw, 29px);
    border: 1px solid var(--truba-glass-edge);
    border-radius: 999px;
    background: var(--truba-glass);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
    box-shadow: 0 8px 24px rgba(15, 30, 50, 0.12);
}
.truba-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.24vw, 34px);
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--truba-ink-soft);
    font-size: clamp(15px, 1.12vw, 17px);
    font-weight: 500;
    white-space: nowrap;
}
.truba-nav__list li { list-style: none; margin: 0; }
.truba-nav__list a {
    display: inline-flex;
    align-items: center;
    padding-block: 8px;
    transition: color 0.15s;
}
.truba-nav__list a:hover { color: var(--truba-blue); }
.truba-nav__list li.current-menu-item > a,
.truba-nav__list li.current_page_item > a { color: var(--truba-blue); font-weight: 600; }

/* Language pill: "TR / EN" text (Polylang links, no flags, no bullets) */
.truba-lang {
    display: flex;
    align-items: center;
    height: 35px;
    padding: 3px;
    border: 1px solid var(--truba-glass-edge);
    border-radius: 999px;
    background: var(--truba-glass);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
    box-shadow: 0 8px 24px rgba(15, 30, 50, 0.12);
}
.truba-lang ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.truba-lang li { list-style: none; margin: 0; }
.truba-lang li::marker { content: none; }
.truba-lang .truba-lang-item + .truba-lang-item::before {
    content: "/";
    margin: 0 8px;
    color: #6b747d;
}
.truba-lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 32px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--truba-ink-soft);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color 0.15s, color 0.15s;
}
.truba-lang .truba-lang-item.current-lang a {
    min-width: 38px;
    background: var(--truba-steel);
    color: #fff;
}
.truba-lang a:hover { color: var(--truba-blue); }
.truba-lang .truba-lang-item.current-lang a:hover { color: #fff; }

/* Hamburger (hidden on desktop) */
.truba-menu-btn {
    display: none;
    place-items: center;
    flex: none;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid var(--truba-glass-edge);
    border-radius: 50%;
    background: var(--truba-glass);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
    box-shadow: 0 8px 24px rgba(15, 30, 50, 0.12);
    color: var(--truba-ink-soft);
    cursor: pointer;
}
.truba-menu-btn svg { width: 22px; height: 22px; }
.truba-menu-btn.is-open { color: var(--truba-blue); }

/* No-backdrop-filter fallback for the glass controls */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .truba-nav,
    .truba-lang,
    .truba-menu-btn { background: rgba(244, 245, 246, 0.95); }
}

/* ==========================================================================
   3. HERO
   ========================================================================== */
/* Full-bleed hero — renders outside the boxed content column (after header).
   Top clearance = masthead height + 64px so the floating masthead sits over it. */
.truba-home-hero {
    --h1: clamp(40px, 3.03vw, 56px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    padding: calc(var(--truba-masthead-h) + 64px) 0 calc(var(--truba-straddle) + 82px);
    background: linear-gradient(180deg, #fafbfb 0%, #eef0f2 100%);
}

/* The photo: sized/placed from two fixed points so the nav pill and the tiles
   always sit on the rebuilt parts of it. Left edge + fade scale with --h1. */
.truba-home-hero-photo {
    --photo-x: calc(9.26 * var(--h1) - 69px);
    --fade-w: calc(0.6 * var(--h1) + 68px);
    --fade-in: transparent 0, rgba(0,0,0,0.1) calc(0.25 * var(--fade-w)), rgba(0,0,0,0.5) calc(0.5 * var(--fade-w)), rgba(0,0,0,0.9) calc(0.75 * var(--fade-w)), #000 var(--fade-w);
    --fade: linear-gradient(90deg, var(--fade-in));
    position: absolute;
    z-index: -1;
    top: calc(11px + (var(--truba-straddle) + 11px) * 0.024507 - 2.4507%);
    left: calc(max(var(--truba-gutter), 50% - var(--truba-wrap) / 2) + var(--photo-x));
    right: 0;
    height: calc(119.067% - (var(--truba-straddle) + 11px) * 1.19067);
    max-width: calc(735.6px + 7.2375 * var(--h1));
    background: url(assets/images/truba-hero-photo.jpg) left top / cover no-repeat;
    -webkit-mask-image: var(--fade);
    mask-image: var(--fade);
}
@supports (background-image: linear-gradient(90deg, #000 calc(100% - clamp(0px, (100vw - 100%) * 2, 9px)), #fff)) {
    .truba-home-hero-photo {
        --fade: linear-gradient(90deg, var(--fade-in), #000 calc(100% - clamp(0px, (100vw - max(var(--truba-gutter), 50vw - var(--truba-wrap) / 2) - var(--photo-x) - 100%) * 1.6, 160px)), transparent 100%);
    }
}

/* Flow pulses along the cable runs */
.truba-flow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    pointer-events: none;
}
.truba-flow path {
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 4 21;
    animation: trubaFlow var(--d, 4s) linear var(--o, 0s) infinite;
}
.truba-flow-glow { filter: blur(4px); }
.truba-flow-glow path { stroke-width: 15; }
.truba-flow-core path { stroke-width: 4; }
@keyframes trubaFlow {
    from { stroke-dashoffset: 25; }
    to { stroke-dashoffset: 0; }
}

/* Hero copy */
.truba-home-hero-content { position: relative; z-index: 1; }

.truba-home-hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0;
    padding: 6px 15px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: rgba(214, 231, 234, 0.82);
    box-shadow: 0 4px 14px rgba(40, 90, 100, 0.14);
    color: #2b3136;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.truba-home-hero-title {
    max-width: 10.2em;
    margin: 16px 0 0;
    color: var(--truba-ink);
    font-size: var(--h1);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
}
.truba-home-hero-title span { display: block; }

.truba-home-hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* Buttons */
.truba-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 51px;
    padding: 10px 25px;
    border-radius: 9px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    transition: transform 0.15s, filter 0.15s, background-color 0.15s;
}
.truba-btn-primary {
    color: #fff;
    background: linear-gradient(100deg, var(--truba-blue-a) 0%, var(--truba-blue) 52%, var(--truba-blue-b) 100%);
    box-shadow: 0 12px 26px -8px rgba(30, 70, 160, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.truba-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.truba-btn-ghost {
    border: 1px solid rgba(150, 158, 166, 0.55);
    background: rgba(250, 250, 250, 0.78);
    box-shadow: 0 8px 20px -8px rgba(15, 30, 50, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--truba-ink);
}
.truba-btn-ghost:hover { background: #fff; }

/* ==========================================================================
   4. QUICK-ACCESS TILES (straddle into the hero)
   ========================================================================== */
.truba-tiles {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: calc(var(--truba-straddle) * -1);
}
.truba-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 161px;
    padding: 20px 26px 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.5) 38%, rgba(255,255,255,0.9) 62%, rgba(255,255,255,0.94) 100%);
    box-shadow: 0 14px 34px -12px rgba(15, 30, 50, 0.28), 0 2px 6px rgba(15, 30, 50, 0.06);
    -webkit-backdrop-filter: blur(22px) saturate(0.75);
    backdrop-filter: blur(22px) saturate(0.75);
    transition: transform 0.18s, box-shadow 0.18s;
}
.truba-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px -14px rgba(15, 30, 50, 0.34), 0 2px 6px rgba(15, 30, 50, 0.06);
}
.truba-tile-icon {
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--truba-aqua);
    color: var(--truba-teal);
}
.truba-tile-icon svg { width: 30px; height: 30px; }
.truba-tile-title { color: var(--truba-ink); font-size: 21px; font-weight: 700; line-height: 1.22; letter-spacing: -0.012em; }

/* The live MetaSlider hero is hidden on home (replaced by our hero) */
body.truba-v31 .truba-metaslider-home-section { display: none; }

/* Home content (below the tiles) */
body.truba-v31.truba-hero-active .site-content .content-area { padding: 64px var(--truba-gutter) 0; }
body.truba-v31.truba-hero-active .site-main .entry-content { padding-top: 0; padding-bottom: 72px; }

/* ==========================================================================
   5. FOOTER — single centered status band (reference draft)
   ========================================================================== */
body.truba-v31 .site-main { flex: 1 0 auto; }

.truba-footer {
    background: var(--truba-band-low);
    color: var(--truba-ink-soft);
    margin-top: auto;
}
.status__line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    margin: 0;
    padding-block: 10px;
    font-size: 15.5px;
    color: var(--truba-ink-soft);
    text-align: center;
}
.status__line strong { font-weight: 700; color: var(--truba-ink); }
.status__dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--truba-ok);
    box-shadow: 0 0 0 4px rgba(63, 180, 136, 0.18);
}

/* ==========================================================================
   6. PAGE BANNER (interior pages)
   ========================================================================== */
body.truba-v31:not(.truba-hero-active) .site-main .entry-content { padding-top: 40px; padding-bottom: 72px; }

/* Page banner (interior pages) — normal top padding */
.truba-page-banner {
    position: relative;
    margin: 0;
    padding: 48px 0 28px;
    overflow: hidden;
    background: linear-gradient(180deg, #fafbfb 0%, #eef0f2 100%);
    border-bottom: 1px solid #e2e6ea;
}
.truba-page-banner-crumb {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--truba-steel);
    margin-bottom: 12px;
}
.truba-page-banner-title {
    font-size: clamp(30px, 4.4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--truba-ink);
}

/* ==========================================================================
   7. GENERIC ENTRY CONTENT (interior pages)
   ========================================================================== */
body.truba-v31 .entry-content { font-size: 16px; line-height: 1.7; color: var(--truba-ink-soft); }
body.truba-v31 .entry-content h2 { font-size: 28px; margin-top: 1.4em; }
body.truba-v31 .entry-content h3 { font-size: 21px; }
body.truba-v31 .entry-content h4 { font-size: 18px; }
body.truba-v31 .entry-content ul,
body.truba-v31 .entry-content ol { padding-left: 22px; margin: 0 0 1.2em; }
body.truba-v31 .entry-content li { margin-bottom: 0.5em; }
body.truba-v31 .entry-content li::marker { color: var(--truba-blue); }
body.truba-v31 .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4em;
    font-size: 14.5px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 30, 50, 0.08);
}
body.truba-v31 .entry-content th,
body.truba-v31 .entry-content td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eef1f3; }
body.truba-v31 .entry-content th { background: var(--truba-band); font-weight: 700; color: var(--truba-ink); }
body.truba-v31 .entry-content img { border-radius: 12px; }
body.truba-v31 .entry-content blockquote {
    border-left: 4px solid var(--truba-teal);
    background: var(--truba-band);
    padding: 18px 24px;
    border-radius: 0 12px 12px 0;
    margin: 0 0 1.4em;
    font-style: italic;
    color: var(--truba-ink);
}

/* Re-style the WP content icon-boxes to match the tile language */
body.truba-v31 .truba-migration-row { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 -10px 24px; }
body.truba-v31 .truba-migration-column { flex: 1 1 300px; min-width: 0; padding: 0 10px; }
body.truba-v31 .truba-migration-icon-box {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 14px 34px -14px rgba(15, 30, 50, 0.18);
    transition: transform 0.18s, box-shadow 0.18s;
    height: 100%;
}
body.truba-v31 .truba-migration-icon-box:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -16px rgba(15, 30, 50, 0.28); }
body.truba-v31 .truba-migration-icon-box h3 { font-size: 19px; margin-bottom: 10px; }
body.truba-v31 .truba-migration-icon-box p { font-size: 14.5px; color: var(--truba-ink-soft); margin: 0; }
body.truba-v31 .truba-migration-separator { height: 1px; background: #e2e6ea; border: none; margin: 32px 0; }

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
/* ≤1220px — hamburger appears; masthead items center vertically */
@media (max-width: 1220px) {
    :root { --truba-masthead-h: 76px; }
    .truba-masthead { align-items: center; padding-right: var(--truba-gutter); }
    .truba-brand { margin-top: 0; }
    .truba-tools { gap: 10px; }
    .truba-menu-btn { display: grid; }

    /* Dropdown menu (opened via the hamburger) */
    .truba-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: var(--truba-gutter);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: min(320px, calc(100% - 2 * var(--truba-gutter)));
        height: auto;
        padding: 8px;
        border-radius: 18px;
        background: rgba(246, 247, 248, 0.94);
        box-shadow: 0 18px 40px -14px rgba(15, 30, 50, 0.3);
        font-size: 17px;
        white-space: normal;
        z-index: 30;
    }
    .truba-masthead.is-open .truba-nav { display: flex; }
    .truba-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .truba-nav__list a { padding: 13px 16px; border-radius: 11px; }
    .truba-nav__list a:hover { background: #fff; }
    .truba-nav__list li.current-menu-item > a,
    .truba-nav__list li.current_page_item > a { background: var(--truba-band); }

    /* Stacked hero: text on a clean ground, the photo as a band underneath. */
    .truba-home-hero {
        --h1: clamp(27px, 8.4vw, 44px);
        --photo-band: clamp(170px, 40vw, 420px);
        padding-top: calc(var(--truba-masthead-h) + 52px);
        padding-bottom: calc(var(--truba-straddle) + var(--photo-band));
    }
    .truba-home-hero-photo {
        --fade: linear-gradient(180deg, transparent 0, #000 110px);
        inset: auto 0 0 0;
        height: calc(var(--truba-straddle) + var(--photo-band) + 70px);
        max-width: none;
    }
    .truba-home-hero-title { max-width: none; line-height: 1.18; }
    .truba-home-hero-cta { margin-top: 30px; }
}

@media (max-width: 900px) {
    .truba-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* ≤560px — compact */
@media (max-width: 560px) {
    :root { --truba-gutter: 16px; --truba-straddle: 56px; --truba-masthead-h: 62px; }
    .truba-topbar { font-size: 12.5px; }
    .truba-topbar-row { justify-content: center; column-gap: 16px; }
    .truba-contact { gap: 6px; }
    .truba-contact svg { width: 15px; height: 15px; }

    .truba-masthead { padding-top: 12px; gap: 8px; }
    .truba-gov { height: 48px; padding: 4px; }
    .truba-brand__home img { height: 48px; }
    .truba-brand { gap: 8px; }

    .truba-tools { gap: 8px; }
    .truba-lang { height: 32px; }
    .truba-lang a { font-size: 13.5px; padding: 0 7px; }
    .truba-lang .truba-lang-item.current-lang a { min-width: 32px; }
    .truba-menu-btn { width: 40px; height: 40px; }
    .truba-menu-btn svg { width: 20px; height: 20px; }

    .truba-home-hero { padding-top: calc(var(--truba-masthead-h) + 40px); }
    .truba-home-hero-badge { font-size: 11.5px; padding-inline: 13px; }
    .truba-home-hero-cta { gap: 12px; }
    .truba-btn { min-height: 48px; padding-inline: 16px; font-size: 16px; }
    .truba-tile { min-height: 128px; gap: 14px; padding: 14px 16px 16px; border-radius: 14px; }
    .truba-tile-icon { width: 42px; height: 42px; }
    .truba-tile-icon svg { width: 25px; height: 25px; }
    .truba-tile-title { font-size: 17px; }

    .status__line { font-size: 14px; }
}

/* ≤420px — hide the institutional logo card */
@media (max-width: 420px) {
    .truba-gov { display: none; }
}

/* ≤350px — very narrow */
@media (max-width: 350px) {
    .truba-masthead,
    .truba-tools { gap: 6px; }
    .truba-lang a { padding: 0 6px; }
    .truba-menu-btn { width: 36px; height: 36px; }
}

/* The page title lives in the banner (interior) / hero (home); hide the
   GeneratePress entry title to avoid a duplicate. */
body.truba-v31 .entry-header .entry-title { display: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    .truba-flow { display: none; }
}
