/* =====================================================================
   LOP web app (/app) — same design as the Flutter phone app
   Colours of the website: red #C3202F, green #1D6B46, ink #102233
   ===================================================================== */
@font-face { font-family: "Tajawal"; src: url("/app/fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/app/fonts/Tajawal-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/app/fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

@font-face { font-family: "Poppins"; src: url("/app/fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Poppins"; src: url("/app/fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Poppins"; src: url("/app/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Poppins"; src: url("/app/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122; }

:root {
  --red: #C3202F; --red-dark: #9B1523; --red-soft: #FBE9EB;
  --green: #1D6B46; --green-soft: #E6F3EC; --wa: #1FA855;
  --ink: #102233; --ink2: #1C3348; --text: #33475B; --muted: #66788A;
  --line: #E2E8EE; --bg: #F4F7FA; --white: #fff;
  --radius: 16px; --bar-h: 58px; --tabs-h: 66px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; font-family: "Poppins", "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.35; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
#app { min-height: 100vh; padding-top: calc(var(--bar-h) + var(--safe-top)); padding-bottom: calc(var(--tabs-h) + var(--safe-bottom)); }
main { max-width: 760px; margin: 0 auto; outline: none; }
main.wide { max-width: 1100px; }

/* app bar (white, like the Flutter AppBar) */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: calc(var(--bar-h) + var(--safe-top)); padding-top: var(--safe-top);
  background: var(--white); display: flex; align-items: center; gap: 6px; padding-inline: 8px 12px;
  transition: box-shadow .2s; }
.bar.scrolled { box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(16,34,51,.05); }
.bar h1 { font-size: 19px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline: 6px; }
.bar .brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding-inline-start: 6px; }
.bar .brand img { width: 38px; height: 38px; border-radius: 50%; }
.bar .brand h1 { font-size: 16px; padding: 0; }
.icon-btn {
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: inline-grid; place-items: center;
  color: var(--ink); cursor: pointer; flex: none; }
.icon-btn:active { background: var(--bg); }
.icon-btn svg { width: 24px; height: 24px; }
html[dir="rtl"] .flip svg { transform: scaleX(-1); }

/* bottom navigation (NavigationBar with pill indicator) */
.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 20; height: calc(var(--tabs-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: var(--white); border-top: 1px solid var(--line); display: flex; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.tabs a .pill { width: 56px; height: 30px; border-radius: 16px; display: grid; place-items: center; transition: background .2s; }
.tabs a svg { width: 24px; height: 24px; fill: currentColor; }
.tabs a.on { color: var(--red); font-weight: 700; }
.tabs a.on .pill { background: var(--red-soft); }

/* ---------- building blocks ---------- */
.pad { padding: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
a.card, button.card { display: block; width: 100%; text-align: start; padding: 0; cursor: pointer; }
a.card:active, button.card:active { background: #fafbfc; }
.stack > * + * { margin-top: 12px; }
.section-h { display: flex; align-items: center; gap: 10px; padding: 24px 16px 10px; }
.section-h::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--red); }
.section-h h2 { flex: 1; font-size: 18px; }
.section-h a { color: var(--red); font-weight: 700; font-size: 14px; padding: 6px 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: var(--red-soft); color: var(--red); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.solid { background: var(--red); color: #fff; }
.tag.white { background: #fff; color: var(--red-dark); }
.date { color: var(--muted); font-size: 12.5px; }
.img { background: var(--bg); position: relative; overflow: hidden; }
.img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.img img.ok { opacity: 1; }
.img.fail::after { content: ""; position: absolute; inset: 0; background: url("/app/icons/logo.png") center / 56px no-repeat; opacity: .35; }
.r16x9 { aspect-ratio: 16 / 9; } .r4x5 { aspect-ratio: 4 / 5; } .r4x3 { aspect-ratio: 4 / 3; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; background: var(--red); color: #fff; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:active { filter: brightness(.93); }
.btn.outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.green { background: var(--wa); }
.btn.white { background: #fff; color: var(--red); }
.btn.text { background: transparent; color: var(--red); padding: 0 8px; min-height: 40px; }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }

.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: none; scroll-snap-align: start; }

/* list rows (ListTile) */
.tile { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 56px; width: 100%; background: none; border: 0; text-align: start; cursor: pointer; }
.tile + .tile { border-top: 1px solid var(--line); }
.tile > svg, .tile .lead svg { width: 24px; height: 24px; fill: var(--red); flex: none; }
.tile .lead { width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft); display: grid; place-items: center; flex: none; }
.tile .lead svg { width: 20px; height: 20px; }
.tile .t { flex: 1; min-width: 0; }
.tile .t b { display: block; color: var(--ink); font-weight: 500; font-size: 15.5px; }
.tile .t small { display: block; color: var(--muted); font-size: 13px; }
.tile .chev { width: 22px; height: 22px; fill: var(--muted); flex: none; }
html[dir="rtl"] .tile .chev { transform: scaleX(-1); }

/* states */
.center { display: grid; place-items: center; text-align: center; padding: 48px 24px; color: var(--muted); }
.center svg { width: 48px; height: 48px; fill: #a9b6c2; margin-bottom: 10px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; margin: 32px auto; }
.spinner.sm { width: 26px; height: 26px; margin: 16px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f6f8fa 50%, #eef2f6 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- home ---------- */
.banners { margin: 12px 16px 0; }
.banner-track { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg); }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; }
.banner-slide.on { opacity: 1; z-index: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-cap { position: absolute; inset: auto 0 0 0; padding: 40% 16px 14px; background: linear-gradient(transparent, rgba(16,34,51,.8)); color: #fff; }
.banner-cap h3 { color: #fff; font-size: 19px; }
.banner-cap p { margin: 4px 0 0; font-size: 13.5px; opacity: .9; }
.banner-cap .btn { margin-top: 10px; }
.dots { display: flex; justify-content: center; gap: 6px; padding-top: 10px; }
.dots button { width: 8px; height: 8px; border-radius: 8px; border: 0; padding: 0; background: var(--line); transition: width .25s, background .25s; cursor: pointer; }
.dots button.on { width: 22px; background: var(--red); }
.welcome { margin: 12px 16px 0; padding: 20px; border-radius: 20px; background: linear-gradient(135deg, var(--ink), var(--ink2)); color: #fff; display: flex; gap: 16px; align-items: center; }
.welcome img { width: 64px; height: 64px; border-radius: 50%; }
.welcome h3 { color: #fff; font-size: 18px; } .welcome p { margin: 6px 0 0; opacity: .8; font-size: 13.5px; }
.quick { display: flex; padding: 16px 8px 0; }
.quick a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border-radius: 16px; text-align: center; color: var(--ink); font-weight: 700; font-size: 12.5px; line-height: 1.3; }
.quick a span.ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.quick a span.ic svg { width: 24px; height: 24px; fill: currentColor; }
.prompt { margin: 16px 16px 0; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.prompt .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft); display: grid; place-items: center; flex: none; }
.prompt .ic svg { width: 22px; height: 22px; fill: var(--red); }
.prompt .t { flex: 1; min-width: 0; } .prompt .t b { color: var(--ink); display: block; } .prompt .t small { color: var(--muted); }
.prompt .x { width: 36px; height: 36px; }

/* news card */
.news-card .body { padding: 12px 14px 14px; }
.news-card .meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.news-card h3 { font-size: 16px; margin-top: 8px; line-height: 1.45; }
.news-card p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.hscroll .news-card { width: 270px; }
.hscroll .pub-card { width: 210px; }
.hscroll .member { width: 168px; }

/* publication card */
.pub-card .badges { position: absolute; inset: 8px 8px auto 8px; display: flex; justify-content: space-between; z-index: 1; pointer-events: none; }
.pub-card .body { padding: 10px 12px 12px; }
.pub-card h3 { font-size: 14.5px; line-height: 1.4; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* member card */
.member { text-align: center; padding: 14px 10px 8px; }
.member .ph { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto; overflow: hidden; background: var(--red-soft); display: grid; place-items: center; }
.member .ph svg { width: 44px; height: 44px; fill: var(--red); }
.member .ph img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 14.5px; margin-top: 10px; }
.member .role { color: var(--red); font-size: 12.5px; font-weight: 500; margin-top: 4px; }
.member .acts { display: flex; justify-content: center; min-height: 40px; }
.member .acts a { width: 40px; height: 40px; display: grid; place-items: center; }
.member .acts svg { width: 20px; height: 20px; fill: var(--green); }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 10px; background: #fff; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 30px; padding: 7px 14px; font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.sub-bar { position: sticky; top: calc(var(--bar-h) + var(--safe-top)); z-index: 10; background: #fff; }
.sub-bar.shadow { box-shadow: 0 1px 0 var(--line); }

/* doctors */
.search { padding: 0 16px 12px; background: #fff; }
.search label { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 0 6px 0 12px; height: 50px; }
html[dir="rtl"] .search label { padding: 0 12px 0 6px; }
.search label:focus-within { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.search svg { width: 22px; height: 22px; fill: var(--muted); flex: none; }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; height: 100%; }
.search .icon-btn { width: 38px; height: 38px; }
.card.doc { display: flex; align-items: center; gap: 12px; padding: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--red), var(--red-dark)); font-size: 17px; }
.avatar.xl { width: 84px; height: 84px; font-size: 30px; margin: 0 auto; }
.doc .t { flex: 1; min-width: 0; }
.doc .t b { display: block; color: var(--ink); font-size: 15px; }
.doc .t small { display: block; color: var(--muted); font-size: 12.5px; }
.doc .spec { display: flex; align-items: center; gap: 4px; color: var(--green); font-size: 12.5px; font-weight: 500; margin-top: 4px; }
.doc .spec svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.doc .city { color: var(--muted); font-size: 12px; flex: none; }
.doc .chev { width: 22px; height: 22px; fill: var(--muted); flex: none; }
html[dir="rtl"] .doc .chev { transform: scaleX(-1); }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 16px 24px; }
@media (min-width: 600px) { .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spec-card { padding: 12px; }
.spec-card .top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.spec-card .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--green-soft); display: grid; place-items: center; }
.spec-card .ic svg { width: 18px; height: 18px; fill: var(--green); }
.spec-card h3 { font-size: 14.5px; margin-top: 10px; }
.spec-card small { color: var(--muted); font-size: 12px; display: block; }
.count { padding: 12px 18px 0; color: var(--muted); font-weight: 500; }
.profile { padding: 18px; text-align: center; }
.profile h2 { font-size: 21px; margin-top: 12px; }
.profile .other { color: var(--muted); font-size: 14px; margin-top: 2px; }
.profile .tag { margin-top: 8px; }
.profile .specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.profile .specs span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; color: var(--ink); font-weight: 500; font-size: 14px; }
.profile .specs svg { width: 16px; height: 16px; fill: var(--red); }
.profile .row { margin-top: 16px; }

/* article (news, publication) */
.article { background: #fff; min-height: calc(100vh - var(--bar-h) - var(--tabs-h)); padding-bottom: 32px; }
.article .in { padding: 16px 18px 0; }
.article h1 { font-size: 22px; line-height: 1.45; margin-top: 12px; }
.article .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0 6px; }
.content { font-size: 16px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.content img { height: auto; border-radius: 10px; margin: 10px 0; }
.content a { color: var(--red); text-decoration: underline; }
.content table { max-width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.content td, .content th { border: 1px solid var(--line); padding: 6px; }
.content iframe { max-width: 100%; border: 0; border-radius: 10px; }
.poster { background: var(--bg); cursor: zoom-in; }
.poster img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; margin: 0 auto; }
.lead-text { color: var(--ink); font-weight: 500; font-size: 16px; margin: 10px 0 0; }
.body-text { white-space: pre-line; margin: 12px 0 0; font-size: 16px; line-height: 1.7; }
.actions { display: grid; gap: 10px; margin-top: 20px; }
.contact-box { background: var(--bg); margin-top: 8px; }
.contact-box h3 { font-size: 15px; padding: 12px 16px 0; }
.viewer { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; }
.viewer .vbar { display: flex; align-items: center; gap: 6px; padding: calc(8px + var(--safe-top)) 8px 8px; color: #fff; }
.viewer .vbar .icon-btn { color: #fff; }
.viewer .vbar span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.viewer .zoom { flex: 1; overflow: auto; display: grid; place-items: center; touch-action: pinch-zoom; }
.viewer .zoom img { max-width: 100%; max-height: 100%; }

/* more */
.org { display: flex; gap: 14px; align-items: center; padding: 16px; }
.org img { width: 64px; height: 64px; border-radius: 50%; }
.org b { display: block; color: var(--ink); font-size: 15px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; margin-top: 12px; }
.seg button { flex: 1; border: 0; background: #fff; padding: 10px; font-weight: 700; cursor: pointer; color: var(--ink); }
.seg button + button { border-inline-start: 1px solid var(--line); }
.seg button.on { background: var(--red-soft); color: var(--red); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: #cfd8e0; transition: background .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--red); }
.switch input:checked + span::before { transform: translateX(20px); }
html[dir="rtl"] .switch input:checked + span::before { transform: translateX(-20px); }
.social { display: flex; align-items: center; gap: 6px; padding: 12px 16px; }
.social b { flex: 1; color: var(--ink); }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.version { text-align: center; color: var(--muted); font-size: 12px; padding: 20px 0 8px; }
.hours { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.quote { margin-top: 10px; padding: 20px; border-radius: 18px; background: linear-gradient(90deg, var(--red), var(--red-dark)); color: #fff; }
.quote p { margin: 0 0 12px; font-size: 18px; font-weight: 700; line-height: 1.4; }
details.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
details.acc summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--ink); display: flex; align-items: center; justify-content: space-between; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary svg { width: 22px; height: 22px; fill: var(--muted); transition: transform .2s; transform: rotate(90deg); }
details.acc[open] summary svg { transform: rotate(-90deg); fill: var(--red); }
details.acc .in { padding: 0 16px 12px; }
details.acc p { margin: 0 0 8px; }
.about-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }

/* toast and bottom sheet */
.toast { position: fixed; z-index: 60; inset-inline: 16px; bottom: calc(var(--tabs-h) + var(--safe-bottom) + 12px); max-width: 520px; margin: 0 auto;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: none; }
.sheet-back { position: fixed; inset: 0; z-index: 70; background: rgba(16,34,51,.45); }
.sheet { position: fixed; z-index: 71; inset: auto 0 0 0; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 22px 22px 0 0;
  padding: 10px 20px calc(20px + var(--safe-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.15); animation: up .22s ease-out; }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font-size: 18px; margin-bottom: 8px; }
.sheet ol { padding-inline-start: 20px; margin: 8px 0 16px; }
.sheet li { margin-bottom: 10px; }
.sheet li svg { width: 20px; height: 20px; vertical-align: -4px; fill: #007AFF; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

@media (min-width: 760px) {
  .hscroll .news-card { width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* =====================================================================
   Website look (lop-site.css): navy hero, pill buttons, soft-shadow cards
   ===================================================================== */
:root { --radius: 18px; --shadow: 0 10px 30px rgba(16, 34, 51, .08); }
.card { border-color: var(--line); box-shadow: var(--shadow); border-radius: var(--radius); }
.btn, .chip, .seg { border-radius: 999px; }
.btn { font-weight: 600; }
.btn.outline { border-width: 2px; }
.section-h h2 { font-weight: 700; letter-spacing: -.01em; }
.section-h a { border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; color: var(--ink); background: #fff; font-weight: 600; font-size: 13px; }
.bar { border-bottom: 1px solid var(--line); }
.bar.scrolled { box-shadow: 0 6px 24px rgba(16, 34, 51, .08); }

/* home hero, navy like the website (banners from the back end are shown whole, nothing cut) */
.hero { background: linear-gradient(160deg, var(--ink) 0%, var(--ink2) 100%); color: #fff; padding: 16px 16px 64px; }
.hero .banner-track { position: relative; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .06); aspect-ratio: 16 / 9; }
.hero .banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; cursor: pointer; }
.hero .banner-slide.on { opacity: 1; z-index: 1; }
.hero .banner-slide img { width: 100%; height: 100%; object-fit: contain; }
.hero .banner-cap { display: none; position: static; inset: auto; background: none; padding: 14px 2px 0; }
.hero .banner-cap.on { display: block; }
.hero .banner-cap h3 { color: #fff; font-size: 19px; font-weight: 700; }
.hero .banner-cap p { margin: 4px 0 0; color: #d8e1ea; font-size: 14px; }
.hero .banner-cap .btn { margin-top: 10px; }
.hero .dots { padding-top: 12px; }
.hero .dots button { background: rgba(255, 255, 255, .45); }
.hero .dots button.on { background: #fff; }
.hero-text { padding: 8px 2px 4px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; }
.hero-badge svg { width: 15px; height: 15px; fill: #ff9aa4; }
.hero-text h2 { color: #fff; font-size: 24px; font-weight: 800; margin-top: 12px; }
.hero-text p { color: #d8e1ea; margin: 6px 0 0; font-size: 14.5px; }
.hero-search { display: flex; gap: 6px; background: #fff; border-radius: 999px; padding: 5px; margin-top: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 14px; font-size: 15px; color: var(--ink); height: 40px; }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--red); display: grid; place-items: center; cursor: pointer; flex: none; }
.hero-search button svg { width: 22px; height: 22px; fill: #fff; }
/* quick links: white card over the bottom of the hero, like the website */
.quick { margin: -44px 16px 0; padding: 8px 4px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; z-index: 2; }
.quick a span.ic { border-radius: 14px; }
.welcome, .banners { display: none; }
