/* =========================================================================
   healthscreening.sg: site header, menus, mobile drawer and search (ported
   from Apex Sports Clinic, Nov 2026)
   -------------------------------------------------------------------------
   Markup: header.php (rendered from include/menu-data.php), search.php,
   include/search-*.php. Behaviour: js/menu.js and js/search.js. Desktop bar from 1200px; below that the burger
   opens the drawer. Loaded after the Porto theme CSS, so a few rules carry
   !important where the theme's own does (link colours, focus outlines).
   Reference the minified file (menu.min.css); minify with /minify.
   ========================================================================= */

:root {
    /* Brand: healthscreening.sg greens (css/hs-skins.css, css/clinic.css) */
    --hn-blue: #006E3A;
    --hn-blue-dark: #00592F;
    --hn-sky: #EEF8F1;
    --hn-sky-line: #CFE9D8;
    --hn-accent: #C9ECD3;
    --hn-accent-tint: #E9F6ED;
    --hn-accent-ink: #1F7A4A;
    --hn-ink: #2B2F2C;
    --hn-text: #4A4F4B;
    --hn-muted: #6B726D;
    --hn-line: #DFECE3;
    --hn-soft: #F6FAF7;
    --hn-wa: #25A244;
    --hn-radius: 16px;
    --hn-shadow: 0 28px 56px -20px rgba(0, 40, 20, .28), 0 0 0 1px rgba(0, 40, 20, .06);
    --hn-ease: cubic-bezier(.2, .8, .2, 1);
    --hn-bar-h: 68px;
    --hn-sans: Poppins, Arial, sans-serif;
}

@media (min-width: 1200px) {
    :root { --hn-bar-h: 88px; }
}

/* The header is position: sticky. Porto gives .body overflow-x: hidden in
   Safari, which makes it a scroll container and the header would scroll
   away with the page; clip trims the same overflow without that. */
html.safari:not(.no-safari-overflow-x-fix) .body {
    overflow-x: clip;
}

/* ---- Shared ----------------------------------------------------------- */

.hn-ico {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    display: inline-block;
    vertical-align: middle;
}

:where(.hn-header, .hn-drawer, .hn-sbox) button {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.hn-topbar ul,
.hn-header ul,
.hn-drawer ul,
.hn-sbox ul,
.hn-sbox ol,
.hn-sres {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hn-header li,
.hn-drawer li,
.hn-topbar li {
    line-height: inherit;
}

.hn-header p,
.hn-drawer p {
    margin: 0;
}

.hn-topbar a,
.hn-header a,
.hn-drawer a,
.hn-sbox a,
.hn-searchhero a,
.hn-searchpage a,
.hn-skip {
    text-decoration: none !important;
}

html .hn-header a:focus-visible,
html .hn-header button:focus-visible,
html .hn-drawer a:focus-visible,
html .hn-drawer button:focus-visible,
html .hn-sbox a:focus-visible,
html .hn-sbox button:focus-visible,
html .hn-searchpage a:focus-visible,
html .hn-searchhero a:focus-visible,
html .hn-searchhero button:focus-visible,
html .hn-skip:focus-visible {
    outline: 2px solid var(--hn-blue) !important;
    outline-offset: 2px;
}

html .hn-topbar a:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 2px;
}

.hn-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 3000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--hn-ink);
    color: #fff !important;
    font-family: var(--hn-sans);
    font-weight: 600;
    transition: top .2s;
}

.hn-skip:focus {
    top: 12px;
}

#hn-content {
    display: block;
    outline: 0;
}

.hn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--hn-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}

.hn-btn .hn-ico {
    width: 18px;
    height: 18px;
}

.hn-btn--primary {
    background: var(--hn-blue);
    color: #fff !important;
    box-shadow: 0 8px 18px -8px rgba(0, 110, 58, .55);
}

.hn-btn--primary:hover {
    background: var(--hn-blue-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.hn-btn--wa {
    background: var(--hn-wa);
    color: #fff !important;
}

.hn-btn--wa:hover {
    background: #1E8A39;
    color: #fff !important;
}

.hn-btn--ghost {
    background: #fff;
    border-color: var(--hn-line);
    color: var(--hn-ink) !important;
}

.hn-btn--ghost:hover {
    border-color: var(--hn-blue);
    color: var(--hn-blue) !important;
}

.hn-btn--block {
    display: flex;
    width: 100%;
}

/* ---- Top bar (desktop) ------------------------------------------------ */

.hn-topbar {
    display: none;
    background: var(--hn-blue);
    font-family: var(--hn-sans);
    font-size: 13.5px;
    line-height: 1;
}

@media (min-width: 1200px) {
    .hn-topbar { display: block; }
}

.hn-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
}

.hn-topbar__list {
    display: flex;
    align-items: center;
    gap: 26px;
}

.hn-topbar__list li {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.hn-topbar a,
.hn-topbar__list span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .92) !important;
    transition: color .2s;
}

.hn-topbar a:hover {
    color: #fff !important;
}

.hn-topbar .hn-ico {
    width: 15px;
    height: 15px;
    color: var(--hn-accent);
}

/* ---- Header bar ------------------------------------------------------- */

.hn-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
    /* Solid: a see-through bar let large headings show through the menu. */
    background: #fff;
    border-bottom: 1px solid var(--hn-line);
    transition: box-shadow .25s;
}

.hn-header.is-stuck {
    box-shadow: 0 12px 30px -18px rgba(0, 40, 20, .35);
}

.hn-header__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--hn-bar-h);
    transition: height .25s var(--hn-ease);
}

@media (min-width: 1200px) {
    .hn-header.is-stuck .hn-header__bar { height: 72px; }
}

/* The logo is a wide wordmark (7:1). It takes what the buttons leave, up
   to 260px, so the phone bar never overflows. */
.hn-logo {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    line-height: 0;
}

.hn-logo img {
    width: 260px;
    max-width: 100%;
    height: auto;
}

@media (min-width: 1200px) {
    .hn-logo { flex: none; }
    .hn-logo img { width: 250px; transition: width .25s var(--hn-ease); }
    .hn-header.is-stuck .hn-logo img { width: 228px; }
}

/* ---- Desktop nav ------------------------------------------------------ */

.hn-nav {
    display: none;
    margin-left: auto;
    height: 100%;
}

@media (min-width: 1200px) {
    .hn-nav { display: block; }
}

.hn-nav__list {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.hn-nav__item {
    position: relative;
    display: flex;
    align-items: center;
}

/* The mega panel spans the header and the wide dropdowns centre on it, so
   those items must not be the containing block (the sticky header is). */
.hn-nav__item--mega,
.hn-nav__item--wide {
    position: static;
}

.hn-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    padding: 0 7px;
    font-family: var(--hn-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--hn-ink) !important;
    white-space: nowrap;
    transition: color .2s;
}

/* The current section: a small pill under the label. */
.hn-nav__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 22px;
    height: 4px;
    margin-left: -11px;
    border-radius: 4px;
    background: var(--hn-blue);
    transform: scaleX(0);
    transition: transform .25s var(--hn-ease), bottom .25s var(--hn-ease);
}

.hn-header.is-stuck .hn-nav__link::after {
    bottom: 12px;
}

.hn-nav__item:hover > .hn-nav__link,
.hn-nav__item.is-open > .hn-nav__link,
.hn-nav__item.is-current > .hn-nav__link {
    color: var(--hn-blue) !important;
}

.hn-nav__item:hover > .hn-nav__link::after,
.hn-nav__item.is-open > .hn-nav__link::after,
.hn-nav__item.is-current > .hn-nav__link::after {
    transform: scaleX(1);
}

.hn-nav__item.is-current > .hn-nav__link {
    font-weight: 600;
}

.hn-nav__link .hn-ico--chev {
    width: 15px;
    height: 15px;
    opacity: .55;
    transition: transform .25s var(--hn-ease);
}

.hn-nav__item.is-open > .hn-nav__link .hn-ico--chev {
    transform: rotate(180deg);
}

/* Panels: hidden until the item opens. Without the script, hover and
   keyboard focus open them (the .js class turns that off). */
.hn-panel {
    position: absolute;
    top: 100%;
    z-index: 5;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .22s var(--hn-ease), visibility 0s linear .22s;
}

.hn-nav:not(.js) .hn-nav__item:hover > .hn-panel,
.hn-nav:not(.js) .hn-nav__item:focus-within > .hn-panel,
.hn-nav__item.is-open > .hn-panel {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .18s ease, transform .22s var(--hn-ease), visibility 0s;
}

/* Dropdowns */
/* 432px: room for "Camden Medical Centre, near Orchard Boulevard MRT" on one line */
.hn-drop {
    left: 50%;
    width: 432px;
    margin-left: -216px;
    padding: 10px;
    border-radius: var(--hn-radius);
    background: #fff;
    box-shadow: var(--hn-shadow);
}

/* Wide dropdowns (About, Programmes) centre on the header. */
.hn-drop--wide {
    --hn-w: min(940px, calc(100vw - 48px));
    display: flex;
    width: var(--hn-w);
    margin-left: calc(var(--hn-w) / -2);
    padding: 14px;
}

.hn-drop--wide .hn-group {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
}

.hn-drop--wide .hn-group + .hn-group {
    border-left: 1px solid var(--hn-line);
}

/* Services: three link columns, the width of the bar, with a booking strip
   across the foot (a side card left tall gaps under the shorter columns). */
.hn-drop--aside {
    --hn-w: min(1120px, calc(100vw - 48px));
    flex-wrap: wrap;
    row-gap: 14px;
}

.hn-drop__aside {
    flex: 1 0 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 16px 10px 10px;
    border-radius: 14px;
    background: linear-gradient(100deg, var(--hn-sky) 0%, #fff 80%);
    border: 1px solid var(--hn-sky-line);
}

.hn-drop__aside-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.hn-drop__aside-btns {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

/* img/menu/services-dr-wang-consultation.webp is a 16:9 crop of
   img/dr-wang-knee-consultation-female-patient.webp. */
.hn-drop__photo {
    display: block;
    flex: 0 0 auto;
    width: 128px;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 9px;
    object-fit: cover;
    background: var(--hn-sky);
}

.hn-drop__aside-title {
    margin-bottom: 0 !important;
    font-family: var(--hn-sans);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hn-ink);
}

.hn-drop__aside-text {
    margin: 2px 0 0 !important;
    font-family: var(--hn-sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--hn-text);
}

.hn-drop__aside .hn-btn--wa {
    gap: 6px;
}

.hn-drop .hn-group--list .hn-group__label {
    padding-bottom: 4px;
}

.hn-group__label {
    padding: 8px 10px 8px;
    font-family: var(--hn-sans);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--hn-muted);
}

.hn-glink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 12px;
    transition: background-color .15s;
}

.hn-group--rich .hn-glink {
    align-items: flex-start;
}

.hn-glink:hover,
.hn-glink[aria-current] {
    background: var(--hn-soft);
}

.hn-glink__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--hn-accent-tint);
    color: var(--hn-accent-ink);
    font-size: 15px;
    transition: background-color .15s, color .15s;
}

.hn-glink:hover .hn-glink__icon {
    background: var(--hn-blue);
    color: #fff;
}

.hn-glink__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.hn-glink__title {
    font-family: var(--hn-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--hn-ink);
}

.hn-glink[aria-current] .hn-glink__title,
.hn-glink:hover .hn-glink__title {
    color: var(--hn-blue);
}

.hn-glink[aria-current] .hn-glink__title {
    font-weight: 600;
}

.hn-glink__desc {
    font-family: var(--hn-sans);
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--hn-muted);
}

/* People: round photos, initials until the photo has loaded. */
.hn-avatar {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--hn-sky);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--hn-sky-line);
    font-family: var(--hn-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--hn-blue);
    transition: box-shadow .15s;
}

.hn-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .25s;
}

.hn-avatar.is-loaded img {
    opacity: 1;
}

.hn-glink:hover .hn-avatar,
.hn-glink[aria-current] .hn-avatar {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hn-accent);
}

/* Conditions mega menu: area rail, the area's links, a booking card */
.hn-mega {
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--hn-line);
    box-shadow: 0 30px 50px -20px rgba(0, 40, 20, .3);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.hn-mega__inner {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 250px;
    gap: 32px;
    padding-top: 18px;
    padding-bottom: 20px;
}

.hn-mega__rail {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 24px;
    border-right: 1px solid var(--hn-line);
}

.hn-mega__eyebrow {
    padding: 0 10px 8px;
    font-family: var(--hn-sans);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hn-muted);
    font-weight: 600;
}

/* One line per area (icon and name), so all nine fit without the panel
   scrolling on a laptop screen. The area's description shows under its
   heading in the middle column instead (.hn-mega__sub). */
.hn-mega__cat {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 6px 10px;
    border-radius: 12px;
    transition: background-color .15s;
}

.hn-mega__cat:hover,
.hn-mega__cat[aria-selected="true"] {
    background: var(--hn-sky);
}

.hn-mega__cat-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--hn-accent-tint);
    color: var(--hn-accent-ink);
    font-size: 16px;
    transition: background-color .15s, color .15s;
}

.hn-mega__cat-icon img,
.hn-dcat__icon img {
    width: 24px;
    height: 24px;
    max-width: none;
    object-fit: contain;
}

.hn-mega__cat[aria-selected="true"] .hn-mega__cat-icon {
    background: #fff;
    box-shadow: 0 0 0 1.5px var(--hn-blue);
}

.hn-mega__cat-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.hn-mega__cat-label {
    font-family: var(--hn-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hn-ink);
}

.hn-mega__cat[aria-selected="true"] .hn-mega__cat-label {
    color: var(--hn-blue);
}

.hn-mega__cat .hn-mega__cat-blurb {
    display: none;
}

.hn-mega__cat-blurb {
    font-family: var(--hn-sans);
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--hn-muted);
}

.hn-mega__cat .hn-ico--arrow {
    width: 16px;
    height: 16px;
    color: var(--hn-blue);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .15s, transform .2s var(--hn-ease);
}

.hn-mega__cat[aria-selected="true"] .hn-ico--arrow {
    opacity: 1;
    transform: none;
}

.hn-mega__panels {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* On a screen too short for the whole rail, the panel scrolls; the links
   and the booking card then stay pinned while the rail moves, so pointing
   at the last areas never leaves their links scrolled out of view. */
.hn-mega__panels,
.hn-mega__aside {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    align-self: start;
}

.hn-mega__panel {
    animation: hn-fade .25s var(--hn-ease);
}

/* Heading on the left, the area's specialist page on the right: one row
   instead of two keeps the panel short. */
.hn-mega__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hn-line);
}

.hn-mega__head > div {
    min-width: 0;
}

.hn-mega__head .hn-overview {
    flex: 0 1 auto;
    min-width: 220px;
    margin-bottom: 0;
    padding: 9px 14px;
    border-radius: 12px;
}

.hn-mega__sub {
    margin-top: 2px !important;
    font-family: var(--hn-sans);
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--hn-muted);
}

.hn-mega__title {
    margin-bottom: 0 !important;
    font-family: var(--hn-sans);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hn-ink);
}

/* The area's specialist page, above its links. */
.hn-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--hn-sky);
    border: 1px solid var(--hn-sky-line);
    transition: border-color .15s, background-color .15s;
}

.hn-overview__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hn-overview__title {
    font-family: var(--hn-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--hn-blue);
}

.hn-overview__desc {
    font-family: var(--hn-sans);
    font-size: 13px;
    line-height: 1.4;
    color: var(--hn-text);
}

.hn-overview .hn-ico--arrow {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--hn-blue);
    transition: transform .2s var(--hn-ease);
}

.hn-overview:hover,
.hn-overview[aria-current] {
    border-color: var(--hn-blue);
}

.hn-overview:hover .hn-ico--arrow {
    transform: translateX(3px);
}

/* Links: one column list per group (Conditions, Treatments); a single
   long group flows into two columns. */
.hn-areacols {
    display: grid;
    gap: 4px 24px;
}

.hn-areacols--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Three or more groups (Vaccinations, Medical Check-Ups, Diagnostic Imaging):
   flow them into two balanced columns, so a short group stacks under another
   instead of starting a new row below the longest one */
.hn-areacols--flow {
    display: block;
    columns: 2;
    column-gap: 24px;
}

.hn-areacols--flow .hn-areacol {
    break-inside: avoid;
    margin-bottom: 10px;
}

.hn-areacol__label {
    padding: 0 10px 6px;
    font-family: var(--hn-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hn-muted);
}

.hn-areacols:not(.hn-areacols--split):not(.hn-areacols--flow) .hn-alinks {
    columns: 2;
    column-gap: 24px;
}

.hn-alinks li {
    break-inside: avoid;
}

.hn-alink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    font-family: var(--hn-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--hn-ink) !important;
    transition: background-color .15s, color .15s;
}

.hn-alink .hn-ico--arrow {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--hn-blue);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .15s, transform .2s var(--hn-ease);
}

.hn-alink:hover,
.hn-alink[aria-current] {
    background: var(--hn-soft);
    color: var(--hn-blue) !important;
}

.hn-alink[aria-current] {
    font-weight: 600;
}

.hn-alink:hover .hn-ico--arrow,
.hn-alink[aria-current] .hn-ico--arrow {
    opacity: 1;
    transform: none;
}

/* Services: a small icon tile before each item (a smaller .hn-glink__icon). */
.hn-alink--icon {
    justify-content: flex-start;
    padding-top: 4px;
    padding-bottom: 4px;
}

.hn-alink--icon .hn-alink__label {
    flex: 1;
    min-width: 0;
}

.hn-alink__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--hn-accent-tint);
    color: var(--hn-accent-ink);
    font-size: 13px;
    transition: background-color .15s, color .15s;
}

.hn-alink--icon:hover .hn-alink__icon,
.hn-alink--icon[aria-current] .hn-alink__icon {
    background: var(--hn-blue);
    color: #fff;
}

.hn-mega__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    margin-top: 14px;
    padding: 12px 2px 0;
    border-top: 1px solid var(--hn-line);
}

.hn-mega__all,
.hn-mega__find {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--hn-sans);
    font-size: 14px;
    font-weight: 600;
}

.hn-mega__all {
    color: var(--hn-blue) !important;
}

.hn-mega__all .hn-ico--arrow {
    width: 16px;
    height: 16px;
    transition: transform .2s var(--hn-ease);
}

.hn-mega__all:hover .hn-ico--arrow {
    transform: translateX(3px);
}

.hn-mega__find {
    font-weight: 500;
    color: var(--hn-muted) !important;
}

.hn-mega__find:hover {
    color: var(--hn-ink) !important;
}

.hn-mega__aside {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: start;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(165deg, var(--hn-sky) 0%, #fff 70%);
    border: 1px solid var(--hn-sky-line);
}

/* The photo runs edge to edge across the top of the card: the negative
   margins cancel the card's padding. img/menu/dr-foo-consultation.webp
   is a 3:2 crop of img/dr-foo-gen-lin-knee-consultation-model.webp. */
.hn-mega__photo {
    display: block;
    width: calc(100% + 36px);
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: -18px -18px 6px;
    border-radius: 19px 19px 0 0;
    object-fit: cover;
}

.hn-mega__aside-title {
    font-family: var(--hn-sans);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hn-ink);
}

.hn-mega__aside-text {
    margin-bottom: 4px !important;
    font-family: var(--hn-sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--hn-text);
}

.hn-mega__aside .hn-btn--wa {
    gap: 6px;
}

@media (min-width: 1200px) {
    .hn-mega__inner { grid-template-columns: 260px minmax(0, 1fr) 230px; gap: 24px; }
}

@keyframes hn-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

/* ---- Actions (search, Book an Appointment, burger) -------------------- */

.hn-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

@media (min-width: 1200px) {
    .hn-actions { margin-left: 10px; }
}

.hn-cta {
    min-height: 40px;
    padding: 0 16px;
}

.hn-cta__long {
    display: none;
}

@media (min-width: 768px) {
    .hn-cta__long { display: inline; }
    .hn-cta__short { display: none; }
}

@media (min-width: 1200px) {
    .hn-cta { min-height: 46px; padding: 0 22px; }
}

.hn-burger {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    transition: background-color .2s;
}

.hn-burger:hover {
    background: var(--hn-soft);
}

/* A medical cross, with "Menu" under it: the label helps readers who do not
   know the icon, and stacking it keeps the button 44px wide, so the phone
   header still fits at 360px. */
.hn-burger__cross {
    width: 21px;
    height: 21px;
    color: var(--hn-blue);
    transition: transform .3s var(--hn-ease);
}

.hn-burger:hover .hn-burger__cross {
    transform: rotate(90deg);
}

.hn-burger__label {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .03em;
    color: var(--hn-ink);
}

@media (min-width: 1200px) {
    .hn-burger { display: none; }
}

/* Phones: the button loses its icon, so logo, search, Book and the burger
   fit; below 360px the button goes (Book an Appointment is at the foot of
   the drawer). */
@media (max-width: 479.98px) {
    .hn-header__bar { gap: 10px; }
    .hn-actions { gap: 6px; }
    .hn-cta { padding: 0 14px; }
    .hn-cta .hn-ico { display: none; }
    .hn-search-btn { width: 40px; }
}

@media (max-width: 359.98px) {
    .hn-cta { display: none; }
}

/* ---- Mobile drawer ---------------------------------------------------- */

.hn-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
    transition: visibility 0s linear .35s;
}

.hn-drawer.is-open {
    visibility: visible;
    transition: visibility 0s;
}

.hn-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 20, .5);
    opacity: 0;
    transition: opacity .3s ease;
}

.hn-drawer.is-open .hn-drawer__backdrop {
    opacity: 1;
}

.hn-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(420px, 100%);
    height: 100%;
    background: #fff;
    box-shadow: -20px 0 40px -20px rgba(0, 40, 20, .4);
    transform: translateX(100%);
    transition: transform .35s var(--hn-ease);
}

.hn-drawer__panel:focus {
    outline: none;
}

.hn-drawer.is-open .hn-drawer__panel {
    transform: none;
}

.hn-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    height: 68px;
    padding: 0 12px 0 20px;
    border-bottom: 1px solid var(--hn-line);
}

.hn-drawer__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--hn-ink);
}

.hn-drawer__close .hn-ico {
    width: 22px;
    height: 22px;
}

.hn-drawer__close:hover {
    background: var(--hn-soft);
}

/* Takes the height between the search field and the pinned foot. With the
   sections closed, the clinic card (.hn-dinfo) fills what the links leave;
   with one open, the links push it down and the area scrolls. */
.hn-drawer__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 16px;
}

.hn-dl > li {
    border-bottom: 1px solid var(--hn-line);
}

.hn-dl__link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 0 20px !important;
    font-family: var(--hn-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--hn-ink) !important;
}

.hn-dl__link[aria-current],
.hn-dl > li.is-current > .hn-dl__link {
    color: var(--hn-blue) !important;
    font-weight: 600;
}

.hn-dl__toggle .hn-ico--chev,
.hn-dcat .hn-ico--chev {
    width: 18px;
    height: 18px;
    color: var(--hn-muted);
    transition: transform .25s var(--hn-ease);
}

.hn-dl__toggle[aria-expanded="true"] .hn-ico--chev,
.hn-dcat[aria-expanded="true"] .hn-ico--chev {
    transform: rotate(180deg);
}

.hn-dl__sub {
    padding: 0 12px 14px;
    animation: hn-fade .25s var(--hn-ease);
}

.hn-dl__sub .hn-group + .hn-group {
    margin-top: 6px;
}

.hn-dl__sub .hn-group__label {
    padding: 8px 8px 4px;
}

.hn-dl__sub .hn-glink {
    padding: 9px 8px;
}

.hn-dl__sub .hn-group--list .hn-alink {
    min-height: 44px;
    padding: 8px;
    font-size: 15px;
}

.hn-dcats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hn-dcat {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 8px !important;
    border-radius: 14px;
    transition: background-color .15s;
}

.hn-dcat[aria-expanded="true"] {
    background: var(--hn-sky);
}

.hn-dcat__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--hn-accent-tint);
    color: var(--hn-accent-ink);
    font-size: 15px;
}

.hn-dcat[aria-expanded="true"] .hn-dcat__icon {
    background: #fff;
    box-shadow: 0 0 0 1.5px var(--hn-blue);
}

.hn-dcat__text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.hn-dcat__label {
    font-family: var(--hn-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hn-ink);
}

.hn-dcat__blurb {
    font-family: var(--hn-sans);
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--hn-muted);
}

.hn-darea {
    padding: 10px 4px 10px;
    animation: hn-fade .25s var(--hn-ease);
}

.hn-darea .hn-overview {
    padding: 12px 14px;
    margin-bottom: 8px;
}

/* The drawer is one column whatever the group count. */
.hn-darea .hn-areacols--split {
    grid-template-columns: 1fr;
    gap: 8px;
}

.hn-darea .hn-alinks {
    columns: 1 !important;
}

.hn-darea .hn-areacol__label {
    padding: 6px 10px 2px;
}

.hn-darea .hn-alink {
    min-height: 44px;
    font-size: 15px;
}

.hn-drawer__foot {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--hn-line);
    background: #fff;
    box-shadow: 0 -12px 24px -18px rgba(0, 40, 20, .35);
}

.hn-drawer__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hn-drawer__meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--hn-sans);
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--hn-muted);
}

.hn-drawer__meta strong {
    color: var(--hn-ink);
    font-weight: 600;
}

.hn-drawer__meta a {
    color: var(--hn-blue) !important;
    font-weight: 500;
}

.hn-drawer__meta .hn-ico {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    color: var(--hn-blue);
}

/* On a short phone the addresses give way to the links. */
@media (max-height: 640px) {
    .hn-drawer__meta { display: none; }
}

/* ---- Drawer: clinic at a glance ------------------------------------ */

.hn-dinfo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 16px 4px;
    font-family: var(--hn-sans);
}

.hn-dinfo__card {
    padding: 16px;
    border-radius: var(--hn-radius);
    background: var(--hn-soft);
    border: 1px solid var(--hn-line);
}

.hn-hours {
    background: linear-gradient(160deg, var(--hn-sky) 0%, #fff 85%);
    border-color: var(--hn-sky-line);
}

.hn-hours__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.hn-hours__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--hn-ink);
}

.hn-hours__title .hn-ico {
    width: 18px;
    height: 18px;
    color: var(--hn-blue);
}

/* "Open until 6pm" / "Closed now", set by js/menu.js in Singapore time. */
.hn-hours__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #FDECEC;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    color: #A12C2C;
}

.hn-hours__status[hidden] {
    display: none;
}

.hn-hours__status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.hn-hours__status.is-open {
    background: #E5F5EC;
    color: #0E7A3F;
}

.hn-hours__status.is-open::before {
    animation: hn-pulse 2s ease-in-out infinite;
}

@keyframes hn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 122, 63, .45); }
    50% { box-shadow: 0 0 0 5px rgba(14, 122, 63, 0); }
}

.hn-hours__list {
    margin: 0;
}

.hn-hours__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 10px;
    margin: 0 -10px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.4;
}

.hn-hours__row dt {
    font-weight: 500;
    color: var(--hn-text);
}

.hn-hours__row dd {
    margin: 0;
    color: var(--hn-ink);
    text-align: right;
}

.hn-hours__row.is-today {
    background: #fff;
    box-shadow: 0 0 0 1px var(--hn-sky-line);
}

.hn-hours__row.is-today dt,
.hn-hours__row.is-today dd {
    font-weight: 600;
    color: var(--hn-blue);
}

.hn-dinfo__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hn-blue) !important;
}

.hn-dinfo__more .hn-ico {
    width: 15px;
    height: 15px;
}

.hn-dinfo__label {
    margin-bottom: 10px !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hn-muted);
}

.hn-insurers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.hn-insurers li {
    display: grid;
    place-items: center;
    height: 40px;
    padding: 4px 6px;
    border-radius: 8px;
    background: #fff;
}

.hn-insurers img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.hn-dinfo__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 0 8px;
    font-size: 13px;
    color: var(--hn-muted);
}

.hn-dinfo__social span {
    margin-right: 4px;
}

.hn-dinfo__social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--hn-line);
    font-size: 15px;
    color: var(--hn-ink) !important;
    transition: background-color .15s, color .15s, border-color .15s;
}

.hn-dinfo__social a:hover {
    border-color: var(--hn-blue);
    background: var(--hn-blue);
    color: #fff !important;
}

@media (max-width: 359.98px) {
    .hn-insurers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

html.hn-locked,
html.hn-locked body {
    overflow: hidden;
}

/* The Elfsight WhatsApp chat (footer.php; it renders into #__EAAPS_PORTAL
   at the end of the page) and the scroll-to-top button sit above
   everything and would cover the drawer's own WhatsApp and Call buttons. */
html.hn-locked #__EAAPS_PORTAL,
html.hn-locked .es-portal-root,
html.hn-locked #scrollToTop {
    display: none !important;
}

/* Burger morphs to a cross while the drawer is open. */

/* ---- Search entry points ------------------------------------------- */

.hn-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: var(--hn-ink) !important;
    font-family: var(--hn-sans);
    transition: background-color .2s, border-color .2s, color .2s;
}

.hn-search-btn .hn-ico {
    width: 20px;
    height: 20px;
}

.hn-search-btn:hover {
    background: var(--hn-soft);
    color: var(--hn-blue) !important;
}

.hn-search-btn__label {
    display: none;
}

/* Desktop: looks like a search field with example searches as its prompt,
   so patients type a symptom or condition. It has the room since Contact Us
   and Blog left the bar. The bar is 1140px at every desktop width; 220px
   fits the prompt from 1200px up (longer prompts such as "Search conditions
   or treatments" need 284px and push the page wider than the screen). */
@media (min-width: 1200px) {
    .hn-search-btn {
        justify-content: flex-start;
        width: 220px;
        padding: 0 14px;
        border: 1px solid var(--hn-line);
        background: var(--hn-soft);
    }

    .hn-search-btn .hn-ico {
        flex: none;
        width: 18px;
        height: 18px;
        color: var(--hn-blue);
    }

    .hn-search-btn__label {
        display: inline;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 14px;
        font-weight: 500;
        color: var(--hn-muted);
    }

    .hn-search-btn:hover .hn-search-btn__label {
        color: var(--hn-ink);
    }

    .hn-search-btn:hover {
        border-color: var(--hn-sky-line);
        background: var(--hn-sky);
    }
}

/* Desktop: Porto keeps .container at 1140px on every wide screen, so the bar
   has the same room at 1920px as at 1200px. */
@media (min-width: 1200px) {
    .hn-header__bar { gap: 10px; }
}

.hn-mega__find .hn-ico {
    width: 16px;
    height: 16px;
}

.hn-drawer__search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    margin: 14px 16px 6px;
    padding: 0 16px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--hn-line);
    background: var(--hn-soft);
    font-family: var(--hn-sans);
    font-size: 15px;
    color: var(--hn-muted) !important;
}

.hn-drawer__search .hn-ico {
    width: 18px;
    height: 18px;
    color: var(--hn-blue);
}

/* ---- Search overlay --------------------------------------------------- */

.hn-sbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 9vh 16px 16px;
    background: rgba(0, 40, 20, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: hn-sbox-in .2s ease;
}

.hn-sbox[hidden] {
    display: none !important;
}

@keyframes hn-sbox-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hn-sbox__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 680px;
    max-height: 80vh;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .45);
    overflow: hidden;
    animation: hn-sbox-up .28s var(--hn-ease);
}

@keyframes hn-sbox-up {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.hn-sbox__form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    margin: 0;
    padding: 12px 12px 12px 20px;
    border-bottom: 1px solid var(--hn-line);
}

.hn-sbox__form > .hn-ico {
    width: 20px;
    height: 20px;
    color: var(--hn-blue);
}

.hn-sbox__input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 0 !important;
    background: none;
    box-shadow: none !important;
    font-size: 18px;
    color: var(--hn-ink);
    -webkit-appearance: none;
    appearance: none;
}

.hn-sbox__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.hn-sbox .hn-sbox__input:focus,
.hn-sbox .hn-sbox__input:focus-visible {
    outline: none !important;
}

.hn-sbox__clear {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: none !important;
    color: #8A979F !important;
    cursor: pointer;
}

.hn-sbox__clear[hidden] {
    display: none;
}

.hn-sbox__clear .hn-ico {
    width: 22px;
    height: 22px;
}

.hn-sbox__clear:hover {
    color: var(--hn-blue) !important;
}

.hn-sbox__close {
    flex: none;
    height: 36px;
    padding: 0 12px !important;
    border-radius: 8px;
    border: 1px solid var(--hn-line) !important;
    font-size: 13px !important;
    color: var(--hn-muted) !important;
}

.hn-sbox__close:hover {
    color: var(--hn-ink) !important;
    border-color: var(--hn-ink) !important;
}

.hn-sbox__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 10px 14px;
}

.hn-sbox__note {
    margin: 0;
    padding: 10px 12px 8px;
    font-size: 14px;
    color: var(--hn-muted);
}

.hn-sbox__note:empty {
    display: none;
}

.hn-sbox__note--label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hn-muted);
}

.hn-sbox__link,
.hn-sres__link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--hn-text) !important;
    transition: background-color .12s;
}

.hn-sbox__link:hover,
.hn-sbox__link.is-active {
    background: var(--hn-sky);
}

.hn-sbox__title,
.hn-sres__title {
    display: block;
    font-family: var(--hn-sans);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--hn-ink);
}

.hn-sbox__link:hover .hn-sbox__title,
.hn-sbox__link.is-active .hn-sbox__title,
.hn-sres__link:hover .hn-sres__title {
    color: var(--hn-blue);
}

.hn-sbox__path,
.hn-sres__path {
    display: block;
    margin-top: 2px;
    font-family: var(--hn-sans);
    font-size: 13px;
    color: var(--hn-blue);
}

/* "See all N results": the overlay's last row when there are more */
.hn-sbox__more {
    margin-top: 4px;
    border-top: 1px solid var(--hn-line);
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.hn-sbox__more .hn-sbox__title {
    font-size: 14.5px;
    color: var(--hn-blue);
}

.hn-sbox__desc,
.hn-sres__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--hn-muted);
}

.hn-sres__desc {
    -webkit-line-clamp: 3;
    font-size: 14.5px;
}

@media (max-width: 575.98px) {
    .hn-sbox {
        padding: 0;
        background: #fff;
    }

    .hn-sbox__panel {
        max-width: none;
        max-height: none;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .hn-sbox__input {
        font-size: 17px;
    }
}

/* Chips (common searches) */
.hn-eg {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 12px 8px;
    margin: 0 !important;
}

.hn-eg__label {
    width: 100%;
    margin: 0 0 2px;
    font-size: 14px;
    color: var(--hn-muted);
}

.hn-eg a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--hn-line);
    background: #fff;
    font-size: 14px;
    color: var(--hn-ink) !important;
    transition: border-color .15s, color .15s, background-color .15s;
}

.hn-eg a:hover {
    border-color: var(--hn-blue);
    background: var(--hn-sky);
    color: var(--hn-blue) !important;
}

/* No results: offer a person */
.hn-shelp {
    margin: 10px 12px 4px;
    padding: 18px;
    border-radius: 14px;
    background: var(--hn-soft);
}

.hn-shelp__text {
    margin: 0 0 12px !important;
    font-family: var(--hn-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--hn-ink);
}

.hn-shelp__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---- /search page ----------------------------------------------------- */

/* Top and bottom only: the side padding is the .container gutter, which
   keeps the results off the screen edge. */
.hn-searchpage {
    padding-top: 12px;
    padding-bottom: 72px;
}

.hn-searchhero {
    padding: 48px 0 36px;
    background: linear-gradient(180deg, var(--hn-sky) 0%, #fff 100%);
    border-bottom: 1px solid var(--hn-line);
}

.hn-searchhero h1 {
    margin: 0 0 18px;
    font-family: var(--hn-sans);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--hn-ink);
}

.hn-searchform {
    display: flex;
    gap: 10px;
    max-width: 720px;
    margin: 0;
}

.hn-searchform__field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.hn-searchform__field .hn-ico {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    color: var(--hn-muted);
    pointer-events: none;
}

.hn-searchform__input {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 50px;
    border-radius: 999px;
    border: 1px solid #CBD6DE;
    background: #fff;
    font-size: 17px;
    color: var(--hn-ink);
    box-shadow: 0 8px 24px -16px rgba(16, 24, 40, .4);
    -webkit-appearance: none;
    appearance: none;
}

.hn-searchform__input:focus {
    border-color: var(--hn-blue);
}

.hn-searchform .hn-btn {
    min-height: 54px;
    padding: 0 26px;
}

.hn-searchhero .hn-eg {
    padding: 18px 0 0;
}

.hn-sres__out {
    max-width: 820px;
}

/* The result count is for screen readers only: it is announced as the
   results change (aria-live), so a blind reader knows the search ran. */
.hn-sres__count {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px !important;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hn-sres__note {
    font-size: 16px;
    color: var(--hn-text);
}

.hn-sres__item {
    border-bottom: 1px solid var(--hn-line);
}

.hn-sres__link {
    padding: 18px 14px;
}

/* From tablet up, the hover panel reaches into the gutter so the result text
   lines up with the heading and search field. Phones have too little gutter
   for that, so there the panel stays inside the content width. */
@media (min-width: 768px) {
    .hn-sres__link {
        margin: 0 -14px;
    }
}

.hn-sres__link:hover {
    background: var(--hn-soft);
}

.hn-sres__title {
    font-size: 18px;
}

.hn-searchpage .hn-eg,
.hn-searchpage .hn-shelp {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
}

.hn-searchpage .hn-shelp {
    padding: 18px;
    max-width: 520px;
}

@media (max-width: 575.98px) {
    .hn-searchform .hn-btn { display: none; }
}

/* ---- Motion ----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .hn-header *,
    .hn-drawer *,
    .hn-drawer,
    .hn-sbox,
    .hn-sbox * {
        animation: none !important;
        transition: none !important;
    }
}
