/* DeshFR card styles. Used by the student app (it also worked inside a shadow root, as the old landing page sample did, so the
   page's own styles never touched it). It uses only tokens the page defines (--ink, --surface, --border, fonts ...)
   and the topic colours below. No inline styles anywhere: the page's Content-Security-Policy does not allow them. */

/* Topic colours (the same in light and dark). --tk is the colour, --tkink the text that sits on it. */
.dcard{--tk:#5a5f68;--tkink:#ffffff}
.dcard .topic-business,.dcard .tk-business{--tk:#f2b93b;--tkink:#1f1700}
.dcard .topic-world,.dcard .tk-world{--tk:#2f6b6b;--tkink:#ffffff}   /* the logo colours: the picture block is the green-to-teal gradient (see .photo.topic-world) */
.dcard .topic-government,.dcard .tk-government{--tk:#9b3d6b;--tkink:#ffffff}
.dcard .topic-tech_ai,.dcard .tk-tech_ai{--tk:#3b4048;--tkink:#ffffff}
.dcard .topic-sports,.dcard .tk-sports{--tk:#b8432f;--tkink:#ffffff}
.dcard .topic-science,.dcard .tk-science{--tk:#f28a2e;--tkink:#2a1300}

/* The card itself */
.dcard{background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:var(--radius-card);overflow:hidden;font:400 16px/25px var(--font-sans);overflow-wrap:anywhere;text-align:left;-webkit-font-smoothing:antialiased}
.dcard *{box-sizing:border-box}
.dcard [hidden]{display:none!important}
.dcard p,.dcard h2{margin:0}
.dcard button{font:inherit;color:inherit}
.dcard :focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.dcard .hl:focus{outline:none}

/* The picture area: a real photo, or a designed block in the topic colour with a big icon and the headline's main word */
.photo{position:relative;aspect-ratio:16/9;background:var(--tk);color:var(--tkink);display:flex;align-items:flex-end;padding:var(--space-3);overflow:hidden}
.photo::before{content:"";position:absolute;right:-36px;top:-36px;width:170px;height:170px;border-radius:50%;background:currentColor;opacity:.1}
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.photo.has img{opacity:1}
.photo.has::before{display:none}
.photo.topic-world{background:linear-gradient(135deg,#5e7352,#2f6b6b)}
.photo .ph{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:100%}
.photo .phi{width:64px;height:64px;margin-bottom:var(--space-2)}
.photo .phk{font:700 30px/1.08 var(--font-serif);letter-spacing:-.015em}
.photo .phl{font:500 11px/14px var(--font-sans);letter-spacing:.07em;text-transform:uppercase}
.photo.has .ph{display:none}
.photo .cr{position:absolute;left:var(--space-3);top:var(--space-3);display:none;max-width:calc(100% - 24px);padding:3px 8px;border-radius:var(--radius-pill);background:rgba(10,10,11,.62);color:#fff;font:400 11px/14px var(--font-sans)}
.photo.has .cr{display:inline-block}
.photo .cr a{color:#fff;text-underline-offset:2px}

/* Text, words and boxes */
.cbody{padding:var(--space-4);display:flex;flex-direction:column;gap:var(--space-3)}
.rep{display:flex;justify-content:flex-end;margin:calc(var(--space-2) * -1) 0 0}
.rep .linkbtn{min-height:32px;font-size:12px;padding:0}
.tags{display:flex;gap:var(--space-2);flex-wrap:wrap}
.tagc{display:inline-flex;align-items:center;height:24px;padding:0 9px;border:1px solid var(--border-strong);border-radius:var(--radius-pill);font:400 11px/11px var(--font-sans);color:var(--ink-muted)}
.hl{font:600 25px/30px var(--font-serif);text-wrap:balance}
.card .txt{color:var(--ink-muted);position:relative}
.term{font:inherit;color:var(--ink);background:none;border:0;padding:0;margin:0;cursor:pointer;border-bottom:1.5px dashed var(--accent-text);border-radius:0;font-weight:500}
.term:hover,.term[aria-expanded="true"]{color:var(--accent-text)}
.term:focus-visible{outline:2px solid var(--accent-text);outline-offset:3px;border-radius:2px}
.tip{display:block;margin-top:8px;padding:8px 12px;background:var(--ink);color:var(--on-ink);border-radius:6px;font-size:14px;line-height:20px}
.wk{border:1px solid var(--border);background:var(--surface-raised);border-radius:6px;padding:var(--space-3) var(--space-4)}
.wk .l{display:block;font:500 11px/14px var(--font-sans);letter-spacing:.07em;text-transform:uppercase;color:var(--accent-text);margin-bottom:4px}
.wk p{font-size:15px;line-height:22px;color:var(--ink-muted)}
.wk p + p{margin-top:var(--space-2)}
.wk b{font-weight:600;color:var(--ink)}
.wk ul{margin:4px 0 0;padding-left:var(--space-5);font-size:15px;line-height:22px;color:var(--ink-muted)}
.foryou{position:relative;overflow:hidden;background:var(--ink);color:var(--on-ink);border-radius:6px;padding:var(--space-4)}
.foryou::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--grad-p)}
.chain{display:flex;align-items:center;gap:6px;margin-bottom:var(--space-3);flex-wrap:wrap}
.node{display:inline-flex;align-items:center;gap:5px;font:400 11px/11px var(--font-sans);color:var(--panel-muted)}
.node::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--panel-node)}
.line{flex:1;min-width:8px;height:2px;border-radius:2px;background:var(--grad-p)}
.ptag{display:inline-flex;align-items:center;font:400 11px/11px var(--font-sans);color:var(--on-ink);padding:5px 10px;border:1px solid transparent;border-radius:var(--radius-pill);background:linear-gradient(var(--ink),var(--ink)) padding-box,var(--grad-p) border-box}
.rule{height:1px;background:var(--panel-divider);margin-bottom:var(--space-3)}
.plabel{display:block;font:500 11px/14px var(--font-sans);letter-spacing:.07em;text-transform:uppercase;color:var(--panel-label);margin-bottom:4px}
.ptext{font:500 16px/21px var(--font-serif)}
.src{font-size:12px;line-height:17px;color:var(--ink-subtle)}
.src a{color:var(--ink-muted);text-underline-offset:2px}

.fysteps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.fysteps li{position:relative;padding:0 0 var(--space-3) 24px;font:400 15px/21px var(--font-sans);color:var(--on-ink)}
.fysteps li:last-child{padding-bottom:0;font:500 16px/21px var(--font-serif)}
.fysteps li::before{content:"";position:absolute;left:0;top:6px;width:9px;height:9px;border-radius:50%;background:var(--panel-node)}
.fysteps li:last-child::before{background:var(--grad-p)}
.fysteps li::after{content:"";position:absolute;left:3.5px;top:19px;bottom:-5px;width:2px;border-radius:2px;background:var(--grad-p)}
.fysteps li:last-child::after{display:none}

.dyk{position:relative;overflow:hidden;border:1px solid var(--border);background:var(--surface-raised);border-radius:6px;padding:var(--space-4)}
.dyk::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--grad)}
.dyk .l{display:block;font:500 11px/14px var(--font-sans);letter-spacing:.07em;text-transform:uppercase;color:var(--accent-text);margin-bottom:4px}
.dyk p{font:500 16px/22px var(--font-serif)}

.wk2{display:flex;flex-direction:column;gap:var(--space-2)}
.wchips{display:flex;flex-wrap:wrap;gap:6px}
.wchip{display:inline-flex;align-items:center;min-height:32px;max-width:100%;padding:0 12px;border:1px solid var(--border-strong);border-radius:var(--radius-pill);background:transparent;color:var(--ink);cursor:pointer;font:500 13px/18px var(--font-sans);text-align:left}
.wchip[aria-expanded="true"]{border-color:var(--accent-text);color:var(--accent-text)}
.wchip:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.wmeans{display:flex;flex-direction:column;gap:var(--space-2)}
.wmean{padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-left:3px solid var(--accent-text);border-radius:6px;background:var(--surface-raised);font-size:14px;line-height:20px;color:var(--ink-muted)}
.wmean b{font-weight:600;color:var(--ink)}

.imark{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:16px;height:16px;margin-left:5px;border:1.5px solid var(--accent-text);border-radius:50%;color:var(--accent-text);font:italic 700 10px/1 var(--font-serif);vertical-align:1px;text-decoration:none}
.term .imark{vertical-align:2px}
.wchip .imark{margin-left:6px;vertical-align:baseline}

/* The For you box (new shape): a card in the topic colour with the student's family symbol */
.fy3{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-5) var(--space-4);border-radius:var(--radius-card);background:var(--tk);color:var(--tkink)}
.fy3::before{content:"";position:absolute;right:-50px;bottom:-50px;width:190px;height:190px;border-radius:50%;background:currentColor;opacity:.08;pointer-events:none}
.fy3 > *{position:relative}
.fy3-top{display:flex;align-items:center;gap:var(--space-3)}
.fy3-sym{flex:none;display:inline-flex;align-items:center;justify-content:center;width:76px;height:76px;border-radius:50%;background:rgba(255,255,255,.22);box-shadow:inset 0 0 0 2px currentColor}
.fy3-ic{width:46px;height:46px}
.fy3-hook{min-width:0;font:600 21px/26px var(--font-serif);letter-spacing:-.005em;text-wrap:balance}
.fy3-part{display:flex;flex-direction:column;gap:3px}
.fy3-l{font:600 11px/14px var(--font-sans);letter-spacing:.08em}
.fy3-part p{font-size:15px;line-height:22px}
.fy3-part.fam{padding:var(--space-3);border-radius:8px;background:rgba(255,255,255,.2)}
.fy3-part.fam p{font:600 16px/22px var(--font-serif)}
.fy3-part.think{padding-top:var(--space-3);border-top:1.5px dashed currentColor}

/* The flow map in the For you box: dots joined by lines, one step leading to the next. No headings. */
.fy3-flow{gap:var(--space-4)}
.fy3-flow.fy3-nohook{padding-top:56px}
.fy3 > .fy3-sym-s{position:absolute;top:var(--space-3);right:var(--space-3);width:36px;height:36px;box-shadow:inset 0 0 0 1.5px currentColor}
.fy3-sym-s .fy3-ic{width:22px;height:22px}
.fy3-flow .fy3-hook{font:700 24px/1.2 var(--font-serif);padding-right:44px}
.fm{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.fm-step{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr);gap:var(--space-3);align-items:start;padding-bottom:26px;animation:fm-in .28s ease backwards}
.fm-step.fm-last,.fm-step.fm-end{padding-bottom:0}
.fm-dot{justify-self:center;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;font:400 20px/1 var(--font-sans);background:rgba(255,255,255,.22);box-shadow:inset 0 0 0 2px currentColor,0 0 0 4px rgba(255,255,255,.14)}
.fm-text{margin:0;padding-top:9px;font-size:15px;line-height:22px}   /* dots stay at the top of their step so the line below always starts under the dot */
.fm-last .fm-dot{width:52px;height:52px;font-size:26px;background:var(--tkink);box-shadow:0 0 0 3px var(--tk),0 0 0 5px var(--tkink),0 0 20px 4px color-mix(in srgb,var(--tkink) 50%,transparent)}
.fm-last .fm-text{padding-top:14px;font:600 17px/24px var(--font-serif)}
.fm-step:not(.fm-last):not(.fm-end)::after{content:"";position:absolute;left:25px;top:42px;bottom:2px;width:2px;background:currentColor;opacity:.6;transform-origin:top;animation:fm-draw .12s linear backwards}
.fm-step:not(.fm-last):not(.fm-end)::before{content:"";position:absolute;left:20px;bottom:0;z-index:1;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid currentColor;filter:drop-shadow(0 0 4px currentColor);animation:fm-in .12s ease backwards}
.fm-s2{animation-delay:.12s}.fm-s3{animation-delay:.24s}.fm-s4{animation-delay:.36s}
.fm-s1::after,.fm-s1::before{animation-delay:.12s}.fm-s2::after,.fm-s2::before{animation-delay:.24s}.fm-s3::after,.fm-s3::before{animation-delay:.36s}
@keyframes fm-in{from{opacity:0;transform:translateY(8px)}}
@keyframes fm-draw{from{transform:scaleY(0)}}
@media (prefers-reduced-motion:reduce){.fm-step,.fm-step::before,.fm-step::after{animation:none}}

/* New card format: underlined words, Think about it button, Ask at home, Do you know? */
.uw{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-decoration:underline dotted;text-decoration-thickness:2px;text-underline-offset:4px;text-align:inherit}
.uw[aria-expanded="true"]{color:var(--ink)}
.uw:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px;border-radius:2px}
.uwbox{padding:var(--space-2) var(--space-3);border-radius:8px;background:var(--surface-raised);border:1px solid var(--border);font-size:14px;line-height:20px;color:var(--ink-muted);margin-top:calc(var(--space-2) * -1)}
.uwbox b{font-weight:600;color:var(--ink)}

.fy3-new .fm-step{padding-bottom:22px}
.fy3-new .fm-step.fm-end{padding-bottom:0}
.thk{border-radius:16px;background:rgba(255,255,255,.2);box-shadow:inset 0 0 0 1.5px currentColor;overflow:hidden}
.thk-btn{display:flex;align-items:center;gap:var(--space-3);width:100%;margin:0;padding:var(--space-3) var(--space-4);border:0;background:none;color:inherit;text-align:left;cursor:pointer}
.thk-static .thk-btn{cursor:default}
.thk-btn:focus-visible{outline:2px solid currentColor;outline-offset:-4px;border-radius:16px}
.thk-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.thk-l{font:600 11px/14px var(--font-sans);letter-spacing:.08em}
.thk-q{font:700 17px/23px var(--font-serif)}
.thk-badge{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#fff;font:400 20px/1 var(--font-sans);box-shadow:0 1px 4px rgba(0,0,0,.18)}
.thk-ans{margin:0 var(--space-4);padding:var(--space-3) 0 var(--space-4);border-top:1px solid currentColor;animation:thk-open .22s ease}
.thk-ans p{font-size:15px;line-height:22px}
.thk-ans b{font-weight:700}
@keyframes thk-open{from{opacity:0;transform:translateY(-4px)}}

.askh{--ah-bg:#fff4e0;--ah-ink:#4a3412;--ah-bd:#e0a84a;--ah-bub:#ffffff;--ah-bubink:#2a1d08;padding:var(--space-4);border:2px dashed var(--ah-bd);border-radius:var(--radius-card);background:var(--ah-bg);color:var(--ah-ink);display:flex;flex-direction:column;gap:var(--space-3)}
.askh-head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-3);flex-wrap:wrap}
.askh-l{font:700 11px/14px var(--font-sans);letter-spacing:.08em}
.askh-fam{font:500 12px/16px var(--font-sans);text-align:right}
.askh-bubble{padding:var(--space-3) var(--space-4);border-radius:14px 14px 14px 4px;background:var(--ah-bub);color:var(--ah-bubink)}
.askh-bubble p{font:500 15px/22px var(--font-serif)}
.askh-note{font-size:13px;line-height:18px}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .askh{--ah-bg:#3a2c14;--ah-ink:#f7e2bb;--ah-bd:#a67a2c;--ah-bub:#fff8ea}
}
:root[data-theme="dark"] .askh{--ah-bg:#3a2c14;--ah-ink:#f7e2bb;--ah-bd:#a67a2c;--ah-bub:#fff8ea}

.dyk2{padding:var(--space-4);border-radius:12px;background:var(--surface-raised);border:1px solid var(--border)}
.dyk2-l{display:block;margin-bottom:4px;font:600 11px/14px var(--font-sans);letter-spacing:.1em;color:var(--accent-text)}
.dyk2 p{font-size:13.5px;line-height:20px;color:var(--ink-muted)}
@media (prefers-reduced-motion:reduce){.thk-ans{animation:none}}

/* Round 6: the logo colours in place of blue. The For you box is the green-teal gradient whatever the topic; the topic colours stay on the picture block. */
.dcard section.fy3{--tk:#2f6b6b;--tkink:#ffffff;background:linear-gradient(135deg,#5e7352,#2f6b6b);color:#ffffff}
.dyk2-l{color:var(--accent-text)}
:root:not([data-theme="light"]) .dyk2-l,:root[data-theme="dark"] .dyk2-l{color:var(--accent-text)}
