/* ==========================================================================
   NOOR · the lens, shared by every page. 10 Nov 2026.
   1. the page change: a lens opens from where you clicked until it fills
      the screen, and the next page is inside it
   2. the lens ring (tick dial) used by the home page lens and by the lens
      in each page's header
   Off under reduced motion. Transform, opacity and clip-path only.
   ========================================================================== */
@property --ih { syntax: "<length>"; inherits: false; initial-value: 0px; }

:root { --iris-light: #F4F1EA; --iris-dark: #0E1113; --iris-page: var(--iris-light); }

/* The blink between pages (the owner's signature motion, kept). Leaving: two lids close over the page.
   Arriving: the page is painted with the lids shut and they open on a page that is sharp from the first moment.
   The opening is pure CSS from the first paint, so it stays smooth while scripts are still loading. */
.lids { position: fixed; inset: 0; z-index: 600; pointer-events: none; overflow: hidden; display: block !important; }
.lids__lid { position: absolute; left: -5%; right: -5%; height: 62%; background: #0E1113; will-change: transform; transition: transform 340ms cubic-bezier(.23, 1, .32, 1); }
.lids__lid--top { top: 0; border-radius: 0 0 50% 50% / 0 0 22% 22%; transform: translate3d(0, -104%, 0); }
.lids__lid--bot { bottom: 0; border-radius: 50% 50% 0 0 / 22% 22% 0 0; transform: translate3d(0, 104%, 0); }
.lids.is-closing .lids__lid { transform: none; transition: transform 190ms cubic-bezier(.65, 0, .35, 1); }
html.iris-in::before, html.iris-in::after { content: ""; position: fixed; left: -5%; right: -5%; height: 62%; z-index: 600; background: #0E1113; pointer-events: none; will-change: transform; animation: 460ms cubic-bezier(.23, 1, .32, 1) 40ms both; }
html.iris-in::before { top: 0; border-radius: 0 0 50% 50% / 0 0 22% 22%; animation-name: lens-lid-up; }
html.iris-in::after { bottom: 0; border-radius: 50% 50% 0 0 / 22% 22% 0 0; animation-name: lens-lid-down; }
@keyframes lens-lid-up { to { transform: translate3d(0, -106%, 0); } }
@keyframes lens-lid-down { to { transform: translate3d(0, 106%, 0); } }
@media (prefers-reduced-motion: reduce) { .lids, html.iris-in::before, html.iris-in::after { display: none !important; } }

/* ------------------------------------------------------------------ the dial
   A ring of fine tick marks around a lens. --rot turns it. */
.lensdial { position: absolute; inset: -5%; border-radius: 50%; pointer-events: none; transform: rotate(var(--rot, 0deg));
  background: repeating-conic-gradient(from 0deg, currentColor 0deg .5deg, transparent .5deg 6deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 13px), #000 calc(100% - 12px), #000 calc(100% - 2px), transparent calc(100% - 1px));
  mask: radial-gradient(closest-side, transparent calc(100% - 13px), #000 calc(100% - 12px), #000 calc(100% - 2px), transparent calc(100% - 1px)); }

/* ------------------------------------------------------- the lens in a page
   Every page other than the home page carries the same lens in its header,
   holding one picture of what the page is about (assets/js/iris.js). */
.pagelens { position: absolute; z-index: 1; right: 30px; top: 50%; width: clamp(150px, 14vw, 200px); aspect-ratio: 1; margin: 0; transform: translateY(-50%); border-radius: 50%; color: rgba(20, 24, 27, .55); pointer-events: none; }
.pagelens__in { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #14181B; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px rgba(20, 24, 27, .18), 0 30px 60px -28px rgba(20, 24, 27, .55); }
.pagelens__in img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pagelens__in::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 36%); }
.pagelens .lensdial { animation: lensdial-turn 90s linear infinite; }
@keyframes lensdial-turn { to { transform: rotate(360deg); } }
html.iris-in .pagelens { animation: pagelens-in 760ms cubic-bezier(.2, .8, .2, 1) 120ms both; }
@keyframes pagelens-in { from { transform: translateY(-50%) scale(1.5); opacity: 0; } }
@media (min-width: 1100px) {
  .chart-title.has-pagelens { position: relative; padding-right: calc(clamp(150px, 14vw, 200px) + 90px); }
  .has-pagelens-head [data-lottie] { display: none; }
}
@media (max-width: 1099px) { .pagelens { display: none; } }
@media (prefers-reduced-motion: reduce) { .pagelens .lensdial, html.iris-in .pagelens { animation: none; } }

/* ------------------------------------------------------------- the chrome
   One glass pill, the same on every page: logo, four places, the menu, and
   the one button that books the exam. */
.ol-top { --line: rgba(255, 255, 255, .16); --aqua: #C98A12; --text: #F2F5F5; position: fixed; z-index: 120; left: 0; right: 0; top: 14px; width: max-content; max-width: calc(100% - 20px); margin: 0 auto; display: flex; align-items: center; gap: clamp(8px, 1.6vw, 22px); padding: 7px 7px 7px 20px; border-radius: 999px; white-space: nowrap;
  background: rgba(18, 22, 25, .74); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -22px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); color: var(--text); }
.ol-top__logo { display: block; flex: none; }
.ol-top__logo img { display: block; height: 38px; width: auto; }
.ol-top__nav { display: flex; gap: clamp(4px, .8vw, 10px); }
.ol-top__nav a, .ol-top__menu { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: inherit; font: 600 1rem/1 var(--sc-font-text, "Jost", system-ui, sans-serif); text-decoration: none; cursor: pointer; transition: background-color 160ms ease; }
.ol-top__bars { display: grid; gap: 5px; width: 18px; } .ol-top__bars i { height: 2px; border-radius: 2px; background: currentColor; }
.ol-top__dock { display: none; flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.ol-top .slipchip { position: static; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 12px; border-radius: 999px; background: none; box-shadow: none; color: inherit; font: 600 1rem/1 var(--sc-font-text, "Jost", system-ui, sans-serif); text-decoration: none; opacity: 1; transform: none; }
.ol-top .slipchip:not(.has) { display: none; }
.ol-top .slipchip b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--aqua); color: #0E1113; font: 700 .875rem/1 var(--sc-font-text, "Jost", system-ui, sans-serif); }
.ol-top .slipchip.bump b { animation: ol-bump 420ms ease; }
@keyframes ol-bump { 40% { transform: scale(1.35); } }
.ol-top__book { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: #fff; color: #0E1113; font: 600 1rem/1 var(--sc-font-text, "Jost", system-ui, sans-serif); text-decoration: none; transition: background-color 160ms ease, transform 120ms ease; }
.ol-top__book:active { transform: scale(.97); }
.ol-top__nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); }
.ol-top__book .sm { display: none; }
.ol .btn--paper { background: #fff; color: #0E1113; box-shadow: none; }
.ol .textlink--light { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
@media (hover: hover) and (pointer: fine) {
  .ol-top__nav a:hover, .ol-top__menu:hover, .ol-top .slipchip:hover { background: rgba(255, 255, 255, .12); }
  .ol .btn--paper:hover, .ol-top__book:hover { background: var(--aqua); }
}
.ol-top a:focus-visible, .ol-top button:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.ol-rail a:focus-visible, .ol-sec a:focus-visible, .ol-sec button:focus-visible, .ol-sec summary:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.ol-card a:focus-visible, .ol-card button:focus-visible, .slip a:focus-visible, .slip button:focus-visible { outline-color: #8F620B; }

@media (max-width: 899px) {
  .ol-top { left: 10px; right: 10px; width: auto; max-width: none; gap: 8px; padding: 6px 6px 6px 8px; }
  .ol-top__nav, .ol-top__menu-t { display: none; }
  .ol-top__dock { display: block; }
  .ol-top__logo { margin-right: auto; }
  .ol-top__logo img { height: 34px; }
  .ol-top__menu { order: 9; width: 46px; padding: 0; justify-content: center; background: rgba(255, 255, 255, .1); }
  .ol-top__book { padding: 0 16px; }
  .ol-top__book .lg { display: none; } .ol-top__book .sm { display: inline; }
  .ol-top .slipchip .slipchip__t { display: none; } .ol-top .slipchip { padding: 0 2px; }
}
@media (max-width: 359px) { .ol-top__logo img { height: 28px; } .ol-top__book { padding: 0 12px; } }
/* inner pages: the pill waits below the signal bar until it has scrolled away, and replaces the old top bar */
body:not(.ol) .ol-top { translate: 0 var(--tk, 0px); background: rgba(18, 22, 25, .9); }
@media (prefers-reduced-transparency: reduce) { .ol-top { background: #14181B; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ------------------------------------------------------------ eye-chart notes
   The 6/60 ... 6/6 marks explain themselves on hover or tap (assets/js/iris.js). */
.chart-title__mark[data-mark], .folio__acuity, .chartsign__row i { cursor: help; pointer-events: auto; }
.chart-title__mark[data-mark], .chartsign__row i { padding: 6px 2px; margin: -6px -2px; }
.acutip { position: fixed; z-index: 500; left: 0; top: 0; max-width: min(21rem, calc(100vw - 20px)); padding: 12px 14px; border-radius: 14px; background: #14181B; color: #F2F5F5; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .14);
  font: 400 .9375rem/1.4 var(--sc-font-text, "Jost", system-ui, sans-serif); letter-spacing: 0; text-transform: none; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s 160ms; }
.acutip.on { opacity: 1; visibility: visible; transition: opacity 160ms ease; }
.acutip b { display: block; margin-bottom: 4px; font-weight: 650; color: #C98A12; }
.acutip span { display: block; }
.acutip small { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .875rem; color: rgba(242, 245, 245, .78); }
@media (prefers-reduced-motion: reduce) { .acutip, .acutip.on { transition: none; } }

/* ------------------------------------------------------------ the hours card
   Hover, focus or tap "Open now": today's opening and closing times, and any holiday (assets/js/open-hours.js). */
[data-open-now], .tk__live { cursor: help; }
[data-open-now]:focus-visible, .tk__live:focus-visible { outline: 2px solid #C98A12; outline-offset: 3px; }
.hourtip { position: fixed; z-index: 500; left: 0; top: 0; width: min(19rem, calc(100vw - 20px)); padding: 14px 16px; border-radius: 16px; background: #14181B; color: #F2F5F5; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .14);
  font: 400 .9375rem/1.45 var(--sc-font-text, "Jost", system-ui, sans-serif); letter-spacing: 0; text-transform: none; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s 160ms; }
.hourtip.on { opacity: 1; visibility: visible; transition: opacity 160ms ease; }
.hourtip b { display: block; font-weight: 650; color: #C98A12; }
.hourtip dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.hourtip dl div { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); }
.hourtip dt { font-size: .8125rem; color: rgba(242, 245, 245, .72); }
.hourtip dd { margin: 0; font: 650 1.125rem/1.2 var(--sc-font-text, "Jost", system-ui, sans-serif); }
.hourtip span { display: block; }
.hourtip small { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .875rem; color: rgba(242, 245, 245, .82); }
.hourtip small i { font-style: normal; font-weight: 650; color: #F2F5F5; }
@media (prefers-reduced-motion: reduce) { .hourtip, .hourtip.on { transition: none; } }
/* the card looks the same on every page, whatever that page does to its own lists */
.hourtip { font-size: 15px; }
.hourtip dt { font: 400 13px/1.3 var(--sc-font-text, "Jost", system-ui, sans-serif) !important; letter-spacing: 0 !important; text-transform: none !important; color: rgba(242, 245, 245, .72) !important; }
.hourtip dd { font-size: 18px; letter-spacing: 0; }
.hourtip small { font-size: 14px; }
