/* Shared Atlas theme. Every public page can load this without inline base styles. */
:root {
  --brand-primary: #354a21;
  --brand-primary-hover: #253a19;
  --brand-soft: #eef4ea;
  --brand-link: #456247;
  --ink: #27381e;
  --text-color: #414b39;
  --text-body: 1.125rem;
  --text-ui: 1rem;
  --text-small: .875rem;
  --text-caption: .75rem;
  --control-line: #7f8c79;
  --radius-control: 10px;
  --radius-card: 16px;
  --reading-width: 70ch;
  --muted: #526359;
  --cream: #fff9e9;
  --paper: #fffefa;
  /* Keep the olive as a supporting color for existing map and content styles. */
  --green: #354a21;
  --line: #e8e2ce;
  --orange: #fb6757;
  --sea: #dcebe8;
  --shadow: 0 18px 48px #263c3020;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: Georgia, serif;
  --page-gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--text-color); font: var(--text-body)/1.65 var(--font-body); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { text-underline-offset: 3px; }
[hidden] { display: none !important; }

.theme-filter-icon { width: 16px; height: 16px; flex: none; color: #647b59; }
.theme-filter[data-theme] .theme-filter-icon { color: var(--category-color); }
.theme-filter[data-theme].selected { border-color: var(--category-color); background: color-mix(in srgb, var(--category-color) 14%, #fffefa); color: var(--ink); }
.tabs .tab { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tab-icon { width: 18px; height: 18px; flex: none; color: currentColor; }
.tab-label { min-width: 0; }
.tab-count { white-space: nowrap; }
.legend-dot.legend-all-colors { width: 28px; height: 8px; border-radius: 8px; vertical-align: middle; }
.place-marker-icon .pin { width: 36px; height: 36px; display: grid; place-items: center; }
.place-marker-icon .pin:before { width: 34px; height: 34px; left: 1px; top: 1px; border-radius: 50%; transform: none; background: var(--category-color, #fb6757); }
.place-marker-icon .pin:after { display: none; }
.place-marker-icon .pin.active:before { transform: scale(1.12); background: var(--category-color, #fb6757); border-color: var(--ink); box-shadow: 0 0 0 2px #ffdf6c, 0 3px 9px #22362f66; }
.pin .category-marker-icon { position: absolute; z-index: 1; top: 50%; left: 50%; display: block; width: 17px; height: 17px; transform: translate(-50%, -50%); color: #fff; pointer-events: none; }
.place-marker-icon .pin.active .category-marker-icon { transform: translate(-50%, -50%) scale(.92); }
.place-marker-category { position: absolute; z-index: 2; top: 7px; left: 7px; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #ffffffcc; border-radius: 50%; background: var(--category-color, #607568); color: #fff; box-shadow: 0 2px 7px #18251a66; }
.place-marker-category .category-marker-icon { position: absolute; top: 50%; left: 50%; display: block; width: 15px; height: 15px; transform: translate(-50%, -50%); }

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  height: 76px;
  column-gap: 24px;
  padding-inline: var(--page-gutter);
  background: var(--green);
  border-bottom: 1px solid #526a32;
  color: var(--cream);
}
.brand-home { display: flex; align-items: center; color: inherit; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 25px; color: var(--cream); font-size: var(--text-ui); }
.nav a { color: inherit; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current="page"], .nav .active { color: #ffdf6c; font-weight: 700; }
.atlas-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px var(--page-gutter) 32px; background: var(--green); color: #e9efe9; }
.atlas-footer-brand-wrap { display: flex; align-items: center; }
.atlas-footer-contact { text-align: right; font-size: var(--text-ui); color: #d5e0d6; }
.atlas-footer-contact > strong, .atlas-footer-contact > span { display: block; }
.atlas-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 16px; margin-top: 7px; }
.atlas-footer a { color: inherit; text-underline-offset: 3px; }
.atlas-footer-note { margin-top: 6px; font-size: var(--text-small); color: #b6c7b9; }
.topbar > .brand-home {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.topbar > .nav {
  grid-column: 2;
  grid-row: 1;
  margin-left: 0;
  white-space: nowrap;
}
.topbar > .header-credit {
  grid-column: 3;
  grid-row: 1;
}
.topbar > .account-auth { grid-column: 5; grid-row: 1; justify-self: end; }
.account-auth { position: relative; }
.account-menu > summary { display: flex; align-items: center; gap: 8px; max-width: 260px; min-height: 38px; padding: 7px 11px; border: 1px solid #b6c7b955; border-radius: 999px; background: #ffffff0d; color: inherit; font: 600 var(--text-ui)/1.2 var(--font-body); cursor: pointer; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-menu > summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-pop { position: absolute; z-index: 1400; top: calc(100% + 8px); right: 0; min-width: 130px; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); box-shadow: var(--shadow); }
.account-menu-pop button { width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; font-size: var(--text-ui); }
.account-menu-pop button:hover { background: #f0f3ec; }
.account-menu-pop .account-admin-link { display: block; min-width: 170px; padding: 9px 10px; border-radius: 7px; color: var(--ink); font-size: var(--text-ui); text-decoration: none; }
.account-menu-pop .account-admin-link[hidden] { display: none; }
.account-menu-pop .account-admin-link:hover { background: #f0f3ec; }
.account-admin-link span { display: block; margin-top: 3px; color: var(--muted); font-size: var(--text-small); }
.account-menu > summary:hover { background: #ffffff1b; }
.auth-dialog { width: min(420px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px #10251f55; }
.auth-dialog::backdrop { background: #10251fb0; }
.auth-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.auth-dialog-head h2 { margin: 5px 0 0; font: 25px/1.15 Georgia, serif; }
.auth-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0f2ed; color: var(--ink); font-size: 23px; line-height: 1; }
.auth-intro, .auth-code-hint { margin: 13px 0; color: var(--muted); font-size: var(--text-ui); line-height: 1.55; }
.auth-dialog label { display: block; margin: 16px 0 6px; color: var(--muted); font-size: var(--text-ui); font-weight: 700; }
.auth-dialog input { width: 100%; height: 43px; padding: 9px 12px; border: 1px solid #dfe5dc; border-radius: 9px; background: #fff; color: var(--ink); outline-color: #8ca891; }
.auth-submit { width: 100%; margin-top: 12px; padding: 11px 14px; border: 0; border-radius: 9px; background: var(--green); color: white; font-size: var(--text-ui); font-weight: 700; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.auth-change-email { margin-top: 11px; padding: 5px 0; border: 0; background: none; color: #526c55; font-size: var(--text-ui); text-decoration: underline; text-underline-offset: 3px; }
.auth-status { min-height: 20px; margin: 12px 0 0; color: #61746a; font-size: var(--text-ui); }
.auth-status[data-kind="error"] { color: #9f463c; }
.favorite-login-prompt { max-width: 560px; margin: 20px auto; padding: 28px; border: 1px solid #e3e7db; border-radius: 16px; background: #fffefa; text-align: center; }
.favorite-login-prompt h3 { margin: 0 0 8px; font: 22px Georgia, serif; }
.favorite-login-prompt p { color: var(--muted); font-size: var(--text-ui); }
.favorite-login-prompt .favorite-auth-form { max-width: 360px; margin: 18px auto 0; text-align: left; }
.favorite-login-prompt .favorite-auth-form label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: var(--text-ui); font-weight: 700; }
.favorite-login-prompt .favorite-auth-form input { width: 100%; height: 43px; padding: 9px 12px; border: 1px solid #dfe5dc; border-radius: 9px; background: #fff; color: var(--ink); outline-color: #8ca891; }
.favorite-login-prompt .auth-code-hint { margin: 7px 0; }
.favorite-login-prompt .auth-change-email { display: block; margin: 11px auto 0; }
.favorite-login-prompt .auth-status { min-height: 20px; margin: 12px 0 0; }

.hero {
  padding-inline: var(--page-gutter);
}

.workspace {
  margin-inline: 0;
}

body.map-fullscreen-open {
  overflow: hidden;
}

.map-fullscreen-toggle {
  display: grid;
  width: 42px;
  padding: 0;
  place-items: center;
}

.map-fullscreen-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-fullscreen-toggle .fullscreen-exit {
  display: none;
}

.map-fullscreen-toggle[aria-pressed="true"] .fullscreen-enter {
  display: none;
}

.map-fullscreen-toggle[aria-pressed="true"] .fullscreen-exit {
  display: block;
}

.quick-view-close {
  display: none;
}

.producer-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 var(--page-gutter) 28px;
  padding: 22px 25px;
  border: 1px solid #d7e0d4;
  border-radius: 17px;
  background: #eef4ea;
  color: #354a21;
}
.producer-entry-card-copy { max-width: 800px; }
.producer-entry-card .producer-entry-kicker { margin: 0 0 6px; color: var(--muted); font-size: var(--text-caption); font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.producer-entry-card h2 { margin: 0 0 6px; font: 23px/1.2 Georgia, serif; }
.producer-entry-card p:last-child { margin: 0; color: var(--muted); font-size: var(--text-ui); line-height: 1.55; }
.producer-entry-link { flex: none; border: 1px solid #bbcbb8; border-radius: 999px; padding: 10px 15px; background: #fffefa; color: #456247; font-size: var(--text-small); font-weight: 750; text-decoration: none; }
.producer-entry-link:hover { background: #e2ecdd; border-color: #a8bda4; }
@media (max-width: 620px) {
  .producer-entry-card { align-items: flex-start; flex-direction: column; gap: 13px; margin-inline: 12px; padding: 19px; }
  .producer-entry-card h2 { font-size: 21px; }
}

@media (min-width: 741px) {
  .workspace.map-fullscreen {
    position: fixed;
    z-index: 1300;
    inset: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .workspace.map-fullscreen .map-side {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .workspace.map-fullscreen #map {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .workspace.map-fullscreen .panel {
    display: none !important;
  }

  .workspace.map-fullscreen.fullscreen-detail-open {
    grid-template-columns: minmax(0, 1fr) minmax(280px, min(38vw, 420px));
  }

  .workspace.map-fullscreen.fullscreen-detail-open .panel {
    position: relative;
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-top: 0;
    border-left: 1px solid var(--line);
    background: var(--paper);
  }

  .workspace.map-fullscreen .panel-head,
  .workspace.map-fullscreen .results {
    display: none !important;
  }

  .workspace.map-fullscreen .panel > .detail {
    display: block !important;
    grid-column: auto;
    grid-row: auto;
    width: auto;
    min-height: 0;
    max-height: none;
    padding: 24px 22px 30px;
    overflow: auto;
    border: 0;
  }

  .workspace.map-fullscreen.fullscreen-detail-open .quick-view-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #dce3d9;
    border-radius: 50%;
    background: #fffefa;
    color: #354a21;
    font: 26px/1 system-ui, sans-serif;
  }

  .workspace.map-fullscreen.fullscreen-detail-open .panel > .detail {
    padding-top: 58px;
  }
}

@media (max-width: 740px) {
  .workspace.map-fullscreen {
    position: fixed;
    z-index: 1300;
    inset: 0;
    display: block !important;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .workspace.map-fullscreen .map-side,
  .workspace.map-fullscreen #map {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .workspace.map-fullscreen .panel {
    display: none !important;
  }

  .workspace.map-fullscreen.fullscreen-detail-open .panel {
    position: absolute;
    z-index: 600;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex !important;
    height: min(48dvh, 480px);
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    background: var(--paper);
    box-shadow: 0 -8px 30px #263c3026;
  }

  .workspace.map-fullscreen .panel-head,
  .workspace.map-fullscreen .results {
    display: none !important;
  }

  .workspace.map-fullscreen .panel > .detail {
    display: block !important;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 54px 18px 24px;
    overflow: auto;
    border: 0;
  }

  .workspace.map-fullscreen.fullscreen-detail-open .quick-view-close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #dce3d9;
    border-radius: 50%;
    background: #fffefa;
    color: #354a21;
    font: 24px/1 system-ui, sans-serif;
  }
}

@media (min-width: 741px) {
  .mojbrac-card,
  .contribute {
    margin-inline: var(--page-gutter);
  }

  .atlas-footer {
    padding-inline: var(--page-gutter);
  }

  .atlas-item-card .photo figcaption,
  .atlas-item-card .photo-gallery,
  .atlas-item-card .entry-bottom {
    padding-inline: var(--page-gutter);
  }

  .atlas-item-card .community-callout {
    margin-inline: var(--page-gutter);
  }
}
.topbar .logo {
  display: flex;
  align-items: center;
  width: 96px;
  height: auto;
  flex: 0 0 96px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}
.logo-mark,
.atlas-footer-logo {
  display: block;
  width: 96px;
  height: auto;
  aspect-ratio: 512 / 220;
  object-fit: contain;
  border-radius: 0;
}
.atlas-footer-logo {
  flex: 0 0 96px;
}
.brand-home,
.atlas-footer-brand-wrap {
  align-items: center;
  gap: 16px;
}
.brand-symbol-link {
  display: block;
  flex: none;
}
.brand-title-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.topbar .brand {
  display: block;
}
.brand-stack {
  min-width: 0;
}
.brand-credit {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
  font: 400 var(--text-caption)/1.4 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
}
.header-credit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-top: 0;
  text-align: right;
}
.header-credit {
  justify-self: end;
  padding-left: 20px;
  border-left: 1px solid #b6c7b933;
}
.header-credit .brand-author-wordmark,
.footer-credit .brand-author-wordmark {
  font-size: var(--text-ui);
}
.atlas-footer-brand .footer-credit {
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 4px;
  text-align: left;
}
.brand-credit-label {
  color: #b6c7b9;
}
.brand-credit .brand-author {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #fff9e9;
  text-decoration: none;
}
.header-credit .brand-author {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.atlas-footer-brand .brand-credit .brand-author {
  flex-direction: row;
}
.brand-author-wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: var(--text-ui);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.brand-author-accent {
  color: #fb6757;
}
.brand-author:hover .brand-credit-label,
.brand-author:hover .brand-author-wordmark {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brand-symbol-link:focus-visible,
.brand-title-link:focus-visible,
.brand-author:focus-visible {
  outline: 2px solid var(--focus, var(--ink));
  outline-offset: 4px;
  border-radius: 2px;
}
.topbar .brand,
.atlas-footer-brand {
  color: #fff9e9;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}
.atlas-name-base {
  color: #fff9e9;
}
.atlas-name-accent {
  color: #fff9e9;
}
.atlas-footer-brand { color: #fff9e9; }
.topbar .brand small,
.atlas-footer-brand small {
  display: block;
  margin-top: 4px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: var(--text-caption);
  font-weight: 400;
  line-height: 1.4;
}
.topbar .brand small {
  color: #b6c7b9;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.atlas-footer-brand small {
  color: #b6c7b9;
  letter-spacing: .01em;
  text-transform: none;
}

.topbar .brand-credit-label { color: #b6c7b9; }
.topbar .brand-credit .brand-author { color: #fff9e9; }
.topbar .brand-author-accent { color: #fb6757; }
.topbar .header-credit { border-left-color: #b6c7b933; }
.topbar .nav .active,
.topbar .nav a[aria-current="page"] { color: #ffdf6c; }
.topbar .nav { color: var(--cream); }
.topbar .logo { background: transparent; }
.topbar .avatar { background: #b9ebbd; color: var(--green); }
.topbar .brand-symbol-link:focus-visible,
.topbar .brand-title-link:focus-visible,
.topbar .brand-author:focus-visible { outline-color: var(--ink); }
.atlas-footer .brand-credit-label { color: #b6c7b9; }
.atlas-footer .brand-credit .brand-author { color: #fff9e9; }
.atlas-footer .brand-author-accent { color: #fb6757; }
.atlas-footer a:hover { color: #fff; }
.atlas-footer-logo { width: 96px; height: auto; aspect-ratio: 512 / 220; }

.button, .action.primary, .contribute-toggle, .contribute-submit,
.submit, .producer-entry-link {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--cream);
}
.button:hover, .action.primary:hover, .contribute-toggle:hover,
.contribute-submit:hover, .submit:hover,
.producer-entry-link:hover { background-color: var(--brand-primary-hover); }
.nav a:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline-color: var(--ink); }
.producer-entry-card { border-color: #d7e0d4; background: #eef4ea; color: var(--green); }
.producer-entry-card .producer-entry-kicker { color: var(--muted); }
.producer-entry-link { border: 1px solid #bbcbb8; background: #fffefa; color: #456247; text-decoration: none; }
.producer-entry-link:hover { background: #e2ecdd; border-color: #a8bda4; }
.producer-mojbrac, .producer-detail-promo { border-color: #e9d778; }
.producer-mojbrac .mojbrac-wordmark,
.producer-detail-promo .mojbrac-wordmark { display: inline-block; margin: 0 0 8px; color: var(--green); font-family: "Fraunces", Georgia, serif; font-size: 30px; font-weight: 900; letter-spacing: -1px; line-height: 1.1; text-decoration: none; }
.producer-mojbrac .mojbrac-wordmark span,
.producer-detail-promo .mojbrac-wordmark span { color: #fb6757; }
.mojbrac-promo-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.mojbrac-promo-brand .mojbrac-wordmark { margin: 0; }
.mojbrac-card .mojbrac-wordmark span { color: #fb6757; }
.mojbrac-card .mojbrac-visit { background: var(--green); color: var(--cream); }
.mojbrac-card .mojbrac-visit:hover { background: #253a19; }
.mojbrac-actions { display: grid; flex: none; justify-items: stretch; gap: 12px; width: 230px; max-width: 100%; }
.mojbrac-actions > a { box-sizing: border-box; text-align: center; }
.mojbrac-actions .mojbrac-browse { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 15px; border: 1px solid var(--green); border-radius: 10px; background: #fff9e9; color: var(--green); font-size: var(--text-ui); font-weight: 700; line-height: 1.4; text-decoration: none; }
.mojbrac-actions .mojbrac-browse:hover { background: #edf3e9; color: #253a19; }
.mojbrac-message { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 20px; min-width: 0; }
.mojbrac-support-icon { display: grid; place-items: center; flex: none; width: 76px; height: 76px; border: 1px solid #354a211f; border-radius: 50%; background: #fff9e9; color: var(--green); }
.mojbrac-support-icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mojbrac-support-icon .mojbrac-support-accent { fill: #fb6757; stroke: #fb6757; }
.producer-detail-promo .mojbrac-support-icon { width: 64px; height: 64px; margin-bottom: 16px; }
.producer-detail-promo .mojbrac-promo-brand .mojbrac-support-icon { margin-bottom: 0; }
.mojbrac-card .mojbrac-visit { white-space: normal; line-height: 1.4; }
@media (max-width: 650px) {
  .mojbrac-actions { width: 100%; }
  .mojbrac-message { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mojbrac-support-icon { width: 60px; height: 60px; }
  .mojbrac-support-icon svg { width: 36px; height: 36px; }
}
.atlas-item-card .action.primary,
.atlas-item-card .photo-request a {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.atlas-item-card .action.primary:hover,
.atlas-item-card .photo-request a:hover { background: #253a19; }

@media (max-width: 740px) {
  .topbar .brand small { font-size: var(--text-small); letter-spacing: 0; }
}
@media (max-width: 740px) {
  :root {
    --page-gutter: clamp(16px, 4.6vw, 20px);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 76px;
    padding: 14px 18px 12px;
    gap: 12px 20px;
    padding-inline: var(--page-gutter);
  }
  .hero {
    padding-inline: var(--page-gutter);
  }
  .workspace {
    margin-inline: 0;
  }
  .topbar .brand-home {
    grid-column: 1;
    grid-row: 1;
  }
  .topbar .header-credit {
    display: none;
  }
  .topbar > .account-auth { grid-column: 2; grid-row: 1; }
  .topbar > .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
  }
  .header-credit .brand-author-wordmark {
    font-size: var(--text-ui);
  }
  .topbar .logo,
  .atlas-footer-logo {
    width: 88px;
    flex-basis: 88px;
  }
  .logo-mark {
    width: 88px;
  }
  .brand-home,
  .atlas-footer-brand-wrap {
    gap: 12px;
  }
  .topbar .brand,
  .atlas-footer-brand {
    font-size: 18px;
  }
  .topbar .brand small {
    font-size: 11px;
  }
}
@media (max-width: 480px) {
  .topbar {
    padding: 14px;
    column-gap: 16px;
  }
  .topbar .brand-home {
    gap: 10px;
  }
  .topbar .logo {
    width: 60px;
    flex-basis: 60px;
  }
  .topbar .logo-mark {
    width: 60px;
  }
  .topbar .brand {
    font-size: 16px;
  }
  .topbar .brand small {
    font-size: 11px;
    letter-spacing: .08em;
  }
}
@media (max-width: 360px) {
  .atlas-footer-brand {
    font-size: 16px;
  }
  .atlas-footer-logo {
    width: 80px;
    flex-basis: 80px;
  }
  .topbar {
    padding: 12px;
    column-gap: 10px;
    padding-inline: var(--page-gutter);
  }
  .topbar .brand-home {
    gap: 8px;
  }
  .topbar .logo {
    width: 44px;
    flex-basis: 44px;
  }
  .topbar .logo-mark {
    width: 44px;
  }
  .topbar .brand {
    font-size: var(--text-ui);
  }
  .topbar .brand small {
    font-size: 11px;
    letter-spacing: .06em;
  }
  .topbar .header-credit {
    font-size: 11px;
  }
  .header-credit .brand-author-wordmark {
    font-size: var(--text-ui);
  }
}
/* Language links stay available at every width, including article pages. */
.language-switcher{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-left:8px;font:600 var(--text-small)/1.3 system-ui,sans-serif}
.language-switcher a{color:inherit;text-decoration:none;padding:5px 0;border-bottom:2px solid transparent}
.language-switcher a[aria-current="true"]{border-color:var(--orange,#fb6757)}
.language-switcher a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.content-language-note{display:block;margin:5px 0;color:var(--muted);font:500 var(--text-small)/1.4 system-ui,sans-serif}
.language-badge{font:600 var(--text-caption)/1 system-ui,sans-serif;opacity:.7;white-space:nowrap}

@media(max-width:760px){.topbar{height:auto!important;min-height:64px;flex-wrap:wrap;padding-top:12px!important;padding-bottom:12px!important;row-gap:10px}.language-switcher{flex-basis:100%;justify-content:flex-end;margin-left:0}.topbar .nav{gap:12px}}

/* Paired illustrations identify the two atlas sections. */
.hero.atlas-page-intro.illustrated-intro,
.producer-intro.illustrated-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 12px 32px;
}
.intro-copy { min-width: 0; }
.intro-art { display: block; width: 170px; height: auto; grid-column: 2; grid-row: 1; }
@media (max-width: 740px) {
  .hero.atlas-page-intro.illustrated-intro,
  .producer-intro.illustrated-intro {
    grid-template-columns: minmax(0, 1fr) 76px;
    column-gap: 12px;
    row-gap: 0;
    align-items: start;
  }
  .illustrated-intro .intro-copy { display: contents; }
  .illustrated-intro .intro-copy > :first-child { grid-column: 1; grid-row: 1; }
  .illustrated-intro .intro-copy > h1,
  .illustrated-intro .intro-copy > .atlas-intro { grid-column: 1; grid-row: 2; }
  .illustrated-intro .intro-copy > :last-child { grid-column: 1 / -1; grid-row: 3; }
  .illustrated-intro .intro-art { width: 76px; grid-row: 1 / 3; align-self: center; }
}

/* Keep navigation and language links in the same positions on every section. */
.topbar > .language-switcher { grid-column: 4; grid-row: 1; margin-left: 0; flex-wrap: nowrap; }
.topbar .account-menu > summary { width: 38px; padding: 8px; }
.topbar .account-menu > summary > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1200px) {
  .topbar { height: auto; min-height: 76px; grid-template-columns: minmax(0, 1fr) auto; padding-block: 12px; row-gap: 10px; }
  .topbar > .header-credit { display: none; }
  .topbar > .language-switcher { grid-column: 2; grid-row: 1; }
  .topbar > .nav { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
  .topbar > .account-auth { grid-column: 2; grid-row: 2; }
  .topbar:has(> .account-auth:not([hidden])) > .nav { grid-column: 1; justify-self: start; }
}
@media (max-width: 480px) {
  .topbar { column-gap: 10px; }
  .topbar > .brand-home { grid-column: 1 / -1; }
  .topbar > .language-switcher { grid-column: 1 / -1; grid-row: 3; justify-self: end; }
  .topbar > .nav { justify-self: start; }
}

/* Paper and accent: restrained category labels shared by both intro bands. */
.illustrated-intro .atlas-page-eyebrow,
.illustrated-intro .producer-eyebrow {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 4px 8px;
  background: #f0ecdf;
  color: #27381e;
  font-size: var(--text-small);
  font-weight: 650;
  letter-spacing: .08em;
}

/* Public reading and control scale. Cards represent records or distinct invitations. */
h1, h2, h3, h4 { color: var(--ink); }
a { color: var(--brand-link); }
:where(button, input, select, textarea) { line-height: 1.4; }
:where(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.topbar :is(a, button, summary):focus-visible, .atlas-footer :is(a, button):focus-visible { outline-color: #ffdf6c; }
.topbar .nav { font-size: var(--text-ui); }
.topbar .nav a { display: inline-flex; align-items: center; min-height: 44px; }
.topbar > .nav { white-space: normal; flex-wrap: wrap; }
.language-switcher { font-size: var(--text-small); }
.language-switcher a { display: inline-flex; align-items: center; min-height: 36px; }
.atlas-footer { font-size: var(--text-small); }
.atlas-footer .atlas-footer-note, .atlas-footer .analytics-optout { font-size: var(--text-small); }
.atlas-footer .atlas-footer-contact { font-size: var(--text-ui); }
.atlas-footer .atlas-footer-links a { padding-block: 5px; }
.hero.atlas-page-intro .atlas-page-description { max-width: var(--reading-width); color: var(--text-color); font-size: var(--text-body); }
.illustrated-intro .atlas-page-eyebrow, .illustrated-intro .producer-eyebrow { font-size: var(--text-small); }
.button, .mojbrac-card .mojbrac-visit, .producer-button,
.contribute-submit, .contribute-toggle, .producer-entry-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 17px; border-radius: var(--radius-control);
  font-size: var(--text-ui); font-weight: 700; line-height: 1.4; text-decoration: none;
}
.button, .contribute-submit, .contribute-toggle { border: 1px solid var(--green); }
.mojbrac-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 var(--page-gutter) 32px; padding: 28px; border: 1px solid #e9d778; border-radius: var(--radius-card); background: #f4e79a; }
.mojbrac-wordmark { display: inline-block; margin-bottom: 8px; color: var(--green); font: 900 30px/1.1 "Fraunces", Georgia, serif; letter-spacing: -1px; text-decoration: none; }
.mojbrac-card h2 { margin: 0; font: 500 clamp(24px, 3vw, 30px)/1.2 var(--font-heading); }
.mojbrac-card .card-kicker, .producer-mojbrac .producer-card-kicker,
.producer-detail-promo .producer-card-kicker, .producer-entry-card .producer-entry-kicker,
.contribute-kicker { color: var(--muted); font-size: var(--text-small); letter-spacing: .08em; }
.mojbrac-card .card-copy, .producer-mojbrac p, .producer-entry-card p:last-child { max-width: var(--reading-width); color: var(--text-color); font-size: var(--text-ui); line-height: 1.65; }
.mojbrac-actions { width: 260px; }
.mojbrac-actions .mojbrac-browse { font-size: var(--text-ui); }
.contribute { box-shadow: none; border-radius: var(--radius-card); }
.contribute-side { padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.contribute-intro { background: transparent; }
.contribute-toggle { box-shadow: none; }
.contribute-toggle:hover { box-shadow: none; transform: none; }
.contribute-content { border-top: 1px solid var(--line); }
@media (max-width: 740px) {
  .topbar { padding-inline: var(--page-gutter); }
  .topbar .nav { gap: 0 16px; }
  .mojbrac-card, .producer-entry-card, .contribute { margin-inline: var(--page-gutter); }
  .mojbrac-card { flex-direction: column; align-items: stretch; padding: 22px; }
  .mojbrac-actions { width: 100%; }
}
@media (max-width: 520px) {
  .tabs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tabs .tab { justify-content: flex-start; padding: 11px 14px; }
  .tab-count { margin-left: auto; }
  .topbar .brand small { font-size: 11px; }
}

/* Open reading layout for About, Terms, and the not-found page. */
.information-page { background: var(--paper); }
.information-page .wrap {
  max-width: calc(960px + 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 36px var(--page-gutter) 48px;
}
.information-page h1 { margin: 8px 0 20px; font: 500 clamp(34px, 5vw, 54px)/1.12 var(--font-heading); color: var(--ink); }
.information-page h2 { margin: 32px 0 12px; font: 500 28px/1.25 var(--font-heading); color: var(--ink); }
.information-page .hero { display: block; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.information-page .hero p { max-width: var(--reading-width); color: var(--text-color); }
.information-page .eyebrow, .information-page .updated { color: var(--muted); font-size: var(--text-small); }
.information-page .eyebrow { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.information-page .lead { font: 22px/1.6 var(--font-heading); }
.information-page .copy { padding-top: 4px; }
.information-page .copy, .information-page .end,
.information-terms .wrap > :is(p, ul, section) { max-width: var(--reading-width); }
.information-page p { margin-block: 12px; }
.information-page li { margin-block: 8px; }
.information-page .end { margin-top: 32px; padding-top: 4px; border-top: 1px solid var(--line); }
.information-page .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 20px; }
.information-page .secondary { color: var(--brand-link); font-size: var(--text-ui); }
.information-page .intro { padding-block: 16px; border-block: 1px solid var(--line); }
.information-page .contact { margin-top: 28px; padding-top: 4px; border-top: 1px solid var(--line); }
.information-page .bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--text-small); color: var(--muted); }
.information-page .wrap > .mojbrac-card { margin: 36px 0 0; }
.not-found-page { max-width: 700px; margin: 10vh auto; padding: 24px var(--page-gutter); }
.not-found-page nav { display: flex; flex-wrap: wrap; gap: 16px 24px; }
@media (max-width: 740px) {
  .information-page .wrap { padding-block: 28px 36px; }
  .information-page .lead { font-size: 20px; }
}
@media (max-width: 620px) {
  .topbar { row-gap: 4px; }
}
.analytics-optout { margin-top: 10px; padding: 6px 0; border: 0; background: transparent; color: #d5e0d6; text-decoration: underline; cursor: pointer; }
@media (max-width: 740px) {
  .atlas-footer { align-items: flex-start; flex-direction: column; padding-inline: var(--page-gutter); }
  .atlas-footer-brand-wrap, .atlas-footer-contact { min-width: 0; max-width: 100%; }
  .atlas-footer .atlas-footer-contact { text-align: left; }
  .atlas-footer .atlas-footer-links { justify-content: flex-start; }
  .atlas-footer-brand { white-space: normal; }
}
.heritage-search .registry-search, .municipality-trigger,
.producer-search, .producer-area, .theme-filter,
.auth-dialog input, .favorite-auth-form input,
.contribute-form :is(input:not([type="checkbox"]), select, textarea),
.modal :is(input, select, textarea),
.producer-form-dialog :is(input:not([type="checkbox"]), select, textarea) { border-color: var(--control-line); }
.producer-tag, .producer-type-tag { text-decoration: underline; text-underline-offset: 3px; }
