/* Homepage header on the standalone pages (Scott, 2026-10-29). Generated by build_v6.py from v6.css; edit v7.css. */
header.top, .mshade, .studynote {
  --paper-2: #ECEAE2; --deep: #0A211F; --teal: #2A4E45; --ink: #0E1F1C; --muted: #5B6863; --line: #DAD9D0; --lime: #D8FF85;
  --display: "Archivo", "Inter Tight", Arial, sans-serif; --sans: "Inter Tight", Inter, Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif; --r-btn: 10px;
}
header.top { font-family: var(--sans); padding: 0; font-size: 16px; line-height: 1.55; }
header.top a { text-decoration: none; color: inherit; }
header.top > .wrap { max-width: 1240px; padding: 0 32px; padding-block: 0; }
header.top .btn { gap: 10px; border-radius: var(--r-btn); font-weight: 600; border: 1px solid transparent; color: #fff; }
header.top .btn.dark.grad { background: linear-gradient(90deg, var(--deep) 0%, #2A1846 70%, #43246E 100%); }
header.top .btn.dark.grad:hover { background: linear-gradient(90deg, #163a35 0%, #34205A 70%, #522D85 100%); }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 92.5% { transform: scaleY(.06); } 95% { transform: scaleY(1); } }
.subnav { top: 118px; }  /* under the pinned top bar (39px) and header (79px) */
@media (max-width: 600px) { .subnav { top: 110px; } }
/* header: logo with the menu beside it on the left, actions on the right */
header.top { position: sticky; top: 0; z-index: 30; background: rgba(245,245,240,.94);  /* pixis.ai off-white (Scott, 2026-10-30) */ backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 0; box-shadow: 0 6px 18px -10px rgba(14,31,28,.28), 0 1px 3px rgba(14,31,28,.05); }  /* no line, a soft shadow for depth (Scott, 2026-10-30) */
header.top > .wrap { display: flex; align-items: center; gap: 40px; height: 78px; }
/* horizontal logo (Westlake's own file, split in two so the eye can blink every few seconds) */
header.top .hlogo { display: inline-flex; align-items: center; height: 40px; }
header.top .hlogo img { height: 100%; width: auto; display: block; }
header.top .hlogo .eye { transform-origin: 50% 52%; animation: blink 5.5s ease-in-out infinite; }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 92.5% { transform: scaleY(.06); } 95% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { header.top .hlogo .eye { animation: none; } }
header.top ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; font-weight: 500; }
header.top ul a { position: relative; padding: 6px 0; }
header.top ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--deep); transition: right .25s; }
header.top ul a:hover::after, header.top ul a[aria-current]::after { right: 0; }
header.top .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
header.top .search { width: 35px; height: 35px; border-radius: 50%; background: var(--deep); color: var(--lime); display: grid; place-items: center; }  /* same green as the Book button (Scott, 2026-10-29) */
header.top .search svg { width: 15px; height: 15px; }
header.top .portal { font-weight: 600; margin-right: 8px; padding: 6px 13px; font-size: 13px; border: 1.5px solid var(--deep); border-radius: var(--r-btn); color: var(--deep); transition: background .2s, color .2s; }  /* outline button in the Book button's green (Scott, 2026-10-29) */
header.top .portal:hover { background: var(--deep); color: #fff; }
header.top .btn { padding: 7px 14px; font-size: 13px; }  /* smaller and more streamlined (Scott, 2026-10-29) */
.studynote { background: #FFF6D6; color: #5A4500; font-size: 13px; text-align: center; padding: 7px 16px; }

/* announcement bar: half the header's 78px; it stays pinned at the top with the header under it (Scott, 2026-11-08) */
.abar { background: #0A211F; color: #F4F3EE; height: 39px; display: flex; align-items: center; justify-content: center; padding: 0 16px; font: 500 13px/1.2 "Inter Tight", Inter, Arial, sans-serif; text-align: center; }
.abar p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abar a { color: #D8FF85; font-weight: 600; margin-left: 6px; text-decoration: none; }
.abar a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .abar { height: 32px; font-size: 11.5px; } }
.abar { position: sticky; top: 0; z-index: 31; }
header.top { top: 39px; }
@media (max-width: 600px) { header.top { top: 32px; } }
section { scroll-margin-top: 130px; }  /* links to a section land below the bar and header */
.abar .aport { position: absolute; right: max(16px, calc((100vw - 1240px) / 2 + 32px)); top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.abar .aport a { margin: 0; padding: 3px 11px; border: 1px solid rgba(216,255,133,.6); border-radius: 6px; color: #D8FF85; font-weight: 600; font-size: 12px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.abar .aport a:hover { background: #D8FF85; border-color: #D8FF85; color: #0A211F; text-decoration: none; }
@media (max-width: 1240px) { .abar { justify-content: flex-start; padding-right: 336px; } }
@media (max-width: 760px) { .abar .aport { display: none; } .abar { justify-content: center; padding-right: 16px; } }
header.top .portal { white-space: nowrap; }
.crumbs { padding-top: 60px; }  /* breadcrumbs sit further below the header on inner pages (Scott, 2026-11-08) */
@media (max-width: 600px) { header.top > .wrap { gap: 10px; } header.top .right { gap: 8px; } header.top .right .btn.dark.grad { padding: 8px 11px; font-size: 12px; } }  /* logo, call icon and Schedule an appointment fit on a phone */
header.top .right .btn.dark.grad { gap: 0; }
header.top .hphone { margin-right: 14px; }  /* more room before Schedule an appointment (Scott, 2026-11-08) */
.abar .aport > a { background: none; border: 0; color: #D8FF85; border-radius: 0; padding: 0 6px; display: inline-flex; align-items: center; height: 24px; line-height: 1; font-weight: 600; }  /* plain lime text, no button (Scott, 2026-11-08) */
.abar .aport > a:hover { background: none; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.abar .aport .asoc { display: flex; align-items: center; gap: 4px; margin-right: 6px; }
.abar .aport .asoc a { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #D8FF85; }
.abar .aport .asoc a:hover { background: #D8FF85; color: #0A211F; }
.abar .aport .asoc svg { width: 14px; height: 14px; }  /* social icons in the top bar (Scott, 2026-11-08) */ header.top .right .btn .xs { white-space: pre; }  /* one normal space before "an appointment" */
/* Top bar in the header's off-white, a hairline between them (Scott, 2026-11-08). Lime text would vanish on the light bar, so links go deep green. */
.abar { background: #F5F5F0; color: #0A211F; border-bottom: 1px solid rgba(10,33,31,.12); box-sizing: border-box; }
.abar a, .abar .aport > a, .abar .aport .asoc a { color: #2A4E45; }
.abar .aport > a:hover { color: #0A211F; }
.abar .aport .asoc a:hover { background: #0A211F; color: #D8FF85; }
/* the bar holds only the portals and social icons now, which phones hide, so phones drop the bar (Scott, 2026-11-08) */
@media (max-width: 760px) { .abar { display: none; } header.top { top: 0; } }
/* Scott, 2026-11-08: bigger social icons; each portal sits on a darker off-white block that runs the full height of the bar, top line to bottom line (not a button) */
.abar .aport { top: 0; bottom: 0; transform: none; align-items: stretch; gap: 2px; }
.abar .aport .asoc { gap: 6px; margin-right: 12px; }
.abar .aport .asoc a { width: 30px; height: 30px; align-self: center; }
.abar .aport .asoc svg { width: 18px; height: 18px; }
.abar .aport > a { height: auto; padding: 0 18px; background: #D8FF85; color: #0A211F; transition: background .2s; }  /* lime blocks (Scott, 2026-11-08) */
.abar .aport > a:hover { background: #C6F25E; color: #0A211F; text-decoration: none; }
/* faded lime portal blocks, regular lime on hover (Scott, 2026-11-09) */
.abar .aport > a { background: #E9F9C4; } .abar .aport > a:hover { background: #D8FF85; }
@media (max-width: 420px) { header.top .right .btn .xs { display: none; } }  /* small phones: the button just says Schedule */
/* phone number beside the Schedule button (Scott, 2026-11-08); just the icon on phones */
header.top .hphone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: #0E1F1C; white-space: nowrap; text-decoration: none; }
header.top .hphone svg { width: 16px; height: 16px; }
header.top .hphone:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { header.top .hphone span { display: none; } header.top .hphone { width: 35px; height: 35px; justify-content: center; border-radius: 50%; background: #0A211F; color: #D8FF85; } }  /* the two portal buttons stay on one line */
/* ---- v5: Pixis mega menu (Scott's v4 board note) ---- */
header.top ul { gap: 6px; }
header.top .mtrig { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 0; background: none; border-radius: 999px; font: 500 14.5px/1 var(--sans); color: var(--ink); cursor: pointer; transition: background .2s; }
header.top .mtrig svg { width: 14px; height: 14px; transition: transform .25s; }
header.top .mtrig:hover, header.top .mtrig[aria-expanded="true"] { background: rgba(14,31,28,.06); }
header.top .mtrig[aria-expanded="true"], header.top .mtrig[aria-expanded="true"]:hover { background: #D8FF85; color: #0A211F; }  /* the open menu's name turns lime (Scott, 2026-11-08) */
header.top .mtrig[aria-expanded="true"] svg { transform: rotate(180deg); }
header.top.mopen { background: #F4F3EE; }
header.top .mega { position: absolute; left: 0; right: 0; top: 100%; display: grid; grid-template-columns: 1fr minmax(260px, 22%); background: #F4F3EE; border-top: 1px solid rgba(14,31,28,.06); box-shadow: 0 30px 40px -30px rgba(10,33,31,.35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
header.top .mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
header.top .mega .wrap { max-width: none; margin: 0 0 0 max(0px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: minmax(220px, 1fr) minmax(380px, 2fr) 170px; grid-template-areas: "mt grid more" "ms grid more"; grid-template-rows: auto 1fr; gap: 6px 40px; padding-top: 34px; padding-bottom: 40px; height: auto; align-items: start; }
header.top .mega .mt { grid-area: mt; display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-stretch: 112%; font-size: 38px; letter-spacing: -.02em; color: var(--ink); }
header.top .mega .mt i { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .25s; }
header.top .mega .mt:hover i { transform: translateX(4px); }
header.top .mega .mt svg { width: 14px; height: 14px; }
header.top .mega .ms { grid-area: ms; margin: 0; font-size: 15px; color: #3E4A46; }
/* Scott, 2026-11-08: the big title is gone, so the icons start at the left edge where it was; the short line sits above them */
header.top .mega .wrap { grid-template-columns: minmax(420px, 1fr) 210px; grid-template-areas: "grid more"; grid-template-rows: auto; gap: 0 56px; }
header.top .mega .ms { display: none; }
header.top .mega .mmore { background: #EAE8DF; border-radius: 0; padding: 34px 26px 40px; margin: -34px -28px -40px 0; align-self: stretch; }  /* Also: a touch darker than the panel (Scott, 2026-11-08) */
header.top .mega .ms { font-size: 15px; font-weight: 500; }
header.top .mega .mgrid { grid-area: grid; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 34px; }
header.top .mega .mi { display: flex; gap: 14px; align-items: center; border-radius: 10px; padding: 6px; margin: -6px; transition: background .2s; }
header.top .mega .mi:hover { background: rgba(14,31,28,.05); }
header.top .mega .mi i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 800 15px/1 var(--display); font-style: normal; color: #0A211F; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }  /* Pixis gradient tiles, dark marks (Scott, 2026-10-30) */
header.top .mega .mi i svg { color: #0A211F; }
header.top .mega .mi i svg { width: 22px; height: 22px; }
header.top .mega#mega-treatments .mgrid { grid-auto-flow: column; grid-template-rows: repeat(3, auto); }  /* RLE, Cataract, LASIK down the first column; Glaucoma, Dry eye, Eyelid down the second (Scott, 2026-11-08) */  /* treatment icons (Scott, 2026-11-08) */
header.top .mega .mi b { display: block; font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 16.5px; line-height: 1.2; color: var(--ink); margin-bottom: 1px; }  /* Scott: bolder, smaller, subtext tucked under */
header.top .mega .mi small { display: block; font-size: 13.5px; line-height: 1.35; color: #3E4A46; }
header.top .mega .mmore { grid-area: more; display: grid; gap: 10px; align-content: start; font-size: 14px; }
header.top .mega .mmore h6 { margin: 0 0 4px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
header.top .mega .mmore a:hover { text-decoration: underline; text-underline-offset: 3px; }
header.top .mega .mbox { background: var(--lime, #D8FF85);  /* Scott, 2026-11-08: lime, not gray */ padding: 34px 32px; display: grid; align-content: start; gap: 26px; }
header.top .mega .mbox b { font-family: var(--display); font-stretch: 108%; font-weight: 400; font-size: 22px; color: var(--ink); }
header.top .mega .mbox a + a { margin-top: -12px; }
header.top .mega .mi i { box-shadow: 0 8px 16px -6px rgba(10,33,31,.45), 0 2px 4px rgba(10,33,31,.12); }  /* Scott, 2026-11-08: drop shadows on the icons in every menu */  /* the second link sits close under the first */
header.top .mega .mbox a { justify-self: start; font-weight: 600; font-size: 15px; border-bottom: 2px solid var(--ink); padding-bottom: 3px; }
.mshade { position: fixed; inset: 0; z-index: 29; background: rgba(10,33,31,.42); opacity: 0; pointer-events: none; transition: opacity .25s; }
.mshade.on { opacity: 1; pointer-events: auto; }
@media (max-width: 1100px) { header.top .mega { display: none; } }


@media (max-width: 1100px) { header.top ul, header.top .portal { display: none; } }
@media (max-width: 600px) { header.top .hlogo { height: 24px; } header.top .search { display: none; } header.top > .wrap { padding: 0 18px; } }

/* Scott, 2026-11-19: on phones the top bar is hidden, so the header sits right at the top (no gap) */
@media (max-width: 760px) { header.top { top: 0 !important; } }
