/* Public facility directory: readable records, restrained colour, clear actions. */
:root {
    --primary: #315e52;
    --primary-dark: #24473e;
    --bg-light: #f5f4f0;
    --bs-primary: #315e52;
    --bs-primary-rgb: 49, 94, 82;
    --bs-link-color: #315e52;
    --bs-link-color-rgb: 49, 94, 82;
    --bs-link-hover-color: #24473e;
    --bs-link-hover-color-rgb: 36, 71, 62;
    --directory-ink: #292e2b;
    --directory-muted: #666c67;
    --directory-line: #dedfd9;
    --directory-paper: #f5f4f0;
}
body { color: var(--directory-ink); background: #fff; }
@media (min-width: 1200px) { .container { max-width: 1180px; } }
a { text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid #315e52;
    outline-offset: 4px;
}

/* The masthead is a navigation bar, without decorative icon tiles. */
.navbar.bg-primary { background: #fff!important; border-bottom: 1px solid var(--directory-line); }
.navbar {
    --bs-navbar-color: #5c635e;
    --bs-navbar-hover-color: #24473e;
    --bs-navbar-active-color: #24473e;
    --bs-navbar-brand-color: #292e2b;
    --bs-navbar-brand-hover-color: #24473e;
    --bs-navbar-toggler-border-color: #c7ccc6;
    padding-block: 15px;
}
.navbar-brand { font-size: 1.06rem; letter-spacing: -.4px; }
.navbar-brand > i { color: #315e52; margin-right: 6px; }
.navbar .nav-link { font-size: .89rem; padding: 8px 11px!important; margin-inline: 2px; border-bottom: 2px solid transparent; }
.navbar .nav-link > i { display: none; }
.navbar .nav-link.active { border-bottom-color: #315e52; font-weight: 700; }
.navbar .nav-link:hover { border-bottom-color: #aebeb3; }
.navbar-toggler { border-radius: 4px; padding: 7px; }
.navbar-toggler-icon { filter: brightness(0); opacity: .65; }

/* Search and the four useful shortcuts. */
.hero-section { background: var(--directory-paper); color: var(--directory-ink); padding: 54px 0; border-bottom: 1px solid var(--directory-line); }
.hero-section::before, .hero-section::after { content: none; }
.hero-section > .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.hero-section h1 { font-size: 2.15rem; letter-spacing: -1px; font-weight: 700; margin: 0 0 15px; }
.hero-section .lead { color: #5f655f; font-size: .97rem; line-height: 1.8; opacity: 1; word-break: keep-all; }
.home-search-tools { min-width: 0; }
.hero-search { max-width: none; margin: 0; }
.hero-search form { gap: 0!important; }
.hero-search .form-control { min-width: 0; font-size: .95rem; padding: 15px 17px; border: 1px solid #aeb7ae; border-right: 0; border-radius: 4px 0 0 4px; box-shadow: none; background: #fff; }
.hero-search .form-control::placeholder { color: #777d76; }
.hero-search .form-control:focus { border-color: #315e52; box-shadow: inset 0 0 0 1px #315e52; }
.hero-search .btn { border-radius: 0 4px 4px 0; min-width: 76px; padding: 14px 22px; background: #315e52; border-color: #315e52; color: #fff; font-size: .95rem; font-weight: 600; }
.hero-search .btn:hover { background: #24473e; border-color: #24473e; }
.hero-section .btn-outline-light { color: #526259; border: 0; border-radius: 0; padding: 2px 0; background: transparent; margin-right: 22px!important; font-size: .83rem; }
.hero-section .btn-outline-light:hover { color: #24473e; text-decoration: underline; }
.quick-discovery { padding: 30px 0 0; background: #fff; }
.quick-discovery h2 { font-size: 1.13rem; letter-spacing: -.3px; }
.quick-discovery .row { --bs-gutter-x: 24px; --bs-gutter-y: 12px; }
.quick-discovery-card {
    --shortcut-accent: #5d7463;
    display: grid;
    grid-template-columns: 24px 1fr;
    align-content: center;
    column-gap: 10px;
    row-gap: 3px;
    min-height: 86px;
    padding: 16px 14px;
    border: 0;
    border-left: 2px solid var(--shortcut-accent);
    border-radius: 0;
    box-shadow: none;
    background: #f8f8f5;
    color: var(--directory-ink);
    transition: background .15s;
}
.quick-discovery .row > div:nth-child(2) .quick-discovery-card { --shortcut-accent: #64798b; }
.quick-discovery .row > div:nth-child(3) .quick-discovery-card { --shortcut-accent: #a5804b; }
.quick-discovery .row > div:nth-child(4) .quick-discovery-card { --shortcut-accent: #847465; }
.quick-discovery-card > i { grid-row: 1 / 3; align-self: center; color: var(--shortcut-accent); font-size: 1.18rem; margin: 0; }
.quick-discovery-card strong { color: #303a32; font-size: .94rem; font-weight: 600; }
.quick-discovery-card span { color: #666c67; font-size: .77rem; }
.quick-discovery-card::after { content: none; }
.quick-discovery-card:hover, .quick-discovery-card:focus { background: #efefea; box-shadow: none; transform: none; color: #24473e; }

/* Counts and categories use spacing and rules instead of a repeated card grid. */
.stat-card, .stat-card:hover { background: transparent; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.stat-card .stat-icon { display: none; }
.stat-card .card-body { padding: 10px 16px; border-left: 1px solid var(--directory-line); }
.stat-card .stat-number { color: #343c35; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-card .stat-label { color: #666c67; font-size: .8rem; margin-top: 3px; }
.stats-banner { background: #f5f4f0; border-radius: 0; box-shadow: none; }
body[data-page-type="home"] .stat-card { text-align: left!important; }
body[data-page-type="home"] #main-content > .py-5 { padding-top: 30px!important; }
body[data-page-type="home"] #main-content > .py-5 > .container > .row:first-child { margin-bottom: 40px!important; }
body[data-page-type="home"] h2 { font-size: 1.2rem; letter-spacing: -.4px; }
body[data-page-type="home"] h2 > i { display: none; }
.category-card { padding: 0; background: #fff; border: 1px solid #e0e2db; border-radius: 4px; box-shadow: none; text-align: left; transition: border-color .15s; }
.category-card .card-body { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 19px 16px; }
.category-card .category-icon { grid-row: 1 / 4; align-self: center; margin: 0; color: #627362; font-size: 1.5rem; }
.category-card h6 { color: #303a32; font-size: .95rem; font-weight: 600; margin: 0 0 5px; }
.category-card .text-muted, .category-card .type-split { color: #666c67!important; font-size: .78rem; }
.category-card:hover, .category-card:focus { transform: none; box-shadow: none; border-color: #8eab98; }
.region-link { color: #48574c; background: #fff; border-color: #d9ddd5; border-radius: 3px; padding: 8px 13px; box-shadow: none; }
.region-link .count { color: #6e756c; opacity: 1; }
.region-link:hover, .region-link:focus, .region-link.active { color: #fff; background: #315e52; border-color: #315e52; }
.region-link:hover .count, .region-link:focus .count, .region-link.active .count { color: #e3ece6; }

/* Listings and shared controls. */
.page-header { background: #f5f4f0; border-bottom: 1px solid var(--directory-line); padding: 30px 0; }
.page-header h1, .page-header h2 { color: #292e2b; letter-spacing: -.6px; }
.page-header h1 > i, .page-header h2 > i { display: none; }
.page-header .breadcrumb { margin-bottom: 17px!important; font-size: .78rem; }
.facility-card { border: 0; border-bottom: 1px solid var(--directory-line); padding: 22px 0; border-radius: 0; box-shadow: none; background: #fff; }
.facility-card:hover { box-shadow: none; }
.facility-card h5 { font-size: 1.08rem; line-height: 1.5; margin-bottom: 10px; }
.facility-card h5 a { color: #303a32; }
.facility-meta, .facility-meta .meta-link { color: #626b62; }
.facility-meta i { color: #788a78; }
.facility-card__links { border: 0; padding-top: 0; }
.facility-card__links a { color: #315e52; }
.filter-section { background: #f8f8f5; border: 1px solid #e0e2db; border-radius: 4px; box-shadow: none; }
.filter-section h2, .filter-section h5 { font-size: 1.02rem; }
.filter-btn { border-radius: 3px; }
.btn { --bs-btn-border-radius: 4px; }
.btn-primary { --bs-btn-bg: #315e52; --bs-btn-border-color: #315e52; --bs-btn-hover-bg: #24473e; --bs-btn-hover-border-color: #24473e; --bs-btn-active-bg: #24473e; --bs-btn-active-border-color: #24473e; --bs-btn-focus-shadow-rgb: 49,94,82; }
.btn-outline-primary { --bs-btn-color: #315e52; --bs-btn-border-color: #a5b6a7; --bs-btn-hover-bg: #315e52; --bs-btn-hover-border-color: #315e52; --bs-btn-active-bg: #315e52; --bs-btn-active-border-color: #315e52; --bs-btn-focus-shadow-rgb: 49,94,82; }
.btn-outline-warning { --bs-btn-color: #836124; --bs-btn-border-color: #d1bd8a; --bs-btn-hover-bg: #f3ead3; --bs-btn-hover-border-color: #bca266; --bs-btn-hover-color: #614719; }
.form-control:focus, .form-select:focus { border-color: #749881; box-shadow: 0 0 0 .2rem #315e521a; }
.page-link { color: #315e52; border-color: #dce1d9; }
.active > .page-link, .page-link.active { background: #315e52; border-color: #315e52; }
.page-link:hover { color: #24473e; background: #f0f3ed; }
.badge.bg-success { color: #315e52!important; background: #e9f0e9!important; border: 1px solid #c9d8ca; }
.badge.bg-warning { color: #7b5922!important; background: #f5eddb!important; border: 1px solid #e3d2aa; }
.badge { border-radius: 3px; vertical-align: middle; }

/* The detail record begins with useful information, not a title poster. */
.page-header--detail { background: #fff; padding: 32px 0 0; margin-bottom: 32px; }
.page-header--detail h1 { font-size: 1.85rem; line-height: 1.45; max-width: 1000px; word-break: keep-all; overflow-wrap: anywhere; }
.page-header--detail h1 .badge { font-size: .78rem; margin-left: 5px; }
.page-header--detail .place-sub { color: #636c64!important; font-size: .94rem; margin-top: 10px; }
.share-bar { gap: 4px; }
.share-btn { color: #677168; background: transparent; border: 1px solid #e0e3dc; border-radius: 3px; padding: 5px 10px; font-size: .73rem; }
.share-btn > i, .share-btn > svg { display: none; }
.share-btn:hover { color: #315e52; background: #eff3ec; border-color: #a5b6a7; box-shadow: none; transform: none; }
.share-btn--copied { color: #fff; background: #315e52; border-color: #315e52; }
.facility-jump-nav { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: 26px; }
.facility-jump-nav a { color: #4a5c4f; padding: 12px 0; border-bottom: 2px solid transparent; font-size: .9rem; text-decoration: none; }
.facility-jump-nav a:hover, .facility-jump-nav a:focus { color: #24473e; border-color: #315e52; }
[id^="facility-"] { scroll-margin-top: 95px; }
.detail-section, .detail-section:hover { border: 0; border-radius: 0; padding: 0; margin-bottom: 34px; background: #fff; box-shadow: none; }
.detail-section .h4 { color: #333d34; font-size: 1.06rem; border-bottom: 1px solid #758876; padding-bottom: 13px; margin-bottom: 0; }
.detail-section .h4 > i { display: none; }
.detail-table th { width: 132px; background: #f7f7f3; color: #60695f; font-weight: 500; padding: 13px 16px; border-color: #e6e8e1; }
.detail-table td { color: #333b33; padding: 13px 16px; border-color: #e6e8e1; word-break: normal; overflow-wrap: anywhere; line-height: 1.65; }
.detail-table td a.text-muted { color: #697268!important; font-size: .8rem; }
.detail-table tr:hover td { background: #fbfcf8; }
.detail-map { border-radius: 3px; margin-top: 17px; border-color: #dfe3d9; }
.detail-section .detail-map + p { color: #677063; font-size: .82rem; }
.detail-quick-info { padding-top: 12px; }
.detail-quick-info li > i { display: none; }
.detail-quick-info li { font-size: .85rem; gap: 10px; flex-wrap: wrap; }
.detail-quick-info li strong { font-weight: 500; color: #6b746a; }
.detail-section > .h4 + div:not(.detail-map), .detail-section > .h4 + ul { margin-top: 14px; }
.facility-actions__lead { margin: 15px 0; color: #697166; font-size: .86rem; }
.facility-actions__grid { gap: 8px 18px; }
.facility-action { border: 1px solid #dfe3d9; border-radius: 3px; padding: 13px 14px; background: #fff; box-shadow: none; }
.facility-action--primary { border-color: #b8cbb8; background: #f1f5ee; }
.facility-action > i { color: #57725c; font-size: 1rem; }
.facility-action strong { color: #354a39; font-weight: 600; }
.facility-action small { color: #6b7367; }
.facility-action:hover, .facility-action:focus { border-color: #7e9f83; background: #f3f6ef; box-shadow: none; transform: none; }
.facility-description { border-block: 1px solid #dfe3d9; padding-block: 16px; }
.facility-description summary { color: #53634f; font-size: .9rem; font-weight: 600; cursor: pointer; }
.facility-description[open] summary { margin-bottom: 14px; }
.facility-description .detail-intro__text { font-size: .9rem; line-height: 1.9; color: #5c665b; }
.detail-section .img-fluid { border-radius: 3px; box-shadow: none; }
.chip { color: #4d654e; background: #eff3eb; border-color: #d6e1ce; border-radius: 3px; }

/* Related information and footer remain quieter than the record. */
.recommend-section--same-place, .recommend-section--alt, .cross-link-section, .cross-link-section--alt { background: #f7f7f3; border-color: #e2e5dc; }
.recommend-card, .sido-hub-card, .guide-nav-card { border: 1px solid #dfe3d9; border-radius: 4px; box-shadow: none; }
.recommend-card:hover, .recommend-card:focus, .sido-hub-card:hover, .sido-hub-card:focus, .guide-nav-card:hover, .guide-nav-card:focus { border-color: #8da68b; box-shadow: none; transform: none; }
.recommend-section__title > i, .cross-link-section__title > i { display: none; }
.recommend-section__title small { color: #6e776a; }
.guide-context-card { background: #f4f5ee; border-color: #dce2d3; border-radius: 4px; }
.guide-context-card__icon { color: #647954; background: transparent; box-shadow: none; border-radius: 0; }
.guide-context-card__cta { color: #4f693f; }
.site-footer { background: #f1f2ec; color: #465340; border-top: 1px solid #d9dfd1; }
.site-footer .footer-title { color: #3d4a37; }
.site-footer .footer-text, .site-footer .footer-link { color: #606d57; }
.site-footer .footer-link:hover { color: #315e52; text-decoration: underline; }
.site-footer .footer-copy { color: #65735b; }
.site-footer .footer-hr { border-color: #c0cbb4; opacity: .8; }

@media (max-width: 991px) {
    .hero-section > .container { grid-template-columns: 1fr; gap: 26px; }
    .hero-section { padding: 34px 0; }
    .navbar-collapse { padding-top: 14px; }
    .navbar .nav-link { padding: 11px 2px!important; }
    .navbar .nav-link.active { background: #f3f5ef; border-color: transparent; padding-left: 10px!important; }
    .page-header--detail h1 { font-size: 1.55rem; }
}
@media (max-width: 576px) {
    .container { padding-inline: 20px; }
    .navbar { padding-block: 10px; }
    .navbar-brand { font-size: .96rem; }
    .hero-section h1 { font-size: 1.7rem; margin-bottom: 12px; }
    .hero-section .lead { font-size: .9rem; }
    .hero-search .form-control { padding: 13px 12px; font-size: .88rem; }
    .hero-search .btn { min-width: 65px; padding: 12px 16px; font-size: .88rem; }
    .hero-section .btn-outline-light { font-size: .8rem; }
    .quick-discovery { padding-top: 26px; }
    .quick-discovery .row { --bs-gutter-x: 14px; }
    .quick-discovery h2 { font-size: 1.07rem; }
    .quick-discovery .small { font-size: .77rem; }
    .quick-discovery-card { grid-template-columns: 1fr; padding: 14px 12px; min-height: 80px; }
    .quick-discovery-card > i { display: none; }
    .quick-discovery-card strong { font-size: .87rem; }
    .quick-discovery-card span { font-size: .73rem; }
    .stat-card .card-body { padding: 4px 13px; }
    .stat-card .stat-number { font-size: 1.22rem; }
    .stat-card .stat-label { font-size: .75rem; }
    .category-card .card-body { grid-template-columns: 23px 1fr; padding: 16px 12px; gap: 4px 8px; }
    .category-card .category-icon { font-size: 1.2rem; }
    .category-card h6 { font-size: .86rem; margin-bottom: 0; }
    .category-card .text-muted, .category-card .type-split { font-size: .73rem; }
    .page-header { padding: 24px 0; }
    .page-header h1, .page-header h2 { font-size: 1.45rem; }
    .page-header--detail { padding: 24px 0 0; margin-bottom: 25px; }
    .page-header--detail h1 { font-size: 1.45rem; letter-spacing: -.45px; }
    .page-header--detail .place-sub { font-size: .85rem; }
    .facility-jump-nav { gap: 4px 18px; margin-top: 20px; }
    .facility-jump-nav a { font-size: .81rem; padding-block: 10px; }
    .detail-section { margin-bottom: 30px; }
    .detail-section .h4 { font-size: 1rem; padding-bottom: 12px; }
    .detail-table th { width: 94px; padding: 12px 10px; font-size: .82rem; }
    .detail-table td { padding: 12px 10px; font-size: .9rem; }
    .facility-actions__grid { grid-template-columns: 1fr; }
    .facility-card h5 { font-size: 1rem; }
    .recommend-section__title { flex-wrap: wrap; font-size: 1.04rem; }
}
@media (prefers-reduced-motion: reduce) {
    .quick-discovery-card, .category-card, .region-link, .facility-action, .recommend-card, .sido-hub-card, .guide-nav-card { transition: none; }
}
@media print {
    .hero-section, .page-header, .site-footer { background: #fff; }
    .facility-jump-nav, .share-bar { display: none; }
}
