/* LOTIPA — visual from Figma "portfa / padrao" */
:root {
  --bg: #ffffff;
  --panel: #fafafa;
  --chip: #f1f1f1;
  --ink: #0a0a0a;
  --ink-2: #8a8a8a;
  --ink-3: #b3b3b3;
  --line: #e9e9e9;
  --yellow: #ffe500;
  --ok: #0a0a0a;
  --err: #e5341d;
  --r: 6px;
  --spring: cubic-bezier(.22,1,.36,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 13px/1.35 "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.005em; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.muted { color: var(--ink-2); }

/* Top nav — pill tabs like the Figma header */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: 12px clamp(12px, 1.2vw, 16px);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.tabs { display: flex; gap: 4px; }
.tab { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; min-width: 110px; border-radius: var(--r); background: var(--chip); font-size: 12px; transition: background .15s, transform .1s ease-out; }
.tab:active { transform: scale(.97); }
.tab.icon { min-width: 0; width: 26px; justify-content: center; padding: 0; }
.tab.icon img { width: 11px; }
.tab.on { background: var(--ink); color: #fff; }
@media (max-width: 560px) { .tab { min-width: 0; } }

.wrap { width: 100%; padding: 0 clamp(12px, 1.2vw, 16px); }

/* Pill button: yellow with glyph on the right */
.btn {
  appearance: none; border: 0; cursor: pointer; border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: 28px; padding: 0 9px; min-width: 150px; font-size: 12px; text-align: left;
  transition: transform .1s ease-out, background .15s, opacity .15s;
}
.btn::after { content: "+"; font-size: 16px; font-weight: 300; line-height: 1; }
.btn:active { transform: scale(.97); }
.btn-primary, .btn-accent { background: var(--yellow); color: var(--ink); }
.btn-primary:hover, .btn-accent:hover { background: #ffd900; }
.btn-ghost { background: var(--chip); color: var(--ink); min-width: 0; gap: 0; }
.btn-ghost::after { content: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Page grid: headline left, panels right */
.page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; padding-top: 16px; padding-bottom: 16px; align-items: start; }
@media (max-width: 900px) { .page { grid-template-columns: 1fr; } }
.headline { position: sticky; top: 72px; padding-top: 18vh; }
@media (max-width: 900px) { .headline { position: static; padding-top: 12vh; padding-bottom: 6vh; } }
.display { font-size: clamp(40px, 4.6vw, 64px); line-height: .98; letter-spacing: -.045em; font-weight: 500; margin: 0; }
.display em { font-style: normal; background: var(--yellow); padding: 0 .08em; }
.lede { margin: 18px 0 0; max-width: 34ch; color: var(--ink-2); }

.panels { display: grid; gap: 8px; }
.card { background: var(--panel); border: 1px solid #f0f0f0; border-radius: 8px; padding: clamp(14px, 1.6vw, 20px); }
.card.tall { min-height: 360px; display: grid; align-items: center; }

/* Info table — "Social Media / Address" pattern */
.info { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: start; }
.info h4, .role h4 { font-size: 12px; font-weight: 500; margin: 0 0 8px; }
.info ul, .role ul { list-style: none; margin: 0; padding: 0; color: var(--ink-2); }
.info .push { margin-left: auto; align-self: center; }
.role { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 40px; margin-top: 28px; }
.role li { padding: 1px 0; }

/* Form */
.steps { display: flex; gap: 4px; margin-bottom: 18px; }
.steps i { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.steps i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--spring); }
.steps i.on::after { transform: scaleX(1); }
.step-label { color: var(--ink-2); margin: 0 0 2px; }
.step h2 { font-size: 13px; font-weight: 500; margin: 0 0 4px; }
.step .intro { color: var(--ink-2); margin: 0 0 20px; max-width: 42ch; }
.step { display: none; }
.step.active { display: block; animation: in .45s var(--spring); }
.step.back { animation-name: in-back; }
@keyframes in { from { opacity: 0; transform: translateX(14px); } }
@keyframes in-back { from { opacity: 0; transform: translateX(-14px); } }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
label.f, div.f { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; font-size: 12px; color: var(--ink-2); }
label.f .hint { color: var(--ink-3); }
.input {
  width: 100%; padding: 6px 0 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; outline: none; font-size: 13px; color: var(--ink);
  transition: border-color .15s;
}
.input:focus { border-color: var(--ink); }
select.input { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M.5.5l3.5 3.5L7.5.5' stroke='%230a0a0a' fill='none'/%3E%3C/svg%3E") right 2px center no-repeat; cursor: pointer; }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.45; }
.f.invalid .input { border-color: var(--err); }
.err { color: var(--err); font-size: 11px; }
.count { align-self: flex-end; font-size: 11px; color: var(--ink-3); }

.seg, .pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
@media (max-width: 560px) { .seg, .pills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seg input, .pills input { position: absolute; opacity: 0; pointer-events: none; }
.seg label, .pills label, .pills .chip {
  display: flex; align-items: center; justify-content: space-between; gap: .4rem;
  height: 28px; padding: 0 9px; border-radius: var(--r); background: var(--chip); color: var(--ink);
  cursor: pointer; font-size: 12px; user-select: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform .1s ease-out, background .15s;
}
.seg label:active, .pills label:active { transform: scale(.96); }
.seg input:checked + label, .pills input:checked + label { background: var(--yellow); }
.seg input:focus-visible + label, .pills input:focus-visible + label { outline: 1px solid var(--ink); }
.seg small { color: var(--ink-2); font-size: 11px; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.toggle input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .35s var(--spring); }
.toggle input:checked { background: var(--yellow); }
.toggle input:checked::after { transform: translateX(14px); }

.drop { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 28px 16px; border: 1px dashed #dcdcdc; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--ink); background: #fffbe0; }
.drop.has { border-style: solid; border-color: var(--ink); }
.drop strong { font-weight: 500; }
.drop span { color: var(--ink-2); }

.actions { display: flex; justify-content: space-between; gap: 6px; margin-top: 24px; }
.consent { color: var(--ink-3); margin-top: 14px; max-width: 52ch; }

.done { padding: 60px 0; }
.done .check { width: 28px; height: 28px; border-radius: var(--r); background: var(--yellow); display: grid; place-items: center; margin-bottom: 18px; animation: pop .5s var(--spring); }
.done .check svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .45s .2s ease-out forwards; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin: 0 0 12px; }
.done p { color: var(--ink-2); max-width: 40ch; margin: 0; }

/* Footer with giant wordmark */
.foot { padding: 80px clamp(12px, 1.2vw, 16px) 12px; }
.foot .cols { display: flex; flex-wrap: wrap; gap: 20px 60px; margin-bottom: 60px; }
.foot .cols h4 { font-weight: 500; margin: 0 0 8px; font-size: 12px; }
.foot .cols ul { list-style: none; margin: 0; padding: 0; color: var(--ink-2); }
.wordmark { display: block; width: 100%; height: auto; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; }

/* ---------- Admin ---------- */
.login { min-height: calc(100vh - 52px); display: grid; place-items: center; padding: 16px; }
.login .card { width: min(380px, 100%); }
.login h1 { font-size: 40px; font-weight: 500; letter-spacing: -.045em; line-height: 1; margin: 0 0 8px; }
.login p { color: var(--ink-2); margin: 0 0 8px; }
.login form { display: grid; }
.login .btn { margin-top: 20px; }

.admin-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding: 12vh 0 32px; }
.admin-head h1 { font-size: clamp(40px, 4.6vw, 64px); font-weight: 500; letter-spacing: -.045em; line-height: .98; margin: 0; }
.admin-head p { margin: 10px 0 0; color: var(--ink-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 16px; }
.toolbar .input { width: auto; flex: 1 1 240px; }
.toolbar select.input { flex: 0 0 160px; }
.stats { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.stat { height: 26px; padding: 0 10px; border-radius: var(--r); border: 0; background: var(--chip); font-size: 12px; cursor: pointer; transition: transform .1s, background .15s; }
.stat:active { transform: scale(.96); }
.stat.on { background: var(--yellow); }

.list { border-top: 1px solid var(--ink); margin-bottom: 40px; }
.list-head, .row { display: grid; grid-template-columns: 40px minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) 100px 110px; gap: 12px; align-items: center; padding: 9px 0; }
.list-head { color: var(--ink-2); font-size: 12px; border-bottom: 1px solid var(--line); }
.row { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.row:hover { background: var(--panel); }
.row:active { background: var(--chip); }
.idx { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub, .row .meta { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .list-head, .row { grid-template-columns: 28px minmax(0,1fr) auto; } .hide-sm { display: none; } }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r); font-size: 11px; background: var(--chip); }
.b-new { background: var(--yellow); }
.b-interview { background: var(--ink); color: #fff; }
.b-hired { background: var(--ink); color: var(--yellow); }
.b-rejected { color: var(--ink-3); }
.empty { padding: 60px 0; color: var(--ink-2); }

/* Sheet */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .35s ease; z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; top: 8px; right: 8px; bottom: 8px; width: min(520px, calc(100% - 16px)); z-index: 50;
  background: #fff; border-radius: 10px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.3);
  transform: translateX(110%); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
}
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: rgba(255,255,255,.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.icon-btn { width: 26px; height: 26px; border-radius: var(--r); border: 0; background: var(--chip); cursor: pointer; display: grid; place-items: center; transition: transform .1s; }
.icon-btn:active { transform: scale(.92); }
.sheet-body { padding: 8px 16px 32px; }
.sheet-body h2 { font-size: 40px; font-weight: 500; letter-spacing: -.045em; line-height: 1; margin: 24px 0 8px; }
.sheet-body .sub { color: var(--ink-2); margin: 0 0 24px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0 0 20px; }
.kv div { padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.kv dt { color: var(--ink-2); font-size: 12px; }
.kv dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.kv a { text-decoration: underline; text-underline-offset: 2px; }
.block h4 { font-size: 12px; font-weight: 500; margin: 24px 0 8px; }
.block p { margin: 0; white-space: pre-wrap; line-height: 1.5; color: #333; }
.sheet .pills { grid-template-columns: repeat(3, minmax(0,1fr)); }
.sheet .actions { flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 120ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar, .sheet-head { background: #fff; backdrop-filter: none; }
}

[hidden] { display: none !important; }
/* iOS zooms into inputs under 16px — keep form text at 16px on touch screens */
@media (max-width: 760px), (pointer: coarse) {
  .input { font-size: 16px; }
  .btn, .seg label, .pills label, .tab { height: 36px; }
  .actions .btn { flex: 1; min-width: 0; }
  .actions .btn-ghost { flex: 0 0 auto; }
  .headline { padding-top: 8vh; }
  .card.tall { min-height: 0; }
  .info .push { margin-left: 0; width: 100%; }
  .kv { grid-template-columns: 1fr; }
  .sheet .pills { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sheet { top: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; }
}

/* Tilted pill under the headline — from Figma "Let's talk" */
.tilt {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 3.5rem;
  margin: .35em 0 0 .15em; padding: .55em .8em .55em .9em;
  background: var(--yellow); color: var(--ink); border-radius: 8px;
  font-size: clamp(15px, 1.4vw, 20px); letter-spacing: -.02em;
  transform: rotate(-4deg); transform-origin: left center;
  position: relative; z-index: 1;
  transition: transform .45s var(--spring);
}
.tilt span { font-size: 1.25em; line-height: 1; font-weight: 300; }
.tilt:hover { transform: rotate(-2deg) translateY(-2px); }
.tilt:active { transform: rotate(-4deg) scale(.97); transition-duration: .1s; }
.headline .lede { margin-top: 28px; }

.foot a:hover, .legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.foot .cols a { color: var(--ink-2); transition: color .15s; }
.foot .cols a:hover { color: var(--ink); }

/* About */
.prose p { margin: 0 0 12px; max-width: 58ch; color: #333; line-height: 1.5; }
.prose .lead { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -.025em; color: var(--ink); margin-bottom: 20px; }
.sec-title { font-size: 12px; font-weight: 500; margin: 0 0 8px; }
.services details { border-bottom: 1px solid var(--line); }
.services summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; cursor: pointer; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: -.02em; }
.services summary::-webkit-details-marker { display: none; }
.services summary::after { content: "+"; font-weight: 300; font-size: 1.2em; transition: transform .35s var(--spring); }
.services details[open] summary::after { transform: rotate(45deg); }
.services details p { margin: 0 0 14px; color: var(--ink-2); max-width: 56ch; animation: in .4s var(--spring); }

@font-face {
  font-family: "Lowtype Sans";
  src: url("fonts/LowtypeSans-Regular.woff2") format("woff2"), url("fonts/LowtypeSans-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: block;
}
.lowtype { font-family: "Lowtype Sans", "Inter Tight", sans-serif; font-weight: 400; letter-spacing: 0; font-variant-ligatures: none; font-feature-settings: "liga" 0, "dlig" 0, "calt" 0; }

/* ---------- Page transitions (cross-document View Transitions) ----------
   Chrome, Edge, Safari 18+. Chrome stays put; the page content cross-fades
   with a short rise. Nothing rotates or scales mid-flight. */
@view-transition { navigation: auto; }
.bar { view-transition-name: bar; }
.tab.on { view-transition-name: tab-active; }
.foot { view-transition-name: foot; }

::view-transition-group(bar), ::view-transition-group(foot) { animation: none; }
::view-transition-group(tab-active) { animation-duration: .4s; animation-timing-function: cubic-bezier(.22,1,.36,1); }
::view-transition-old(root) { animation: vt-fade-out .18s ease-in both; }
::view-transition-new(root) { animation: vt-rise .45s cubic-bezier(.22,1,.36,1) .05s both; }

@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes vt-pill-in { from { opacity: 0; transform: rotate(-4deg) translateY(10px); } to { opacity: 1; transform: rotate(-4deg); } }

/* First load: headline, then panels, then the pill settles in below the text */
@media (prefers-reduced-motion: no-preference) {
  .headline .display { animation: vt-rise .6s cubic-bezier(.22,1,.36,1) both; }
  .panels > * { animation: vt-rise .6s cubic-bezier(.22,1,.36,1) backwards; }
  .panels > *:nth-child(2) { animation-delay: .06s; }
  .panels > *:nth-child(3) { animation-delay: .12s; }
  .tilt { animation: vt-pill-in .5s cubic-bezier(.22,1,.36,1) .3s backwards; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) { animation: vt-fade-in .15s ease both; }
  ::view-transition-group(tab-active) { animation-duration: 0s; }
}
@keyframes vt-fade-in { from { opacity: 0; } }

/* Desktop: header is not a floating glass strip over the panels.
   Only the tabs float; the page scrolls freely with a soft top fade. */
@media (min-width: 901px) {
  .bar { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
  .bar > * { pointer-events: auto; }
  .tabs { padding: 3px; margin: -3px; border-radius: 9px; background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); }
  .page { padding-top: 58px; }
  .headline { top: 58px; }
  .admin-head { padding-top: calc(12vh + 40px); }
}
#card { scroll-margin-top: 70px; }
.btn-next::after { content: "→"; font-size: 14px; }

/* Desktop: the headline pins just below the floating tabs instead of sliding under them.
   Space above it is margin (not padding) so the sticky box itself starts at the text. */
@media (min-width: 901px) {
  .headline { padding-top: 0; margin-top: min(18vh, 160px); top: 72px; }
}

/* Scroll-edge fade behind the tabs, left column only, so text never shows through them */
@media (min-width: 901px) {
  .bar::before {
    content: ""; position: absolute; left: 0; top: 0; height: 64px; width: 44%;
    background: linear-gradient(#fff 55%, rgba(255,255,255,0)); pointer-events: none; z-index: -1;
  }
  .tabs { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 900px) {
  .bar { background: rgba(255,255,255,.94); }
}

/* Jobs listing */
.job-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.job-pill {
  display: inline-flex; align-items: center; gap: 14px; height: 32px; padding: 0 10px; border-radius: var(--r);
  background: var(--chip); color: var(--ink-3); font-size: 13px; cursor: not-allowed; user-select: none;
}
.job-pill span { font-size: 11px; }
.job-pill.on { background: var(--yellow); color: var(--ink); cursor: pointer; transition: transform .1s ease-out, background .15s; }
.job-pill.on:hover { background: #ffd900; }
.job-pill.on:active { transform: scale(.97); }
.jobs { display: grid; gap: 8px; }
.job-card { display: block; transition: background .15s, transform .1s ease-out; }
.job-card:hover { background: #f5f5f5; }
.job-card:active { transform: scale(.995); }
.job-card h4 { font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; letter-spacing: -.025em; }
.job-lede { margin: 0; color: var(--ink-2); max-width: 36ch; flex: 1 1 220px; }
.job-closed { padding: 40px 0; }
.jobs-admin-wrap { margin-bottom: 16px; }
.jobs-admin-wrap summary { cursor: pointer; font-weight: 500; list-style: none; }
.jobs-admin-wrap summary::after { content: " +"; }
.jobs-admin-wrap[open] summary::after { content: " –"; }
.job-loading .page { opacity: 0; }

/* Banco de talentos — dark gray instead of yellow */
.job-pill.on.talent, .btn-talent { background: #3a3a3a; color: #fff; }
.job-pill.on.talent:hover, .btn-talent:hover { background: #2a2a2a; }
.job-pill.talent span { color: #bdbdbd; }
.talent .btn-primary, .talent .btn-accent { background: #3a3a3a; color: #fff; }
.talent .btn-primary:hover, .talent .btn-accent:hover { background: #2a2a2a; }
.talent .seg input:checked + label, .talent .pills input:checked + label { background: #3a3a3a; color: #fff; }
.talent .seg input:checked + label small { color: #bdbdbd; }
.talent .toggle input:checked { background: #3a3a3a; }
.talent .done .check { background: #3a3a3a; }
.talent .done .check svg path { stroke: #fff; }

.links-title { color: var(--ink); padding-top: 22px; }
a.ext { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; color: var(--ink); overflow-wrap: anywhere; transition: text-decoration-color .15s, background .15s; }
a.ext:hover { text-decoration-color: var(--ink); background: var(--yellow); }

/* Glass tabs: each pill is its own translucent material, so content passing
   underneath blurs instead of being hidden by a white band */
.tabs, .bar { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.bar::before { display: none !important; }
.tab {
  background: rgba(241,241,241,.55);
  backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.6), 0 1px 2px rgba(0,0,0,.04);
}
.tab.on { background: rgba(10,10,10,.82); }
@media (prefers-reduced-transparency: reduce) {
  .tab { background: var(--chip); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tab.on { background: var(--ink); }
}

/* Darker glass tabs */
.tab {
  background: rgba(214,214,214,.62);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 .5px rgba(0,0,0,.06);
}
.tab.on {
  background: linear-gradient(rgba(58,58,58,.9), rgba(18,18,18,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 .5px rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.12);
}

/* Solid tabs (no glass) */
.tab { background: var(--chip); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.tab.on { background: var(--ink); box-shadow: none; }


/* Footer = one full screen: links on top (where the tabs sit), wordmark at the bottom */
.foot { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: 14px; }
.foot .cols { margin-bottom: 0; }
.foot .wordmark { margin-top: auto; }
.bar { will-change: transform; }

/* Footer is its own section: page content always fills the first screen,
   and the footer keeps its natural height (no empty gap) */
.page { min-height: 100vh; min-height: 100svh; }
.foot { min-height: 0; }
.foot .cols { margin-bottom: 60px; }

/* About video: YouTube embed cropped so its title bar and logo fall outside the frame,
   and non-interactive so no controls appear on hover */
.card.has-video { align-items: stretch; }
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #111; margin-bottom: 24px; }
.video iframe { position: absolute; left: 50%; top: 50%; width: 136%; height: 136%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.sound {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; height: 26px; padding: 0 10px; border: 0; border-radius: var(--r);
  background: var(--yellow); color: var(--ink); font-size: 12px; cursor: pointer; transition: transform .1s ease-out;
}
.sound::after { content: " +"; }
.sound[aria-pressed="true"]::after { content: " –"; }
.sound:active { transform: scale(.96); }
/* Minimal icon-only sound toggle */
.sound { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: .8; transition: opacity .15s, transform .1s ease-out; }
.sound:hover { opacity: 1; }
.sound::after { content: none !important; }

/* Desktop: right-column panels start level with the top of the header tabs */
@media (min-width: 901px) {
  .page { padding-top: 12px; }
  .headline { margin-top: calc(min(18vh, 160px) + 46px); }
}
.job-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.job-row:last-child { border-bottom: 0; }
.toggle.bare { padding: 0; border: 0; }
.jobs-admin-wrap summary { margin-bottom: 8px; }

/* English groups may have 5 options */
.seg { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
/* Placeholders read as hints, never as filled answers */
.input::placeholder { color: #c4c4c4; opacity: 1; }
.cv-link { margin-top: 10px; }
.headline .lede { margin-top: 14px; }

/* Admin: jobs managed from a compact popover, not a full-width block */
.admin-head { position: relative; }
.jobs-pop-wrap { position: relative; }
.jobs-btn { height: 30px; padding: 0 12px; }
.jobs-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(320px, 90vw); padding: 6px; background: #fff; box-shadow: 0 16px 40px -12px rgba(0,0,0,.25); }
.job-line { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.job-line:hover { background: var(--panel); }
.job-line input { appearance: none; width: 28px; height: 16px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.job-line input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.job-line input:checked { background: var(--yellow); }
.job-line input:checked::after { transform: translateX(12px); }
.job-line input:not(:checked) ~ .job-line-name { color: var(--ink-3); }
.job-line-view { color: var(--ink-3); padding: 0 4px; }
.job-line-view:hover { color: var(--ink); }

/* Admin triage */
.jobs-btn { gap: 8px; }
.stats-sep { width: 1px; height: 18px; background: var(--line); margin: 4px 6px; }
.stat[data-f="r:interesting"].on, .stat[data-f="pool"].on { background: var(--yellow); color: var(--ink); }
.mark { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.m-interesting { background: var(--yellow); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.m-maybe { background: #bdbdbd; }
.m-no { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.row.dim .name, .row.dim .sub, .row.dim .meta { color: var(--ink-3); }
.pool-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 4px; background: #3a3a3a; color: #fff; font-size: 10px; vertical-align: 1px; }
.triage { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 16px; }
.triage button { height: 28px; padding: 0 10px; border: 0; border-radius: var(--r); background: var(--chip); font-size: 12px; cursor: pointer; transition: background .15s, transform .1s ease-out; }
.triage button:active { transform: scale(.96); }
.triage [data-rating="interesting"].on { background: var(--yellow); }
.triage [data-rating="maybe"].on { background: #d6d6d6; }
.triage [data-rating="no"].on { background: var(--ink); color: #fff; }
.triage .pool { margin-left: auto; }
.triage .pool.on { background: #3a3a3a; color: #fff; }

.triage [data-status].on { background: var(--ink); color: #fff; }
.triage [data-status="interesting"].on, .triage [data-status="new"].on { background: var(--yellow); color: var(--ink); }
.triage [data-status="maybe"].on { background: #d6d6d6; color: var(--ink); }
.b-interesting { background: var(--yellow); }
.b-maybe { background: #e2e2e2; }
.stat[data-f="interesting"].on { background: var(--yellow); }

.jobs-pop-foot { display: flex; align-items: center; gap: 6px; padding: 8px 8px 4px; margin-top: 4px; border-top: 1px solid var(--line); }
.jobs-pop-foot .muted { margin-right: auto; font-size: 12px; }
.jobs-pop-foot .btn { height: 28px; min-width: 0; padding: 0 12px; gap: 0; }
.jobs-pop-foot .btn::after { content: none; }
.pool-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; margin-bottom: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.pool-row input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .2s; }
.pool-row input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .35s var(--spring); }
.pool-row input:checked { background: #3a3a3a; }
.pool-row input:checked::after { transform: translateX(14px); }
.pool-row .muted { font-size: 12px; }
/* Delete: quiet link first, explicit confirmation second */
.danger { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.btn-delete { border: 0; background: none; padding: 0; color: var(--err); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.del-confirm { background: #fff4f2; border-radius: 8px; padding: 12px; }
.del-confirm p { margin: 0 0 10px; color: #7a1f14; font-size: 13px; line-height: 1.45; }
.del-actions { display: flex; gap: 6px; justify-content: flex-end; }
.del-actions .btn { height: 28px; min-width: 0; gap: 0; }
.del-actions .btn::after { content: none; }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #c22a17; }

.job-line { grid-template-columns: auto 1fr auto auto auto; }
.job-line-edit { border: 0; background: none; padding: 0 4px; font-size: 11px; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.job-line-edit:hover { color: var(--ink); }
.job-form { display: grid; gap: 4px; }
.job-form textarea.input { min-height: 0; }
.job-form .actions { align-items: center; }
.job-form .actions .muted { margin-right: auto; font-size: 12px; }
.job-form .btn { min-width: 0; gap: 0; }
.job-form .btn::after { content: none; }

.head-actions { display: flex; gap: 6px; align-items: flex-start; }
.pop-title { margin: 4px 8px 6px; font-size: 12px; color: var(--ink-2); }
.notif-add { display: flex; gap: 6px; padding: 6px 8px 0; }
.notif-add .input { padding: 6px 0; font-size: 13px; }
.notif-add .btn { height: 28px; min-width: 0; gap: 0; }
.notif-add .btn::after { content: none; }
.job-line.removed .job-line-name { text-decoration: line-through; color: var(--ink-3); }
@media (max-width: 760px) { .head-actions { flex-wrap: wrap; } .jobs-pop { right: auto; left: 0; } }

/* Longer list items: give each one room so they don't run together */
.role li { padding: 6px 0; line-height: 1.4; border-top: 1px solid var(--line); }
.role li:first-child { border-top: 0; padding-top: 0; }

/* Desktop: the left block rides the bottom edge while scrolling and lands flush with the
   bottom of the last panel — it never slides up under the tabs */
@media (min-width: 901px) {
  .headline { position: sticky; top: auto; bottom: 16px; align-self: end; margin-top: 0; padding-top: 0; }
}

/* Notifications: add row fits inside the popover */
.notif-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px 2px; }
.notif-add .input { width: 100%; min-width: 0; }
.notif-add .btn { flex: none; height: 28px; padding: 0 12px; justify-content: center; white-space: nowrap; }

.q-list .f { padding-top: 10px; }
.q-list textarea.input { min-height: 0; font-size: 13px; }
