/* ===== FONTS & RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Deep, premium dark palette */
    --bg: #09090b;
    --bg-soft: #18181b;
    --card-bg: rgba(0, 0, 0, 0.03);
    --card-hover: rgba(255, 255, 255, 0.06);

    /* Text */
    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --muted: #94a3b8;

    /* Accent gradient system */
    --accent: #38bdf8;
    --accent-purple: #a78bfa;
    --accent-glow: rgba(56, 189, 248, 0.15);
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%);
    --accent-gradient-soft: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(167, 139, 250, 0.12) 100%);

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(56, 189, 248, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 10px;

    /* Layout — clamped gutters so the grid can actually grow on wide screens */
    --layout-max: 1440px;
    --layout-max-wide: 1680px;
    --gutter: clamp(1rem, 4vw, 3rem);   /* 16px phones → 48px cap on desktops */
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, .logo span {
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.02em;
}

body > main { flex: 1; }
a { text-decoration: none; color: inherit; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: var(--accent); color: #09090b; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ===== MAIN BACKDROP ===== */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative; /* Required for the background effects */
}

/* 1. The Infinite Grid Pattern */
body::before {
    content: "";
    position: fixed; /* Stays in place when you scroll */
    inset: 0;
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 70%);
    mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 70%);
    pointer-events: none;
    z-index: -2;
}

/* 2. The Vibrant Glow */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    /* Lowered the opacity to 0.18 and 0.10 for a much softer, premium glow */
    background: radial-gradient(circle at 50% 30%, rgba(0, 85, 255, 0.18) 0%, rgba(191, 0, 255, 0.10) 45%, transparent 80%);
    pointer-events: none;
    z-index: -1;
}

main > * { position: relative; z-index: 1; }

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--gutter);
    background: rgba(9, 9, 11, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
/* Reserve space while JS injects shared chrome — prevents layout shift */
.navbar:empty { min-height: 66px; }
footer[data-footer]:empty { min-height: 150px; }
.related:empty { display: none; }

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.logo span {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; list-style: none; gap: 2rem; }

.nav-links a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
    min-width: 44px;
    min-height: 44px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text);
    margin: 5px auto;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== HOMEPAGE HERO — CENTERED ===== */
.hero {
    position: relative;
    text-align: center;                /* centers inline text */
    padding: 7rem var(--gutter) 5rem;
    max-width: var(--layout-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;               /* centers flex children (h1, p, input) */
}

/* Ambient orb behind the centered title */
.hero::after {
    content: "";
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px; /* Make it a perfect square so the glow is a perfect circle */
    background: radial-gradient(circle at center, rgba(167, 139, 250, 0.12), transparent 65%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    margin: 0 auto 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    max-width: 900px;
}

.hero p {
    color: var(--muted);
    margin: 0 auto 2.5rem;
    font-size: 1.15rem;
    max-width: 640px;
}

/* Search bar with icon — centers automatically via parent flex */
.search-bar {
    width: 100%;
    max-width: 600px;
    padding: 1.1rem 1.5rem 1.1rem 3.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.03);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
    background-repeat: no-repeat;
    background-position: 1.15rem center;
    color: var(--text);
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-bar::placeholder { color: var(--muted); opacity: 0.85; }

.search-bar:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px var(--accent-glow), 0 0 24px var(--accent-glow);
}

/* ===== CONTAINER & GRID ===== */
.container {
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 3rem var(--gutter) 5rem;

    /* Smoothly fades the pointy card edges on the far left and right */
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 70%, transparent 100%);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.25rem;
}

/* ===== CARDS ===== */
a.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.6rem 2.5rem;
    display: flex;
    flex-direction: column;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

a.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

a.card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

a.card:hover::before { opacity: 1; }
a.card:hover::after { opacity: 1; }

a.card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: var(--border-hover);
    box-shadow:
    0 20px 40px -15px rgba(0, 0, 0, 0.8),
    0 0 30px var(--accent-glow);
}

a.card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.2s ease;
}

a.card:hover h3 { color: var(--accent); }

a.card p {
    color: var(--muted);
    font-size: 0.92rem;
    flex-grow: 1;
    line-height: 1.6;
}

a.card h3::after {
    content: " →";
    display: inline-block;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
}
a.card:hover h3::after {
    opacity: 1;
    transform: translateX(0);
}

/* Related-resource cards */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.related-grid .card { padding: 1.2rem 1.2rem 1.75rem; }
.related-grid .card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.related-grid .card p { font-size: 0.85rem; }

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 3rem 0;
    font-size: 1.1rem;
}

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

/* ===== AD SLOT — fixed height by breakpoint to prevent CLS ===== */
.ad-slot {
    max-width: var(--layout-max);
    margin: 1rem auto 3rem;
    padding: 0 var(--gutter);
    min-height: 280px;                  /* mobile leaderboard / rectangle */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
@media (min-width: 768px) {
    .ad-slot { min-height: 100px; }     /* desktop banner */
}

.ad-slot ins {
    width: 100%;
    max-width: 970px;
}

/* ===== DETAIL / INFO PAGE WRAPPERS ===== */
.detail-content,
.privacy-content,
.about-content,
.contact-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 5rem var(--gutter);
}

/* ===== DETAIL HEADER — CENTERED (used on every how-to page) ===== */
.detail-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.byline {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.detail-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.15;
    margin: 0 auto 1rem;
    color: #ffffff;
    max-width: 800px;
}

.detail-subtitle {
    color: var(--muted);
    margin: 0 auto 2rem;
    font-size: 1.15rem;
    max-width: 640px;
}

/* ===== OFFICIAL BUTTON ===== */
.btn-official {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-official:hover {
    background: var(--accent-gradient);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px rgba(56, 189, 248, 0.5);
}

/* ===== DETAIL SECTIONS — LEFT-ALIGNED (article readability) ===== */
.detail-section {
    text-align: left;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.25rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.detail-section::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: 0;
    width: 3px;
    height: calc(100% - 3rem);
    background: var(--accent-gradient);
    border-radius: 0 2px 2px 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.detail-section:hover::before { opacity: 1; }

.detail-section h2 {
    color: var(--text);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-section h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.01em;
}
.detail-section h3:first-of-type { margin-top: 0; }

.detail-section p,
.detail-section li {
    color: var(--text-soft);
    line-height: 1.75;
}

.detail-section p + p { margin-top: 0.9rem; }
.detail-section ul { padding-left: 1.25rem; }
.detail-section li { margin-bottom: 0.55rem; }
.detail-section strong { color: var(--text); }

.detail-section a:not(.btn-official),
.privacy-content a,
.about-content a,
.contact-content a {
    color: var(--accent);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.detail-section a:not(.btn-official):hover,
.privacy-content a:hover,
.about-content a:hover,
.contact-content a:hover {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
}

/* ===== CUSTOM NUMBERED STEPS ===== */
.steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.steps > li {
    counter-increment: step;
    position: relative;
    padding-left: 3.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: var(--text-soft);
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--accent-gradient-soft);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.steps > li strong { color: var(--text); }

.steps ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-top: 0.6rem;
}
.steps ul li {
    padding-left: 0.25rem;
    margin-bottom: 0.35rem;
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* ===== TIPS LIST ===== */
.tips { list-style: none; padding: 0; }

.tips li {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.25s ease;
    line-height: 1.7;
    color: var(--text-soft);
}

.tips li:hover {
    border-color: var(--border-hover);
    background-color: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.tips li strong { color: var(--text); }

/* ===== RELATED + BACK ===== */
.related {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.related h2 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.detail-back {
    text-align: center;
    margin-top: 3rem;
}

.detail-back a {
    color: var(--accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.detail-back a:hover { color: var(--accent-purple); }

/* ===== ABOUT / PRIVACY / TERMS / DMCA — CENTERED TITLE, LEFT BODY ===== */
.privacy-content h1,
.about-content h1,
.contact-content h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin: 0 auto 0.75rem;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last-updated {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.privacy-content section,
.about-content section {
    text-align: left;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease;
}

.privacy-content section:hover,
.about-content section:hover { border-color: var(--border-strong); }

.privacy-content h2,
.about-content h2 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.85rem;
}

.privacy-content p,
.about-content p,
.privacy-content li,
.about-content li {
    color: var(--text-soft);
    line-height: 1.75;
}

.privacy-content ul,
.about-content ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.privacy-content li,
.about-content li { margin-bottom: 0.5rem; }

/* ===== TEAM SECTION (about page) ===== */
.team-member {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}
.team-member strong { color: var(--text); display: block; margin-bottom: 0.25rem; }
.team-member .role {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ===== CONTACT PAGE ===== */
.contact-content .subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0 auto 2rem;
    max-width: 600px;
    text-align: center;
}

.contact-methods {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: left;
    padding: 1.75rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease;
}

.contact-item:hover { border-left-color: var(--accent-purple); }

.contact-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.contact-item a {
    color: var(--accent);
    font-weight: 500;
    word-break: break-word;
}

.contact-item a:hover { color: var(--accent-purple); }

.contact-item .muted {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.6rem;
}

.contact-content > p.muted {
    color: var(--muted);
    font-size: 0.925rem;
    line-height: 1.75;
    text-align: center;
}

/* ===== INLINE CODE ===== */
code {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.875em;
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.15);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 3rem var(--gutter) 2.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    background-color: var(--bg);
}

footer a {
    color: var(--muted);
    transition: color 0.2s;
    padding: 0 0.25rem;
}

footer a:hover { color: var(--accent); }
footer p { margin-bottom: 0.6rem; }
footer p:last-child { font-size: 0.82rem; opacity: 0.7; margin-top: 0.75rem; }

/* ===== ULTRA-WIDE DISPLAYS ===== */
@media (min-width: 1700px) {
    .container  { max-width: var(--layout-max-wide); }
    .hero       { max-width: var(--layout-max-wide); }
    .ad-slot    { max-width: var(--layout-max-wide); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(9, 9, 11, 0.97);
        backdrop-filter: blur(18px);
        flex-direction: column;
        padding: 1.5rem var(--gutter);
        gap: 1.25rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }
    .nav-links a::after { display: none; }

    .hero { padding: 4rem var(--gutter) 3rem; }
    .hero h1 { font-size: 2.1rem; }
    .hero::after { width: 300px; height: 300px; top: 4%; }

    .cards-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }

    .detail-content,
    .privacy-content,
    .about-content,
    .contact-content { padding: 3.5rem var(--gutter); }

    .detail-header h1 { font-size: 1.85rem; }
    .detail-section { padding: 1.5rem 1.4rem; }
    .detail-section::before { top: 1rem; height: calc(100% - 2rem); }

    .steps > li { padding-left: 2.9rem; }
    .steps > li::before { width: 2rem; height: 2rem; font-size: 0.8rem; }

    .privacy-content section,
    .about-content section { padding: 1.4rem 1.4rem; }

    .contact-item { padding: 1.4rem 1.4rem; }

    .byline { font-size: 0.78rem; padding: 0.35rem 0.75rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.85rem; }
    .hero p { font-size: 1rem; }
    .search-bar { font-size: 0.95rem; padding: 0.95rem 1.25rem 0.95rem 2.9rem; }
}

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