/*
Theme Name:   Hello Elementor Child
Template:     hello-elementor
Version:      1.0.0
Description:  Site styles for the National Epidemiology Branch site. Content lives in native Elementor
              widgets; this file only styles them through CSS classes set in each widget's
              Advanced > CSS Classes field. Colours and fonts come from Elementor Site Settings
              (globals) — use var(--e-global-color-*) here, not hex values.
*/

/* Links in running text are underlined (brief §3: underlined body links, no colour-only distinctions). */
.elementor-widget-text-editor a { text-decoration: underline; text-underline-offset: 3px; }

/* Text links (class neb-link on a Heading widget): NEB blue, underlined, as in the mockup. */
.neb-link a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.neb-link a:hover { text-decoration-thickness: 3px; }
.neb-link-plain a { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Card titles link to the record; underline on hover only. */
.neb-title-link a { color: inherit; text-decoration: none; }
.neb-title-link a:hover, .neb-title-link a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* Photos in the Insights cards keep their shape whatever size is uploaded. */
.neb-img-wide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.neb-img-square img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* In a card, the date line sits at the bottom so cards in a row line up. */
.neb-push-down { margin-top: auto; padding-top: 6px; }

/* A one-item Loop Grid whose card fills the height its column gives it (the latest bulletin, level with
   Earlier issues). Elementor's loop wrappers otherwise stop at the card's own height. */
.neb-fill > .elementor-widget-container, .neb-fill .elementor-loop-container, .neb-fill .e-loop-item, .neb-fill .e-loop-item > .e-con { height: 100%; }

/* Latest bulletin, phone: the epi-week block is a left-aligned lockup, the big week number with "Epi week"
   and the year stacked beside it, level with the card text below (Danny, 1 November 2026). */
@media (max-width: 767px) {
	.e-con.neb-epi { display: grid !important; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; }
	.e-con.neb-epi > :nth-child(1) { grid-area: 1 / 2; align-self: end; }
	.e-con.neb-epi > :nth-child(2) { grid-area: 1 / 1 / 3 / 2; }
	.e-con.neb-epi > :nth-child(2) .elementor-heading-title { line-height: .9 !important; }
	.e-con.neb-epi > :nth-child(3) { grid-area: 2 / 2; align-self: start; }
}

/* A thin rule between the small Insights cards. */
.neb-divided .e-loop-item + .e-loop-item { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 30px; }
.neb-divided-light .e-loop-item + .e-loop-item { border-top: 1px solid var(--e-global-color-lightblue); padding-top: 20px; }

/* Hero: the photo is the container's background (edit it in Elementor); this black fade keeps the text
   readable whatever photo is chosen. Left to right on desktop, bottom to top on mobile. */
.e-con.neb-hero { position: relative; }
.e-con.neb-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .72) 38%, rgba(0, 0, 0, .18) 72%, rgba(0, 0, 0, 0) 100%),
	            linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, 0) 34%); }
.e-con.neb-hero > .e-con-inner { position: relative; z-index: 1; }
/* Tablet and phone: no photo. The hero is NEB blue with white type (Danny, 10 Nov; it was pale blue) and the
   quick links sit in a navy band across its foot. The search button turns navy so it stands off the blue.
   Elementor's colour controls aren't responsive, hence !important on the few values that change here. */
@media (max-width: 1024px) {
	.e-con.neb-hero { background-image: none !important; background-color: var(--e-global-color-secondary) !important; }
	.e-con.neb-hero::before { display: none; }
	.e-con.neb-hero h1.elementor-heading-title { color: #fff !important; }
	.e-con.neb-hero .elementor-widget-text-editor, .e-con.neb-hero p.elementor-heading-title { color: #fff !important; }
	.neb-hero-search .elementor-search-form__container { border: 0 !important; }
	.neb-hero-search .elementor-search-form__submit { background-color: var(--e-global-color-primary) !important; }
	.e-con.neb-quick { width: calc(100% + 48px) !important; max-width: none !important; margin: 40px -24px 0 !important; padding: 0 24px !important; border-top: 0 !important; background: var(--e-global-color-primary); }
}
@media (max-width: 767px) {
	.e-con.neb-quick { width: calc(100% + 32px) !important; margin: 40px -16px 0 !important; padding: 0 16px !important; }
	.neb-quick > .e-con:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, .3); }
	.neb-quick > .e-con:last-child { padding-bottom: 28px; }
}
.neb-quick > a.e-con:hover .elementor-heading-title, .neb-quick > a.e-con:focus-visible .elementor-heading-title { text-decoration: underline; text-underline-offset: 5px; }

/* Resource tiles: on hover or keyboard focus the tile fills pale blue, the border turns blue, the icon lifts
   and a blue bar sweeps along the foot. Colour only for anyone who has asked for reduced motion. */
a.e-con.neb-tile { position: relative; transition: border-color .2s, background-color .2s; }
a.e-con.neb-tile::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 4px; background: var(--e-global-color-secondary);
	transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.22, .61, .36, 1); }
a.e-con.neb-tile img { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
a.e-con.neb-tile:hover, a.e-con.neb-tile:focus-visible { border-color: var(--e-global-color-secondary); background-color: var(--e-global-color-paleblue); }
a.e-con.neb-tile:hover::after, a.e-con.neb-tile:focus-visible::after { transform: scaleX(1); }
a.e-con.neb-tile:hover img, a.e-con.neb-tile:focus-visible img { transform: translateY(-6px) scale(1.06); }
/* Text tiles (section pages): no paragraph margin under the description, so the padding is even all round. */
a.e-con.neb-tile p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
	a.e-con.neb-tile::after, a.e-con.neb-tile img { transition: none; }
	a.e-con.neb-tile:hover img, a.e-con.neb-tile:focus-visible img { transform: none; }
}

/* The header sits above everything after it, so an open dropdown covers the page and footer below
   (on a short page the footer comes up under the menu). */
.elementor-location-header { position: relative; z-index: 100; }

/* Breadcrumbs ([neb_breadcrumbs]): always from Home, ending with the current page (not a link). Links are
   navy like the current page, underlined only on hover or focus (Danny, 1 November 2026). */
.neb-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.neb-crumbs li { display: flex; align-items: center; gap: 8px; color: var(--e-global-color-primary); }
.neb-crumbs li + li::before { content: "›"; color: var(--e-global-color-muted); }
/* nav.neb-crumbs: outranks the kit's link colour. */
nav.neb-crumbs a { color: var(--e-global-color-primary); text-decoration: none; }
nav.neb-crumbs a:hover, nav.neb-crumbs a:focus-visible { color: var(--e-global-color-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Header: logos keep their proportions at the height set in Elementor. */
.neb-logo img { width: auto; }
.neb-main-menu .elementor-nav-menu--main .elementor-nav-menu { justify-content: flex-end; }
.neb-main-menu .sub-arrow { color: var(--e-global-color-secondary); font-size: 12px; }
.neb-main-menu .sub-arrow svg { width: 12px; height: 12px; fill: currentColor; }
.neb-main-menu .elementor-nav-menu--dropdown { border: 1px solid var(--e-global-color-lightblue); }
/* Desktop dropdowns: one white panel as wide as its longest item, lifted off the page by a soft navy shadow.
   The one place the site uses a shadow (Danny, 1 November 2026). */
.neb-main-menu .elementor-nav-menu--main .sub-menu { width: max-content !important; min-width: 220px !important; max-width: none !important;
	padding: 8px 0; border: 0; background: #fff; box-shadow: 0 12px 28px rgba(33, 67, 99, .18); }
.neb-main-menu .elementor-nav-menu--main .sub-menu a { white-space: nowrap; }

/* Header search: the magnifier (a 44px target) opens a small search pop-up just under the header,
   lined up with the content column's right edge. */
.neb-search-toggle a { display: block; padding: 10px; transition: background-color .15s; }
.neb-search-toggle a:hover, .neb-search-toggle a:focus-visible { background-color: var(--e-global-color-paleblue); }
.neb-search-pop .dialog-widget-content { margin-right: max(24px, calc((100% - 1200px) / 2)) !important; }

/* Government strip on phones: only the first utility link (A–Z of topics); the rest are in the menu and footer. */
@media (max-width: 767px) {
	.neb-utility .elementor-nav-menu > li:not(:first-child) { display: none; }
}

/* Pagination under listings (Loop Grid with class neb-paged, lib paged()): square 44px numbers with a light blue
   rule, the current page filled navy, Previous and Next as words. */
.neb-paged .elementor-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; text-align: left; }
.neb-paged .elementor-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; margin: 0 !important; padding: 0 14px;
	border: 1px solid var(--e-global-color-lightblue); color: var(--e-global-color-primary); font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s; }
.neb-paged .elementor-pagination a.page-numbers:hover, .neb-paged .elementor-pagination a.page-numbers:focus-visible { border-color: var(--e-global-color-secondary); background: var(--e-global-color-paleblue); }
.neb-paged .elementor-pagination .page-numbers.current { border-color: var(--e-global-color-primary); background: var(--e-global-color-primary); color: #fff; }
.neb-paged .elementor-pagination .page-numbers.dots { border-color: transparent; }
.neb-paged .elementor-pagination span.prev, .neb-paged .elementor-pagination span.next { color: var(--e-global-color-muted); }

/* Dark page heads (class neb-on-dark, e.g. Data and surveillance): breadcrumbs in white and light blue. */
.neb-on-dark nav.neb-crumbs a, .neb-on-dark nav.neb-crumbs a:hover, .neb-on-dark nav.neb-crumbs a:focus-visible { color: #fff; }
.neb-on-dark .neb-crumbs li, .neb-on-dark .neb-crumbs li + li::before { color: var(--e-global-color-lightblue); }

/* Links with the homepage's circle arrow (a.e-con.neb-arrow-link, and the rows a.e-con.neb-row-link): the label
   underlines and the circle nudges right on hover or keyboard focus. The circle stays still for reduced motion. */
a.e-con.neb-arrow-link img, a.e-con.neb-row-link img { transition: transform .25s cubic-bezier(.22, .61, .36, 1); }
a.e-con.neb-arrow-link:hover .elementor-heading-title, a.e-con.neb-arrow-link:focus-visible .elementor-heading-title,
a.e-con.neb-row-link:hover .neb-row-title .elementor-heading-title, a.e-con.neb-row-link:focus-visible .neb-row-title .elementor-heading-title { text-decoration: underline; text-underline-offset: 5px; }
a.e-con.neb-arrow-link:hover img, a.e-con.neb-arrow-link:focus-visible img, a.e-con.neb-row-link:hover img, a.e-con.neb-row-link:focus-visible img { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
	a.e-con.neb-arrow-link img, a.e-con.neb-row-link img { transition: none; transform: none !important; }
}

/* The circle-arrow link as one run of text (arrow_inline() in the build): the circle stays after the last word when
   the label wraps. Same look and hover as a.e-con.neb-arrow-link; --small for the Leadership team cards. */
.elementor-widget-text-editor p:has(> a.neb-arrow-inline) { margin: 0; }
a.neb-arrow-inline { font-family: Outfit, sans-serif; font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--e-global-color-primary); text-decoration: none; }
a.neb-arrow-inline .neb-arrow-end { white-space: nowrap; }
a.neb-arrow-inline img { display: inline-block; width: 34px; height: 34px; margin: -4px 0 0 14px; vertical-align: middle; transition: transform .25s cubic-bezier(.22, .61, .36, 1); }
a.neb-arrow-inline--small { font-size: 16px; }
a.neb-arrow-inline--small img { width: 28px; height: 28px; margin: -3px 0 0 10px; }
a.neb-arrow-inline:hover .neb-arrow-text, a.neb-arrow-inline:focus-visible .neb-arrow-text { text-decoration: underline; text-underline-offset: 5px; }
a.neb-arrow-inline:hover img, a.neb-arrow-inline:focus-visible img { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
	a.neb-arrow-inline img { transition: none; transform: none !important; }
}
@media (max-width: 767px) {
	a.neb-arrow-inline { font-size: 18px; }
	a.neb-arrow-inline--small { font-size: 16px; }
}

/* A–Z letters ([neb_az_letters], plugin inc/topics.php): square letters, nine across on desktop, thirteen on
   tablet (two even rows), six on phones; 44px or more each. Letters with no topics yet are greyed, not links. */
.neb-az ul { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.neb-az a, .neb-az span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-height: 44px;
	font-family: var(--e-global-typography-primary-font-family), sans-serif; font-size: 20px; font-weight: 600; line-height: 1; }
.neb-az a { border: 1px solid var(--e-global-color-lightblue); background: #fff; color: var(--e-global-color-primary); text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.neb-az a:hover, .neb-az a:focus-visible { border-color: var(--e-global-color-primary); background: var(--e-global-color-primary); color: #fff; }
.neb-az span { color: var(--e-global-color-muted); opacity: .5; }
@media (max-width: 1024px) { .neb-az ul { grid-template-columns: repeat(13, 1fr); } }
@media (max-width: 767px) { .neb-az ul { grid-template-columns: repeat(6, 1fr); gap: 6px; } }

/* Photo page heads (class neb-photo-head, e.g. Data and surveillance): the photo is the container's background;
   navy fades over it so the white type reads. Desktop: solid navy on the left, clearing to the right. Tablet:
   heavier all over. Phone: the photo is a band across the top (Elementor: contain, top) running into navy. */
.e-con.neb-photo-head { position: relative; }
.e-con.neb-photo-head::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(90deg, #214363 0%, #214363 32%, rgba(33, 67, 99, .78) 52%, rgba(33, 67, 99, .2) 80%, rgba(33, 67, 99, .05) 100%); }
.e-con.neb-photo-head > .e-con-inner { position: relative; z-index: 1; }
@media (max-width: 1024px) {
	.e-con.neb-photo-head::before { background: linear-gradient(90deg, #214363 0%, rgba(33, 67, 99, .9) 50%, rgba(33, 67, 99, .55) 100%); }
}
@media (max-width: 767px) {
	/* The band is the phone's width at the photo's 3:2, so it's measured in vw; the type starts just above its foot.
	   Elementor pads a boxed container's inner box from this variable. */
	.e-con.neb-photo-head { --padding-top: 54vw !important; }
	.e-con.neb-photo-head::before { background: linear-gradient(180deg, rgba(33, 67, 99, 0) 0, rgba(33, 67, 99, .25) 30vw, #214363 66vw); }
}

/* Dashboards tabs (class neb-data-tabs, sections.php): the list of chart sets down the left, from the top, behind a
   light blue rule. The current set is pale blue with a NEB blue bar; the others are plain navy text. Phones:
   Elementor turns them into an accordion. */
.neb-data-tabs { --n-tabs-heading-justify-content: flex-start; --n-tabs-title-gap: 0; --n-tabs-title-justify-content: flex-start;
	--n-tabs-title-color: var(--e-global-color-primary); --n-tabs-title-color-hover: var(--e-global-color-primary); --n-tabs-title-color-active: var(--e-global-color-primary);
	--n-tabs-title-background-color: transparent; --n-tabs-title-background-color-hover: var(--e-global-color-paleblue); --n-tabs-title-background-color-active: var(--e-global-color-paleblue);
	--n-tabs-title-padding-block-start: 16px; --n-tabs-title-padding-block-end: 16px; --n-tabs-title-padding-inline-start: 20px; --n-tabs-title-padding-inline-end: 20px; --n-tabs-title-font-size: 17px; }
.neb-data-tabs .e-n-tabs-heading { align-self: flex-start; border-inline-start: 1px solid var(--e-global-color-lightblue); }
.neb-data-tabs .e-n-tab-title { margin-inline-start: -1px; border: 0; border-inline-start: 3px solid transparent; border-radius: 0; text-align: start; font-family: Inter, sans-serif; font-weight: 600; line-height: 1.35; }
.neb-data-tabs .e-n-tab-title[aria-selected="true"] { border-inline-start-color: var(--e-global-color-secondary); }
.neb-data-tabs .e-n-tab-title:focus-visible { outline: 3px solid var(--e-global-color-secondary); outline-offset: -3px; }
@media (max-width: 767px) {
	.neb-data-tabs .e-n-tab-title { border-inline-start: 0; border-top: 1px solid var(--e-global-color-lightblue); margin-inline-start: 0; }
	.neb-data-tabs .e-n-tab-title[aria-selected="true"] { border-top-color: var(--e-global-color-secondary); }
}

/* Forms (data enquiries): a consent box big enough to see and tap, and a clear focus ring on every field. */
.neb-form .elementor-field-type-acceptance .elementor-field-subgroup { align-items: flex-start; }
.neb-form input[type="checkbox"] { width: 22px; height: 22px; margin: 2px 12px 0 0; accent-color: var(--e-global-color-primary); flex: none; }
.neb-form .elementor-field-option { display: flex; align-items: flex-start; }
.neb-form .elementor-field-option label { font-size: 17px; line-height: 1.5; }
.neb-form .elementor-field-textual { min-height: 48px; }
.neb-form .elementor-field-textual:focus, .neb-form input[type="checkbox"]:focus-visible { outline: 3px solid var(--e-global-color-secondary); outline-offset: 1px; }

/* The letters as one strip (A–Z page; class neb-az-strip on its shortcode widget). */
.neb-az-strip .neb-az ul { grid-template-columns: repeat(26, minmax(0, 1fr)); gap: 4px; }
.neb-az-strip .neb-az a, .neb-az-strip .neb-az span { aspect-ratio: auto; min-height: 48px; font-size: 18px; }
@media (max-width: 1024px) { .neb-az-strip .neb-az ul { grid-template-columns: repeat(13, minmax(0, 1fr)); } }
@media (max-width: 767px) { .neb-az-strip .neb-az ul { grid-template-columns: repeat(7, minmax(0, 1fr)); } .neb-az-strip .neb-az a, .neb-az-strip .neb-az span { min-height: 44px; } }

/* Diseases and health topics A–Z ([neb_topics_az]): search and category filter, then each letter as a big
   navy initial beside its entries in columns. Other names are "see" entries in regular weight. */
.neb-topics-tools { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; }
.neb-topics-field { display: flex; flex-direction: column; gap: 8px; flex: 0 1 300px; }
.neb-topics-field.neb-topics-q { flex: 1 1 360px; }
.neb-topics-field label { font: 600 16px/1.4 var(--e-global-typography-text-font-family), sans-serif; color: var(--e-global-color-primary); }
.neb-topics-field input, .neb-topics-field select { min-height: 48px; padding: 10px 14px; border: 1px solid var(--e-global-color-muted); border-radius: 0; background: #fff;
	font: 400 17px/1.4 var(--e-global-typography-text-font-family), sans-serif; color: var(--e-global-color-text); }
/* The category list draws its own arrow, 16px in from the edge, as every other select on the site does
   (library filter column): the menu's chevron, 12px in NEB blue. Text 16px in, to match. */
.neb-topics-field input, .neb-topics-field select { padding-left: 16px; padding-right: 16px; }
.neb-topics-field select { padding-right: 44px; appearance: none; -webkit-appearance: none; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23005EB8' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; }
.neb-topics-field input:focus, .neb-topics-field select:focus { outline: 3px solid var(--e-global-color-secondary); outline-offset: 1px; }
.neb-topics-count { min-height: 24px; margin: 16px 0 8px; font-size: 16px; color: var(--e-global-color-muted); }
.neb-topics-letter { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 28px 0 16px; border-top: 2px solid var(--e-global-color-primary); scroll-margin-top: 24px; }
.neb-topics-letter[hidden] { display: none; }
.neb-topics-letter h2 { margin: 0; font: 700 48px/1 var(--e-global-typography-primary-font-family), sans-serif; color: var(--e-global-color-primary); }
.neb-topics-letter ul { columns: 3; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.neb-topics-letter li { break-inside: avoid; margin: 0 0 14px; font-size: 16px; line-height: 1.45; color: var(--e-global-color-muted); }
.neb-topics-letter li[hidden] { display: none; }
.neb-topics-letter a { font: 600 18px/1.4 var(--e-global-typography-text-font-family), sans-serif; color: var(--e-global-color-primary); text-decoration: none; }
.neb-topics-letter a:hover, .neb-topics-letter a:focus-visible { color: var(--e-global-color-secondary); text-decoration: underline; text-underline-offset: 3px; }
.neb-topics-see a { font-weight: 400; }
.neb-topics-none { font-size: 17px; color: var(--e-global-color-primary); }
@media (max-width: 1024px) { .neb-topics-letter ul { columns: 2; } .neb-topics-letter { grid-template-columns: 80px minmax(0, 1fr); } }
@media (max-width: 767px) {
	.neb-topics-field, .neb-topics-field.neb-topics-q { flex: 1 1 100%; }
	.neb-topics-letter { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 20px; }
	.neb-topics-letter h2 { font-size: 40px; }
	.neb-topics-letter ul { columns: 1; }
}

/* Programme photo cards (Surveillance programmes): rounded squares, the name over a navy fade. Tablet and phone
   keep them square but no wider than 360px. */
/* Programme photo: as tall as its row (the facts set it), never taller; a wide band when stacked. */
.e-con.neb-prog-card { align-self: stretch; overflow: hidden; }
@media (max-width: 1024px) { .e-con.neb-prog-card { aspect-ratio: 3 / 1; } }
@media (max-width: 767px) { .e-con.neb-prog-card { aspect-ratio: 2 / 1; } }
/* Stacked, the title and Read more fill more of the band: the navy fade starts at the top so white type keeps its contrast. */
@media (max-width: 1024px) { body .e-con.neb-prog-card::before { background-image: linear-gradient(180deg, rgba(33, 67, 99, 0.5) 0%, rgba(33, 67, 99, 0.94) 72%) !important; } }

/* ---------- Topic page: classification panel and the manual's case definition ---------- */
/* The same panel on every topic, first in the body: notification class (and what it means), then categories. */
.neb-topic-class { margin: 0; padding: 8px 28px; background: var(--e-global-color-paleblue); border-radius: 12px; }
.neb-topic-class > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; }
.neb-topic-class > div + div { border-top: 1px solid var(--e-global-color-lightblue); }
.neb-topic-class dt { font: 600 16px/1.6 var(--e-global-typography-text-font-family), sans-serif; color: var(--e-global-color-muted); }
.neb-topic-class dd { margin: 0; font: 400 17px/1.6 var(--e-global-typography-text-font-family), sans-serif; color: var(--e-global-color-primary); }
.neb-topic-class dd strong { display: block; font: 600 20px/1.35 var(--e-global-typography-primary-font-family), sans-serif; margin-bottom: 4px; }
@media (max-width: 767px) {
	.neb-topic-class { padding: 4px 20px; }
	.neb-topic-class > div { grid-template-columns: minmax(0, 1fr); padding: 16px 0; }
}
.neb-topic-def, .neb-topic-monitoring { font: 400 18px/1.65 var(--e-global-typography-text-font-family), sans-serif; color: var(--e-global-color-text); }
.neb-topic-def h2, .neb-topic-monitoring h2 { margin: 0 0 12px; font: 600 28px/1.2 var(--e-global-typography-primary-font-family), sans-serif; color: var(--e-global-color-primary); }
.neb-topic-def h3 { margin: 28px 0 8px; font: 600 21px/1.3 var(--e-global-typography-primary-font-family), sans-serif; color: var(--e-global-color-primary); }
.neb-topic-def h4 { margin: 20px 0 6px; font: 600 18px/1.4 var(--e-global-typography-text-font-family), sans-serif; color: var(--e-global-color-primary); }
.neb-topic-def p, .neb-topic-monitoring p { margin: 0 0 10px; }
.neb-topic-def ul, .neb-topic-def ol { margin: 0 0 12px; padding-left: 1.4em; }
.neb-topic-def li { margin: 0 0 6px; }
.neb-topic-def a { color: var(--e-global-color-secondary); text-decoration: underline; text-underline-offset: 3px; }
.neb-topic-def .neb-topic-source { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--e-global-color-lightblue); font-size: 15px; line-height: 1.5; color: var(--e-global-color-muted); }
@media (max-width: 767px) {
	.neb-topic-def, .neb-topic-monitoring { font-size: 17px; }
	.neb-topic-def h2, .neb-topic-monitoring h2 { font-size: 24px; }
	.neb-topic-def h3 { font-size: 19px; }
}
.neb-topic-def + .neb-topic-monitoring { margin-top: 48px; }

/* ---------- Programme pages ---------- */
/* Topic lists from [neb_topic_list]: links in columns. */
.neb-topic-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.neb-topic-list li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--e-global-color-lightblue); font: 500 17px/1.45 var(--e-global-typography-text-font-family), sans-serif; }
.neb-topic-list a { color: var(--e-global-color-primary); text-decoration: none; }
.neb-topic-list a:hover, .neb-topic-list a:focus-visible { color: var(--e-global-color-secondary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .neb-topic-list { columns: 1; } }

/* Resources pages (build/resources.php): links in copy on navy panels, in the parish contacts and in the class cards;
   the travel advisory country lists reuse .neb-topic-list, as plain text. */
.neb-on-navy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.neb-on-navy p { margin: 0 0 10px; }
.neb-on-navy p:last-child { margin-bottom: 0; }
.neb-contact p { margin: 0 0 6px; }
.neb-contact p:last-child { margin-bottom: 0; }
.neb-contact a, a.neb-inline-link { color: var(--e-global-color-secondary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.neb-country-list li { font-weight: 400; }
.neb-disease-link .elementor-heading-title a { color: var(--e-global-color-secondary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.neb-disease-link .elementor-heading-title a:hover, .neb-disease-link .elementor-heading-title a:focus-visible { color: var(--e-global-color-primary); }
#case-definition { scroll-margin-top: 24px; }
/* Lists in the programme pages' text. */
.neb-prog-text ul, .neb-prog-text ol { margin: 0; padding-left: 1.4em; }
.neb-prog-text li { margin: 0 0 8px; }
.neb-prog-text li:last-child { margin-bottom: 0; }
.neb-prog-text ul + p, .neb-prog-text ol + p { margin-top: 1em; }
/* The navy link block in a programme page's sidebar: the label underlines and the arrow nudges on hover. */
a.e-con.neb-feature-link .neb-feature-arrow img { transition: transform .25s cubic-bezier(.22, .61, .36, 1); }
a.e-con.neb-feature-link:hover .elementor-heading-title, a.e-con.neb-feature-link:focus-visible .elementor-heading-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
a.e-con.neb-feature-link:hover .neb-feature-arrow img, a.e-con.neb-feature-link:focus-visible .neb-feature-arrow img { transform: translateX(4px); }
a.e-con.neb-feature-link:focus-visible { outline: 3px solid var(--e-global-color-secondary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { a.e-con.neb-feature-link .neb-feature-arrow img { transition: none; transform: none !important; } }
/* The sentinel sites roster: one fold (Elementor's nested accordion), a navy title between light blue rules. */
.neb-sites-acc .e-n-accordion-item-title { padding: 16px 0 !important; border-width: 1px 0 !important; border-style: solid !important; border-color: var(--e-global-color-lightblue) !important; background: none !important; justify-content: space-between; }
.neb-sites-acc .e-n-accordion-item-title-text { font: 600 19px/1.3 Outfit, sans-serif; color: var(--e-global-color-primary); }
.neb-sites-acc { --n-accordion-icon-normal-color: var(--e-global-color-primary); --n-accordion-icon-hover-color: var(--e-global-color-secondary); --n-accordion-icon-active-color: var(--e-global-color-primary); --n-accordion-icon-size: 16px; }
.neb-sites-acc .e-n-accordion-item-title:hover .e-n-accordion-item-title-text, .neb-sites-acc .e-n-accordion-item-title:focus-visible .e-n-accordion-item-title-text { text-decoration: underline; text-underline-offset: 4px; }
.neb-sites-acc .e-n-accordion-item > .e-con { border: 0 !important; }

/* Sentinel sites list, [neb_sentinel_roster]: parishes in two columns (one on phones). */
.neb-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.neb-roster h4 { margin: 0 0 8px; font: 600 19px/1.3 Outfit, sans-serif; color: var(--e-global-color-primary); }
.neb-roster ul { margin: 0; padding-left: 1.4em; font: 400 16px/1.5 Inter, sans-serif; color: var(--e-global-color-primary); }
.neb-roster li { margin: 0 0 6px; }
@media (max-width: 767px) { .neb-roster { grid-template-columns: minmax(0, 1fr); } }

/*
 * Sentinel sites map, [neb_sentinel_map] (Danny's wireframe, 10 November 2026): the map on the page's white (no
 * ground, Danny), held in view while the list scrolls; parishes pale blue with light blue borders, navy when chosen;
 * numbered navy circles; the parish's sites to the right. Stacks under 1025px.
 */
.neb-map { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 56px; align-items: start; }
.neb-map-figure { position: sticky; top: 24px; padding: 24px 0; }
.neb-map-canvas { position: relative; }
.neb-map-credit { margin: 12px 0 0; font-size: 15px; line-height: 1.4; color: var(--e-global-color-muted); }
.neb-map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.neb-map-islands path { fill: var(--e-global-color-paleblue); stroke: var(--e-global-color-lightblue); stroke-width: 1; vector-effect: non-scaling-stroke; }
.neb-map-parish path { fill: var(--e-global-color-paleblue); stroke: var(--e-global-color-lightblue); stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .15s ease; }
.neb-map-parish.is-hover path { fill: var(--e-global-color-lightblue); }
.neb-map-parish.is-active path { fill: var(--e-global-color-primary); stroke: #fff; }
.neb-map-leader { fill: none; stroke: var(--e-global-color-primary); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.neb-map .neb-map-num { position: absolute; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; margin: 0; padding: 0; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: var(--e-global-color-primary); color: #fff; font: 600 16px/1 Outfit, sans-serif; cursor: pointer; transition: background-color .15s ease; }
.neb-map .neb-map-num:hover, .neb-map .neb-map-num:focus { background: var(--e-global-color-secondary); color: #fff; }
.neb-map .neb-map-num[aria-pressed="true"] { border-color: var(--e-global-color-primary); background: #fff; color: var(--e-global-color-primary); }
.neb-map .neb-map-num:focus-visible, .neb-map .neb-map-key button:focus-visible, .neb-map .neb-map-back:focus-visible, .neb-map-dir:focus-visible { outline: 3px solid var(--e-global-color-secondary); outline-offset: 2px; }

.neb-map-title { margin: 0; font: 700 48px/1.08 Outfit, sans-serif; color: var(--e-global-color-primary); }
.neb-map-title:focus { outline: none; }
.neb-map-region { margin: 8px 0 32px; font: 400 21px/1.4 Inter, sans-serif; color: var(--e-global-color-muted); }
.neb-map-view[data-view="all"] .neb-map-title { font-size: 36px; }
.neb-map-view[data-view="all"] .neb-map-region { font-size: 18px; color: var(--e-global-color-text); }
.neb-map-view + .neb-map-view { margin-top: 56px; }
.neb-map.is-ready .neb-map-view + .neb-map-view { margin-top: 0; }

.neb-map-sites { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.neb-map-sites li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; padding: 22px 24px; background: var(--e-global-color-paleblue); }
.neb-map-site { font: 600 19px/1.3 Outfit, sans-serif; color: var(--e-global-color-primary); }
.neb-map-dir { display: inline-flex; flex: none; align-items: center; gap: 10px; font: 600 16px/1.3 Inter, sans-serif; color: var(--e-global-color-secondary); text-decoration: none; }
.neb-map-dir:hover { text-decoration: underline; text-underline-offset: 3px; }
.neb-map-arrow { display: block; width: 28px; height: 28px; transition: transform .15s ease; }
.neb-map-dir:hover .neb-map-arrow { transform: translateX(3px); }
.neb-map-none { font: 400 17px/1.5 Inter, sans-serif; color: var(--e-global-color-muted); }

.neb-map .neb-map-back { display: inline-flex; align-items: center; gap: 12px; margin: 28px 0 0; padding: 0; border: 0; background: none; font: 600 17px/1.3 Inter, sans-serif; color: var(--e-global-color-primary); cursor: pointer; }
.neb-map .neb-map-back:hover, .neb-map .neb-map-back:focus { background: none; color: var(--e-global-color-primary); text-decoration: underline; text-underline-offset: 3px; }
.neb-map-back .neb-map-arrow { transform: scaleX(-1); }

.neb-map-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.neb-map .neb-map-key button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; border: 0; border-radius: 0; background: none; font: 500 17px/1.3 Inter, sans-serif; color: var(--e-global-color-primary); text-align: left; cursor: pointer; }
.neb-map .neb-map-key button:hover, .neb-map .neb-map-key button:focus { background: var(--e-global-color-paleblue); color: var(--e-global-color-primary); }
.neb-map-key-num { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--e-global-color-primary); color: #fff; font: 600 15px/1 Outfit, sans-serif; }

@media (prefers-reduced-motion: reduce) {
	.neb-map-parish path, .neb-map .neb-map-num, .neb-map-arrow { transition: none; }
	.neb-map-dir:hover .neb-map-arrow { transform: none; }
}
@media (max-width: 1024px) {
	.neb-map { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.neb-map-figure { position: static; padding: 8px 0; }
	.neb-map .neb-map-num { width: 32px; height: 32px; font-size: 15px; }
	.neb-map-panel { scroll-margin-top: 16px; }
}
@media (max-width: 767px) {
	.neb-map-figure { padding: 4px 0; }
	.neb-map .neb-map-num { width: 22px; height: 22px; border-width: 1.5px; font-size: 12px; }
	.neb-map-title { font-size: 34px; }
	.neb-map-view[data-view="all"] .neb-map-title { font-size: 28px; }
	.neb-map-region { margin-bottom: 24px; font-size: 18px; }
	.neb-map-sites li { padding: 18px; }
	.neb-map-key { grid-template-columns: minmax(0, 1fr); }
}

/* An insight (Single: insight): the photo, lists in the article, and its last line, where it was first published. */
.neb-insight-photo img { width: 100%; height: auto; }
.single-post .elementor-widget-theme-post-content ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.single-post .elementor-widget-theme-post-content li + li { margin-top: .5em; }
.neb-insight-source { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--e-global-color-lightblue); font-size: 15px; line-height: 1.5; color: var(--e-global-color-muted); }
.neb-insight-source a { color: var(--e-global-color-secondary); text-underline-offset: 3px; }

/* The pinned header row (templates.php): a pale blue rule under it once the page has scrolled. No shadow. */
.elementor-location-header .elementor-sticky--effects { border-bottom: 1px solid var(--e-global-color-lightblue); }
/* Once the strip has scrolled away, the search pop-up drops in just under the pinned row (100px), not the full header. */
body:has(.elementor-location-header .elementor-sticky--effects) .neb-search-pop .dialog-widget-content { margin-top: 100px !important; }

/* Card titles that wrap break into even lines, so "and" starts the second line of "Epidemiology Research and Analysis
   Unit" (Danny, 11 November 2026). */
.neb-title-link .elementor-heading-title { text-wrap: balance; }

/* Footer links are white with no underline; the underline shows on hover and keyboard focus (Danny, 11 November 2026:
   "MOH does not need to b underline"). */
.neb-foot-plain a { color: #fff; text-decoration: none; }
.neb-foot-plain a:hover, .neb-foot-plain a:focus-visible,
.neb-footer-menu .elementor-item:hover, .neb-footer-menu .elementor-item:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
