/* Site theme "Talenta": a confident, modern job-board look - a teal-green
   accent on white, a deep-blue secondary tone for everything employer-side,
   amber for "shortlisted"/"featured" - generous rounded shapes, pill filters -
   and the same in dark for devices and accounts that ask for it. */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Every colour is a variable, so that the dark scheme only replaces values.
   Light is the default. Dark applies when the device asks for it and the
   account has not chosen "light" (data-theme on <html>, see color_scheme()
   in the layout), or when the account has chosen "dark". Both dark blocks
   carry the same values.
   Administration → Design overrides --accent, --ground, --text, --font and
   --radius after this sheet loads (its own stylesheet always wins there, by
   design) - everything else here (--accent-soft, --tone-*, --blue, --amber, …)
   is this theme's own and stays as shipped. To match the look this file
   describes on a fresh install, set Design's accent to #0e9f6e, ground
   #f6f9f8, text #1c2b26, radius 14. */
:root {
    color-scheme: light;
    --accent: #0e9f6e;
    --accent-dark: #0b7d57;
    --danger: #c0352b;
    --danger-dark: #9c2a22;
    --accent-text: #0e9f6e;
    --accent-strong: #0b7d57;
    --accent-soft: #e3f8ef;
    --accent-line: #b9ecd6;
    --blue: #2454c7;
    --blue-dark: #1c3fa0;
    --blue-soft: #e8eefc;
    --blue-line: #c7d6f7;
    --amber: #b86a08;
    --amber-soft: #fbeedb;
    --amber-line: #f0d2a3;
    --ink: #0e1f1a;
    --text: #1c2b26;
    --text-soft: #4b5e57;
    --muted: #6b7d76;
    --faint: #9fd9c0;
    --line: #dde7e2;
    --field-line: #93a39c;
    --ground: #f6f9f8;
    --surface: #ffffff;
    --soft: #eef4f1;
    --header: rgb(255 255 255 / .9);
    --inverse: #0e1f1a;
    --success: #0b7d57;
    --success-soft: #e3f8ef;
    --success-line: #b9ecd6;
    --error: #c0352b;
    --error-soft: #fcebe9;
    --error-line: #f3c2bc;
    --rating: #b45309;
    --tone-1: #0b7d57;
    --tone-1-soft: #e3f8ef;
    --tone-2: #2454c7;
    --tone-2-soft: #e8eefc;
    --tone-3: #b86a08;
    --tone-3-soft: #fbeedb;
    --tone-4: #7c3aed;
    --tone-4-soft: #ede9fe;
    --radius: 1rem;
    --radius-small: .6rem;
    --shadow: 0 1px 2px rgb(14 31 26 / .06);
    --shadow-large: 0 24px 48px -16px rgb(14 31 26 / .2);
    --shadow-hover: 0 14px 26px -10px rgb(14 31 26 / .16);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --accent-dark: #34d399;
        --accent-text: #6ee7b7;
        --accent-strong: #a7f3d0;
        --accent-soft: #0b2a20;
        --accent-line: #0f6b49;
        --blue: #7fa6f7;
        --blue-dark: #a7c2fb;
        --blue-soft: #10204a;
        --blue-line: #2b4a9e;
        --amber: #f0b254;
        --amber-soft: #3a2608;
        --amber-line: #8a5a0c;
        --ink: #eef5f2;
        --text: #dce8e3;
        --text-soft: #b7c9c2;
        --muted: #8aa199;
        --faint: #0f6b49;
        --line: #233830;
        --field-line: #4f6a61;
        --ground: #0a1512;
        --surface: #0f1e19;
        --soft: #16281f;
        --header: rgb(10 21 18 / .88);
        --inverse: #050d0a;
        --success: #6ee7b7;
        --success-soft: #0b2a20;
        --success-line: #0f6b49;
        --error: #f5a9a1;
        --error-soft: #341210;
        --error-line: #7a2820;
        --rating: #fbbf24;
        --tone-1: #6ee7b7;
        --tone-1-soft: #0b2a20;
        --tone-2: #93b4f8;
        --tone-2-soft: #10204a;
        --tone-3: #f0b254;
        --tone-3-soft: #3a2608;
        --tone-4: #c4b5fd;
        --tone-4-soft: #2e1065;
        --shadow: 0 1px 2px rgb(0 0 0 / .4);
        --shadow-large: 0 24px 48px -16px rgb(0 0 0 / .6);
        --shadow-hover: 0 14px 26px -10px rgb(0 0 0 / .55);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --accent-dark: #34d399;
    --accent-text: #6ee7b7;
    --accent-strong: #a7f3d0;
    --accent-soft: #0b2a20;
    --accent-line: #0f6b49;
    --blue: #7fa6f7;
    --blue-dark: #a7c2fb;
    --blue-soft: #10204a;
    --blue-line: #2b4a9e;
    --amber: #f0b254;
    --amber-soft: #3a2608;
    --amber-line: #8a5a0c;
    --ink: #eef5f2;
    --text: #dce8e3;
    --text-soft: #b7c9c2;
    --muted: #8aa199;
    --faint: #0f6b49;
    --line: #233830;
    --field-line: #4f6a61;
    --ground: #0a1512;
    --surface: #0f1e19;
    --soft: #16281f;
    --header: rgb(10 21 18 / .88);
    --inverse: #050d0a;
    --success: #6ee7b7;
    --success-soft: #0b2a20;
    --success-line: #0f6b49;
    --error: #f5a9a1;
    --error-soft: #341210;
    --error-line: #7a2820;
    --rating: #fbbf24;
    --tone-1: #6ee7b7;
    --tone-1-soft: #0b2a20;
    --tone-2: #93b4f8;
    --tone-2-soft: #10204a;
    --tone-3: #f0b254;
    --tone-3-soft: #3a2608;
    --tone-4: #c4b5fd;
    --tone-4-soft: #2e1065;
    --shadow: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-large: 0 24px 48px -16px rgb(0 0 0 / .6);
    --shadow-hover: 0 14px 26px -10px rgb(0 0 0 / .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--ground);
    color: var(--text);
    font: 1rem/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 .75rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
small, .muted { color: var(--muted); }
small { font-size: .82rem; }

a { color: var(--accent-text); text-underline-offset: .15em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: .25rem; }

.icon { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }

main { flex: 1 0 auto; }
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
.account-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.account-nav a { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.account-nav a:hover { border-color: var(--accent-text); color: var(--accent-text); }
.container.narrow { max-width: 50rem; }
.page { padding-top: 2.5rem; padding-bottom: 4rem; }
.flashes { padding-top: 1.25rem; }

.skip-link { position: absolute; inset-inline-start: -999px; top: .5rem; padding: .5rem .9rem; background: var(--ink); color: var(--ground); border-radius: .5rem; z-index: 100; }
.skip-link:focus { inset-inline-start: .5rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- Header --------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--header); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; min-height: 5rem; padding-top: .6rem; padding-bottom: .6rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--accent); color: #fff; box-shadow: 0 6px 12px -4px rgb(14 159 110 / .45); }
.brand-mark .icon { width: 1.4rem; height: 1.4rem; }
.brand-mark.small { width: 1.5rem; height: 1.5rem; border-radius: .4rem; box-shadow: none; }
.brand-mark.small .icon { width: 1rem; height: 1rem; }
.brand-logo { display: block; height: 2.5rem; width: auto; max-width: 14rem; object-fit: contain; }
.brand-logo.small { height: 1.5rem; max-width: 9rem; }
.brand-logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand-logo-light { display: none; }
    :root:not([data-theme="light"]) .brand-logo-dark { display: block; }
}
:root[data-theme="dark"] .brand-logo-light { display: none; }
:root[data-theme="dark"] .brand-logo-dark { display: block; }

.main-nav, .header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.75rem; font-size: .9rem; font-weight: 600; }
.header-actions { gap: .4rem 1.1rem; }
.main-nav a, .header-actions a:not(.button), .header-actions .link-button { color: var(--text-soft); text-decoration: none; }
.main-nav a:hover, .header-actions a:not(.button):hover, .header-actions .link-button:hover { color: var(--accent-text); }

/* --- Buttons and forms ------------------------------------------------------ */

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem 1.1rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-small);
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgb(14 159 110 / .35);
    transition: background-color .15s, box-shadow .15s;
}
button:hover, .button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button.large { padding: 1rem 2rem; border-radius: .75rem; font-weight: 700; }
.button.ghost { background: var(--ink); border-color: var(--ink); color: var(--ground); box-shadow: none; }
.button.ghost:hover { background: var(--text-soft); border-color: var(--text-soft); }
.button.secondary { background: var(--blue); border-color: var(--blue); box-shadow: 0 1px 2px rgb(36 84 199 / .35); }
.button.secondary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
button.danger { background: var(--danger); border-color: var(--danger); box-shadow: none; }
button.danger:hover { background: var(--danger-dark); border-color: var(--danger-dark); }
.link-button, .link-button:hover { padding: 0; border: 0; background: none; box-shadow: none; color: var(--accent-text); font-weight: 600; text-decoration: underline; }
.btn-sm, button.btn-sm, .button.btn-sm { padding: .35rem .7rem; font-size: .8rem; border-radius: 999px; }

.inline-form { display: inline; margin: 0; }

input, select, textarea {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--field-line);
    border-radius: var(--radius-small);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: .95rem;
}
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; accent-color: var(--accent-text); }
input[type="file"] { padding: .5rem; background: var(--soft); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-line); border-color: var(--accent-text); }
::placeholder { color: var(--muted); opacity: 1; }
:disabled { opacity: .6; cursor: not-allowed; }
label { font-size: .9rem; font-weight: 600; color: var(--text); }

.stack-form { display: grid; gap: .45rem; max-width: 26rem; }
.stack-form.wide { max-width: 46rem; }
.stack-form label { margin-top: .6rem; }
.stack-form button { justify-self: start; margin-top: .9rem; }
.stack-form small { margin-top: -.1rem; }

fieldset { margin: 1.5rem 0 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: .45rem; }
legend { padding: 0 .5rem; font-weight: 700; color: var(--ink); }

label.checkbox { display: flex; gap: .6rem; align-items: flex-start; margin-top: .5rem; font-weight: 500; }
label.checkbox input { margin-top: .3rem; }

.filter-row, .button-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.25rem 0; }
.filter-row input[type="search"] { flex: 1 1 14rem; width: auto; }
.filter-row select { width: auto; }
.button-row > a { font-weight: 600; }

/* --- Messages, tables, small parts ----------------------------------------------- */

.flash { margin: 0 0 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-inline-start-width: .3rem; border-radius: var(--radius-small); background: var(--surface); }
.flash-success { border-color: var(--success-line); background: var(--success-soft); color: var(--success); }
.flash-error { border-color: var(--error-line); background: var(--error-soft); color: var(--error); }

table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; font-size: .92rem; }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
thead th { background: var(--soft); color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

section { margin-top: 2.75rem; }
article { overflow-wrap: anywhere; }
address { font-style: normal; }
.price { font-weight: 800; color: var(--ink); }

.pager { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; font-weight: 600; }

.category-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.category-nav a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-soft); font-size: .85rem; font-weight: 600; text-decoration: none; }
.category-nav a.child { font-weight: 500; }
.category-nav a:hover, .category-nav a[aria-current] { border-color: var(--accent-text); background: var(--accent-soft); color: var(--accent-strong); }

/* --- Cards -------------------------------------------------------------------------- */

.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.card-list > li { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s, transform .15s; }
.card-list > li:hover { border-color: var(--accent-line); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-list p { margin: 0; color: var(--text-soft); font-size: .92rem; }
.card-list img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-small); }
.card-title { color: var(--ink); font-weight: 700; text-decoration: none; }
.card-title:hover { color: var(--accent-text); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--soft); font-size: .82rem; }
.card-foot a { color: var(--muted); font-weight: 600; text-decoration: none; }
.card-foot a:hover { color: var(--accent-text); }
.card-foot strong { color: var(--ink); font-weight: 800; font-size: .95rem; }

/* A posting's own teaser facts (employment type, on-site/remote/hybrid, city -
   PostingType::cardItems(), CardOfferType) - a row of small pills, not just text. */
p.card-items { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .4rem; }
.card-items .badge { margin: 0; padding: .25rem .6rem; font-size: .72rem; }

.offer-cards > li { padding: 0; overflow: hidden; }
.offer-cards .card-image { display: block; }
.offer-cards .card-image img { display: block; border-radius: 0; }
.card-image-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--accent-soft), var(--blue-soft)); color: var(--faint); }
.card-image-empty .icon { width: 3rem; height: 3rem; }
.offer-cards { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.provider-cards { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.offer-cards .card-body { display: grid; gap: .5rem; padding: 1.1rem 1.25rem 0; }
.offer-cards .card-foot { margin: auto 1.25rem 0; padding-bottom: 1.1rem; }

.provider-top { display: flex; align-items: center; gap: .85rem; }
.provider-top small { display: block; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--line); color: var(--text-soft); font-weight: 700; font-size: 1.1rem; }
.more { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; font-weight: 700; text-decoration: none; }

.rating { color: var(--rating); white-space: nowrap; }
.rating small { color: var(--muted); }

.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); margin: 1.25rem 0; }
.gallery a:first-child { grid-column: 1 / -1; }
.gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

.review { padding: 1rem 0; border-top: 1px solid var(--line); }
.review p { margin: .3rem 0; }
.reply { margin-inline-start: 1.5rem; padding: .7rem .9rem; border-inline-start: .2rem solid var(--accent); border-radius: 0 var(--radius-small) var(--radius-small) 0; background: var(--accent-soft); }

.history { padding-inline-start: 1.2rem; display: grid; gap: .7rem; }
.history p, .message { margin: .3rem 0; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
.message.own { border-color: var(--accent-line); background: var(--accent-soft); }
.files { list-style: none; padding: 0; margin: .3rem 0; font-size: .9rem; }
.files li::before { content: "📎 "; }
a.button { margin-top: .4rem; }

/* --- Status badges, incl. an application's own status (jobs.status.*) --------- */

.badge { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.5rem; padding: .4rem .8rem; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: .78rem; font-weight: 600; }
.badge-success { border-color: var(--success-line); background: var(--success-soft); color: var(--success); }
.badge-earned { border-color: var(--amber-line); background: var(--amber-soft); color: var(--amber); }
/* Inline, inside a table cell or next to a line of text - the eyebrow-style
   badge above is for a standalone lead-in instead, so it keeps its own margin. */
td .badge, li .badge, p .badge { margin: 0; }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent-text); }

/* --- Home page ------------------------------------------------------------------------ */

.hero { padding: 4.5rem 0 5rem; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.75rem); line-height: 1.15; }
.accent { background: linear-gradient(90deg, var(--accent-text), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 1.5rem auto 0; max-width: 42rem; color: var(--text-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); }

.search-box { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 42rem; margin: 2.5rem auto 0; padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-large); }
.search-field { position: relative; display: flex; align-items: center; flex: 1 1 14rem; padding-inline-start: 2.4rem; }
.search-field .icon { position: absolute; inset-inline-start: .8rem; color: var(--muted); }
.search-box input, .search-box select { border: 0; background: transparent; font-size: .9rem; }
.search-box select { width: auto; flex: 0 1 auto; color: var(--text-soft); font-weight: 500; border-inline-start: 1px solid var(--line); border-radius: 0; }
.search-box input:focus, .search-box select:focus { outline: 0; }
.search-box:focus-within { border-color: var(--accent-text); }
.search-box button { padding: .85rem 1.5rem; border-radius: .75rem; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .8rem; font-weight: 500; }
.trust .icon { color: var(--accent); }

/* The hero's own live counts (open postings, candidates, employers) - a thin
   strip under the search box, the site's own numbers, nothing to configure. */
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.hero-stats li { text-align: center; }
.hero-stats strong { display: block; font-size: 1.75rem; font-weight: 800; color: var(--ink); }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.band { margin: 0; padding: 4.5rem 0; }
.band-white { background: var(--surface); border-block: 1px solid var(--line); }

.section-foot { margin: 2rem 0 0; text-align: center; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.75rem; }
.section-head.centered { display: block; max-width: 40rem; margin-inline: auto; text-align: center; }
.section-head h2 { font-size: 1.9rem; margin: .4rem 0 0; }
.section-head .muted { margin: .75rem 0 0; font-size: .9rem; }
.eyebrow { margin: 0; color: var(--accent-text); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.category-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.category-grid a { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s, background-color .15s; }
.category-grid a:hover { border-color: var(--accent-line); background: var(--surface); box-shadow: var(--shadow-hover); }
.category-grid strong { color: var(--ink); font-size: 1.1rem; }
.category-grid a:hover strong { color: var(--accent-text); }
.category-grid .muted { font-size: .88rem; }
.category-grid small { margin-top: auto; padding-top: .75rem; font-weight: 600; }
.category-mark { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-bottom: .75rem; border-radius: .75rem; font-weight: 800; font-size: 1.2rem; }
.tone-1 { background: var(--tone-1-soft); color: var(--tone-1); }
.tone-2 { background: var(--tone-2-soft); color: var(--tone-2); }
.tone-3 { background: var(--tone-3-soft); color: var(--tone-3); }
.tone-4 { background: var(--tone-4-soft); color: var(--tone-4); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); text-align: center; }
.steps p { max-width: 20rem; margin-inline: auto; color: var(--muted); font-size: .9rem; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; margin-bottom: 1.5rem; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 1.25rem; box-shadow: var(--shadow); }

/* A "how it works"-style text block: its body is sanitised HTML with no
   classes of its own (HtmlSanitizer), so numbered steps are drawn with CSS
   counters on a plain <ol> rather than needing a markup convention the
   block editor cannot produce. Scoped to a text block's own body, not
   every <ol> on the site. */
[data-field="body"] ol { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); text-align: center; }
[data-field="body"] ol > li { counter-increment: step; }
[data-field="body"] ol > li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; margin-bottom: 1.5rem; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 1.25rem; box-shadow: var(--shadow); }
[data-field="body"] ol h3 { font-size: 1.1rem; }
[data-field="body"] ol p { max-width: 20rem; margin-inline: auto; color: var(--muted); font-size: .9rem; }

/* "Popular searches"-style quick filters (a links block whose heading reads
   that way) - a row of pills, centred, not a plain bulleted list. */
.chips-heading { text-align: center; }
.chips { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.chips a { display: inline-flex; align-items: center; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-soft); font-size: .85rem; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s, background-color .15s; }
.chips a:hover { border-color: var(--accent-text); background: var(--accent-soft); color: var(--accent-strong); }

.cta { margin: 0; padding: 4rem 0; background: var(--inverse); color: #9fb5ae; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; }
.cta p { max-width: 36rem; margin: 1rem auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.cta .button { margin: 0; box-shadow: 0 12px 24px -8px rgb(11 125 87 / .6); }
.cta .button.ghost { box-shadow: none; }

/* --- Footer ------------------------------------------------------------------------------ */

.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .8rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; }
.footer-brand strong { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.language-menu [aria-current] { color: var(--ink); font-weight: 700; }

@media (max-width: 48rem) {
    .header-inner { justify-content: flex-start; }
    .main-nav { order: 3; width: 100%; padding-top: .4rem; border-top: 1px solid var(--soft); overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
    .header-actions { margin-inline-start: auto; }
    .hero { padding: 3rem 0 3.5rem; }
    .band { padding: 3rem 0; }
    .search-box select { border-inline-start: 0; border-top: 1px solid var(--line); width: 100%; }
    .search-box button { width: 100%; }
    .hero-stats { gap: 1.5rem 2rem; }
    table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* --- Reading pages: one calm column -------------------------------------------- */

.page > article, .page > section, .page > h1, .page > p, .page > form:not(.filter-row) { max-width: 56rem; }
.gallery a:first-child img { max-height: 26rem; object-fit: cover; }
.packages .card-list { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.packages .card-list > li .button { margin-top: auto; }

/* --- The account's overview --------------------------------------------------- */

.dashboard { display: grid; gap: 2rem; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); align-items: start; }
.dashboard-side { display: grid; gap: 1.5rem; }
.dashboard-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.dashboard-card h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.dashboard-card .avatar, img.avatar { display: grid; place-items: center; width: 5rem; height: 5rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2rem; font-weight: 700; }
.dashboard-welcome { margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.dashboard-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.dashboard-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.dashboard-links a:hover { color: var(--accent-text); }
.dashboard-tiles span, .dashboard-tiles small { color: var(--muted); font-size: .85rem; }
.dashboard-tiles strong { color: var(--ink); }
.dashboard-card .button { display: block; text-align: center; }
.dashboard-main h1 { margin-top: 0; }
.dashboard-tiles { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.dashboard-tiles li { display: grid; gap: .25rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.dashboard-tiles strong { font-size: 1.6rem; line-height: 1.2; }
.dashboard-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.dashboard-main section { margin-bottom: 2rem; }
.dashboard-main .dashboard-card p:last-child { margin-bottom: 0; }
@media (max-width: 48rem) { .dashboard { grid-template-columns: minmax(0, 1fr); } }
img.avatar { display: block; object-fit: cover; }

/* --- The account menu in the header -------------------------------------------- */

.account-menu summary { display: block; border-radius: 50%; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu-picture { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; line-height: 1; object-fit: cover; }
.account-menu summary:hover .account-menu-picture, .account-menu[open] .account-menu-picture { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-text); }
.account-menu-items { position: absolute; z-index: 60; top: calc(100% - .6rem); inset-inline-end: 1.25rem; display: grid; gap: .7rem; min-width: 13rem; max-width: calc(100% - 2.5rem); padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); box-shadow: var(--shadow-large); }
.account-menu-name { padding-bottom: .7rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .82rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-items form { margin: 0; }
.header-actions .account-menu-items .link-button { text-decoration: none; }

/* --- The inbox envelope in the header, with its unread count ------------------- */

.inbox-link { position: relative; display: inline-flex; }
.unread-badge { position: absolute; top: -.5rem; inset-inline-end: -.6rem; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1.2rem; text-align: center; }

/* --- The bell's and envelope's own dropdown, fetched into place on first open --- */

.dropdown { position: relative; }
.dropdown-panel { position: absolute; inset-inline-end: 0; top: calc(100% + .6rem); width: 22rem; max-width: calc(100vw - 2rem); max-height: 70vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); box-shadow: var(--shadow-large); z-index: 60; }
.inbox-list { margin: 0; padding: 0; list-style: none; }
.inbox-list li + li { border-top: 1px solid var(--line); }
.inbox-list li a { display: block; padding: .7rem 1rem; color: inherit; text-decoration: none; }
.inbox-list li a:hover { background: var(--accent-soft); }
.inbox-body { margin: .2rem 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-empty { margin: 0; padding: .9rem 1rem; color: var(--muted); font-size: .9rem; }
.dropdown-all { display: block; padding: .7rem 1rem; text-align: center; font-weight: 600; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.dropdown-all:hover { background: var(--accent-soft); }

/* --- "Show password", added by password-toggle.js ------------------------------ */

.password-field { display: flex; gap: .4rem; }
.password-field input { flex: 1 1 auto; min-width: 0; }
.password-toggle, .password-toggle:hover, .stack-form .password-toggle { flex: none; margin: 0; padding: .5rem .8rem; border-color: var(--field-line); background: var(--soft); box-shadow: none; color: var(--text); font-size: .82rem; white-space: nowrap; }
.password-toggle:hover { border-color: var(--accent-text); }
.account-menu-scheme { display: grid; gap: .35rem; font-size: .9rem; color: var(--muted); }
.account-menu-choices { display: flex; gap: .3rem; }
.account-menu-choices button { flex: 1 1 0; margin: 0; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: .5rem; background: transparent; box-shadow: none; color: var(--text); font-size: .8rem; font-weight: 600; cursor: pointer; }
.account-menu-choices button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
