/* San Mai careers, in the new customer site's world (/home/, /order/, the
   club page): brand blue bar and hero with the real cut-out plates, a cool
   light page, white cards, blue pill actions and one pink moment (the
   "application received" card). No yellow, no beige.
   Shapes: actions pill, cards 18px, inputs 12px. */

:root {
  --blue: #004190;
  --blue-press: #00357a;
  --blue-deep: #00367a;
  --blue-ink: #002a61;
  --blue-tint: #e3ecf9;
  --blue-tint-2: #cfe0f7;
  --paper-2: #dfe5f7;
  --peri-light: #c6cced;
  --bg: #f3f5fb;
  --surface: #ffffff;
  --ink: #0e1a33;
  --ink-2: #4a5570;
  --ink-3: #6b7590;
  --line: #dde3f0;
  --pink: #ff8fc0;
  --pink-ink: #002a61;
  --danger: #b42318;
  --radius: 18px;
  --radius-in: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font-latin: "Archivo", ui-sans-serif, sans-serif;
  --font-he: "Assistant", "Archivo", ui-sans-serif, sans-serif;
  --gutter: 20px;
  --bar-h: 60px;
  color-scheme: light;
}
@media (max-width: 359px) { :root { --gutter: 14px; } }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ============== Base ============== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-latin); font-size: 16px; line-height: 1.55;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html[dir="rtl"] body { font-family: var(--font-he); font-size: 17px; }
::selection { background: var(--blue-tint-2); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
a { color: inherit; text-underline-offset: 0.2em; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.app { min-height: 100dvh; display: flex; flex-direction: column; }
.main { flex: 1; }
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 720px; }

/* ============== Bar (same as /order/ and the club page) ============== */
.bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px;
  height: var(--bar-h); box-sizing: content-box;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: var(--blue); color: #fff;
}
.bar-home { display: inline-flex; align-items: center; min-height: 44px; margin-inline-end: auto; border-radius: 8px; }
.bar-home img { height: 38px; width: auto; }
.a11y-slot { display: contents; }
.bar-lang {
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; flex: none;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 800; font-size: 0.9rem;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.bar-lang:lang(he) { font-family: var(--font-he); font-size: 1rem; }
.bar-lang:lang(en) { font-family: var(--font-latin); }
@media (hover: hover) and (pointer: fine) { .bar-lang:hover { background: rgba(255, 255, 255, 0.2); } }
.bar :focus-visible, .hero :focus-visible { outline-color: var(--pink); }

/* ============== Hero ============== */
.hero { background: var(--blue); color: #fff; padding-top: clamp(24px, 6vw, 64px); }
.hero-inner { max-width: 760px; }
.hero h1 {
  font-weight: 700; font-stretch: 88%;
  font-size: clamp(2.6rem, 12vw, 5rem); line-height: 0.96; letter-spacing: -0.035em;
}
html[dir="rtl"] .hero h1 { font-weight: 800; font-size: clamp(2.4rem, 11vw, 4.6rem); line-height: 1.04; letter-spacing: 0; }
.hero-inner p { margin-top: 16px; max-width: 40ch; font-size: clamp(1.06rem, 2vw, 1.25rem); line-height: 1.5; color: var(--paper-2); text-wrap: pretty; }

/* Colour strip: real cut-out plates overlapping, hanging over the edge of the
   blue into the page. Clipped sideways, never scrolls. */
.plates {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 760px; margin: clamp(20px, 4vw, 40px) auto -52px; padding: 0 4px; overflow-x: clip;
  pointer-events: none; direction: ltr;
}
.plate {
  width: 146%; max-width: none; height: auto; aspect-ratio: 1; margin-inline: -23%; object-fit: contain;
  transform: translateY(var(--y)) rotate(var(--r));
  filter: drop-shadow(0 16px 18px rgba(0, 18, 58, 0.34));
  animation: plate-in 900ms var(--ease-out) both; animation-delay: var(--d);
}
.plate:nth-child(1) { --y: 10px; --r: -10deg; --d: 60ms; z-index: 1; }
.plate:nth-child(2) { --y: -6px; --r: 8deg; --d: 120ms; z-index: 2; }
.plate:nth-child(3) { --y: 14px; --r: -4deg; --d: 180ms; z-index: 3; }
.plate:nth-child(4) { --y: -4px; --r: 11deg; --d: 240ms; z-index: 2; }
.plate:nth-child(5) { --y: 8px; --r: -8deg; --d: 300ms; z-index: 1; }
@keyframes plate-in { from { opacity: 0; transform: translateY(calc(var(--y) + 28px)) rotate(calc(var(--r) - 14deg)) scale(0.94); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .plate { animation: fade 300ms ease both; } }
html.a11y-no-motion .plate { animation: none; }

/* ============== Sections ============== */
.section-title {
  font-weight: 700; font-stretch: 90%; font-size: clamp(1.6rem, 6vw, 2.3rem);
  line-height: 1.05; letter-spacing: -0.025em; color: var(--blue);
}
html[dir="rtl"] .section-title { font-weight: 800; letter-spacing: 0; line-height: 1.12; }

.positions { padding-top: 88px; padding-bottom: 48px; }
.position-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .position-list { grid-template-columns: 1fr 1fr; } }
.position-card {
  width: 100%; height: 100%; display: flex; align-items: center; gap: 16px; text-align: start;
  padding: 20px 18px 20px 20px; border: 0; border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 1px 2px rgba(14, 26, 51, 0.05), 0 8px 24px -14px rgba(0, 42, 97, 0.22);
  transition: transform 140ms var(--ease-out), box-shadow 160ms ease;
  touch-action: manipulation;
}
html[dir="rtl"] .position-card { padding: 20px 20px 20px 18px; }
.position-card:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .position-card:hover { box-shadow: inset 0 0 0 1.5px var(--blue), 0 10px 28px -14px rgba(0, 42, 97, 0.3); }
  .position-card:hover .position-arrow { background: var(--blue); color: #fff; }
}
.position-body { flex: 1; min-width: 0; display: grid; gap: 8px; justify-items: start; }
.position-title { font-weight: 700; font-size: 1.24rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
html[dir="rtl"] .position-title { font-weight: 800; letter-spacing: 0; font-size: 1.3rem; }
.position-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 0.92rem; color: var(--ink-2); }
.position-meta-item { display: inline-flex; align-items: center; gap: 10px; }
.position-meta-item + .position-meta-item::before { content: ""; width: 4px; height: 4px; border-radius: 99px; background: var(--ink-3); }
.position-arrow {
  flex: none; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue); font-size: 20px;
  transition: background-color 160ms ease, color 160ms ease;
}

/* Flat tag, the site's label style (pale blue note). */
.dept-tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px;
  background: var(--blue-tint); color: var(--blue);
  font-family: var(--font-latin); font-weight: 700; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
}
html[dir="rtl"] .dept-tag { font-family: var(--font-he); font-weight: 800; font-size: 13px; letter-spacing: 0; text-transform: none; }

/* Loading: card-shaped skeletons. Error / empty: one calm block. */
.skeleton { height: 108px; border-radius: var(--radius); background: var(--surface); padding: 22px 20px; display: grid; gap: 12px; align-content: start; box-shadow: 0 1px 2px rgba(14, 26, 51, 0.05); }
.skeleton span { display: block; height: 14px; border-radius: 99px; background: linear-gradient(90deg, #e9edf6 0%, #f4f6fb 50%, #e9edf6 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton span:first-child { width: 60%; height: 20px; }
.skeleton span:last-child { width: 38%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton span { animation: none; } }
html.a11y-no-motion .skeleton span { animation: none; }
.state-block {
  margin-top: 20px; padding: 32px 22px; border-radius: var(--radius); background: var(--surface);
  display: grid; gap: 14px; justify-items: center; text-align: center; color: var(--ink-2);
}
.state-block i { font-size: 30px; color: var(--blue); }
.state-block p { max-width: 36ch; font-size: 1.02rem; }

/* What we do here: plain facts, one per line. */
.place { padding-top: 24px; padding-bottom: 72px; }
.place-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.place-list li {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-weight: 700; font-stretch: 92%; font-size: clamp(1.2rem, 4.6vw, 1.6rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink);
  text-wrap: pretty;
}
html[dir="rtl"] .place-list li { font-weight: 700; letter-spacing: 0; }
.place-address { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); }
.place-address i { color: var(--blue); font-size: 20px; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, opacity 160ms ease;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-quiet { background: var(--blue-tint); color: var(--blue); }
.btn-line { background: transparent; color: var(--pink-ink); box-shadow: inset 0 0 0 1.5px var(--pink-ink); }
.btn-lg { min-height: 56px; font-size: 1.04rem; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) { background: var(--blue-press); }
  .btn-quiet:hover { background: var(--blue-tint-2); }
  .btn-line:hover { background: rgba(0, 42, 97, 0.08); }
}
.spin { font-size: 20px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 12px -2px; padding: 0 2px;
  border: 0; background: transparent; color: var(--blue); font-weight: 700; font-size: 0.95rem;
}
.back-link i { font-size: 18px; }
@media (hover: hover) and (pointer: fine) { .back-link:hover { text-decoration: underline; } }

/* ============== Details ============== */
.detail-page { padding: 16px 0 48px; }
.detail-header { display: grid; gap: 12px; justify-items: start; margin-bottom: 24px; }
.detail-header h1, .apply-header h1 {
  font-weight: 700; font-stretch: 88%; font-size: clamp(2.1rem, 9vw, 3.4rem);
  line-height: 1; letter-spacing: -0.03em; color: var(--blue);
}
html[dir="rtl"] .detail-header h1, html[dir="rtl"] .apply-header h1 { font-weight: 800; letter-spacing: 0; line-height: 1.1; }
.detail-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 880px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
  .detail-aside { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top) + 24px); }
  .detail-content { grid-column: 1; grid-row: 1; }
}
.detail-aside {
  padding: 6px 20px 20px; border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 1px 2px rgba(14, 26, 51, 0.05), 0 8px 24px -14px rgba(0, 42, 97, 0.22);
  display: grid; gap: 16px;
}
.facts { margin: 0; }
.aside-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.aside-row:last-child { border-bottom: 0; }
.aside-row dt { margin: 0; color: var(--ink-2); font-weight: 600; font-size: 0.92rem; flex: none; }
.aside-row dd { margin: 0; color: var(--ink); font-weight: 700; text-align: end; }
.aside-apply { display: none; }
@media (min-width: 880px) { .aside-apply { display: inline-flex; } }

.detail-content { display: grid; gap: 32px; }
.detail-content h2 { font-size: 1.2rem; font-weight: 800; color: var(--blue); margin-bottom: 10px; line-height: 1.2; }
.detail-content p { font-size: 1.04rem; line-height: 1.7; max-width: 64ch; white-space: pre-wrap; text-wrap: pretty; }
.detail-content ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 64ch; }
.detail-content li { position: relative; padding-inline-start: 22px; font-size: 1.02rem; line-height: 1.6; }
.detail-content li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 99px; background: var(--pink); box-shadow: inset 0 0 0 1.5px var(--pink-ink); }

/* Phones: apply stays in reach at the bottom. */
.apply-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: rgba(243, 245, 251, 0.94); border-top: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
}
@media (min-width: 880px) { .apply-bar { display: none; } }
@media (prefers-reduced-transparency: reduce) { .apply-bar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* ============== Apply form ============== */
.apply-page { padding: 16px 0 64px; }
.apply-header { display: grid; gap: 12px; justify-items: start; margin-bottom: 24px; }
.apply-header h1 span { color: var(--ink); }
.apply-header p { color: var(--ink-2); font-size: 1.04rem; max-width: 46ch; }

.form { display: grid; gap: 14px; }
.form-section {
  margin: 0; min-width: 0; border: 0; padding: 20px 18px;
  border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 1px 2px rgba(14, 26, 51, 0.05), 0 8px 24px -14px rgba(0, 42, 97, 0.22);
}
.form-section legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-weight: 800; font-size: 1.22rem; line-height: 1.2; color: var(--blue); }
.form-section legend + * { clear: both; }
@media (min-width: 640px) { .form-section { padding: 26px 26px 24px; } }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 0.94rem; }
.field input, .field textarea {
  display: block; width: 100%; min-width: 0; margin: 0; padding: 0 14px; min-height: 52px;
  border-radius: var(--radius-in); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 16px; line-height: normal;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  scroll-margin: calc(var(--bar-h) + env(safe-area-inset-top) + 24px) 0 24px;
}
.field textarea { padding: 12px 14px; min-height: 120px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 65, 144, 0.16); }
.field.error input, .field.error textarea { border-color: var(--danger); }
html[dir="rtl"] input[dir="ltr"] { text-align: right; }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); font-size: 0.88rem; font-weight: 700; line-height: 1.35; }
.field-error::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.5em; border-radius: 99px; background: currentColor; }

/* Date: no intrinsic width on iOS, value start-aligned, and while empty the
   value text (iOS shows today's date) hides behind our placeholder. */
.date-wrap { position: relative; min-width: 0; }
.date-wrap input { position: relative; -webkit-appearance: none; appearance: none; padding-inline-end: 50px; text-align: start; cursor: pointer; }
.date-wrap input::-webkit-date-and-time-value { text-align: start; margin: 0; }
.date-wrap input::-webkit-datetime-edit { padding: 0; }
.date-wrap input::-webkit-calendar-picker-indicator { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 50px; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.date-wrap.is-empty input:not(:focus) { color: transparent; -webkit-text-fill-color: transparent; }
.date-wrap.is-empty input:not(:focus)::-webkit-datetime-edit { color: transparent; }
.date-wrap.is-empty input:not(:focus)::-webkit-date-and-time-value { color: transparent; }
.date-ph { position: absolute; inset-inline: 15px 50px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-wrap:not(.is-empty) .date-ph, .date-wrap input:focus ~ .date-ph { display: none; }
.date-ic { position: absolute; top: 50%; inset-inline-end: 15px; transform: translateY(-50%); font-size: 21px; color: var(--blue); pointer-events: none; }

.checkbox-group { display: grid; gap: 10px; }
.checkbox {
  position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 14px 16px;
  border-radius: var(--radius-in); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: box-shadow 150ms ease, background-color 150ms ease;
  scroll-margin: calc(var(--bar-h) + env(safe-area-inset-top) + 24px) 0 24px;
}
.checkbox.checked { background: var(--blue-tint); box-shadow: inset 0 0 0 1.5px var(--blue); }
.checkbox.error { box-shadow: inset 0 0 0 1.5px var(--danger); }
.checkbox:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.checkbox-box {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--ink-3);
  background: var(--surface); color: #fff; display: grid; place-items: center; font-size: 14px;
}
.checkbox-box i { opacity: 0; transition: opacity 120ms ease; }
.checkbox.checked .checkbox-box { background: var(--blue); border-color: var(--blue); }
.checkbox.checked .checkbox-box i { opacity: 1; }
.checkbox-label { display: grid; gap: 6px; font-size: 1rem; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .checkbox:not(.checked):hover { box-shadow: inset 0 0 0 1.5px var(--blue); } }

.form-error { padding: 12px 14px; border-radius: var(--radius-in); background: #fdecea; color: var(--danger); font-weight: 700; }
.form-actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 6px; }
.form-actions .btn { width: 100%; }
@media (min-width: 560px) {
  .form-actions { flex-direction: row; justify-content: flex-end; }
  .form-actions .btn { width: auto; }
}

/* ============== Success (the pink moment) ============== */
.success-page { padding: 88px 0 72px; }
.success {
  position: relative; padding: 92px 22px 24px; border-radius: 24px;
  background: var(--pink); color: var(--pink-ink); text-align: center;
  display: grid; gap: 12px; justify-items: center; max-width: 520px; margin: 0 auto;
  animation: success-in 520ms var(--ease-out) both;
}
.success :focus-visible { outline-color: var(--pink-ink); }
.success-plate {
  position: absolute; top: -64px; left: 50%; width: 150px; height: auto; margin-left: -75px;
  filter: drop-shadow(0 16px 18px rgba(120, 20, 60, 0.28));
  transform: rotate(-10deg); animation: success-plate 900ms var(--ease-out) 80ms both;
}
.success-check {
  position: absolute; top: 44px; left: 50%; margin-left: 30px; width: 40px; height: 40px; border-radius: 999px;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 0 0 4px var(--pink);
  animation: success-check 420ms var(--ease-out) 420ms both;
}
.success h1 { font-weight: 800; font-stretch: 88%; font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.02; letter-spacing: -0.03em; }
html[dir="rtl"] .success h1 { letter-spacing: 0; line-height: 1.1; }
.success h1:focus { outline: none; }
.success p { max-width: 34ch; font-size: 1.04rem; line-height: 1.5; }
.success-actions { display: grid; gap: 10px; width: 100%; margin-top: 8px; }
@keyframes success-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes success-plate { from { opacity: 0; transform: translateY(24px) rotate(-40deg) scale(0.9); } }
@keyframes success-check { from { opacity: 0; transform: scale(0.6); } }
@media (prefers-reduced-motion: reduce) { .success, .success-plate, .success-check { animation: fade 240ms ease both; } }
html.a11y-no-motion .success, html.a11y-no-motion .success-plate, html.a11y-no-motion .success-check { animation: none; }

/* ============== Footer ============== */
.footer { margin-top: auto; background: var(--blue-ink); color: #fff; padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer img { height: 56px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper-2); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { width: 100%; color: var(--peri-light); font-size: 0.86rem; }
.footer :focus-visible { outline-color: var(--pink); }
.app:has(.detail-page) .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
@media (min-width: 880px) { .app:has(.detail-page) .footer { padding-bottom: 36px; } }

/* ============== View change ============== */
.page { animation: fade 240ms ease both; }
html.a11y-no-motion .page { animation: none; }
