/* FH050 city-service pages share the portal typography and color tokens. */
.city-banner,
.city-article-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #eaf3ef;
    border-block-end: 1px solid var(--line);
}

.city-banner::after,
.city-article-header::after {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 45%;
    content: "";
    pointer-events: none;
    background: repeating-radial-gradient(ellipse at 98% 125%, transparent 0 27px, #14556b12 28px 29px, transparent 30px 46px);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}

.city-banner-content {
    padding-block: clamp(17px, 2.15vw, 29px) clamp(24px, 3vw, 40px);
}

.city-article-intro {
    padding-block: clamp(16px, 1.8vw, 25px) clamp(23px, 2.25vw, 32px);
}

.city-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 0;
    padding-block-start: 12px;
    font-size: 14px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.city-trail > * + * {
    margin-inline-start: 11px;
    padding-inline-start: 11px;
    border-inline-start: 1px solid #9db8b3;
}

.city-trail a:hover,
.city-editorial-row a:hover,
.city-resource h2 a:hover {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: .22em;
}

.city-kicker {
    margin: 0 0 10px;
    color: var(--teal);
    font-weight: 750;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: .09em;
}

.city-banner h1,
.city-article-intro h1 {
    max-width: 23em;
    margin: 0;
    color: var(--navy);
    font-size: clamp(34px, 3.9vw, 54px);
    line-height: 1.12;
    letter-spacing: -.034em;
    font-weight: 760;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.city-banner-content .city-kicker,
.city-article-intro .city-kicker {
    margin-bottom: 7px;
}

.city-article-intro h1 {
    font-size: clamp(32px, 3.6vw, 50px);
}

.city-banner-intro,
.city-article-summary {
    max-width: 57em;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.6;
}

.city-banner-action {
    margin-top: 16px;
}

.city-collection,
.city-banner + .internal {
    padding-block: clamp(28px, 4vw, 54px) clamp(44px, 6vw, 78px);
    min-height: 235px;
}

.city-index-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding-block-end: 14px;
    border-block-end: 1px solid var(--line);
}

.city-index-count {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 10px;
    margin: 0;
    color: var(--navy);
    font-weight: 750;
    font-size: clamp(20px, 2vw, 24px);
}

.city-index-count span {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.city-index-links,
.city-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 9px;
}

.city-filters {
    margin-block: 17px 25px;
}

.city-index-links a,
.city-filters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--blue);
    font-weight: 650;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.city-index-links a:hover,
.city-filters a:hover {
    background: var(--mist);
    border-color: #b9d1cb;
}

.city-index-links a[aria-current],
.city-filters a[aria-current] {
    border-color: var(--teal);
    color: #fff;
    background: var(--teal);
}

.city-index-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 25px);
    margin-block-start: 24px;
}

.city-index-grid > * {
    grid-column: span 2;
}

.city-index-grid:has(> :nth-child(2):last-child) > *,
.city-index-grid:has(> :nth-child(4):last-child) > *,
.city-index-grid:has(> :nth-child(5):last-child) > :nth-child(-n+2) {
    grid-column: span 3;
}

.city-index-grid > :only-child {
    grid-column: 1 / -1;
}

.city-index-card {
    min-width: 0;
    min-height: 100%;
}

.city-index-card a {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    color: inherit;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    text-decoration: none;
    transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.city-index-card a:hover {
    border-color: #9dc3bb;
    box-shadow: 0 10px 26px #102f4210;
}

.city-card-photo {
    aspect-ratio: 16 / 9;
    background: var(--mist);
    overflow: hidden;
}

.city-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2,.65,.3,1);
}

.city-index-card a:hover img {
    transform: scale(1.035);
}

.city-card-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(16px, 2.25vw, 29px);
}

.city-card-text h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(21px, 2.1vw, 30px);
    line-height: 1.33;
    overflow-wrap: anywhere;
}

.city-card-summary {
    margin: 9px 0 16px;
    color: var(--muted);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.city-card-caption {
    margin-top: auto;
    padding-top: 8px;
    border-block-start: 1px solid var(--line);
    color: var(--blue);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
}

.city-featured-news {
    margin-block: 22px 6px;
}

.city-featured-news .city-index-card a,
.city-index-grid > .city-index-card:not(.city-index-card-text):only-child a {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
    background: var(--mist);
}

.city-featured-news .city-card-photo,
.city-index-grid > :only-child .city-card-photo {
    min-height: 100%;
    aspect-ratio: 2.2 / 1;
}

.city-featured-news .city-card-text,
.city-index-grid > :only-child .city-card-text {
    justify-content: center;
}

.city-featured-news .city-card-caption,
.city-index-grid > :only-child .city-card-caption {
    margin-top: 3px;
}

.city-entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.city-entry-meta span {
    color: var(--teal);
    font-weight: 750;
}

.city-editorial-list,
.city-resource-index {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.city-editorial-row,
.city-resource {
    padding: 19px 0;
    border-block-end: 1px solid var(--line);
}

.city-editorial-row h2,
.city-resource h2 {
    margin: 5px 0 0;
    color: var(--navy);
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.city-editorial-row h2 a,
.city-resource h2 a {
    color: inherit;
}

.city-editorial-row p,
.city-resource p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.city-resource {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px clamp(15px, 2vw, 27px);
}

.city-resource-mark {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    color: var(--teal);
    background: var(--mist);
    border-radius: 6px;
}

.city-resource-mark svg,
.city-tel svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.city-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    min-height: 45px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: var(--teal);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.city-button:hover {
    background: var(--blue);
    color: #fff;
}

.city-button-outline {
    color: var(--blue);
    border-color: #b8d0ca;
    background: var(--paper);
}

.city-button-outline:hover {
    color: var(--teal);
    background: var(--mist);
    border-color: var(--teal);
}

.city-empty {
    margin-block-start: 18px;
    padding: 20px;
    color: var(--muted);
    background: var(--mist);
    border: 1px solid var(--line);
}

.city-article-intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 14px 30px;
}

.city-article-intro > div {
    flex: 1 1 570px;
    min-width: 0;
}

.city-article-meta {
    margin-block-start: 9px;
}

.city-detail-news .city-article-header,
.city-detail-notice .city-article-header {
    background: #f6f9f8;
}

.city-detail-notice .city-article-intro h1,
.city-detail-news .city-article-intro h1,
.city-detail-download .city-article-intro h1 {
    font-size: clamp(30px, 3.4vw, 46px);
}

.city-detail-download .city-article-header {
    background: var(--navy);
    border-block-end-color: transparent;
}

.city-detail-download .city-article-header::after {
    background: repeating-radial-gradient(ellipse at 98% 125%, transparent 0 27px, #a8dad02a 28px 29px, transparent 30px 46px);
}

.city-detail-download .city-trail,
.city-detail-download .city-article-summary,
.city-detail-download .city-article-meta {
    color: #d9e7eb;
}

.city-detail-download .city-kicker {
    color: #a5e0d1;
}

.city-detail-download .city-trail a:hover {
    color: #b6eddf;
}

.city-detail-download .city-article-intro h1 {
    color: #fff;
}

.city-detail-download .city-download-cta {
    color: var(--navy);
    background: #e3f3ef;
}

.city-detail-download .city-download-cta:hover {
    background: #fff;
}

.city-article-frame {
    padding-block: clamp(26px, 4vw, 51px) clamp(35px, 5vw, 65px);
}

.city-article-frame-toc {
    display: grid;
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(20px, 4vw, 61px);
}

.city-article-frame:not(.city-article-frame-toc) .city-article-body {
    max-width: 910px;
    margin-inline: auto;
}

.city-toc {
    position: sticky;
    top: 110px;
    min-width: 0;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--mist);
}

.city-toc h2 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.35;
}

.city-toc ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding-inline-start: 1.3em;
    color: var(--teal);
    font-size: 14px;
}

.city-toc a {
    display: block;
    padding: 4px 0;
    color: var(--blue);
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.city-toc a:hover,
.city-next a:not(.city-button):hover {
    text-decoration: underline;
    text-underline-offset: .22em;
}

.city-article-body {
    min-width: 0;
}

.city-prose {
    max-width: 890px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.88;
    overflow-wrap: anywhere;
}

.city-prose > :first-child,
.city-contact-prose > :first-child {
    margin-top: 0;
}

.city-prose h2 {
    margin: 28px 0 11px;
    padding-inline-start: 12px;
    border-inline-start: 3px solid var(--teal);
    color: var(--navy);
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.35;
    scroll-margin-top: 105px;
}

.city-prose p,
.city-prose ul,
.city-prose ol {
    margin: 0 0 15px;
}

.city-prose ul,
.city-prose ol {
    padding-inline-start: 1.25em;
}

.city-prose li + li {
    margin-top: 5px;
}

.city-prose figure,
.city-contact-prose figure {
    margin: 20px 0 24px;
}

.city-prose figure img,
.city-contact-prose figure img {
    display: block;
    width: 100%;
    max-height: 480px;
    border-radius: 5px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.city-prose figcaption,
.city-contact-prose figcaption {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.city-next {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    margin-block-start: 28px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--teal);
    border-radius: 5px;
    background: var(--mist);
}

.city-next h2 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 19px;
}

.city-next a:not(.city-button) {
    color: var(--blue);
    font-size: 16px;
}

.city-related {
    padding-block: clamp(28px, 4vw, 48px);
    border-block: 1px solid var(--line);
    background: var(--mist);
}

.city-related ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.city-related ul:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.city-related ul:has(> :only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.city-related li a {
    display: block;
    height: 100%;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: var(--paper);
    overflow-wrap: anywhere;
}

.city-related li a:hover {
    border-color: #9dc3bb;
    color: var(--teal);
}

.city-related li .city-kicker {
    display: block;
    margin-bottom: 5px;
    letter-spacing: .04em;
}

.city-related li strong {
    display: block;
    font-size: 17px;
    line-height: 1.45;
}

.city-related li p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.city-contact {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
    align-items: start;
    gap: clamp(18px, 3.5vw, 50px);
    padding-block: clamp(28px, 4vw, 54px) clamp(45px, 6vw, 72px);
}

.city-contact-guide,
.city-contact-form {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(17px, 3vw, 35px);
    overflow-wrap: anywhere;
}

.city-contact-guide {
    background: var(--mist);
}

.city-contact-form {
    scroll-margin-top: 112px;
}

.city-contact-guide h2,
.city-contact-form h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(25px, 2.8vw, 34px);
    line-height: 1.26;
}

.city-contact-form-intro {
    margin: 8px 0 20px;
    color: var(--muted);
}

.city-contact-link {
    display: inline-block;
    margin-top: 7px;
    color: var(--blue);
}

.city-contact-address {
    margin: 7px 0;
    color: var(--muted);
}

.city-tel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 13px 0 5px;
    color: var(--blue);
    font-size: clamp(22px, 3.1vw, 34px);
    font-weight: 740;
    letter-spacing: .012em;
}

.city-contact-qr {
    margin: 18px 0 0;
}

.city-contact-qr img {
    display: block;
    width: min(100%, 164px);
    height: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.city-contact-qr figcaption {
    margin-block-start: 6px;
    color: var(--muted);
    font-size: 14px;
}

.city-contact-prose {
    margin-block-start: 20px;
    padding-block-start: 15px;
    border-block-start: 1px solid var(--line);
    line-height: 1.7;
}

.city-contact-prose h2 {
    margin: 18px 0 5px;
    font-size: 18px;
}

.city-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.city-form-grid label {
    display: grid;
    gap: 6px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 650;
}

.city-form-grid input,
.city-form-grid textarea {
    width: 100%;
    min-width: 0;
    min-height: 45px;
    padding: 9px 10px;
    border: 1px solid #bcd0cb;
    border-radius: 5px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
    font-weight: 400;
}

.city-form-grid textarea {
    resize: vertical;
}

.city-field-wide {
    grid-column: 1 / -1;
}

.city-form-consent {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: 14px 0 18px;
    color: var(--muted);
    font-size: 16px;
}

.city-form-consent input {
    margin: 0 6px 0 0;
    accent-color: var(--teal);
}

.city-form-consent a {
    color: var(--blue);
    text-decoration: underline;
}

.city-form-feedback {
    padding: 11px 13px;
    margin-block: 10px 16px;
    border-inline-start: 3px solid;
    color: #14583e;
    background: #edf7f1;
}

.city-form-error {
    color: #8b3029;
    background: #fff3f1;
}

@media (max-width: 880px) {
    .city-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .city-index-grid > *,
    .city-index-grid:has(> :nth-child(2):last-child) > *,
    .city-index-grid:has(> :nth-child(4):last-child) > *,
    .city-index-grid:has(> :nth-child(5):last-child) > :nth-child(-n+2) {
        grid-column: auto;
    }
    .city-article-frame-toc {
        grid-template-columns: minmax(155px, .36fr) minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .city-banner-content,
    .city-article-intro {
        padding-block: 16px 22px;
    }
    .city-index-grid,
    .city-article-frame-toc,
    .city-contact,
    .city-related ul,
    .city-related ul:has(> :nth-child(2):last-child) {
        grid-template-columns: minmax(0, 1fr);
    }
    .city-index-grid {
        margin-block-start: 15px;
    }
    .city-featured-news .city-index-card a,
    .city-index-grid > .city-index-card:not(.city-index-card-text):only-child a {
        display: flex;
    }
    .city-featured-news .city-card-photo,
    .city-index-grid > :only-child .city-card-photo {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .city-resource {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }
    .city-resource-mark {
        display: none;
    }
    .city-resource .city-button {
        padding-inline: 9px;
    }
    .city-toc {
        position: static;
    }
    .city-toc ol {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 127px), 1fr));
        column-gap: 18px;
    }
    .city-prose {
        font-size: 16px;
        line-height: 1.8;
    }
    .city-prose h2 {
        scroll-margin-top: 80px;
    }
    .city-contact,
    .city-form-grid {
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .city-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .city-index-card a,
    .city-card-photo img,
    .city-button {
        transition: none;
    }
    .city-index-card a:hover img {
        transform: none;
    }
}

