@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyahsans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyahsans-Medium.woff2") format("woff2");
  font-weight: 500 650;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyahsans-Bold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyahsans-Black.woff2") format("woff2");
  font-weight: 850 950;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4ebdd;
  --paper-deep: #e9dcc8;
  --ink: #1d252a;
  --muted: #6f655b;
  --copper: #a56a43;
  --copper-soft: #c89269;
  --wine: #5a1f2d;
  --wine-deep: #3e121d;
  --blue: #17354d;
  --blue-deep: #0e2639;
  --line: rgba(165, 106, 67, 0.34);
  --surface: rgba(255, 251, 244, 0.78);
  --shadow: 0 20px 60px rgba(70, 44, 28, 0.12);
  font-size: 16px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #15171a;
  --paper-deep: #1e2024;
  --ink: #f0e7da;
  --muted: #bdb0a2;
  --copper: #cf8e63;
  --copper-soft: #dfa77f;
  --wine: #7b2e41;
  --wine-deep: #32111a;
  --blue: #234b68;
  --blue-deep: #0b1b29;
  --line: rgba(207, 142, 99, 0.28);
  --surface: rgba(29, 31, 35, 0.9);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

:root[data-font="large"] {
  font-size: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(165, 106, 67, 0.075), transparent 25rem),
    linear-gradient(135deg, transparent 0 49.5%, rgba(165, 106, 67, 0.035) 50% 50.5%, transparent 51%) 0 0 / 38px 38px,
    var(--paper);
  color: var(--ink);
  font-family: "Thmanyah Sans", "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: .8125rem;
  min-height: 100vh;
  transition: background-color 180ms ease, color 180ms ease;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible {
  outline: 3px solid var(--copper-soft);
  outline-offset: 3px;
}

.site-frame {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1380px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  position: relative;
}

.brand {
  justify-self: start;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--wine);
  font-size: 1.28rem;
  font-weight: 800;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--copper);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--paper) 28%, transparent);
}

.logo-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.logo-mark circle {
  fill: var(--copper);
  stroke: none;
}

:root[data-theme="dark"] .brand {
  color: #fff;
}

.header-actions {
  justify-self: end;
  display: flex;
  direction: rtl;
  gap: 7px;
}

.header-actions button {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--copper);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease;
}

.header-actions button:hover {
  transform: translateY(-2px);
  background: rgba(165, 106, 67, 0.1);
}

.menu-toggle {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  pointer-events: none;
}

.site-menu {
  position: absolute;
  top: calc(100% - 5px);
  left: 0;
  width: min(330px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.site-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-menu p {
  margin: 4px 8px 10px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.site-menu button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: right;
  font-weight: 700;
}

.site-menu button:hover {
  color: var(--copper);
}

.site-menu b {
  color: var(--copper);
}

main {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 46px 26px 34px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 850;
  white-space: nowrap;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 850;
}

.hero-copy > p:last-child {
  max-width: 740px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.75;
}

.hero-medallion {
  position: relative;
  justify-self: center;
  width: min(330px, 27vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--copper);
  border-radius: 28% 72% 36% 64% / 58% 32% 68% 42%;
  transform: rotate(45deg);
  background:
    repeating-conic-gradient(from 0deg, transparent 0 14deg, rgba(165, 106, 67, 0.14) 15deg 16deg),
    color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: inset 0 0 0 15px color-mix(in srgb, var(--paper) 82%, transparent), var(--shadow);
}

.hero-medallion::before,
.hero-medallion::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid var(--copper);
  border-radius: inherit;
}

.hero-medallion::after {
  inset: 24%;
}

.hero-medallion strong {
  transform: rotate(-45deg);
  color: var(--blue);
  font-size: 4.5rem;
}

.dynasty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 6px 0 66px;
}

.dynasty-card {
  position: relative;
  min-height: 290px;
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  border: 1px solid var(--copper-soft);
  border-radius: 20px;
  overflow: hidden;
  color: #f8edde;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dynasty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(56, 32, 23, 0.22);
}

.umayyad-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03), transparent 48%),
    var(--wine);
}

.abbasid-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03), transparent 48%),
    var(--blue);
}

.andalus-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03), transparent 48%),
    #315746;
}

.card-art {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 24px 0 24px 20px;
  background: rgba(9, 15, 19, 0.16);
  overflow: hidden;
}

.card-art img {
  width: 100%;
  height: 245px;
  object-fit: contain;
  object-position: center;
  border-radius: 0 18px 18px 0;
  mix-blend-mode: luminosity;
  opacity: 0.92;
}

.card-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 32px 27px;
}

.card-kicker {
  color: #d9a47e;
  font-size: 0.83rem;
  font-weight: 700;
}

.card-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.2;
}

.card-copy p {
  margin: 0 0 20px;
  color: #e6b07f;
  font-size: .92rem;
}

.card-copy button,
.quick-links button {
  border: 1px solid #d9a47e;
  border-radius: 12px;
  background: rgba(11, 16, 20, 0.14);
  color: #fff7eb;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease;
}

.card-copy button:hover,
.quick-links button:hover {
  transform: translateX(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.card-copy button span {
  margin-right: 10px;
}

.page-hero {
  position: relative;
  min-height: 260px;
  padding: 42px clamp(12px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::after { content: none; }

.umayyad .page-hero h1 {
  color: var(--wine);
}

.abbasid .page-hero h1 {
  color: var(--blue);
}

.andalus .page-hero h1 {
  color: #315746;
}

:root[data-theme="dark"] .page-hero h1 {
  color: var(--ink);
}

.page-hero > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.75;
  margin: 14px 0 0;
}

.back-home {
  width: fit-content;
  margin-bottom: 22px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.quick-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.quick-links button {
  color: var(--ink);
  background: transparent;
  border-color: var(--copper);
}

.content-section {
  padding: 52px clamp(0px, 3vw, 38px);
}

.content-section + .content-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 23px;
}

.section-heading > span {
  display: none;
}

.section-heading p {
  margin: 0 0 4px;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  color: #fff4e6;
  padding: 14px 13px;
  text-align: right;
  font-weight: 800;
}

.table-wrap.umayyad th {
  background: var(--wine);
}

.table-wrap.abbasid th {
  background: var(--blue);
}

.table-wrap.andalus thead th,
.table-wrap.andalus .group-row th {
  background: #315746;
}

td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--copper) 4%, transparent);
}

tbody tr.selectable {
  cursor: pointer;
}

tbody tr.selectable:hover {
  background: color-mix(in srgb, var(--copper) 11%, transparent);
}

.number-chip {
  width: 29px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  font-weight: 850;
}

.era-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 20px;
}

.era-heading.later {
  margin-top: 58px;
}

.era-heading span {
  color: var(--copper);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.era-heading h3 {
  margin: 0;
  font-size: 1.24rem;
}

.group-row th {
  padding: 16px 13px;
  border-top: 10px solid var(--paper);
  text-align: right;
}

.group-row:first-child th {
  border-top: 0;
}

.group-row small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.6;
}

.tree-intro {
  color: var(--muted);
  margin: -14px 0 28px;
  line-height: 1.7;
  font-size: .9rem;
}

.tree-shell {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tree-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}

.tree-toolbar span {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.tree-viewport {
  height: min(55vh, 510px);
  min-height: 390px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  overscroll-behavior: contain;
  position: relative;
}

.tree-viewport:active {
  cursor: grabbing;
}

.tree-viewport.is-dragging {
  cursor: grabbing;
}

.tree-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  min-width: 1320px;
  min-height: 700px;
  padding: 42px 62px;
  transform-origin: top left;
  will-change: transform;
}

.family-tree,
.family-tree ul {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  padding-top: 38px;
  padding-right: 0;
}

.family-tree > li {
  padding-top: 0;
}

.family-tree li {
  position: relative;
  list-style: none;
  text-align: center;
  padding: 38px 10px 0;
}

.family-tree li::before,
.family-tree li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 38px;
  border-top: 1px solid var(--copper);
}

.family-tree li::after {
  left: 0;
  border-right: 1px solid var(--copper);
}

.family-tree li:only-child::before,
.family-tree li:only-child::after {
  display: none;
}

.family-tree li:only-child {
  padding-top: 0;
}

.family-tree li:first-child::before,
.family-tree li:last-child::after {
  border: 0;
}

.family-tree li:last-child::before {
  border-left: 1px solid var(--copper);
  border-radius: 6px 0 0;
}

.family-tree li:first-child::after {
  border-radius: 0 6px 0 0;
}

.family-tree ul::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  height: 38px;
  border-right: 1px solid var(--copper);
}

.tree-node {
  min-width: 106px;
  max-width: 158px;
  min-height: 43px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
  white-space: normal;
  box-shadow: 0 8px 20px rgba(61, 41, 29, 0.08);
}

.tree-node.is-caliph {
  border-color: var(--copper);
  cursor: pointer;
  font-weight: 800;
}

.tree-shell.umayyad .tree-node.is-caliph {
  background: color-mix(in srgb, var(--wine) 13%, var(--paper));
}

.tree-shell.abbasid .tree-node.is-caliph {
  background: color-mix(in srgb, var(--blue) 13%, var(--paper));
}

.tree-node.selected {
  color: #fff7ec;
  transform: translateY(-3px);
  box-shadow: 0 0 0 4px rgba(165, 106, 67, 0.22), 0 12px 28px rgba(56, 28, 26, 0.2);
}

.tree-shell.umayyad .tree-node.selected {
  background: var(--wine);
}

.tree-shell.abbasid .tree-node.selected {
  background: var(--blue);
}

.map-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-open {
  width: 100%;
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--paper-deep) 62%, var(--surface));
  cursor: zoom-in;
}

.map-open img {
  display: block;
  width: 100%;
  height: min(66vh, 680px);
  padding: 24px;
  object-fit: contain;
}

.map-open > span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 9px;
  background: rgba(15,18,21,.78);
  color: #fff;
  font-size: .74rem;
  backdrop-filter: blur(8px);
}

.map-card figcaption {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  color: var(--muted);
}

.map-dialog {
  width: min(96vw, 1500px);
  height: min(94vh, 1000px);
  padding: 48px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}

.map-dialog::backdrop {
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(5px);
}

.map-dialog img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.map-dialog button {
  position: absolute;
  top: 9px;
  left: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .header-actions {
    grid-column: 2;
  }

  .hero {
    padding-top: 46px;
  }

  .dynasty-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner,
  main {
    width: min(100% - 28px, 1380px);
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    font-size: 1rem;
    gap: 8px;
  }

  .logo-mark {
    width: 27px;
    height: 27px;
    border-radius: 8px;
  }

  .logo-mark svg {
    width: 20px;
    height: 20px;
  }

  .header-actions button {
    width: 33px;
    height: 33px;
    border-radius: 9px;
    font-size: .75rem;
  }

  .hero {
    min-height: auto;
    padding: 32px 0 22px;
  }

  .hero h1 {
    font-size: clamp(1.12rem, 5.6vw, 1.72rem);
    letter-spacing: -.035em;
  }

  .page-hero h1 {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
  }

  .hero-copy > p:last-child {
    font-size: .82rem;
    line-height: 1.7;
    margin-top: 12px;
  }

  .dynasty-card {
    min-height: 166px;
    grid-template-columns: 108px 1fr;
    grid-template-rows: none;
    border-radius: 17px;
  }

  .card-art {
    height: auto;
    min-height: 166px;
    padding: 8px;
    overflow: hidden;
    border-left: 1px solid rgba(255,255,255,.14);
  }

  .card-art img {
    width: 100%;
    height: 146px;
    object-fit: contain;
    object-position: center 22%;
    border-radius: 0;
    transform: none;
  }

  .card-copy {
    padding: 18px 16px;
    background: rgba(8, 12, 17, .13);
  }

  .card-copy h2 {
    margin: 5px 0 7px;
    font-size: 1.3rem;
  }

  .card-copy p {
    margin-bottom: 13px;
    font-size: .78rem;
  }

  .card-kicker {
    font-size: .68rem;
  }

  .card-copy button {
    padding: 8px 11px;
    border-radius: 9px;
    font-size: .76rem;
  }

  .page-hero {
    min-height: 250px;
    padding: 34px 2px;
  }

  .quick-links {
    flex-wrap: wrap;
  }

  .content-section {
    padding: 36px 0;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .section-heading h2 {
    font-size: 1.45rem;
  }

  .section-heading p {
    font-size: .72rem;
  }

  .table-wrap {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(61, 41, 29, .08);
    overflow: hidden;
    border-radius: 14px;
  }

  table {
    display: table;
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: .66rem;
  }

  thead {
    display: table-header-group;
  }

  tbody {
    display: table-row-group;
  }

  tbody tr {
    display: table-row;
  }

  th,
  td {
    display: table-cell;
    padding: 8px 3px;
    white-space: nowrap;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: clip;
  }

  th:nth-child(1),
  td:nth-child(1) {
    width: 10%;
    text-align: center;
  }

  th:nth-child(2),
  td:nth-child(2) {
    width: 42%;
  }

  th:nth-child(3),
  td:nth-child(3) {
    width: 25%;
  }

  th:nth-child(4),
  td:nth-child(4) {
    width: 23%;
  }

  td::before {
    content: none;
  }

  .number-chip {
    width: 21px;
    height: 21px;
    font-size: .68rem;
  }

  .compact-table th:nth-child(1),
  .compact-table td:nth-child(1) {
    width: 12%;
  }

  .compact-table th:nth-child(2),
  .compact-table td:nth-child(2) {
    width: 55%;
  }

  .compact-table th:nth-child(3),
  .compact-table td:nth-child(3) {
    width: 33%;
  }

  .rulers-table {
    font-size: .61rem;
  }

  .rulers-table th,
  .rulers-table td {
    padding: 7px 3px;
    white-space: normal;
    line-height: 1.35;
    overflow: visible;
  }

  .rulers-table th:nth-child(1),
  .rulers-table td:nth-child(1) {
    width: 9%;
  }

  .rulers-table th:nth-child(2),
  .rulers-table td:nth-child(2) {
    width: 35%;
  }

  .rulers-table th:nth-child(3),
  .rulers-table td:nth-child(3) {
    width: 24%;
  }

  .rulers-table th:nth-child(4),
  .rulers-table td:nth-child(4) {
    width: 32%;
  }

  .group-row th {
    padding: 11px 8px;
    border-top-width: 7px;
    font-size: .72rem;
  }

  .group-row small {
    font-size: .61rem;
  }

  .tree-toolbar {
    padding: 9px 11px;
  }

  .tree-toolbar span {
    margin: 0;
    font-size: .72rem;
  }

  .tree-viewport {
    min-height: 330px;
    height: 48vh;
    max-height: 410px;
  }

  .tree-canvas {
    padding: 36px 38px;
    min-width: 1180px;
    min-height: 620px;
  }

  .map-open img {
    height: 390px;
    padding: 10px;
  }

  .map-open > span {
    left: 9px;
    bottom: 9px;
    padding: 6px 8px;
    font-size: .64rem;
  }

  .map-card figcaption {
    min-height: 46px;
    padding: 10px;
    font-size: .68rem;
  }

  .map-dialog {
    width: 98vw;
    height: 92vh;
    padding: 45px 8px 8px;
  }
}

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