/* MIKAI discount hunter — editorial shopping magazine
   Ireland · clothing · cosmetics · holidays */

:root {
  --ivory: #F7F1EA;
  --blush: #F3E4DC;
  --sage: #DDE6DC;
  --ink: #2B2420;
  --rose: #C4787A;
  --gold: #C4A574;
  --paper: #FFFBF6;
  --mist: #E8E0D6;
  --ink-soft: #5C534C;
  --ink-mute: #8A8178;
  --sage-deep: #6E8B74;
  --rose-deep: #A45C5F;
  --gold-deep: #9A7C4A;
  --shadow: 0 12px 32px rgba(43, 36, 32, 0.08);
  --shadow-soft: 0 6px 18px rgba(43, 36, 32, 0.05);
  --font-display: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { color-scheme: light; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(196, 120, 122, 0.10), transparent 55%),
    radial-gradient(700px 360px at -6% 8%, rgba(221, 230, 220, 0.55), transparent 50%),
    var(--ivory);
  background-attachment: fixed;
}

.app { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }

/* ——— Header ——— */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  padding: 28px 32px 18px;
}

.brand-block { min-width: 0; }
.kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--rose);
  margin: 0 0 6px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.wordmark em {
  font-style: italic;
  font-weight: 600;
}
.wordmark span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.58em;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-style: normal;
}
.who {
  margin: 8px 0 0;
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 300;
}

.clock-block { text-align: center; padding-bottom: 2px; }
.clock {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.clock-meta {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-top: 4px;
  font-weight: 300;
}

.status-block { text-align: right; justify-self: end; }
.pill-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pill {
  font-size: 11px;
  letter-spacing: 0.02em;
  border: 1px solid var(--mist);
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
}
.pill.quiet { color: var(--ink-mute); background: transparent; border-color: transparent; padding-right: 0; }
.pill.live { border-color: var(--sage); color: var(--sage-deep); background: var(--sage); }
.pill.example { border-color: #ead8b8; color: var(--gold-deep); background: #f8efdc; }
.pill.stale { border-color: #e8cfc4; color: var(--rose-deep); background: var(--blush); }
.updated { margin-top: 8px; font-size: 12px; color: var(--ink-mute); font-weight: 300; }
.updated b { color: var(--ink-soft); font-weight: 500; }

/* ——— Hero ——— */
.hero {
  position: relative;
  margin: 4px 32px 0;
  height: clamp(200px, 28vw, 320px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 36, 32, 0.08) 0%, rgba(43, 36, 32, 0.42) 100%);
}
.hero-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  color: #fff;
  max-width: 640px;
}
.hero-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.hero-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
}
.hero-mob { display: none; }

/* ——— Ticker ——— */
.ticker-wrap {
  display: flex;
  align-items: stretch;
  margin: 18px 32px 0;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--mist);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--blush);
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
}
.ticker-label .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rose);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 48s linear infinite;
  padding: 11px 0;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  border-right: 1px solid var(--mist);
}
.tick .tag {
  font-size: 11px;
  color: var(--rose);
  font-weight: 500;
}
.tick.hot .tag { color: var(--rose-deep); }
.tick.new .tag { color: var(--sage-deep); }
.tick code {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--blush);
  padding: 2px 8px;
  border-radius: 999px;
}
.ticker-empty {
  padding: 11px 18px;
  color: var(--ink-mute);
  font-size: 13px;
}

/* ——— Example banner ——— */
.banner {
  display: none;
  margin: 16px 32px 0;
  padding: 12px 16px;
  border: 1px dashed #ead8b8;
  background: #fbf4e6;
  color: var(--gold-deep);
  font-size: 13px;
  border-radius: 14px;
}
.banner.show { display: flex; align-items: center; gap: 10px; }
.banner strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--gold-deep);
}

/* ——— Controls ——— */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 22px 32px 8px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  appearance: none;
  border: 1px solid var(--mist);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--gold); color: var(--ink); }
.filter-btn.active {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.filter-btn[data-filter="Clothing"].active { background: #3d4f5c; border-color: #3d4f5c; }
.filter-btn[data-filter="Cosmetics"].active { background: var(--rose); border-color: var(--rose); }
.filter-btn[data-filter="Holidays"].active { background: var(--sage-deep); border-color: var(--sage-deep); }
.filter-btn[data-filter="Other"].active { background: var(--gold-deep); border-color: var(--gold-deep); }

.search-wrap {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 420px;
}
.search-wrap input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 12px 9px 34px;
  border-radius: 999px;
  outline: none;
}
.search-wrap input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.18); }
.search-wrap .ico {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  font-size: 13px;
  pointer-events: none;
}

.util-links {
  display: flex;
  gap: 14px;
  margin-left: auto;
}
.file-btn, .ghost-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--ink-mute);
  font-family: var(--font-body);
  font-size: 11px;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.file-btn:hover, .ghost-btn:hover { color: var(--ink-soft); }
#file-input { display: none; }

/* ——— Watchlist + stats ——— */
.meta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 10px 32px 22px;
  align-items: start;
}
@media (max-width: 860px) {
  .topbar { grid-template-columns: 1fr; }
  .clock-block, .status-block { text-align: left; justify-self: start; }
  .meta-row { grid-template-columns: 1fr; }
  .util-links { margin-left: 0; }
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin: 0 0 10px;
  font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--mist);
  cursor: pointer;
  font-family: var(--font-body);
}
.chip:hover, .chip.on {
  border-color: var(--rose);
  color: var(--rose-deep);
  background: var(--blush);
}

.stats {
  display: flex;
  gap: 22px;
}
.stat { min-width: 64px; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.stat span {
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 400;
}

/* ——— Board ——— */
.board {
  padding: 0 32px 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.empty {
  grid-column: 1 / -1;
  padding: 56px 16px;
  text-align: center;
  color: var(--ink-mute);
  border: 1px dashed var(--mist);
  border-radius: var(--radius);
  background: var(--paper);
}

/* ——— Deal card ——— */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(43, 36, 32, 0.06);
  border-radius: var(--radius);
  padding: 0 0 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.card.watched { box-shadow: 0 0 0 1px rgba(196, 165, 116, 0.45), var(--shadow); }
.card.rank-1 { box-shadow: 0 0 0 1px rgba(196, 120, 122, 0.22), var(--shadow); }

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blush);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 36, 32, 0.04), rgba(43, 36, 32, 0.22));
  pointer-events: none;
}
.media-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}
.rank-chip {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: #fff;
  background: rgba(43, 36, 32, 0.38);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.card.rank-1 .rank-chip {
  background: rgba(196, 120, 122, 0.88);
}
.rank-chip .score {
  opacity: 0.85;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 11px;
  margin-left: 6px;
}

.card-main { min-width: 0; padding: 16px 18px 0; }
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.brand {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 500;
  font-style: italic;
  margin: 0;
}
.badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.badge {
  font-size: 10px;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.badge.new { background: var(--sage); color: #35503c; }
.badge.exciting { background: var(--blush); color: var(--rose-deep); }
.badge.verified { background: #e7f0e8; color: var(--sage-deep); }
.badge.unverified { background: #f3eee6; color: var(--ink-mute); }

.discount {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.discount .pct {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--rose);
  margin-right: 8px;
  font-weight: 600;
}
.applies, .notes {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  font-weight: 300;
}
.notes { color: var(--ink-mute); font-style: italic; }

.cat-chip {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--ink-soft);
}
.cat-chip.clothing { background: #e4ecef; color: #3d4f5c; }
.cat-chip.cosmetics { background: var(--blush); color: var(--rose-deep); }
.cat-chip.holidays { background: var(--sage); color: #35503c; }
.cat-chip.other { background: #f4ead6; color: var(--gold-deep); }

.card-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 0;
}
.code-box {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--mist);
  border-radius: 999px;
  overflow: hidden;
  background: var(--ivory);
}
.code-box code {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 12px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.copy-btn {
  appearance: none;
  border: 0;
  border-left: 1px solid var(--mist);
  background: var(--blush);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  padding: 0 14px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--rose); color: #fff; }
.copy-btn.copied { background: var(--sage-deep); color: #fff; }

.expiry {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-mute);
}
.expiry.soon { color: var(--rose-deep); }
.expiry.gone { color: #b0a8a2; text-decoration: line-through; }

.source {
  color: var(--gold-deep);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.source:hover { border-bottom-color: var(--gold); }

/* ——— Toasts ——— */
.toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 36px));
}
.toast {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-left: 3px solid var(--rose);
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: pop 0.35s ease;
}
.toast.hot { border-left-color: var(--gold); }
.toast b { display: block; font-size: 13px; font-family: var(--font-display); font-style: italic; }
.toast span { font-size: 12px; color: var(--ink-soft); }
@keyframes pop {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

footer {
  padding: 4px 32px 36px;
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 300;
}

@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .hero, .ticker-wrap { margin-left: 16px; margin-right: 16px; }
  .topbar, .controls, .meta-row, .board, footer, .banner { padding-left: 16px; padding-right: 16px; }
  .banner { margin-left: 16px; margin-right: 16px; }
}

@media (max-width: 700px) {
  .board { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  body {
    background-attachment: scroll;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
  }
  .app,
  .topbar,
  .hero,
  .banner,
  .controls,
  .meta-row,
  .board,
  footer,
  .card,
  .card-foot,
  .search-wrap,
  .code-box {
    max-width: 100%;
  }
  img { max-width: 100%; }

  .clock-block { display: none; }
  .pill.quiet { display: none; }
  .kicker { display: none; }

  .topbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 16px 10px;
  }
  .wordmark { font-size: 28px; }
  .wordmark span {
    display: block;
    margin-top: 2px;
    font-size: 0.5em;
  }
  .status-block { text-align: left; justify-self: start; }
  .pill-row { justify-content: flex-start; }
  .updated { margin-top: 6px; font-size: 11px; }

  .hero {
    height: 168px;
    margin: 4px 16px 0;
    border-radius: 16px;
  }
  .hero-copy { left: 16px; right: 16px; bottom: 12px; max-width: none; }
  .hero-copy h2 {
    font-size: 20px;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-desk { display: none; }
  .hero-mob { display: inline; }

  /* Cards already show Just in / Worth it — drop the clipping pill ticker */
  .ticker-wrap { display: none; }

  .banner {
    margin: 12px 16px 0;
    padding: 10px 12px;
  }
  .banner.show {
    display: block;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 16px 8px;
  }
  .filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    scrollbar-width: none;
    max-width: 100%;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; white-space: nowrap; }

  .search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .util-links { display: none; }

  .watch { display: none; }
  .meta-row {
    grid-template-columns: 1fr;
    padding: 8px 16px 16px;
  }
  .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
  }
  .stat { min-width: 0; overflow: hidden; }
  .stat b { font-size: 18px; }
  .stat span { font-size: 10px; }

  .board { padding: 0 16px 24px; grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 16 / 9; }
  .brand { font-size: 22px; overflow-wrap: anywhere; }
  .discount { overflow-wrap: anywhere; }
  .applies, .notes {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .code-box {
    max-width: 100%;
    min-width: 0;
  }
  .code-box code {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 58vw;
    white-space: nowrap;
  }
  .card-foot { max-width: 100%; }

  footer {
    padding: 4px 16px 20px;
    font-size: 11px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .toasts {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
}

@media (max-width: 520px) {
  .hero { height: 160px; }
  .hero-copy { left: 14px; right: 14px; bottom: 12px; }
  .brand { font-size: 22px; }
}


/* ——— Student branch: board mode + location ——— */
.mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
  flex: 1 1 100%;
  margin-bottom: 4px;
}
.mode-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.mode-switch,
.loc-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 999px;
}
.mode-btn,
.loc-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mode-btn:hover,
.loc-btn:hover {
  color: var(--ink);
}
.mode-btn.active {
  background: var(--ink);
  color: var(--ivory);
}
.loc-btn.active {
  background: var(--sage-deep);
  color: #fff;
}
.loc-btn[data-loc="UK"].active {
  background: #3d4f5c;
}
.loc-btn[data-loc="all"].active {
  background: var(--gold-deep);
}

.badge.verify-via {
  background: #e8eef6;
  color: #3a4f6a;
}
.badge.via-unidays {
  background: #1a1a2e;
  color: #f5e6c8;
}
.badge.via-beans {
  background: #ffe566;
  color: #2b2420;
}
.badge.via-sheerid {
  background: #dceaf7;
  color: #2a5080;
}
.badge.loc-pill {
  background: var(--sage);
  color: #35503c;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.badge.loc-uk {
  background: #d9e3ea;
  color: #2f4454;
}
.badge.loc-eu {
  background: #e6dff0;
  color: #4a3a66;
}
.badge.student {
  background: var(--blush);
  color: var(--rose-deep);
}

@media (max-width: 720px) {
  .mode-row { gap: 8px; }
  .loc-label { width: 100%; margin-top: 4px; }
}

/* ——— Brand logo tile ——— */
.brand-logo {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(43, 36, 32, 0.18), 0 0 0 1px rgba(43, 36, 32, 0.06);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-media .brand-logo img.logo-img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  transform: none;
  background: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.brand-logo.is-logo img.logo-img { opacity: 1; }
.brand-logo.is-small img.logo-img {
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
}
.brand-logo .logo-initial {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  border: 4px solid #fff;
  border-radius: 14px;
}
.brand-logo.is-loading .logo-initial,
.brand-logo.is-logo .logo-initial { visibility: hidden; }
@media (max-width: 640px) {
  .brand-logo { width: 44px; height: 44px; border-radius: 12px; top: 10px; left: 10px; }
  .card-media .brand-logo img.logo-img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
  .brand-logo.is-small img.logo-img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
  .brand-logo .logo-initial { font-size: 20px; border-radius: 12px; }
}
