/* Digital Oral Health – home page (proposed homepage, approved 2026-10-21). Layer on top of styles.css + home.css + nav.css. */
:root{--shadow-1:0 1px 2px rgba(11,79,76,.06);--shadow-2:0 10px 28px -12px rgba(11,79,76,.35)}
/* ---------- hero ---------- */
.ph-hero h1{max-width:19ch;font-size:clamp(1.85rem,7vw,2.9rem)}
html[lang=ar] .ph-hero h1{max-width:none;font-size:clamp(1.7rem,6.5vw,2.6rem)}
.ph-hero .qs{position:relative}
.sug{position:absolute;inset-inline:0;top:calc(100% + 6px);list-style:none;margin:0;padding:6px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-2);z-index:8;max-height:330px;overflow:auto}
.sug[hidden]{display:none}
.sug a{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px;border-radius:10px;text-decoration:none;color:var(--ink);font-size:.95rem}
.sug a:hover,.sug a:focus-visible{background:var(--teal-50)}
.sug a.soon{color:#5b6f6d}
.sug .none{padding:10px;color:var(--muted)}
/* ---------- entry cards ---------- */
.entry{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:900px){.entry{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}}
.ecard{position:relative;background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:6px;transition:border-color .15s,box-shadow .15s,transform .15s;min-width:0}
.ecard:hover{border-color:var(--teal-500);box-shadow:var(--shadow-2);transform:translateY(-3px)}
.ecard .cicon{margin:0 0 6px;width:46px;height:46px;border-radius:14px}
.ecard h3{margin:0;font-size:1.08rem;line-height:1.3}
.ecard h3 a{color:var(--teal-900);text-decoration:none}
.ecard h3 a::after{content:"";position:absolute;inset:0;border-radius:16px;z-index:1}
.ecard h3 a:focus-visible{outline:none}.ecard h3 a:focus-visible::after{outline:3px solid var(--coral-ring);outline-offset:2px}
.ecard p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.45}
.ecard .lnk-t{align-self:flex-start;margin-top:auto}
.ecard .go{position:absolute;inset-inline-end:14px;top:18px;color:var(--teal-700)}
html[dir=rtl] .ecard .go{transform:scaleX(-1)}
@media(max-width:420px){.ecard{padding:14px}.ecard h3{font-size:1rem}.ecard p{font-size:.88rem}.ecard .go{display:none}}
/* ---------- questions ---------- */
.qlist{list-style:none;margin:0;padding:0;display:grid;gap:10px}
@media(min-width:760px){.qlist{grid-template-columns:1fr 1fr}}
.qlist a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:12px 16px;background:#fff;border:1.5px solid var(--line);border-radius:14px;text-decoration:none;color:var(--teal-900);font-weight:600;transition:border-color .15s,box-shadow .15s}
.qlist a:hover{border-color:var(--teal-500);box-shadow:var(--shadow-1)}
.qlist a .r{display:flex;align-items:center;gap:8px;flex:none;color:var(--teal-700)}
html[dir=rtl] .qlist a .r svg{transform:scaleX(-1)}
.qlist a.soon{font-weight:500;color:#3f5654}
.bg-soft{background:var(--teal-50);border-block:1px solid var(--line)}
/* ---------- reviewed strip ---------- */
.rstrip{display:flex;gap:16px;align-items:center;background:#fff;border:1.5px solid var(--teal-200);border-inline-start:6px solid var(--teal-700);border-radius:16px;padding:18px 20px}
.rstrip .cicon{margin:0;flex:none}
.rstrip h2{font-size:1.15rem;margin:0 0 2px}
.rstrip p{margin:0;color:var(--ink)}
.rstrip .more{margin-inline-start:auto;white-space:nowrap;font-weight:600}
@media(max-width:700px){.rstrip{flex-wrap:wrap}.rstrip .more{margin-inline-start:0}}
/* ---------- three ways ---------- */
.ways{display:grid;gap:14px}
@media(min-width:900px){.ways{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}}
.way{background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:18px;min-width:0}
.way h3{margin:0 0 10px;font-size:1.1rem;display:flex;align-items:center;gap:10px}
.way h3 .cicon{margin:0;width:38px;height:38px}
.path{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.path li{position:relative;padding-block:6px;padding-inline:26px 0;font-size:.95rem;line-height:1.35}
.path li::before{content:"";position:absolute;inset-inline-start:6px;top:12px;width:9px;height:9px;border-radius:50%;background:var(--teal-500)}
.path li:not(:last-child)::after{content:"";position:absolute;inset-inline-start:10px;top:22px;bottom:-8px;border-inline-start:2px dotted var(--teal-200)}
.path li:first-child{font-weight:700;color:var(--teal-900)}
.path li:first-child::before{background:var(--coral);width:11px;height:11px;inset-inline-start:5px}
.stg{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.stg li{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 12px;border-radius:12px;background:var(--teal-50);border:1px solid var(--line);font-size:.95rem;line-height:1.3}
.stg .age{flex:none;font-weight:700;color:var(--teal-900);font-size:.85rem;background:#fff;border:1px solid var(--teal-200);border-radius:999px;padding:1px 9px;direction:ltr;unicode-bidi:isolate}
.ways-note{margin:14px 0 0;color:var(--muted);font-size:.92rem;border-inline-start:3px solid var(--coral);padding-inline-start:10px}
/* existing resources */
.exist{display:grid;gap:14px}
@media(min-width:760px){.exist{grid-template-columns:repeat(3,minmax(0,1fr))}}
.exist .ecard{flex-direction:row;align-items:center;gap:14px}
.exist .ecard .cicon{margin:0;flex:none}
.exist .ecard .go{position:static;margin-inline-start:auto}
/* newsletter mockup */
.nlm .row{display:flex;gap:10px;flex-wrap:wrap}
.nlm input{flex:1 1 200px;min-width:0;padding:12px;border:1px solid #9cc9c3;border-radius:10px;font:inherit;background:#f6f9f9}
.nlm button{min-height:46px;border:0;border-radius:10px;padding:0 20px;background:var(--coral);color:#fff;font:inherit;font-weight:600;opacity:.55;cursor:not-allowed}
/* footer */
.fnav{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;margin:0 0 14px;padding:0}
.fnav a{font-weight:600}

/* live additions */
.ph-home .wrap{max-width:1240px}
.ph-home .qs{position:relative}
.ecard.is-soon{border-style:dashed;background:#fbfdfd}.ecard.is-soon h3{color:var(--teal-900)}
.qlist .soon-item.q{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:12px 16px;background:#fff;border:1.5px dashed var(--line);border-radius:14px;color:#3f5654;font-weight:500}
.qlist a{justify-content:flex-start}
.rstrip .soon-item.more{margin-inline-start:auto;white-space:nowrap;font-weight:600;display:inline-flex;align-items:center}
@media(max-width:700px){.rstrip .soon-item.more{margin-inline-start:0}}
.sug .t{flex:none;font-size:.72rem;font-weight:700;padding:2px 8px;border-radius:999px}
.sug .t.soon{background:#eef2f1;color:#4a5d5b}
.sug li>span.soon-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px;color:#4f6664;font-size:.95rem}
.sug li[aria-selected=true]>a{background:var(--teal-50)}
/* 2026-10-21k: on phones the hero image sat above the search suggestions; keep the search layer on top and let the list overflow the hero */
.ph-hero .hero-txt{z-index:3}
.hero.ph-hero{overflow-x:clip;overflow-y:visible;z-index:2}
.qlist a .lnk-t{margin-inline-start:auto}
.rstrip a.more{display:inline-flex;align-items:center;gap:6px}
/* 2026-10-22q – home card icons redrawn from Sakhr's icon set (site_icons.py): dark-teal line drawing on a pale mint tile.
   #0b4f4c on #e0f6ec = 8.3:1 (decorative, aria-hidden). */
.cicon.dohv{background:#e0f6ec;color:#0b4f4c;width:56px;height:56px;border-radius:15px}
.cicon.dohv svg{width:42px;height:42px;display:block}
.ecard .cicon.dohv{margin:0 0 6px}
.exist .ecard .cicon.dohv{margin:0}
@media(max-width:420px){.cicon.dohv{width:50px;height:50px;border-radius:13px}.cicon.dohv svg{width:38px;height:38px}}
/* 2026-10-25m: home hero heading a little lower (more space under the header logo): +16 px desktop, +12 tablet, +10 mobile.
   Two-column hero (>=900px): text column top-aligned (with the old centring offset of 35px kept as padding) so the heading
   position no longer depends on how long the intro line is; the phone image stays centred beside the text. */
header.site.big ~ main .hero.ph-hero{padding-top:64px}
@media(min-width:900px){.ph-hero .hero-grid{align-items:start}.ph-hero .hero-txt{padding-top:9px}html[lang=en] .ph-hero .hero-txt{padding-top:35px}html[lang=ar] .ph-hero .hero-txt{padding-top:54px}.ph-hero .hero-fig{align-self:center}}
@media(max-width:640px){header.site.big ~ main .hero.ph-hero{padding-top:38px}}
/* 2026-10-25m: 900-1099px two-column: heading +16 px vs live per language (live text block was vertically centred, so offsets differ) */
@media(min-width:900px) and (max-width:1099px){.ph-hero .hero-txt{padding-top:4px}html[lang=en] .ph-hero .hero-txt{padding-top:23px}html[lang=ar] .ph-hero .hero-txt{padding-top:42px}}
/* 2026-10-25m: hero heading on two lines (Sakhr) – one sentence per line where it fits (spans .s), font sized to the text column
   per language (K = longest sentence in em). ES: balanced wrap instead (its 2nd sentence is long). Mobile: EN/FI 2 lines, AR 2,
   ES/FR stay 4 lines at the live 29.6 px (2 lines would need <20 px; 3 not reachable without shrinking). 900-1099px: ES/FR keep >=32px (may be 3 lines). Column: single-column hero = 100vw-40px; two-column (>=900px) = (min(100vw,1280px)-112px)*.625 */
.ph-hero h1{max-width:none;text-wrap:balance}
.ph-hero h1 .s{display:inline-block}
html[lang=es] .ph-hero h1 .s{display:inline}
@media(max-width:1099px){html[lang=fr] .ph-hero h1 .s{display:inline}}
html[lang=en] .ph-hero h1{font-size:clamp(1.4rem,calc((100vw - 40px) / 14.3),2.9rem)}
html[lang=fi] .ph-hero h1{font-size:clamp(1.4rem,calc((100vw - 40px) / 14.7),2.9rem)}
html[lang=fr] .ph-hero h1{font-size:clamp(1.85rem,calc((100vw - 40px) / 19.6),2.9rem)}
html[lang=es] .ph-hero h1{font-size:clamp(1.85rem,calc((100vw - 40px) / 19.2),2.9rem)}
@media(min-width:900px){
 html[lang=en] .ph-hero h1{font-size:min(2.9rem,calc((min(100vw,1280px) - 112px) * .625 / 14.3))}
 html[lang=fi] .ph-hero h1{font-size:min(2.9rem,calc((min(100vw,1280px) - 112px) * .625 / 14.7))}
 html[lang=fr] .ph-hero h1{font-size:clamp(2rem,calc((min(100vw,1280px) - 112px) * .625 / 19.6),2.9rem)}
 html[lang=es] .ph-hero h1{font-size:clamp(2rem,calc((min(100vw,1280px) - 112px) * .625 / 19.2),2.9rem)}
}


/* 2026-11-12 test copy: Latest articles block. Photo thumbs have no CSS frame; white margin is in the image. */
#updates{background:#fff;border-block:1px solid var(--line);padding:48px 0}
#updates .lead{max-width:720px;margin-top:4px}
.upd-grid{display:grid;gap:18px;grid-template-columns:1fr;margin-top:22px}
@media(min-width:760px){.upd-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.upd-card{
  background:#fff;
  border:1.5px solid var(--line);
  border-radius:16px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(11,79,76,.04);
  position:relative;
}
.upd-card.is-new{border-color:var(--teal-500);box-shadow:0 0 0 1px var(--teal-200)}
.upd-body{padding:18px 20px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.upd-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.upd-card time{color:var(--muted);font-size:.88rem;font-weight:600}
.upd-card h3{margin:0;font-size:1.08rem;line-height:1.3}
.upd-card h3 a{color:var(--teal-900);text-decoration:none}
.upd-card h3 a::after{content:"";position:absolute;inset:0;border-radius:16px}
.upd-card p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.45;flex:1}
.upd-card .more{margin-top:8px;color:var(--teal-700);font-weight:700;font-size:.95rem;text-decoration:none;position:relative;z-index:1}
.upd-card:hover{border-color:var(--teal-500)}
.new-tag{display:inline-block;flex:none;font-size:.68rem;font-weight:800;letter-spacing:.06em;line-height:1;padding:3px 7px;border-radius:999px;background:var(--coral);color:#fff;vertical-align:middle}

/* 2026-11-12: homepage footer uses the same 1240px column as the homepage sections so the disclaimer lines up with the content above */
footer.site .wrap{max-width:1240px}
/* 2026-11-13: Latest blogs as a swipeable row on phones (under 760px); desktop grid unchanged */
@media(max-width:759.98px){
.upd-grid{display:flex;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scroll-padding-inline:20px;margin-inline:-20px;padding:2px 20px 12px;scrollbar-width:thin}
.upd-grid>.upd-card{flex:0 0 82%;max-width:340px;scroll-snap-align:start}
}

/* preview3: Latest blogs = one horizontal strip on desktop too (3 cards visible, rest by scroll/swipe) */
@media(min-width:760px){
.upd-grid{display:flex;gap:18px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;margin-top:20px;margin-inline:-2px;padding:2px 2px 12px;margin-bottom:-12px;align-items:stretch}
.upd-grid>.upd-card{flex:0 0 calc((100% - 36px)/3);scroll-snap-align:start;padding-block:22px}
}

/* preview3: drag-and-drop affordance for Latest blogs; no layout/height change */
.upd-grid .upd-card{cursor:grab}
.upd-grid .upd-card.is-dragging{cursor:grabbing;opacity:.78}
.upd-grid.is-reordering{user-select:none;-webkit-user-select:none}
.upd-grid.is-reordering a{pointer-events:none}
