/* Built 4 Speed Tattoo
   Colors come from the shop's hand-painted sign: sign black, marigold, signal red,
   pinstripe blue and sign white. Two motifs repeat across the site: the blue
   pinstripe around panels, and the row of red dots under headings. */

:root {
  --black: #000;
  --coal: #100f0d;
  --coal-2: #1a1815;
  --line: #2e2a25;
  --gold: #e8a62b;
  --red: #d5242b;
  --blue: #1b8fd9;
  --paper: #f7f4ec;
  --body: #e4dfd4;
  --muted: #b3ab9d;
  --danger-text: #ff8f93;

  --font-display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --font-script: "Yellowtail", "Brush Script MT", cursive;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 72px;
  --wrap: 1180px;
  --radius: 14px;
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--paper); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
button { font: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; color: var(--gold); margin-top: 2rem; }
p { margin: 0 0 1.1em; max-width: 68ch; }
hr.divider { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 660px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--black); padding: .6rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- Motifs ---------- */
.rule { width: 120px; height: 10px; margin: 0 0 1.5rem; background: radial-gradient(circle, var(--red) 3.2px, transparent 3.8px) 0 50% / 20px 10px repeat-x; }
.frame { background: var(--coal); border-radius: var(--radius); box-shadow: inset 0 0 0 3px var(--black), inset 0 0 0 5px var(--blue); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block; cursor: pointer; text-align: center; text-decoration: none;
  background: var(--gold); color: var(--black); border: 0; border-radius: 999px;
  font: 700 1rem/1 var(--font-body); padding: .95rem 1.5rem;
  box-shadow: 0 0 0 2px var(--black), 0 0 0 4px var(--blue);
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--paper); color: var(--black); }
.btn--ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--black); }
.btn--small { padding: .62rem 1.05rem; font-size: .92rem; }
.btn--danger { background: transparent; color: var(--danger-text); box-shadow: inset 0 0 0 2px var(--red); }
.btn--danger:hover { background: var(--red); color: var(--paper); }
.textlink { font-weight: 600; }
.textlink--danger { color: var(--danger-text); }
.tag { display: inline-block; font: 600 .78rem/1 var(--font-body); padding: .3rem .55rem; border-radius: 999px; background: var(--coal-2); color: var(--gold); border: 1px solid var(--line); vertical-align: middle; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background-color .25s; }
.site-header__bar { width: min(100% - 2 * var(--gutter), 1320px); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.is-solid, .site-header.is-scrolled { background: var(--black); box-shadow: 0 3px 0 var(--black), 0 5px 0 var(--blue); }
.is-home .site-header:not(.is-scrolled):not(.is-menu-open) .brand { opacity: 0; pointer-events: none; }
.brand { text-decoration: none; display: inline-flex; transition: opacity .25s; }

.site-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn), .site-nav button { color: var(--paper); text-decoration: none; font-weight: 600; font-size: .98rem; background: none; border: 0; padding: 0; cursor: pointer; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .btn, .site-nav .btn:hover { color: var(--black); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem; cursor: pointer;
    background: var(--black); color: var(--paper); border: 2px solid var(--blue); border-radius: 999px;
    padding: .5rem .95rem; font-weight: 600;
  }
  .nav-toggle__bars { display: grid; gap: 4px; }
  .nav-toggle__bars i { display: block; width: 18px; height: 2px; background: var(--gold); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--black); padding: 1rem var(--gutter) 3rem; overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn), .site-nav button { display: block; width: 100%; text-align: left; padding: 1.1rem 0; font-size: 1.25rem; }
  .site-nav .site-nav__cta { border: 0; padding-top: 1.5rem; }
  .site-nav__cta .btn { display: block; }
  .site-header.is-menu-open { background: var(--black); }
}

/* ---------- Logo (vector image of the shop sign) ---------- */
.logo-img { display: block; height: auto; max-width: 100%; }
.logo-img--hero { width: min(92vw, 880px); filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .7)); }
.logo-img--nav { width: auto; height: 48px; }
.logo-img--footer { width: 240px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; display: grid; place-items: center; overflow: hidden; background: var(--black); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .7) 85%), linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 25%, transparent 70%, rgba(0, 0, 0, .85)); }
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; text-align: center; padding: calc(var(--header-h) + 1rem) var(--gutter) 4.5rem; }
.hero__sub { margin: 0; max-width: 34ch; font-size: clamp(1.05rem, 2.2vw, 1.35rem); text-shadow: 0 2px 12px var(--black); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; }
.hero__toggle {
  position: absolute; z-index: 2; right: var(--gutter); bottom: var(--gutter); cursor: pointer;
  background: rgba(0, 0, 0, .65); color: var(--paper); border: 1px solid var(--muted); border-radius: 999px; padding: .5rem .95rem; font-size: .85rem;
}
.hero__toggle:hover { color: var(--gold); border-color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .logo-img--hero { animation: sign-on 1s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes sign-on { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
}

/* ---------- Page structure ---------- */
main { min-height: 60vh; }
.is-inner main { padding-top: var(--header-h); }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tight { padding: 1.5rem 0 clamp(4rem, 8vw, 6rem); }
.section--band { background: var(--coal); box-shadow: inset 0 3px 0 var(--black), inset 0 5px 0 var(--blue), inset 0 -3px 0 var(--black), inset 0 -5px 0 var(--blue); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.75rem; }
.section__head h2 { margin: 0; }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.crumb { margin: 0 0 1rem; font-size: .95rem; }
.empty { color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.6rem; max-width: none; }
.hint { color: var(--muted); font-size: .92rem; }
.prose p, .prose li { color: var(--body); }
.gap-top { margin-top: 2.5rem; }

/* ---------- Home ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__lead { position: sticky; top: calc(var(--header-h) + 2rem); }
.about__links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: var(--muted); margin: 0; }
.rating strong { color: var(--paper); }
.rating__stars { color: var(--gold); letter-spacing: .12em; font-size: 1.1rem; }
.steps { list-style: none; counter-reset: step; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--red); color: var(--paper); font: 400 1.05rem var(--font-display); box-shadow: 0 0 0 2px var(--black), 0 0 0 4px var(--blue);
}
.steps strong { color: var(--paper); }
@media (max-width: 800px) { .about__grid { grid-template-columns: 1fr; } .about__lead { position: static; } }

.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.visit address { font-style: normal; font-size: 1.35rem; line-height: 1.5; margin-bottom: 1.25rem; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.5rem; }
.visit__map { padding: 6px; min-height: 340px; }
.visit__map iframe { width: 100%; height: 100%; min-height: 328px; border: 0; border-radius: calc(var(--radius) - 6px); filter: invert(.9) hue-rotate(180deg) brightness(.95) contrast(.9); }
@media (max-width: 800px) { .visit__grid { grid-template-columns: 1fr; } }

/* ---------- Artists ---------- */
.artist-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.artist-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.artist-card__link { display: flex; flex-direction: column; flex: 1; color: var(--paper); text-decoration: none; }
.artist-card__link:hover { color: var(--paper); }
.artist-card__media { aspect-ratio: 4 / 5; margin: 6px 6px 0; border-radius: calc(var(--radius) - 6px) calc(var(--radius) - 6px) 0 0; overflow: hidden; background: var(--coal-2); display: grid; place-items: center; }
.artist-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .25s; }
.artist-card__link:hover img, .artist-card__link:focus-visible img { filter: none; }
.artist-card__initial { font: 400 5rem var(--font-display); color: var(--gold); }
.artist-card__body { display: grid; gap: .15rem; padding: 1rem 1.25rem .9rem; }
.artist-card__name { font: 400 1.4rem/1.15 var(--font-display); }
.artist-card__spec { color: var(--gold); font-size: .95rem; }
.artist-card__count { color: var(--muted); font-size: .88rem; }
.artist-card__book { margin: 0 1.25rem 1.25rem; font-weight: 700; align-self: flex-start; }

.artist-head { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.artist-head--no-photo { grid-template-columns: 1fr; }
.artist-head__photo { padding: 6px; }
.artist-head__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) - 6px); }
.artist-head__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 1rem; }
@media (max-width: 760px) { .artist-head { grid-template-columns: 1fr; } .artist-head__photo { max-width: 320px; } }

.hours-details summary { cursor: pointer; font-weight: 600; color: var(--gold); }
.hours-details[open] summary { margin-bottom: .6rem; }
.hours { list-style: none; margin: 0; padding: 0; min-width: min(100%, 320px); }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.hours li span:first-child { font-weight: 600; }
.hours li span:last-child { color: var(--muted); text-align: right; }

/* ---------- Gallery ---------- */
.masonry { columns: 3 260px; column-gap: 1rem; }
.tile { position: relative; display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--coal); color: var(--paper); text-align: left; cursor: zoom-in; break-inside: avoid; }
.tile img { width: 100%; height: auto; transition: transform .35s; }
.tile:hover img { transform: scale(1.03); }
.tile__caption { position: absolute; inset: auto 0 0 0; display: grid; gap: .1rem; padding: 2rem .9rem .8rem; background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent); opacity: 0; transition: opacity .2s; }
.tile:hover .tile__caption, .tile:focus-visible .tile__caption { opacity: 1; }
.tile__title { font-weight: 700; }
.tile__meta { font-size: .88rem; color: var(--gold); }
@media (hover: none) { .tile__caption { opacity: 1; } }

.filters { display: grid; gap: 1rem; margin-bottom: 2rem; }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.filters__label { font-weight: 700; color: var(--muted); min-width: 4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { color: var(--paper); text-decoration: none; border: 2px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font-size: .95rem; font-weight: 500; background: var(--black); }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 700; }
.chips--large .chip { padding: .65rem 1.3rem; font-size: 1.05rem; font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 2rem; color: var(--muted); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; color: var(--paper); overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox figure { margin: 0; display: grid; gap: .8rem; justify-items: center; }
.lightbox img { max-width: 94vw; max-height: 80vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 0 0 3px var(--black), 0 0 0 5px var(--blue); }
.lightbox figcaption { text-align: center; }
.lightbox form { position: fixed; top: 1rem; right: 1rem; margin: 0; }
.lightbox__close { cursor: pointer; background: var(--gold); color: var(--black); font-weight: 700; border: 0; border-radius: 999px; padding: .65rem 1.2rem; }

/* ---------- Booking ---------- */
.booking__steps { list-style: none; counter-reset: bstep; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.booking__step { counter-increment: bstep; padding: clamp(1.25rem, 4vw, 2.25rem); }
.booking__title { display: flex; align-items: center; gap: .8rem; font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 1rem; }
.booking__step > .booking__title:first-child::before, .booking__head .booking__title::before {
  content: counter(bstep); flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--red); color: var(--paper); font-size: 1rem; box-shadow: 0 0 0 2px var(--black), 0 0 0 4px var(--blue);
}
.booking__title--sub { font-size: 1.2rem; margin-top: 1.75rem; color: var(--paper); }
.booking__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
.booking__head .hours-details { margin-bottom: 1rem; }

.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .55rem; }
.day { display: grid; justify-items: center; gap: .05rem; padding: .7rem .25rem .65rem; border: 2px solid var(--line); border-radius: 12px; background: var(--black); color: var(--paper); text-decoration: none; line-height: 1.15; }
a.day:hover { border-color: var(--gold); color: var(--paper); }
.day.is-active { background: var(--gold); border-color: var(--gold); color: var(--black); }
.day.is-active .day__open, .day.is-active .day__dow, .day.is-active .day__mon { color: var(--black); }
.day.is-full { opacity: .45; }
.day__dow, .day__mon { font-size: .8rem; color: var(--muted); }
.day__num { font: 400 1.45rem/1.1 var(--font-display); }
.day__open { font-size: .78rem; font-weight: 600; color: var(--gold); margin-top: .15rem; }
.day.is-full .day__open { color: var(--muted); font-weight: 400; }
.days__nav { display: flex; gap: .8rem; margin-top: 1rem; }
@media (max-width: 560px) {
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.slots { border: 0; margin: 0 0 .25rem; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.slots legend { padding: 0; margin-bottom: .8rem; font-weight: 600; }
.slot { position: relative; }
.slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.slot span { display: block; padding: .6rem 1.05rem; border: 2px solid var(--line); border-radius: 999px; background: var(--black); font-weight: 600; font-variant-numeric: tabular-nums; }
.slot:hover span { border-color: var(--gold); color: var(--gold); }
.slot input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--black); }
.slot input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }

.appt__list { display: grid; grid-template-columns: max-content 1fr; gap: .7rem 1.5rem; margin: 0 0 1.75rem; }
.appt__list dt { color: var(--muted); }
.appt__list dd { margin: 0; font-weight: 600; }
.appt__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.appt.is-cancelled .appt__list dd { text-decoration: line-through; text-decoration-color: var(--red); }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .form-layout { grid-template-columns: 1fr; } }
.form { padding: clamp(1.4rem, 4vw, 2.4rem); display: grid; gap: 1.1rem; }
.form--flat { padding: 0; background: none; box-shadow: none; }
.form__title { font-size: 1.5rem; margin: 0; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; }
.form .input { display: grid; gap: .4rem; margin: 0; }
.form label { font-weight: 600; font-size: .98rem; }
.form input:not([type="radio"]):not([type="checkbox"]), .form select, .form textarea {
  width: 100%; font: inherit; color: var(--paper); background: var(--black); border: 2px solid var(--line); border-radius: 8px; padding: .75rem .9rem;
}
.form input[type="file"] { padding: .55rem; }
.form input[type="date"] { color-scheme: dark; }
.form ::placeholder { color: #8d8679; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form .error input, .form .error select, .form .error textarea { border-color: var(--red); }
.error-message { color: var(--danger-text); font-size: .92rem; font-weight: 600; }
.form__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form__preview img { width: 100%; max-height: 320px; object-fit: contain; background: var(--black); border-radius: 8px; }
.form__preview--portrait img { width: 200px; aspect-ratio: 4 / 5; object-fit: cover; }
.form-aside h2 { font-size: 1.45rem; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 1rem; align-items: end; }
@media (max-width: 620px) { .inline-form { grid-template-columns: 1fr; } }

.week { display: grid; gap: .8rem; }
.week__day { border: 2px solid var(--line); border-radius: 10px; padding: .75rem 1rem 1rem; margin: 0; min-width: 0; }
.week__day.is-open { border-color: #4a4237; }
.week__day legend { padding: 0 .4rem; font-family: var(--font-display); color: var(--gold); }
.week__range { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.week__range + .week__range { margin-top: .7rem; }
.js .week__range--extra { display: none; }
.week__more { justify-self: start; background: none; border: 0; padding: .5rem 0 0; color: var(--gold); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Flash ---------- */
.flash-wrap { position: relative; z-index: 5; }
.is-home .flash-wrap { position: fixed; top: calc(var(--header-h) + .5rem); left: 0; right: 0; z-index: 60; }
.flash { width: min(100% - 2 * var(--gutter), 760px); margin: 1rem auto 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: 10px; background: var(--coal-2); border: 2px solid var(--blue); font-weight: 600; }
.flash--success { border-color: var(--gold); }
.flash--error { border-color: var(--red); }
.flash__close { flex: none; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .85rem; text-decoration: underline; }
.flash.is-hidden { display: none; }

/* ---------- Studio and manager ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; }
.subnav a { color: var(--paper); text-decoration: none; border: 2px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font-weight: 600; font-size: .95rem; }
.subnav a:hover { border-color: var(--gold); color: var(--gold); }
.subnav a.is-active { background: var(--gold); border-color: var(--gold); color: var(--black); }
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; align-items: start; }
.panel { padding: 1.6rem 1.75rem; }
.panel h2 { font-size: 1.5rem; }
.panel__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.mini-list li span { color: var(--muted); }
.mini-list li .textlink { margin-left: auto; }
.manage-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.manage-card { overflow: hidden; display: flex; flex-direction: column; }
.manage-card img { width: calc(100% - 12px); aspect-ratio: 4 / 3; object-fit: cover; margin: 6px 6px 0; border-radius: calc(var(--radius) - 6px) calc(var(--radius) - 6px) 0 0; }
.manage-card__body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .3rem; }
.manage-card__body span { color: var(--gold); font-size: .92rem; }
.manage-card__actions { display: flex; gap: .6rem; margin-top: .5rem; }
.table-wrap { overflow-x: auto; padding: 6px; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { color: var(--muted); font-size: .9rem; font-weight: 600; border-bottom: 2px solid var(--blue); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table__actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.inbox__item { padding: 1.3rem 1.5rem; }
.inbox__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: .4rem; }
.inbox__who { margin-bottom: .6rem; }
.inbox__msg { color: var(--body); background: var(--black); border-radius: 8px; padding: .8rem 1rem; max-width: none; }
.feed__steps { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--body); }
.feed__row { display: flex; gap: .7rem; flex-wrap: wrap; }
.feed__row input { flex: 1 1 260px; min-width: 0; font: inherit; color: var(--paper); background: var(--black); border: 2px solid var(--line); border-radius: 8px; padding: .65rem .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); box-shadow: inset 0 3px 0 var(--black), inset 0 5px 0 var(--blue); padding: 4rem 0 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer strong { display: block; color: var(--gold); margin-bottom: .4rem; }
.site-footer__links { line-height: 1.9; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Cloudflare Turnstile on the sign-in page: reserve its space so the form doesn't jump */
.turnstile-box { min-height: 65px; }
