/* EasyPortugal V10 · sistema visual V2.1
   Camada de apresentação. Não interfere com as fórmulas nem com o router.
   Ação ≠ categoria ≠ estado: manter significados cromáticos separados.
*/
:root, :root[data-theme="light"] {
  --bg:#F7F5F0;--surface:#FFFFFF;--ink:#0D3352;--muted:#476172;--line:#DDE6E6;
  --accent:#0C6C62;--accent-soft:#E9F4EF;--good:#176B51;--warn:#B44D37;
  --ep-gold:#E4B65B;--ep-blue:#0D3352;--ep-sand:#FFF6E4;--ep-coral:#B44D37;
  --ep-action:#0C6C62;--ep-action-hover:#09554D;--ep-focus:#0F6EAA;
  --ep-radius-s:12px;--ep-radius-m:16px;--ep-radius-l:22px;
  --f-display:"Noto Serif Display",Georgia,"Noto Serif",serif;
  --f-body:"Lato","Figtree","Instrument Sans",system-ui,sans-serif;
  --f-num:"Figtree","IBM Plex Mono",ui-monospace,monospace;
  --c-trab:#235B79;--c-casa:#0C6C62;--c-fam:#A44A63;--c-saude:#A34351;
  --c-poup:#176B51;--c-carro:#87562A;--c-ener:#936319;--c-comp:#5E5788;
  --c-calc:#335D79;--c-datas:#7D5673;--c-mudar:#197477;
  --r-l:22px;--r-m:16px;--r-s:12px;
  --shadow:0 3px 16px rgba(13,51,82,.048),0 1px 3px rgba(13,51,82,.04);
}
:root[data-theme="dark"]{
  --bg:#0D202C;--surface:#142F3D;--ink:#F2F6F3;--muted:#B9CCD2;--line:#365360;
  --accent:#8FDFCC;--accent-soft:#173F40;--good:#95DEC0;--warn:#FFBAA9;
  --ep-action:#8FDFCC;--ep-focus:#E4B65B;--ep-gold:#E4B65B;
  --c-trab:#A7CFF0;--c-casa:#8FDFCC;--c-fam:#FFC0CA;--c-saude:#FFB0AF;
  --c-poup:#95DEC0;--c-carro:#F9CC9A;--c-ener:#F3D590;--c-comp:#C9BBF5;
  --c-calc:#B7D2E8;--c-datas:#E6B6D9;--c-mudar:#9CE5DB;
  --shadow:0 7px 25px rgba(0,0,0,.15);color-scheme:dark;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-theme="dark"]){
  --bg:#0D202C;--surface:#142F3D;--ink:#F2F6F3;--muted:#B9CCD2;--line:#365360;
  --accent:#8FDFCC;--accent-soft:#173F40;--good:#95DEC0;--warn:#FFBAA9;--ep-focus:#E4B65B;
  --c-trab:#A7CFF0;--c-casa:#8FDFCC;--c-fam:#FFC0CA;--c-saude:#FFB0AF;--c-poup:#95DEC0;
  --c-carro:#F9CC9A;--c-ener:#F3D590;--c-comp:#C9BBF5;--c-calc:#B7D2E8;
  --c-datas:#E6B6D9;--c-mudar:#9CE5DB;--shadow:0 7px 25px rgba(0,0,0,.15);color-scheme:dark;
}}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font-family:var(--f-body);line-height:1.52}
.wrap{max-width:1120px;gap:28px}
.top{min-height:70px;padding:8px 0 16px;border-bottom:1px solid var(--line);align-items:center;gap:18px}
.top .brand,.static-brand,.ep-rf-brand{display:inline-flex;align-items:center;flex:none;max-width:min(100%,254px);min-width:0;height:52px;text-decoration:none}
.top .brand{font-size:0;letter-spacing:0}
.brand .dot{display:none!important}
.ep-brand-logo{width:245px;max-width:100%;height:auto;aspect-ratio:492/100;display:block}
.ep-brand-logo.dark{display:none}
:root[data-theme="dark"] .ep-brand-logo.light{display:none}
:root[data-theme="dark"] .ep-brand-logo.dark{display:block}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .ep-brand-logo.light{display:none}:root:not([data-theme="light"]) .ep-brand-logo.dark{display:block}}
.top .back{margin-inline-start:auto;min-height:44px;display:inline-flex;align-items:center;font-weight:700}
.top .back[hidden]{display:none}
.lang{background:var(--surface);border:1px solid var(--line);box-shadow:none;min-height:44px;padding:9px 14px;color:var(--ink)}
.lmenu{border:1px solid var(--line);box-shadow:0 14px 38px rgba(13,51,82,.12)}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--ep-focus)!important;outline-offset:3px!important}
h1,h2,.moms-h,.group h2,.how h2,.static h1{font-family:var(--f-display);font-weight:700;letter-spacing:-.03em}
h1{font-size:clamp(30px,5vw,44px);line-height:1.14;max-width:22ch}
.sub{font-size:clamp(15px,1.8vw,18px);line-height:1.58;color:var(--muted);max-width:66ch}
:root:lang(hi) h1,:root:lang(bn) h1,:root:lang(ne) h1,:root:lang(ur) h1{font-family:inherit;letter-spacing:0}
.ep-main{min-width:0}
/* HOMEPAGE: uma decisão visual dominante, seguida de percursos progressivos. */
.wrap:has(#t-inicio:not([hidden])){max-width:1080px}
.hero{isolation:isolate;overflow:hidden;position:relative;border-radius:30px;padding:clamp(24px,4.5vw,56px);gap:16px;
 background:linear-gradient(115deg,#E9F4EF 0%,#EFF6F1 52%,#FFF4E4 100%);border:1px solid #D9E7DE;
 box-shadow:0 16px 48px rgba(13,51,82,.055)}
.hero::before{content:"";position:absolute;z-index:-1;inset:0;background:url('/brand/hero-wave.svg') no-repeat right bottom;background-size:min(53%,490px) auto;opacity:.86;pointer-events:none}
.hero::after{content:"";position:absolute;z-index:-1;right:-40px;top:-90px;width:300px;height:300px;border:1px solid rgba(13,51,82,.085);border-radius:50%;pointer-events:none}
.hero .greet{color:#0C6C62;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.hero h1{font-family:var(--f-display);font-size:clamp(36px,5vw,62px);line-height:1.09;max-width:14ch;color:#0D3352;letter-spacing:-.045em}
.hero .sub{color:#335467;max-width:54ch}
.hero .sbox{width:100%;max-width:720px;margin-top:14px;filter:drop-shadow(0 8px 16px rgba(13,51,82,.09))}
.hero .search{font-family:var(--f-body);font-size:17px;min-height:68px;border:2px solid transparent;box-shadow:none;background:#fff;color:#0D3352;border-radius:18px;padding-inline-start:56px}
.hero .search:focus{border-color:#0C6C62;outline:3px solid rgba(12,108,98,.15)!important;outline-offset:2px!important}
.hero .sbox svg{color:#0C6C62;width:24px;height:24px;inset-inline-start:19px}
.doors{grid-template-columns:repeat(3,minmax(0,1fr));max-width:720px;gap:10px}
.doors :is(button,a){min-height:66px;text-align:start;padding:12px 18px;border:1px solid #D9E7E3;border-radius:15px;box-shadow:0 2px 8px rgba(13,51,82,.045);color:#0D3352;background:rgba(255,255,255,.95);font-size:15px;transition:background .15s ease,transform .15s ease}
.doors :is(button,a):first-child{border-color:#0C6C62;background:#0C6C62;color:white;box-shadow:0 6px 18px rgba(12,108,98,.14)}
.doors :is(button,a):first-child:hover{background:#09554D}
.doors :is(button,a):not(:first-child):hover{background:white;border-color:#0C6C62}
.picks{max-width:800px;gap:8px}.picks .lbl{color:#335467;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.picks a{background:rgba(255,255,255,.92);border:1px solid rgba(13,51,82,.10);box-shadow:none;font-size:13px;color:#0D3352;min-height:38px;padding:6px 12px}
.picks a:hover{border-color:#0C6C62;transform:none}
.nextday{background:var(--surface);border:1px solid var(--line);border-inline-start:4px solid var(--ep-gold);box-shadow:none;border-radius:var(--ep-radius-m)}
.moms-h{font-size:clamp(21px,3vw,27px);margin:12px 0 0}
.moms{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.moms a{min-height:93px;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:16px;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;font-size:15px}
.moms a:hover{transform:translateY(-2px);border-color:var(--accent)}
.moms a img,.moms a svg{width:30px;height:30px;object-fit:contain}
.tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tile{min-height:145px;padding:18px;gap:10px;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);background:var(--surface);color:var(--ink)}
.tile::after{content:none}
.tile .ep-topic-icon,.tile svg{width:36px;height:36px;object-fit:contain}
.tile .tn{font-family:var(--f-body);font-size:16px;font-weight:800;line-height:1.26}
.tile .tc{color:var(--muted);font-size:12px}
.tile[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--accent);background:var(--accent-soft)}
.groups details.group{border-color:var(--line);padding:7px 0}.groups details.group>summary{padding:5px 0}
.groups details.group>summary h2{font-family:var(--f-body);font-weight:800;font-size:17px}
.groups .sw{background:var(--accent-soft);border-radius:12px!important}
.group .sw img,.group h2 .sw img{height:20px;width:20px;object-fit:contain}
.item a{background:var(--surface);border:1px solid var(--line);box-shadow:none;padding:16px 18px;border-radius:var(--ep-radius-m);min-height:74px}
.item a:hover{background:var(--accent-soft);border-color:var(--accent)}
.item .ic{background:var(--accent-soft);border-radius:11px;padding:8px;display:grid;place-items:center;flex:none;width:44px;height:44px}
.item .ic svg,.item .ic img{width:28px;height:28px;object-fit:contain}
.item .t{color:var(--ink);font-weight:800;font-size:16px}.item .d{color:var(--muted);font-size:13px}
.item .go{font-size:22px;color:var(--accent)}
/* CALCULADORAS: resposta primeiro, pormenores sempre disponíveis. */
section.tool{gap:18px}
section.tool .crumb{color:var(--muted);font-size:13px;min-height:28px}
.crumb .pill{background:var(--accent-soft);color:var(--ink);border-radius:999px;padding:5px 9px}
.crumb .pill svg{color:var(--accent)}
section.tool h1{font-size:clamp(31px,3.7vw,44px);max-width:31ch}
.trust{font-size:12px;line-height:1.45;gap:6px 12px}
.trust .lvl{padding:5px 11px;background:var(--surface);border:1px solid var(--line);font-weight:800}
.trust .lvl-e{color:var(--good)}.trust .lvl-s{color:var(--ink)}.trust .lvl-o{color:var(--muted)}
.form,.form.lead{background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:clamp(17px,2.5vw,26px);gap:17px}
.field label,.lbl{font-family:var(--f-body);font-weight:800;color:var(--ink);font-size:14px}
input[type=number],input[type=date],input[type=text],input[type=time],select,textarea{background:var(--surface);border:1.5px solid var(--line);border-radius:12px;color:var(--ink);font-family:var(--f-body);font-variant-numeric:tabular-nums}
input[type=number]:focus,input[type=date]:focus,select:focus,input[type=text]:focus{border-color:var(--ep-focus)!important;outline:3px solid var(--ep-focus)!important;outline-offset:2px!important}
.hint{color:var(--muted);font-size:13px}
.seg{background:var(--bg);border-color:var(--line);border-radius:13px}.seg button[aria-pressed="true"]{box-shadow:0 2px 8px rgba(13,51,82,.07);color:var(--ink)}
.tool .result{border-radius:22px;background:linear-gradient(145deg,#E4F3EB,#F3F8EF);border:1px solid #C9E3D9;box-shadow:0 8px 30px rgba(13,51,82,.07);padding:clamp(20px,3vw,32px);gap:12px}
.tool .result::before{content:none}
.tool .result .kicker{font-family:var(--f-body);font-weight:800;letter-spacing:.01em;color:#32546A}
.tool .big{font-family:var(--f-num);font-size:clamp(33px,5vw,48px);font-weight:800;line-height:1.08;color:#0D3352!important;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.tool .big.mid{font-size:clamp(24px,4vw,31px)}
.tool .result p,.tool .result table{color:#224554}
.result .exlbl{border:1px solid #C9DDD6;background:rgba(255,255,255,.72);color:#365D64;font-size:12px;font-weight:800}
.slbar{height:13px;background:#D4E5E0}.slbar .b1{background:#0C6C62}.slbar .b2{background:#6985A1}.slbar .b3{background:#C48A42}
.result .slleg{gap:8px 16px}.slleg span::before{border-radius:50%}
.pos{color:var(--good)}.neg{color:var(--warn)}
.share{margin-top:4px}.share a,.share button.copy{background:#FFFFFF!important;border:1px solid #BCD8CF!important;border-radius:12px!important;color:#0C6C62!important;padding:11px 15px!important;min-height:44px;font-weight:800;font-size:13px!important;box-shadow:none!important}
.share a:hover,.share button.copy:hover{border-color:#0C6C62!important;background:#F5FAF7!important}
.share svg{width:17px;height:17px}
.tool details.how>summary,.tool summary{color:var(--accent)}
.src,.src a{color:var(--muted)}
.calc-keys .eq,.add-row,.inst button{background:var(--accent);color:#fff}
/* FOOTER e páginas informativas */
footer{margin-top:18px;padding:28px 0 14px;gap:12px;color:var(--muted)}
#foot-nav{display:flex;flex-wrap:wrap;gap:9px 22px}#foot-nav a,.legal a{font-size:13px;color:var(--muted);text-decoration:none;min-height:36px}
#foot-nav a:hover,.legal a:hover{color:var(--accent);text-decoration:underline}
.static{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:clamp(24px,4vw,42px);max-width:900px}
.static h1{font-size:clamp(32px,4vw,46px)}.static a{color:var(--accent)}
:where(button,a,summary){touch-action:manipulation}
@media(min-width:1000px){.wrap:has(section.tool:not([hidden])){max-width:1100px}
  section.tool:not([hidden]){grid-template-columns:minmax(0,1fr) minmax(0,.95fr);column-gap:30px}
  section.tool:not([hidden])>.result{top:20px}
}
@media(max-width:850px){.moms{grid-template-columns:repeat(2,minmax(0,1fr))}.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
  body{padding-inline:14px;padding-top:8px}
  .wrap{gap:20px}.top{min-height:60px;padding-bottom:8px}
  .top .brand{width:192px;height:42px}.ep-brand-logo{width:192px}
  .top .back:not([hidden]){font-size:13px}
  .lang{font-size:12px;padding:8px 10px;min-height:42px}
  .hero{border-radius:22px;padding:24px 19px 26px;gap:13px}
  .hero::before{opacity:.22;background-size:75% auto}
  .hero h1{font-size:clamp(33px,9vw,43px);max-width:17ch}
  .hero .sub{font-size:15px;max-width:50ch}
  .hero .sbox{margin-top:8px}
  .hero .search{min-height:62px;font-size:16px;border-radius:14px}
  .doors{grid-template-columns:1fr 1fr;gap:8px}
  .doors :is(button,a){min-height:56px;font-size:13px;padding:11px 12px}
  .doors :is(button,a):first-child{grid-column:1 / -1;min-height:54px}
  .picks a{font-size:12px;min-height:36px}
  .moms{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .moms a{min-height:102px;padding:13px;font-size:13px}
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .tile{min-height:131px;padding:15px;gap:8px}.tile .ep-topic-icon{width:33px;height:33px}
  .tile .tn{font-size:14px}.tile .tc{font-size:11px}
  .tool .result{padding:20px 17px}.tool .big{font-size:clamp(31px,10vw,42px)}
}
@media(max-width:360px){.top .brand,.ep-brand-logo{width:172px}.lang{font-size:11px}}
/* Modo escuro: a mesma hierarquia, não inverter significados por categoria. */
:root[data-theme="dark"] .hero{background:linear-gradient(130deg,#163D43,#122C40);border-color:#315F61}
:root[data-theme="dark"] .hero h1,:root[data-theme="dark"] .hero .sub,:root[data-theme="dark"] .hero .greet{color:#F3FAF4}
:root[data-theme="dark"] .hero .sbox{filter:none}
:root[data-theme="dark"] .tool .result{background:linear-gradient(150deg,#153C40,#1A3942);border-color:#3D665E}
:root[data-theme="dark"] .tool .big,:root[data-theme="dark"] .tool .result p,:root[data-theme="dark"] .tool .result table,:root[data-theme="dark"] .tool .result .kicker{color:#F2F6F3!important}
:root[data-theme="dark"] .exlbl{background:#173A42;border-color:#456760;color:#E5F4EA}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-theme="dark"]) .hero{background:linear-gradient(130deg,#163D43,#122C40);border-color:#315F61}
:root:not([data-theme="light"]):not([data-theme="dark"]) .hero h1,:root:not([data-theme="light"]):not([data-theme="dark"]) .hero .sub,:root:not([data-theme="light"]):not([data-theme="dark"]) .hero .greet{color:#F3FAF4}
:root:not([data-theme="light"]):not([data-theme="dark"]) .tool .result{background:linear-gradient(150deg,#153C40,#1A3942);border-color:#3D665E}
:root:not([data-theme="light"]):not([data-theme="dark"]) .tool .big,:root:not([data-theme="light"]):not([data-theme="dark"]) .tool .result p,:root:not([data-theme="light"]):not([data-theme="dark"]) .tool .result table,:root:not([data-theme="light"]):not([data-theme="dark"]) .tool .result .kicker{color:#F2F6F3!important}}
/* segurança: contraste e redução de movimento */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.tile,.moms a,.doors :is(button,a){transition:none!important;transform:none!important}}
@media(forced-colors:active){.tile,.form,.result,.hero{border:1px solid CanvasText}}
/* Em fundos noturnos, os ícones de cor fixa tornam-se monocromáticos claros. */
:root[data-theme="dark"] .ep-topic-icon{filter:brightness(0) invert(88%) sepia(8%) saturate(600%) hue-rotate(123deg)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-theme="dark"]) .ep-topic-icon{filter:brightness(0) invert(88%) sepia(8%) saturate(600%) hue-rotate(123deg)}}


/* EasyPortugal V11 — Direção visual clara aprovada no quadro de referência.
   Não herdar dark mode automático do sistema. Dark mode requer escolha explícita. */
:root[data-theme="light"] {color-scheme:light;
  --bg:#F8FAFC;--surface:#FFFFFF;--ink:#102E4C;--muted:#536A7C;--line:#DEE6EF;
  --accent:#007457;--accent-soft:#EAF7F1;--good:#087A5E;--warn:#B84936;
  --f-body:"Inter","Figtree",system-ui,sans-serif;--f-display:"Inter",system-ui,sans-serif;
  --c-trab:#00704F;--c-casa:#1265C6;--c-fam:#12A473;--c-saude:#E9525A;
  --c-poup:#DE8D08;--c-carro:#EB6550;--c-ener:#E99A15;--c-comp:#155EC9;
  --c-calc:#EC8D15;--c-datas:#DB615B;--c-mudar:#2165C4;
}
body{font-family:"Inter","Figtree",system-ui,sans-serif;font-weight:400;background:#F8FAFC}
h1,h2,h3,.moms-h,.group h2,.how h2,.static h1{font-family:"Inter","Figtree",system-ui,sans-serif!important;letter-spacing:-.04em!important;font-weight:800!important}
.wrap:has(#t-inicio:not([hidden])){max-width:1210px}
.wrap{max-width:1180px;gap:22px}
.top{position:relative;z-index:4;background:rgba(255,255,255,.97);padding:11px 20px;margin-top:12px;margin-bottom:-16px;min-height:64px;border:1px solid #E6EAF0;border-radius:14px;box-shadow:0 8px 26px rgba(16,46,76,.07);gap:16px}
.top .brand{height:42px}.ep-brand-logo{width:215px;max-height:44px}
.ep-header-nav{display:flex;align-items:center;gap:20px;margin-inline-start:16px;flex:1;min-width:0}
.ep-header-nav a{color:#153453;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}
.ep-header-nav a:hover,.ep-header-nav a:focus-visible{color:#007457}
.lang{background:#fff;color:#153453;min-height:40px;padding:8px 12px}
.hero{border:0;border-radius:20px;min-height:545px;padding:64px 48px 56px;
 background:linear-gradient(90deg,rgba(250,249,247,.87) 0%,rgba(253,249,244,.77) 38%,rgba(253,249,244,.08) 77%),url('/brand/hero-desktop.webp') 70% center/cover no-repeat!important;
 box-shadow:0 18px 42px rgba(10,49,77,.09);gap:15px}
.hero::before,.hero::after{content:none!important}
.hero h1{color:#092C50!important;font-family:"Inter","Figtree",system-ui,sans-serif!important;font-size:clamp(35px,4.7vw,61px);letter-spacing:-.053em!important;font-weight:850!important;max-width:19ch;line-height:1.075;margin:6px 0 3px}
.hero .sub{color:#213D58;font-weight:500;line-height:1.55;max-width:46ch;font-size:clamp(15px,1.6vw,18px)}
.hero .greet{color:#007F64;font-family:"Inter",sans-serif;letter-spacing:.1em}
.hero .sbox{max-width:720px;position:relative;filter:drop-shadow(0 7px 18px rgba(12,42,65,.12));margin-top:11px}
.hero .search{background:#fff;border:1px solid #DFE7EE;border-radius:16px;min-height:62px;padding-right:74px;color:#153453}
.hero .search::placeholder{color:#698194}
.ep-search-submit{position:absolute;top:6px;right:7px;z-index:2;background:#00704F;color:white;border:none;border-radius:11px;width:50px;height:50px;display:grid;place-items:center;cursor:pointer}
.ep-search-submit:hover{background:#087C62}.ep-search-submit svg{width:22px;height:22px;stroke:currentColor}
.doors{max-width:720px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:8px}
.doors :is(button,a),.doors :is(button,a):first-child{display:flex;align-items:center;text-align:left;gap:12px;min-height:93px;padding:15px 13px;border:1px solid #E3E7EF;border-radius:14px;color:#133553;background:#fff;box-shadow:0 9px 20px rgba(13,44,70,.08);font-size:14px;font-weight:800;line-height:1.27}
.doors :is(button,a):first-child:hover,.doors :is(button,a):hover{background:#fff;color:#082E50;transform:translateY(-2px);border-color:#C3DBD6}
.ep-door-symbol{flex:none;display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#E6F6EA;color:#079F65;font-size:23px}
.doors :is(button,a):nth-child(2) .ep-door-symbol{background:#E8F1FF;color:#246BD8}
.doors :is(button,a):nth-child(3) .ep-door-symbol{background:#FFF1E0;color:#F39013}
.ep-door-title{display:block;font-size:13px;font-weight:800;line-height:1.3}
.ep-door-desc{display:block;color:#647689;font-weight:500;font-size:11px;line-height:1.35;margin-top:5px}
.picks{padding-top:5px;max-width:760px}.picks .lbl{color:#37516C;font-weight:800}
.picks a{background:#fff;box-shadow:0 3px 9px rgba(13,44,70,.06);border:1px solid #E6EAF1}
.moms-h{font-size:26px!important;margin-top:22px}
.moms{gap:13px}.moms a{background:#fff;min-height:115px;border:1px solid #E5EBF2;box-shadow:0 6px 20px rgba(12,42,63,.05);padding:16px;gap:11px}
.moms a .ep-topic-icon,.tile .ep-topic-icon{flex:none;display:block;object-fit:contain;box-sizing:border-box;width:50px!important;height:50px!important;padding:11px;background:color-mix(in srgb,var(--tc) 11%,white);border-radius:14px;filter:none!important}
.moms a:hover,.tile:hover{border-color:color-mix(in srgb,var(--tc) 45%,white)}
.tile{background:#fff;border:1px solid #E4EAF1;min-height:148px;gap:10px;padding:17px;border-radius:17px}
.tile .tn{font-size:15px}
.tile .tc{font-size:12px}
.item .ic{background:#EFF5FC}
.item .ic img{filter:none!important}
section.tool h1{font-size:clamp(28px,3.1vw,38px);font-family:"Inter",sans-serif!important;max-width:36ch;letter-spacing:-.045em!important}
.form,.form.lead{box-shadow:0 8px 20px rgba(19,52,80,.045);border:1px solid #E1E8F0}
.tool .result{background:linear-gradient(155deg,#F0FBF6,#E9F8F0)!important;border:1px solid #D8EEE3;box-shadow:0 11px 23px rgba(12,80,55,.06)}
.tool .big{font-family:"Inter",sans-serif!important;font-weight:850!important;letter-spacing:-.04em!important;font-variant-numeric:tabular-nums}
.share a,.share button.copy{background:#fff}
@media(max-width:800px){.ep-header-nav{gap:12px;margin-inline-start:0}.ep-header-nav a{font-size:12px}.top .brand{width:185px}.ep-brand-logo{width:185px}}
@media(max-width:600px){
 body{padding-inline:9px;padding-top:5px}
 .top{margin-top:4px;margin-bottom:-13px;min-height:61px;padding:9px 12px;gap:8px}
 .top .brand{width:156px}.ep-brand-logo{width:156px}
 .ep-header-nav{display:none}
 .hero{padding:42px 18px 26px!important;min-height:490px;background:linear-gradient(180deg,rgba(251,248,245,.88) 0%,rgba(251,248,245,.73) 52%,rgba(251,248,245,.18) 100%),url('/brand/hero-mobile.webp') center bottom/cover no-repeat!important}
 .hero h1{font-size:clamp(32px,9vw,40px);max-width:13ch}
 .hero .sub{font-size:14px;max-width:33ch}
 .hero .sbox{margin-top:12px}
 .hero .search{min-height:58px;font-size:14px;padding-right:62px}
 .ep-search-submit{width:44px;height:44px}
 .doors{grid-template-columns:1fr;gap:9px;margin-top:12px}
 .doors :is(button,a),.doors :is(button,a):first-child{grid-column:auto;min-height:70px;padding:10px 12px}
 .ep-door-symbol{width:38px;height:38px;font-size:20px}
 .ep-door-desc{font-size:10px}
 .picks{margin-top:12px}
 .moms a .ep-topic-icon,.tile .ep-topic-icon{width:46px!important;height:46px!important;padding:9px}
 .moms a{min-height:118px}
}
/* A paleta do sistema só pode ser substituída se o utilizador escolher outro modo. */


/* ===== V12: revisão de legibilidade (fundo claro) ===== */
/* O site é só claro. Se o navegador, uma extensão ou a pré-visualização do Claude pedirem "dark", os textos claros
   do antigo modo escuro ficavam sobre fundo claro. O guarda em <head> repõe data-theme="light"; isto é a rede de segurança. */
:root{color-scheme:light}
/* algarismos: a mesma letra do resto do site, com largura fixa para alinhar colunas */
.big,.lines td.v,td.v,.num,.num span,.bar .num,#cl-display,.ep-result-value{font-family:Inter,system-ui,sans-serif!important;font-variant-numeric:tabular-nums;letter-spacing:0}
/* botões segmentados: o escolhido fica com texto escuro (as cores de categoria em texto não tinham contraste) */
.seg button[aria-pressed="true"]{color:var(--ink)!important}
/* texto em cores de categoria vivas: versões escuras com contraste ≥ 4,5:1 */
a.ext{color:#8A5200!important}
.ep-door-symbol{color:#8A5200!important}
#cl-keys .op,.r3 strong.x{color:#8A5200!important}
.num span{color:#A8322E!important}
.badge.ponte{color:#006B50!important}
#nextday strong{color:#006B50!important}
/* botões verdes cheios: fundo mais escuro para o texto branco */
#inst-b,#dc-add,.add-row{background:#006B50!important;color:#fff!important}
/* "Como foi calculado", "Mais opções" e perguntas: texto escuro, só o "+" em verde */
details.how>summary,.faq summary,.form details>summary{color:var(--ink)!important}
details.how>summary::first-letter,.faq summary::before,.form details>summary::before{color:#007457}
/* botão de pesquisa com palavra, em vez de uma segunda lupa */
.ep-search-submit{width:auto!important;padding:0 18px!important;font:600 15px Inter,system-ui,sans-serif!important;color:#fff!important;background:#006B50!important;gap:6px}
.ep-search-submit svg{display:none}


/* ===== V12: página inicial compacta (menos scroll, tudo à vista) ===== */
/* catálogo completo por categorias: só aparece depois de escolher uma categoria (as categorias já são o índice) */
.wrap.ep-home:not([data-cat]) #groups{display:none}
/* situações de vida: linha compacta, ícone à esquerda */
.moms{gap:8px!important}
.moms a{min-height:0!important;padding:10px 12px!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;font-size:14px!important;line-height:1.25;border-radius:14px!important}
.moms a img,.moms a svg{width:24px!important;height:24px!important;flex:none}
/* categorias: linha compacta, ícone + nome + nº de ferramentas */
.tiles{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
.tile{min-height:0!important;padding:10px 12px!important;display:grid!important;grid-template-columns:36px 1fr;grid-template-rows:auto auto;column-gap:10px;row-gap:0;align-items:center;text-align:left;border-radius:14px!important}
.tile>img,.tile>svg,.tile .ep-topic-icon{grid-row:1 / span 2;width:36px!important;height:36px!important;padding:6px!important;box-sizing:border-box!important;border-radius:10px!important}
.ep-cats-h{font-size:clamp(19px,2.4vw,22px);margin:6px 0 -4px}
.tile .tn{font-size:14px!important;line-height:1.25}
.tile .tc{font-size:12px!important;grid-column:2}
/* portas: mais baixas */
.doors :is(button,a){padding:12px 14px!important}
@media(max-width:850px){
 .tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .moms{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 /* telemóvel: as três portas lado a lado, só com o título */
 #doors{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 #doors button{flex-direction:column!important;align-items:flex-start!important;gap:6px!important;padding:10px!important;min-height:0!important}
 #doors .ep-door-desc{display:none!important}
 #doors .ep-door-title{font-size:13px!important;line-height:1.2}
 #doors .ep-door-symbol{width:28px!important;height:28px!important;font-size:14px!important}
 .hero{padding-bottom:20px!important}
}
/* ===== V12: ilustração raster no topo — etiquetas pequenas legíveis sobre a imagem ===== */
.hero .greet,.hero .lbl{display:inline-block;width:max-content;max-width:100%;background:rgba(255,255,255,.88);padding:3px 10px;border-radius:999px;box-shadow:0 1px 3px rgba(10,49,77,.08)}
.hero .greet{color:#006B50!important}
.hero .lbl{color:#153453!important}


/* EasyPortugal V12.1 — Typographic rhythm, navigation and cognitive load.
   Intentionally appended last; no calculator logic changes. */
:root[data-theme="light"] {
  --ep-space-1: 6px;
  --ep-space-2: 12px;
  --ep-space-3: 20px;
  --ep-space-4: 32px;
}
/* Header: no redundant labels in the home view; only one useful route from tools. */
.top {justify-content:space-between;gap:18px}
.top .brand{min-width:0;flex-shrink:1}
.top .langs{margin-inline-start:auto;flex:none}
.ep-header-nav{flex:0 1 auto;margin-inline-start:auto;gap:0}
.ep-header-nav a{font-size:14px;font-weight:650;padding:11px 13px;border-radius:10px;min-height:44px;display:inline-flex;align-items:center;color:#173957}
.ep-header-nav a:hover,.ep-header-nav a:focus-visible{background:#EDF7F3;color:#006B50}

/* Main heading smaller and better proportioned: question > help text > action. */
.hero{gap:13px}
.hero h1{font-size:clamp(36px,4.1vw,54px)!important;line-height:1.105!important;letter-spacing:-.048em!important;max-width:20ch;margin:2px 0 5px!important;font-weight:800!important;text-wrap:balance}
.hero .sub{font-size:clamp(15px,1.45vw,17px)!important;line-height:1.6;max-width:51ch;margin:0 0 5px}
.hero .greet{font-size:11px;letter-spacing:.1em}
.hero .sbox{margin-top:9px;max-width:700px}
.hero .search{font-size:16px!important}

/* Two explicit alternatives, rather than three competing first actions. */
#doors{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:470px;gap:10px;margin-top:8px}
#doors button,#doors button:first-child{min-height:64px;padding:10px 13px!important;gap:10px!important;border-radius:12px!important;box-shadow:0 3px 11px rgba(13,44,70,.05)!important}
#doors .ep-door-symbol{width:38px;height:38px;border-radius:10px;flex:none}
#doors .ep-door-title{font-size:14px!important;line-height:1.32;font-weight:750}
#doors .ep-door-desc{font-size:12px;line-height:1.35;margin-top:3px}

/* Keep body alignment consistent across home sections and result cards. */
.moms-h{font-size:clamp(22px,2.5vw,26px)!important;letter-spacing:-.035em!important;line-height:1.2;margin-block:8px 4px}
.moms a{display:flex;align-items:center!important;line-height:1.34!important;font-size:14px!important;font-weight:650!important}
.moms a span:last-child{flex:1;min-width:0}
.tiles{align-items:stretch}
.tile{align-content:center;min-height:78px!important}
.tile .tn{font-size:14px!important;font-weight:750!important;line-height:1.34}
.tile .tc{font-size:12px!important;line-height:1.3;color:#52687B}
.picks{max-width:700px}
.picks a{font-size:13px;min-height:37px}

/* Tool typography: one clear answer and readable details. */
section.tool h1{font-size:clamp(27px,3vw,37px)!important;line-height:1.16;letter-spacing:-.037em!important;font-weight:800!important;text-wrap:balance;max-width:33ch}
.tool .result .kicker{font-size:14px;line-height:1.4}
.tool .result .big{font-size:clamp(33px,4.5vw,45px);font-variant-numeric:tabular-nums}
.tool .result .lines td{line-height:1.45;padding-block:10px}
.tool .result .lines td.v{font-variant-numeric:tabular-nums;text-align:end}
.field label,.lbl{line-height:1.4}
.form,.form.lead{gap:14px}

/* On small screens the full input must remain readable, never hidden by "Procurar". */
@media(max-width:600px){
  .top{padding:9px 12px;min-height:60px;gap:7px}
  .top .brand{width:min(50vw,180px)}
  .ep-brand-logo{width:100%;max-width:180px;height:auto}
  .top .langs{flex-shrink:0}
  .top .lang{font-size:12px;padding:8px 10px;min-height:43px}
  .ep-header-nav{display:none}
  .hero{padding:34px 17px 24px!important;gap:12px}
  .hero h1{font-size:clamp(30px,8.25vw,38px)!important;line-height:1.13!important;letter-spacing:-.04em!important;max-width:15ch}
  .hero .sub{font-size:15px!important;max-width:34ch;line-height:1.55}
  .hero .sbox{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;position:relative;margin-top:12px;filter:none}
  .hero .sbox svg{top:28px!important;transform:translateY(-50%)}
  .hero .search{grid-column:1;min-height:55px!important;width:100%;font-size:16px!important;padding-inline-start:50px!important;padding-inline-end:15px!important;border-radius:13px}
  .hero .ep-search-submit{position:static!important;grid-column:1;justify-self:stretch;width:100%!important;height:46px;min-height:46px;display:flex;justify-content:center;align-items:center;border-radius:12px!important;margin:0!important}
  #doors{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:none;gap:8px!important;margin-top:3px}
  #doors button,#doors button:first-child{grid-column:auto!important;min-height:72px!important;padding:11px 10px!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important}
  #doors .ep-door-symbol{width:28px;height:28px;font-size:15px}
  #doors .ep-door-copy{min-width:0}
  #doors .ep-door-title{font-size:13px!important;line-height:1.25}
  #doors .ep-door-desc{display:none!important}
  .picks a:nth-of-type(n+5){display:none}
  .moms-h{font-size:21px!important}
  .moms a{min-height:75px!important;padding:11px!important;font-size:13.5px!important;gap:8px!important}
  .moms a .ep-topic-icon{width:25px!important;height:25px!important;flex:none;padding:0!important;background:transparent!important}
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
  .tile{min-height:81px!important;padding:11px!important;grid-template-columns:32px minmax(0,1fr)!important;column-gap:8px}
  .tile .tn{font-size:13.5px!important;line-height:1.32}
  .tile .tc{font-size:12px!important}
  section.tool h1{font-size:clamp(27px,7.1vw,32px)!important;line-height:1.18}
  .tool .result .big{font-size:clamp(30px,8vw,40px)}
  .tool .result .lines td{font-size:13.5px;overflow-wrap:normal}
}
@media(max-width:350px){
  .hero{padding-inline:13px!important}
  .hero h1{font-size:29px!important}
  #doors button{flex-direction:column!important;align-items:flex-start!important;min-height:88px!important}
  .moms a{font-size:13px!important}
}


/* V12.2 — acessos rápidos: o título é texto, não um falso botão.
   O mesmo layout funciona com o HTML estático e com a montagem do JS. */
.hero .picks {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:14px;
  max-width:750px;
}
.hero .picks > .lbl {
  display:block !important;
  flex:0 0 100%;
  width:100% !important;
  max-width:none;
  padding:0 !important;
  margin:0 0 2px !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  font-size:11px !important;
  font-weight:800 !important;
  letter-spacing:.105em;
  line-height:1.4;
  text-transform:uppercase;
  color:#163752 !important;
  text-shadow:0 1px 2px rgba(255,255,255,.75);
  pointer-events:none;
}
.hero .picks > a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 13px;
  font-size:13px;
  font-weight:650;
  line-height:1.3;
  border:1px solid rgba(13,51,82,.12);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  box-shadow:0 2px 5px rgba(13,51,82,.055);
  text-decoration:none;
}
/* Quatro sugestões bastam: desktop numa linha, mobile em duas. */
.hero .picks > a:nth-of-type(n+5){display:none !important}
.hero .picks > a:hover,
.hero .picks > a:focus-visible {
  border-color:#0C6C62;
  background:white;
}
@media (max-width:600px) {
  .hero .picks{gap:7px; margin-top:10px}
  .hero .picks > a{font-size:12px; padding:9px 12px}
}


/* EasyPortugal V13 — consolidação de ergonomia, acessibilidade e impressão.
   Estilos adicionais, sem mudar a identidade nem o algoritmo das ferramentas. */
:root{--ep-tap:44px}
.tool .field input:not([type=checkbox]):not([type=radio]),
.tool .field select,.tool .field textarea{min-height:48px;font-size:16px;line-height:1.35;max-width:100%}
.tool .form .seg button,.tool .form button,.tool details>summary,
.tool .faq summary{min-height:var(--ep-tap)}
.tool .form details>summary,.tool .faq summary{display:flex;align-items:center}
.tool .result{min-width:0}
.tool .result .big{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.18}
.tool .result table{width:100%;max-width:100%;table-layout:auto}
.tool .result .lines td{vertical-align:top}
.tool .result .lines td:first-child{overflow-wrap:break-word}
.tool .result .lines td:last-child{font-variant-numeric:tabular-nums}
.tool .crumb,.tool .trust{min-width:0;overflow-wrap:break-word}
.tool .how,.tool .faq{overflow-wrap:break-word}
.ep-search-panel .ep-search-items a{min-height:48px}
.ep-search-panel .ep-search-count{font-variant-numeric:tabular-nums}
.ep-topstrip .ep-strip-content{min-width:0;overflow-wrap:anywhere}
.ep-topstrip .ep-strip-next{min-width:var(--ep-tap);min-height:var(--ep-tap)}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #0C6C62!important;outline-offset:2px!important}
@media(max-width:600px){
  .tool .result .big{font-size:clamp(29px,7.4vw,39px);letter-spacing:-.025em}
  .tool .result .lines td{font-size:14px;line-height:1.5}
  .tool .trust{font-size:12px;gap:7px 10px}
  .tool .form{gap:15px}
  .ep-search-panel{scroll-margin-top:16px}
}
@media(max-width:350px){
  .ep-topstrip .ep-strip-item{font-size:11.5px}
  .tool .result .big{font-size:29px}
  .hero .sub{font-size:14.5px!important}
}
@media(prefers-reduced-motion:reduce){
  .tool .big,.tool .big.pop{animation:none!important;transition:none!important}
  .ep-topstrip *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto!important}
}
@media print{
  .top,.ep-topstrip,.skip-link,.rel,.ad,.share,.ep-header-nav,.back,.footer,.ep-search-panel,
  .tool .faq,.tool .next,.tool button.copy{display:none!important}
  html,body{background:#fff!important;color:#111!important}
  .wrap,.ep-main,.tool{width:100%!important;max-width:none!important;margin:0!important;box-shadow:none!important}
  .tool .result,.tool .form{break-inside:avoid;box-shadow:none!important;border:1px solid #ddd!important;background:#fff!important}
  .tool .result .big{color:#111!important}
}
/* ===== V14: páginas de categoria como páginas próprias (lista no 1.º ecrã) ===== */
.ep-cat-page .hero,.ep-cat-page #moms,.ep-cat-page .moms-h:not(.ep-cat-others){display:none!important}
.ep-cat-page .tile.ep-current{display:none!important}
.ep-cat-page:not(.ep-all-page) #groups>details>summary{display:none}
.ep-cat-head{padding:8px 2px 2px}
.ep-cat-head .crumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--muted);margin:0 0 12px;min-height:30px}
.ep-cat-head .crumb a{color:#153453;font-weight:600}
.ep-cat-head .crumb .pill{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.ep-cat-head .crumb .pill img{width:20px;height:20px}
.ep-cat-head .ep-cat-title{color:#092C50!important;font-family:"Inter",system-ui,sans-serif!important;font-weight:850!important;font-size:clamp(28px,4.4vw,46px);line-height:1.1;letter-spacing:-.035em;margin:0 0 6px;max-width:24ch}
.ep-cat-head .ep-cat-count{margin:0;color:#4A5D70;font-weight:600;font-size:15px}
.ep-cat-page .ep-cat-others{margin-top:28px}
.doors a{text-decoration:none}
.ep-all-page #tiles,.ep-all-page .ep-cats-h,.ep-all-page .ep-cat-others{display:none!important}
.ep-all-page #groups>details.group{margin-top:22px}
.ep-all-page #groups>details.group:first-child{margin-top:8px}
/* V14: listas de ferramentas em 2 colunas no computador (telemóvel igual) */
@media(min-width:900px){
 .groups .list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .groups .list>li{margin:0!important;min-width:0}
 .groups .list>li>a{height:100%;box-sizing:border-box}
}
/* V14: resultados da pesquisa por cima da página (não empurram a ilustração) */
.hero .sbox{position:relative;z-index:20}
.sbox>.ep-search-panel{position:absolute;top:calc(100% + 8px);left:0;right:0;max-width:none;margin:0!important;max-height:min(62vh,440px);overflow-y:auto;overscroll-behavior:contain;z-index:30;text-align:start}
[dir="rtl"] .sbox>.ep-search-panel{text-align:right}
/* V14: logótipo desenhado no HTML (sem pedido à parte) */
svg.ep-brand-logo{height:auto;overflow:visible}
.hero:has(.ep-search-panel:not([hidden])){overflow:visible}
/* ===== V15: secção «Acabei de chegar» (primeiros passos, recibo, glossário) ===== */
.ep-imig{max-width:860px}
.ep-imig .crumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--muted);margin:0 0 12px}
.ep-imig .crumb a{color:#153453;font-weight:600}.ep-imig .crumb .pill{font-weight:700}
.ep-imig h1{color:#092C50;font-family:"Inter",system-ui,sans-serif;font-weight:850;font-size:clamp(27px,4.2vw,42px);line-height:1.12;letter-spacing:-.03em;margin:0 0 10px}
.ep-imig h2{font-size:19px;color:#0D3352;margin:0 0 10px}
.ep-imig .sub{color:#33485E;font-size:16px;line-height:1.55;margin:0 0 18px}
.ep-prof{margin:0 0 6px}.ep-prof-l{font-weight:700;font-size:14px;color:#33485E;margin:0 0 8px}
.ep-prof-seg{display:flex;flex-wrap:wrap;gap:8px}.ep-prof-seg button{flex:1 1 auto}
.ep-progress{font-weight:700;color:#006B50;margin:14px 0 10px;min-height:22px}
.ep-steps{list-style:none;margin:0;padding:0;counter-reset:st;display:grid;gap:12px}
.ep-step{counter-increment:st;background:#fff;border:1px solid #DCE6EE;border-radius:16px;padding:14px 16px}
.ep-step.is-done{background:#F1F8F5;border-color:#B9D9CC}
.ep-step-h{display:flex;align-items:center;gap:12px;cursor:pointer;font-size:17px;font-weight:750;color:#0D3352;min-height:32px}
.ep-step-h input{width:24px;height:24px;flex:none;accent-color:#006B50}
.ep-step-h::before{content:counter(st);flex:none;width:28px;height:28px;border-radius:50%;background:#E6F1EC;color:#006B50;display:grid;place-items:center;font-size:14px;font-weight:800;order:-1}
.ep-step.is-done .ep-step-t{text-decoration:line-through;text-decoration-color:#7FB3A0}
.ep-step dl{margin:10px 0 0 40px;display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:15px;line-height:1.5}
.ep-step dt{font-weight:700;color:#4A5D70}.ep-step dd{margin:0;color:#1E3348}
.ep-step dd.ep-step-link{grid-column:1/-1}
.ep-src{margin:8px 0 0 40px;font-size:13px}
.ep-warn{margin:22px 0;background:#FFF6E8;border:1px solid #F0D5A8;border-radius:16px;padding:14px 18px}
.ep-warn ul,.ep-help ul,.ep-more ul,.ep-imig-foot ul{margin:0;padding-inline-start:20px;line-height:1.6}
.ep-more{margin:22px 0}.ep-more a{font-weight:700}
.ep-imig-foot{margin-top:26px;padding-top:16px;border-top:1px solid #DCE6EE;font-size:14px}
.ep-rev{color:#4A5D70;margin:10px 0 0}
.ep-rv{display:grid;gap:16px}
.ep-rv-res{background:#F1F8F5;border:1px solid #CFE3DA;border-radius:16px;padding:16px;min-height:150px}
.ep-checks{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ep-chk{padding:10px 12px 10px 14px;border-radius:12px;background:#fff;border-inline-start:5px solid #9AB0C2;line-height:1.45;font-size:15px}
.ep-chk.ep-ok{border-color:#1E8A5F}.ep-chk.ep-warn{border-color:#C0492B;background:#FFF4F1}.ep-chk.ep-info{border-color:#3D6FA8}
.ep-chk.ep-ok strong{color:#106B47}.ep-chk.ep-warn strong{color:#A8322E}.ep-chk.ep-info strong{color:#2D5A8C}
.ep-rv-form .ep-hint{display:block;color:#4A5D70;font-size:13px;margin-top:4px}
.ep-flabel{display:block;font-weight:700;margin-bottom:6px}
.ep-help,.ep-lines{margin-top:22px}
.ep-lines dl,.ep-gsec dl{margin:0;display:grid;gap:10px}
.ep-lines dt,.ep-term dt{font-weight:800;color:#0D3352}.ep-lines dd,.ep-term dd{margin:2px 0 0;color:#1E3348;line-height:1.5}
.ep-gsearch{max-width:420px;margin-bottom:12px}
.ep-gsec{margin-top:22px}.ep-term{background:#fff;border:1px solid #DCE6EE;border-radius:14px;padding:12px 14px}
@media(min-width:900px){.ep-rv{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.ep-rv-res{position:sticky;top:16px;order:2}.ep-gsec dl{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.ep-step dl{margin-left:0;grid-template-columns:1fr}.ep-step dt{margin-top:4px}.ep-src{margin-left:0}}
[dir="rtl"] .ep-step dl,[dir="rtl"] .ep-src{margin-left:0;margin-right:40px}
.ep-imig{max-width:none}
.ep-imig .sub,.ep-step dl,.ep-warn,.ep-help,.ep-lines{max-width:760px}
.ep-prof-seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:700px){.ep-prof-seg{grid-template-columns:1fr 1fr}.doors>:last-child:nth-child(odd){grid-column:1/-1}}
/* V15: seletor de língua na Residência Fácil (página sem o CSS da aplicação) */
.ep-rf-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.ep-rf-top .langs{position:relative;flex:none}
.ep-rf-top .langs>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;border:1px solid #DCE6EE;border-radius:999px;background:#fff;color:#153453;font-weight:700;font-size:13px;min-height:42px;padding:8px 12px}
.ep-rf-top .langs>summary::-webkit-details-marker{display:none}
.ep-rf-top .lmenu{position:absolute;inset-inline-end:0;top:calc(100% + 6px);background:#fff;border:1px solid #DCE6EE;box-shadow:0 14px 38px rgba(13,51,82,.12);border-radius:14px;padding:6px;display:grid;min-width:170px;z-index:40}
.ep-rf-top .lmenu a{padding:9px 12px;border-radius:9px;text-decoration:none;color:#0D3352;font-weight:600;font-size:15px;min-height:44px;display:flex;align-items:center}
.ep-rf-top .lmenu a:hover{background:#F2F6F9}.ep-rf-top .lmenu a[aria-current]{color:#6B7C8C}
.wrap:has(.ep-rf-top) #langs{display:none!important}
/* ===== V16: feedback dos testers ===== */
.ep-note16{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#FFF6E8;border:1px solid #F0D5A8;color:#5A3B00;font-size:14px;line-height:1.5}
.ep-note16 a{font-weight:700}
#ep16-ano{background:#F2F6F9;border-color:#DCE6EE;color:#1E3348}
#rv-acerto{font-size:14px;color:#4A5D70;line-height:1.5}
.trust .irsc~.irsc{display:none}
/* ===== V17: investigação independente ===== */
.ep-scope{margin:8px 2px 0;font-size:13px;line-height:1.5;color:#4A5D70}
.ep-scope a{font-weight:700;white-space:nowrap}
.result:has(.exlbl):not(.ep-own17) .big{opacity:.6}
.ep-tap17{cursor:pointer}
.lvl.ep-tap17::after{content:" ⓘ";font-weight:400;opacity:.7}
.ep-explain17{margin:6px 0 0;padding:10px 12px;border-radius:12px;background:#F2F6F9;border:1px solid #DCE6EE;color:#1E3348;font-size:14px;line-height:1.5}
.ep-related{margin-top:26px}
.ep-related h2{font-size:19px;color:#0D3352;margin:0 0 10px}
.ep-related .list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ep-hsearch{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:999px;border:1px solid #DCE6EE;background:#fff;color:#153453;margin-inline-start:auto;margin-inline-end:8px;flex:none}
.ep-hsearch+.langs{margin-inline-start:0!important}
.ep-law .d{color:#5A3B00;font-weight:600}
li.item.ep-law{background:#FFF6E8;border-radius:12px;padding:10px 12px}
@media(min-width:900px){.ep-related .list{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* V17.1: verificador de recibo a 320 px (auditoria): a coluna encolhe e os botões da região quebram linha */
.ep-rv{grid-template-columns:minmax(0,1fr)}
.ep-rv>*{min-width:0;max-width:100%;box-sizing:border-box}
.ep-rv .seg{flex-wrap:wrap}
.ep-rv .seg button{flex:1 1 auto;min-width:0}
@media(max-width:380px){.ep-rv .seg button{padding-inline:6px;font-size:14px}}
/* V17.3 (12 testers) */
.ep-note16.ep-below17{background:#FDEDEC;border-color:#E7A9A3;color:#6E1C14}
.ep-note16.ep-below17 b{display:block;margin-bottom:4px}
.ep-sr17{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.result .ep-scope{margin:12px 0 0;padding-top:10px;border-top:1px solid #E3ECF2}
.ep-scope a{display:inline-block;padding:6px 0}
.share .copy,.share a{min-height:40px}
.ep-search-panel .item.ep-guide17 a{background:#F2F8FF}
/* direita-para-esquerda: números com unidade ou sinal na ordem certa; setas espelhadas */
[dir=rtl] .result .big{unicode-bidi:plaintext;text-align:right}
[dir=rtl] td.v{direction:ltr;text-align:left}
/* V17.3: o navegador já espelha «›» em RTL; virar outra vez fazia as setas apontar para trás */
/* V17.3.2: campos ainda com valor de exemplo */
label.ep-ex::after{content:attr(data-ex);margin-inline-start:6px;font-size:11px;font-weight:600;letter-spacing:.02em;color:#8A6D1F;background:#FFF4D6;border:1px solid #F0DCA0;border-radius:999px;padding:1px 7px;vertical-align:middle}


/* EasyPortugal V12.4 — pesquisa imediatamente abaixo do campo, sem sobrepor a navegação. */
.ep-search-panel{margin:12px 0 16px;max-width:700px;background:#fff;border:1px solid #d7e4df;border-radius:16px;padding:13px;box-shadow:0 10px 24px rgba(13,51,82,.11);position:relative;z-index:4;text-align:start}
.ep-search-panel[hidden]{display:none!important}
.ep-search-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;color:#0D3352;font-size:14px}
.ep-search-count{font-variant-numeric:tabular-nums;color:#4c6376;font-size:12px}
.ep-search-panel .list{display:flex!important;flex-direction:column;gap:4px;padding:0;margin:0;list-style:none;max-height:min(48vh,450px);overflow-y:auto}
.ep-search-panel .item{margin:0}
.ep-search-panel .item a{display:flex;padding:10px 11px;border-radius:9px;min-height:52px;align-items:center;text-decoration:none;border:1px solid transparent;color:#0D3352}
.ep-search-panel .item a:hover,.ep-search-panel .item a:focus-visible{background:#E8F4F0;border-color:#9fcbbd;outline:2px solid #0C6C62;outline-offset:1px}
.ep-search-panel .nc{font-size:13px;line-height:1.4;color:#52677A;padding:8px 4px}
.ep-search-none{font-size:14px;color:#33495C;margin:0 2px 8px;line-height:1.45}
.ep-topstrip .ep-strip-content{line-height:1.32;overflow-wrap:normal;word-break:normal}
@media(max-width:520px){.ep-search-panel{margin-top:9px;padding:10px;border-radius:12px}.ep-search-panel .item a{min-height:48px;padding:9px 7px}.ep-topstrip .ep-strip-item{font-size:12px;gap:6px}.ep-topstrip .ep-strip-icon{width:17px;height:17px}}
