/* Linkslandic Health Service. Mobile first: wider layouts are added in the
   min-width queries. One typeface, Source Sans 3, self-hosted. */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --teal-900: #08393b;
  --teal-800: #0f5c5e;
  --teal-700: #17716f;
  --teal-50: #e8f2f1;
  --sand-50: #faf7f2;
  --sand-100: #f2ece2;
  --sand-300: #dcd2c1;
  --coral-700: #b3412a;
  --coral-500: #e0694d;
  --ink: #1d2729;
  --ink-soft: #4f5b5d;
  --line: #d9dedd;
  --white: #fff;

  --ok: #1d6a43;
  --warn: #8a4b00;
  --bad: #a3271a;

  --focus-ring: #08393b;
  --focus-halo: #ffcd4a;

  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 2px;
  --gutter: 16px;
  --measure: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 1.125rem; line-height: 1.55; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 2rem; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }
p, ul, ol, dl { margin: 0 0 1em; }

a { color: var(--teal-800); text-underline-offset: 2px; }
a:hover { color: var(--teal-900); text-decoration-thickness: 2px; }

/* Focus: dark ring plus yellow halo, visible on white, sand and teal. */
:focus { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }
.hero :focus, .utility :focus { outline-color: var(--focus-halo); box-shadow: 0 0 0 6px var(--focus-ring); }
main:focus { outline: none; box-shadow: none; }
@media (forced-colors: active) { :focus { outline: 3px solid CanvasText; box-shadow: none; } }

.wrap { max-width: 70rem; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.placeholder { background: #fff1c2; padding: 0 .2em; font-weight: 600; }
.editor-only { font-weight: 400; font-size: .9rem; color: var(--warn); }

.skip-link { position: absolute; left: 8px; top: -100px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 8px; color: #fff; }
.top-strip { height: 4px; background: var(--teal-800); }

/* ---------- header */
.utility { background: var(--teal-900); color: #fff; font-size: .95rem; }
.utility-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; padding-top: 6px; padding-bottom: 6px; }
.utility p, .utility ul { margin: 0; }
.utility-help { display: flex; flex-wrap: wrap; gap: 0 18px; }
.utility a { color: #fff; font-weight: 600; }
.utility-links ul { list-style: none; padding: 0; display: flex; gap: 18px; }
.utility-links a { font-weight: 400; }

.site-header { border-bottom: 1px solid var(--line); }
.masthead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.site-name { font-size: 1.45rem; font-weight: 700; color: var(--teal-800); text-decoration: none; letter-spacing: -.01em; margin-right: auto; line-height: 1.15; }
.site-name:hover { color: var(--teal-900); text-decoration: underline; }

.site-search { display: flex; order: 3; width: 100%; }
.site-search input { flex: 1; min-width: 0; border-right: 0; }
.site-search button { border-radius: 0 var(--radius) var(--radius) 0; }

.menu-link { display: none; }
.js .menu-link { display: inline-block; font-weight: 600; color: var(--teal-800); padding: 6px 2px; }
.js .menu-link::after { content: " +"; }
.js .menu-link[aria-expanded="true"]::after { content: " \2212"; }

.site-nav { border-top: 1px solid var(--line); }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 auto; }
.site-nav a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover { color: var(--teal-800); text-decoration: underline; }
.site-nav a[aria-current] { color: var(--teal-800); box-shadow: inset 4px 0 0 var(--coral-500); padding-left: 12px; }

@media (min-width: 48em) {
  .site-search { order: 0; width: 20rem; }
}
@media (min-width: 64em) {
  .js .menu-link { display: none; }
  .js .site-nav, .site-nav { display: block; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .site-nav a { font-size: 1rem; }
  .site-nav a { border-bottom: 0; padding: 12px 0 10px; border-bottom: 4px solid transparent; }
  .site-nav a[aria-current] { box-shadow: none; padding-left: 0; border-bottom-color: var(--coral-500); }
}

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 0 0; margin: 0; font-size: .95rem; }
.breadcrumbs li:not(:last-child)::after { content: "\203A"; margin-left: 6px; color: var(--ink-soft); }

/* ---------- forms */
label, legend { font-weight: 600; display: block; margin-bottom: 4px; }
.hint { color: var(--ink-soft); margin: 0 0 6px; font-size: 1rem; }
input[type="search"], input[type="text"], select, textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%; max-width: 34rem;
  border: 2px solid #5f6b6d; border-radius: var(--radius); padding: 7px 10px; min-height: 44px;
}
textarea { min-height: 120px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.choice { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; }
.choice input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--teal-800); }
.choice label { font-weight: 400; margin: 0; }
.field { margin-bottom: 18px; }
button {
  font: 600 1.05rem var(--font); color: #fff; background: var(--teal-800); border: 2px solid var(--teal-800);
  border-radius: var(--radius); padding: 8px 18px; min-height: 44px; cursor: pointer;
}
button:hover { background: var(--teal-900); border-color: var(--teal-900); }
button.secondary { background: #fff; color: var(--teal-800); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-error { color: var(--bad); font-weight: 600; }

/* ---------- home */
.hero { background: var(--teal-800); color: #fff; padding: 32px 0 36px; }
.hero h1 { color: #fff; font-size: 2.1rem; max-width: 30rem; }
.hero-text { font-size: 1.2rem; max-width: 36rem; color: #e6f1f0; }
.hero-search { max-width: 40rem; margin-top: 22px; }
.hero-search label { color: #fff; }
.hero-search-row { display: flex; }
.hero-search input { border-color: #fff; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); max-width: none; }
.hero-search button { background: var(--coral-700); border-color: var(--coral-700); border-radius: 0 var(--radius) var(--radius) 0; }
.hero-search button:hover { background: #8f3220; border-color: #8f3220; }

.care-now { background: var(--sand-50); border-bottom: 1px solid var(--sand-300); padding: 28px 0 8px; }
.care-now-grid { display: grid; gap: 0; }
.care-now-col { padding: 16px 0; border-top: 1px solid var(--sand-300); }
.care-now-col h3 { font-size: 1.1rem; margin-bottom: .2em; }
.care-number { font-size: 2.2rem; font-weight: 700; line-height: 1.1; margin-bottom: .3em; }
.care-number a { color: var(--teal-800); text-decoration: none; }
.care-number a:hover { text-decoration: underline; }
.care-now-emergency .care-number a { color: var(--coral-700); }
.care-now-col p:last-child { margin-bottom: 0; }

.task-list { list-style: none; padding: 0; margin: 0; }
.task-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.task-list li:last-child { border-bottom: 0; }
.task-list a { font-weight: 600; }

.home-main { display: grid; gap: 12px 56px; padding-top: 32px; padding-bottom: 48px; }
.service-index { list-style: none; padding: 0; margin: 0; columns: 1; }
.service-index li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); }
.service-index a { font-weight: 700; font-size: 1.1rem; }
.service-index span { display: block; color: var(--ink-soft); font-size: 1rem; }
.more { margin-top: 14px; font-weight: 600; }
.home-aside section { margin-bottom: 32px; }
.news-feed { list-style: none; padding: 0; margin: 0; }
.news-feed li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.news-feed time { display: block; font-size: .95rem; color: var(--ink-soft); }
.news-feed a { font-weight: 600; }

@media (min-width: 48em) {
  .care-now-grid { grid-template-columns: repeat(3, 1fr); }
  .care-now-col { border-top: 0; border-left: 1px solid var(--sand-300); padding: 4px 24px 20px; }
  .care-now-col:first-child { border-left: 0; padding-left: 0; }
  .service-index { columns: 2; column-gap: 32px; }
  .hero h1 { font-size: 2.6rem; }
}
@media (min-width: 64em) {
  .hero { padding: 48px 0 52px; }
  .home-main { grid-template-columns: 2fr 1fr; }
}

/* ---------- inner pages */
.page-header { padding: 22px 0 6px; }
.lede { font-size: 1.25rem; max-width: var(--measure); color: var(--ink-soft); }
.page-body { padding-bottom: 56px; }
.page-body > * { max-width: 48rem; }
.page-body > .results, .page-body > .finder, .page-body > .section.region, .page-body > .section.request { max-width: none; }
.prose { max-width: var(--measure); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.section { margin: 30px 0; }
.meta { color: var(--ink-soft); font-size: 1rem; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .95em; }

.contents { background: var(--sand-50); border: 1px solid var(--sand-300); padding: 14px 18px; margin: 10px 0 24px; }
.contents h2 { font-size: 1.05rem; margin-bottom: .4em; }
.contents ul { margin: 0; padding-left: 1.2em; }
.contents li { margin: 3px 0; }

.note { background: var(--teal-50); padding: 14px 18px; margin: 22px 0; }
.note .prose > :last-child, .note > :last-child { margin-bottom: 0; }
.note-title { font-weight: 700; margin-bottom: .3em; }
.note-urgent { background: #fbe9e5; }
.note-urgent .note-title { color: var(--bad); }
.note-check { background: #fff6dd; outline: 2px dashed var(--warn); outline-offset: -2px; }

.steps { padding-left: 1.4em; }
.steps > li { padding-left: 4px; margin-bottom: 14px; }
.steps > li::marker { font-weight: 700; font-size: 1.2rem; color: var(--teal-800); }
.steps h3 { font-size: 1.2rem; margin-bottom: .2em; }

.link-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.link-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.link-list a { font-weight: 700; font-size: 1.1rem; }
.link-list p { margin: .2em 0 0; color: var(--ink-soft); }
.external { font-size: .9rem; color: var(--ink-soft); }

.orgs { margin: 0; }
.org { border-top: 1px solid var(--line); padding: 14px 0; }
.org dt { font-weight: 700; font-size: 1.15rem; margin-bottom: .2em; }
.org dd { margin: 0; }
.source { font-size: 1rem; color: var(--ink-soft); }

.table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 1rem; }
.table caption { text-align: left; font-weight: 700; font-size: 1.1rem; padding-bottom: 8px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.table thead th { border-bottom: 2px solid var(--ink); }
.cell-note { display: block; font-weight: 400; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }

@media (max-width: 47.99em) {
  .register thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .register tr { display: block; border-top: 1px solid var(--line); padding: 10px 0; }
  .register th, .register td { display: block; border: 0; padding: 2px 0; }
  .register td::before { content: attr(data-label) ": "; font-weight: 600; }
}

.status { font-weight: 700; }
.status-authorised, .status-current { color: var(--ok); }
.status-conditions, .status-pending { color: var(--warn); }
.status-suspended, .status-lapsed { color: var(--bad); }

.finder { background: var(--sand-50); border: 1px solid var(--sand-300); padding: 16px; margin: 8px 0 20px; }
@media (min-width: 48em) {
  .finder { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 0 16px; align-items: end; }
  .finder-single { grid-template-columns: 1fr auto; max-width: 48rem; }
  .finder .field { margin-bottom: 0; }
}

.result-count { font-weight: 600; }
.results { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.result { border-bottom: 1px solid var(--line); padding: 14px 0; }
.result[hidden] { display: none; }
.result-title { font-size: 1.2rem; margin-bottom: .3em; }
.result-facts { display: grid; gap: 2px 24px; margin: 0; font-size: 1rem; }
.result-facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 8px; }
.result-facts dt { color: var(--ink-soft); }
.result-facts dd { margin: 0; }
.address-flag { margin: 6px 0 0; font-size: .95rem; color: var(--warn); }
@media (min-width: 48em) { .result-facts { grid-template-columns: 1fr 1fr; } }

.search-results { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.search-results li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.search-title { font-weight: 700; font-size: 1.1rem; }
.search-results p { margin: .2em 0 0; color: var(--ink-soft); }

.news-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.news-list > li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.news-list h2 { font-size: 1.25rem; margin-bottom: .2em; }

.people { list-style: none; padding: 0; display: grid; gap: 0 32px; margin-bottom: 28px; border-top: 1px solid var(--line); }
.person { border-bottom: 1px solid var(--line); padding: 14px 0; }
.person h4 { margin-bottom: .1em; }
.person-role { font-weight: 600; color: var(--teal-800); margin-bottom: .4em; }
.interests { font-size: 1rem; margin: 0; }
@media (min-width: 48em) { .people { grid-template-columns: 1fr 1fr; } }

.region-jump ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 600; }
.region { border-top: 2px solid var(--ink); padding-top: 14px; }

.letter { border: 2px solid var(--teal-800); padding: 16px; margin-top: 20px; }
.letter-text { white-space: pre-wrap; font: 1rem/1.6 var(--font); background: var(--sand-50); padding: 14px; border: 1px solid var(--sand-300); }

.details { margin: 0; border-top: 1px solid var(--line); }
.details div { display: grid; gap: 2px 16px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.details dt { font-weight: 600; }
.details dd { margin: 0; }
@media (min-width: 40em) { .details div { grid-template-columns: 17rem 1fr; } }

/* ---------- footer */
.site-footer { background: var(--sand-100); border-top: 1px solid var(--sand-300); font-size: 1rem; margin-top: 0; }
.footer-urgent { padding-top: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--sand-300); }
.footer-urgent p { margin: 0; }
.footer-urgent a { color: var(--coral-700); }
.footer-grid { display: grid; gap: 20px 32px; padding-top: 24px; padding-bottom: 24px; }
.footer-heading { font-size: 1.05rem; margin-bottom: .5em; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 6px; }
.footer-address { color: var(--ink-soft); }
.footer-base { border-top: 1px solid var(--sand-300); padding-top: 14px; padding-bottom: 22px; color: var(--ink-soft); font-size: .95rem; }
.footer-base p { margin: 0 0 4px; }
@media (min-width: 40em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
