/* Separate changes of topic while keeping short labels close to their headings. */
:is(main, footer, .editor-styles-wrapper) p:not(.kicker,.eyebrow,.wn-kicker,.wn-contact-eyebrow) + :is(h1,h2,h3,h4,h5,h6),
:is(main, .editor-styles-wrapper) p + :is(section,.wp-block-group):has(> :is(h2,h3,h4):first-child) {
    margin-block-start: clamp(2.25rem, 5vw, 4rem) !important;
}
/* Text links remain quiet until interaction; action buttons retain their own styling. */
body a[href] {text-decoration:none}
:is(main,.editor-styles-wrapper) :where(p,li,td,figcaption) a:not(.wp-block-button__link,.wp-element-button,[download]) {
 color:#014a73;font-weight:650;box-decoration-break:clone;-webkit-box-decoration-break:clone;
}
:is(main,footer,.editor-styles-wrapper) a[href]:is(:hover,:focus-visible):not(:where(.wp-block-button__link,.wp-element-button,.service-card a,.support-card a,.wn-topic-grid a,.wn-home-map a,.nav a,[download])) {
 text-decoration:underline!important;text-decoration-thickness:1px;text-underline-offset:.2em;text-decoration-skip-ink:auto;
}
body a[href]:focus-visible{outline:3px solid #014a73;outline-offset:3px}
.wn-high-contrast body a[href]:focus-visible,.footer a[href]:focus-visible{outline-color:currentColor}
.wn-link-marker{display:inline-block;margin-left:.22em;font-size:.9em;line-height:1;white-space:nowrap;font-weight:500}
.wn-link-note{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.wn-header-tools {grid-column:2;grid-row:1;justify-self:end;display:flex;align-items:center;gap:4px}
.wn-search {font-size:.875rem}
.wn-search summary {list-style:none;display:flex;align-items:center;gap:.4rem;min-height:44px;padding:.35rem .65rem;border:1px solid transparent;border-radius:22px;font-weight:700;color:#014a73;cursor:pointer}
.wn-search summary::-webkit-details-marker {display:none}
.wn-search summary:hover, .wn-search[open] summary {background:#eef7fb;border-color:#c6dfe9}
.wn-search-panel {position:absolute;right:0;top:100%;z-index:85;width:min(26rem,calc(100vw - 24px));padding:20px;background:white;color:#014a73;border:1px solid #bdd6df;border-radius:16px;box-shadow:0 12px 30px #014a7320;box-sizing:border-box}
.wn-search-panel label,.wn-search-page label {display:block;font-weight:700;margin:0 0 .55rem}
.wn-search-row {display:flex;gap:8px;align-items:stretch}
.wn-search-row input,.wn-search-page .wp-block-search__input {flex:1;min-width:0;padding:10px 12px;border:1px solid #658a9d;border-radius:8px;color:#143c50;background:white;font:inherit}
.wn-search-row button,.wn-search-page .wp-block-search__button {min-height:44px;padding:8px 15px;border:0;border-radius:8px;background:#014a73;color:white;font:inherit;font-weight:700;cursor:pointer}
.wn-search-page form {max-width:38rem;margin-block:1.25rem 2rem}
.wn-results-list {list-style:none;padding:0;margin:1rem 0;max-width:76ch}
.wn-results-list > li {border-top:1px solid #cee1eb;padding-block:1rem}
.wn-results-list h2 {font-size:1.2rem;margin:0 0 .35rem;color:#014a73}

.wn-results-list p {margin:.25rem 0;line-height:1.55}
.wn-results-list a{font-weight:650}
@media(max-width:900px){
    .header-grid>.wn-header-tools {grid-column:3}
    .wn-search summary {height:44px;width:44px;justify-content:center;padding:8px;background:#eef6f9;border-color:#d5e5eb}
    .wn-search summary span {display:none}
}
.wn-large-text .header-grid>.wn-header-tools {grid-column:2;grid-row:1}
.wn-large-text .wn-search summary span {display:none}
@media(max-width:420px){
    .header-grid>.wn-header-tools {gap:2px}
    .header .emergency-link {min-width:0}
}

@media(min-width:901px){
    html:not(.wn-large-text) .wn-search {position:relative}
    html:not(.wn-large-text) .wn-search-panel {top:calc(100% + 4px)}
}

/* Glossary beside search, in the shared header. */
.wn-header-glossary {display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.35rem .65rem;border:1px solid transparent;border-radius:22px;font-size:.875rem;font-weight:700;color:#014a73;white-space:nowrap}
.wn-header-glossary svg {flex:none}
.wn-header-glossary:hover {background:#eef7fb;border-color:#c6dfe9}
@media(max-width:900px){
 .wn-header-glossary {width:44px;height:44px;padding:8px;background:#eef6f9;border-color:#d5e5eb}
 .wn-header-glossary span {display:none}
}
.wn-large-text .wn-header-glossary span {display:none}
