:root {
    --font-sans: "Avenir Next", "Segoe UI", "Noto Sans", "Helvetica Neue", sans-serif;
    --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Baskerville", serif;
    --main-app-color: #1d4f73;
    --app-accent-color: #dfe5e8;
    --option-select-color: #edf1f3;
    --paper: #eff3f4;
    --paper-strong: #f8fbfb;
    --ink: #1f2224;
    --muted-ink: #66707a;
    --line: rgba(47, 52, 56, 0.14);
    --moss: #5b6f52;
    --sea: #2f6483;
    --sand: #d9c9a2;
    --border-soft: 1px solid rgba(47, 52, 56, 0.08);
    --surface-shell:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 243, 234, 0.94)),
        radial-gradient(circle at top right, rgba(47, 100, 131, 0.06), transparent 30%);
    --surface-editorial:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 243, 234, 0.94)),
        radial-gradient(circle at top right, rgba(47, 100, 131, 0.08), transparent 30%);
    --surface-card: rgba(255, 255, 255, 0.72);
    --brand-gradient: linear-gradient(135deg, var(--sea), #204f68);
    --radius-shell: 28px;
    --radius-card: 20px;
    --shadow-soft: 0 18px 40px rgba(24, 28, 33, 0.08);
    --shadow-card: 0 10px 24px rgba(24, 28, 33, 0.07);
}

/* Reset and base defaults */

/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
    box-sizing: border-box;
  }
  /*
    2. Remove default margin
  */
  * {
    margin: 0;
  }
  /*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  /*
    5. Improve media defaults
  */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  /*
    6. Remove built-in form typography styles
  */
  input, button, textarea, select {
    font: inherit;
  }
  /*
    7. Avoid text overflows
  */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  /*
    8. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }


html {
    font-size: 18px;
    font-family: var(--font-sans);
    scroll-behavior: smooth;
    color: var(--ink);
    background: linear-gradient(180deg, #f7fafb 0%, #e8eef1 100%);
}

a {
    color: var(--sea);
    text-decoration: none;
}

#place_content > p,
#place_content .block-paragraph p {
    margin-bottom: 20px;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(29, 79, 115, 0.45);
    outline-offset: 2px;
}

svg.smallicon {
    width: 0.9rem;
    height: 0.9rem;
    fill: black;    
    padding-right: 10px;
}

svg.icon {
    width: 1.3rem;
    height: 1.3rem;
    fill: black;    
    padding-right: 10px;
    vertical-align: top;
}

svg.personicon {
    width: 1.1rem;
    height: 1.1rem;
    fill: black;    
    vertical-align: top;
}

svg.bigicon {
    width: 1.7rem;
    height: 1.7rem;
    fill: black;    
    vertical-align: top;
}


button.icon {
    background-color: transparent;
    line-height: 1.3rem;
}

button.icon-only {
    background-color: transparent;
    border: none;
    padding: 0;
}

.buttons > * {
    margin: 5px 10px;
}

body {
    background:
        radial-gradient(circle at top center, rgba(110, 150, 170, 0.14), transparent 35%),
        linear-gradient(180deg, #f7fafb 0%, #e6edf1 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
    color: var(--ink);
}

/* Shared chrome */

.site-header {
    position: relative;
    background:
        linear-gradient(rgba(251, 248, 241, 0.92), rgba(251, 248, 241, 0.92)),
        url("fabric_bg.jpg");
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(24, 28, 33, 0.05);
    z-index: 20;
}

.site-header__inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 88px;
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    color: var(--ink);
}

.logo__image {
    display: block;
    width: auto;
    height: 58px;
    flex: 0 0 auto;
}

.logo__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.logo__title {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Baskerville", serif;
    font-size: 1.85rem;
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.logo__kicker {
    font-size: 0.54rem;
    line-height: 1.25;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(86, 96, 106, 0.86);
    font-weight: 600;
}

.logo:hover {
    text-decoration: none;
}

.site-nav-shell {
    display: contents;
}

.site-nav-shell__toggle {
    display: none;
}

.site-search {
    display: grid;
    grid-template-columns: minmax(280px, 560px) auto;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 700px;
    position: relative;
}

.site-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-search__input {
    width: 100%;
    min-height: 56px;
    padding: 0 1rem 0 1.1rem;
    border: 1px solid rgba(47, 52, 56, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.site-search__input:focus {
    outline: none;
    border-color: rgba(29, 79, 115, 0.45);
    box-shadow: 0 0 0 4px rgba(29, 79, 115, 0.12);
}

.site-search__button {
    min-height: 56px;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 16px;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-card);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 280px;
}

.site-nav__link,
.site-nav__user,
.site-nav__account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    color: var(--muted-ink);
    font-size: 0.95rem;
    font-weight: 600;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
    background: rgba(29, 79, 115, 0.08);
    color: var(--ink);
    text-decoration: none;
}

.site-nav__account {
    position: relative;
}

.site-nav__account-toggle {
    color: var(--ink);
    padding: 0.3rem 0.1rem 0.3rem 0.35rem;
    cursor: pointer;
    list-style: none;
}

.site-nav__account-toggle::-webkit-details-marker {
    display: none;
}

.site-nav__account-toggle:hover,
.site-nav__account[open] .site-nav__account-toggle {
    background: rgba(29, 79, 115, 0.08);
    text-decoration: none;
}

.site-nav__account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 35;
    min-width: 180px;
    padding: 10px;
    border: 1px solid rgba(47, 52, 56, 0.12);
    border-radius: 18px;
    background: rgba(251, 248, 241, 0.98);
    box-shadow: var(--shadow-card);
}

.site-nav__account:not([open]) .site-nav__account-menu {
    display: none;
}

.site-nav__account-label {
    padding: 0.45rem 0.65rem 0.55rem;
    color: var(--muted-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.site-nav__account-link {
    display: block;
    padding: 0.65rem;
    border-radius: 12px;
    color: var(--ink);
    font-weight: 600;
}

.site-nav__account-link:hover {
    background: rgba(29, 79, 115, 0.08);
    text-decoration: none;
}

.site-nav__user-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: rgba(29, 79, 115, 0.1);
    color: #173d59;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-nav__user-name {
    display: none;
}

main {    
    display: block;
    padding: 24px 16px 40px;
    overflow-y: auto;
    flex: 1;
}

.editor-toolbar {
    position: sticky;
    top: 0;
    z-index: 40;
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
    display: block;
    pointer-events: none;
}

.editor-toolbar[open] {
    pointer-events: auto;
}

.editor-toolbar__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-top: 10px;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(47, 52, 56, 0.12);
    border-radius: 999px;
    background: rgba(251, 248, 241, 0.96);
    box-shadow: var(--shadow-card);
    color: #1b1b1b;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    pointer-events: auto;
}

.editor-toolbar__toggle::-webkit-details-marker {
    display: none;
}

.editor-toolbar__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(29, 79, 115, 0.1);
    color: #173d59;
    font-size: 0.92rem;
}

.editor-toolbar__panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(47, 52, 56, 0.1);
    border-radius: 18px;
    background: rgba(251, 248, 241, 0.98);
    box-shadow: var(--shadow-card);
    pointer-events: auto;
}

.editor-toolbar__action,
.editor-toolbar__menu > summary {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(47, 52, 56, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: #1b1b1b;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.editor-toolbar__action:hover,
.editor-toolbar__menu > summary:hover,
.editor-toolbar__toggle:hover {
    text-decoration: none;
    border-color: rgba(0, 0, 0, 0.35);
}

.editor-toolbar__menu {
    position: relative;
}

.editor-toolbar__menu > summary {
    list-style: none;
}

.editor-toolbar__menu > summary::-webkit-details-marker {
    display: none;
}

.editor-toolbar__menu[open] > summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.editor-toolbar__menu-items {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 220px;
}

.editor-toolbar__menu-items a {
    padding: 0.65rem 0.9rem;
    color: #1b1b1b;
    text-decoration: none;
    background: white;
}

.editor-toolbar__menu-items a:hover {
    background: #f3f5f7;
    text-decoration: none;
}

.filler {
    flex: 1;
}

table {
    width: 100%;
    border: 1px solid #DEDEDE;
    border-radius: 5px;
    border-collapse: collapse;
}

table td {
    padding: 10px 10px;
    border-bottom: 1px solid #DEDEDE;
    min-width: 100px;
}


table tr:last-child td {
    border-bottom: 0px none;
}

table th {
    padding: 10px 10px;
    text-align: left;
    background-color: rgba(0,0,50,.02);
    border-bottom: 1px solid #DEDEDE;
}

table.review td {
    vertical-align: top;
}

table.review input, table.review select {
    font-size: 1.1rem;
    padding: 2px 2px;
}


.list, table {
    width: 100%;
    border-collapse: collapse; 
    background: white;
}

.item-details {
    width: 100%;
    border-collapse: collapse;     
}

.item-details > tbody > tr > td, .item-details > thead > tr > th {
    padding: 4px 8px;
    text-align: left; 
    border-bottom: 1px dashed #DEDEDE;
    vertical-align: top;
    white-space: nowrap;
}


/*
.list tr:nth-of-type(odd) { 
    background: var(--app-accent-color); 
}
*/

.list > tbody > tr > td, .list > thead > tr > th, td, th {
    padding: 8px 15px;
    text-align: left; 
    border-bottom: 1px solid #AAAAAA;
    vertical-align: top;
}

.list > tbody > tr > td.priority, td.priority {
    white-space:normal;
    width: 100%;
}

.list > tbody > tr.has-detail-row > td, tr.has-detail-row > td {
    border-bottom: 0px none;
}

.list > tbody > tr.group > td, tr.group > td {
    background-color: #EEEEEE;
    font-weight: 500;
}

.list > tbody > tr.detail > td, tr.detail > td {
    font-size: 0.9rem;
    font-style: italic;
    background-color: rgba(0,0,0,0.015);
    padding: 2px 25px;
    white-space: normal;
}

.list > tbody > tr.subcontent > td, tr.subcontent > td {
    padding: 2px 25px;
    white-space: normal;
    background-color: #EDEDED;
}

.list > tbody > tr.summary > td, tr.summary > td {
    border-top: 1px dashed #CCCCCC;
    border-bottom: 1px solid black;
    font-weight: 500;
    background-color: #EDEDED;
}

td.align-center, th.align-center {
    text-align: center !important;
}

td.align-right, th.align-right {
    text-align: right !important;
}

.list > caption, table > caption {
    caption-side: bottom;
    text-align: right;
    padding: 0.3rem 2rem;
    font-weight: 500;
    background-color: hsl(200, 2%, 85%);/* var */
	background-color: var(--app-accent-color); 
}

table td.nomin {
    min-width:auto;
    padding: 10px 5px !important;
}



input[type=text], textarea, select {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

input.search {
    border-radius: 0;
    border-width: 1px 1px 1px 0;
    border-style: solid;
    border-color: #e0e1e2;
}


button{
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background-color: #e0e1e2;
    border: 1px solid #e0e1e2;
    cursor: pointer;
}

a.button {
    font-size: 1rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    text-decoration: none;
    color: #333333;
}

a.button:hover {
    cursor: pointer;
    border: 1px solid #333333;
}



button.positive, a.button.positive {
    background-color: #21ba45;
    color: white;
}

button.negative, a.button.negative {
    background-color: lightcoral;
    color: white;
}


button.search {
    border-radius: 0 5px 5px 0;
}

.tabs {
    display: flex;
    flex-direction: row;
    height: 2rem;
    margin: 0 0 -1px 0;
    padding: 0;
    list-style: none;
}

.tabs__item {
    display: inline-block;
    justify-content: center;
    height: 100%;
    min-width: 120px;
    padding: 0 10px;
    margin-right: 2rem;
    vertical-align: middle;
    line-height: 1.8rem;
}

.tabs__item--selected {
    background-color: white;
    border-width: 1px 1px 0 1px;
    border-style: solid;
    border-color: #666666;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.content {
    padding: 1.25rem 0 3rem;
}

.editorial-shell,
.search-page,
.place-browser,
.place-form-shell {
    margin: 0 auto;
    border: var(--border-soft);
    border-radius: var(--radius-shell);
    background: var(--surface-shell);
    box-shadow: var(--shadow-soft);
}

.editorial-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(1120px, 100%);
    max-width: 100%;
    padding: 40px clamp(24px, 3vw, 48px) 48px;
    background: var(--surface-editorial);
}

.editorial-shell__title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 0.95;
    text-align: center;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.editorial-shell__subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--muted-ink);
    max-width: 36rem;
    margin-bottom: 20px;
}

.editorial-shell__subtitle--spaced {
    margin-top: 28px;
}

.editorial-shell__body {
    width: 100%;
    max-width: 46rem;
    font-size: 1.14rem;
    line-height: 1.9;
}

.editorial-shell__body > p,
.editorial-shell__body .block-paragraph p {
    margin-bottom: 1.2rem;
}

.editorial-shell__intro {
    width: 100%;
    max-width: 44rem;
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.18rem;
    line-height: 1.75;
    color: #31373c;
}

.editorial-shell__image {
    width: 100%;
    max-width: 980px;
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.editorial-shell--site-page {
    width: min(1380px, 100%);
    align-items: stretch;
    padding: 34px clamp(20px, 2.8vw, 38px) 42px;
}

.editorial-shell--site-page .editorial-shell__title,
.editorial-shell--site-page .editorial-shell__intro {
    text-align: center;
}

.site-page-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: clamp(24px, 2.8vw, 42px);
    align-items: start;
    width: 100%;
}

.site-page-layout__aside {
    position: relative;
}

.site-page-layout__main {
    min-width: 0;
}

.site-page-layout__main.editorial-shell__body {
    max-width: none;
    font-size: 1.08rem;
    line-height: 1.82;
}

.site-page-layout__main > :first-child {
    margin-top: 0;
}

.site-page-nav {
    position: sticky;
    top: 108px;
    padding: 16px 14px 14px;
    border: 1px solid rgba(47, 52, 56, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(253, 251, 246, 0.98) 0%, rgba(241, 237, 228, 0.95) 100%);
    box-shadow: var(--shadow-card);
}

.site-page-nav__eyebrow {
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.site-page-nav__title {
    margin-bottom: 12px;
    font-family: var(--font-serif);
    font-size: 1.18rem;
    line-height: 1.2;
}

.site-page-nav__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-page-nav__link {
    display: block;
    padding: 0.72rem 0.78rem;
    border-radius: 12px;
    color: #214f85;
    font-size: 0.95rem;
    line-height: 1.3;
    transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.site-page-nav__link:hover {
    background: rgba(20, 99, 243, 0.08);
    text-decoration: none;
    transform: translateX(2px);
}

.site-page-nav__link--active {
    background: rgba(29, 79, 115, 0.13);
    color: #0d3563;
    font-weight: 700;
}

.home-hero {
    position: relative;
    width: 100%;
    padding: 12px 0 8px;
}

.home-hero__eyebrow {
    display: inline-block;
    margin: 0 auto 14px;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(47, 52, 56, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--moss);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero__lede {
    max-width: 38rem;
    margin: 0 auto 24px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.75;
    color: #344049;
}

.home-hero__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto 18px;
    max-width: 100%;
}

.home-hero__brand-logo {
    width: 120px;
    height: auto;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 20px rgba(24, 28, 33, 0.12));
}

.home-hero__brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-hero__brand-copy .editorial-shell__title,
.home-hero__brand-copy .editorial-shell__subtitle {
    text-align: left;
}

.home-hero__brand-copy .editorial-shell__subtitle {
    margin-bottom: 0;
}

.home-hero__image-wrap {
    position: relative;
    margin: 28px 0 14px;
}

.home-hero__image-wrap::before {
    content: "";
    position: absolute;
    inset: -18px 28px auto;
    height: 60%;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(47, 100, 131, 0.18), rgba(217, 201, 162, 0.2));
    z-index: 0;
    filter: blur(6px);
}

.home-hero__image-wrap > * {
    position: relative;
    z-index: 1;
}

.home-discovery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 34px 0 42px;
}

.home-discovery-card {
    padding: 22px 22px 20px;
    border: 1px solid rgba(47, 52, 56, 0.1);
    border-radius: var(--radius-card);
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
}

.home-discovery-card__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.home-discovery-card__text {
    color: #48525a;
    line-height: 1.65;
    font-size: 0.98rem;
}

.home-section-break {
    width: min(100%, 720px);
    margin: 10px auto 30px;
    border: 0;
    border-top: 1px solid rgba(47, 52, 56, 0.14);
}

.search-page {
    width: min(1160px, 100%);
    padding: 32px clamp(20px, 2.8vw, 38px) 38px;
}

.search-page__header {
    margin-bottom: 24px;
}

.search-page__eyebrow,
.place-browser__eyebrow,
.place-form-shell__eyebrow,
.data-panel__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss);
}

.search-page__eyebrow {
    margin-bottom: 10px;
}

.search-page__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 0.98;
    margin-bottom: 10px;
}

.search-page__lede {
    max-width: 40rem;
    margin-bottom: 20px;
    color: var(--muted-ink);
    line-height: 1.7;
}

.search-page__refine {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(47, 52, 56, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--muted-ink);
    font-size: 0.95rem;
}

.search-page__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.search-page__query,
.search-page__count {
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(47, 52, 56, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #475159;
}

.search-page__count {
    font-weight: 700;
}

.search-page__hint {
    margin-bottom: 18px;
    color: var(--muted-ink);
}

.search-groups {
    display: grid;
    gap: 20px;
}

.search-group {
    padding: 18px 20px 14px;
    border: 1px solid rgba(47, 52, 56, 0.1);
    border-radius: var(--radius-card);
    background: var(--surface-card);
}

.search-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.search-group__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

.search-group__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(29, 79, 115, 0.1);
    color: #173d59;
    font-weight: 700;
}

.search-result {
    padding: 12px 0;
    border-top: 1px solid rgba(47, 52, 56, 0.08);
}

.search-result:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.search-result__link {
    font-weight: 700;
    font-size: 1.06rem;
}

.search-result__ref {
    color: var(--muted-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.84rem;
    margin-right: 0.4rem;
}

.search-result__meta {
    margin-top: 3px;
    color: var(--muted-ink);
    font-size: 0.95rem;
}

.search-empty-state {
    padding: 24px 26px;
    border: 1px solid rgba(47, 52, 56, 0.1);
    border-radius: var(--radius-card);
    background: var(--surface-card);
}

.search-empty-state h2 {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: 1.7rem;
}

.search-empty-state p {
    color: var(--muted-ink);
    line-height: 1.7;
}

.place-browser {
    width: min(1440px, 100%);
    padding: 32px clamp(20px, 2.8vw, 38px) 38px;
}

.place-browser__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(47, 52, 56, 0.1);
}

.place-browser__eyebrow {
    margin-bottom: 10px;
}

.place-browser__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 0.98;
}

.place-browser__title a {
    color: inherit;
}

.place-browser__divider {
    color: rgba(47, 52, 56, 0.32);
}

.place-browser__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.place-browser__selection {
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(47, 52, 56, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted-ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.place-browser__combine {
    border-radius: 14px;
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: var(--shadow-card);
}

.place-browser__combine:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.place-browser__groups {
    display: grid;
    gap: 24px;
}

.place-browser-group {
    padding: 22px 24px 24px;
    border: var(--border-soft);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
}

.place-browser-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.place-browser-group__title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
}

.place-browser-group__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(29, 79, 115, 0.1);
    color: #173d59;
    font-weight: 700;
}

.place-browser-group__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.place-browser-card {
    padding: 18px 18px 16px;
    border: 1px solid rgba(47, 52, 56, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-card);
}

.place-browser-card__title {
    margin: 0 0 12px;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.1;
}

.place-browser-card__children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.place-browser-card__child {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.45rem 0;
    border-top: 1px solid rgba(47, 52, 56, 0.07);
}

.place-browser-card__child:first-child {
    border-top: 0;
    padding-top: 0;
}

.place-browser-card__child a {
    flex: 1 1 auto;
    line-height: 1.45;
}

.place-browser-card__select {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
}

.place-browser-card__select input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.place-browser-card__select span {
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid rgba(47, 52, 56, 0.2);
    border-radius: 0.28rem;
    background: #fff;
}

.place-browser-card__select input:checked + span {
    background: var(--brand-gradient);
    border-color: rgba(29, 79, 115, 0.8);
    box-shadow: inset 0 0 0 3px #fff;
}

.place-flat-list {
    display: grid;
    gap: 20px;
}

.place-flat-list__group {
    padding: 20px 22px;
    border: 1px solid rgba(47, 52, 56, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.place-flat-list__title {
    margin: 0 0 14px;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Baskerville", serif;
    font-size: 1.55rem;
}

.place-flat-list__items {
    display: grid;
    gap: 8px;
}

.place-flat-list__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(248, 250, 251, 0.92);
}

.place-flat-list__item:hover {
    background: rgba(29, 79, 115, 0.08);
    text-decoration: none;
}

.place-flat-list__item-name {
    color: var(--ink);
    font-weight: 700;
}

.place-flat-list__item-ref {
    color: var(--muted-ink);
    font-size: 0.88rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.place-form-shell {
    width: min(1140px, 100%);
    padding: 32px clamp(20px, 2.8vw, 38px) 38px;
}

.place-form-shell__header {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(47, 52, 56, 0.1);
}

.place-form-shell__eyebrow {
    margin-bottom: 10px;
}

.place-form-shell__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    margin-bottom: 10px;
}

.place-form-shell__lede {
    max-width: 44rem;
    color: var(--muted-ink);
    line-height: 1.7;
}

.place-form {
    display: grid;
    gap: 24px;
}

.place-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.place-form__field {
    display: grid;
    gap: 8px;
}

.place-form__field--full {
    grid-column: 1 / -1;
}

.place-form__field label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--muted-ink);
}

.place-form__field input,
.place-form__field select,
.place-form__field textarea {
    width: 100%;
    border: 1px solid rgba(47, 52, 56, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.place-form__field textarea {
    min-height: 140px;
    resize: vertical;
}

.place-form__field input:focus,
.place-form__field select:focus,
.place-form__field textarea:focus {
    outline: none;
    border-color: rgba(29, 79, 115, 0.45);
    box-shadow: 0 0 0 4px rgba(29, 79, 115, 0.12);
}

.place-form__actions {
    display: flex;
    justify-content: flex-end;
}

.place-form__actions button {
    border-radius: 14px;
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: var(--shadow-card);
}

.combine-place-form {
    display: grid;
    gap: 24px;
}

.combine-place-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.combine-place-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.combine-place-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.combine-place-card__body {
    display: grid;
    gap: 6px;
    min-height: 120px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(47, 52, 56, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.combine-place-card__title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--ink);
}

.combine-place-card__meta {
    color: var(--muted-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
}

.combine-place-card:hover .combine-place-card__body,
.combine-place-card input:focus + .combine-place-card__body,
.combine-place-card--selected .combine-place-card__body {
    transform: translateY(-2px);
    border-color: rgba(29, 79, 115, 0.32);
    box-shadow: 0 16px 34px rgba(24, 28, 33, 0.12);
    background: rgba(241, 247, 251, 0.94);
}

.data-panel {
    padding: 26px 28px 30px;
    border: var(--border-soft);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-card);
}

.data-panel__header {
    margin-bottom: 22px;
}

.data-panel__eyebrow {
    margin-bottom: 10px;
}

.data-panel__title {
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.05;
}

.data-panel__lede,
.data-panel__source {
    color: var(--muted-ink);
    line-height: 1.7;
}

.data-panel__source {
    margin-top: 18px;
    font-size: 0.95rem;
}

.inhabitants-form {
    display: grid;
    gap: 24px;
}

.inhabitants-form__grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.inhabitants-form__search .select__container {
    position: relative;
}

.inhabitants-form__action button {
    border-radius: 14px;
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: var(--shadow-card);
}

.inhabitants-form__action button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.data-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(47, 52, 56, 0.08);
    border-radius: 18px;
    background: rgba(252, 251, 247, 0.92);
}

.data-table {
    width: 100%;
    min-width: 720px;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(47, 52, 56, 0.08);
    vertical-align: top;
}

.data-table thead th {
    position: sticky;
    top: 0;
    background: rgba(243, 239, 232, 0.96);
    color: var(--muted-ink);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 1;
}

.data-table tbody tr:hover {
    background: rgba(29, 79, 115, 0.05);
}

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

.data-table__action {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.data-table__empty {
    color: var(--muted-ink);
    text-align: center;
    padding: 18px 14px;
}

@media (max-width: 1200px) {
    .site-header__inner {
        width: min(100% - 24px, 1180px);
        gap: 16px;
    }

    .site-search {
        max-width: 560px;
    }
}

@media (max-width: 980px) {
    .content {
        padding-top: 1rem;
    }

    .site-header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        justify-content: stretch;
        align-items: center;
        padding: 14px 0;
    }

    .site-nav-shell {
        display: block;
        position: relative;
        justify-self: end;
    }

    .site-nav-shell__toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 50px;
        padding: 0.75rem 0.95rem;
        border: 1px solid rgba(47, 52, 56, 0.12);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.88);
        color: var(--ink);
        box-shadow: var(--shadow-card);
        cursor: pointer;
        font-weight: 700;
        list-style: none;
    }

    .site-nav-shell__toggle::-webkit-details-marker {
        display: none;
    }

    .site-nav-shell__toggle-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.8rem;
        height: 1.8rem;
        border-radius: 999px;
        background: rgba(29, 79, 115, 0.1);
        color: #173d59;
        font-size: 1rem;
        line-height: 1;
    }

    .site-search {
        order: 3;
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        grid-template-columns: 1fr auto;
    }

    .logo {
        gap: 10px;
        min-width: 0;
    }

    .logo__image {
        height: 52px;
    }

    .logo__title {
        font-size: 1.55rem;
    }

    .site-nav {
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        z-index: 30;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        min-width: min(320px, calc(100vw - 24px));
        width: max-content;
        max-width: calc(100vw - 24px);
        gap: 6px;
        padding: 10px;
        border: 1px solid rgba(47, 52, 56, 0.12);
        border-radius: 18px;
        background: rgba(251, 248, 241, 0.98);
        box-shadow: var(--shadow-card);
    }

    .site-nav-shell:not([open]) .site-nav {
        display: none;
    }

    .site-nav__link,
    .site-nav__user,
    .site-nav__account-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav__account {
        width: 100%;
    }

    .site-nav__account-toggle {
        gap: 0.7rem;
        padding: 0.55rem 0.8rem;
    }

    .site-nav__account-menu {
        position: static;
        min-width: 0;
        margin-top: 6px;
        box-shadow: none;
        border-radius: 14px;
    }

    .site-nav__user-name {
        display: inline;
    }

    .editor-toolbar {
        position: static;
        width: min(100%, 720px);
        margin: 16px auto 0;
    }

    .editor-toolbar__toggle {
        margin: 0 auto;
    }

    .editor-toolbar__panel {
        justify-content: center;
    }

    .editor-toolbar__menu-items {
        position: static;
        min-width: 0;
        margin-top: 8px;
    }

    .messages {
        top: 144px;
        right: 16px;
        left: 16px;
        width: auto;
    }

    .content {
        padding-top: 1.4rem;
    }

    .editorial-shell {
        width: 100%;
        padding: 32px 22px 36px;
        border-radius: 22px;
    }

    .editorial-shell--site-page {
        padding: 28px 20px 34px;
    }

    .editorial-shell__title {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    .editorial-shell__subtitle {
        font-size: 1.05rem;
    }

    .place-browser {
        padding: 24px 20px 28px;
        border-radius: 22px;
    }

    .place-browser__header {
        align-items: flex-start;
    }

    .place-form-shell {
        padding: 24px 20px 28px;
        border-radius: 22px;
    }

    .place-form__grid {
        grid-template-columns: 1fr;
    }

    .combine-place-form__grid {
        grid-template-columns: 1fr;
    }

    .data-panel {
        padding: 22px 18px 24px;
        border-radius: 20px;
    }

    .inhabitants-form__grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        min-width: 640px;
    }

    .place-browser-group {
        padding: 18px 18px 20px;
    }

    .place-browser-group__grid {
        grid-template-columns: 1fr;
    }

    .place-flat-list__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .editorial-shell--site-page {
        width: 100%;
    }

    #main_place_photo {
        width: 100%;
    }

    .place-photo-dialog {
        width: min(100vw - 20px, 1120px);
    }

    .place-photo-dialog__layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .place-photo-dialog__form-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(47, 52, 56, 0.08);
    }

    .place-photo-dialog__image {
        max-height: 420px;
    }

    .site-page-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .site-page-nav {
        position: static;
    }

    .home-discovery-grid {
        grid-template-columns: 1fr;
    }

    .home-hero__brand {
        flex-direction: column;
        gap: 12px;
    }

    .home-hero__brand-logo {
        width: 92px;
    }

    .home-hero__brand-copy {
        align-items: center;
    }

    .home-hero__brand-copy .editorial-shell__title,
    .home-hero__brand-copy .editorial-shell__subtitle {
        text-align: center;
    }

    .search-page {
        padding: 24px 20px 28px;
        border-radius: 22px;
    }

    .search-page__summary {
        align-items: stretch;
    }

    .search-page__query,
    .search-page__count {
        width: fit-content;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .site-header__inner {
        width: min(100% - 16px, 1180px);
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .logo {
        width: 100%;
        justify-content: flex-start;
        gap: 9px;
        align-items: center;
    }

    .logo__image {
        height: 44px;
    }

    .logo__text {
        gap: 1px;
    }

    .logo__title {
        font-size: 1.2rem;
    }

    .logo__kicker {
        font-size: 0.46rem;
        letter-spacing: 0.12em;
    }

    .site-nav-shell__toggle {
        min-height: 44px;
        padding: 0.7rem 0.8rem;
        border-radius: 14px;
    }

    .site-nav-shell__toggle-label {
        display: none;
    }

    .site-search {
        gap: 8px;
    }

    .site-search__input,
    .site-search__button {
        min-height: 50px;
    }

    .site-nav__link,
    .site-nav__user {
        font-size: 0.9rem;
        padding: 0.45rem 0.65rem;
    }

    .home-hero {
        padding-top: 4px;
    }

    .home-hero__eyebrow {
        margin-bottom: 10px;
        padding: 0.38rem 0.7rem;
        font-size: 0.68rem;
    }

    .home-hero__brand {
        gap: 10px;
        margin-bottom: 10px;
    }

    .home-hero__brand-logo {
        width: 72px;
    }

    .home-hero__brand-copy .editorial-shell__title {
        font-size: clamp(2.4rem, 13vw, 3.4rem);
    }

    .home-hero__brand-copy .editorial-shell__subtitle {
        font-size: 0.95rem;
    }

    .home-hero__lede {
        margin-bottom: 16px;
        font-size: 1.04rem;
        line-height: 1.6;
    }

    .home-discovery-grid {
        margin: 20px 0 28px;
        gap: 14px;
    }

    .home-discovery-card {
        padding: 18px 18px 16px;
    }

    .home-hero__image-wrap {
        margin-top: 18px;
    }

    main {
        padding: 18px 10px 28px;
    }

    .content {
        padding: 1rem 0 2.25rem;
    }

    .editorial-shell,
    .place-browser,
    .place-form-shell,
    .search-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .editorial-shell--site-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-discovery-card,
    .place-browser-card,
    .place-browser-group,
    .search-group,
    .data-panel {
        border-radius: 18px;
    }

    .messages {
        top: 134px;
        right: 10px;
        left: 10px;
    }
}

@media (max-width: 820px) {
    .data-table {
        min-width: 0;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tbody {
        padding: 10px;
    }

    .data-table tbody tr {
        margin-bottom: 12px;
        padding: 14px 14px 10px;
        border: 1px solid rgba(47, 52, 56, 0.08);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.84);
        box-shadow: 0 8px 20px rgba(24, 28, 33, 0.06);
    }

    .data-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .data-table td {
        padding: 0 0 10px;
        border-bottom: 0;
    }

    .data-table td:last-child {
        padding-bottom: 0;
    }

    .data-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: var(--muted-ink);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .data-table td.align-right {
        text-align: left;
    }

    .data-table td.align-right .data-table__action {
        width: 100%;
    }
}

.content > h1 {
    display: flex;
    align-items: center;
    font-size: 1.7rem;
    font-weight: 600;
    margin-top: 0.1rem;
    letter-spacing: 0.11rem;
}

.content > h1 > *:first-child  {
    margin-right: 10px;
}

.tag {
    padding: 1px 5px;
    border-radius: 5px;
    font-size: 0.6rem;
    border: 1px solid black;
    margin-right: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: normal;
}

.tag.vacation {
    background-color: rgba(255, 128 ,0, 0.9);
}

.tag.active {
    background-color: lightgreen    
}

.tag.inactive {
    background-color: rgba(255,0,0, 0.9);    
    color: #DEDEDE;
}

.metrics, .cards {
    display: flex; /* IE Fix */
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

.metrics__item {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    color: #333333;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    box-shadow: 1px 1px 4px 0 rgba(0,0,0,0.15);
    padding: 20px;
    min-width: 160px;
}

.metrics__item_double {
    padding: 10px 20px;
}

.metrics__item > span {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 500;
    color: #000000;
}

.metrics__item_double > span {
    font-size: 1.3rem;
}

.metrics__item_double > span > span {
    font-size: 0.8rem;
    line-height: 1.3rem;
    color: #666666;
    font-weight: 300;
}

.metrics__item.positive > span {
    color: lightgreen;
}

.metrics__item.negative > span {
    color: rgba(255, 0 ,0, 0.9);
}

.cards > * {
    padding: .5rem 1rem;
    display: block;
    border: 1px solid #999999;
    border-radius: 5px;
    box-shadow: 1px 1px 4px 0 rgba(0,0,0,0.15);
}


svg.search {
    border-width: 1px 0 1px 1px;
    border-color: #e0e1e2;
    border-style: solid;
    background-color: white;
    border-radius: 5px 0 0 5px;
    padding: 0.51rem 0.2rem 0.65rem .7rem;
    width: 1.05rem;
    height: 1.05rem;

}

hr {
    border-top: 1px solid rgba(34,36,38,.15);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.content_section, .two_columns > * {
    padding: 1rem 1rem;
    border-radius: .28571429rem;
    box-shadow: 0 1px 2px 0 rgb(34 36 38 / 15%);
    border: 1px solid rgba(34,36,38,.15);
    margin-top: 1.5rem;
}

/* IE Fix */
.cards > *, .metrics__item {
    margin-right: 10px;
}

.cards > * h1 {
    margin: 0.3rem 0 0.2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #EDEDED;
    font-size: 1.3rem;
}

.horizontal_tree path {
    fill: transparent;
    stroke: rgb(64, 64, 64);
  }
  
.horizontal_tree rect {
    fill: rgba(255, 255, 255, 1);
    stroke: #cccccc;
    stroke-width: 1;
}

.familytree {
    display: flex;
    flex-flow: column;
    width: 100%;
    min-height: 500px;
    overflow-y: visible;
    overflow-x: auto;
}

.icon--flipped-vertically {
    -webkit-transform: scale(1, -1);
    transform: scale(1, -1);  
}

.field {
    margin-top: 10px;
}

.field > label {
    display: block;
    margin: 0 0 .29rem 0;
    color: rgba(0,0,0,.87);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: none;
}


label:has(+ input[type=checkbox]) {
    display: inline-block;
    margin-right: 10px;
}

.two_fields > *, .one_field {
    margin-top: 1.5rem;
}

.two_fields {
    display: flex; 
    justify-content: space-between;
}

.two_fields > * {
    flex: 0 50%;
}

.two_fields > *:nth-child(2n) {
    margin-left: 1rem;
}

.two_fields > *:nth-child(2n + 1) {
    margin-right: 1rem;
}

input[type=text], input[type=password], textarea, select {
    width: 100%;
    box-sizing: border-box;
}

textarea {
    min-height: 8rem;
    max-height: 24rem;
    height: 12rem;
}

.person-list {
    margin-top: 1rem;
    margin-bottom: 1rem;
    user-select: none;
    max-height: 600px;
    overflow-y: auto;
}

button[disabled] {
    background-color: #CCCCCC;
}

button.icon-only svg.icon {
    vertical-align: baseline;
}

.controls {
    display: flex;
}

.controls--reverse {
    flex-direction: row-reverse;
}

.controls > * {
    margin-right: 10px;
}

.controls > *:last-child {
    margin-right: 0px;
}

.controls--reverse > *:first-child {
    margin-right: 0px;
}

.controls--reverse > *:last-child {
    margin-right: 10px;
}

.controls__main {
    flex-grow: 1;
}

.controls--reverse > .controls__main {
    text-align: right;
}

.controls__input {
    max-width: 250px;
}

.default__reference > * {
    font-size: 0.9rem;
}

.default__reference > span {
    white-space: nowrap;
    padding-right: 10px;
    font-style: italic;
    color: #333333;
}

.default__reference > input[type=text] {
    min-width: 400px;
    padding: 4px 10px;
    font-size: 0.9rem;
    outline: none;
    border-radius: 5px;
    border: 1px solid #999999;
    background-color: white;
}

/**
Messages begin
**/
.messages {   
    list-style: none;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 104px;
    z-index: 1000;
    right: 20px;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
}

.messages > * {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(252, 249, 243, 0.96);
    border: 1px solid rgba(47, 52, 56, 0.12);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: var(--shadow-card);
    width: 100%;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 350ms ease, opacity 350ms ease;
}

.messages > * > *:first-child {
    flex: 1;
    line-height: 1.5;
}

.messages > *.success {
    background: rgba(232, 247, 236, 0.98);
    border-color: rgba(84, 138, 96, 0.28);
    color: #21482c;
}

.messages > *.error {
    background: rgba(251, 229, 229, 0.98);
    border-color: rgba(174, 76, 76, 0.28);
    color: #6d1f1f;
}

.messages > *.error svg {
    fill: #6d1f1f;
}

.messages > *.warning {
    background: rgba(254, 247, 224, 0.98);
    border-color: rgba(176, 141, 57, 0.28);
    color: #6a5311;
}

.messages > * .icon-only {
    flex: 0 0 auto;
    margin-top: 1px;
    color: inherit;
}

/**
Messages end
**/

.removed {
    transform: translateY(-18px);
    opacity: 0;
}

#hamburger_menu {
    display: none;
    flex: 1;
    text-align: right;;
    background: black;
    margin: 0;
    padding: 0;
}

#hamburger_menu button {
    background: black;
    border: 0px none;
    color: white;
    font-size: 1.4rem;
    line-height: 0.5rem;
}

#hamburger_menu svg {
    fill: white;
}

nav.admin {
    flex: 1;
}

.place_text {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
}

.place_toolbar_top {
    display: flex;
    border-bottom: 1px solid #DEDEDE;
    margin-top: -20px;
}

.place_toolbar_top > * {
    flex: 1 1 auto;
    text-align: center;
    border-right: 1px solid #DEDEDE ;
}

.place_toolbar_top > *:last-child {
    border-right: 0px none;
}
.place_toolbar_top > a {
    color: #666666;
}

.letter >section > h1 {
    display: grid;
    grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
    align-items: center;
    text-align: center;
    grid-gap: 20px;
    width: 100%;
    gap: 20px;
    margin-bottom: 1rem;
} 

.letter > section > h1 {
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-size: 2.5rem;
    font-weight: 500;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.3), 
    0px -4px 10px rgba(255,255,255,0.3);
}

.letter > section > h2 {
    color: #111111;
    font-size: 1.45rem;
    font-weight: 400;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3), 
    0px -4px 10px rgba(255,255,255,0.3);
}

.letter > section >p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.letter > section > h1:before, .letter > section > h2:before, .letter > section > h3:before,
.letter > section > h1:after, .letter > section > h2:after, .letter > section > h3:after {
    content: '';
    border-top: 2px solid rgba(0,0,0, 0.4);
    flex: 1 0 20px;
}


.letter {
    background: #FEFEFE;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    margin: 26px auto 0;
    max-width: 2000px;
    min-height: 300px;
    padding: 24px;
    position: relative;
    width: 80%;
  }
  /*
  .letter:before, .letter:after {
    content: "";
    height: 98%;
    position: absolute;
    width: 100%;
    z-index: -1;
  }
  .letter:before {
    background: #f8f5f1;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    left: -5px;
    top: 4px;
    transform: rotate(-2.5deg);
  }
  .letter:after {
    background: #f0ebe0;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
    right: -3px;
    top: 1px;
    transform: rotate(1.4deg);
  }
*/

.place-page {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    gap: clamp(18px, 2vw, 30px);
    align-items: start;
    width: min(1720px, calc(100vw - 40px));
    margin: 0 auto;
}

.place-page__aside {
    position: relative;
}

.place-page__menu-drawer {
    display: block;
}

.place-page__menu-toggle {
    display: none;
}

.place-page__main {
    min-width: 0;
    padding: 30px clamp(20px, 2.4vw, 38px) 36px;
    border: 1px solid rgba(47, 52, 56, 0.08);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 246, 0.95)),
        radial-gradient(circle at top right, rgba(47, 100, 131, 0.06), transparent 30%);
    box-shadow: var(--shadow-soft);
}

.place-preview {
    display: block;
    width: min(980px, 100%);
}

.place-page__header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(47, 52, 56, 0.12);
}

.place-page__parent {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--moss);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.place-page__title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.place-page__title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 4vw, 4.1rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
    margin: 0;
}

.place-page__reference {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(47, 52, 56, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--muted-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

.place-menu {
    position: sticky;
    top: 108px;
    padding: 16px 12px 14px;
    border: 1px solid rgba(47, 52, 56, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(251, 253, 253, 0.98) 0%, rgba(237, 242, 244, 0.95) 100%);
    box-shadow: var(--shadow-card);
    max-height: calc(100vh - 132px);
    overflow: auto;
}

.place-menu__eyebrow {
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-ink);
}

.place-menu > ul,
.place-menu > ul ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.place-menu > ul ul {
    margin-left: 16px;
    padding-top: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(47, 52, 56, 0.1);
}

.place-menu ul > li {
    margin: 0;
}

.place-menu .place-menu-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.place-menu a.place-menu-link {
    display: block;
    flex: 1 1 auto;
    padding: 0.72rem 0.78rem;
    border-radius: 12px;
    color: #4f5962;
    font-size: 0.95rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.place-menu > ul ul a.place-menu-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem;
}

.place-menu > ul ul > li.active > .place-menu-row > a.place-menu-link {
    background: rgba(29, 79, 115, 0.08);
}

.place-menu a.place-menu-edit {
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(47, 52, 56, 0.12);
    border-radius: 999px;
    color: #4f5d75;
    background: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-2px);
    transition: opacity 120ms ease, transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.place-menu .place-menu-row:hover > a.place-menu-edit,
.place-menu .place-menu-row:focus-within > a.place-menu-edit {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.place-menu ul > li.active > .place-menu-row > a.place-menu-link {
    background: rgba(29, 79, 115, 0.12);
    color: #173d59;
    font-weight: 700;
}

.place-menu ul > li > .place-menu-row > a.place-menu-link:hover {
    background: rgba(29, 79, 115, 0.08);
    color: var(--ink);
    transform: translateX(2px);
}

.place-menu a.place-menu-edit:hover {
    border-color: #acb6c8;
    background: #eef2f8;
    color: #27344e;
    text-decoration: none;
}

.place-menu a.place-menu-edit:focus-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    outline: 2px solid #7fa2d8;
    outline-offset: 1px;
}

.place-menu ul a:not(.place-menu-link):not(.place-menu-edit) {
    text-decoration: none;
    color: #666666;
    line-height: 1.45rem;
    font-size: 0.9rem;
    padding-left: 0.8rem;
}

.place-menu ul a:not(.place-menu-link):not(.place-menu-edit):hover {
    color: var(--main-app-color);
}

@media (max-width: 980px) {
    .place-page {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .place-page__aside {
        order: -1;
    }

    .place-page__menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        width: 100%;
        min-height: 56px;
        padding: 0.9rem 1rem;
        border: 1px solid rgba(47, 52, 56, 0.12);
        border-radius: 18px;
        background: rgba(251, 248, 241, 0.96);
        box-shadow: var(--shadow-card);
        color: var(--ink);
        cursor: pointer;
        font-weight: 700;
        list-style: none;
    }

    .place-page__menu-toggle::-webkit-details-marker {
        display: none;
    }

    .place-page__menu-toggle-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        border-radius: 999px;
        background: rgba(29, 79, 115, 0.1);
        color: #173d59;
    }

    .place-page__menu-drawer .place-menu {
        position: static;
        margin-top: 10px;
        max-height: none;
    }

    .place-page__menu-drawer:not([open]) .place-menu {
        display: none;
    }

    .place-page__main {
        padding: 26px 22px 30px;
        border-radius: 22px;
    }

    .place-page__title-row {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .place-page__main {
        padding: 22px 16px 24px;
    }

    .place-page__header {
        margin-bottom: 20px;
        padding-bottom: 14px;
    }

    .place-page__title {
        font-size: clamp(2rem, 11vw, 2.6rem);
    }
}

#place_content {
    font-size: 1.1rem;
    line-height: 1.82;
    color: #2b3136;
}

#place_content > p,
#place_content .block-paragraph p {
    margin-bottom: 1.2rem;
}

#place_content h2,
#place_content h3,
#place_content h4 {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Baskerville", serif;
    line-height: 1.15;
    margin: 2.2rem 0 0.75rem;
}

#place_content h2 {
    font-size: 2rem;
}

#place_content h3 {
    font-size: 1.5rem;
}

.place-overview-summary,
.place-overview-map,
.place-overview-children {
    margin-top: 2rem;
    padding: 1.2rem 1.35rem 1.1rem;
    border: 1px solid rgba(47, 52, 56, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.place-overview-summary h2,
.place-overview-map h2,
.place-overview-children h2 {
    margin-top: 0;
}

.place-overview-summary ul,
.place-overview-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.place-overview-summary li {
    padding: 0.45rem 0;
    border-top: 1px solid rgba(47, 52, 56, 0.08);
}

.place-overview-summary li:first-child {
    border-top: 0;
}

.place-overview-group + .place-overview-group {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(47, 52, 56, 0.08);
}

.place-overview-group h3 {
    margin: 0 0 0.55rem;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Baskerville", serif;
    font-size: 1.25rem;
}

.place-overview-group li + li {
    margin-top: 0.4rem;
}

article.place > section > p img {
    object-fit: cover;
    width: 400px;
    height: auto;
    float: left;
    margin: 0 20px 20px 0;
    border-radius: 5px;
    border: 1px solid #DEDEDE;
    box-shadow: 1px 1px 4px 0 rgba(0,0,0,0.15);    
}

article.place > section > p img[src="https://imagedelivery.net/YGbMUx5bUmLwmpDkk9MCtw/0f1a5d05-d673-4aa7-a05d-bce49ac35d00/public"],
article.place > section > p img[src="https://imagedelivery.net/YGbMUx5bUmLwmpDkk9MCtw/ca84df6f-5d88-4858-4fbf-9f62eef4d400/public"] {
    float:right !important;
 }

#place_content img.richtext-image {
    display: block;
    height: auto;
    max-width: 100%;
    margin-bottom: 18px;
    border-radius: 4px;
}

#place_content img.richtext-image.align-left.size-100,
#place_content img.richtext-image.align-right.size-100,
#place_content img.richtext-image.align-center.size-100 {
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#place_content img.richtext-image.align-left:not(.size-100) {
    float: left;
    margin: 0 18px 12px 0;
}

#place_content img.richtext-image.align-right:not(.size-100) {
    float: right;
    margin: 0 0 12px 18px;
}

#place_content img.richtext-image.align-center {
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#place_content img.richtext-image.size-25 { width: 25%; }
#place_content img.richtext-image.size-33 { width: 33%; }
#place_content img.richtext-image.size-50 { width: 50%; }
#place_content img.richtext-image.size-66 { width: 66%; }
#place_content img.richtext-image.size-100 { width: 100%; }

#place_content figure.richtext-image {
    display: block;
    margin: 0 0 18px 0;
}

#place_content figure.richtext-image > img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

#place_content figure.richtext-image > figcaption {
    margin-top: 8px;
    color: #5b5b5b;
    font-size: 0.9rem;
}

#place_content figure.richtext-image.align-left.size-100,
#place_content figure.richtext-image.align-right.size-100,
#place_content figure.richtext-image.align-center.size-100 {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

#place_content figure.richtext-image.align-left:not(.size-100) {
    float: left;
    margin: 0 18px 12px 0;
}

#place_content figure.richtext-image.align-right:not(.size-100) {
    float: right;
    margin: 0 0 12px 18px;
}

#place_content figure.richtext-image.align-center {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

#place_content figure.richtext-image.size-25 { width: 25%; }
#place_content figure.richtext-image.size-33 { width: 33%; }
#place_content figure.richtext-image.size-50 { width: 50%; }
#place_content figure.richtext-image.size-66 { width: 66%; }
#place_content figure.richtext-image.size-100 { width: 100%; }

.inline-tabs {
    list-style-type: none;
    margin: 20px 0 10px 0;
    display: flex;
    border-bottom: 1px solid #DEDEDE;
}

.inline-tabs > li {
    text-align: center;
}

.inline-tabs a {
    text-decoration: none;
    padding: 0 20px;
    font-size: 1.1rem;
    color: #666666;
}

.inline-tabs > li.active, .inline-tabs > li:hover {
    border-bottom: 2px solid var(--main-app-color);
}

.inline-tabs > li.active a {
    color: var(--main-app-color);
    font-weight: bold;
}

.inline-tabs > li a:hover {
    color: var(--main-app-color);
}

.place_photos {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 18px;
    border-radius: 20px;
    background-color: rgba(240, 235, 224, 0.9);
    border: 1px solid rgba(0,0,0,0.05);
    overflow-x: auto;
}

.place-photos__thumb {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
}

.place-photos__thumb img {
    height: 140px;
    width: 180px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid transparent;
    opacity: 0.88;
    transition: transform 120ms ease, opacity 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.place-photos__thumb:hover img,
.place-photos__thumb:focus-visible img,
.place-photos__thumb--active img {
    opacity: 1;
    transform: translateY(-2px);
    border-color: rgba(29, 79, 115, 0.4);
    box-shadow: 0 10px 22px rgba(24, 28, 33, 0.12);
}

.place-photos__thumb:focus-visible {
    outline: none;
}

.place-main-photo {
    margin: 0 0 26px;
}


.big_place_photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
    
.big_place_photos > img {
    width: 100%;
    padding: 0;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    box-sizing: border-box;
}

.place-photo-gallery-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(47, 52, 56, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.place-photo-gallery-header__title {
    margin: 0 0 0.35rem;
    font-family: var(--font-serif);
    font-size: 1.9rem;
}

.place-photo-gallery-header__text {
    color: var(--muted-ink);
}

.place-photo-gallery-upload {
    flex: 1 1 320px;
    max-width: 520px;
}

.place-photo-gallery-upload__label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.place-photo-gallery-upload__controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.place-photo-gallery-upload__controls input[type=file] {
    flex: 1 1 220px;
    min-width: 0;
}

.place-photo-gallery-upload__status {
    min-height: 1.4rem;
    margin: 0.5rem 0 0;
    color: var(--muted-ink);
    font-size: 0.9rem;
}

.place-photo-gallery-upload__status[data-state="error"] {
    color: #8c2f2f;
}

.place-photo-gallery-upload__status[data-state="ok"] {
    color: #315e42;
}

.place-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    align-items: start;
}

.place-gallery-card {
    position: relative;
}

.place-gallery-card__button {
    width: 100%;
    padding: 0;
    border: 1px solid rgba(47, 52, 56, 0.1);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
    text-align: left;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.place-gallery-card__button:hover,
.place-gallery-card__button:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(29, 79, 115, 0.28);
    box-shadow: 0 16px 34px rgba(24, 28, 33, 0.13);
    outline: none;
}

.place-gallery-card__button img {
    width: 100%;
    height: clamp(150px, 14vw, 210px);
    object-fit: contain;
    background: linear-gradient(180deg, rgba(231, 223, 207, 0.6), rgba(245, 241, 232, 0.88));
}

.place-gallery-card__body {
    display: block;
    padding: 10px 15px 12px;
}

.place-gallery-card__caption {
    display: block;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.35;
}

.place-gallery-card__meta {
    display: block;
    margin-top: 2px;
    color: var(--muted-ink);
    font-size: 0.88rem;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .place-photo-gallery-upload__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .place-photo-gallery-upload__controls > button {
        width: 100%;
    }

    .place-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.place-gallery-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(23, 61, 89, 0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.place-gallery-card--primary .place-gallery-card__button {
    border-color: rgba(29, 79, 115, 0.28);
}

.place-photo-dialog {
    position: fixed;
    inset: 20px;
    margin: auto;
    transform: none;
    width: min(1120px, calc(100vw - 40px));
    max-width: 1120px;
    height: min(620px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
    border: 1px solid rgba(47, 52, 56, 0.14);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    background: rgba(252, 250, 245, 0.98);
    box-shadow: 0 28px 70px rgba(24, 28, 33, 0.28);
}

.place-photo-dialog::backdrop {
    background: rgba(15, 22, 28, 0.45);
}

.place-photo-dialog__layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    max-height: 100%;
}

.place-photo-dialog__form-panel {
    min-height: 0;
    padding: 24px 24px 28px;
    background: linear-gradient(180deg, rgba(247, 243, 234, 0.95), rgba(239, 234, 224, 0.98));
    border-right: 1px solid rgba(47, 52, 56, 0.08);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.place-photo-dialog__title {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.05;
}

.place-photo-dialog__form {
    display: grid;
    gap: 10px;
}

.place-photo-dialog__form label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted-ink);
}

.place-photo-dialog__form textarea,
.place-photo-dialog__form input {
    width: 100%;
    border: 1px solid rgba(47, 52, 56, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.place-photo-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.place-photo-dialog__actions > button {
    border-radius: 12px;
}

.place-photo-dialog__image-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 246, 0.96));
    min-height: 0;
    overflow: auto;
}

.place-photo-dialog__image {
    width: 100%;
    max-width: 680px;
    max-height: min(560px, calc(100dvh - 88px));
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

#main_place_photo {
    width: min(100%, 920px);
    height: auto;
    display: block;
    float: none;
    margin: 0;
    border-radius: 22px;
    border: 1px solid rgba(47, 52, 56, 0.1);
    box-shadow: var(--shadow-card);
}

.place-main-photo figcaption {
    margin-top: 10px;
    color: var(--muted-ink);
    font-size: 0.95rem;
    line-height: 1.55;
}

#main_person_photo {
    width: 350px;
    height: auto;
    float: left;
    margin: 0 20px 20px 0;
}

#place_content .block-quote {
    max-width: 44rem;
    margin: 1.25rem auto;
    padding: 0 1rem;
}

#place_content .block-quote blockquote {
    position: relative;
    margin: 0;
    padding: 2.5rem 1.75rem 1.5rem;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 1.02rem + 0.45vw, 1.55rem);
    line-height: 1.7;
    font-style: italic;
    color: #3d3127;
}

#place_content .block-quote blockquote::before {
    content: "„";
    position: absolute;
    top: -0.95rem;
    left: 0;
    transform: translateX(-50%);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.5rem;
    line-height: 0.8;
    color: rgba(125, 90, 60, 0.45);
}

#place_content .block-quote blockquote::after {
    content: "“";
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(125, 90, 60, 0.45);
}

 .select__container {
    position: relative;
    box-sizing: border-box;
}

.select__box {
    position: absolute;
    top: 100%;
    background-color: white;
    border-radius: 4px;
    margin: 8px 0;
    width: 100%;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: rgb(0 0 0 / 10%) 0px 0px 0px 1px, rgb(0 0 0 / 10%) 0px 4px 11px;
}


.select__box_list {
    background-color: white;
    border-radius: 4px;
    margin: 8px 0;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: rgb(0 0 0 / 10%) 0px 0px 0px 1px, rgb(0 0 0 / 10%) 0px 4px 11px;
}

.select__options {
    max-height: 300px;
    overflow-y: auto;
    position: relative;
    padding: 4px 0px;
    box-sizing: border-box;
}

.select__options__list {
    max-height: 600px;
    overflow-y: auto;
    display: block;
    padding: 4px 0px;
    box-sizing: border-box;
}


.select__options > *, .select__options__list > * {
    display: block;
    padding: 8px 12px;
    width: 100%;
    user-select: none;
    box-sizing: border-box;
}


.select__options > *.selected, .select__options__list > *.selected {
    background-color: blue;
    color: white;
}

dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: auto;    
}

.inline-photo {
    margin: 0 0 1rem 0;
}

.inline-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.inline-photo figcaption {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.4rem;
}

.inline-photo--left {
    float: left;
    margin: 0.2rem 1rem 0.8rem 0;
}

.inline-photo--right {
    float: right;
    margin: 0.2rem 0 0.8rem 1rem;
}

.inline-photo--center {
    float: none;
    margin: 0.8rem auto;
    clear: both;
}

.habitat-carousel-block-form__controls {
    margin-bottom: 0.5rem;
}

.habitat-carousel-block-form__hint {
    color: #66727d;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.habitat-carousel-block-form__list {
    display: grid;
    gap: 10px;
}

.habitat-carousel-block-form__chip {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(47, 52, 56, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.habitat-carousel-block-form__chip img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
}

.habitat-carousel-block-form__chip span {
    min-width: 0;
    font-size: 0.88rem;
    color: #495662;
    word-break: break-all;
}

.habitat-carousel-block-form__chip button {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(47, 52, 56, 0.12);
    border-radius: 999px;
    background: rgba(244, 246, 248, 0.96);
    color: #43515d;
}

.habitat-carousel-block-form__empty {
    margin: 0;
    color: #66727d;
    font-size: 0.92rem;
}

.place-photo-carousel {
    width: 100%;
    margin: 1.75rem 0 2rem;
    padding: 1rem;
    border: 1px solid rgba(47, 52, 56, 0.08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(249, 250, 250, 0.96), rgba(240, 244, 246, 0.96));
    box-shadow: var(--shadow-card);
}

.place-photo-carousel__viewport {
    position: relative;
    min-height: 320px;
}

.place-photo-carousel__slide {
    display: none;
    margin: 0;
}

.place-photo-carousel__slide.is-active {
    display: block;
}

.place-photo-carousel__slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(47, 52, 56, 0.08);
    background: rgba(231, 235, 237, 0.9);
}

.place-photo-carousel__slide figcaption {
    margin-top: 0.85rem;
    padding: 0 0.2rem;
    color: var(--muted-ink);
    font-size: 0.98rem;
    line-height: 1.55;
}

.place-photo-carousel__controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin-top: 1rem;
}

.place-photo-carousel__nav {
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(47, 52, 56, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #204f68;
    font-size: 1.1rem;
    box-shadow: var(--shadow-card);
}

.place-photo-carousel__dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.place-photo-carousel__dot {
    width: 0.85rem;
    height: 0.85rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(113, 129, 143, 0.28);
}

.place-photo-carousel__dot.is-active {
    background: #2f6483;
    transform: scale(1.12);
}

@media (max-width: 640px) {
    .place-photo-carousel {
        padding: 0.75rem;
        border-radius: 22px;
    }

    .place-photo-carousel__viewport {
        min-height: 220px;
    }

    .place-photo-carousel__controls {
        grid-template-columns: 1fr;
    }

    .place-photo-carousel__nav {
        width: 100%;
        height: 2.8rem;
    }

    .habitat-carousel-block-form__chip {
        grid-template-columns: 56px minmax(0, 1fr) auto;
    }
}
