:root {
    --container: 1240px;
    --primary: #0b66d9;
    --primary-hover: #075fd1;
    --primary-soft: #eaf4ff;
    --navy-950: #092451;
    --navy-900: #0f2b5a;
    --navy-700: #355279;
    --text: #17345e;
    --muted: #536a87;
    --border: #dce8f5;
    --border-strong: #c7dbef;
    --control-border: #7b93ac;
    --surface: #ffffff;
    --surface-soft: #f6faff;
    --surface-blue: #edf6ff;
    --success: #198754;
    --warning: #a36606;
    --danger: #b32d2e;
    --surface-success: #eef9f2;
    --surface-warning: #fff8e9;
    --surface-danger: #fff6f6;
    --focus: #0b66d9;
    --radius-control: 8px;
    --radius-card: 10px;
    --radius-panel: 14px;
    --control-height: 46px;
    --touch-target: 44px;
    --shadow-float: 0 14px 36px rgba(15, 43, 90, .10);
    --shadow-hover: 0 8px 22px rgba(15, 43, 90, .08);
    --shadow-popover: 0 16px 36px rgba(15, 43, 90, .13);
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}
body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font: 400 16px/1.6 "Segoe UI", Arial, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}
img, svg {
    max-width: 100%;
}
button, input, select, textarea {
    font: inherit;
}
button {
    color: inherit;
}
.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 14px;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--navy-950);
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.site-header__inner {
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(220px, auto) 1fr auto;
    align-items: center;
    gap: 28px;
}
.site-header__brand {
    min-width: 0;
}
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}
.site-brand__mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.site-brand__mark svg {
    width: 32px;
    height: 32px;
}
.site-brand__text {
    display: grid;
    line-height: 1.06;
    min-width: 0;
}
.site-brand__text strong {
    color: var(--navy-950);
    font-size: 1.1rem;
    letter-spacing: -.02em;
}
.site-brand__text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: .68rem;
    white-space: nowrap;
}
.site-nav {
    justify-self: center;
}
.site-nav__list, .site-footer__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}
.site-nav li {
    position: relative;
}
.site-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 72px;
    color: var(--navy-700);
    font-size: .91rem;
    font-weight: 600;
}
.site-nav a:hover {
    color: var(--primary);
}
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.home .site-nav li:first-child > a {
    color: var(--primary);
}
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after,
.home .site-nav li:first-child > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-search-link {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    transition: border-color .18s ease, background .18s ease;
}
.header-search-link:hover {
    border-color: #b6d5fb;
    background: var(--primary-soft);
}
.header-search-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.site-header__toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-control);
    width: 44px;
    height: 44px;
    padding: 0;
}
.site-header__toggle-lines {
    width: 19px;
    display: grid;
    gap: 4px;
}
.site-header__toggle-lines i {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--navy-900);
}
.hero {
    position: relative;
    min-height: 0;
    display: grid;
    align-items: center;
    overflow: clip;
    isolation: isolate;
    border-bottom: 1px solid var(--border);
    background: #f3f8fe;
}
.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -150px;
    right: -110px;
    width: 420px;
    height: 420px;
    border: 1px solid #d8e9fa;
    border-radius: 50%;
    background: #eaf4ff;
}
.hero__inner {
    position: relative;
    padding-block: 58px 56px;
}
.hero__content {
    width: 100%;
    min-width: 0;
}
/* Homepage visual composition */
.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 48px;
}
.hero--home h1 {
    max-width: 720px;
    margin-bottom: 14px;
    font-size: clamp(2.6rem, 4.5vw, 3.85rem);
    letter-spacing: -.052em;
}
.home-hero-guide {
    position: relative;
    padding: 22px;
    border: 1px solid #cfe0f1;
    border-radius: var(--radius-panel);
    background: rgba(255,255,255,.88);
    box-shadow: 0 12px 30px rgba(15,43,90,.06);
}
.home-hero-guide__eyebrow {
    margin: 0 0 4px;
    color: var(--primary);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.home-hero-guide__title {
    display: block;
    margin: 0 0 16px;
    color: var(--navy-950);
    font-size: 1.14rem;
    line-height: 1.35;
}
.home-hero-guide__steps {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-hero-guide__steps li {
    display: grid;
    grid-template-columns: 30px minmax(0,1fr);
    align-items: start;
    gap: 10px;
}
.home-hero-guide__steps li > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid #c4dcf5;
    border-radius: 8px;
    background: var(--surface-blue);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
}
.home-hero-guide__steps li > div {
    display: grid;
    gap: 2px;
}
.home-hero-guide__steps strong {
    color: var(--navy-900);
    font-size: .86rem;
}
.home-hero-guide__steps small {
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.45;
}
.home-hero-guide > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 17px;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
}
.home-hero-guide > a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: .86rem;
    letter-spacing: .01em;
}
.hero__kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.eyebrow {
    color: var(--primary);
    font-weight: 700;
    margin: 0 0 6px;
}
h1, h2, h3 {
    color: var(--navy-950);
    line-height: 1.18;
    margin-top: 0;
}
h1 {
    max-width: 768px;
    font-size: clamp(2.35rem, 4.2vw, 3.45rem);
    letter-spacing: -.045em;
    margin-bottom: 14px;
}
h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    letter-spacing: -.025em;
}
h3 {
    font-size: 1rem;
}
.hero__lead {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--navy-700);
    font-size: 1.06rem;
    line-height: 1.65;
}
.hero__search-wrap {
    max-width: 790px;
}
.postal-search {
    position: relative;
    max-width: 100%;
}
.postal-search__field {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--control-border);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15,43,90,.08);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.postal-search__field:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(30,111,190,.12), 0 10px 28px rgba(15,43,90,.08);
}
.postal-search__icon {
    width: 42px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--primary);
}
.postal-search__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.postal-search input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 1rem;
}
.postal-search input::-webkit-search-cancel-button {
    display: none;
}
.postal-search input::placeholder {
    color: var(--muted);
    opacity: 1;
}
.button {
    min-height: var(--control-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: var(--radius-control);
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.button--primary {
    color: #fff;
    background: var(--primary);
}
.button--primary:hover {
    background: var(--primary-hover);
}
.button--outline {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--surface);
}
.button--outline:hover {
    background: var(--primary-soft);
}
.postal-search__submit {
    min-width: 132px;
    min-height: 50px;
    padding-inline: 22px;
}
.postal-search__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: var(--postal-results-max-height, min(440px, 62vh));
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-popover);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.postal-search__results.is-above {
    top: auto;
    bottom: calc(100% + 8px);
}
.postal-result {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    color: inherit;
}
.postal-result:last-child {
    border-bottom: 0;
}
.postal-result:hover,
.postal-result[aria-selected="true"],
.postal-result:focus-visible {
    background: var(--surface-blue);
    outline: 0;
}
.postal-result__content {
    display: grid;
    min-width: 0;
    gap: 5px;
}
.postal-result__title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}
.postal-result__title-row strong {
    min-width: 0;
    color: var(--navy-950);
    font-size: .98rem;
    line-height: 1.35;
}
.postal-result__postal {
    flex: 0 0 auto;
    color: var(--navy-800);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}
.postal-result__context {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.4;
}
.postal-result__detail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 9px;
    min-width: 0;
}
.postal-result__state {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--navy-700);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.25;
}
.postal-result__state--verified {
    border-color: #b9ddc2;
    background: #f2faf4;
    color: #246435;
}
.postal-result__state--review {
    border-color: #ead4a3;
    background: #fffaf0;
    color: #75551a;
}
.postal-result__state--missing {
    border-color: #dfc7c7;
    background: #fff7f7;
    color: #7b3939;
}
.postal-result__state--directory {
    border-color: #c7dbf4;
    background: #f3f8fe;
    color: #225b95;
}
.postal-result__match {
    min-width: 0;
    color: var(--primary);
    font-size: .78rem;
    line-height: 1.35;
}
.postal-result__arrow {
    color: var(--primary);
    font-size: 1.1rem;
}
.postal-result__group-label {
    padding: 8px 14px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #f7f9fc;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.quick-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
    color: var(--navy-700);
    font-size: .84rem;
}
.quick-links__label {
    margin-right: 2px;
    color: var(--muted);
    font-weight: 600;
}
.quick-links button {
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid #d5e4f2;
    border-radius: 8px;
    background: rgba(255,255,255,.74);
    color: var(--navy-700);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.quick-links button:hover {
    border-color: #a9caf2;
    background: var(--surface);
    color: var(--primary);
}
.section {
    padding-block: var(--space-16);
}
.section--compact {
    padding-block: var(--space-10);
}
.section--province {
    padding-block: 60px 64px;
    background: var(--surface);
}
.section-heading {
    margin-bottom: 22px;
}
.section-heading p {
    margin-bottom: 0;
    color: var(--muted);
}
.section-heading--split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}
.notice-card {
    padding: 18px;
    border: 1px dashed #aacdf9;
    border-radius: var(--radius-card);
    background: var(--surface-blue);
}
.notice-card p {
    margin-bottom: 0;
    color: var(--muted);
}
.home-trust {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #f8fbff;
}
.home-trust__heading {
    max-width: 760px;
    margin-bottom: 24px;
}
.home-trust__heading h2,
.home-related__heading h2 {
    margin-bottom: 8px;
}
.home-trust__heading > p:last-child,
.home-related__heading > p:last-child {
    margin: 0;
    color: var(--muted);
}
.home-info-section {
    background: var(--surface);
}
.home-related {
    border-top: 1px solid var(--border);
    background: #fbfdff;
}
.home-related__heading {
    max-width: 760px;
    margin-bottom: 22px;
}
.home-dataset-alert {
    padding-block: 18px 0;
    background: var(--surface);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.feature-card {
    min-height: 126px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px 18px;
    border: 0;
    border-right: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}
.feature-card__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid #d5e6f7;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--surface);
    color: var(--primary);
}
.feature-card__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.feature-card h3 {
    margin-bottom: 4px;
}
.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
}
.feature-card:last-child {
    border-right: 0;
}
.info-panel {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) 1.28fr;
    overflow: hidden;
    border: 1px solid #d3e3f3;
    border-radius: var(--radius-panel);
    background: var(--surface);
}
.info-panel__visual {
    min-height: 250px;
    display: grid;
    place-items: center;
    padding: 34px;
    border-right: 1px solid #dbe8f5;
    background: #eef6ff;
    color: var(--primary);
}
.info-panel__visual svg {
    width: min(190px, 72%);
    height: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.info-panel__content {
    display: grid;
    align-content: center;
    justify-items: start;
    padding: 40px;
}
.info-panel__content p:not(.eyebrow) {
    max-width: 768px;
    margin-top: 0;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.related-card {
    min-height: 92px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    transition: border-color .18s ease, background .18s ease;
}
.related-card:hover {
    border-color: #b9d7fb;
    background: #fbfdff;
}
.related-card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
}
.related-card__icon svg, .related-card__arrow svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.related-card__body {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.related-card__body strong {
    color: var(--navy-950);
    font-size: .92rem;
    line-height: 1.3;
}
.related-card__body small {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.4;
}
.related-card__arrow {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: var(--primary);
}
.site-footer {
    padding-block: 34px 26px;
    border-top: 1px solid var(--border);
    background: #f7faff;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 26px 42px;
}
.site-footer__brand > p {
    max-width: 430px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.55;
}
.site-footer__navigation {
    justify-self: end;
    align-self: center;
    min-width: 0;
}
.site-footer__nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 22px;
}
.site-footer__nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--navy-700);
    font-size: .88rem;
    font-weight: 600;
}
.site-footer__nav a:hover {
    color: var(--primary);
}
.site-footer__meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.site-footer__copyright {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    white-space: nowrap;
}
.site-footer__source {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px 16px;
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    text-align: right;
}
.site-footer__source strong {
    color: var(--navy-700);
    font-weight: 650;
}
.content-layout {
    max-width: 860px;
}
/*Search states and result surfaces*/
.postal-search__message {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--navy-700);
}
.postal-search__message > span:not(.postal-search__spinner) {
    display: grid;
    min-width: 0;
}
.postal-search__message strong {
    color: var(--navy-950);
    font-size: .94rem;
}
.postal-search__message small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
}
.postal-search__message button {
    margin-left: auto;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}
.postal-search__message button:hover {
    background: var(--primary-soft);
}
.postal-search__spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 2px solid #cfe3fb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: mbc-spin .7s linear infinite;
}
@keyframes mbc-spin {
    to {
        transform: rotate(360deg);
    }
}
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: .88rem;
}
.breadcrumbs a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.search-page, .location-page {
    background: var(--surface-soft);
}
.search-page__inner, .location-page__inner {
    padding-block: 38px 64px;
}
.search-page__heading {
    max-width: 768px;
}
.search-page__heading h1 {
    max-width: 768px;
    margin-bottom: 10px;
    font-size: clamp(2rem, 4vw, 3.15rem);
}
.search-page__heading > p:last-child {
    max-width: 768px;
    margin: 0;
    color: var(--muted);
}
.search-page__form {
    max-width: 900px;
    margin-top: 24px;
}
.search-state {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
}
.search-state h2 {
    margin-bottom: 7px;
    font-size: 1.3rem;
}
.search-state p {
    max-width: 768px;
    margin: 0;
    color: var(--muted);
}
.search-state .button {
    margin-top: 18px;
}
.search-state--intro {
    background: var(--surface-blue);
    border-color: #cfe3fb;
}
.search-results-page {
    margin-top: 38px;
}
.search-results-page__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}
.search-results-page__header h2 {
    margin-bottom: 0;
}
.search-results-page__header > p {
    max-width: 390px;
    margin: 0;
    color: var(--muted);
    text-align: right;
}
.search-result-list {
    display: grid;
    gap: 10px;
}
.search-recovery-card {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto 34px;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 12px 14px;
    border: 1px dashed #bfd3e8;
    border-radius: var(--radius-card);
    background: #fbfdff;
    color: inherit;
    text-decoration: none;
}
.search-recovery-card:hover,
.search-recovery-card:focus-visible {
    border-color: var(--primary);
    background: var(--surface-blue);
}
.search-recovery-card__main {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.search-recovery-card__main strong {
    color: var(--navy-950);
    font-size: .96rem;
}
.search-recovery-card__main span {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.4;
}
.search-recovery-card__code {
    display: grid;
    min-width: 104px;
    text-align: right;
}
.search-recovery-card__code small {
    color: var(--muted);
    font-size: .7rem;
}
.search-recovery-card__code strong {
    margin-top: 2px;
    color: var(--navy-900);
    font-size: 1rem;
}
.search-recovery-card__arrow {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
}
.search-result-card {
    display: grid;
    grid-template-columns: minmax(0,1fr) 176px;
    align-items: stretch;
    min-height: 94px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.search-result-card:hover,
.search-result-card:focus-within {
    border-color: #b9d7fb;
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}
.search-result-card__link {
    display: grid;
    grid-template-columns: minmax(0,1fr) 34px;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 15px 16px 15px 18px;
    color: inherit;
    text-decoration: none;
}
.search-result-card__link:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
}
.search-result-card__main {
    display: grid;
    min-width: 0;
    gap: 4px;
}
.search-result-card__main > strong {
    color: var(--navy-950);
    font-size: 1.03rem;
    line-height: 1.35;
}
.search-result-card__context {
    color: var(--navy-700);
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.4;
}
.search-result-card__matches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}
.search-result-card__matches > span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 7px;
    border: 1px solid #cfe0f3;
    border-radius: 6px;
    background: #f6f9fd;
    color: var(--navy-700);
    font-size: .73rem;
    line-height: 1.25;
}
.search-result-card__code {
    display: grid;
    align-content: center;
    justify-items: end;
    min-width: 0;
    padding: 13px 15px;
    border-left: 1px solid var(--border);
    background: #fbfdff;
    text-align: right;
    line-height: 1.2;
}
.search-result-card__code small {
    color: var(--muted);
    font-size: .72rem;
}
.search-result-card__code > strong {
    margin-top: 3px;
    color: var(--navy-950);
    font-size: 1.28rem;
    letter-spacing: .035em;
}
.search-result-card__state {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-top: 5px;
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--navy-700);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.2;
}
.search-result-card__state--verified {
    border-color: #b9ddc2;
    background: #f2faf4;
    color: #246435;
}
.search-result-card__state--needs-review {
    border-color: #ead4a3;
    background: #fffaf0;
    color: #75551a;
}
.search-result-card__state--missing-code {
    border-color: #dfc7c7;
    background: #fff7f7;
    color: #7b3939;
}
.search-result-card__state--directory {
    border-color: #c7dbf4;
    background: #f3f8fe;
    color: #225b95;
}
.search-result-card__copy {
    min-height: 44px;
    margin-top: 8px;
    padding: 0 10px;
    border: 1px solid var(--primary);
    border-radius: 7px;
    background: var(--surface);
    color: var(--primary);
    font: inherit;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
}
.search-result-card__copy:hover,
.search-result-card__copy:focus-visible {
    background: var(--primary-soft);
}
.search-result-card__copy.is-copied {
    border-color: #9fcfab;
    background: #f2faf4;
    color: #246435;
}
.search-result-card__arrow {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
}
.search-provinces {
    margin-top: 54px;
    padding-top: 42px;
    border-top: 1px solid var(--border);
}
.province-grid--compact .province-card {
    min-height: 90px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 14px 12px;
    border: 1px solid #d8e6f3;
    border-radius: var(--radius-card);
    background: var(--surface);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.location-hero {
    display: grid;
    grid-template-columns: minmax(0,1fr) 310px;
    align-items: stretch;
    gap: 24px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
}

.location-hero--locality {
    grid-template-columns: minmax(0,1fr) minmax(330px,390px);
    align-items: stretch;
    padding: 28px 30px;
    background: var(--surface);
}
.location-hero--locality .location-hero__content {
    padding-block: 6px;
}
.location-hero--locality .location-hero__content > p:not(.eyebrow) {
    max-width: 700px;
    font-size: .94rem;
    line-height: 1.65;
}
.location-hero--province {
    grid-template-columns: minmax(0,1fr) 330px;
}
.location-hero h1 {
    max-width: 790px;
    margin-bottom: 9px;
    font-size: clamp(2rem, 4.2vw, 3.35rem);
}
.location-hero p {
    margin: 0;
    color: var(--muted);
}
.province-overview-panel {
    display: grid;
    align-content: center;
    gap: 11px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #cfe3fb;
    border-radius: var(--radius-card);
    background: var(--surface-blue);
}
.province-overview-panel__label {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.province-overview-panel__score {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.province-overview-panel__score strong {
    color: var(--navy-950);
    font-size: 2.2rem;
    line-height: 1;
}
.province-overview-panel__score span {
    color: var(--navy-700);
    font-size: .78rem;
    line-height: 1.35;
}
.province-overview-panel__meter {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #dcecff;
    appearance: none;
}
.province-overview-panel__meter::-webkit-progress-bar {
    border-radius: 999px;
    background: #dcecff;
}
.province-overview-panel__meter::-webkit-progress-value,
.province-overview-panel__meter::-moz-progress-bar {
    border-radius: 999px;
    background: var(--primary);
}
.province-overview-panel__meta {
    display: grid;
    gap: 7px;
    margin: 2px 0 0;
}
.province-overview-panel__meta div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 7px;
    border-top: 1px solid rgba(13,115,246,.12);
}
.province-overview-panel__meta dt {
    color: var(--muted);
    font-size: .72rem;
}
.province-overview-panel__meta dd {
    margin: 0;
    color: var(--navy-950);
    font-size: .75rem;
    font-weight: 700;
    text-align: right;
}
.postal-code-panel {
    display: grid;
    align-content: center;
    min-height: 236px;
    gap: 10px;
    padding: 22px;
    border: 1px solid #cfe3fb;
    border-radius: var(--radius-panel);
    background: var(--surface-blue);
    text-align: left;
}
.postal-code-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.postal-code-panel__top > span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.postal-code-panel__state {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #b9dfca;
    border-radius: 999px;
    background: #f2fbf6;
    color: #17603a;
    font-size: .7rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}
.postal-code-panel__state--missing-code,
.postal-code-panel__state--missing-source,
.postal-code-panel__state--source-unverified {
    border-color: #ead29b;
    background: #fffaf0;
    color: #8b5b08;
}
.postal-code-panel > strong {
    margin: 2px 0 0;
    color: var(--navy-950);
    font-size: clamp(2.75rem, 5vw, 4rem);
    line-height: .95;
    letter-spacing: .045em;
}
.postal-code-panel__place {
    margin: 0;
    color: var(--navy-700);
    font-size: .86rem;
    font-weight: 650;
    line-height: 1.45;
}
.postal-code-panel > small {
    min-height: 19px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 500;
    line-height: 1.45;
}
.postal-code-panel__report {
    justify-self: start;
    min-height: 44px;
}
.location-children {
    margin-top: 44px;
}
.location-child-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
}
.location-child-card {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(132px,170px) 132px 28px;
    align-items: center;
    gap: 16px;
    min-height: 66px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.location-child-card:hover {
    border-color: #b9d7fb;
    background: #fbfdff;
    box-shadow: 0 4px 14px rgba(18,54,89,.06);
}
.location-child-card > span {
    display: grid;
    min-width: 0;
}
.location-child-card strong {
    color: var(--navy-950);
    line-height: 1.35;
}
.location-child-card small {
    color: var(--muted);
    font-size: .75rem;
}
.location-child-card b {
    color: var(--primary);
}
.location-search-again {
    max-width: 900px;
    margin-top: 48px;
    padding-top: 38px;
    border-top: 1px solid var(--border);
}
.location-search-again h2 {
    font-size: 1.4rem;
}
/*Province directory*/
.section-heading--province {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 32px;
    margin-bottom: 24px;
}
.section-heading--province .section-heading__content {
    max-width: 780px;
}
.section-heading--province h2 {
    margin-bottom: 8px;
}
.section-heading--province p:last-child {
    margin: 0;
}
.province-coverage {
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    background: var(--surface-soft);
}
.province-coverage__dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #d08b16;
    box-shadow: 0 0 0 4px rgba(208,139,22,.10);
}
.province-coverage[data-state="complete"] .province-coverage__dot {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(25,135,84,.10);
}
.province-coverage[data-state="empty"] .province-coverage__dot {
    background: #8294aa;
    box-shadow: 0 0 0 4px rgba(130,148,170,.10);
}
.province-coverage__text {
    display: grid;
    line-height: 1.18;
}
.province-coverage__text strong {
    color: var(--navy-950);
    font-size: .98rem;
}
.province-coverage__text small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .73rem;
}
.province-directory__toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    align-items: center;
    gap: 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--border);
    background: transparent;
}
.province-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}
.province-tab {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f5f8fc;
    color: var(--navy-700);
    font-weight: 650;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.province-tab:hover {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--primary);
}
.province-tab.is-active {
    border-color: #b9d5f5;
    background: var(--surface-blue);
    color: var(--primary);
}
.province-tab b {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    padding-inline: 6px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .74rem;
    line-height: 1;
}
.province-tab.is-active b {
    background: var(--primary);
    color: #fff;
}
.province-filter {
    min-height: 44px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 0 7px 0 11px;
    border: 1px solid var(--control-border);
    border-radius: var(--radius-control);
    background: var(--surface);
}
.province-filter:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(13,115,246,.10);
}
.province-filter__icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #7188a6;
}
.province-filter input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
}
.province-filter input:focus-visible {
    outline: 0;
}
.province-filter__clear {
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    background: var(--surface-blue);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}
.province-filter__clear:hover {
    background: #dceeff;
}
.province-directory__meta {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 2px 11px;
    color: var(--muted);
    font-size: .81rem;
}
.province-directory__meta p {
    margin: 0;
}
.province-directory__meta p:first-child {
    color: var(--navy-700);
    font-weight: 650;
}
.province-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.province-card {
    min-height: 84px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 13px 12px;
    border: 1px solid #d8e6f3;
    border-radius: var(--radius-card);
    background: var(--surface);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.province-card:hover {
    border-color: #a9caf2;
    background: #fbfdff;
    box-shadow: 0 7px 18px rgba(15,43,90,.07);
    transform: translateY(-1px);
}
.province-card[hidden] {
    display: none !important;
}
.province-card__pin {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--surface-blue);
    color: var(--primary);
}
.province-card__pin svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.province-card__body {
    display: grid;
    min-width: 0;
    gap: 1px;
}
.province-card__body strong {
    overflow: hidden;
    display: -webkit-box;
    color: var(--navy-950);
    font-size: .93rem;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.province-card__body small {
    overflow: hidden;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.province-card__coverage {
    margin-top: 3px;
    color: var(--warning);
    font-size: .7rem;
    font-weight: 650;
}
.province-card__arrow {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #5d86b8;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.province-card__arrow svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.province-card:hover .province-card__arrow {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateX(2px);
}
.province-filter__empty {
    display: grid;
    justify-items: center;
    gap: 3px;
    margin-top: 12px;
    padding: 28px 18px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-card);
    background: var(--surface-soft);
    text-align: center;
}
.province-filter__empty[hidden] {
    display: none !important;
}
.province-filter__empty strong {
    color: var(--navy-950);
}
.province-filter__empty span {
    color: var(--muted);
    font-size: .88rem;
}
.notice-card--data {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 20px;
    border-style: solid;
}
.notice-card__icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid #bcd8fa;
    color: var(--primary);
    font-weight: 800;
}
.notice-card--data strong {
    color: var(--navy-950);
}
.notice-card--data p {
    margin-top: 4px;
}
/*Province and locality detail*/
.location-hero__content {
    display: grid;
    align-content: center;
    min-width: 0;
}
.location-hero__content > p:not(.eyebrow) {
    max-width: 768px;
}
.location-aliases {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
    color: var(--muted);
    font-size: .82rem;
}
.location-aliases > span {
    margin-right: 2px;
}
.location-aliases b {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--navy-700);
    font-size: .76rem;
    font-weight: 650;
}
.postal-code-panel--missing {
    border-color: var(--border);
    background: var(--surface-soft);
}
.postal-code-panel--missing > strong {
    color: #7e91a8;
}
.postal-code-panel__actions {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) repeat(2,minmax(0,.8fr));
    gap: 7px;
    margin-top: 2px;
}
.copy-code-button {
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #b7d5f8;
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}
.copy-code-button--primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
.copy-code-button:hover {
    background: #f7fbff;
    border-color: #94c1f7;
}
.copy-code-button--primary:hover {
    border-color: var(--primary-hover);
    background: var(--primary-hover);
    color: #fff;
}
.copy-code-button.is-copied {
    border-color: #b9dfca;
    background: #f2fbf6;
    color: var(--success);
}
.province-stat-strip {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.province-stat {
    position: relative;
    min-height: 78px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 14px 17px;
    border-right: 1px solid var(--border);
}
.province-stat:last-child {
    border-right: 0;
}
.province-stat::before {
    content: "";
    position: absolute;
    inset: 13px auto 13px 0;
    width: 3px;
    border-radius: 3px;
    background: var(--border-strong);
}
.province-stat--verified::before {
    background: var(--success);
}
.province-stat--review::before {
    background: #d08a16;
}
.province-stat--missing::before {
    background: #9aaabc;
}
.province-stat span {
    color: var(--muted);
    font-size: .74rem;
}
.province-stat strong {
    color: var(--navy-950);
    font-size: 1.35rem;
    line-height: 1.15;
}
.location-directory {
    margin-top: 28px;
}
.location-directory--province {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
}
.location-directory__top {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(300px,360px);
    align-items: end;
    gap: 28px;
    padding: 22px 22px 18px;
}
.location-directory__intro {
    max-width: 760px;
}
.location-directory__intro h2 {
    margin-bottom: 6px;
}
.location-directory__intro p:last-child {
    margin: 0;
    color: var(--muted);
}
.locality-filter {
    display: grid;
    gap: 6px;
    width: 100%;
}
.locality-filter > label {
    color: var(--navy-900);
    font-size: .76rem;
    font-weight: 700;
}
.locality-filter > small {
    color: var(--muted);
    font-size: .7rem;
}
.locality-filter__control {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) auto;
    align-items: center;
    min-height: 46px;
    padding: 4px 5px 4px 7px;
    border: 1px solid var(--control-border);
    border-radius: var(--radius-control);
    background: var(--surface);
}
.locality-filter__control:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(13,115,246,.10);
}
.locality-filter__control > svg {
    width: 19px;
    height: 19px;
    justify-self: center;
    color: var(--muted);
}
.locality-filter input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 6px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}
.locality-filter__control button {
    min-height: 44px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
}
.locality-filter__control button:hover {
    background: var(--primary-soft);
}
.locality-toolbar {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 14px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}
.locality-status-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
.locality-status-tabs button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--navy-700);
    font-size: .78rem;
    font-weight: 650;
    cursor: pointer;
}
.locality-status-tabs button:hover {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--primary);
}
.locality-status-tabs button.is-active {
    border-color: #c6defb;
    background: var(--surface);
    color: var(--primary);
}
.locality-status-tabs button span {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding-inline: 5px;
    border-radius: 11px;
    background: var(--primary-soft);
    font-size: .68rem;
}
.locality-result-summary {
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
    white-space: nowrap;
}
.location-directory__columns {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(132px,170px) 132px 28px;
    gap: 16px;
    padding: 10px 15px 7px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .025em;
    text-transform: uppercase;
}
.location-directory__columns span:nth-child(3) {
    text-align: right;
}
.location-child-grid--directory {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 0 10px 12px;
}
.location-child-card[hidden] {
    display: none !important;
}
.location-child-card__main {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.location-child-card__main small {
    color: var(--muted);
    font-size: .7rem;
}
.location-child-card__status {
    width: fit-content;
    margin: 0;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: .66rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
}
.location-child-card__status--verified {
    background: var(--surface-success);
    color: var(--success);
}
.location-child-card__status--unverified-code {
    background: var(--surface-warning);
    color: #9a6200;
}
.location-child-card__status--missing-code {
    background: var(--surface-soft);
    color: var(--muted);
}
.location-child-card__code {
    display: grid;
    min-width: 0;
    text-align: right;
    line-height: 1.15;
}
.location-child-card__code small {
    display: none;
}
.location-child-card__code b {
    color: var(--primary);
    font-size: .94rem;
    letter-spacing: .02em;
}
.location-child-card__arrow {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
}
.location-child-card__arrow svg {
    width: 16px;
    height: 16px;
}
.locality-empty {
    display: grid;
    justify-items: center;
    gap: 5px;
    margin: 0 10px 12px;
    padding: 26px 18px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-card);
    background: var(--surface-soft);
    text-align: center;
}
.locality-empty[hidden] {
    display: none !important;
}
.locality-empty strong {
    color: var(--navy-950);
}
.locality-empty span {
    color: var(--muted);
    font-size: .84rem;
}
.locality-empty .button {
    margin-top: 8px;
}
.location-data-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 36px;
    padding: 24px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-panel);
    background: var(--surface);
}
.location-data-empty > div {
    max-width: 780px;
}
.location-data-empty h2 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}
.location-data-empty p:last-child {
    margin: 0;
    color: var(--muted);
}
.location-data-empty .button {
    flex: 0 0 auto;
}

.location-source {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.location-source > div {
    display: grid;
    align-content: center;
    gap: 3px;
    min-height: 72px;
    padding: 12px 15px;
    border-right: 1px solid var(--border);
}
.location-source > div:nth-of-type(3n) {
    border-right: 0;
}
.location-source > div:nth-of-type(-n+3) {
    border-bottom: 1px solid var(--border);
}
.location-source span {
    color: var(--muted);
    font-size: .7rem;
}
.location-source strong {
    overflow: hidden;
    color: var(--navy-700);
    font-size: .82rem;
    font-weight: 650;
    text-overflow: ellipsis;
}
.location-source__link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}
.location-source__link:only-of-type {
    grid-column: 1 / -1;
    border-left: 0;
}
.location-source__link:first-of-type:not(:only-of-type) {
    grid-column: 1 / 3;
}
.location-source__link:last-of-type:not(:only-of-type) {
    grid-column: 3 / -1;
    border-left: 1px solid var(--border);
}
.location-search-again > p {
    margin: -5px 0 16px;
    color: var(--muted);
    font-size: .88rem;
}
/*Homepage support primitives*/
/*Related data and internal navigation*/

.lookup-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
}
.lookup-facts > div {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 15px 17px;
    border-right: 1px solid var(--border);
}
.lookup-facts > div:nth-child(4n) {
    border-right: 0;
}
.lookup-facts dt {
    color: var(--muted);
    font-size: .72rem;
}
.lookup-facts dd {
    margin: 0;
    color: var(--navy-950);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
}
.lookup-facts__highlight {
    background: var(--surface-blue);
}
.lookup-facts__postal {
    color: var(--primary);
    font-size: 1.22rem;
    letter-spacing: .025em;
}
.lookup-facts .lookup-facts__wide {
    grid-column: 1 / -1;
    min-height: 72px;
    border-top: 1px solid var(--border);
    border-right: 0;
}
.lookup-facts__wide dd {
    font-size: .86rem;
    font-weight: 600;
}

.related-directory {
    margin-top: 36px;
}
.related-directory .section-heading {
    align-items: end;
    margin-bottom: 14px;
}
.related-directory .section-heading > a {
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}
.related-directory .section-heading > a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.related-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 9px;
}
.related-link-card {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--navy-700);
}
.related-link-card:hover {
    border-color: #aacdf6;
    background: #fbfdff;
    color: var(--primary);
}
.related-link-card > span {
    min-width: 0;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.35;
}
.related-link-card > span strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.related-link-card > span small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 500;
}
.related-link-card > b {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: .82rem;
}
.related-link-grid--postal .related-link-card > b {
    min-width: 48px;
    text-align: right;
    font-size: .9rem;
    letter-spacing: .02em;
}
/*Information pages*/
.info-page {
    padding: 28px 0 64px;
    background: var(--surface-soft);
}
.info-page__inner {
    display: grid;
    gap: 28px;
}
.info-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
}
.info-hero > div {
    max-width: 768px;
}
.info-hero h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 4vw, 3rem);
}
.info-hero p:last-child {
    margin: 0;
    color: var(--navy-700);
    font-size: 1.03rem;
}
.info-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}
.info-content {
    min-width: 0;
    padding: 0 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
}
.info-content section {
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}
.info-content section:first-child {
    padding-top: 26px;
}
.info-content section:last-child {
    padding-bottom: 26px;
    border-bottom: 0;
}
.info-content h2 {
    margin-bottom: 10px;
    font-size: 1.45rem;
}
.info-content p {
    margin: 0 0 12px;
    color: var(--navy-700);
}
.info-content p:last-child {
    margin-bottom: 0;
}
.info-content ul, .info-content ol {
    margin: 10px 0 0;
    padding-left: 22px;
    color: var(--navy-700);
}
.info-content li + li {
    margin-top: 7px;
}
.info-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 14px;
}
.info-sidebar__card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.info-sidebar__label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.info-sidebar__card > strong {
    display: block;
    color: var(--navy-950);
    font-size: 1.2rem;
}
.info-sidebar__card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: .9rem;
}
.info-sidebar__links {
    display: grid;
    gap: 4px;
}
.info-sidebar__links > strong {
    margin-bottom: 6px;
    font-size: 1rem;
}
.info-sidebar__links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin-inline: -10px;
    border-radius: 8px;
    color: var(--navy-700);
    font-size: .9rem;
    font-weight: 600;
}
.info-sidebar__links a:hover {
    color: var(--primary);
    background: var(--surface-blue);
}
.info-next {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) 1.3fr;
    align-items: center;
    gap: 28px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface-blue);
}
.info-next h2 {
    margin-bottom: 6px;
    font-size: 1.6rem;
}
.info-next p:not(.eyebrow) {
    margin: 0;
    color: var(--navy-700);
}
.info-next .postal-search__field {
    box-shadow: none;
}
.example-address {
    display: grid;
    gap: 4px;
    padding: 18px;
    margin: 14px 0;
    border-left: 3px solid var(--primary);
    background: var(--surface-soft);
    color: var(--navy-700);
}
.example-address strong {
    color: var(--navy-950);
    margin-bottom: 3px;
}
.text-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.faq-list {
    display: grid;
    gap: 10px;
}
.faq-list details {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    overflow: hidden;
}
.faq-list summary {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--navy-950);
    font-weight: 700;
    cursor: pointer;
}
.faq-list details[open] summary {
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}
.faq-list details p {
    padding: 15px 16px;
    margin: 0;
}
.source-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.source-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.source-card > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}
.source-card > div:first-child span {
    color: var(--muted);
    font-size: .85rem;
}
.source-card dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
    margin: 14px 0;
}
.source-card dl > div {
    padding: 10px;
    background: var(--surface-soft);
    border-radius: 8px;
}
.source-card dt {
    color: var(--muted);
    font-size: .78rem;
}
.source-card dd {
    margin: 2px 0 0;
    color: var(--navy-950);
    font-weight: 650;
}
.source-card > a {
    color: var(--primary);
    font-weight: 700;
    font-size: .9rem;
}
.contact-form {
    display: grid;
    gap: 16px;
    padding: 0;
    margin-top: 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.contact-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--navy-950);
    font-weight: 650;
}
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--control-border);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form textarea:focus-visible, .contact-form select:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}
.contact-form .button {
    width: fit-content;
}
.form-help {
    color: var(--muted);
    font-size: .84rem;
}
.contact-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.form-notice {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
}
.form-notice--success {
    border-color: #a9ddbd;
    background: #f0fbf4;
}
.form-notice--error {
    border-color: #f0b8b8;
    background: var(--surface-danger);
}
.form-notice span {
    color: var(--navy-700);
}
/*Administrative history*/
.location-history {
    margin-top: 38px;
}
.history-list {
    display: grid;
    gap: 10px;
}
.history-item {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.history-item > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--navy-950);
}
.history-item > div span {
    color: var(--primary);
}
.history-item p {
    margin: 6px 0 0;
    color: var(--navy-700);
    font-size: .88rem;
}
.history-item small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}
.history-item a {
    display: inline-flex;
    margin-top: 9px;
    color: var(--primary);
    font-size: .84rem;
    font-weight: 700;
}
/*Saved postal codes and sharing*/
.header-favorite-link {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    transition: border-color .18s ease, background .18s ease;
}
.header-favorite-link:hover {
    border-color: #b6d5fb;
    background: var(--primary-soft);
}
.header-favorite-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linejoin: round;
}
.header-favorite-link [data-favorite-count] {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    line-height: 1;
}
.copy-code-button.is-saved, .copy-code-button[aria-pressed="true"] {
    border-color: #a9ddbd;
    background: #f0fbf4;
    color: var(--success);
}
.favorites-list {
    display: grid;
    gap: 10px;
}
.favorites-empty {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 30px 18px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-card);
    background: var(--surface-soft);
    text-align: center;
}
.favorites-empty span {
    color: var(--muted);
    font-size: .9rem;
}
.favorite-card {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    overflow: hidden;
}
.favorite-card__main {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 16px;
}
.favorite-card__main:hover {
    background: var(--surface-soft);
}
.favorite-card__main:focus-visible,
.favorite-card > button:focus-visible {
    outline-offset: -3px;
}
.favorite-card__main > span {
    display: grid;
    min-width: 0;
}
.favorite-card__main small {
    color: var(--muted);
}
.favorite-card__main b {
    color: var(--primary);
    font-size: 1.05rem;
    letter-spacing: .03em;
}
.favorite-card > button {
    align-self: stretch;
    min-width: 82px;
    min-height: 44px;
    border: 0;
    border-left: 1px solid var(--border);
    background: var(--surface);
    color: #9b2c2c;
    font-weight: 650;
    cursor: pointer;
}
.favorite-card > button:hover {
    background: var(--surface-danger);
}
/*Saved-list utilities*/
.favorites-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}
.favorites-toolbar[hidden] {
    display: none;
}
.favorites-toolbar__status {
    font-size: 14px;
    color: var(--muted);
    min-height: 20px;
}
.button--danger-quiet {
    color: #a61b1b;
    border-color: #d8b0b0;
    background: var(--surface);
}
.button--danger-quiet:hover {
    background: var(--surface-danger);
    border-color: #c78484;
}
/*Verification and data completeness*/
.locality-trust-strip {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(360px,.8fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    padding: 15px 17px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.locality-trust-strip--verified {
    border-left-color: var(--success);
}
.locality-trust-strip--missing-code,
.locality-trust-strip--missing-source,
.locality-trust-strip--source-unverified {
    border-left-color: #d08a16;
}
.locality-trust-strip__summary {
    min-width: 0;
}
.locality-trust-strip__summary > span {
    display: block;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.locality-trust-strip__summary > h2 {
    display: block;
    margin: 2px 0 0;
    color: var(--navy-950);
    font-size: 1rem;
    line-height: 1.35;
}
.locality-trust-strip__summary > p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.5;
}
.locality-trust-strip__facts {
    display: grid;
    grid-template-columns: repeat(3,minmax(105px,1fr));
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
}
.locality-trust-strip__facts > div {
    min-width: 0;
    padding: 9px 11px;
    border-right: 1px solid var(--border);
}
.locality-trust-strip__facts > div:last-child {
    border-right: 0;
}
.locality-trust-strip__facts dt {
    color: var(--muted);
    font-size: .64rem;
}
.locality-trust-strip__facts dd {
    margin: 2px 0 0;
    color: var(--navy-950);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.35;
}
.locality-trust-strip__source {
    color: var(--primary);
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}
.locality-trust-strip__source:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.locality-toolbar__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.locality-export-actions {
    display: flex;
    gap: 6px;
}
.locality-export-actions button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--navy-700);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
}
.locality-export-actions button svg {
    width: 15px;
    height: 15px;
}
.locality-export-actions button:hover {
    border-color: #a9caf2;
    color: var(--primary);
}
.locality-export-actions button:disabled {
    opacity: .48;
    cursor: not-allowed;
}
.history-gap-note {
    display: grid;
    gap: 3px;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid #ecd7a8;
    border-radius: var(--radius-card);
    background: #fffbf1;
}
.history-gap-note strong {
    color: var(--navy-950);
    font-size: .9rem;
}
.history-gap-note span {
    color: var(--navy-700);
    font-size: .82rem;
    line-height: 1.55;
}
.source-reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    margin-top: 14px;
}
.source-reference-grid article {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.source-reference-grid strong {
    color: var(--navy-950);
}
.source-reference-grid span {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.55;
}
.source-reference-grid a {
    margin-top: auto;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
}
.source-card__status {
    width: fit-content;
    margin-top: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
}
.source-card__status.is-verified {
    background: var(--surface-success);
    color: var(--success);
}
.source-card__status.is-unverified {
    background: var(--surface-warning);
    color: #9a6200;
}
.source-card__notes {
    margin: -2px 0 12px;
    padding: 10px 12px;
    border-left: 3px solid var(--border-strong);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .83rem;
}
/*Dataset lifecycle*/
.section--dataset-alert {
    padding-top: 18px;
    padding-bottom: 0;
}
.dataset-alert {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    align-items: start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #ead8ae;
    border-radius: var(--radius-card);
    background: var(--surface-warning);
}
.dataset-alert.is-stale {
    border-color: #e0a7a7;
    background: #fff5f5;
}
.dataset-alert__icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-weight: 700;
}
.dataset-alert strong {
    display: block;
    color: var(--navy-950);
}
.dataset-alert p {
    margin: 4px 0 5px;
    color: var(--muted);
}
.dataset-alert a {
    font-weight: 600;
}
/*Locality disambiguation and practical guidance*/
.address-use-card {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(340px,.9fr);
    gap: 22px;
    align-items: center;
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface-soft);
}
.address-use-card__intro h2 {
    margin: 3px 0 7px;
    font-size: 1.25rem;
}
.address-use-card__intro p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.6;
}
.address-use-card__value {
    display: grid;
    gap: 4px;
    padding: 15px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.address-use-card__value > span:first-child {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 650;
}
.address-use-card__value strong {
    color: var(--navy-950);
    font-size: 1.02rem;
    line-height: 1.4;
}
.address-use-card__value small {
    color: var(--muted);
    font-size: .74rem;
}
.address-use-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}
.address-use-card__actions button {
    min-height: 44px;
    padding: 0 11px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--primary);
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}
.address-use-card__actions button:hover {
    border-color: #a9caf2;
    background: #f8fbff;
}
.address-use-card__status {
    min-height: 18px;
    color: var(--success);
    font-size: .72rem;
}
.same-name-warning {
    margin-top: 32px;
    padding: 18px;
    border: 1px solid #e8cf9d;
    border-radius: var(--radius-panel);
    background: #fffaf0;
}
.same-name-warning__heading {
    max-width: 768px;
    margin-bottom: 12px;
}
.same-name-warning__heading h2 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}
.same-name-warning__heading p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
}
.same-name-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
}
.same-name-card {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 11px 13px;
    border: 1px solid #ead9b7;
    border-radius: var(--radius-card);
    background: var(--surface);
}
.same-name-card:hover {
    border-color: #d8b96f;
}
.same-name-card > span:first-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.same-name-card strong {
    color: var(--navy-950);
}
.same-name-card small {
    color: var(--muted);
    font-size: .74rem;
}
.same-name-card__postal {
    display: grid;
    min-width: 110px;
    text-align: right;
}
.same-name-card__postal b {
    margin: 2px 0;
    color: var(--primary);
}
.same-name-card__postal em {
    color: var(--muted);
    font-size: .66rem;
    font-style: normal;
}

.search-disambiguation {
    display: grid;
    gap: 3px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #e8cf9d;
    border-radius: var(--radius-card);
    background: #fffaf0;
}
.search-disambiguation strong {
    color: var(--navy-950);
}
.search-disambiguation span {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}
/*Customer correction and recovery*/
.postal-search__clear {
    align-self: center;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    padding: 8px 10px;
    min-height: 44px;
    cursor: pointer;
}
.postal-search__clear:hover,.postal-search__clear:focus-visible {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.customer-feedback {
    display: flex;
    gap: 8px 18px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0 0 20px;
    padding: 13px 16px;
    border: 1px solid #b7dfbf;
    border-radius: 8px;
    background: #f1fbf3;
    color: #185b27;
}
.customer-feedback--error {
    border-color: #efc0c0;
    background: #fff5f5;
    color: #8b2424;
}
.customer-feedback strong {
    font-weight: 700;
}
.customer-feedback span {
    flex: 1;
    min-width: 240px;
}
.data-report-card {
    margin-top: 36px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface-soft);
}

.data-report-card__intro {
    max-width: 768px;
}
.data-report-card__intro h2 {
    margin: 4px 0 8px;
}
.data-report-card__intro p:last-child {
    margin-bottom: 0;
}
.data-report-form {
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.data-report-form summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    min-height: 44px;
    display: flex;
    align-items: center;
    list-style-position: inside;
}
.data-report-form[open] summary {
    margin-bottom: 14px;
}
.data-report-context {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.data-report-context div {
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #f8fafc;
}
.data-report-context span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 3px;
}
.data-report-context strong {
    display: block;
    overflow-wrap: anywhere;
}
.data-report-fields {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}
.data-report-fields label {
    display: block;
}
.data-report-fields label>span {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.data-report-fields input,.data-report-fields select,.data-report-fields textarea {
    width: 100%;
    font: inherit;
    border: 1px solid var(--control-border);
    border-radius: 7px;
    background: var(--surface);
    padding: 10px 12px;
    min-height: 44px;
}
.data-report-fields textarea {
    resize: vertical;
}
.data-report-fields__wide {
    grid-column: 1/-1;
}
.data-report-submit {
    display: flex;
    gap: 12px;
    align-items: center;
}
.data-report-submit small {
    color: var(--muted);
}
.not-found-page {
    padding: 42px 0 64px;
    background: var(--surface-soft);
}
.not-found-page__inner {
    display: grid;
    gap: 36px;
}
.not-found-card {
    max-width: 850px;
    margin-inline: auto;
    width: 100%;
    text-align: center;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
.not-found-card h1 {
    margin: 6px auto 10px;
    max-width: 768px;
}
.not-found-card>p:not(.eyebrow) {
    max-width: 680px;
    margin: 0 auto 22px;
    color: var(--muted);
}
.not-found-card .postal-search {
    text-align: left;
}
.not-found-card__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.not-found-provinces {
    margin-top: 4px;
}

.postal-form-help {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
}
.postal-form-help .section-heading {
    margin-bottom: 10px;
}
.postal-form-help__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: var(--navy-700);
    font-size: .85rem;
    line-height: 1.55;
}
.postal-form-help__list strong {
    color: var(--navy-950);
}
.postal-form-help__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.postal-form-help__links a {
    color: var(--primary);
    font-size: .8rem;
    font-weight: 700;
}

/*v0.50 content density / page value*/
.section-heading--compact {
    margin-bottom: 12px;
}
.section-heading--compact h2 {
    margin-bottom: 0;
    font-size: clamp(1.22rem,2vw,1.5rem);
}
.province-use-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface-soft);
}
.province-use-note > div {
    display: grid;
    gap: 2px;
}
.province-use-note strong {
    color: var(--navy-950);
    font-size: .87rem;
}
.province-use-note span {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.45;
}
.province-use-note > a {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
}
.lookup-facts--compact {
    grid-template-columns: repeat(5,minmax(0,1fr));
}
.lookup-facts--compact > div {
    min-height: 78px;
    padding: 12px 14px;
}
.lookup-facts--compact > div:nth-child(4n) {
    border-right: 1px solid var(--border);
}
.lookup-facts--compact > div:nth-child(5n) {
    border-right: 0;
}
.lookup-facts--compact .lookup-facts__wide {
    min-height: 62px;
    border-right: 0;
}
.postal-form-help--compact {
    padding: 16px 18px;
}
.postal-form-help--compact .section-heading {
    margin-bottom: 6px;
}
.postal-form-help--compact details {
    border-top: 1px solid var(--border);
}
.postal-form-help--compact summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: .83rem;
    font-weight: 700;
    cursor: pointer;
}
.postal-form-help--compact details[open] summary {
    margin-bottom: 10px;
}
.location-source--compact {
    grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);
}
.location-source--compact > div {
    min-height: 68px;
    border-bottom: 0;
}
.location-source--compact > div:nth-of-type(-n+3) {
    border-bottom: 0;
}
.location-source--compact .location-source__link {
    grid-column: auto;
    border-top: 1px solid var(--border);
}
.location-source--compact .location-source__details {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
}
.location-source__details summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}
.location-source__details dl {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    margin: 0;
    padding: 0 15px 13px;
}
.location-source__details dl > div {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-right: 0;
    background: var(--surface-soft);
}
.location-source__details dl > div:last-child {
    border-right: 1px solid var(--border);
}
.location-source__details dt {
    color: var(--muted);
    font-size: .68rem;
}
.location-source__details dd {
    margin: 0;
    color: var(--navy-900);
    font-size: .78rem;
    font-weight: 650;
}
.location-source--compact .location-source__report {
    grid-column: auto;
    border-left: 1px solid var(--border);
}
.location-search-language {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.location-search-language > summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: var(--navy-900);
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
}
.location-search-language__body {
    display: grid;
    gap: 8px;
    padding: 0 15px 14px;
    border-top: 1px solid var(--border);
}
.location-search-language__body p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.55;
}
.location-search-language__body strong {
    color: var(--navy-900);
}
.location-search-language__body a {
    color: var(--primary);
    font-weight: 700;
}
.location-resource-links {
    margin-top: 44px;
}
.location-resource-links .section-heading {
    align-items: end;
    margin-bottom: 14px;
}
.location-resource-links .section-heading>a {
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
}
.location-resource-links__grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
}
.location-resource-links__grid>a {
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 112px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.location-resource-links__grid>a:hover {
    border-color: #a9caf2;
    background: #fbfdff;
}
.location-resource-links__grid strong {
    color: var(--navy-950);
    font-size: .88rem;
}
.location-resource-links__grid span {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
}
/*Homepage and postal-hub lookup components*/
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: 790px;
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid #cfdeed;
}
.hero-stats>span {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding-right: 18px;
    margin-right: 18px;
    border-right: 1px solid #d7e4f1;
}
.hero-stats strong {
    color: var(--navy-950);
    font-size: 1.04rem;
    line-height: 1.2;
}
.hero-stats small {
    color: var(--muted);
    font-size: .75rem;
}
.hero-stats > span:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}
.search-start {
    margin-top: 30px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: var(--surface);
}
.search-start__heading {
    max-width: 768px;
}
.search-start__heading h2 {
    margin-bottom: 6px;
    font-size: 1.35rem;
}
.search-start__heading p {
    margin: 0;
    color: var(--muted);
}
.search-start__grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-top: 18px;
}
.search-start__grid article {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface-soft);
}
.search-start__grid strong {
    color: var(--navy-950);
}
.search-start__grid span {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
}
.search-data-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.search-data-strip>span {
    display: grid;
    gap: 1px;
}
.search-data-strip strong {
    color: var(--navy-950);
    font-size: 1.05rem;
}
.search-data-strip small {
    color: var(--muted);
    font-size: .78rem;
}
.search-state--recovery {
    border-color: #cfe3fb;
    background: var(--surface-blue);
}
.search-recovery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.search-answer {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 30px;
    padding: 20px 22px;
    border: 1px solid #b9d7fb;
    border-radius: var(--radius-panel);
    background: var(--surface);
}
.search-answer__body h2 {
    margin: 0 0 7px;
    font-size: 1.45rem;
}
.search-answer__body>p:last-child {
    max-width: 768px;
    margin: 0;
    color: var(--muted);
}
.search-answer__code {
    display: grid;
    justify-items: end;
    min-width: 170px;
    padding: 14px 16px 14px 22px;
    border-left: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fbff;
}
.search-answer__code small {
    color: var(--muted);
    font-size: .75rem;
}
.search-answer__code strong {
    margin: 2px 0 5px;
    color: var(--navy-950);
    font-size: 2rem;
    letter-spacing: .035em;
    line-height: 1;
}
.search-answer__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
}
.search-answer__actions .button {
    min-height: 44px;
    padding-inline: 14px;
    font-size: .84rem;
}
.search-answer__copy-status {
    min-height: 18px;
    margin-top: 5px;
    color: var(--muted);
    font-size: .76rem;
}
.search-result-toolbar {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.search-result-toolbar label {
    display: grid;
    gap: 5px;
    min-width: 210px;
}
.search-result-toolbar label>span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
}
.search-result-toolbar select {
    min-height: 44px;
    padding: 0 36px 0 11px;
    border: 1px solid var(--control-border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}
.search-result-toolbar__reset {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--control-border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
}
.search-result-toolbar__reset:hover,
.search-result-toolbar__reset:focus-visible {
    background: var(--primary-soft);
}
.search-result-toolbar>p {
    margin: 0 0 10px auto;
    color: var(--muted);
    font-size: .84rem;
}
.search-result-card[hidden] {
    display: none !important;
}
.search-result-filter-empty {
    margin-top: 12px;
    padding: 18px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.search-result-filter-empty[hidden] {
    display: none !important;
}
.search-result-filter-empty strong,.search-result-filter-empty span {
    display: block;
}
.search-result-filter-empty span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .88rem;
}
.search-next {
    margin-top: 46px;
    padding-top: 34px;
    border-top: 1px solid var(--border);
}
.search-answer__code .search-answer__directory-label {
    font-size: 1.05rem;
    letter-spacing: 0;
}
.search-result-card__code .search-result-card__directory {
    font-size: .92rem;
    letter-spacing: 0;
}
/*Responsive system — consolidated breakpoints*/
@media (max-width: 1200px) {
    .province-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (max-width: 1100px) {
    .site-header__inner {
        grid-template-columns: minmax(195px, auto) 1fr auto;
        gap: 18px;
    }
    .site-nav__list {
        gap: 18px;
    }
    .site-nav a {
        font-size: .9rem;
    }
    .home-hero__grid {
        grid-template-columns: minmax(0,1fr) 292px;
        gap: 32px;
    }
    .feature-grid, .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 1024px) {
    .home-hero__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .home-hero-guide__steps {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
    .info-layout,
    .info-next {
        grid-template-columns: 1fr;
    }
    .info-sidebar {
        position: static;
        top: auto;
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .site-footer__navigation {
        justify-self: start;
    }
    .site-footer__nav {
        justify-content: flex-start;
    }
    .site-footer__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .site-footer__copyright {
        white-space: normal;
    }
    .site-footer__source {
        justify-content: flex-start;
        text-align: left;
    }
    .source-card dl,
    .source-reference-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .site-header__inner {
        position: relative;
        grid-template-columns: minmax(0,1fr) auto auto;
        gap: 8px;
    }
    .site-header__toggle {
        display: grid;
        place-items: center;
    }
    .site-nav {
        position: absolute;
        z-index: 40;
        top: calc(100% - 1px);
        left: 0;
        right: 0;
        display: none;
        justify-self: stretch;
        padding: 8px 20px 14px;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        background: var(--surface);
        box-shadow: 0 10px 24px rgba(18,54,89,.08);
    }
    .site-nav.is-open {
        display: block;
    }
    .site-nav__list {
        display: grid;
        gap: 0;
    }
    .site-nav a {
        min-height: 46px;
        padding: 0;
        border-bottom: 1px solid var(--border);
        font-size: .9rem;
    }
    .site-nav li:last-child a {
        border-bottom: 0;
    }
    .site-nav .current-menu-item > a::after,
    .site-nav .current_page_item > a::after,
    .home .site-nav li:first-child > a::after {
        display: none;
    }
    .province-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .province-directory__toolbar {
        grid-template-columns: 1fr;
    }
    .province-filter {
        width: min(100%, 440px);
    }
    .location-child-grid--directory {
        grid-template-columns: 1fr;
    }
    .location-source {
        grid-template-columns: 1fr 1fr;
    }
    .location-source > div:nth-of-type(2n) {
        border-right: 0;
    }
    .location-source__link:first-of-type, .location-source__link:last-of-type {
        grid-column: auto;
    }
    .lookup-facts {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .lookup-facts > div {
        border-bottom: 1px solid var(--border);
    }
    .lookup-facts > div:nth-child(2n) {
        border-right: 0;
    }
    .lookup-facts > div:nth-last-child(-n+2):not(.lookup-facts__wide) {
        border-bottom: 0;
    }
    .related-link-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
    .location-resource-links {
        margin-top: 36px;
    }
    .location-resource-links .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
    .location-resource-links__grid {
        grid-template-columns: 1fr;
    }
    .location-resource-links__grid>a {
        min-height: 0;
    }
    .postal-form-help__links {
        display: grid;
        gap: 9px;
    }
}
@media (max-width: 560px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }
    .site-header__inner {
        min-height: 64px;
    }
    .site-brand__text small {
        display: none;
    }
    .site-brand__text strong {
        font-size: 1rem;
    }
    .site-nav {
        left: -14px;
        right: -14px;
        padding-inline: 14px;
    }
    .hero::before {
        top: -190px;
        right: -230px;
    }
    .hero__inner {
        padding-block: 36px 38px;
    }
    .hero--home h1,
    h1 {
        font-size: clamp(2rem, 10vw, 2.55rem);
        letter-spacing: -.04em;
    }
    .home-hero-guide {
        padding: 16px;
    }
    .home-hero-guide__steps {
        grid-template-columns: 1fr;
    }
    .postal-search__field {
        grid-template-columns: 40px minmax(0,1fr) auto;
        grid-template-areas:
            "icon input clear"
            "submit submit submit";
        min-height: 0;
        gap: 6px;
        padding: 7px;
    }
    .postal-search__icon {
        grid-area: icon;
        width: 40px;
        height: 46px;
    }
    .postal-search input {
        grid-area: input;
        min-height: 46px;
        font-size: .95rem;
    }
    .postal-search__clear {
        grid-area: clear;
        min-height: 44px;
        padding-inline: 8px;
    }
    .postal-search__submit {
        grid-area: submit;
        width: 100%;
        min-width: 0;
        min-height: 46px;
    }
    .postal-search__results {
        max-height: var(--postal-results-max-height, min(420px, 58vh));
    }
    .postal-result {
        grid-template-columns: minmax(0,1fr) 18px;
        gap: 9px;
        min-height: 78px;
        padding: 11px 12px;
    }
    .postal-result__title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
    .postal-result__postal {
        white-space: normal;
    }
    .quick-links {
        align-items: stretch;
    }
    .quick-links__label {
        flex-basis: 100%;
    }
    .hero-stats>span {
        padding-right: 9px;
        margin-right: 9px;
    }
    .province-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 9px;
    }
    .province-card {
        min-height: 82px;
        gap: 8px;
        padding: 11px 10px;
    }
    .province-card__pin {
        width: 30px;
        height: 30px;
    }
    .province-card__arrow {
        display: none;
    }
    .province-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    .province-tab {
        width: 100%;
        justify-content: space-between;
    }
    .province-filter {
        width: 100%;
    }
    .location-directory__top {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 16px;
    }
    .locality-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }
    .locality-toolbar__meta {
        width: 100%;
        justify-content: space-between;
    }
    .locality-result-summary {
        white-space: normal;
    }
    .location-data-empty {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
    .location-data-empty .button {
        width: 100%;
    }
    .province-directory__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .feature-card {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .feature-card:last-child {
        border-bottom: 0;
    }
    .info-page {
        padding-top: 20px;
    }
    .info-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }
    .info-hero .button {
        width: 100%;
    }
    .info-layout {
        gap: 22px;
    }
    .info-content {
        padding-inline: 16px;
        border-radius: var(--radius-card);
    }
    .info-sidebar {
        grid-template-columns: 1fr;
    }
    .info-next {
        gap: 18px;
        padding: 20px;
    }
    .source-card {
        padding: 15px;
    }
    .source-card > div:first-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .source-card dl {
        grid-template-columns: 1fr 1fr;
    }
    .contact-form {
        padding: 16px;
    }
    .contact-form__grid {
        grid-template-columns: 1fr;
    }
    .contact-form .button {
        width: 100%;
    }
    .favorites-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }
    .favorites-toolbar .button {
        width: 100%;
    }
    .search-results-page__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
    .search-results-page__header > p {
        max-width: none;
        text-align: left;
    }
    .search-answer {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 17px;
    }
    .search-answer__code {
        justify-items: start;
        width: 100%;
        min-width: 0;
        padding: 14px;
        border: 1px solid var(--border);
        background: #f8fbff;
    }
    .search-answer__actions {
        justify-content: flex-start;
    }
    .search-result-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .search-result-toolbar label {
        min-width: 0;
    }
    .search-result-toolbar select {
        width: 100%;
    }
    .search-result-toolbar__reset {
        width: 100%;
    }
    .search-result-toolbar>p {
        margin: 0;
    }
    .search-recovery-card {
        grid-template-columns: minmax(0,1fr) auto;
        gap: 10px;
        padding: 11px 12px;
    }
    .search-recovery-card__arrow {
        display: none;
    }
    .search-result-card {
        grid-template-columns: minmax(0,1fr) 142px;
    }
    .search-result-card__link {
        grid-template-columns: minmax(0,1fr);
        gap: 0;
        padding: 13px 12px;
    }
    .search-result-card__arrow {
        display: none;
    }
    .search-result-card__code {
        min-width: 0;
        padding: 11px 12px;
    }
    .not-found-page {
        padding-block: 26px 46px;
    }
    .not-found-card {
        padding: 20px 16px;
    }
    .not-found-card__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .site-footer {
        padding-block: 28px 22px;
    }
    .site-footer__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        width: 100%;
        gap: 4px 14px;
    }
    .site-footer__nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .location-hero,
    .location-hero--province,
    .location-hero--locality {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .locality-trust-strip {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .locality-trust-strip__source {
        grid-column: auto;
        justify-self: start;
        white-space: normal;
    }
    .address-use-card {
        grid-template-columns: 1fr;
    }
    .province-stat-strip {
        grid-template-columns: 1fr 1fr;
    }
    .province-stat {
        min-height: 72px;
        padding: 12px 13px;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .province-stat:nth-child(2n) {
        border-right: 0;
    }
    .province-stat:nth-last-child(-n+2) {
        border-bottom: 0;
    }
    .province-stat strong {
        font-size: 1.2rem;
    }
    .location-directory__columns {
        display: none;
    }
    .location-child-grid--directory {
        grid-template-columns: 1fr;
        padding-inline: 8px;
    }
    .location-child-card {
        min-height: 76px;
        grid-template-columns: minmax(0,1fr) auto;
        grid-template-areas:
            "main code"
            "state state";
        gap: 7px 12px;
        padding: 11px 12px;
    }
    .location-child-card__main {
        grid-area: main;
    }
    .location-child-card__status {
        grid-area: state;
    }
    .location-child-card__code {
        grid-area: code;
        align-self: start;
        padding-top: 2px;
    }
    .location-child-card > .location-child-card__arrow {
        display: none;
    }
    .location-detail-card {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .location-detail-card:last-child {
        grid-column: auto;
        border-bottom: 0;
    }
    .postal-code-panel__actions {
        grid-template-columns: 1fr 1fr;
    }
    .copy-code-button--primary {
        grid-column: 1 / -1;
    }
    .locality-trust-strip__facts {
        grid-template-columns: 1fr;
    }
    .locality-trust-strip__facts > div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .locality-trust-strip__facts > div:last-child {
        border-bottom: 0;
    }
    .locality-status-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .locality-status-tabs button {
        width: 100%;
        justify-content: space-between;
    }
    .header-favorite-link, .header-search-link {
        width: 44px;
        height: 44px;
    }
    .favorite-card {
        grid-template-columns: minmax(0,1fr) 68px;
    }
    .favorite-card__main {
        gap: 10px;
        padding-inline: 14px 10px;
    }
    .favorite-card > button {
        min-width: 68px;
        min-height: 44px;
        border-top: 0;
        border-left: 1px solid var(--border);
    }
    .dataset-alert {
        padding: 12px;
    }
    .address-use-card, .same-name-warning {
        padding: 14px;
    }
    .address-use-card__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .address-use-card__actions button {
        min-height: 44px;
    }
    .same-name-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .same-name-card__postal {
        min-width: 0;
        text-align: left;
    }
    .location-source {
        grid-template-columns: 1fr;
    }
    .location-source > div,
    .location-source > div:nth-of-type(2n),
    .location-source > div:nth-of-type(3n) {
        min-height: 58px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .location-source > div:last-of-type {
        border-bottom: 0;
    }
    .location-source strong {
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }
    .location-source__link:first-of-type:not(:only-of-type),
    .location-source__link:last-of-type:not(:only-of-type) {
        grid-column: auto;
        border-left: 0;
    }
    .data-report-context,
    .data-report-fields {
        grid-template-columns: 1fr;
    }
    .data-report-fields__wide {
        grid-column: auto;
    }
}
@media (max-width: 430px) {
    .breadcrumbs {
        gap: 5px;
        margin-bottom: 20px;
        font-size: .8rem;
    }
    .section {
        padding-block: 44px;
    }
    .section--compact {
        padding-block: 32px;
    }
    .info-content {
        padding-inline: 14px;
    }
    .info-content h2 {
        font-size: 1.3rem;
    }
    .source-card dl {
        grid-template-columns: 1fr;
    }
    .search-state,
    .search-start,
    .data-report-card {
        padding: 16px;
    }
    .search-recovery-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .search-recovery-actions .button {
        width: 100%;
    }
    .search-result-card {
        grid-template-columns: 1fr;
    }
    .search-result-card__code {
        grid-template-columns: minmax(0,1fr) auto;
        justify-items: start;
        align-items: center;
        column-gap: 10px;
        border-top: 1px solid var(--border);
        border-left: 0;
        text-align: left;
    }
    .search-result-card__code small,
    .search-result-card__code > strong,
    .search-result-card__code .search-result-card__state {
        grid-column: 1;
    }
    .search-result-card__copy {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: center;
        min-width: 94px;
        margin-top: 0;
    }
    .location-hero--locality {
        padding: 18px 16px;
    }
    .postal-code-panel {
        padding: 17px;
    }
    .postal-code-panel__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
    .postal-code-panel > strong {
        font-size: 3rem;
    }
    .locality-trust-strip {
        padding: 13px 14px;
    }
    .location-directory__top {
        padding: 16px 14px 14px;
    }
    .locality-toolbar {
        padding-inline: 10px;
    }
    .locality-export-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .locality-export-actions button {
        justify-content: center;
        min-width: 0;
        padding-inline: 7px;
    }
    .province-overview-panel__score {
        align-items: flex-end;
    }
    .province-overview-panel__score strong {
        font-size: 1.85rem;
    }
    .related-link-grid {
        grid-template-columns: 1fr;
    }
    .related-link-card {
        min-height: 58px;
    }
}
@media (max-width: 390px) {
    .site-header__actions {
        gap: 4px;
    }
    .header-search-link,
    .site-header__toggle {
        width: 44px;
        height: 44px;
    }
    .hero-stats small {
        font-size: .69rem;
        line-height: 1.3;
    }
    .header-favorite-link {
        display: none;
    }
    .site-header__actions {
        gap: 6px;
    }
}
@media (max-width: 360px) {
    .container {
        width: min(calc(100% - 22px), var(--container));
    }
    .site-brand__text strong {
        font-size: .94rem;
    }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .hero-stats>span,
    .hero-stats>span:last-child {
        padding: 0 0 8px;
        margin: 0;
        border-right: 0;
        border-bottom: 1px solid #d7e4f1;
    }
    .hero-stats>span:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }
    .postal-search__field {
        grid-template-columns: 36px minmax(0,1fr) auto;
    }
    .postal-search__icon {
        width: 36px;
    }
    .province-grid {
        grid-template-columns: 1fr;
    }
    .province-card {
        min-height: 68px;
    }
    .province-tabs {
        grid-template-columns: 1fr;
    }
    .site-footer__nav {
        grid-template-columns: 1fr;
    }
    .search-recovery-card {
        grid-template-columns: 1fr;
    }
    .search-recovery-card__code {
        min-width: 0;
        text-align: left;
    }
    .search-result-card {
        grid-template-columns: 1fr;
    }
    .search-result-card__code {
        justify-items: start;
        border-top: 1px solid var(--border);
        border-left: 0;
        text-align: left;
    }
    .province-grid {
        grid-template-columns: 1fr;
    }
    .province-card {
        min-height: 68px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
    .postal-search__spinner {
        animation: none;
    }
}

/* Phase 11 — Accessibility */
textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}


/* v0.40 SEO intent components: visible synonyms + concise FAQ, no hidden text. */

/* v0.45/v0.47 — typo recovery stays visually secondary to ranked results. */
.search-recovery-suggestions {
    margin-top: 20px;
}
.search-recovery-suggestions > h3 {
    margin: 0 0 6px;
}
.search-recovery-suggestions > p {
    margin: 0 0 12px;
}
.postal-result--recovery {
    border-style: dashed;
}


@media (max-width: 900px) {
    .lookup-facts--compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lookup-facts--compact > div:nth-child(5n) { border-right: 1px solid var(--border); }
    .lookup-facts--compact > div:nth-child(2n) { border-right: 0; }
    .lookup-facts--compact .lookup-facts__wide { grid-column: 1 / -1; }
    .location-source__details dl { grid-template-columns: 1fr; }
    .location-source__details dl > div { border-right: 1px solid var(--border); border-bottom: 0; }
    .location-source__details dl > div:last-child { border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
    .province-use-note { align-items: flex-start; flex-direction: column; gap: 7px; }
    .province-use-note > a { width: 100%; }
    .lookup-facts--compact { grid-template-columns: 1fr 1fr; }
    .lookup-facts--compact > div { min-height: 72px; }
    .postal-form-help--compact { padding-inline: 14px; }
    .location-source--compact { grid-template-columns: 1fr; }
    .location-source--compact > div { min-height: 62px; border-right: 0; border-bottom: 1px solid var(--border); }
    .location-source--compact > div:nth-of-type(-n+3) { border-bottom: 1px solid var(--border); }
    .location-source--compact .location-source__link,
    .location-source--compact .location-source__report { grid-column: 1; border-left: 0; }
    .location-search-language { margin-top: 20px; }
}
