/* =========================================================
   Euro Talent Hub — inner-page additions.
   ONLY uses variables/classes defined in style.css.
   Works in both [data-theme] themes.
   ========================================================= */

/* ---------- Page hero (section--deep + breadcrumb + h1 + intro, ~320px) ---------- */
.page-hero { min-height: 320px; display: flex; align-items: center; padding: 56px 0; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 6px 0 14px; }
.page-hero__intro { max-width: 680px; font-size: 1.08rem; margin: 0; color: #A9BBCC; }
.page-hero .eyebrow { margin-bottom: 4px; }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .86rem; color: #7489A0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: #A9BBCC; transition: color .2s; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--teal); }
.breadcrumb [aria-current="page"] { color: var(--teal); font-weight: 600; }

/* ---------- Generic inner-page helpers ---------- */
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); margin: 0 0 18px; }
.alert--ok { border-color: rgba(82, 187, 191, .5); background: rgba(82, 187, 191, .1); }
.alert--err { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 40px 0 0; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.pagination a:hover, .pagination a:focus-visible { border-color: var(--teal); color: var(--teal); }
.pagination [aria-current="page"] { background: var(--grad); border-color: transparent; color: #fff; }
.pagination .is-disabled { opacity: .45; }
.page-hero .eyebrow::before { width: 28px; }

/* ---------- Job being applied for (candidate modal) ---------- */
.form__job { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: .92rem; }

/* ---------- Cookie consent banner ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin-inline: auto; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.cookie[hidden] { display: none; }
.cookie__text { flex: 1 1 320px; font-size: .9rem; }
.cookie__text b { color: var(--ink); }
.cookie__text p { margin: 4px 0 0; }
.cookie__text a { color: var(--teal); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__actions .btn { padding: 10px 18px; }
@media (max-width: 600px) { .cookie { bottom: 84px; } }

/* ---------- Account / dashboard tables and panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.panel h2, .panel h3 { margin-top: 0; }
.dash-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.tbl td { color: var(--text); }
.tbl td b, .tbl td a { color: var(--ink); }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.meter > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; border: 1px solid var(--line); color: var(--ink); background: var(--surface-2); }
.status--ok { border-color: rgba(43, 194, 113, .5); color: #2BC271; }
.status--warn { border-color: var(--warn-line); color: var(--warn-ink); }
.status--bad { border-color: rgba(232, 97, 97, .5); color: #E86161; }
.inline-form { display: inline; }
.inline-form button { background: none; border: 0; padding: 0; color: var(--teal); cursor: pointer; font: inherit; text-decoration: underline; }

/* ---------- Front-end admin bar (logged-in staff only) ---------- */
.fe-adminbar { background: #030A12; color: #C9D7E4; font-size: .82rem; border-bottom: 1px solid rgba(255, 255, 255, .08); position: relative; z-index: 120; }
.fe-adminbar__inner { display: flex; align-items: center; gap: 4px; min-height: 34px; flex-wrap: wrap; }
.fe-adminbar a, .fe-adminbar__new, .fe-adminbar__user { padding: 7px 10px; border-radius: 6px; color: inherit; transition: background .2s, color .2s; }
.fe-adminbar a:hover, .fe-adminbar__new:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.fe-adminbar__new { position: relative; cursor: default; }
.fe-adminbar__new ul { display: none; position: absolute; top: 100%; left: 0; min-width: 130px; margin: 0; padding: 6px; list-style: none; background: #0D1E31; border: 1px solid rgba(255, 255, 255, .1); border-radius: 0 0 10px 10px; z-index: 5; }
.fe-adminbar__new:hover ul, .fe-adminbar__new:focus-within ul { display: block; }
.fe-adminbar__new li a { display: block; }
.fe-adminbar__user { margin-left: auto; opacity: .8; }
.fe-adminbar__preview { color: #FFC94D; padding: 0 10px; }
@media (max-width: 600px) { .fe-adminbar__user { display: none; } }

/* ---------- Accessible colours for inner-page text and links (WCAG AA), both themes ---------- */
main > section:not(#countries) .note { opacity: 1; }
[data-theme="light"] main > section:not(#countries) .note { color: #546577; }
[data-theme="light"] .prose a, [data-theme="light"] .note a, [data-theme="light"] .form a, [data-theme="light"] .consent a, [data-theme="light"] a[style*="--teal"] { color: #0A6F9A !important; }
[data-theme="dark"] .note a, [data-theme="dark"] .consent a, [data-theme="dark"] .form a, [data-theme="dark"] a[style*="--teal"] { color: #7FD6DA !important; }
.prose a, .note a, .consent a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Skip link (visible only on keyboard focus) + visible focus rings ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--teal); color: #04202a; font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 12px; outline: 3px solid #fff; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Stats strip with a variable number of counters (Customize → Stats) ---------- */
.stats__grid--n1 { grid-template-columns: 1fr; } .stats__grid--n2 { grid-template-columns: repeat(2, 1fr); } .stats__grid--n3 { grid-template-columns: repeat(3, 1fr); } .stats__grid--n5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) { .stats__grid--n1 { grid-template-columns: 1fr; } .stats__grid--n2, .stats__grid--n3, .stats__grid--n5 { grid-template-columns: 1fr 1fr; } }

/* ---------- Optional photos added from the page builder (hidden when no photo is set) ---------- */
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; pointer-events: none; }
.about__photo, .career__photo, .faq__photo { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid var(--line); }
