/* Bahrain Library — redesign demo */
/* Day is the default; night swaps the tokens. */
:root {
  /* Palette from batelco.com: navy, lilac grey, red accent */
  --paper: #ffffff;
  --card: #ffffff;
  --soft: #f2f2f2;
  --ink: #202a44;
  --ink-2: #4c5570;
  --muted: #8c90a0;
  --line: #e5e1e6;
  --line-2: #d4cfd6;
  --red: #ce0037;
  --red-soft: #fbe6ec;
  --on-ink: #ffffff;
  --frame: #e5e1e6;
  --radius: 16px;
  --wrap: 1240px;
  --font: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
}

:root[data-theme="dark"] {
  --paper: #141a2c;
  --card: #1b2237;
  --soft: #1b2237;
  --ink: #f2f2f2;
  --ink-2: #b9bccb;
  --muted: #7f849a;
  --line: #2a3250;
  --line-2: #3a4363;
  --on-ink: #202a44;
  --frame: #222a44;
  color-scheme: dark;
}
:root[data-theme="dark"] .top { background: rgba(20, 26, 44, .92); }
:root[data-theme="dark"] .band { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
:root[data-theme="dark"] .band p { color: var(--ink-2); }
:root[data-theme="dark"] .band .btn { background: var(--ink); color: var(--on-ink); }

.mode {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px;
  transition: color .15s, border-color .15s;
}
.mode:hover { color: var(--ink); border-color: var(--ink); }
body { transition: background-color .25s, color .25s; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ── Header ─────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 40px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 38px; width: auto; filter: brightness(0); }
[data-theme="dark"] .brand img, [data-theme="dark"] .foot img { filter: none; }
.nav { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav a { position: relative; padding: 6px 0; transition: color .15s; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -2px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.lang { color: var(--ink-2); padding: 6px 10px; border-radius: 8px; }
.lang:hover { background: var(--card); color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 500;
  transition: background .15s;
}
.btn:hover { opacity: .88; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.red { background: var(--red); }
.btn.red:hover { background: #b00e20; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 96px 0 56px; text-align: center; }
.hero h1 {
  margin: 0 auto; max-width: 820px;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em;
}
.hero p { margin: 18px auto 0; max-width: 660px; text-wrap: balance; color: var(--ink-2); font-size: 18px; }

.search { position: relative; max-width: 720px; margin: 40px auto 0; text-align: start; }
.search-box {
  display: flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 26px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 12px 32px -18px rgba(22,24,28,.18);
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22,24,28,.06), 0 12px 32px -18px rgba(22,24,28,.25); }
.search-box svg { flex: none; color: var(--muted); }
.search-box input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none;
  font: 400 18px var(--font); color: var(--ink);
}
.search-box input::placeholder { color: var(--muted); }
.search-box kbd {
  font: 500 12px var(--font); color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
}

.results {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 10;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(22,24,28,.25);
  padding: 8px; display: none; max-height: 420px; overflow: auto;
}
.results.open { display: block; }
.results a {
  display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 10px;
}
.results a:hover, .results a.on { background: var(--paper); }
.results .thumb {
  flex: none; width: 64px; height: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; display: grid; place-items: center; padding: 6px;
}
.results .thumb img { width: auto !important; max-height: 100%; max-width: 100%; }
.results b { font-weight: 500; display: block; font-size: 15px; }
.results small { color: var(--muted); font-size: 13px; }
.results .empty { padding: 18px; color: var(--muted); text-align: center; font-size: 15px; }

.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; font-size: 14px; }
.quick span { color: var(--muted); padding: 6px 4px; }
.quick a {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2);
  transition: border-color .15s, color .15s;
}
.quick a:hover { border-color: var(--ink); color: var(--ink); }

.counts {
  display: flex; justify-content: center; gap: 48px; margin-top: 64px;
  color: var(--ink-2); font-size: 14px;
}
.counts a { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.counts b { font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.counts a:hover b { color: var(--red); }

/* ── Section heads ──────────────────────────────────── */
.sec { padding: 72px 0; }
.sec-head { display: flex; align-items: end; gap: 24px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.25; }
.sec-head h2 a { transition: color .15s; }
.sec-head h2 a:hover { color: var(--red); }
.sec-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.sec-head .more { margin-inline-start: auto; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.sec-head .more:hover { color: var(--red); }

/* ── Shelves (the logo wall) ────────────────────────── */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 0; }
.tabs button {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.tabs button:hover { color: var(--ink); background: var(--card); }
.tabs button.on { background: var(--ink); color: var(--on-ink); }
.tabs button i { font-style: normal; opacity: .55; margin-inline-start: 6px; font-size: 12px; }

.shelf {
  display: grid; grid-template-columns: repeat(6, 1fr);
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.tile {
  position: relative; display: flex; flex-direction: column;
  border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-inline-end: -1px; margin-bottom: -1px;
  transition: background .2s;
}
.tile { min-width: 0; }
.tile .art {
  aspect-ratio: 4 / 3; display: grid; place-items: center; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-width: 0; overflow: hidden;
}
/* the logo never grows past its card, whatever size the file says it is (iPhone Safari honours the SVG's own width) */
.tile .art img { height: auto; max-width: 100%; max-height: 80%; min-width: 0; object-fit: contain; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tile .name {
  padding: 0 14px 14px; font-size: 13px; line-height: 1.4; color: var(--ink-2); text-align: center;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.tile .get {
  position: absolute; top: 10px; inset-inline-end: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--on-ink);
  opacity: 0; transform: translateY(-3px); transition: opacity .2s, transform .2s;
}
.tile:hover { background: var(--paper); }
.tile:hover .art img { transform: scale(1.06); }
.tile:hover .get { opacity: 1; transform: none; }
.tile:hover .name { color: var(--ink); }

.shelf-foot { display: flex; justify-content: center; margin-top: 28px; }

/* ── Guides ─────────────────────────────────────────── */
.guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide { display: block; }
.guide .cover {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
}
.guide .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.guide:hover .cover img { transform: scale(1.04); }
.guide .cover img.wide { object-fit: contain; background: var(--soft); }   /* slide-shaped covers show whole */
.guide b { display: block; margin-top: 14px; font-weight: 500; font-size: 15px; line-height: 1.45; }
.guide small { color: var(--muted); font-size: 13px; }

/* ── Occasions ──────────────────────────────────────── */
.occ { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.occ a {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center;
  padding: 22px 0 22px 24px; border-bottom: 1px solid var(--line);
}
[dir="ltr"] .occ a { padding: 22px 24px 22px 0; }
.occ .day { grid-row: span 2; font-size: 40px; font-weight: 600; line-height: 1; min-width: 56px; }
.occ .mon { font-size: 13px; color: var(--muted); }
.occ b { font-weight: 500; font-size: 16px; }
.occ a:hover .day { color: var(--red); }
.occ .soon { color: var(--red); font-size: 12px; font-weight: 500; }

/* ── People ─────────────────────────────────────────── */
.people { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.frame {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--radius); background: var(--frame);
  border: 1px solid var(--line);   /* framed like the logo cards, so white-background photos don't melt into the page */
}
.frame .tag, .stage .tag, .tile .tag, .timeline .sw .tag {
  /* Same soft pill as the "Collab" label on influencer pages */
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.5;
  background: #e3f4ea; color: #12773f;   /* latest: green */
}
.frame .tag.old, .stage .tag.old, .tile .tag.old, .timeline .sw .tag.old { background: var(--red-soft); color: var(--red); }   /* older: red */
.frame img { position: absolute; max-width: none; height: auto; transition: transform .5s cubic-bezier(.2,.7,.2,1); transform-origin: 50% 40%; }
.person:hover .frame img { transform: scale(1.03); }
.person b { display: block; margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.person small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* ── Contribute band ────────────────────────────────── */
.band {
  display: flex; align-items: center; gap: 32px;
  padding: 44px 48px; border-radius: 22px; background: var(--ink); color: #fff;
}
.band h3 { margin: 0; font-size: 26px; font-weight: 600; }
.band p { margin: 6px 0 0; color: rgba(255,255,255,.7); }
.band .btn { margin-inline-start: auto; background: #fff; color: var(--ink); flex: none; }
.band .btn:hover { background: var(--red); color: #fff; }

/* ── Footer ─────────────────────────────────────────── */
.foot { padding: 56px 0 40px; margin-top: 72px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.foot img { height: 30px; filter: brightness(0); opacity: .85; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a:hover { color: var(--ink); }
.foot .end { margin-inline-start: auto; color: var(--muted); }
.social { display: flex; gap: 8px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--ink-2); transition: color .15s, border-color .15s, background .15s;
}
.social a:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.foot .legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.foot .legal a:hover { color: var(--ink); }
.foot .legal {
  flex-basis: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap;
  margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: var(--muted);
}
.foot .cover-credit { white-space: nowrap; }

/* ── Logo page ──────────────────────────────────────── */
.crumbs { padding: 28px 0 0; font-size: 14px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.item { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; padding: 28px 0 24px; align-items: start; }
.stage {
  position: relative; aspect-ratio: 4 / 3; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; padding: 16% 18%;
  transition: background .25s, border-color .25s;
}
.stage.on-dark { border-color: transparent; }
.stage img { width: 100%; height: 100%; object-fit: contain; }
.stage.dark { background: #202a44; border-color: #202a44; }
.stage.dark img { filter: brightness(0) invert(1); }
.stage.grid {
  background-color: #fff;
  background-image: linear-gradient(45deg, #f0ede8 25%, transparent 25%), linear-gradient(-45deg, #f0ede8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0ede8 75%), linear-gradient(-45deg, transparent 75%, #f0ede8 75%);
  background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}
.stage-tools {
  position: absolute; bottom: 14px; inset-inline-start: 14px; display: flex; gap: 4px;
  background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 10px; padding: 3px;
}
.stage-tools button { width: 30px; height: 26px; border-radius: 7px; display: grid; place-items: center; }
.stage-tools button.on { background: var(--ink); }
.stage-tools i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-2); display: block; }
.stage-tools button.on i { border-color: #fff; }

.info h1 { margin: 0; font-size: 34px; line-height: 1.25; font-weight: 600; }
.info .en { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; }
.meta a, .meta span { padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.meta a:hover { border-color: var(--ink); color: var(--ink); }

.versions { display: flex; gap: 6px; margin-top: 26px; }
.versions button { padding: 7px 14px; border-radius: 9px; font-size: 14px; border: 1px solid var(--line-2); background: #fff; }
.versions button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.dl { margin-top: 28px; border-top: 1px solid var(--line); }
.dl-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.dl-row .fmt {
  width: 52px; height: 40px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card);
  display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; flex: none;
}
.dl-row b { font-weight: 500; display: block; }
.dl-row small { color: var(--muted); font-size: 13px; }
.dl-row .btn { margin-inline-start: auto; }
.sizes { display: flex; gap: 4px; margin-inline-start: auto; }
.sizes button {
  height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); font-size: 13px;
}
.sizes button:hover { border-color: var(--ink); }
.note { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.note b { color: var(--ink-2); font-weight: 500; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--on-ink); padding: 12px 20px; border-radius: 12px; font-size: 14px;
  transition: opacity .25s, transform .25s; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Logo page: versions, sizes, history */
.label {
  display: flex; align-items: center; gap: 12px; margin: 30px 0 12px;
  font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em;
}
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-top: 22px; }
.seg button { padding: 6px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--on-ink); }
.seg.small { margin: 0 0 0 0; margin-inline-start: auto; }
.seg.small button { padding: 4px 10px; font-size: 12px; }
.kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kind { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--ink-2); text-align: center; line-height: 1.35; }
.kind .sw {
  aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; padding: 18%; transition: box-shadow .15s;
}
.kind.dark .sw { background: #202a44; border-color: #202a44; }
.kind .sw img { width: 100%; height: 100%; object-fit: contain; }
.kind:hover .sw { box-shadow: 0 0 0 2px var(--line-2); }
.kind.on .sw { box-shadow: 0 0 0 2px var(--ink); }
.kind.on { color: var(--ink); }
.dl { margin-top: 0; }
.dl-row button.btn { margin-inline-start: auto; }
.all {
  width: 100%; margin-top: 14px; height: 46px; border-radius: 999px;
  border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 14px;
}
.all:hover { border-color: var(--ink); color: var(--ink); }

.history { padding: 8px 0 0; border-top: 1px solid var(--line); margin-top: 24px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.timeline li { display: flex; flex-direction: column; gap: 8px; width: 200px; font-size: 13px; color: var(--ink-2); }
.timeline .sw { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; padding: 18%; }
.timeline .sw img { width: 100%; height: 100%; object-fit: contain; }
.timeline li:not(.now) .sw { opacity: .75; }
.timeline .now .when { color: var(--ink); font-weight: 500; }
.extras { align-items: flex-start; }
.extras .sw { overflow: hidden; }
.extras .sw img { min-width: 0; min-height: 0; }
.extras .sw.dark { background: #202a44; border-color: #202a44; }
.extras .sw.full { padding: 10%; }
.extras li .sw { opacity: 1; }
.timeline .link { align-self: flex-start; }
.timeline .empty { width: auto; flex: 1; align-self: center; color: var(--muted); max-width: 360px; line-height: 1.7; }
.link { color: var(--ink-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-align: start; }
.link:hover { color: var(--red); }
@media (max-width: 720px) {
  .kinds { grid-template-columns: repeat(2, 1fr); }
  .label { flex-wrap: wrap; }
  .seg.small { margin-inline-start: 0; }
  .timeline li { width: calc(50% - 8px); }
}

/* Person page */
.portrait-stage .frame { border-radius: 20px; }
.portrait-stage .frame img { transition: none; }
.seg.flat { margin-top: 0; }
.role { color: var(--ink); font-size: 17px; margin-top: 8px; }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.roles li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.6; }
.roles .yr { font-variant-numeric: tabular-nums; }
.roles li.now { color: var(--ink); }
.roles li.now .yr { color: var(--red); font-weight: 500; }
.timeline .pick { display: block; }
.timeline .pick .frame { border-radius: 12px; }
@media (max-width: 720px) { .roles li { grid-template-columns: 96px 1fr; } }

/* Calendar */
.page-head { padding: 64px 0 28px; }
.page-head h1 { margin: 0; font-size: clamp(32px, 4vw, 44px); font-weight: 600; line-height: 1.2; }
.page-head p { margin: 10px 0 24px; max-width: 620px; color: var(--ink-2); }
.page-head p.mail-line { margin-top: -14px; font-size: 14.5px; }
.page-head p.mail-line a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.filters { flex-wrap: wrap; }
.filters button { display: inline-flex; align-items: center; gap: 7px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.bh { background: var(--red); }
.dot.gcc { background: #b48a3c; }
.dot.world { background: #3d6db3; }
.dot.isl { background: #2f8a5b; }
.month { padding-top: 36px; }
.month h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.month h2 span { color: var(--muted); font-weight: 400; }
.month ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ev {
  display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.ev .d { font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ev b { display: block; font-weight: 500; font-size: 16px; }
.ev small { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 13px; color: var(--muted); }
.ev .when { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.ev .acts { display: flex; align-items: center; gap: 18px; justify-content: flex-end; min-width: 220px; }
.kit { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.kit:hover { color: var(--ink); }
.kit-logo { width: 54px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); display: grid; place-items: center; overflow: hidden; }
.kit-logo img { width: 80% !important; max-height: 70%; object-fit: contain; }
@media (max-width: 720px) {
  .page-head { padding: 40px 0 16px; }
  .ev { grid-template-columns: 48px 1fr; gap: 6px 14px; }
  .ev .d { grid-row: span 2; font-size: 24px; }
  .ev .when, .ev .acts { grid-column: 2; justify-content: flex-start; min-width: 0; }
}

/* Upload */
.wrap.narrow { max-width: 860px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.field[hidden] { display: none; }
.field select {
  height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font: 400 15px var(--font);
}
.drop {
  margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 56px 24px; border: 1.5px dashed var(--line-2); border-radius: 18px; background: var(--card); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop[hidden] { display: none; }
.drop:hover, .drop.over { border-color: var(--ink); }
.drop b { font-weight: 500; font-size: 17px; }
.drop small { color: var(--muted); }
.drop .link { margin-top: 10px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 28px 170px 1fr; gap: 12px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
}
.steps li[hidden] { display: none; }
.steps li::before { content: counter(s); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps b { font-weight: 500; color: var(--ink); }
.kinds.big { margin-top: 24px; }
.publish { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.photo-rule { margin-top: 56px; }
@media (max-width: 720px) { .steps li { grid-template-columns: 22px 1fr; } .steps li span { grid-column: 2; } }

/* Section pages */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-box {
  display: flex; align-items: center; gap: 10px; flex: 1; max-width: 420px; height: 46px; padding: 0 18px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted);
}
.filter-box:focus-within { border-color: var(--ink); }
.filter-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 15px var(--font); color: var(--ink); }
.archive { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.side button {
  display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px;
  font-size: 14px; color: var(--ink-2); text-align: start;
}
.side button i { font-style: normal; font-size: 12px; color: var(--muted); }
.side button:hover { background: var(--card); color: var(--ink); }
.side button.on { background: var(--ink); color: var(--on-ink); }
.side button.on i { color: inherit; opacity: .6; }
.count { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.count + .shelf { margin-top: 0; }
.none { color: var(--muted); padding: 40px 0; }
.shelf.cols-4 { grid-template-columns: repeat(4, 1fr); }
.guides.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.people.cols-5 { grid-template-columns: repeat(5, 1fr); gap: 28px 20px; }
.people.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
@media (max-width: 1080px) {
  .archive { grid-template-columns: 1fr; gap: 16px; }
  .side { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: -32px; padding-inline: 32px; }
  .side button { flex: none; gap: 8px; }
  .shelf.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .people.cols-5, .people.cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .side { margin-inline: -16px; padding-inline: 16px; }
  .shelf.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .guides.cols-3 { grid-template-columns: 1fr; }
  .people.cols-5, .people.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Media & influencers */
.creators { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.creator {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 14px; align-items: center;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.creator:hover { border-color: var(--line-2); box-shadow: 0 10px 30px -18px rgba(32,42,68,.35); }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--frame); color: var(--ink); font-weight: 600; font-size: 16px;
}
.avatar.big { width: 88px; height: 88px; font-size: 26px; }
.avatar { overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.who b { display: block; font-weight: 600; font-size: 16px; }
.who small { color: var(--muted); font-size: 13px; }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.chips i { font-style: normal; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.plats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); }
.plats span { display: inline-flex; align-items: center; gap: 6px; }
.plats em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--ink); }
.plats span.lead { color: var(--red); }   /* not .top: that is the header's class */
.band.small-band { margin-top: 40px; padding: 28px 32px; }
.band.small-band h3 { font-size: 20px; }

.profile { display: flex; align-items: center; gap: 24px; padding: 28px 0 8px; }
.profile h1 { margin: 0; font-size: 34px; font-weight: 600; line-height: 1.2; }
.profile .en { color: var(--ink-2); margin-top: 4px; }
.profile .chips { margin-top: 12px; }
.about { color: var(--ink-2); font-size: 17px; line-height: 1.8; margin: 16px 0 0; }
.reach { border-top: 1px solid var(--line); }
.plat-row {
  display: grid; grid-template-columns: 40px 1fr auto 110px; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.plat-row .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink); }
.plat-row.lead .ic { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.plat-row .nm b { display: block; font-weight: 500; }
.plat-row .nm small { color: var(--muted); font-size: 13px; }
.plat-row .num { text-align: center; }
.plat-row .num b { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; }
.plat-row .num small { font-size: 12px; color: var(--muted); }
.plat-row:hover .nm b { color: var(--red); }
.badge { font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red); white-space: nowrap; }
.contact { display: flex; flex-wrap: wrap; gap: 10px; }
.contact .btn { gap: 8px; }

.form .field input, .form .field select {
  height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font: 400 15px var(--font); width: 100%;
}
.form .field input:focus, .form .field select:focus { outline: 0; border-color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.consent.inline { margin-top: 0; align-self: end; padding-bottom: 12px; }
@media (max-width: 720px) { .row3 { grid-template-columns: 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label, .consent { cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.checks input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.checks input:disabled + span { opacity: .4; }
.checks input:focus-visible + span { box-shadow: 0 0 0 3px var(--line); }
.plat-inputs { display: grid; gap: 8px; }
.pi { display: grid; grid-template-columns: 36px 90px 1fr 140px; gap: 10px; align-items: center; }
.pi .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); }
.pi .pn { font-size: 14px; color: var(--ink-2); }
.pi input { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 400 14px var(--font); min-width: 0; }
.pi input:focus { outline: 0; border-color: var(--ink); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.consent input { margin-top: 5px; accent-color: var(--ink); }
@media (max-width: 720px) {
  .plat-row { grid-template-columns: 40px 1fr 90px; }
  .plat-row .badge { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .pi { grid-template-columns: 36px 1fr 1fr; }
  .pi .pn { display: none; }
  .profile { gap: 16px; }
  .profile h1 { font-size: 27px; }
  .avatar.big { width: 68px; height: 68px; font-size: 21px; }
}

/* Influencer: most viewed + brands */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.video b { display: block; margin-top: 10px; font-size: 14px; font-weight: 500; line-height: 1.5; }
.video small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.video .cover { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--frame); }
.video .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.video:hover .cover img { transform: scale(1.04); }
.video .views {
  position: absolute; bottom: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12.5px; font-weight: 500;
  backdrop-filter: blur(6px);
}
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.brand-tile {
  position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: center;
}
.brand-tile img { max-height: 70%; }
.brand-tile.text { align-content: center; gap: 8px; }
.brand-tile .app-ic { width: 52px; height: 52px; border-radius: 13px; max-height: none; box-shadow: 0 0 0 1px var(--line); }
.brand-tile.text b { font-size: 14px; font-weight: 500; }
.brand-tile.text b { font-weight: 600; font-size: 15px; }
.brand-tile.text small { font-size: 12px; color: var(--muted); }
a.brand-tile:hover { border-color: var(--line-2); box-shadow: 0 10px 30px -18px rgba(32,42,68,.35); }
.brand-tile em { position: absolute; top: 8px; inset-inline-end: 8px; font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red); }
@media (max-width: 720px) { .videos { grid-template-columns: repeat(2, 1fr); } }

/* Influencer profile: actions, numbers, shortlist */
.profile .grow { flex: 1; min-width: 0; }
.profile-cta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.verified { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-start: 8px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 12px; vertical-align: middle; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.stats > div { padding: 18px 20px; border-inline-start: 1px solid var(--line); }
.stats > div:first-child { border-inline-start: 0; }
.stats b { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 600; line-height: 1.3; }
.stats b.with-ic { font-size: 18px; min-height: 31px; }
.stats small { font-size: 12.5px; color: var(--muted); }
.stats.small { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.price { margin: 0 0 12px; color: var(--ink-2); }
.price b { color: var(--ink); }

.creator { position: relative; }
.list-btn {
  display: inline-grid; place-items: center; cursor: pointer; user-select: none;
  transition: background .15s, color .15s, border-color .15s;
}
.creator .list-btn {
  position: absolute; top: 14px; inset-inline-end: 14px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: 16px; background: var(--card);
}
.list-btn:hover { border-color: var(--ink); color: var(--ink); }
.list-btn.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.list-btn.big { height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink); background: var(--card); }
.list-btn.big.on { background: var(--soft); color: var(--ink); border-color: var(--line-2); }
.list-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px;
  background: var(--ink); color: var(--on-ink); border-radius: 999px; font-size: 14px;
  box-shadow: 0 18px 40px -16px rgba(32,42,68,.6);
}
[dir="rtl"] .list-bar { padding: 8px 18px 8px 8px; }
.list-bar .faces { display: flex; }
.list-bar > span { white-space: nowrap; }
.list-bar .avatar { width: 30px; height: 30px; font-size: 11px; border: 2px solid var(--ink); margin-inline-start: -8px; }
.list-bar .faces .avatar:first-child { margin-inline-start: 0; }
.list-bar .btn { height: 36px; background: var(--on-ink); color: var(--ink); }
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .profile { flex-wrap: wrap; }
  .profile-cta { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-inline-start: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sticky-cta {
    display: flex; gap: 8px; position: fixed; inset-inline: 12px; bottom: 12px; z-index: 30;
    padding: 8px; border-radius: 999px; background: var(--card); box-shadow: 0 12px 30px -10px rgba(32,42,68,.35);
  }
  .sticky-cta .btn { flex: 1; justify-content: center; }
  body:has(.sticky-cta) .list-bar { display: none; }
  body:has(.sticky-cta) .foot { padding-bottom: 100px; }
}

/* Compare */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare th { width: 170px; color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.compare td { min-width: 200px; color: var(--ink); line-height: 1.6; }
.compare td + td { border-inline-start: 1px solid var(--line); }
.compare .who-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.compare .who-col b { font-size: 17px; font-weight: 600; }
.compare .who-col small, .compare small, .muted { color: var(--muted); }
.compare b.big { font-size: 22px; font-weight: 600; }
.compare .with-ic { display: inline-flex; align-items: center; gap: 6px; }
.print-only { display: none; }
@media print {
  .top, .foot, .no-print, .list-bar, .toast { display: none !important; }
  .print-only { display: block; margin-top: 6px; color: #8c90a0; }
  body { background: #fff; }
  .page-head { padding: 0 0 16px; }
  .compare-wrap { overflow: visible; border-color: #ddd; }
  .compare td { min-width: 0; }
  @page { size: A4 landscape; margin: 14mm; }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav { display: none; }
  .shelf { grid-template-columns: repeat(4, 1fr); }
  .people { grid-template-columns: repeat(3, 1fr); }
  .occ { grid-template-columns: repeat(2, 1fr); }
  .item { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: 64px; gap: 16px; }
  .brand img { height: 30px; }
  .top-end .btn { display: none; }
  .hero { padding: 56px 0 32px; }
  .hero p { font-size: 16px; }
  .search-box { height: 58px; }
  .search-box kbd { display: none; }
  .counts { gap: 22px; flex-wrap: wrap; }
  .counts b { font-size: 22px; }
  .sec { padding: 52px 0; }
  .sec-head { flex-wrap: wrap; }
  .sec-head h2 { font-size: 23px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .tabs button { white-space: nowrap; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .guides { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .occ { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .band .btn { margin-inline-start: 0; }
  .info h1 { font-size: 27px; }
  .dl-row { flex-wrap: wrap; }
  .sizes { margin-inline-start: 0; width: 100%; }
  .sizes button { flex: 1; }
}


/* ── Photo slideshow hero ───────────────────────────── */
.hero.photo {
  position: relative; overflow: hidden; color: #fff;
  margin: -76px 0 0; border-radius: 0;
  min-height: calc(min(56vh, 540px) + 76px); display: flex; align-items: center;
  padding: 116px 0 72px; background: #1b1c1f;
}
.slides { position: absolute; inset: 0; }
.slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s ease, transform 8s ease-out;
}
.slides img.on { opacity: 1; transform: scale(1); }
.slides::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.18) 26%, rgba(0,0,0,.22) 60%, rgba(0,0,0,.5) 100%);
}
.hero.photo .wrap { position: relative; width: 100%; }
.hero.photo h1 { text-shadow: 0 2px 24px rgba(0,0,0,.3); font-size: clamp(30px, 4.2vw, 50px); text-wrap: balance; }
.hero.photo .search { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero.photo .search { color: var(--ink); }
.hero.photo .search-box { border-color: transparent; box-shadow: 0 20px 48px -20px rgba(0,0,0,.5); }
.hero-foot {
  position: absolute; inset-inline: 32px; bottom: 20px; z-index: 1;
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
}
.dots { display: flex; gap: 6px; }
.dots button { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.4); transition: background .3s, width .3s; }
.dots button.on { background: #fff; width: 36px; }
@media (prefers-reduced-motion: reduce) { .slides img { transition: opacity .6s; transform: none; } }
@media (max-width: 720px) {
  .hero.photo { margin-top: -64px; min-height: calc(50svh + 64px); padding: 96px 0 64px; align-items: flex-end; }
  .hero-foot { inset-inline: 18px; bottom: 16px; }
}

/* Homepage: header sits on the photo until you scroll */
.overlay .top:not(.scrolled) { background: transparent; backdrop-filter: none; border-color: transparent; }
.overlay .top:not(.scrolled) .brand img { filter: none; }
.overlay .top:not(.scrolled) .nav a,
.overlay .top:not(.scrolled) .lang { color: rgba(255,255,255,.88); }
.overlay .top:not(.scrolled) .nav a:hover,
.overlay .top:not(.scrolled) .nav a.on,
.overlay .top:not(.scrolled) .lang:hover { color: #fff; background: transparent; }
.overlay .top:not(.scrolled) .mode { color: #fff; border-color: rgba(255,255,255,.45); }
.overlay .top:not(.scrolled) .btn { background: #fff; color: #202a44; }
.top, .top .brand img, .top .nav a, .top .lang, .top .mode, .top .btn { transition: background-color .25s, color .25s, border-color .25s, filter .25s; }


/* Influencer profile: section titles like the site headings, with a rule to the edge */
.creator-page .label {
  margin: 48px 0 16px; font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: 0;
}
.creator-page .label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Breadcrumbs: same quiet rule as the section titles */
.crumbs { padding: 28px 0 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.crumbs span:last-child { color: var(--ink); font-weight: 500; }
.page-head h1 + * { margin-top: 24px; }

/* Usage rule under every download */
.use-note {
  margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--soft);
  font-size: 13px; line-height: 1.7; color: var(--ink-2);
}

/* Header: add-a-file icon with a hover label */
.add-ic {
  position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--on-ink); transition: opacity .15s;
}
.add-ic:hover { opacity: .88; }
.add-ic::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px);
  padding: 6px 12px; border-radius: 8px; background: var(--ink); color: var(--on-ink);
  font-size: 12.5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.add-ic:hover::after, .add-ic:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.overlay .top:not(.scrolled) .add-ic { background: #fff; color: #202a44; }
@media (max-width: 720px) { .top-end .add-ic { display: grid; } }

/* Phone header: everything fits on one line (icon-only day/night, tighter spacing) */
@media (max-width: 720px) {
  .top-end { gap: 6px; }
  .top-end .lang { padding: 6px 6px; font-size: 13px; }
  .mode { width: 34px; padding: 0; justify-content: center; }
  .mode span { display: none; }
  .add-ic { width: 36px; height: 36px; }
  .add-ic::after { left: auto; inset-inline-end: 0; transform: translateY(-4px); }
  .add-ic:hover::after, .add-ic:focus-visible::after { transform: none; }
}


/* Page numbers (logos page) */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 36px 0 8px; }
.pager button { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; }
.pager button:hover { border-color: var(--ink-2); color: var(--ink); }
.pager button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pager .gap { color: var(--muted); padding: 0 4px; }
.tile .tag { inset-inline-end: auto; inset-inline-start: 10px; }   /* the hover label sits on the other side */

/* Terms: plain reading page */
.doc { font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.doc h2 { margin: 40px 0 8px; font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.doc p { margin: 0 0 12px; max-width: 68ch; }
.doc .muted { margin-top: 40px; color: var(--muted); font-size: 14px; }
.terms { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.terms li { counter-increment: t; border-top: 1px solid var(--line); padding: 4px 0 8px; }
.terms li:first-child { border-top: 0; }
.terms h2::before { content: counter(t); display: inline-block; min-width: 1.4em; margin-inline-end: 6px; color: var(--muted); font-weight: 500; }
.terms h2 { margin-top: 24px; }

/* Contact form */
.form .field textarea {
  padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line-2); resize: vertical; min-height: 140px;
  background: var(--card); color: var(--ink); font: 400 15px/1.7 var(--font); width: 100%;
}
.form .field textarea:focus { outline: 0; border-color: var(--ink); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Phones: no logo or picture may push its box wider than the screen */
img[data-logo], .brand-tile img { max-width: 100%; }   /* (not portraits: their photo is zoomed past the frame on purpose) */
.frame, .stage, .brand-tile, .person, .guide, .creator, .video { min-width: 0; }
.seg button { white-space: nowrap; }
@media (max-width: 720px) {
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg button { padding: 6px 12px; }
}
/* "In the same field": three across, two on tablets, one on phones */
.creators.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .creators.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .creators.cols-3 { grid-template-columns: 1fr; } }

/* Search: results grouped by kind */
.results .grp { padding: 10px 14px 4px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.results .grp:not(:first-child) { border-top: 1px solid var(--line); margin-top: 4px; }
.results .thumb.face { border-radius: 50%; overflow: hidden; padding: 0; }
.results .thumb.face img, .results .thumb.face .avatar { width: 100% !important; height: 100%; max-height: none; object-fit: cover; object-position: 50% 20%; }
.results .thumb.face .avatar { display: grid; place-items: center; border: 0; }
.results .thumb.cover { padding: 0; overflow: hidden; }
.results .thumb.cover img { width: 100% !important; height: 100%; max-height: none; object-fit: cover; }
.results a.all { display: block; text-align: center; font-weight: 500; color: var(--ink); border-top: 1px solid var(--line); margin-top: 4px; padding: 12px; }
.results { max-height: min(70vh, 620px); overflow-y: auto; }
.page-search { margin-top: 18px; max-width: 720px; position: relative; }
.res + .res { padding-top: 0; }
.res h2 .n { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 400; margin-inline-start: 6px; }
/* the search list may hang below the photo; only the photos themselves are clipped */
.hero.photo { overflow: visible; z-index: 5; }
.slides { overflow: hidden; }
