/* ============================================================
   ala84.com — design tokens + components per the design handoff
   (Monolith home layout). Bootstrap 5.3 does the heavy lifting;
   these styles cover the brand look Bootstrap can't express.
   ============================================================ */

/* ---------- Tokens ---------- */
:root,
[data-bs-theme="light"] {
    --bg: #F7F4EF;
    --surface: #FFFFFF;
    --surface2: #F0EAE1;
    --ink: #141D30;
    --muted: #5D6572;
    --line: #E2DBCF;
    --navy: #1A4584;
    --orange: #F85E16;
    --peach: #E9C8B4;
    --hero-muted: #C7D3E8;

    /* Map onto Bootstrap variables */
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-secondary-color: var(--muted);
    --bs-primary: var(--navy);
    --bs-link-color: var(--navy);
    --bs-link-hover-color: var(--orange);
    --bs-emphasis-color: var(--ink);
    --bs-tertiary-bg: var(--surface2);
    --bs-body-font-family: 'Archivo', system-ui, sans-serif;
}

[data-bs-theme="dark"] {
    --bg: #0D1524;
    --surface: #151F36;
    --surface2: #1C2843;
    --ink: #F1EAE0;
    --muted: #98A2B6;
    --line: #2A3654;
    --navy: #1A4584;
    --orange: #F85E16;
    --peach: #E9C8B4;
    --hero-muted: #C7D3E8;

    --bs-body-bg: var(--bg);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-secondary-color: var(--muted);
    --bs-link-color: var(--peach);
    --bs-link-hover-color: var(--orange);
    --bs-emphasis-color: var(--ink);
    --bs-tertiary-bg: var(--surface2);
}

body {
    font-family: 'Archivo', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--ink);
    transition: background-color .25s, color .25s;
}

::selection { background: var(--orange); color: #fff; }

.text-orange { color: var(--orange) !important; }

a { text-decoration: none; }

/* ---------- Logo mark (tintable via CSS mask) ---------- */
.logo-mark {
    display: block;
    -webkit-mask: url('../img/logo.svg') center/contain no-repeat;
    mask: url('../img/logo.svg') center/contain no-repeat;
}
.logo-nav    { width: 44px; height: 32px; background: var(--orange); }
.logo-footer { width: 52px; height: 38px; background: var(--muted); }
.logo-login  { width: 64px; height: 47px; background: var(--orange); margin-bottom: 16px; }
.logo-admin  { width: 34px; height: 25px; background: var(--orange); }

/* ---------- Site shell ---------- */
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Navbar ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1040;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    transition: background-color .25s, border-color .25s;
}
.nav-row {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); }
.brand-text { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-tld { color: var(--muted); font-weight: 600; }

.nav-desk { display: flex; align-items: center; gap: 22px; }
.nav-link-ala {
    background: none; border: none; cursor: pointer;
    padding: 20px 2px 18px; font-size: 15px; font-weight: 700;
    letter-spacing: -.01em; color: var(--muted);
}
.nav-link-ala:hover { color: var(--ink); }
.nav-link-ala.active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); }
.nav-link-ala.dropdown-toggle::after { vertical-align: .13em; }
.nav-divider { width: 1px; height: 22px; background: var(--line); }

.theme-toggle {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface2); color: var(--ink);
    cursor: pointer; display: grid; place-items: center; font-size: 15px;
}
/* icon swaps with theme; default (no data-bs-theme set yet) shows moon / hides sun */
.theme-icon-dark { display: none; }
[data-bs-theme="dark"] .theme-icon-dark { display: inline; }
[data-bs-theme="dark"] .theme-icon-light { display: none; }

.burger {
    display: none; width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--surface2); color: var(--ink);
    cursor: pointer; place-items: center; font-size: 18px;
}
.burger .burger-close { display: none; }
.burger.open .burger-open { display: none; }
.burger.open .burger-close { display: block; }

.mobile-menu {
    display: none; flex-direction: column;
    border-top: 1px solid var(--line); background: var(--surface); padding: 6px 0 10px;
}
.mobile-link {
    padding: 13px 24px; font-size: 16px; font-weight: 700;
    letter-spacing: -.01em; color: var(--muted); text-align: left;
}
.mobile-link.active { color: var(--ink); box-shadow: inset 3px 0 0 var(--orange); }

.dropdown-menu {
    --bs-dropdown-bg: var(--surface);
    --bs-dropdown-color: var(--ink);
    --bs-dropdown-link-color: var(--ink);
    --bs-dropdown-link-hover-bg: var(--surface2);
    --bs-dropdown-link-hover-color: var(--ink);
    --bs-dropdown-border-color: var(--line);
    font-weight: 600; font-size: 14.5px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 40px 24px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 24px; flex-wrap: wrap;
}
.footer-brand { font-weight: 800; font-size: 15px; }
.footer-copy { font-size: 12.5px; color: var(--muted); }
.footer-links {
    display: flex; gap: 20px; font-size: 13.5px; font-weight: 600;
    color: var(--muted); align-items: center; flex-wrap: wrap;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.privacy-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px;
}
.privacy-pill .bi { color: var(--orange); }
.footer-lock { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn-orange {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--orange); border: none; color: #fff;
    font-weight: 700; border-radius: 8px; padding: 10px 18px;
}
.btn-orange:hover, .btn-orange:focus { background: #e05513; color: #fff; }
.btn-navy {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--navy); border: none; color: #fff;
    font-weight: 700; border-radius: 8px; padding: 11px 18px; font-size: 14.5px;
}
.btn-navy:hover, .btn-navy:focus { background: #163a6f; color: #fff; }
.btn-ghost {
    background: transparent; border: 1.5px solid rgba(255,255,255,.45);
    color: #fff; font-weight: 700; border-radius: 8px; padding: 13px 22px;
}
.btn-ghost:hover, .btn-ghost:focus { border-color: #fff; color: #fff; }
.btn-hero { padding: 13px 22px; font-size: 16px; }

/* ---------- Hero (Monolith) ---------- */
.hero { background: var(--navy); color: #fff; padding: 88px 6vw 80px; }
.hero-grid {
    max-width: 1200px; margin: 0 auto; display: grid;
    grid-template-columns: minmax(300px, 1.15fr) minmax(240px, .85fr);
    gap: 48px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.eyebrow {
    font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
}
.eyebrow-peach { color: var(--peach); }
.hero-title {
    margin: 0; font-size: clamp(46px, 6.5vw, 92px);
    line-height: .97; font-weight: 900; letter-spacing: -.03em;
}
.hero-title:focus { outline: none; }
.hero-lead {
    margin: 0; font-size: 19px; line-height: 1.6;
    color: var(--hero-muted); max-width: 50ch;
}
.hero-logo {
    justify-self: center; width: min(380px, 100%); aspect-ratio: 423/308;
    background: var(--peach);
    -webkit-mask: url('../img/logo.svg') center/contain no-repeat;
    mask: url('../img/logo.svg') center/contain no-repeat;
}

/* ---------- Home sections ---------- */
.section-writing { max-width: 1200px; margin: 0 auto; padding: 64px 24px 24px; }
.section-reading { max-width: 1200px; margin: 0 auto; padding: 32px 24px 80px; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; margin-bottom: 20px;
}
.section-title { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.section-more { color: var(--orange); font-weight: 700; font-size: 15px; }
.section-more:hover { color: var(--orange); text-decoration: underline; }

.post-row {
    display: grid; grid-template-columns: 120px 1fr auto; gap: 20px;
    align-items: baseline; padding: 20px 4px;
    border-top: 1px solid var(--line); color: var(--ink);
}
.post-row:hover .post-row-title { color: var(--orange); }
.post-row-date { font-size: 13px; font-weight: 600; color: var(--muted); }
.post-row-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; transition: color .15s; }
.post-row-excerpt { font-size: 14px; color: var(--muted); line-height: 1.5; }

.home-books-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px;
}
.home-book { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }

/* ---------- Book covers (typographic placeholders) ---------- */
.cover {
    display: flex; flex-direction: column; justify-content: space-between;
    aspect-ratio: 4 / 3; width: 100%;
    box-shadow: inset 6px 0 0 rgba(0, 0, 0, .18);
}
.cover-md { border-radius: 6px; padding: 14px 12px; }
.cover-sm { border-radius: 6px; padding: 10px 9px; width: 74px; flex: none; }
.cover-lg { border-radius: 0; padding: 12px 14px; }
.cover-img { object-fit: contain; background: var(--surface2); box-shadow: none; }
.cover-title { font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.cover-lg .cover-title { font-size: 19px; }
.cover-sm .cover-title { font-size: 11px; }
.cover-author { font-size: 11px; font-weight: 600; opacity: .75; }
.cover-lg .cover-author { font-size: 12.5px; opacity: .78; }

/* ---------- Stars ---------- */
.stars { font-size: 13px; color: var(--orange); letter-spacing: 2px; }
.stars-lg { font-size: 14px; }
.stars-empty { opacity: .3; color: var(--muted); }

/* ---------- Page scaffolding ---------- */
.page-wrap { margin: 0 auto; padding: 56px 24px 80px; }
.page-blog { max-width: 900px; }
.page-books { max-width: 1100px; padding-top: 32px; }
.page-resume { max-width: 860px; }
.page-narrow { max-width: 760px; }
.page-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.page-title {
    margin: 0; font-size: clamp(38px, 5vw, 60px); font-weight: 900; letter-spacing: -.03em;
}
.page-subtitle { margin: 0; font-size: 17px; color: var(--muted); line-height: 1.6; }
.lead-muted { font-size: 17px; color: var(--muted); line-height: 1.6; }

/* ---------- Chips (filters) ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip-row-rating { margin-bottom: 32px; align-items: center; }
.rating-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.chip {
    padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.chip:hover { border-color: var(--navy); }
.chip.active { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---------- Blog cards ---------- */
.post-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 26px 28px; display: flex; flex-direction: column; gap: 10px;
    box-shadow: 0 1px 2px rgba(20, 29, 48, .05);
}
.post-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; font-weight: 600; color: var(--muted);
}
.post-card-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--orange); }
.post-card-excerpt { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.tag-pill {
    padding: 4px 10px; border-radius: 999px; background: var(--surface2);
    border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted);
}

/* ---------- Books gallery ---------- */
.books-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px; align-items: start;
}
.book-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; box-shadow: 0 1px 2px rgba(20, 29, 48, .05);
}
.book-card-btn {
    display: flex; flex-direction: column; width: 100%;
    background: none; border: none; padding: 0; cursor: pointer;
    text-align: left; color: var(--ink);
}
.book-card-info { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; width: 100%; }
.book-chevron { color: var(--muted); font-size: 13px; }
.book-card-meta {
    display: flex; gap: 8px; align-items: center;
    font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.book-expand {
    border-top: 1px solid var(--line); padding: 16px 18px;
    display: flex; flex-direction: column; gap: 10px; background: var(--surface2);
}
.book-summary { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.takeaways-label {
    font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--orange);
}
.takeaways-label-lg { font-size: 13px; letter-spacing: .16em; }
.takeaway { display: flex; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.takeaway .bi { color: var(--orange); }
.takeaway-lg { font-size: 15px; }

/* ---------- Book detail ---------- */
.book-detail { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: stretch; }
.book-detail-cover { display: flex; }
.book-detail-cover .cover { aspect-ratio: auto; height: 100%; }
.book-detail-title { font-size: clamp(30px, 4vw, 44px); }
@media (max-width: 560px) { .book-detail { grid-template-columns: 1fr; } .book-detail-cover { max-width: 180px; } }

/* ---------- Resume ---------- */
.resume-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 20px; flex-wrap: wrap; margin-bottom: 36px;
}
.resume-subtitle { margin: 0; font-size: 17px; color: var(--muted); font-weight: 600; }
.resume-section { margin-bottom: 36px; }
.section-label {
    margin: 0 0 12px; font-size: 13px; font-weight: 800;
    letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
}
.resume-summary { margin: 0; font-size: 16px; line-height: 1.7; }
.xp-row {
    display: grid; grid-template-columns: 150px 1fr; gap: 20px;
    padding: 20px 0; border-bottom: 1px solid var(--line);
}
.xp-row-borderless { border-bottom: none; }
.xp-dates { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.xp-role { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.xp-role-sm { font-size: 17px; }
.xp-company { font-size: 14px; font-weight: 700; color: var(--navy); }
[data-bs-theme="dark"] .xp-company { color: var(--hero-muted); }
.xp-bullet { display: flex; gap: 9px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.xp-bullet > span:first-child { color: var(--orange); font-weight: 800; }
.skills-row { gap: 9px; }
.skill-pill {
    padding: 7px 14px; border-radius: 999px; background: var(--surface);
    border: 1px solid var(--line); font-size: 13.5px; font-weight: 700;
}
.cert-row { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.cert-row .bi { color: var(--navy); }
[data-bs-theme="dark"] .cert-row .bi { color: var(--hero-muted); }
.cert-name { font-weight: 700; }
.cert-year { color: var(--muted); font-size: 13.5px; }

/* ---------- Rich content (post/page bodies) ---------- */
.rich-content { font-size: 16.5px; line-height: 1.75; }
.rich-content h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 32px 0 12px; }
.rich-content h3 { font-size: 22px; font-weight: 800; margin: 24px 0 10px; }
.rich-content p { margin-bottom: 16px; }
.rich-content blockquote {
    border-left: 3px solid var(--orange); padding-left: 16px;
    color: var(--muted); margin: 20px 0;
}
.rich-content code {
    background: var(--surface2); border: 1px solid var(--line);
    border-radius: 4px; padding: 1px 6px; color: var(--ink); font-size: .9em;
}
.rich-content pre {
    background: var(--surface2); border: 1px solid var(--line);
    border-radius: 8px; padding: 14px 16px; overflow-x: auto;
}
.rich-content img { max-width: 100%; border-radius: 8px; }

/* ---------- Login ---------- */
.login-wrap { display: flex; justify-content: center; }
.login-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 1px 2px rgba(20, 29, 48, .05);
    padding: 40px; width: 100%; max-width: 420px;
}
.login-title { font-size: 34px; font-weight: 900; letter-spacing: -.03em; margin: 0 0 6px; }

/* ---------- ToolBox ---------- */
.tool-search { position: relative; margin-bottom: 36px; max-width: 520px; }
.tool-search .bi-search {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--muted); pointer-events: none;
}
.tool-search-input {
    padding: 11px 16px 11px 40px; border-radius: 10px;
    background: var(--surface); border-color: var(--line);
    color: var(--ink); font-weight: 600;
}
.tool-search-input:focus {
    background: var(--surface); color: var(--ink);
    border-color: var(--navy); box-shadow: 0 0 0 .2rem rgba(26, 69, 132, .15);
}
.tool-folder { margin-bottom: 40px; }
.tool-folder-head {
    display: flex; align-items: center; gap: 10px; padding-bottom: 12px; color: var(--ink);
}
.tool-folder-head .bi-folder2 { color: var(--orange); font-size: 19px; }
.tool-folder-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.tool-folder-count {
    font-size: 12.5px; font-weight: 700; color: var(--muted);
    background: var(--surface2); border: 1px solid var(--line);
    border-radius: 999px; padding: 2px 9px;
}
.tools-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px;
}
.tool-card {
    display: flex; flex-direction: column; gap: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 20px 22px; color: var(--ink);
    box-shadow: 0 1px 2px rgba(20, 29, 48, .05);
    transition: border-color .15s;
}
.tool-card:hover { border-color: var(--orange); color: var(--ink); }
.tool-card-name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.tool-card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.tool-card-cat { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: auto; }
.tool-private-pill .bi { font-size: 10px; }
.tool-title { font-size: clamp(30px, 4vw, 44px); }
.tool-host {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 28px; box-shadow: 0 1px 2px rgba(20, 29, 48, .05);
}
.guid-output {
    background: var(--surface2); border: 1px solid var(--line); border-radius: 8px;
    padding: 14px 16px; font-size: 13.5px; color: var(--ink);
}

/* ---------- Stat cards (dashboard + tools) ---------- */
.stat-card {
    display: flex; flex-direction: column; gap: 4px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 18px 20px; box-shadow: 0 1px 2px rgba(20, 29, 48, .05);
}
.stat-label {
    font-size: 12px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted);
}
.stat-value { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px; flex: none; background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column; padding: 20px 14px;
    position: sticky; top: 0; height: 100vh;
}
.admin-brand {
    display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px;
    font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -.01em;
}
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    font-size: 14px; font-weight: 700; color: var(--muted);
}
.admin-link:hover { color: var(--ink); background: var(--surface2); }
.admin-link.active { color: var(--ink); background: var(--surface2); box-shadow: inset 3px 0 0 var(--orange); }
.admin-sidebar-footer { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 24px; min-height: 56px;
}
.admin-user { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-left: auto; }
.admin-content { padding: 28px 28px 60px; }
.admin-title { font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 20px; }
.admin-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 22px 24px; box-shadow: 0 1px 2px rgba(20, 29, 48, .05);
}
.admin-card .table { --bs-table-bg: transparent; }
.message-row { cursor: pointer; }
.message-row:hover { background: var(--surface2); }
.admin-card-title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.admin-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.admin-list li:last-child { border-bottom: none; }
.admin-list-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.resume-edit-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.resume-edit-row:last-child { border-bottom: none; }
.richtext-wrap { background: var(--surface); border-radius: 8px; }
.richtext-wrap .ql-toolbar { border-color: var(--line); border-radius: 8px 8px 0 0; }
.richtext-wrap .ql-container { border-color: var(--line); border-radius: 0 0 8px 8px; min-height: 220px; font-size: 15px; font-family: 'Archivo', system-ui, sans-serif; }

/* ---------- Forms ---------- */
.form-control, .form-select {
    background: var(--surface); border-color: var(--line); color: var(--ink);
}
.form-control:focus, .form-select:focus {
    background: var(--surface); color: var(--ink);
    border-color: var(--navy); box-shadow: 0 0 0 .2rem rgba(26, 69, 132, .15);
}
.validation-message { color: #c8371f; font-size: 13px; margin-top: 4px; display: block; }

/* ---------- Responsive (single 760px breakpoint per handoff) ---------- */
@media (max-width: 760px) {
    .nav-desk { display: none; }
    .burger { display: grid; }
    .mobile-menu.open { display: flex; }

    .hero { padding: 64px 24px 56px; }
    .hero-grid { grid-template-columns: 1fr; } /* text first, logo below */

    .post-row { grid-template-columns: 1fr; gap: 6px; }
    .xp-row { grid-template-columns: 1fr; gap: 8px; }
    .resume-head { flex-direction: column; }
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed; left: -260px; top: 0; z-index: 1050; transition: left .2s;
    }
    .admin-sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.3); }
}

/* ---------- Contact form ---------- */
.contact-form { max-width: 560px; }
