/* பெற்றோருக்கு — Parent corner, For families, install card, welcome tour (js/views/parents.js)
   and the privacy notice (js/views/privacy.js) */
.parents-page, .families-page, .privacy-page { display: grid; gap: 0; min-width: 0; }
.parents-page .ml, .families-page .ml, .privacy-page .ml, .tour .ml { font-family: var(--f-ml); }
.parents-page .page-head, .families-page .page-head { margin-bottom: 20px; }
.parents-page .mod-head .lede, .families-page .mod-head .lede { padding-right: clamp(0px, 12vw, 120px); }
.parents-page .mod-head .eyebrow .ml, .families-page .mod-head .eyebrow .ml { color: var(--hi); }
.parents-page .sec-title { font-size: 1.2rem; }
.parents-page .panel, .families-page .panel { min-width: 0; }
.pv-list { margin: 0 0 10px; padding-left: 1.3em; display: grid; gap: 8px; }
.pv-list li { line-height: 1.5; }
.pv-list li::marker { color: var(--peacock); }

/* Locked (before the grown-up PIN) */
.pc-gate { display: grid; gap: 12px; justify-items: start; max-width: 640px; border-left: 6px solid var(--peacock); }
.pc-gate .btn { white-space: normal; }
.pc-gate-links { margin: 0; }

/* Last 7 days */
.pc-nums { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(46%, 150px), 1fr)); margin-bottom: 20px; }
.pc-num { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.pc-num b { font: 800 2rem/1.1 var(--f-display); color: var(--peacock-deep); }
.pc-num span:last-child { color: var(--ink-2); font-size: .9rem; line-height: 1.3; }
.pc-emoji { font-size: 1.35rem; line-height: 1.2; }
.pc-did-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.pc-did-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.pc-did-list .pc-emoji { flex: none; width: 1.6em; text-align: center; font-size: 1.15rem; }

.pc-two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pc-two .panel { display: grid; gap: 10px; align-content: start; }
.pc-praise { border-left: 6px solid var(--zari); }
.pc-next { border-left: 6px solid var(--peacock); }
.pc-next .btn { justify-self: start; white-space: normal; text-align: left; }
.pc-two .sec-title { margin-bottom: 4px; }
.pc-two p { margin: 0; }

/* Tamil words with a speaker */
.pc-phrases { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; }
.pc-phrases li { display: flex; gap: 10px; align-items: center; min-height: 44px; min-width: 0; }
.pc-phrases li > span { display: grid; min-width: 0; }
.pc-phrases .ml { font-size: 1.15rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pc-phrases .en { color: var(--ink-2); font-size: .92rem; }

/* This week's homework */
.pc-hw .sec-sub .ml { font-weight: 700; }
.pc-hw-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.pc-hw-list > li { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.pc-hw-list > li.is-done { border-color: var(--leaf); }
.pc-hw-task { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.pc-hw-task > div { display: grid; gap: 3px; min-width: 0; }
.pc-hw-tick { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--peacock-soft); color: var(--peacock-deep); font: 800 .9rem var(--f-ui); }
.pc-hw-tick .icon { width: 18px; height: 18px; }
.is-done .pc-hw-tick { background: var(--leaf-soft); color: var(--leaf); }
.pc-hw-ml { font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.pc-hw-task .en { color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.pc-hw-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pc-hw-meta .chip, .pc-hw-status .chip { white-space: normal; }
.pc-hw-links { list-style: none; margin: 0 0 0 42px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pc-hw-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--peacock); font-weight: 600; text-underline-offset: 3px; }
.pc-hw-links .icon { width: 16px; height: 16px; }
.pc-hw-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Home phrases, tip, device */
.pc-unit-ml { font-weight: 700; }
.pc-home { font-size: 1.05rem; padding: 12px 14px; border-radius: var(--r-md); background: var(--zari-soft); margin: 8px 0 12px; }
.pc-goals summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.pc-goals .pv-list { margin-top: 6px; }
.pc-tip { border-left: 6px solid var(--leaf); }
.pc-tip-links { margin: 6px 0 0; }
.pc-tip-links a, .pc-gate-links a, .pc-device a, .pv-more a { display: inline-flex; align-items: center; min-height: 44px; }
.pc-device { display: grid; gap: 8px; justify-items: start; }
.pc-device p { margin: 0; }
.pc-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(46%, 180px), 1fr)); margin-bottom: 20px; }
.pc-links .explore-card { min-height: 120px; }
.pc-print { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; align-items: center; margin: 8px 0 0; }

/* Install card */
.install-card { display: grid; gap: 10px; justify-items: start; border: 2px dashed var(--peacock); }
.install-card p, .install-card .pv-list { margin: 0; }
.install-card .sec-title { margin-bottom: 0; }

/* For families */
.fam-how { margin-bottom: 26px; }
.fam-how-grid, .fam-steps, .fam-tip-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fam-how-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.fam-how-grid li { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.fam-how-grid li span:last-child { color: var(--ink-2); font-size: .94rem; line-height: 1.45; }
.fam-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin-bottom: 28px; }
.fam-step { position: relative; display: grid; gap: 4px; align-content: start; padding: 18px 16px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.fam-n { position: absolute; top: 12px; right: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--peacock); color: var(--on-peacock); font-weight: 800; font-size: .9rem; }
.fam-emoji { font-size: 1.8rem; line-height: 1.2; }
.fam-step span:last-child { color: var(--ink-2); font-size: .94rem; line-height: 1.45; }
.fam-tips { margin-bottom: 26px; }
.fam-tip-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.fam-tip { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.fam-tip p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.fam-tip .pc-phrases { margin: 0; }
.fam-tip .link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.fam-faq { margin: 26px 0; display: grid; gap: 8px; }
.faq { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
.faq p { padding-bottom: 14px; margin: 0; color: var(--ink-2); line-height: 1.55; }
.fam-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }

/* Welcome tour */
.tour { max-width: 460px; }
.tour-body { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 26px 22px 22px; }
.tour-emoji { font-size: 4rem; line-height: 1; animation: pop .5s var(--spring); }
.tour-ml { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0; font: 800 1.45rem/1.4 var(--f-ml); color: var(--peacock-deep); }
.tour-title { font-size: 1.35rem; margin: 0; }
.tour-text { color: var(--ink-2); margin: 0; line-height: 1.5; }
.tour-dots { list-style: none; display: flex; gap: 6px; padding: 0; margin: 6px 0; }
.tour-dots li { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.tour-dots li.on { background: var(--marigold); width: 26px; border-radius: 6px; }
.tour-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tour-actions .btn .ml { font-weight: 700; }

/* Privacy notice */
.pv-owner { border-left: 6px solid var(--zari); }
.pv-owner p { margin: 0 0 8px; line-height: 1.55; }
.pv-sec { margin: 0 0 22px; max-width: 78ch; }
.pv-sec > p { line-height: 1.55; margin: 0 0 8px; }
.privacy-page .sec-title { font-size: 1.2rem; margin-bottom: 10px; }
.pv-more { margin: 4px 0 0; }

:root[data-contrast="high"] .pc-num, :root[data-contrast="high"] .fam-tip, :root[data-contrast="high"] .pc-hw-list > li { border-color: var(--line-2); }
:root[data-contrast="high"] .pc-num span:last-child, :root[data-contrast="high"] .fam-tip p, :root[data-contrast="high"] .faq p { color: var(--ink); }

@media (max-width: 560px) {
  .pc-hw-links { margin-left: 0; }
  .parents-page .mod-head .lede, .families-page .mod-head .lede { padding-right: 0; }
  .parents-page .mod-head .eyebrow, .families-page .mod-head .eyebrow { padding-right: 72px; }
  .parents-page .mod-emoji, .families-page .mod-emoji { top: 22px; translate: none; font-size: 3.4rem; }
}
@media (prefers-reduced-motion: reduce) { .tour-emoji { animation: none; } }

@media print {
  .pc-links, .install-card, .pc-print, .pc-device, .pc-actions, .pc-hw-links, .pc-tip-links, .pc-next .btn, .speaker, .dl-note { display: none !important; }
  .parents-page .mod-head .lede { display: block !important; }
  .parents-page .panel, .pc-num { break-inside: avoid; box-shadow: none; background: #fff; color: #000; border-color: #999; }
  .pc-nums { grid-template-columns: repeat(4, 1fr); }
  .mod-emoji { display: none; }
  .pc-goals:not([open]) > :not(summary) { display: block; }
  .privacy-page .pv-sec { break-inside: avoid; }
}
