/* Inside pages: "Service Portal" design (approved 3 Dec 2026). Prefix sp-. Ported from public/design-concepts/concept-2. */
/* ===== Concept 2: Service Portal. New classes only (prefix sp-); live header/footer untouched. ===== */
:root { --sp-r: 8px; --sp-shadow: 0 1px 3px rgba(22,47,106,.06), 0 6px 16px rgba(22,47,106,.05); --sp-ease: cubic-bezier(.2,.7,.2,1); --sp-ok: var(--success-fg); }
/* Page header: compact, light */
.sp-head { background: var(--tint); border-bottom: 1px solid var(--pale); position: relative; overflow: hidden; }
.sp-head .sp-scene { position: absolute; right: 0; bottom: 0; width: 620px; max-width: 60%; height: 140px; pointer-events: none; }
.sp-head-in { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 32px; padding-top: 18px; padding-bottom: 20px; align-items: end; }
.sp-head .crumbs a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--light); text-underline-offset: 3px; }
.sp-head .crumbs a:hover { color: var(--navy); text-decoration-color: var(--navy); }
.sp-head .crumbs li + li::before { color: var(--muted); }
.sp-head .crumbs [aria-current] { color: var(--text); font-weight: 600; }
.sp-head h1 { font-size: 2rem; line-height: 1.2; font-weight: 700; color: var(--navy); margin-top: 10px; }
.sp-sum { margin-top: 6px; color: var(--body); max-width: 760px; font-size: 1.0625rem; }
.sp-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sp-meta .note { font-size: .8125rem; color: var(--body); }
.sp-meta .tools { display: flex; gap: 6px; }
.sp-meta .tool-btn { background: var(--white); border: 1px solid var(--pale); border-radius: 6px; width: 44px; height: 44px; }
.sp-quick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; list-style: none; padding: 0; }
.sp-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--light); border-radius: 22px; background: var(--white); color: var(--navy); font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.sp-chip:hover { border-color: var(--navy); background: var(--pale); color: var(--navy); }
.sp-chip .icon { width: 18px; height: 18px; color: var(--blue); }
.sp-chip.primary { background: var(--navy); border-color: var(--navy); color: var(--white); }
.sp-chip.primary .icon { color: var(--white); }
.sp-chip.primary:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
/* Section tabs (replace the sidebar) */
.sp-tabs { background: var(--white); border-bottom: 1px solid var(--linen); box-shadow: 0 2px 6px rgba(22,47,106,.06); position: sticky; top: 0; z-index: 15; }
.sp-tabs ul { list-style: none; margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.sp-tabs ul::-webkit-scrollbar { display: none; }
.sp-tabs a { position: relative; display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 16px; color: var(--body); font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.sp-tabs a .icon { width: 18px; height: 18px; color: var(--mid); }
.sp-tabs a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--navy); transform: scaleX(0); transition: transform .25s var(--sp-ease); }
.sp-tabs a:hover { color: var(--navy); background: var(--tint); }
.sp-tabs a:hover::after { transform: scaleX(.35); }
.sp-tabs a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.sp-tabs a[aria-current="page"] .icon { color: var(--navy); }
.sp-tabs a[aria-current="page"]::after { transform: scaleX(1); }
/* Layout */
.sp-layout { display: grid; grid-template-columns: minmax(0,1fr) 288px; gap: 32px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.sp-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.sp-aside { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 20px; }
.sp-wide { padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
/* Cards */
.sp-card { background: var(--white); border: 1px solid var(--pale); border-radius: var(--sp-r); padding: 24px; box-shadow: var(--sp-shadow); scroll-margin-top: 80px; min-width: 0; }
.sp-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--linen); }
.sp-card-head .sh h2, .sp-card-head .sh h3 { font-size: 1.375rem; font-weight: 600; }
.sp-glyph { width: 44px !important; height: 44px !important; border-radius: 10px; background: var(--tint-2); }
.sp-glyph .icon { width: 26px !important; height: 26px !important; stroke-width: 1.8; }
.sp-card-head .sh.sh-img > img { width: 44px; }
.sp-prose { line-height: 1.7; color: var(--text); }
.sp-prose > * + * { margin-top: .9em; }
.sp-prose h3 { font-size: 1.125rem; color: var(--navy); margin-top: 1.4em; }
.sp-prose ul, .sp-prose ol { padding-left: 1.3em; margin-bottom: 0; }
.sp-prose li + li { margin-top: .35em; }
.sp-lead { font-size: 1.125rem; color: var(--navy); font-weight: 500; line-height: 1.6; }
.sp-src { font-size: .8125rem; color: var(--muted); margin-top: 14px; display: flex; gap: 6px; align-items: flex-start; }
.sp-src .icon { width: 15px; height: 15px; margin-top: 3px; }
.sp-gap { color: #8A4B00; background: var(--warning-bg); border-radius: 4px; padding: 0 4px; font-size: .9em; }
.sp-split { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 24px; align-items: start; }
.sp-fig { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--pale); background: var(--tint); }
.sp-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sp-fig figcaption { font-size: .8125rem; color: var(--body); padding: 8px 12px; }
/* Stat tiles */
.sp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.sp-stat { border: 1px solid var(--pale); border-top: 4px solid var(--navy); border-radius: 6px; padding: 14px 16px 12px; background: var(--white); display: flex; flex-direction: column; gap: 2px; }
.sp-stat b { font-size: 1.875rem; line-height: 1.15; color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-stat b small { font-size: 1rem; font-weight: 600; }
.sp-stat span { font-size: .875rem; color: var(--body); line-height: 1.45; }
.sp-stat cite { font-style: normal; font-size: .75rem; color: var(--muted); margin-top: 6px; }
/* Accordions */
.sp-acc { display: flex; flex-direction: column; gap: 10px; }
.sp-acc details { border: 1px solid var(--pale); border-radius: 6px; background: var(--white); }
.sp-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; cursor: pointer; font-weight: 600; color: var(--navy); border-radius: 6px; }
.sp-acc summary::-webkit-details-marker { display: none; }
.sp-acc summary small { font-weight: 400; color: var(--muted); font-size: .8125rem; margin-left: 8px; }
.sp-acc summary .icon { transition: transform .2s var(--sp-ease); color: var(--blue); }
.sp-acc summary:hover { background: var(--tint); }
.sp-acc details[open] > summary { background: var(--tint); border-bottom: 1px solid var(--linen); border-radius: 6px 6px 0 0; }
.sp-acc details[open] > summary .icon { transform: rotate(180deg); }
.sp-acc .sp-acc-body { padding: 14px 16px 16px; }
/* Milestones / numbered lists */
.sp-ms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sp-ms li { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--linen); font-size: .9375rem; }
.sp-ms li:last-child { border-bottom: 0; }
.sp-ms .yr { align-self: start; text-align: center; font-weight: 700; color: var(--navy); background: var(--pale); border-radius: 14px; font-size: .875rem; line-height: 28px; }
.sp-num { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 12px; }
.sp-num li { counter-increment: n; position: relative; padding: 14px 16px 14px 60px; border: 1px solid var(--pale); border-radius: 6px; background: var(--row); }
.sp-num li::before { content: counter(n); position: absolute; left: 16px; top: 13px; width: 30px; height: 30px; border-radius: 15px; background: var(--navy); color: var(--white); font-weight: 700; font-size: .875rem; display: flex; align-items: center; justify-content: center; }
.sp-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-ticks li { position: relative; padding-left: 28px; }
.sp-ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.sp-two { columns: 2; column-gap: 32px; }
.sp-two li { break-inside: avoid; }
/* Related link rows (homepage lrow style, inside cards) */
.sp-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.sp-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--navy); border-radius: 4px; color: var(--navy); font-weight: 600; text-decoration: none; background: var(--white); box-shadow: 0 2px 8px rgba(22,47,106,.06); transition: background-color .15s, box-shadow .15s; }
.sp-links a small { display: block; font-weight: 400; color: var(--body); font-size: .8125rem; }
.sp-links a:hover { background: var(--tint); box-shadow: 0 6px 18px rgba(22,47,106,.12); }
.sp-links a > .icon { transition: transform .2s var(--sp-ease); }
.sp-links a:hover > .icon { transform: translateX(3px); }
/* Aside: On this page + Need help */
.sp-toc { padding: 18px 16px 12px; }
.sp-toc h2 { font-size: 1rem; display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.sp-toc h2 .icon { width: 18px; height: 18px; color: var(--blue); }
.sp-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--linen); }
.sp-toc a { display: block; padding: 10px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--body); text-decoration: none; font-size: .9375rem; line-height: 1.4; transition: color .15s, border-color .15s, background-color .15s; }
.sp-toc a:hover { color: var(--navy); background: var(--tint); }
.sp-toc a.is-on { border-left-color: var(--navy); color: var(--navy); font-weight: 600; }
.sp-help { background: var(--navy); color: var(--white); border-radius: var(--sp-r); padding: 20px; }
.sp-help h2 { color: var(--white); font-size: 1.125rem; display: flex; align-items: center; gap: 10px; }
.sp-help > p { color: var(--pale); font-size: .875rem; margin-top: 6px; line-height: 1.5; }
.sp-help ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.sp-help li a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--white); text-decoration: none; }
.sp-help li a:hover { background: rgba(255,255,255,.18); color: var(--white); }
.sp-help li a > span { display: flex; flex-direction: column; line-height: 1.3; font-weight: 600; font-size: .9375rem; }
.sp-help li a small { color: var(--pale); font-weight: 400; font-size: .75rem; overflow-wrap: anywhere; }
.sp-help li a > span { min-width: 0; }
.sp-help .icon { color: var(--light); }
.sp-toc-m { display: none; border: 1px solid var(--pale); border-radius: 6px; background: var(--white); }
.sp-toc-m[open] > summary { background: var(--tint); border-bottom: 1px solid var(--linen); border-radius: 6px 6px 0 0; }
.sp-toc-m[open] > summary .icon { transform: rotate(180deg); }
.sp-toc-m .sp-toc { padding: 8px 12px 12px; }
.sp-updated { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8125rem; color: var(--body); border-top: 1px solid var(--linen); padding-top: 14px; }
/* Forms, filters */
.sp-filter { display: grid; grid-template-columns: minmax(0,2fr) repeat(2, minmax(0,1fr)); gap: 14px; align-items: end; }
.sp-search { position: relative; }
.sp-search .icon { position: absolute; left: 12px; bottom: 12px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.sp-search .input { padding-left: 42px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sp-chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--light); border-radius: 22px; background: var(--white); color: var(--navy); font-size: .875rem; cursor: pointer; }
.sp-chips button:hover { border-color: var(--navy); }
.sp-chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 600; }
.sp-chips button .ct { font-size: .75rem; min-width: 22px; padding: 0 6px; border-radius: 10px; background: var(--tint-2); color: var(--navy); font-weight: 700; line-height: 20px; }
.sp-chips button[aria-pressed="true"] .ct { background: var(--blue); color: var(--white); }
.sp-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .875rem; color: var(--body); margin: 18px 0 12px; }
.sp-empty { padding: 28px; text-align: center; border: 1px dashed var(--light); border-radius: 6px; color: var(--body); }
/* Reveal motion */
.sp-reveal { transition: opacity .5s var(--sp-ease), transform .5s var(--sp-ease); }
.sp-reveal.sp-pending { opacity: 0; transform: translateY(14px); }
/* High contrast mode support for the new components */
html.contrast-high :is(.sp-head, .sp-tabs, .sp-card, .sp-stat, .sp-acc details, .sp-acc summary, .sp-num li, .sp-links a, .sp-chip, .sp-chips button, .sp-fig, .sp-person, .sp-doc, .sp-drawer-box) { background: #000 !important; color: #FFF !important; border-color: #FFF !important; }
html.contrast-high :is(.sp-head h1, .sp-stat b, .sp-chip, .sp-tabs a, .sp-toc a, .sp-acc summary) { color: #FFFF00 !important; }
@media (max-width: 1100px) {
  .sp-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 24px; }
}
@media (max-width: 960px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-aside { position: static; }
  .sp-aside .sp-toc { display: none; }
  .sp-toc-m { display: block; }
  .sp-head-in { grid-template-columns: 1fr; padding-top: 14px; padding-bottom: 16px; }
  .sp-head h1 { font-size: 1.625rem; }
  .sp-sum { font-size: 1rem; }
  .sp-meta { flex-direction: row; align-items: center; justify-content: space-between; order: 3; margin-top: 10px; }
  .sp-quick { order: 4; margin-top: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-right: -16px; padding-right: 16px; }
  .sp-quick li { flex: none; }
  .sp-head .sp-scene { opacity: .5; }
  .sp-split { grid-template-columns: 1fr; }
  .sp-filter { grid-template-columns: 1fr 1fr; }
  .sp-filter .sp-search { grid-column: 1 / -1; }
  .sp-tabs a { min-height: 48px; padding: 0 14px; font-size: .875rem; }
}
@media (max-width: 640px) {
  .sp-card { padding: 18px 16px; }
  .sp-card-head .sh h2, .sp-card-head .sh h3 { font-size: 1.1875rem; }
  .sp-two { columns: 1; }
  .sp-stats { grid-template-columns: 1fr 1fr; }
  .sp-stat b { font-size: 1.5rem; }
  .sp-layout, .sp-wide { padding-top: 20px; padding-bottom: 40px; }
  .sp-filter { grid-template-columns: 1fr; }
  .sp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .sp-chips button { flex: none; }
  .sp-ms li { grid-template-columns: 56px minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) { .sp-reveal.sp-pending { opacity: 1; transform: none; } }
@media print { .sp-reveal.sp-pending { opacity: 1 !important; transform: none !important; } .sp-tabs, .sp-aside, .sp-quick, .sp-meta .tools, .sp-toc-m { display: none !important; } .sp-layout { grid-template-columns: 1fr; } .sp-card { box-shadow: none; break-inside: avoid; } }
.sp-mt { margin-top: 16px; }
.sp-sub { font-size: 1rem; color: var(--navy); margin: 4px 0 12px; }
.sp-sub + .sp-ticks, .sp-sub + .sp-links { margin-bottom: 22px; }
.sp-hi { border: 1px dashed var(--light); border-radius: 6px; padding: 18px; background: var(--row); display: flex; flex-direction: column; gap: 12px; margin-top: 12px; font-family: 'Noto Sans Devanagari', 'Noto Sans', system-ui, sans-serif; line-height: 1.8; }
.sp-hi .crumbs a { color: var(--blue); }
.sp-hi .crumbs li + li::before { color: var(--muted); }
.sp-hi-title { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.sp-hi-tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--linen); font-size: .9375rem; }
.sp-hi-tabs li { padding: 6px 0; }
.sp-hi-tabs li.on { font-weight: 700; color: var(--navy); box-shadow: inset 0 -3px 0 var(--navy); }
.sp-div { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 24px; align-items: start; }
.sp-headcard { border: 1px solid var(--pale); border-radius: 6px; background: var(--tint); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sp-headcard > div { display: flex; flex-direction: column; gap: 2px; }
.sp-headcard small { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--body); }
.sp-headcard b { color: var(--navy); font-size: 1.0625rem; }
.sp-headcard span { font-size: .875rem; color: var(--body); }
.sp-headcard .sp-chip { align-self: flex-start; }
.sp-av { width: 56px; height: 56px; border-radius: 28px; background: var(--navy); color: var(--white) !important; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem !important; letter-spacing: .02em; }
.sp-jump { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.sp-jump a { display: flex; gap: 14px; align-items: center; min-height: 72px; padding: 14px 16px; border: 1px solid var(--navy); border-radius: 4px; text-decoration: none; color: var(--navy); font-weight: 600; box-shadow: 0 2px 8px rgba(22,47,106,.06); transition: background-color .15s; }
.sp-jump a:hover { background: var(--tint); }
.sp-jump a > .icon { width: 28px; height: 28px; color: var(--blue); }
.sp-jump small { display: block; font-weight: 400; color: var(--body); font-size: .8125rem; }
@media (max-width: 960px) { .sp-div { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sp-jump { grid-template-columns: 1fr; } }
.sp-dir { display: grid; grid-template-columns: 132px minmax(0,1fr) auto; gap: 24px; align-items: center; border-left: 4px solid var(--navy); }
.sp-dir img { width: 132px; height: 132px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--pale); }
.sp-dir h2 { font-size: 1.5rem; }
.sp-dir p { color: var(--body); }
.sp-kicker { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--blue); }
.sp-dir-meta { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .875rem; color: var(--body); }
.sp-dir-meta li { display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.sp-dir-meta .icon { color: var(--blue); }
.sp-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sp-person { display: grid; grid-template-columns: 52px minmax(0,1fr); grid-template-rows: 1fr auto; gap: 4px 14px; padding: 16px; border: 1px solid var(--pale); border-radius: 6px; background: var(--white); transition: border-color .15s, box-shadow .15s, opacity .2s; scroll-margin-top: 90px; }
.sp-person:hover { border-color: var(--mid); box-shadow: var(--sp-shadow); }
.sp-person-t { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.sp-person-t b { color: var(--navy); line-height: 1.35; }
.sp-person-t > span:not(.tag) { font-size: .875rem; color: var(--body); line-height: 1.4; }
.sp-av { width: 52px; height: 52px; border-radius: 26px; background: var(--pale); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.sp-open { grid-column: 1 / -1; margin-top: 10px; display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--navy); border-radius: 6px; background: var(--white); color: var(--navy); font-weight: 600; font-size: .875rem; cursor: pointer; }
.sp-open:hover { background: var(--navy); color: var(--white); }
.sp-drawer { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(440px, 100%); max-width: 100%; border: 0; padding: 0; background: var(--white); box-shadow: -8px 0 30px rgba(22,47,106,.2); }
.sp-drawer::backdrop { background: rgba(22,47,106,.45); }
.sp-drawer[open] { animation: sp-slide .28s var(--sp-ease); }
@keyframes sp-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sp-drawer-box { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.sp-drawer-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--linen); padding-bottom: 12px; }
.sp-pf-id { display: flex; gap: 16px; align-items: center; }
.sp-pf-id h2 { font-size: 1.375rem; }
.sp-pf-id p { color: var(--body); font-size: .9375rem; margin: 2px 0 6px; }
.sp-av-lg { width: 76px; height: 76px; border-radius: 38px; font-size: 1.375rem; flex: none; background: var(--navy); color: var(--white); }
.sp-dl { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--pale); border-radius: 6px; }
.sp-dl > div { padding: 12px 14px; border-bottom: 1px solid var(--linen); }
.sp-dl > div:last-child { border-bottom: 0; }
.sp-dl dt { font-size: .75rem; color: var(--body); text-transform: uppercase; letter-spacing: .04em; }
.sp-dl dd { margin: 2px 0 0; overflow-wrap: anywhere; }
body.sp-lock { overflow: hidden; }
@media (max-width: 960px) { .sp-dir { grid-template-columns: 96px minmax(0,1fr); } .sp-dir img { width: 96px; height: 96px; } .sp-dir .btn { grid-column: 1 / -1; } }
@media (max-width: 640px) { .sp-dir { grid-template-columns: 1fr; } .sp-dir img { width: 112px; height: 112px; } .sp-drawer-box { padding: 16px; } }
.sp-seg { display: inline-flex; border: 1px solid var(--navy); border-radius: 8px; overflow: hidden; }
.sp-seg button { min-height: 44px; padding: 0 18px; border: 0; background: var(--white); color: var(--navy); font-size: .9375rem; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.sp-seg button + button { border-left: 1px solid var(--navy); }
.sp-seg button[aria-selected="true"] { background: var(--navy); color: var(--white); font-weight: 600; }
.sp-seg .ct { font-size: .75rem; padding: 0 7px; border-radius: 10px; background: var(--tint-2); color: var(--navy); font-weight: 700; line-height: 20px; }
table.data.sp-table th { text-align: left; }
table.data.sp-table th:first-child { text-align: center; width: 72px; }
.sp-doc-t { display: flex; gap: 12px; align-items: flex-start; }
.sp-doc-t > span { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sp-doc-t b { font-weight: 600; color: var(--text); line-height: 1.4; }
.sp-pdf { color: var(--error); width: 24px; height: 24px; margin-top: 1px; }
.sp-tno { display: block; color: var(--body); font-size: .8125rem; margin-top: 2px; }
.sp-dl-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--navy); border-radius: 6px; color: var(--navy); font-weight: 600; font-size: .8125rem; text-decoration: none; white-space: nowrap; }
.sp-dl-btn:hover { background: var(--navy); color: var(--white); }
.sp-nodoc { font-size: .8125rem; color: var(--body); }
.sp-pager { margin-top: 18px; }
.sp-pager button { min-width: 44px; min-height: 44px; border: 1px solid var(--light); border-radius: 6px; background: var(--white); color: var(--navy); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 12px; }
.sp-pager button:hover { border-color: var(--navy); }
.sp-pager button[aria-current="page"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.sp-pager button:disabled { opacity: .45; cursor: default; }
.sp-row2 { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .sp-row2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .sp-card-head .sp-seg { width: 100%; } .sp-seg button { flex: 1; justify-content: center; }
  .sp-dl-btn { justify-content: center; width: 100%; min-height: 44px; }
}
.sp-hotline { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px 18px; align-items: center; border-left: 4px solid var(--navy); background: var(--tint); }
.sp-hotline h2 { font-size: 1.25rem; }
.sp-hotline p { color: var(--body); font-size: .9375rem; }
.sp-hot-n { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.sp-hot-n a { display: flex; flex-direction: column; min-height: 52px; justify-content: center; padding: 6px 16px; border-radius: 6px; background: var(--navy); color: var(--white); text-decoration: none; line-height: 1.25; }
.sp-hot-n a:hover { background: var(--blue); color: var(--white); }
.sp-hot-n b { font-size: 1.0625rem; white-space: nowrap; }
.sp-hot-n span { font-size: .75rem; color: var(--pale); }
.sp-hot-x { grid-column: 1 / -1; }
.sp-offices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.sp-office { border: 1px solid var(--pale); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sp-office-h { display: flex; gap: 12px; align-items: flex-start; }
.sp-office-h > div { flex: 1; min-width: 0; }
.sp-office-h h3 { font-size: 1.0625rem; }
.sp-office-h span:not(.tag):not(.sh-glyph) { display: block; font-size: .8125rem; line-height: 1.45; color: var(--body); margin-top: 2px; }
.sp-office-h .tag { flex: none; }
.sp-office ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9375rem; }
.sp-office li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.sp-office li .icon { color: var(--blue); margin-top: 4px; }
.sp-office a { white-space: nowrap; }
.sp-map { position: relative; border: 1px solid var(--pale); border-radius: 6px; overflow: hidden; background: var(--tint); }
.sp-map svg { display: block; width: 100%; height: auto; }
.sp-map-note { display: block; padding: 8px 12px; font-size: .8125rem; color: var(--body); background: var(--white); border-top: 1px solid var(--pale); }
.sp-prose .more { margin-top: 14px; }
.sp-rti { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 20px; align-items: start; }
.sp-dl2 { margin: 0; border: 1px solid var(--pale); border-radius: 6px; }
.sp-dl2 > div { padding: 12px 14px; border-bottom: 1px solid var(--linen); }
.sp-dl2 > div:last-child { border-bottom: 0; }
.sp-dl2 dt { font-weight: 600; color: var(--navy); font-size: .9375rem; }
.sp-dl2 dd { margin: 2px 0 0; font-size: .875rem; }
.sp-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.sp-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 20px; }
.sp-full { grid-column: 1 / -1; }
.sp-ta { height: 140px; padding-top: 10px; resize: vertical; }
.sp-short { max-width: 200px; }
.sp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sp-form-a { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sp-ok { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 6px; background: var(--success-bg); color: var(--success-fg); font-weight: 600; }
@media (max-width: 960px) { .sp-rti { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .sp-offices, .sp-form { grid-template-columns: 1fr; }
  .sp-hotline { grid-template-columns: auto minmax(0,1fr); } .sp-hot-n { grid-column: 1 / -1; } .sp-hot-n li { flex: 1 1 140px; } .sp-hot-n b { font-size: 1rem; }
}

/* Inside pages: people views (Service Portal). Owned by one builder; merged into inner.css later.
   Our Team, staff profile, documents, tenders, contact, subscribe. */

/* Segmented control made of links (category / type switch in a card head) */
.sp-seg-links a { min-height: 44px; padding: 0 16px; background: var(--white); color: var(--navy); font-size: .9375rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.sp-seg-links a + a { border-left: 1px solid var(--navy); }
.sp-seg-links a:hover { background: var(--tint); color: var(--navy); }
.sp-seg-links a[aria-current="true"] { background: var(--navy); color: var(--white); font-weight: 600; }
.sp-seg-links a .icon { width: 18px; height: 18px; }
.sp-seg-links a[aria-current="true"] .ct { background: var(--blue); color: var(--white); }

/* Chips made of links (document categories, tender status) */
.sp-chips-links { margin-top: 0; }
.sp-chips-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--light); border-radius: 22px; background: var(--white); color: var(--navy); font-size: .875rem; text-decoration: none; }
.sp-chips-links a:hover { border-color: var(--navy); color: var(--navy); }
.sp-chips-links a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 600; }
.sp-chips-links .ct { font-size: .75rem; min-width: 22px; padding: 0 6px; border-radius: 10px; background: var(--tint-2); color: var(--navy); font-weight: 700; line-height: 20px; text-align: center; }
.sp-chips-links a[aria-current="page"] .ct { background: var(--blue); color: var(--white); }
.sp-mt { margin-top: 18px; }

/* Filters */
.sp-filter-2 { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.sp-filter .sp-chips { grid-column: 1 / -1; margin-top: 2px; }
.sp-filter-a { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 44px; }
.sp-sort { display: flex; align-items: center; gap: 10px; }
.sp-sort label { font-size: .875rem; color: var(--body); }
.sp-sort .input { width: auto; min-height: 44px; }

/* Our Team */
.sp-dir-av { width: 132px; height: 132px; border-radius: 6px; font-size: 2.25rem; background: var(--navy); color: var(--white); }
.sp-av { overflow: hidden; flex: none; }
.sp-av img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sp-person .sp-open { text-decoration: none; }
.sp-person .sp-open:hover .icon { transform: translateX(3px); }
.sp-open .icon { transition: transform .2s var(--sp-ease); }

/* Staff profile */
.sp-pf-card { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--linen); }
.sp-pf-card .tag { margin-top: 2px; }
.sp-pf-photo { width: 96px; height: 96px; border-radius: 48px; object-fit: cover; object-position: top; border: 1px solid var(--pale); flex: none; }
.sp-pf-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sp-pubs { margin: 0; padding-left: 1.4em; display: grid; gap: 12px; line-height: 1.6; }
.sp-pubs b { color: var(--text); font-weight: 600; }
table.data.sp-table-plain th:first-child { text-align: left; width: auto; }

/* Tenders */
.sp-table td > .tag { align-self: flex-start; }
.sp-close { display: inline-flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.sp-close.soon { color: var(--error); font-weight: 700; }
.sp-close small { font-size: .75rem; font-weight: 600; }

/* Pager inside a card */
.sp-pager .pager { margin: 0; }
.sp-pager .pager a.more { min-height: 44px; display: inline-flex; align-items: center; }

/* Contact */
.sp-hot-gap { display: flex; flex-direction: column; min-height: 52px; justify-content: center; padding: 6px 16px; border-radius: 6px; background: var(--white); border: 1px dashed var(--light); line-height: 1.25; }
.sp-hot-n .sp-hot-gap { color: var(--text); }
.sp-hot-n .sp-hot-gap > span { font-size: .75rem; color: var(--body); }
.sp-hot-n .sp-gap { color: #8A4B00; font-size: .9375rem; }
.sp-hotline .sh-glyph { background: var(--white); }
.sp-map { margin: 0; }
.sp-reach-a { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.sp-reach-a .more { margin-top: 0; }
.sp-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sp-form legend { font-weight: 600; margin-bottom: 8px; }
.sp-form .captcha-row .field { flex: 1 1 200px; }
.sp-form > .alert { margin: 0; }

/* Subscribe: one column form */
.sp-form-1 { grid-template-columns: minmax(0, 560px); }

html.contrast-high :is(.sp-seg-links a, .sp-chips-links a, .sp-hot-gap) { background: #000 !important; color: #FFFF00 !important; border-color: #FFF !important; }

@media (max-width: 960px) {
  .sp-dir-av { width: 96px; height: 96px; font-size: 1.75rem; }
}
@media (max-width: 640px) {
  .sp-card-head .sp-seg-links { width: 100%; }
  .sp-seg-links a { flex: 1; justify-content: center; padding: 0 10px; font-size: .875rem; }
  .sp-chips-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .sp-chips-links a { flex: none; }
  .sp-filter-2 { grid-template-columns: 1fr; }
  .sp-dir-av { width: 112px; height: 112px; }
  .sp-pf-card { flex-direction: column; align-items: flex-start; }
  .sp-sort { width: 100%; } .sp-sort .input { flex: 1; }
}

/* Inside pages: media views (Service Portal). Owned by one builder; merged into inner.css later. */
/* News, events, gallery, videos, varieties, search, sitemap. Builds on the sp- system in inner.css. */

/* Chip filters that are links (server-side filters): same look as .sp-chips button */
.sp-chips-nav { margin-top: 0; }
.sp-chips-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--light); border-radius: 22px; background: var(--white); color: var(--navy); font-size: .875rem; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.sp-chips-nav a:hover { border-color: var(--navy); background: var(--tint); color: var(--navy); }
.sp-chips-nav a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 600; }
.sp-chips-nav .ct { font-size: .75rem; min-width: 22px; padding: 0 6px; border-radius: 10px; background: var(--tint-2); color: var(--navy); font-weight: 700; line-height: 20px; text-align: center; }
.sp-chips-nav a[aria-current="true"] .ct { background: var(--blue); color: var(--white); }

/* Meta line: date, venue, count */
.sp-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .875rem; color: var(--body); }
.sp-meta-row > span { display: inline-flex; align-items: center; gap: 6px; }
.sp-meta-row .icon { color: var(--blue); flex: none; }
.sp-meta-row a { min-height: 44px; display: inline-flex; align-items: center; }

/* Whole card is the link target: the heading link stretches over its list item */
.sp-news-i, .sp-album, .sp-event { position: relative; }
.sp-news-i h3 a::after, .sp-album h3 a::after, .sp-event h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sp-news-i h3 a, .sp-album h3 a, .sp-event h3 a, .sp-feature h2 a { color: var(--navy); text-decoration: none; }
.sp-news-i:hover h3 a, .sp-album:hover h3 a, .sp-event:hover h3 a, .sp-feature h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-news-i:focus-within, .sp-album:focus-within, .sp-event:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.sp-news-i h3 a:focus-visible, .sp-album h3 a:focus-visible, .sp-event h3 a:focus-visible { outline: 0; }

/* News list */
.sp-news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sp-news-i { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 18px; padding: 14px; border: 1px solid var(--pale); border-radius: 6px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.sp-news-i:hover { border-color: var(--mid); box-shadow: var(--sp-shadow); }
.sp-news-ph { height: 140px; border-radius: 6px; }
.sp-news-t { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sp-news-t h3 { font-size: 1.125rem; line-height: 1.4; }
.sp-news-t p { font-size: .9375rem; color: var(--body); line-height: 1.55; }
.sp-news-t .sp-nodoc { display: inline-flex; align-items: center; gap: 4px; }

/* Article (news detail) */
.sp-article .sp-meta-row { margin-bottom: 16px; }
.sp-figure { margin: 0 0 20px; }
.sp-figure .ph { height: 380px; border-radius: 6px; }
.sp-figure figcaption { font-size: .8125rem; color: var(--body); margin-top: 8px; }
.sp-article .share-row { margin-top: 22px; }
.sp-article .share-btn { width: 44px; height: 44px; border-radius: 22px; }
.sp-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.sp-thumbs a { display: block; border-radius: 6px; overflow: hidden; }
.sp-thumbs .ph { height: 130px; transition: transform .3s var(--sp-ease); }
.sp-thumbs a:hover .ph { transform: scale(1.03); }
.sp-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-prevnext a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--pale); border-radius: 6px; text-decoration: none; color: var(--navy); min-height: 64px; }
.sp-prevnext a:hover { border-color: var(--navy); background: var(--tint); }
.sp-prevnext a.next { grid-column: 2; text-align: right; align-items: flex-end; }
.sp-prevnext small { display: inline-flex; align-items: center; gap: 4px; color: var(--body); font-size: .8125rem; }
.sp-prevnext b { font-weight: 600; line-height: 1.4; }
.sp-sub { font-size: 1rem; color: var(--navy); margin: 20px 0 8px; }
.sp-latest { list-style: none; margin: 0; padding: 0; }
.sp-latest a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; min-height: 44px; border-bottom: 1px dashed var(--linen); text-decoration: none; color: var(--text); }
.sp-latest li:last-child a { border-bottom: 0; }
.sp-latest a:hover span { color: var(--navy); text-decoration: underline; }
.sp-latest small { font-size: .8125rem; color: var(--body); }
.sp-more { margin-top: 14px; }

/* Events: date badge rows */
.sp-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-event { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--pale); border-radius: 6px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.sp-event:hover { border-color: var(--mid); box-shadow: var(--sp-shadow); }
.sp-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 76px; min-height: 76px; border-radius: 8px; background: var(--navy); color: var(--white); text-align: center; line-height: 1.1; }
.sp-date b { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-date span { font-size: .75rem; color: var(--pale); margin-top: 4px; text-transform: uppercase; letter-spacing: .03em; }
.sp-date .icon { width: 28px; height: 28px; color: var(--pale); }
.sp-event-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp-event-t h3 { font-size: 1.0625rem; line-height: 1.4; }
.sp-event-t p { font-size: .9375rem; color: var(--body); }
.sp-event-ph { width: 140px; height: 84px; border-radius: 6px; }

/* Gallery: featured album and album cards */
.sp-feature { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); padding: 0; overflow: hidden; }
.sp-feature-ph { display: block; }
.sp-feature-ph .ph { height: 100%; min-height: 300px; }
.sp-feature-t { padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-content: center; }
.sp-feature-t h2 { font-size: 1.5rem; line-height: 1.3; }
.sp-feature-t p { color: var(--body); line-height: 1.6; }
.sp-feature-t .btn { margin-top: 6px; }
.sp-albums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.sp-album { border: 1px solid var(--pale); border-radius: 6px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.sp-album:hover { border-color: var(--mid); box-shadow: var(--sp-shadow); }
.sp-album .ph { height: 200px; }
.sp-album .ph img { transition: transform .35s var(--sp-ease); }
.sp-album:hover .ph img { transform: scale(1.04); }
.sp-album-t { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sp-album-t h3 { font-size: 1.0625rem; line-height: 1.4; }
.sp-album-meta { margin-bottom: 12px; }
.sp-album-lede { color: var(--body); line-height: 1.6; max-width: 820px; margin-bottom: 4px; }
.sp-photos { margin-top: 16px; }
.sp-photos .no-file { height: 100%; border-radius: 10px; }
.sp-card-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--linen); display: flex; gap: 12px; flex-wrap: wrap; }

/* Videos */
.sp-videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.sp-video { border: 1px solid var(--pale); border-radius: 6px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.sp-video-t { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.sp-video-t h3 { font-size: 1.0625rem; line-height: 1.4; color: var(--navy); }
.sp-video-t p { font-size: .9375rem; color: var(--body); }
.sp-yt { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .875rem; font-weight: 600; }

/* Single-field filter bar (search + button) */
.sp-filter-1 { grid-template-columns: minmax(0,1fr) auto; }
.sp-filter-a { display: flex; gap: 10px; align-items: center; }
.sp-filter-1 + .sp-chips-nav { margin-top: 16px; }

/* Varieties table and detail */
.sp-v { display: flex; flex-direction: column; gap: 2px; }
.sp-v a { font-weight: 600; min-height: 24px; }
.sp-v small { font-size: .8125rem; color: var(--body); line-height: 1.45; }
table.data.sp-vtable td { vertical-align: top; }
.sp-vhead { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 20px; align-items: start; }
.sp-vphoto { height: 220px; border-radius: 6px; }
table.data.sp-table.sp-traits th, table.data.sp-table.sp-traits th:first-child { background: var(--tint); color: var(--navy); text-align: left; width: 34%; border-bottom: 1px solid var(--linen); font-size: .875rem; }
table.data.sp-traits tbody tr:nth-child(even) td { background: var(--white); }
table.data.sp-traits tbody tr:hover td { background: var(--white); }
table.data.sp-traits tr:last-child th { border-bottom: 0; }
.sp-traits-wrap, .sp-vhead .table-wrap { border: 1px solid var(--pale); border-radius: 6px; overflow: hidden; }
.sp-cta { margin-top: 18px; }

/* Search results */
.sp-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sp-results a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--pale); border-radius: 6px; text-decoration: none; color: var(--navy); }
.sp-results a:hover { border-color: var(--navy); background: var(--tint); }
.sp-results a > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-results b { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.sp-results small { font-size: .8125rem; color: var(--body); }
.sp-results a > .icon { flex: none; transition: transform .2s var(--sp-ease); }
.sp-results a:hover > .icon { transform: translateX(3px); }

/* Sitemap */
.sp-map-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; align-items: start; }
.sp-map-grid .sp-card-head { margin-bottom: 10px; }
.sp-map-grid .sp-card-head h2 a { color: var(--navy); text-decoration: none; }
.sp-map-grid .sp-card-head h2 a:hover { text-decoration: underline; }
.sp-maplist { list-style: none; margin: 0; padding: 0; }
.sp-maplist a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px; border-radius: 4px; color: var(--text); text-decoration: none; font-size: .9375rem; }
.sp-maplist a .icon { color: var(--blue); flex: none; }
.sp-maplist a:hover { background: var(--tint); color: var(--navy); }

html.contrast-high :is(.sp-chips-nav a, .sp-news-i, .sp-event, .sp-album, .sp-video, .sp-results a, .sp-prevnext a) { background: #000 !important; color: #FFF !important; border-color: #FFF !important; }
html.contrast-high :is(.sp-chips-nav a, .sp-news-i h3 a, .sp-album h3 a, .sp-event h3 a, .sp-results b) { color: #FFFF00 !important; }

@media (max-width: 1100px) {
  .sp-map-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .sp-albums, .sp-videos { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sp-feature { grid-template-columns: 1fr; }
  .sp-feature-ph .ph { min-height: 240px; }
  .sp-vhead { grid-template-columns: 1fr; }
  .sp-thumbs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sp-filter.sp-filter-1 { grid-template-columns: minmax(0,1fr) auto; }
  .sp-filter-1 .sp-search { grid-column: auto; }
}
@media (max-width: 640px) {
  .sp-chips-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .sp-chips-nav a { flex: none; }
  .sp-news-i { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .sp-news-ph { height: 170px; }
  .sp-event { grid-template-columns: 64px minmax(0,1fr); gap: 12px; padding: 12px; align-items: start; }
  .sp-date { width: 64px; min-height: 64px; }
  .sp-date b { font-size: 1.375rem; }
  .sp-event > .tag, .sp-event-ph { display: none; }
  .sp-albums, .sp-videos, .sp-map-grid { grid-template-columns: 1fr; }
  .sp-feature-t { padding: 18px 16px; }
  .sp-feature-t h2 { font-size: 1.25rem; }
  .sp-figure .ph { height: 220px; }
  .sp-prevnext { grid-template-columns: 1fr; }
  .sp-prevnext a.next { grid-column: auto; }
  .sp-filter.sp-filter-1 { grid-template-columns: 1fr; }
  .sp-filter-a .btn { flex: 1; }
  .sp-vphoto { height: 180px; }
  .sp-article .share-row .push { margin-left: 0; width: 100%; }
  .stackable table.data.sp-vtable tr { grid-template-columns: 1fr 1fr; }
  /* Traits table stays a two-column table on phones */
  .sp-vhead .table-wrap { overflow: visible; }
}
@media print { .sp-chips-nav, .sp-filter, .sp-card-foot, .share-row { display: none !important; } }
