/* Home page (v16). Phone (< 960px): app-style, thumb reach, swipe strip, big tiles, icon grid.
   Desktop (>= 960px): wide hero with a live example plate, three-up today row, bento tiles, tool cards with descriptions. */
.hv { --on-ink: #E7F3EC; --on-ink-2: #A8CDBB; }
.hv-sec { padding: 16px 0; }
.hv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.hv-head h2 { margin: 0; font-size: 1.3rem; line-height: 1.3; font-weight: 750; }
.hv-head a { font-size: .92rem; font-weight: 650; white-space: nowrap; }

/* ================= hero ================= */
.hv-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); border-radius: 0 0 34px 34px; padding: 6px 0 26px; isolation: isolate; }
.hv-hero::before { content: ""; position: absolute; z-index: -1; right: -150px; top: -150px; width: 400px; height: 400px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 26px, rgba(255,255,255,.055) 26px 28px); pointer-events: none; }
.hv-hero::after { content: ""; position: absolute; z-index: -1; left: -110px; bottom: -150px; width: 300px; height: 300px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 22px, rgba(244,183,42,.09) 22px 24px); pointer-events: none; }
.hv-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.hv-hero-in > * { min-width: 0; }
.hv-hello { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; color: var(--on-ink-2); font-weight: 550; }
.hv-streak { background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: .85rem; padding: 3px 12px; border-radius: 99px; }
.hv-title { margin: 0 0 8px; color: #fff; font-size: clamp(2rem, 9.4vw, 3rem); line-height: 1.22; font-weight: 700; letter-spacing: 0; text-wrap: balance; }
.hv-sub { margin: 0 0 16px; color: var(--on-ink); opacity: .88; max-width: 34em; font-size: .98rem; line-height: 1.6; }

.hv-find { position: relative; display: flex; align-items: center; background: #fff; border-radius: 20px; box-shadow: 0 16px 34px -14px rgba(0,0,0,.6); }
.hv-find:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.hv-find-ico { position: absolute; left: 17px; color: #4F6A5E; display: grid; }
.hv-find input { flex: 1; min-width: 0; height: 60px; border: 0; background: transparent; padding: 0 12px 0 50px; font-size: 1.05rem; color: #0E2A22; border-radius: 20px; outline: none; }
.hv-find input::placeholder { color: #5F776B; }
.hv-mic { flex: none; width: 46px; height: 46px; margin-right: 7px; border: 0; border-radius: 50%; background: var(--gold); font-size: 1.15rem; cursor: pointer; }
.hv-mic.is-on { background: #FFC83D; animation: hxpulse 1s ease-in-out infinite; }
.hv-sug { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 18px; box-shadow: 0 22px 44px -12px rgba(0,0,0,.55); max-height: min(62vh, 440px); overflow-y: auto; overscroll-behavior: contain; }
.hv-sug[hidden] { display: none; }
.hv-sug li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 12px; color: #0E2A22; cursor: pointer; }
.hv-sug li + li { border-top: 1px solid #EEF3F0; }
.hv-sug li:hover, .hv-sug li.is-on { background: #EAF5EF; border-top-color: transparent; }
.hv-sg-t { display: grid; gap: 1px; min-width: 0; }
.hv-sg-t b { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.hv-sg-t small { color: #5B7468; font-size: .8rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-sug em { flex: none; font-style: normal; font-weight: 800; font-size: 1.05rem; color: #0E2A22; text-align: right; }
.hv-sg-h { padding: 10px 12px 4px; font-size: .78rem; font-weight: 700; color: #5B7468; }
.hv-sug li.is-tool { background: #F6F3E7; margin-top: 2px; }
.hv-sug li.is-tool:hover, .hv-sug li.is-tool.is-on { background: #F1EBCB; }
.hv-sg-e { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #fff; font-size: 1.2rem; }
.hv-sug li.is-tool { justify-content: flex-start; }
.hv-dym { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; color: var(--text-2); }
.hv-dym span { width: 100%; font-size: .9rem; }
.hv-dym button { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.hv-dym button:hover, .hv-dym button:focus-visible { border-color: var(--brand-600); background: var(--brand-50); }
.hv-sug em small { font-weight: 500; font-size: .75rem; color: #5B7468; }
@keyframes hxpulse { 50% { transform: scale(1.1); } }

.hv-chips { display: flex; gap: 8px; margin: 14px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; scroll-padding-left: 16px; }
.hv-chips::-webkit-scrollbar { display: none; }
.hv-chips button { flex: none; min-height: 42px; padding: 0 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 550; cursor: pointer; }
.hv-chips button:hover, .hv-chips button:focus-visible { background: rgba(255,255,255,.18); }

/* ---- result card ---- */
.hv-empty { display: none; }
.hv-card { position: relative; background: var(--surface); color: var(--text); border-radius: 26px; padding: 18px; box-shadow: 0 20px 44px -22px rgba(0,0,0,.65); }
.hv-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hv-fn { margin: 0; font-size: 1.3rem; line-height: 1.3; font-weight: 750; }
.hv-por { color: var(--muted); font-size: .9rem; text-align: right; }
.hv-main { display: flex; gap: 16px; align-items: center; }
.hv-ring { position: relative; flex: none; width: 108px; height: 108px; }
.hv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hv-ring circle { fill: none; stroke-width: 9; }
.hv-ring .t { stroke: var(--surface-2); }
.hv-ring .v { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); }
.hv-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hv-ring b { font-size: 1.8rem; line-height: 1; font-weight: 800; }
.hv-ring small { color: var(--muted); font-size: .78rem; }
.hv-mac { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.hv-mac li { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; font-size: .88rem; }
.hv-mac span { color: var(--text-2); }
.hv-mac i { height: 8px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.hv-mac u { display: block; height: 100%; border-radius: 9px; }
.hv-mac u.p { background: #3A86D8; } .hv-mac u.c { background: var(--gold); } .hv-mac u.f { background: #E8743B; }
.hv-mac b { font-weight: 650; white-space: nowrap; }
.hv-cap { margin: 12px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.hv-walk { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.hv-walk > span { font-size: 1.4rem; line-height: 1.3; }
.hv-walk p { margin: 0; font-weight: 650; line-height: 1.45; }
.hv-walk b { font-size: 1.18rem; }
.hv-walk small { display: block; margin-top: 2px; font-weight: 400; font-size: .82rem; color: var(--muted); }
.hv-how { margin-top: 14px; border-top: 1px solid var(--line); }
.hv-how summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; font-weight: 650; color: var(--brand-700); list-style: none; }
.hv-how summary::-webkit-details-marker { display: none; }
.hv-how summary::after { content: "＋"; font-size: 1.2rem; color: var(--muted); }
.hv-how[open] summary::after { content: "−"; }
.hv-how > div { padding-bottom: 6px; font-size: .9rem; line-height: 1.65; color: var(--text-2); }
.hv-how ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.hv-how p { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.hv-kg { display: grid; gap: 4px; margin: 12px 0 0; max-width: 220px; }
.hv-kg span { font-size: .84rem; color: var(--muted); }
.hv-kg input { min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.hv-kg input:focus { outline: 3px solid var(--brand-100); border-color: var(--brand-600); }
.hv-est { margin: 6px 0 0; color: #A15C07; font-size: .85rem; }
.hv-act { display: flex; gap: 8px; margin-top: 14px; }
.hv-act .btn { flex: 1; min-height: 50px; justify-content: center; }
.hv-slot { flex: 1; display: flex; min-width: 0; }
.hv-slot .btn { flex: 1; }
.hv-step { flex: 1; display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; min-height: 50px; border-radius: 99px; background: var(--brand-50); border: 2px solid var(--brand-600); color: var(--brand-700); overflow: hidden; }
.hv-step button { height: 100%; min-height: 46px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.hv-step button:hover, .hv-step button:focus-visible { background: var(--brand-100); }
.hv-step span { display: grid; text-align: center; line-height: 1.2; }
.hv-step b { font-size: 1.05rem; }
.hv-step small { font-size: .78rem; opacity: .85; }
.hv-nut { margin-top: 14px; }
.hv-nut > b { display: block; font-size: .86rem; color: var(--text-2); font-weight: 650; margin-bottom: 6px; }
.hv-nut ul, .hv-pl-nut ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hv-nc { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px 0 8px; border-radius: 99px; font-size: .86rem; font-weight: 600; line-height: 1; background: color-mix(in srgb, var(--nc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--nc) 45%, transparent); color: var(--text); }
.hv-alt { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.hv-alt button { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 99px; min-height: 36px; padding: 0 13px; font: inherit; cursor: pointer; }
.hv-ref, .hv-nf { margin: 12px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.hv-nf { color: var(--text); font-size: 1rem; margin-top: 0; }

/* ---- today's plate ---- */
.hv-plate { margin-top: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 4px 12px 10px; }
.hv-pl-head { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; border: 0; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.hv-pl-head em { margin-left: auto; font-style: normal; color: var(--on-ink-2); font-size: .9rem; }
.hv-pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hv-pl-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.1); }
.hv-pl-list li > span:first-child { flex: 1; min-width: 0; }
.hv-pl-list li em { font-style: normal; min-width: 3.2em; text-align: right; color: var(--on-ink-2); }
.hv-pl-q { display: inline-flex; align-items: center; gap: 4px; }
.hv-pl-q button { width: 32px; height: 32px; }
.hv-pl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hv-pl-foot a { color: var(--on-ink-2); text-decoration: underline; font-size: .88rem; }
.hv-pl-list button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.hv-plate { scroll-margin-bottom: calc(var(--bottom-h, 0px) + 18px); }
.hv-plate.is-new { animation: hv-plate-in .9s var(--ease); }
@keyframes hv-plate-in { 0% { box-shadow: 0 0 0 0 rgba(244,183,42,.75); border-color: var(--gold); } 100% { box-shadow: 0 0 0 14px rgba(244,183,42,0); } }
.hv-pl-tot { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; margin: 4px 0 0; }
.hv-pl-tot span { display: grid; gap: 1px; padding: 8px 6px; border-radius: 12px; background: rgba(255,255,255,.08); text-align: center; }
.hv-pl-tot small { color: var(--on-ink-2); font-size: .78rem; }
.hv-pl-tot b { font-size: 1.15rem; color: #fff; }
.hv-pl-sm { margin: 6px 0 8px; font-size: .78rem; color: var(--on-ink-2); line-height: 1.5; }
.hv-pl-nut { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.hv-pl-nut h3 { margin: 0 0 8px; font-size: .98rem; color: #fff; display: flex; align-items: baseline; gap: 8px; }
.hv-pl-nut h3 small { color: var(--on-ink-2); font-weight: 600; }
.hv-pl-nut .hv-nc { color: #fff; }
.hv-pl-nut .hv-nc.is-on::after { content: "✓"; margin-left: 2px; font-weight: 800; color: var(--gold); }
.hv-pl-nut .hv-nc.is-off { background: transparent; border-style: dashed; border-color: rgba(255,255,255,.22); color: var(--on-ink-2); opacity: .75; }
.hv-pl-nut .hv-nc.is-off span { filter: grayscale(1); }
@media (prefers-reduced-motion: reduce) { .hv-plate.is-new { animation: none; } }
.hv-pl-note { margin: 8px 0 6px; font-size: .78rem; color: var(--on-ink-2); }
.hv-pl-clear { border: 1px solid rgba(255,255,255,.25); background: none; color: #fff; border-radius: 99px; min-height: 36px; padding: 0 14px; font: inherit; cursor: pointer; }

/* ---- resume bar ---- */
.hv-resume { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--text); font-weight: 650; }
.hv-resume[hidden] { display: none; }

/* ================= today: a swipe strip on the phone ================= */
.hv-today { padding-top: 18px; }
.hv-today-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; scroll-padding-left: 16px; }
.hv-today-grid::-webkit-scrollbar { display: none; }
.hv-t { position: relative; flex: 0 0 72%; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 132px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.hv-t:hover { border-color: var(--brand); color: var(--text); }
.hv-t-emo { font-size: 1.8rem; line-height: 1; margin-bottom: 8px; }
.hv-t b { font-size: 1.05rem; line-height: 1.3; font-weight: 750; }
.hv-t small { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.hv-bar { position: absolute; left: 16px; right: 16px; bottom: 12px; height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.hv-bar u { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--brand)); border-radius: 9px; }
#ch-banner { padding-bottom: 30px; }
#ch-banner { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 22%, var(--surface)), var(--surface) 70%); }
.hv-tip { cursor: default; }

/* ================= main things to do ================= */
.hv-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hv-row { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 142px; padding: 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); color: var(--text); overflow: hidden; transition: transform .18s var(--ease), border-color .18s, box-shadow .18s; }
.hv-row:hover, .hv-row:active { color: var(--text); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.hv-row:active { transform: scale(.985); }
.hv-row-ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 16px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); }
.hv-row-t b { display: block; font-size: 1.06rem; line-height: 1.3; font-weight: 750; }
.hv-row-t small { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.hv-row::after { content: "→"; position: absolute; right: 14px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-size: 1rem; transition: background .18s, color .18s, transform .18s; }
.hv-row:hover::after { background: var(--gold); color: var(--gold-ink); transform: translateX(2px); }
/* the first tile is the main thing: a dark full-width banner */
.hv-row[data-k="smart-pick"] { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 18px; background: var(--ink); border-color: var(--ink); color: #fff; }
.hv-row[data-k="smart-pick"] .hv-row-ico { width: 56px; height: 56px; font-size: 1.9rem; background: rgba(255,255,255,.1); }
.hv-row[data-k="smart-pick"] .hv-row-t small { color: var(--on-ink-2); }
.hv-row[data-k="smart-pick"]::after { position: static; margin-left: auto; flex: none; background: var(--gold); color: var(--gold-ink); }
.hv-row:last-child:nth-child(even) { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px; }
.hv-row:last-child:nth-child(even)::after { position: static; margin-left: auto; flex: none; }

/* ================= hospital ================= */
.hv-hosp { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 28px; padding: 20px; }
.hv-hosp h2 { margin: 0 0 2px; font-size: 1.3rem; font-weight: 750; } .hv-hosp p { margin: 0 0 12px; color: var(--text-2); }
.hv-hosp-row { display: grid; gap: 10px; }
.hv-hosp select { width: 100%; min-height: 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 14px; font: inherit; }
.hv-hosp .btn { min-height: 52px; justify-content: center; }
.hv-sos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent); font-size: .92rem; color: var(--text-2); }
.hv-sos span { flex-basis: 100%; }
.hv-sos a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 99px; background: var(--danger); color: #fff; font-weight: 800; font-size: 1.08rem; letter-spacing: .02em; }
.hv-sos a:hover { color: #fff; background: #B71F2C; }

/* ================= abroad ================= */
.hv-abroad { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); border-radius: 28px; padding: 22px 20px; isolation: isolate; }
.hv-abroad::before { content: ""; position: absolute; z-index: -1; right: -90px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 22px, rgba(244,183,42,.1) 22px 24px); }
.hv-abroad h2 { margin: 0 0 6px; color: #fff; font-size: 1.3rem; line-height: 1.35; font-weight: 750; }
.hv-abroad p { margin: 0 0 14px; opacity: .88; }
.hv-flags { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 16px; padding: 0 20px; }
.hv-flags::-webkit-scrollbar { display: none; }
.hv-flags a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; font-weight: 650; }
.hv-flags a:hover { background: rgba(255,255,255,.2); color: #fff; }
.hv-abroad-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hv-abroad-btns .btn { flex: 1 1 150px; min-height: 50px; justify-content: center; }
.hv-gold { background: var(--gold); color: var(--gold-ink); box-shadow: none; } .hv-gold:hover { background: #FFC83D; color: var(--gold-ink); }
.hv-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); } .hv-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ================= tools ================= */
.hv-tsearch { position: relative; display: flex; align-items: center; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.hv-tsearch > span { position: absolute; left: 15px; color: var(--muted); display: grid; }
.hv-tsearch input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; padding: 0 14px 0 46px; font-size: 1rem; color: var(--text); border-radius: 18px; outline: none; }
.hv-tsearch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.hv-tres { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.hv-tres[hidden] { display: none; }
.hv-tres a { display: grid; grid-template-columns: 30px 1fr; gap: 2px 8px; padding: 11px 14px; color: var(--text); border-bottom: 1px solid var(--line); }
.hv-tres a span { grid-row: span 2; font-size: 1.3rem; align-self: center; } .hv-tres a small { color: var(--muted); }
.hv-tres p { margin: 0; padding: 12px 14px; color: var(--muted); }
.hv-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; }
.hv-app { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; color: var(--text); padding: 4px 0; border-radius: 16px; }
.hv-app-ico { width: 60px; height: 60px; display: grid; place-items: center; font-size: 1.8rem; border-radius: 20px; background: color-mix(in srgb, var(--c) 15%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 24%, transparent); transition: transform .15s var(--ease); }
.hv-app:active .hv-app-ico { transform: scale(.92); }
.hv-app-t b { font-size: .8rem; line-height: 1.3; font-weight: 650; display: block; }
.hv-app-t small { display: none; }
.hv-app.is-extra { display: none; } .hv-apps.is-open .hv-app.is-extra { display: flex; }
.hv-more { display: flex; align-items: center; gap: 6px; margin: 18px auto 0; min-height: 46px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; }
.hv-more[aria-expanded="true"] i { display: inline-block; transform: rotate(180deg); }

/* ---- newsletter teaser, facts ---- */
.hv-prem { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; border: 1.5px dashed color-mix(in srgb, var(--gold) 70%, var(--line)); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); color: var(--text); }
.hv-prem > span:first-child { font-size: 2rem; }
.hv-prem b { display: block; font-weight: 750; } .hv-prem small { display: block; color: var(--text-2); line-height: 1.45; }
.hv-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin: 0; color: var(--muted); font-size: .92rem; }
.hv-facts b { color: var(--text); font-size: 1.05rem; }

/* ================= tablet ================= */
@media (min-width: 640px) {
  .hv-today-grid { margin: 0; padding: 2px 0 10px; }
  .hv-t { flex-basis: 44%; }
  .hv-menu { grid-template-columns: repeat(3, 1fr); }
  .hv-row[data-k="smart-pick"] { grid-column: 1 / -1; }
  .hv-row:last-child:nth-child(even) { grid-column: auto; min-height: 142px; flex-direction: column; align-items: stretch; }
  .hv-row:last-child:nth-child(even)::after { position: absolute; margin: 0; }
  .hv-hosp-row { grid-template-columns: 1fr 1fr auto; align-items: center; }
  .hv-hosp .btn { padding: 0 28px; }
  .hv-apps { grid-template-columns: repeat(6, 1fr); }
  .hv-app-ico { width: 66px; height: 66px; font-size: 2rem; }
  .hv-app-t b { font-size: .9rem; }
  .hv-chips { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .hv-flags { margin: 0 0 16px; padding: 0; flex-wrap: wrap; }
}

/* ================= desktop ================= */
@media (min-width: 960px) {
  .hv-sec { padding: 28px 0; }
  .hv-head h2 { font-size: 1.6rem; }
  .hv-chips { flex-wrap: wrap; overflow: visible; }

  /* hero: headline and search on the left, a live example plate on the right */
  .hv-hero { padding: 40px 0 64px; border-radius: 0 0 56px 56px; }
  .hv-hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
  .hv-hello { margin-bottom: 10px; font-size: 1.05rem; }
  .hv-title { font-size: clamp(3rem, 4.4vw, 4.2rem); line-height: 1.16; margin-bottom: 14px; }
  .hv-sub { font-size: 1.1rem; margin-bottom: 26px; }
  .hv-find { border-radius: 24px; }
  .hv-find input { height: 68px; font-size: 1.15rem; padding-left: 58px; }
  .hv-find-ico { left: 22px; }
  .hv-hero-r { position: relative; padding: 18px 0 18px 18px; }
  .hv-hero-r::before { content: ""; position: absolute; z-index: 0; inset: -6px -10px -6px 4px; border-radius: 40px; border: 1.5px dashed rgba(244,183,42,.45); transform: rotate(2.2deg); pointer-events: none; }
  .hv-out { position: relative; z-index: 1; }
  .hv-empty { display: block; padding: 28px; border: 1.5px dashed rgba(255,255,255,.28); border-radius: 26px; text-align: center; color: var(--on-ink-2); }
  .hv-empty span { font-size: 3rem; } .hv-empty p { margin: 8px 0 0; }
  .hv-out.is-demo .hv-card::before { content: attr(data-demo); position: absolute; top: -13px; left: 20px; padding: 3px 12px; border-radius: 99px; background: var(--gold); color: var(--gold-ink); font-size: .78rem; font-weight: 800; }
  .hv-card { padding: 22px; border-radius: 30px; }
  .hv-ring { width: 124px; height: 124px; } .hv-ring b { font-size: 2.1rem; }

  /* today: three cards in a row */
  .hv-today { padding-top: 30px; }
  .hv-today-grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 16px; overflow: visible; padding: 0; }
  .hv-t { flex: none; min-height: 150px; padding: 20px; }

  /* bento: one tall dark tile, four medium, one wide strip */
  .hv-menu { grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: auto; gap: 16px; }
  .hv-row { min-height: 156px; padding: 20px; border-radius: 28px; }
  .hv-row:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(12,46,37,.5); }
  .hv-row-t b { font-size: 1.12rem; }
  .hv-row[data-k="smart-pick"] { grid-column: 1; grid-row: 1 / span 2; min-height: 340px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; padding: 28px; background: var(--ink) radial-gradient(circle at 85% 12%, rgba(244,183,42,.22), transparent 42%); }
  .hv-row[data-k="smart-pick"] .hv-row-ico { position: absolute; top: 24px; left: 24px; width: 72px; height: 72px; font-size: 2.4rem; border-radius: 24px; }
  .hv-row[data-k="smart-pick"] .hv-row-t b { font-size: 1.7rem; line-height: 1.2; }
  .hv-row[data-k="smart-pick"] .hv-row-t small { font-size: 1rem; max-width: 22em; }
  .hv-row[data-k="smart-pick"]::after { position: absolute; top: 24px; right: 24px; margin: 0; width: 44px; height: 44px; font-size: 1.2rem; }
  .hv-row:last-child:nth-child(even) { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; gap: 18px; padding: 18px 24px; }
  .hv-row:last-child:nth-child(even)::after { position: static; margin-left: auto; }

  /* hospital: text on the left, form on the right */
  .hv-hosp { display: grid; grid-template-columns: 1fr 1.35fr; column-gap: 56px; align-items: center; padding: 32px 36px; border-radius: 34px; }
  .hv-hosp h2 { grid-column: 1; font-size: 1.7rem; } .hv-hosp p { grid-column: 1; margin-bottom: 0; }
  .hv-hosp-row { grid-column: 2; grid-row: 1 / span 2; }
  .hv-sos { grid-column: 1 / -1; }
  .hv-sos span { flex-basis: auto; margin-right: 6px; }
  .hv-abroad { padding: 34px 38px; border-radius: 34px; }
  .hv-abroad h2 { font-size: 1.7rem; } .hv-abroad p { max-width: 40em; font-size: 1.05rem; }

  /* tools: full cards with a one-line description, nothing hidden */
  .hv-apps { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .hv-app { flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; transition: transform .18s var(--ease), border-color .18s, box-shadow .18s; }
  .hv-app:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: 0 14px 28px -20px rgba(12,46,37,.55); color: var(--text); }
  .hv-app.is-extra { display: flex; }
  .hv-app.is-wide { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: #fff; padding: 18px 22px; }
  .hv-app.is-wide:hover { color: #fff; border-color: var(--gold); }
  .hv-app.is-wide .hv-app-t b { color: #fff; font-size: 1.05rem; }
  .hv-app.is-wide .hv-app-t small { color: rgba(255,255,255,.78); -webkit-line-clamp: 1; }
  .hv-app.is-wide .hv-app-ico { background: rgba(255,255,255,.12); box-shadow: none; }
  .hv-app-ico { flex: none; width: 52px; height: 52px; font-size: 1.6rem; border-radius: 17px; }
  .hv-app-t b { font-size: .98rem; }
  .hv-app-t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
  .hv-more { display: none; }
  .hv-tsearch { max-width: 560px; }
  .hv-prem { padding: 22px 26px; }
}
@media (min-width: 1280px) { .hv-apps { grid-template-columns: repeat(5, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hv-ring .v { transition: none; } .hv-mic.is-on { animation: none; } .hv-row, .hv-app { transition: none; } }

/* wrappers that are both .container and .hv-sec keep their side gutters */
.container.hv-sec { padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .container.hv-sec { padding-left: 24px; padding-right: 24px; } }

/* ---- smart search: filtered lists ("কম ক্যালরি মাছ"), starters, articles ---- */
.hv-list header h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.hv-list header span { flex: none; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.hv-fx { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.hv-fx:empty { display: none; }
.hv-fc { min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--brand-600); background: var(--brand-50); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.hv-fc span { margin-left: 4px; color: var(--muted); font-weight: 400; }
.hv-fc:hover, .hv-fc:focus-visible { background: #fff; }
.hv-ll { list-style: none; margin: 0; padding: 0; }
.hv-ll li + li { border-top: 1px solid var(--line); }
.hv-lr { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 8px 4px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
.hv-lr:hover, .hv-lr:focus-visible { background: var(--brand-50); }
.hv-lt { display: grid; gap: 1px; min-width: 0; }
.hv-lt b { font-weight: 700; line-height: 1.3; }
.hv-lt small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.hv-lr em { flex: none; font-style: normal; font-weight: 800; font-size: 1.05rem; text-align: right; }
.hv-lr em small { font-weight: 500; font-size: .75rem; color: var(--muted); }
.hv-lmore { display: block; width: 100%; min-height: 48px; margin-top: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.hv-lmore:hover, .hv-lmore:focus-visible { border-color: var(--brand-600); background: var(--brand-50); }
.hv-fr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.hv-fr span { width: 100%; font-size: .85rem; color: var(--muted); }
.hv-fr button { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; }
.hv-fr button:hover, .hv-fr button:focus-visible { border-color: var(--brand-600); background: var(--brand-50); }
.hv-back { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 10px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.hv-back:hover, .hv-back:focus-visible { background: rgba(255,255,255,.22); }
.hv-pp { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.hv-pp a { display: block; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.4; }
.hv-pp a:hover, .hv-pp a:focus-visible { background: var(--brand-50); }
.hv-sug li.is-all { background: #EAF5EF; }
.hv-sug li.is-post { background: #EEF3FA; }
.hv-sug li.is-post:hover, .hv-sug li.is-post.is-on { background: #DFE9F7; }
.hv-sug li.is-start { background: #F6F3E7; }
.hv-sug li.is-all .hv-sg-t b { font-weight: 800; }
