﻿@import "mirror-fonts.css";
/* ============================================================
   MIRROR â€” Design System
   Tokens + component classes. Warm, editorial, one accent.
   ============================================================ */

/* ---------- Tokens: Light ---------- */
:root {
  /* ink */
  --ink:        #1A1A1A;
  --ink-2:      #5C5C57;
  --ink-3:      #8B8780;
  --on-accent:  #FBFAF7;

  /* surfaces */
  --surface:    #FAF8F4;
  --surface-2:  #F2EFE8;
  --card:       #FFFFFF;
  --line:       #E7E2D9;
  --line-2:     #EFEBE3;

  /* accent â€” deep green, the one confident accent */
  --accent:       #1F6F5C;
  --accent-press: #17574A;
  --accent-tint:  #E7F0EC;

  /* status badges */
  --for-sale:      #2C6E8F;
  --for-sale-tint: #E6EEF3;
  --for-rent:      #B5683C;
  --for-rent-tint: #F6EADF;
  --is-new:        #1F6F5C;

  /* market status */
  --mkt-seller:   #B23A2E;
  --mkt-buyer:    #1F8A5B;
  --mkt-balanced: #2C6E8F;

  /* semantic */
  --success: #1F8A5B;
  --warning: #B5841E;
  --error:   #BE3B2C;
  --error-tint: #F7E7E3;

  /* elevation â€” two levels max */
  --shadow-1: 0 1px 2px rgba(40,30,20,.05), 0 1px 3px rgba(40,30,20,.04);
  --shadow-2: 0 6px 16px rgba(40,30,20,.08), 0 16px 40px rgba(40,30,20,.06);
  --shadow-pop: 0 8px 28px rgba(40,30,20,.16), 0 0 0 1px rgba(40,30,20,.05);

  /* radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* type */
  --font-display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-cn: "Noto Sans SC", "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --focus: 0 0 0 3px rgba(31,111,92,.30);
}

/* ---------- Tokens: Dark (warm, not pure black) ---------- */
.mirror-dark {
  --ink:        #F2EDE4;
  --ink-2:      #B0AA9E;
  --ink-3:      #837D72;
  --on-accent:  #0F1A16;

  --surface:    #16130F;
  --surface-2:  #1E1A15;
  --card:       #211D18;
  --line:       #34302A;
  --line-2:     #2A2620;

  --accent:       #5FBF9E;
  --accent-press: #7BD0B2;
  --accent-tint:  #1C2A24;

  --for-sale:      #82B4CF;
  --for-sale-tint: #1B2730;
  --for-rent:      #DB9A6E;
  --for-rent-tint: #2D241C;
  --is-new:        #5FBF9E;

  --mkt-seller:   #E0796C;
  --mkt-buyer:    #6FC79A;
  --mkt-balanced: #82B4CF;

  --success: #6FC79A;
  --warning: #D8AE5E;
  --error:   #E0796C;
  --error-tint: #2E211D;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 24px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4);
  --shadow-pop: 0 8px 28px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  --focus: 0 0 0 3px rgba(95,191,158,.35);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
.mr {
  font-family: var(--font-ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mr-cn { font-family: var(--font-cn); }

/* type helpers */
.t-display { font-family: var(--font-display); font-weight: 500; font-size: 48px; line-height: 1.06; letter-spacing: -0.01em; }
.t-h1 { font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1.1; letter-spacing: -0.01em; }
.t-h2 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.15; }
.t-h3 { font-family: var(--font-ui); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.t-bodylg { font-family: var(--font-ui); font-weight: 400; font-size: 18px; line-height: 1.55; }
.t-body { font-family: var(--font-ui); font-weight: 400; font-size: 16px; line-height: 1.55; }
.t-small { font-family: var(--font-ui); font-weight: 400; font-size: 14px; line-height: 1.5; }
.t-caption { font-family: var(--font-ui); font-weight: 500; font-size: 12px; line-height: 1.4; }
.t-eyebrow { font-family: var(--font-ui); font-weight: 600; font-size: 12px; line-height: 1; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.t-price { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; }
.t-mono { font-family: var(--font-mono); font-weight: 400; }

/* ============================================================
   BUTTONS
   ============================================================ */
.mr-btn {
  font-family: var(--font-ui);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
  text-decoration: none;
  line-height: 1;
}
.mr-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.mr-btn:active { transform: translateY(.5px); }

.mr-btn--sm { font-size: 13px; padding: 8px 14px; }
.mr-btn--md { font-size: 15px; padding: 11px 20px; }
.mr-btn--lg { font-size: 16px; padding: 15px 26px; }
.mr-btn--icon { padding: 0; width: 40px; height: 40px; border-radius: var(--r-pill); }
.mr-btn--icon.mr-btn--sm { width: 34px; height: 34px; }

.mr-btn--primary { background: var(--accent); color: var(--on-accent); }
.mr-btn--primary:hover { background: var(--accent-press); }
.mr-btn--secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.mr-btn--secondary:hover { border-color: var(--ink-3); background: color-mix(in oklab, var(--ink) 4%, transparent); }
.mr-btn--ghost { background: transparent; color: var(--accent); }
.mr-btn--ghost:hover { background: var(--accent-tint); }
.mr-btn--destructive { background: var(--error); color: #fff; }
.mr-btn--destructive:hover { filter: brightness(.93); }
.mr-btn:disabled, .mr-btn[aria-disabled="true"] { opacity: .42; cursor: not-allowed; pointer-events: none; }

.mr-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: mr-spin .7s linear infinite; }
@keyframes mr-spin { to { transform: rotate(360deg); } }

/* ============================================================
   INPUTS
   ============================================================ */
.mr-field { display: flex; flex-direction: column; gap: 6px; }
.mr-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mr-input, .mr-select {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.mr-input::placeholder { color: var(--ink-3); }
.mr-input:focus, .mr-select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.mr-input--error { border-color: var(--error); }
.mr-input--error:focus { box-shadow: 0 0 0 3px var(--error-tint); }
.mr-help { font-size: 12px; color: var(--ink-3); }
.mr-help--error { color: var(--error); }

.mr-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0 8px 0 16px;
  transition: border-color .15s, box-shadow .15s;
}
.mr-search:focus-within { border-color: var(--accent); box-shadow: var(--focus); }
.mr-search input { border: none; background: none; outline: none; flex: 1; font-family: var(--font-ui); font-size: 15px; color: var(--ink); padding: 13px 0; }
.mr-search input::placeholder { color: var(--ink-3); }

/* ============================================================
   CHIPS / SEGMENTED / BADGES
   ============================================================ */
.mr-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  padding: 7px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.mr-chip:hover { border-color: var(--ink-3); }
.mr-chip--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mr-chip--removable { padding-right: 8px; }
.mr-chip__x { display: inline-flex; opacity: .7; }
.mr-chip__x:hover { opacity: 1; }
.mr-chip__count { color: var(--ink-3); font-weight: 500; }
.mr-chip--on .mr-chip__count { color: color-mix(in oklab, var(--on-accent) 75%, transparent); }

.mr-seg {
  display: inline-flex; background: var(--surface-2); border-radius: var(--r-pill);
  padding: 4px; gap: 2px; border: 1px solid var(--line-2);
}
.mr-seg button {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--ink-2);
  border: none; background: transparent; padding: 8px 18px; border-radius: var(--r-pill);
  cursor: pointer; transition: all .18s; white-space: nowrap;
}
.mr-seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }

.mr-badge {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700; white-space: nowrap;
  letter-spacing: 0.01em; padding: 5px 10px; border-radius: var(--r-pill);
  backdrop-filter: saturate(1.2);
}
.mr-badge--sale { background: var(--for-sale); color: #fff; }
.mr-badge--rent { background: var(--for-rent); color: #fff; }
.mr-badge--new  { background: var(--card); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mr-badge--soft-sale { background: var(--for-sale-tint); color: var(--for-sale); }
.mr-badge--soft-rent { background: var(--for-rent-tint); color: var(--for-rent); }

.mr-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* market status pill */
.mr-mkt { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.mr-mkt--seller   { color: var(--mkt-seller); }
.mr-mkt--buyer    { color: var(--mkt-buyer); }
.mr-mkt--balanced { color: var(--mkt-balanced); }

/* ============================================================
   PROPERTY CARD
   ============================================================ */
.mr-pcard {
  background: var(--card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line-2);
  transition: box-shadow .2s ease, transform .2s ease;
  position: relative;
}
.mr-pcard--interactive { cursor: pointer; }
.mr-pcard--interactive:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }

.mr-pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.mr-pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mr-pcard__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,15,10,.30), transparent 38%); pointer-events: none; }

/* Stretched-link overlay: makes the whole card clickable without nesting the fav button in an <a>. */
.mr-pcard__stretch { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.mr-pcard__top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; }
.mr-fav {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-1); transition: transform .15s, color .15s, background .15s;
}
.mr-fav:hover { transform: scale(1.08); }
.mr-fav[aria-pressed="true"] { color: var(--for-rent); }

.mr-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; gap: 5px; justify-content: center; opacity: 0; transition: opacity .2s; }
.mr-pcard:hover .mr-dots { opacity: 1; }
.mr-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.55); }
.mr-dots span.on { background: #fff; width: 14px; border-radius: 3px; }

.mr-pcard__body { padding: 14px 16px 16px; }
.mr-pcard__price { font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; }
.mr-pcard__price .per { font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.mr-pcard__price--req { font-family: var(--font-ui); font-size: 18px; font-weight: 600; color: var(--ink-2); font-style: italic; }
.mr-pcard__title { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.mr-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 9px; color: var(--ink-2); font-size: 13px; }
.mr-facts .f { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mr-facts .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); opacity: .6; }
.mr-pcard__loc { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ink-3); font-size: 13px; }
.mr-pcard__src { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); }

/* horizontal / list variant */
.mr-pcard--row { display: flex; }
.mr-pcard--row .mr-pcard__media { aspect-ratio: auto; width: 220px; flex: 0 0 220px; }
.mr-pcard--row .mr-pcard__body { flex: 1; padding: 16px 18px; }

/* compact (rail) variant */
.mr-pcard--compact .mr-pcard__media { aspect-ratio: 3 / 2; }
.mr-pcard--compact .mr-pcard__body { padding: 11px 13px 13px; }
.mr-pcard--compact .mr-pcard__price { font-size: 19px; }

/* map popup */
.mr-pcard--pop { width: 260px; box-shadow: var(--shadow-pop); border: none; }
.mr-pcard--pop .mr-pcard__media { aspect-ratio: 16/9; }

/* ============================================================
   PHOTO PLACEHOLDER (branded, never a broken image)
   ============================================================ */
.mr-photo {
  position: absolute; inset: 0;
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in oklab, var(--ink) 5%, transparent) 11px 12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-3);
}
.mr-photo__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.mr-photo--empty { background-image: none; }

/* ============================================================
   BROKER CARD
   ============================================================ */
.mr-bcard {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--shadow-1); transition: box-shadow .2s, transform .2s;
  text-align: center;
}
.mr-bcard--interactive:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); cursor: pointer; }
.mr-avatar { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; position: relative; }
.mr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mr-avatar--initials { background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 28px; }

/* ============================================================
   STAT BLOCK
   ============================================================ */
.mr-stat { display: flex; flex-direction: column; gap: 4px; }
.mr-stat__num { font-family: var(--font-display); font-weight: 600; font-size: 38px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mr-stat__label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.mr-stat__delta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.mr-stat__delta--up { color: var(--success); }
.mr-stat__delta--down { color: var(--error); }

/* ============================================================
   SKELETON
   ============================================================ */
.mr-sk { position: relative; overflow: hidden; background: color-mix(in oklab, var(--ink) 7%, transparent); border-radius: 6px; }
.mr-sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--card) 60%, transparent), transparent);
  animation: mr-sheen 1.4s ease infinite; }
@keyframes mr-sheen { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .mr-sk::after { animation: none; } .mr-spin { animation-duration: 2s; } }

/* ============================================================
   AI label chip
   ============================================================ */
.mr-ai {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 5px 11px 5px 9px; border-radius: var(--r-pill);
}
.mr-ai__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

/* ============================================================
   HEADER / FOOTER / NAV
   ============================================================ */
.mr-header { display: flex; align-items: center; gap: 28px; padding: 0 28px; height: 68px; background: var(--card); border-bottom: 1px solid var(--line); }
.mr-logo { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -0.01em; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.mr-logo__mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); position: relative; flex: none; }
.mr-logo__mark::after { content:""; position:absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; background: var(--on-accent); opacity: .7; transform: translateX(-50%); }
.mr-nav { display: flex; align-items: center; gap: 4px; }
.mr-nav a { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); transition: background .15s, color .15s; cursor: pointer; }
.mr-nav a:hover { color: var(--ink); background: var(--surface-2); }
.mr-nav a[aria-current="page"] { color: var(--ink); }
.mr-nav a[aria-current="page"]::after { content:""; display:block; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 5px; }
.mr-langtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.mr-langtoggle button { border: none; background: transparent; font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 6px 12px; cursor: pointer; }
.mr-langtoggle button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.mr-langtoggle button:last-child { font-family: var(--font-cn); }

.mr-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 48px 40px 28px; }
.mr-footer a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.mr-footer a:hover { color: var(--ink); }

/* mobile drawer */
.mr-drawerlink { display: block; padding: 15px 4px; font-size: 17px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); text-decoration: none; }

/* tooltip */
.mr-tip { position: relative; display: inline-flex; }
.mr-tipbody { font-size: 12px; font-weight: 500; background: var(--ink); color: var(--surface); padding: 6px 10px; border-radius: 7px; box-shadow: var(--shadow-2); }

/* toast */
.mr-toast { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--surface); padding: 13px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-2); font-size: 14px; font-weight: 500; }

/* pagination */
.mr-page { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-family: var(--font-ui); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s; }
.mr-page:hover { border-color: var(--ink-3); color: var(--ink); }
.mr-page[aria-current="page"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* tabs */
.mr-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.mr-tabs button { font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--ink-3); background: none; border: none; padding: 12px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
.mr-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

/* breadcrumbs */
.mr-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.mr-crumbs a { color: var(--ink-3); text-decoration: none; }
.mr-crumbs a:hover { color: var(--ink); }
.mr-crumbs .cur { color: var(--ink); font-weight: 600; }

/* lang toggle as links + mobile-only helper */
.mr-langtoggle a { text-decoration:none; display:flex; align-items:center; }
.mr-only-mobile { display:none; }
@media (max-width:1024px){ .mr-only-mobile{ display:inline-flex; } .mr-header .mr-nav, .mr-header .mr-search{ display:none; } }

/* mobile drawer */
.mr-drawer { position:fixed; inset:0; z-index:60; display:none; }
.mr-drawer.is-open { display:block; }
.mr-drawer__scrim { position:absolute; inset:0; background:rgba(20,15,10,.45); }
.mr-drawer__panel { position:absolute; top:0; bottom:0; right:0; width:min(86vw,360px);
  background:var(--card); display:flex; flex-direction:column; box-shadow:var(--shadow-2);
  transform:translateX(0); }
@media (prefers-reduced-motion:no-preference){ .mr-drawer__panel{ animation:mr-slidein .22s ease; } }

/* theme toggle icon swap (moon in light, sun in dark) */
.mr-theme-sun { display: none; }
.mirror-dark .mr-theme-moon { display: none; }
.mirror-dark .mr-theme-sun { display: inline-flex; }

/* active language link emphasis (lang toggle uses <a>, mirrors the button-active style) */
.mr-langtoggle a[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
@keyframes mr-slidein { from{ transform:translateX(100%);} to{ transform:translateX(0);} }

/* ============================================================
   FOCUS RINGS (a11y — Phase 5)
   Scoped catch-all first, then specific box-shadow rings after
   (later + equal/higher specificity wins).
   ============================================================ */
.mr a:focus-visible, .mr button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mr-seg button:focus-visible,
.mr-seg a:focus-visible,
.mr-chip:focus-visible,
.mr-fav:focus-visible,
.mr-page:focus-visible,
.mr-tabs button:focus-visible,
.mr-nav a:focus-visible,
.mr-drawerlink:focus-visible,
.sec-viewall:focus-visible,
.mr-crumbs a:focus-visible,
.mr-langtoggle a:focus-visible,
.mr-langtoggle button:focus-visible {
  outline: none;
  border-radius: var(--r-sm);
  box-shadow: var(--focus);
}
/* already-rounded elements keep their own radius */
.mr-seg button:focus-visible,
.mr-seg a:focus-visible,
.mr-chip:focus-visible,
.mr-fav:focus-visible,
.mr-langtoggle a:focus-visible,
.mr-langtoggle button:focus-visible { border-radius: var(--r-pill); }
.mr-fav:focus-visible { border-radius: 50%; }

.mr-pcard:focus-visible,
.mr-pcard:focus-within { box-shadow: var(--shadow-2), var(--focus); }

@media (max-width: 760px) {
  .mr-fav { width: 42px; height: 42px; }
  .mr-btn--icon.mr-btn--sm { width: 42px; height: 42px; }
  .mr-page { width: 44px; height: 44px; }
}
