:root {
  --indigo-950: #17143f;
  --indigo-900: #231f5c;
  --indigo-700: #3b3690;
  --indigo-100: #e6e5f5;
  --saffron: #f7a823;
  --saffron-dark: #dd8f0c;
  --ground: #faf8f4;
  --surface: #ffffff;
  --ink: #1f1d33;
  --muted: #5f5c75;
  --line: #e4e1da;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--indigo-700); }

h1, h2 { line-height: 1.2; margin: 0; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }

/* Styles reach icons through <use> by inheriting from the outer svg. */
.icon, .festival-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 20px; height: 20px; flex: none; }
.flag { width: 24px; height: 16px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 15%); }

.button {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.button-primary { background: var(--saffron); color: var(--indigo-950); }
.button-primary:hover { background: var(--saffron-dark); }
.button-outline { border-color: var(--indigo-700); color: var(--indigo-700); }
.button-outline:hover { background: var(--indigo-100); }

.link-button {
  padding: 9px 6px;
  border: 0;
  background: none;
  color: var(--indigo-700);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.link-button:hover { text-decoration: underline; }

/* Top bar */
.topbar { position: relative; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  max-width: 1720px;
  margin-inline: auto;
  padding: 10px 20px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--indigo-900); font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.logo-icon { display: block; flex: none; width: 40px; height: 40px; }
.logo-text span { color: var(--saffron-dark); }

.pickers { display: flex; align-items: center; gap: 8px; min-width: 0; }

.dropdown { position: relative; }
.dropdown summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 9px;
  font-weight: 500;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary:hover { background: var(--indigo-100); }
.chevron.icon { width: 15px; height: 15px; }
.dropdown[open] .chevron { transform: rotate(180deg); }

.pickers summary { border: 1px solid var(--line); }
.city-login-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.city-login-link:hover { background: var(--indigo-100); }
.more-login-link { display: inline-flex; align-items: center; gap: 6px; }
#city-label { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: 220px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgb(23 20 63 / 18%);
}
.dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.dropdown-panel a:hover { background: var(--indigo-100); }

.region-switcher .dropdown-panel { width: 160px; }

.city-picker .dropdown-panel { width: min(290px, calc(100vw - 40px)); padding: 10px; }
.city-picker input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.city-list { max-height: 260px; margin: 8px 0 0; padding: 0; overflow-y: auto; list-style: none; }
.city-list button {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.city-list button:hover, .city-list button:focus-visible { background: var(--indigo-100); }
.city-empty { margin: 10px 4px 2px; color: var(--muted); }

.menu-toggle { display: none; margin-left: auto; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: none; color: var(--ink); cursor: pointer; }

.site-menu { display: contents; }

/* Two rows on desktop: the logo, pickers and account links, then the section menu on its own row. */
.category-nav { order: 10; display: flex; flex-basis: 100%; flex-wrap: wrap; align-items: center; gap: 2px; }
.category-nav > a { padding: 7px 10px; border-radius: 9px; color: var(--ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.category-nav > a:hover { background: var(--indigo-100); }
.category-nav > a.menu-locked { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.category-nav > a.menu-locked .icon { width: 14px; height: 14px; }

.account-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.account-actions form { margin: 0; }
/* About Us, Privacy and Chat with us: small links just left of Post a Listing. */
.info-links { display: flex; align-items: center; gap: 2px; margin-right: 4px; }
.info-links a { padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.info-links a:hover, .info-links a[aria-current="page"] { background: var(--indigo-100); color: var(--ink); }
.account-name { max-width: 180px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
/* About Us, Privacy and Chat with us: shown in a row from 1500px, in the More menu on narrower desktops, and in a
   row again inside the phone menu. */
.info-more { display: none; }
.info-more summary { color: var(--muted); font-size: .9rem; }
.info-more .dropdown-panel { right: 0; left: auto; width: 180px; }
.info-more .dropdown-panel a[aria-current="page"] { background: var(--indigo-100); }

@media (min-width: 861px) and (max-width: 1499px) {
  .info-links { display: none; }
  .info-more { display: block; }
}

@media (max-width: 860px) {
  .logo { font-size: 1.15rem; }
  .pickers { order: 5; flex-basis: 100%; }
  .city-picker, .city-login-link { flex: 1; min-width: 0; }
  #city-label { flex: 1; max-width: none; }
  .region-switcher .dropdown-panel { right: 0; left: auto; }

  .js .menu-toggle { display: block; }
  .js .site-menu { display: none; }
  .site-menu, .js .site-menu.is-open { display: block; order: 6; flex-basis: 100%; padding-top: 6px; border-top: 1px solid var(--line); }

  .category-nav { flex-direction: column; align-items: stretch; }
  .category-nav > a, .more-menu summary { padding: 10px 8px; }
  .more-menu .dropdown-panel { position: static; width: auto; padding: 0 0 0 12px; border: 0; box-shadow: none; }

  .account-actions { flex-wrap: wrap; margin: 10px 0 6px; }
  .account-actions .button-primary { width: 100%; }
  /* Inside the phone menu, on their own line above Post a Listing. */
  .info-links { flex-basis: 100%; flex-wrap: wrap; margin: 0 0 4px; padding-top: 6px; border-top: 1px solid var(--line); }
  .info-links a { padding: 10px 8px; font-size: 1rem; }
}

/* Local home pages: a small way back to the national one. */
.local-home-bar { display: flex; justify-content: flex-end; padding-block: 8px; font-size: .9rem; }
.local-home-bar a { color: var(--indigo-700); font-weight: 600; }

/* Banner */
.hero { background: radial-gradient(circle at 85% 10%, var(--indigo-700), transparent 55%), var(--indigo-950); color: #fff; }
.hero-inner { padding-block: 64px 56px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.hero p { max-width: 620px; margin: 14px auto 28px; color: #d6d4ee; font-size: 1.1rem; }

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin-inline: auto;
  padding: 8px 8px 8px 16px;
  background: var(--surface);
  border-radius: 14px;
  color: var(--muted);
}
.hero-search input { flex: 1; min-width: 0; padding: 8px 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 1.05rem; }
.hero-search:focus-within { outline: 3px solid var(--saffron); }
.hero-search .button { padding: 11px 24px; }

.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.quick-links a { padding: 6px 14px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 999px; color: #fff; font-size: .95rem; text-decoration: none; }
.quick-links a:hover { background: rgb(255 255 255 / 12%); }

/* Festival card and category circle */
.festival-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: center; padding-block: 48px; }

.festival-card { position: relative; padding: 32px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--saffron); border-radius: var(--radius); }
.festival-card h2 { font-size: 1.75rem; }
.festival-card p { margin: 10px 0; color: var(--muted); }
.festival-card .eyebrow { margin: 0 0 8px; color: var(--saffron-dark); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.festival-icon { position: absolute; top: 18px; right: 18px; width: 56px; height: 56px; color: var(--saffron); }
.festival-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; padding: 0; list-style: none; }
.festival-tags li { padding: 3px 12px; background: var(--indigo-100); border-radius: 999px; color: var(--indigo-900); font-size: .9rem; font-weight: 600; }

.category-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; flex: none; background: var(--indigo-900); border-radius: 50%; color: var(--saffron); }
.category-icon .icon { width: 26px; height: 26px; }

.category-circle { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin-inline: auto; }
.category-circle::before { content: ""; position: absolute; inset: 12%; border: 2px dashed var(--line); border-radius: 50%; }
.category-circle-hub { position: absolute; top: 50%; left: 50%; width: 42%; color: var(--indigo-900); font-weight: 700; text-align: center; transform: translate(-50%, -50%); }
.category-circle-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 104px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transform: translate(-50%, -50%);
}
.category-circle-item:hover .category-icon { background: var(--indigo-700); }
.category-circle-item:nth-of-type(1) { top: 13%; left: 50%; }
.category-circle-item:nth-of-type(2) { top: 39%; left: 85%; }
.category-circle-item:nth-of-type(3) { top: 81%; left: 72%; }
.category-circle-item:nth-of-type(4) { top: 81%; left: 28%; }
.category-circle-item:nth-of-type(5) { top: 39%; left: 15%; }

/* Featured strip */
.featured { padding-block: 44px 56px; background: var(--indigo-100); }
.featured h2 { margin-bottom: 20px; font-size: 1.6rem; color: var(--indigo-950); }
.featured-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.featured-item { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.featured-item:hover { box-shadow: 0 8px 22px rgb(23 20 63 / 14%); }
.featured-item .category-icon { margin-bottom: 8px; }
.featured-item span:last-child { color: var(--muted); font-size: .92rem; }

/* Site footer */
.site-footer { position: relative; padding-block: 32px 72px; background: var(--indigo-900); color: #e6e5f5; font-size: .95rem; }
.site-footer a { color: #fff; text-underline-offset: 3px; }
.site-footer a:not(.footer-promo-button):hover { color: var(--saffron); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 56px; align-items: start; width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.footer-inner > :only-child { grid-column: 1 / -1; }
.footer-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid rgb(247 168 35 / 55%); border-radius: var(--radius); background: rgb(255 255 255 / 7%); }
.footer-promo-text { margin: 0; color: #fff; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.footer-promo-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--saffron); color: var(--indigo-950) !important; font-weight: 700; text-decoration: none; }
.footer-promo-button:hover { background: var(--saffron-dark); }
.footer-group { border-bottom: 1px solid rgb(255 255 255 / 18%); }
.footer-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; color: #fff; font-size: 1.02rem; font-weight: 700; cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.footer-group summary::-webkit-details-marker { display: none; }
.footer-group summary .icon { color: var(--saffron); transition: transform .15s; }
.footer-group[open] summary .icon { transform: rotate(180deg); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; margin: 0; padding: 0 0 14px; list-style: none; }
.footer-links a { display: inline-block; padding-block: 6px; overflow-wrap: anywhere; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-row { padding-block: 14px; }
.footer-row:first-child { padding-top: 0; }
.footer-row + .footer-row { border-top: 1px solid rgb(255 255 255 / 18%); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; overflow-wrap: anywhere; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact .icon { color: var(--saffron); }
.footer-heading { margin: 0 0 10px; color: #fff; font-size: 1rem; font-weight: 700; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / 12%); }
.footer-social a:hover { background: var(--saffron); color: var(--indigo-950); }
.footer-social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-social .outline { fill: none; stroke: currentColor; stroke-width: 2; }
/* Every link has a line on its left. The list is pulled 13px left and that strip is cut off, so the first link on each
   row, including a row that wrapped, starts with no line. */
.footer-page-links { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0 0 0 -13px; padding: 0; list-style: none; clip-path: inset(-4px -4px -4px 13px); }
.footer-page-links li { padding-inline: 12px; border-left: 1px solid rgb(255 255 255 / 35%); }
.footer-page-links a { text-decoration: none; }
.footer-page-links a:hover { text-decoration: underline; }
.footer-copyright { margin: 0; color: #d6d4ee; font-size: .88rem; }
.footer-top { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--saffron); color: var(--indigo-950) !important; box-shadow: 0 4px 12px rgb(0 0 0 / 30%); }
.footer-top:hover { background: var(--saffron-dark); }
html:not(.js) .footer-top { display: none; }
.phone-bar, .phone-bar-space { display: none; }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-group summary { min-height: 52px; }
  .footer-links a { padding-block: 10px; }
  .footer-page-links li { padding-block: 4px; }
  .phone-bar-space { display: block; height: calc(62px + env(safe-area-inset-bottom)); }
  .phone-bar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgb(255 255 255 / 25%); background: var(--indigo-950); }
  .phone-bar a, .phone-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; padding: 6px 4px; border: 0; background: none; color: #fff; font: inherit; font-size: .78rem; text-decoration: none; cursor: pointer; }
  .phone-bar .icon { color: var(--saffron); }
  html:not(.js) .phone-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:not(.js) .phone-bar-share { display: none; }
}

/* Placeholder and account pages */
.page-card { max-width: 560px; margin-block: 56px; padding-block: 32px; text-align: center; }
.page-card h1 { margin-top: 16px; font-size: 1.9rem; }
.page-card p { color: var(--muted); }
.page-query { overflow-wrap: anywhere; font-weight: 600; }
.category-icon-large { width: 76px; height: 76px; }
.category-icon-large .icon { width: 36px; height: 36px; }
.flag-large { width: 96px; height: 64px; border-radius: 6px; }

.form-card { max-width: 460px; text-align: left; }
.form-card h1 { margin: 0 0 18px; }
.form-card form > div { margin-bottom: 14px; }
.form-card label { display: block; margin-bottom: 4px; font-weight: 600; }
.form-card input:not([type="hidden"]), .form-card select { width: 100%; padding: 10px 12px; border: 1px solid #b9b6c9; border-radius: 9px; background: var(--surface); font: inherit; }
.form-card .form-notice { padding: 10px 14px; background: var(--indigo-100); border-radius: 9px; color: var(--indigo-950); }
.form-card .helptext, .form-card .helptext li { color: var(--muted); font-size: .88rem; }
.form-card .helptext ul { margin: 6px 0 0; padding-left: 18px; }
.form-card .errorlist { margin: 0 0 6px; padding: 0; color: #b3261e; font-size: .92rem; list-style: none; }
.form-card .button { width: 100%; margin-top: 4px; }

/* News and events */
.verify-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding: 8px 20px; background: #fff3d6; color: var(--indigo-950); font-size: .95rem; text-align: center; }
.verify-banner form { margin: 0; }
.verify-banner .link-button { padding: 2px 6px; text-decoration: underline; }
.site-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 7px 20px; background: var(--indigo-100, #eef0ff); color: var(--indigo-950); font-size: .92rem; text-align: center; }
.site-notice a { font-weight: 600; }
.news-section { padding-block: 8px 48px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.section-heading h2 { font-size: 1.6rem; color: var(--indigo-950); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.content-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
a.content-card:hover { box-shadow: 0 8px 22px rgb(23 20 63 / 14%); }
.content-card img { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.content-card-body { padding: 16px 18px 18px; }
.content-card h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
.content-card p { margin: 6px 0; overflow-wrap: anywhere; }
.content-date { color: var(--saffron-dark); font-size: .85rem; font-weight: 700; }

/* Featured on the home pages: 3 cards, each turning like a box to show its next side every 5 seconds. Every side
   has the same height, so the box never changes size as it turns. */
.featured-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.featured-stage { position: relative; height: var(--featured-height, auto); perspective: 1400px; }
.featured-cube { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45, .05, .25, 1); }
.featured-face { height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* Until the script has measured the sides, the first one shows as a normal card. */
.featured-face:not(.is-current) { display: none; }
.featured-card.is-ready .featured-face { position: absolute; inset: 0; display: block; }
.featured-card.is-ready .featured-face:not(.is-current):not(.is-next) { visibility: hidden; pointer-events: none; }
.featured-face > .content-card { height: 100%; }
.featured-side .content-card-body { display: flex; flex-direction: column; gap: 6px; }
.featured-side h3 { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.featured-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.featured-source { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .9rem; }
.featured-media { position: relative; display: block; }
.featured-nophoto { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--indigo-100), #fff3d6); color: var(--indigo-700); }
.featured-nophoto .icon { width: 52px; height: 52px; }
.featured-label { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 2px 10px; border-radius: 999px; background: rgb(23 20 63 / 82%); color: #fff; font-size: .75rem; font-weight: 600; }
.featured-soon { position: relative; }
.featured-soon-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 52px 22px 24px; }
.featured-soon-body strong { font-size: 1.15rem; }
.featured-soon-tag { padding: 3px 12px; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.featured-dots { display: flex; justify-content: center; gap: 7px; }
.featured-dot { width: 7px; height: 7px; border-radius: 50%; background: #cfcce0; transition: background .3s, transform .3s; }
.featured-dot.is-current { background: var(--indigo-700); transform: scale(1.25); }
/* With "reduce motion" turned on, the sides fade instead of turning. */
.featured-card.is-fading .featured-cube { transform: none !important; transition: none; }
.featured-card.is-fading .featured-face { transform: none !important; opacity: 0; transition: opacity .6s ease; visibility: visible !important; }
.featured-card.is-fading .featured-face.is-current { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .featured-cube, .featured-dot { transition: none; } }
.content-muted { color: var(--muted); }
.content-page { padding-block: 40px 56px; }
.content-page > h1 { margin-bottom: 20px; font-size: 1.9rem; color: var(--indigo-950); }
.content-empty { color: var(--muted); }
.article { max-width: 760px; }
.article h1 { margin-block: 6px 14px; font-size: 2rem; overflow-wrap: anywhere; }
.article img { display: block; width: 100%; max-width: 100%; margin-bottom: 18px; border-radius: var(--radius); }
.article-body { overflow-wrap: anywhere; }
.pager { display: flex; justify-content: center; gap: 16px; margin-top: 28px; }

/* Privacy page */
.privacy-page { max-width: 720px; text-align: left; }
.privacy-page h1 { margin: 0 0 8px; }
.privacy-page h2 { margin-top: 28px; font-size: 1.2rem; color: var(--indigo-950); }
.privacy-page p, .privacy-page li { color: var(--ink); }

/* Google button and messages */
.google-form { margin: 0; }
.form-card .google-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 0; background: var(--surface); border-color: #b9b6c9; color: var(--ink); }
.google-button:hover { background: var(--indigo-100); }
.google-button svg { width: 18px; height: 18px; flex: none; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .9rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.form-card .form-error { padding: 10px 14px; background: #fbe9e7; border-radius: 9px; color: #8c1d18; }
.profile-email { margin-bottom: 14px; }
.profile-email strong { display: block; color: var(--ink); overflow-wrap: anywhere; }

/* Member map */
.member-map-section { padding-block: 44px 56px; background: var(--surface); text-align: center; }
.member-map-section h2 { font-size: 1.6rem; color: var(--indigo-950); }
.member-map-section > .wrap > p:first-of-type { margin: 8px auto 20px; color: var(--muted); }
/* Two classes, because leaflet.css loads later and sets its own grey background. */
.member-map.leaflet-container { background: #dce3ef; font: inherit; }
.member-map { position: relative; z-index: 0; isolation: isolate; width: 100%; height: clamp(280px, 62vw, 680px); background: #dce3ef; border: 1px solid var(--line); border-radius: var(--radius); }
.member-map-error { margin-top: 12px; color: #b3261e; }
.member-map-status { min-height: 1.4em; margin: 8px 0 0; color: var(--muted); font-size: .88rem; }

/* Marker colours: members blue, consultancies green, stores and shops saffron. */
.map-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin: 0 0 14px; }
.map-kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0; padding: 0; border: 0; }
.map-kinds label { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; cursor: pointer; }
.map-kinds input { width: 20px; height: 20px; margin: 0; accent-color: var(--indigo-700); }
.map-state { display: inline-flex; align-items: center; gap: 8px; }
.map-state select { min-height: 40px; padding: 6px 10px; border: 1px solid #b9b6c9; border-radius: 9px; background: var(--surface); font: inherit; }
.map-key { display: inline-block; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgb(0 0 0 / 25%); }
.map-key-members, .map-dot-members, .map-cluster-members { background: #1f6feb; }
.map-key-consultancy, .map-dot-consultancy, .map-cluster-consultancy { background: #15803d; }
.map-key-store, .map-dot-store, .map-cluster-store { background: #f7a823; }
.map-legend { display: grid; gap: 4px; padding: 6px 10px; border-radius: 8px; background: rgb(255 255 255 / 92%); box-shadow: 0 1px 4px rgb(0 0 0 / 20%); color: var(--ink); font-size: .8rem; text-align: left; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .map-key { width: 11px; height: 11px; }
.map-marker { background: none; border: 0; }
.map-dot, .map-cluster { display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgb(0 0 0 / 35%); color: #fff; font-size: .78rem; font-weight: 700; line-height: 1; }
.map-cluster { border-width: 3px; font-size: .85rem; }
.map-dot-store, .map-cluster-store { color: var(--indigo-950); }
.leaflet-marker-icon:focus-visible { outline: 3px solid var(--indigo-950); outline-offset: 2px; border-radius: 50%; }
.map-popup { display: grid; gap: 3px; font-size: .9rem; text-align: left; }
.map-popup-picture { width: 100%; max-height: 110px; margin-bottom: 4px; border-radius: 6px; object-fit: cover; }
.map-popup-name { font-size: 1rem; }
.map-popup-type { color: var(--muted); font-size: .82rem; }
.leaflet-popup-content .map-popup p { margin: 2px 0; }
.leaflet-popup-content .map-popup-about { margin-top: 6px; }
.map-popup-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.map-popup-links a { display: inline-block; padding-block: 4px; overflow-wrap: anywhere; }
.map-popup-directions { font-weight: 700; }
.map-popup-members { font-weight: 600; }
.member-map-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 16px; }
.map-sources { color: var(--muted); font-size: .85rem; }
.map-sources summary { min-height: 32px; cursor: pointer; text-decoration: underline; }
.map-sources p { max-width: 520px; margin: 6px auto 0; }
@media (max-width: 600px) {
  .map-filters { justify-content: flex-start; }
  .map-kinds { justify-content: flex-start; }
  .map-state, .map-state select { width: 100%; }
  .map-state select { flex: 1; }
  .member-map { height: clamp(320px, 95vw, 460px); }
}

/* Region pop-up */
.region-dialog { width: min(480px, calc(100vw - 32px)); padding: 28px; border: 0; border-radius: 18px; text-align: center; }
.region-dialog::backdrop { background: rgb(23 20 63 / 72%); }
.region-dialog h2 { font-size: 1.4rem; color: var(--indigo-950); }
.region-dialog p { color: var(--muted); }
.region-dialog form { margin-top: 8px; }
.region-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.region-choice { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.region-choice:hover { background: var(--indigo-100); border-color: var(--indigo-700); }
.region-choice .flag { width: 54px; height: 36px; }

@media (max-width: 960px) {
  .featured-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .festival-section { grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
}

@media (max-width: 480px) {
  .hero-inner { padding-block: 40px; }
  .hero-search { padding-left: 12px; }
  .hero-search > .icon { display: none; }
  .hero-search .button { padding: 11px 14px; }
  .festival-card { padding: 24px 20px; }
  .festival-card h2 { padding-right: 48px; font-size: 1.45rem; }
  .festival-icon { width: 42px; height: 42px; }
  .category-circle-item { width: 88px; font-size: .84rem; }
  .category-icon { width: 46px; height: 46px; }
  .category-icon-large { width: 76px; height: 76px; }
  .featured-strip { gap: 10px; }
  .featured-item { padding: 14px; }
}

/* Sections */
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.home-sections { padding-block: 40px 48px; }

/* Home page promotion slots: 2 down the left of the section tiles and 3 down the right; above and below them on
   tablets and phones. */
.home-promo-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; gap: 20px; align-items: start; max-width: 1440px; margin-inline: auto; padding: 40px 20px 48px; }
.home-promo-layout > .home-sections { max-width: none; margin: 0; padding: 0; }
.home-promos { display: flex; flex-direction: column; gap: 14px; }
.promo-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 168px; padding: 16px; border-radius: 16px; color: var(--ink); text-align: center; text-decoration: none; overflow: hidden; }
.promo-slot.is-empty { border: 2px dashed #b8aef0; background: #f8f6ff; color: #4b438f; }
.promo-slot.is-empty:hover { background: #efebff; border-color: #8f82e0; }
.promo-slot-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #e8e3ff; color: #5b4fc4; }
.promo-slot-icon .icon { width: 24px; height: 24px; }
.promo-slot-text { font-size: .9rem; font-weight: 600; line-height: 1.35; }
.promo-slot.is-filled { justify-content: flex-start; padding: 0 0 12px; border: 1px solid var(--line); background: var(--surface); }
.promo-slot.is-filled img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.promo-slot-title { padding-inline: 12px; font-weight: 600; line-height: 1.3; }
.promo-slot-sponsored { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: rgb(23 20 63 / 75%); color: #fff; font-size: .72rem; font-weight: 600; }

@media (max-width: 1099px) {
  .home-promo-layout { display: block; max-width: 1180px; padding: 28px 20px 48px; }
  .home-promo-layout > .home-sections { padding-block: 18px; }
  .home-promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
  .promo-slot { min-height: 128px; }
}
.section-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.section-tile:hover { border-color: var(--indigo-700); }
.section-tile .category-icon { width: 44px; height: 44px; }
.section-tile span:last-child { color: var(--muted); font-size: .92rem; }

/* Home page section tiles that turn like a box, the same way as the Featured cards (core/section-tiles.js). The box
   look moves from the link to each side; the hidden copy of side 1 keeps the tile its old size. */
.section-cube { position: relative; padding: 0; border: 0; background: none; }
.section-cube span:last-child { color: inherit; font-size: inherit; }
.section-cube .tile-side { display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.section-cube .tile-front > span:last-child { color: var(--muted); font-size: .92rem; }
.section-cube:hover .tile-side { border-color: var(--indigo-700); }
.section-cube .tile-sizer { flex: 1; height: auto; visibility: hidden; }
.tile-stage { position: absolute; inset: 0; perspective: 1400px; }
.tile-cube { position: relative; display: block; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45, .05, .25, 1); }
.tile-face { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tile-face:not(.is-current):not(.is-next) { visibility: hidden; pointer-events: none; }
.section-cube .tile-picture { position: relative; padding: 8px; }
.tile-picture picture { display: block; flex: 1; min-height: 0; }
.tile-picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tile-label { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 2px 10px; border-radius: 999px; background: rgb(23 20 63 / 82%); color: #fff; font-size: .75rem; font-weight: 600; }
.section-cube.is-fading .tile-cube { transform: none !important; transition: none; }
.section-cube.is-fading .tile-face { transform: none !important; opacity: 0; transition: opacity .6s ease; visibility: visible !important; }
.section-cube.is-fading .tile-face.is-current { opacity: 1; }
/* The box sticks out a little while it turns; never let that make the page scroll sideways. */
.home-promo-layout { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { .tile-cube { transition: none; } }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 18px 0 24px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; }
.filters input, .filters select { min-width: 150px; padding: 8px 10px; border: 1px solid #b9b6c9; border-radius: 9px; font: inherit; }
.filter-actions { display: flex; align-items: center; gap: 12px; }

.listing-card img, .listing-card-nophoto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.listing-card-nophoto { display: flex; align-items: center; justify-content: center; background: var(--indigo-100); color: var(--indigo-700); }
.listing-card-nophoto .icon { width: 40px; height: 40px; }
.card-facts { margin: 8px 0 0; padding: 0; list-style: none; font-size: .92rem; }
.card-facts span { color: var(--muted); }

.listing-detail { max-width: 860px; }
.breadcrumb { margin: 0 0 12px; }
.photo-strip { display: flex; gap: 10px; margin-bottom: 18px; overflow-x: auto; scroll-snap-type: x mandatory; }
.photo-strip img { height: 260px; max-width: 85vw; object-fit: cover; border-radius: 10px; scroll-snap-align: start; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px 20px; margin: 18px 0; }
.facts div { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.verified-badge { display: inline-block; margin: 8px 0 0; padding: 2px 10px; background: #e3f4e6; border-radius: 99px; color: #1d6b2c; font-weight: 600; }
.listing-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin-top: 24px; }
.listing-actions form { margin: 0; }
.report-box summary { color: var(--muted); cursor: pointer; }
.report-box form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin-top: 10px; }
.report-box label { display: flex; flex-direction: column; gap: 4px; }
.report-box select, .report-box textarea { padding: 8px 10px; border: 1px solid #b9b6c9; border-radius: 9px; font: inherit; }
.owner-panel { margin-bottom: 20px; padding: 16px 18px; background: var(--indigo-100); border-radius: var(--radius); }
.owner-panel h2 { margin-top: 12px; font-size: 1.05rem; }
.chat-list { padding-left: 18px; }
.link-button.danger { color: #b3261e; }

.safety-tip, .section-note { margin: 0 0 16px; padding: 12px 16px; background: #fff3d6; border-left: 4px solid var(--saffron); border-radius: 8px; }
.section-note-strong { background: #fde7e5; border-left-color: #b3261e; }
.safety-tip p { margin: 0; }
.safety-tip ul { margin: 6px 0 0; padding-left: 20px; }
.safety-tip li + li { margin-top: 4px; }

.listing-form { max-width: 620px; }
.listing-form textarea, .listing-form select[multiple] { width: 100%; padding: 10px 12px; border: 1px solid #b9b6c9; border-radius: 9px; font: inherit; }
.listing-form input[type="checkbox"] { width: auto; margin-right: 6px; }
.listing-form div > div > label, .listing-form ul label { display: inline; font-weight: 400; }
.listing-form ul { margin: 4px 0; padding: 0; list-style: none; }

.limits { padding-left: 18px; }
.my-listings { padding: 0; list-style: none; }
.my-listings li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.status { padding: 1px 9px; background: var(--indigo-100); border-radius: 99px; font-size: .85rem; }
.status-live { background: #e3f4e6; color: #1d6b2c; }
.status-rejected, .status-removed { background: #fde7e5; color: #8c1d16; }
.expiry-warning { color: #8c1d16; font-weight: 600; }

.search-page-form { margin: 18px 0 28px; max-width: 640px; }
.search-group { margin: 24px 0 8px; font-size: 1.15rem; }
.search-results { padding-left: 18px; }

.paywall { max-width: 640px; }
.paywall ul { text-align: left; }

/* Chat */
.chat-page { padding-block: 24px 40px; }
.chat-box { display: flex; flex-direction: column; max-width: 720px; height: min(80vh, 760px); margin-inline: auto; overflow: hidden; background: #efeae2; border: 1px solid var(--line); border-radius: var(--radius); }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--indigo-900); color: #fff; }
.chat-header form { margin: 0; }
.chat-listing { display: block; color: #d6d4ee; font-size: .88rem; }
.chat-leave { border-color: #fff; color: #fff; }
.chat-notice { margin: 0; padding: 8px 16px; background: #fff3d6; color: var(--indigo-950); font-size: .9rem; text-align: center; }
.chat-tip { margin: 0; padding: 6px 16px; background: #fdf9ef; color: var(--muted); font-size: .85rem; text-align: center; }
.chat-messages { flex: 1; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 14px; overflow-y: auto; list-style: none; }
.chat-bubble { position: relative; max-width: 78%; padding: 7px 10px 4px; border-radius: 10px; box-shadow: 0 1px 1px rgb(0 0 0 / 8%); }
.chat-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-mine { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.chat-theirs { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.chat-time { display: block; color: var(--muted); font-size: .72rem; text-align: right; }
.chat-report { padding: 0; border: 0; background: none; color: var(--muted); font-size: .72rem; text-decoration: underline; cursor: pointer; }
.chat-typing { margin: 0; padding: 0 16px 6px; color: var(--muted); font-size: .85rem; font-style: italic; }
.chat-ended { padding: 24px; text-align: center; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px; background: #f0f2f5; }
.chat-compose[hidden] { display: none; }
.chat-compose textarea { flex: 1; max-height: 140px; padding: 10px 14px; border: 0; border-radius: 20px; font: inherit; resize: none; }
.chat-send { border-radius: 20px; }
.chat-error { margin: 0; padding: 6px 16px; background: #fde7e5; color: #8c1d16; font-size: .88rem; }

/* A small button inside a line of text, such as Repost on My listings */
.inline-form { display: inline; margin-left: 8px; }
.button-small { padding: 5px 12px; font-size: .85rem; }

/* Street and address suggestions under a field */
.places-field { position: relative; }
.places-list { position: absolute; left: 0; right: 0; z-index: 900; margin: 4px 0 0; padding: 4px; list-style: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 26px rgb(23 20 63 / 16%); }
.places-list[hidden] { display: none; }
.places-list li { padding: 9px 10px; border-radius: 7px; cursor: pointer; font-size: .93rem; }
.places-list li:hover, .places-list li[aria-selected="true"] { background: var(--indigo-100); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.region-fixed { display: flex; align-items: center; gap: 6px; padding: 7px 10px; font-weight: 500; white-space: nowrap; }

/* Chat with us */
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-thread { margin: 0 0 20px; padding: 14px; border: 1px solid var(--line, #e4e1da); border-radius: 12px; }
.contact-thread-head { margin: 0 0 10px; }
.contact-bubble { max-width: 85%; margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; overflow-wrap: anywhere; }
.contact-bubble p { margin: 0; }
.contact-mine { margin-left: auto; background: #f1f0f8; }
.contact-theirs { background: #fdf0d8; }
.contact-who { font-size: .8rem; opacity: .75; }
.contact-follow-up { display: grid; gap: 6px; margin-top: 10px; }
.contact-page textarea, .contact-page input, .contact-page select { width: 100%; }
.contact-page { max-width: 640px; }
.form-card textarea { width: 100%; padding: 10px 12px; border: 1px solid #b9b6c9; border-radius: 9px; background: var(--surface); font: inherit; resize: vertical; }
.contact-follow-up .button { width: auto; justify-self: start; }

/* Messages: the header icon, red counts, the inbox and the chat page */
.messages-link { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 8px; color: var(--indigo-700); text-decoration: none; white-space: nowrap; }
.messages-link:hover { background: var(--indigo-100); }
.messages-link .icon { width: 20px; height: 20px; }
.badge-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #c62828; color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; text-decoration: none; }
.messages-waiting { margin: 0 0 14px; }
.messages-waiting a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.inbox-list { margin: 16px 0 0; padding: 0; list-style: none; }
.inbox-list li + li { border-top: 1px solid var(--line); }
.inbox-list a { display: flex; align-items: center; gap: 12px; padding: 12px 6px; color: var(--ink); text-decoration: none; }
.inbox-list a:hover { background: var(--indigo-100); }
.inbox-list .is-unread strong { color: #c62828; }
.inbox-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.inbox-text .content-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .85rem; }
.chat-presence { margin: 0; padding: 6px 16px; color: var(--muted); font-size: .88rem; text-align: center; }
.chat-presence.is-here { color: #17693f; }
.chat-waiting { display: block; margin-top: 2px; font-size: .72rem; opacity: .75; }
@media (max-width: 860px) { .messages-link, .messages-wrap { order: -1; } }
/* The header's Messages link with its red count, which opens the newest unread chats. */
.messages-wrap { position: relative; display: inline-flex; align-items: center; }
.messages-pop { margin-left: -6px; }
.messages-pop > summary { cursor: pointer; list-style: none; }
/* The red count keeps its own look, not the menus' summary style. */
.dropdown.messages-pop > summary.badge-count { min-width: 20px; height: 20px; padding: 0 6px; border: 0; border-radius: 10px; background: #c62828; color: #fff; font-size: .75rem; }
.dropdown.messages-pop > summary.badge-count:hover { background: #a31f1f; }
.msg-badge[hidden], .messages-pop[hidden] { display: none; }
.messages-pop > summary::-webkit-details-marker { display: none; }
.messages-panel { right: 0; left: auto; width: min(300px, 90vw); }
.messages-panel a { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; align-items: center; }
.messages-panel a span:not(.badge-count) { grid-column: 1; overflow: hidden; color: var(--muted); font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.messages-panel a .badge-count { grid-row: 1 / span 2; grid-column: 2; }
.messages-panel .messages-all { display: block; border-top: 1px solid var(--line); font-weight: 600; }

/* The Messages page: one square card per section, 3 across, then 2 on tablets and 1 on phones. */
.msg-page { max-width: 980px; margin-block: 40px 56px; }
.msg-page h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.9rem; }
.msg-title-icon { width: 28px; height: 28px; color: var(--indigo-700); }
.msg-ended { margin: 12px 0; }
.msg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.msg-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 1 / 1; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.msg-card:hover { border-color: var(--indigo-700); box-shadow: 0 8px 22px rgb(23 20 63 / 10%); }
.msg-card h2 { margin: 0; font-size: 1.1rem; color: var(--indigo-950); }
.msg-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.msg-card-link:focus-visible { outline: 3px solid var(--indigo-700); outline-offset: 2px; }
.msg-card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--indigo-100); color: var(--indigo-700); }
.msg-card-icon .icon { width: 28px; height: 28px; }
.msg-badge { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: #c62828; color: #fff; font-weight: 700; }
.msg-card-newest { position: relative; z-index: 2; color: var(--muted); font-size: .88rem; }
a.msg-card-newest { color: var(--indigo-700); }
.msg-card.is-empty { opacity: .55; }
.msg-card.is-empty:hover { opacity: .8; }
.msg-back { display: inline-block; margin-bottom: 10px; }
.msg-list { margin: 18px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); list-style: none; }
.msg-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.msg-row + .msg-row { border-top: 1px solid var(--line); }
.msg-row:hover { background: var(--indigo-100); }
.msg-row-link { position: absolute; inset: 0; z-index: 1; }
.msg-row-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.msg-row-post { position: relative; z-index: 2; align-self: flex-start; max-width: 100%; color: var(--muted); font-size: .9rem; }
.msg-row-preview { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.msg-row.is-unread strong, .msg-row.is-unread .msg-row-preview { font-weight: 700; }
.msg-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.msg-avatar { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--indigo-100); color: var(--indigo-700); font-weight: 700; }
.msg-row.is-unread .msg-avatar { background: var(--indigo-700); color: #fff; }
.msg-dot { width: 11px; height: 11px; border-radius: 50%; background: #c62828; }
.msg-none, .msg-note { margin-top: 18px; }
@media (max-width: 900px) { .msg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .msg-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .msg-card { flex-direction: row; justify-content: flex-start; aspect-ratio: auto; min-height: 96px; text-align: left; }
  .msg-card h2 { flex: 1; }
  .msg-card-newest { position: absolute; left: 88px; bottom: 12px; }
  .msg-card { padding-bottom: 32px; }
  .msg-badge { top: 50%; transform: translateY(-50%); }
}
/* On narrower screens the Messages link shows just its icon and count, so the header stays on one line. */
@media (max-width: 1400px) and (min-width: 861px) { .messages-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.chat-inbox { text-align: left; }
.chat-inbox .acc-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #f6e3ef; color: #7a2e5a; font-weight: 600; }

/* Where a news story is from. Blue for the USA, orange for India. */
.loc-tag { display: inline-block; padding: 0 7px; border-radius: 9px; font-size: .72rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.loc-usa { background: #e0e9ff; color: #1e3a8a; }
.loc-india { background: #ffedd5; color: #9a3412; }

/* A chat message still on its way, and the note shown while reconnecting. */
.chat-bubble.chat-sending { opacity: .65; }
.chat-sending-tag { display: block; font-size: .72rem; }
.chat-status { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }

/* List your business on the map */
.business-form { max-width: 620px; }
.business-form h2 { margin: 22px 0 10px; font-size: 1.15rem; }
.business-field { margin-bottom: 14px; }
.business-field textarea { width: 100%; padding: 10px 12px; border: 1px solid #b9b6c9; border-radius: 9px; font: inherit; }
.business-field fieldset { margin: 0; padding: 0; border: 0; }
.business-field legend { margin-bottom: 4px; font-weight: 600; }
.business-field fieldset label, .business-agree label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.business-field input[type="radio"], .business-agree input[type="checkbox"] { width: 20px !important; height: 20px; margin-top: 2px; flex: none; }
.business-field input[type="file"] { padding: 8px; }
.business-mine { margin: 0 0 8px; padding: 0; list-style: none; }
.business-mine li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.business-status { color: var(--muted); font-size: .9rem; }

/* Doctor profiles: photo, and the label when a registration isn't verified yet. */
.doctor-photo { display: block; width: 120px; height: 120px; margin: 6px 0 10px; border-radius: 50%; object-fit: cover; }
.unverified-badge { display: inline-block; margin: 4px 0 12px; padding: 3px 12px; border-radius: 999px; background: #fff3d6; color: #7a4b00; font-size: .9rem; font-weight: 600; }
