@import url("https://fonts.googleapis.com/css2?family=Almendra+Display&family=Cinzel+Decorative&family=Cormorant+Garamond:wght@400;500;600&family=Lugrasimo&family=Macondo+Swash+Caps&family=Merienda:wght@400;500;600&family=Nunito:wght@400;500;600;700&family=Spectral:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap");

/* Rodapé institucional comum, com apoio no centro geométrico. */
footer.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 2rem min(7vw, 5rem) 3rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #0b0b0d;
  color: #bdb6aa;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: normal;
  text-align: left;
}
footer.site-footer > div { min-width: 0; }
footer.site-footer strong { font-size: inherit; color: inherit; }
footer.site-footer p { margin: .25rem 0 0; color: inherit; font-size: inherit; line-height: inherit; }
footer.site-footer a { color: inherit; text-decoration: none; }
footer.site-footer .flp-footer-support { justify-self: center; text-align: center; }
footer.site-footer .flp-footer-info { text-align: right; }
footer.site-footer .flp-footer-info a:hover { color: #d3bc85; text-decoration: underline; text-underline-offset: .2em; }
#flp-support-entry[hidden] { display: none !important; }
.flp-support-trigger,
.flp-support-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  box-sizing: border-box;
  min-height: 44px;
  padding: .7rem 1.15rem;
  border: 1px solid rgba(184, 154, 90, .4);
  border-radius: 999px;
  background: transparent;
  color: #d3bc85;
  font: 500 .9rem/1.5 "Inter", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
footer.site-footer .flp-support-trigger { color: #d3bc85; }
.flp-support-trigger:hover { background: rgba(184, 154, 90, .08); border-color: #b89a5a; }
footer.site-footer a:focus-visible,
.flp-support-dialog :focus-visible { outline: 2px solid #d3bc85; outline-offset: 4px; }
.flp-support-dialog {
  box-sizing: border-box;
  width: min(92vw, 540px);
  max-height: 85vh;
  margin: auto;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid rgba(184, 154, 90, .22);
  border-radius: 22px;
  background: #111319;
  color: #e7dfd2;
  font: 400 1rem/1.85 "Inter", system-ui, sans-serif;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  overflow: auto;
}
.flp-support-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.flp-support-dialog h2 { margin: 0 0 1rem; padding-right: 1rem; color: #e7dfd2; font: 500 clamp(2rem, 5vw, 2.8rem)/1.15 "Cormorant Garamond", Georgia, serif; }
.flp-support-dialog p { margin: 0 0 1rem; color: #bdb6aa; }
.flp-support-dialog .overline { padding-right: 1.5rem; color: #d3bc85; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.flp-support-close { position: absolute; top: .55rem; right: .55rem; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #e7dfd2; font: 1.7rem/1 system-ui, sans-serif; cursor: pointer; }
.flp-support-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.flp-support-continue { background: #b89a5a; border-color: #b89a5a; color: #111319; }
.flp-support-continue:hover { background: #d3bc85; }
.flp-support-dialog .flp-support-note { font-size: .78rem; line-height: 1.6; }
.flp-support-dialog .flp-support-thanks { margin-bottom: 0; color: #d3bc85; font-size: .9rem; }
.library-admin-access { padding: 0 min(7vw, 5rem) 2rem; text-align: right; }
@media (max-width: 780px) {
  footer.site-footer { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; padding-top: 2rem; padding-bottom: 2rem; text-align: center; }
  footer.site-footer .flp-footer-info { text-align: center; }
}
@media (max-width: 480px) {
  .flp-support-continue { width: 100%; }
}
@media print {
  footer.site-footer,
  .flp-support-dialog { display: none !important; }
}

/* Apoios financeiros suspensos: ocultar quaisquer ligações antigas em todas as páginas. */
#flp-support-entry, .flp-footer-support, #flp-support-dialog, .flp-support-dialog,
a[href*="ko-fi.com"], a[href*="kofi.com"] { display: none !important; }

/* Identidade numa linha e apenas contacto/privacidade no rodapé. */
footer.site-footer { grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 2rem; padding-block: 1.5rem; }
footer.site-footer .flp-footer-brand { white-space: normal; }
footer.site-footer .flp-footer-brand p { display: inline; margin: 0; }
footer.site-footer .flp-footer-info p + p, footer.site-footer .institutional-links { display: none !important; }
@media (max-width:780px) { footer.site-footer { grid-template-columns: minmax(0,1fr); gap:.5rem; text-align:center; } footer.site-footer .flp-footer-info { text-align:center; } }

/* Relevo discreto nos títulos, mantendo a tipografia e o contraste existentes. */
:where(main h1,main h2,main h3,.hero h1,.flp-three-areas strong){text-shadow:0 2px 3px rgba(0,0,0,.65),0 0 14px rgba(184,154,90,.16)}

/* Rodapé único: a mesma composição e a mesma tipografia em todos os dispositivos. */
body footer.site-footer {
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.65rem !important;
  box-sizing:border-box;
  width:100%;max-width:none;
  margin:0 !important;
  padding:1.75rem 1rem 2.25rem !important;
  border:0;border-top:1px solid rgba(255,255,255,.08);
  background:#0b0b0d;color:#bdb6aa;
  text-align:center !important;
  font-family:"Macondo Swash Caps","Cormorant Garamond",Georgia,serif !important;
  font-size:clamp(.82rem,3.2vw,1.1rem) !important;
  font-weight:400 !important;
  line-height:1.5 !important;
  letter-spacing:normal;
}
body footer.site-footer :is(.flp-footer-brand,.flp-footer-info,strong,a,p){font-family:inherit !important;font-size:inherit !important;font-weight:400 !important;line-height:inherit !important;letter-spacing:normal;text-align:center !important;color:inherit;margin:0;padding:0;}
body footer.site-footer .flp-footer-brand{white-space:normal;max-width:100%;}
body footer.site-footer .flp-footer-brand strong{font-weight:400 !important;}
body footer.site-footer .flp-footer-info{white-space:nowrap;}
body footer.site-footer .flp-footer-info a:hover{color:#d3bc85;}
@media(max-width:780px){body footer.site-footer{padding-bottom:4rem !important;}}
@media print{body footer.site-footer{display:none !important;}}

/* Identidade aprovada: capitulares Almendra e nome Cinzel Decorative. */
body .site-header .brand-text{font-family:"Almendra Display",Georgia,serif !important;font-weight:400 !important;letter-spacing:.035em;text-shadow:0 2px 3px #000,0 0 9px #b89a5a26;white-space:nowrap;}
body .hero .flp-identity{font-family:"Cinzel Decorative",Georgia,serif !important;font-weight:400 !important;font-size:clamp(1.05rem,3.8vw,2.4rem);line-height:1.55;letter-spacing:.025em;color:#d5b97b;text-align:center;text-transform:none;text-shadow:0 2px 3px #000,0 0 15px #b89a5a26;}
body .hero .flp-identity .flp-identity-word{display:inline-block;white-space:nowrap;max-width:100%;}
body .hero .flp-identity .flp-initial{font-family:"Almendra Display",Georgia,serif !important;font-size:1.48em;font-weight:400;line-height:1;letter-spacing:0;vertical-align:baseline;padding-right:.035em;color:#e5c992;text-shadow:0 2px 3px #000,0 0 13px #d5b97b40;}


/* F∴L∴P∴ · Sistema tipográfico definitivo.
   Os níveis dependem da função estrutural, não do conteúdo textual.
   Escalas independentes compensam as diferenças de altura das famílias.
   Os elementos institucionais e alfabetos especializados mantêm a sua identidade. */
:root{
 --flp-heading-family:"Macondo Swash Caps",Georgia,serif;
 --flp-subtitle-family:"Lugrasimo",Georgia,serif;
 --flp-subheading-family:"Merienda",Georgia,serif;
 --flp-minor-family:"Nunito",system-ui,sans-serif;
 --flp-body-family:"Spectral",Georgia,serif;
 --flp-size-title:clamp(2.15rem,4vw,3.2rem);
 --flp-size-subtitle:clamp(1.45rem,2.7vw,2.15rem);
 --flp-size-subheading:clamp(1.35rem,1.9vw,1.65rem);
 --flp-size-minor:clamp(1.15rem,1.45vw,1.35rem);
 --flp-size-body:1.05rem;
 --flp-size-card-body:1rem;
}
body{font-family:var(--flp-body-family) !important}
body :is(main,[role="main"],article,dialog) :is(p,li,blockquote,figcaption,dt,dd,td,th,label,legend,summary):not(:is([lang]:not([lang^="pt"]),[lang]:not([lang^="pt"]) *,[data-flp-font-preserve],[data-flp-font-preserve] *,[class*="hebrew"],[class*="syr"],[class*="akbar-glyph"],[class*="akbar-script"],.flp-identity,.flp-identity *)){
 font-family:var(--flp-body-family) !important;
}
body :is(main,[role="main"],article) :is(p,li,blockquote,dd):not(:is([lang]:not([lang^="pt"]),[lang]:not([lang^="pt"]) *,[data-flp-font-preserve],[data-flp-font-preserve] *,[class*="hebrew"],[class*="syr"],[class*="akbar-glyph"],[class*="akbar-script"],.eyebrow,.overline,.muted,.caption,.astro-note,.med-note,.kb-map-instruction,.kb-hero-note,.arcana-breadcrumb,.location-status,.flp-identity)){
 font-size:var(--flp-size-body);line-height:1.65;
}
/* Os campos de escrita Ak’bar conservam a fonte do modo seleccionado. */
body :is(button,input,select,textarea):not(:is([data-flp-font-preserve],[data-flp-font-preserve] *,[data-akbar-text],[data-akbar-glyph],[lang="art-x-akbar"],[class*="hebrew"],[class*="akbar"],[class*="syr"])){font-family:var(--flp-minor-family) !important}
body .site-nav,body .site-nav a,body .site-nav button,body .menu-toggle,body .app .nav button{font-family:var(--flp-minor-family) !important}
body :is(main,[role="main"],article,dialog) :is(h1,h2,h3,h4,h5,h6,[data-flp-heading]):not(:is([data-flp-font-preserve],[data-flp-font-preserve] *,.flp-identity,.flp-identity *)){
 font-weight:400 !important;line-height:1.3 !important;letter-spacing:normal !important;overflow-wrap:break-word;
 text-shadow:0 2px 3px rgba(0,0,0,.65),0 0 14px rgba(184,154,90,.16);
}
body :is(main,[role="main"],article,dialog) h1,
body :is(main,[role="main"],article,dialog) [data-flp-heading="title"],
body .app main.main .portal-title,body .app main.main>.section>.hero h3,body .app main.main>.section>.detail-shell .detail-card h2{
 font-family:var(--flp-heading-family) !important;font-size:var(--flp-size-title) !important;font-weight:400 !important;line-height:1.2 !important;
}
body :is(main,[role="main"],article,dialog) h2,body #flp-search-title,
body :is(main,[role="main"],article,dialog) [data-flp-heading="subtitle"]{
 font-family:var(--flp-subtitle-family) !important;font-size:var(--flp-size-subtitle) !important;font-weight:400 !important;
}
body :is(main,[role="main"],article,dialog) h3,
body :is(main,[role="main"],article,dialog) [data-flp-heading="subheading"],
body main :is(.tile,.oc-card,.path-card,.project-card,.mp-step,.mp-sphere,.kb-branch-card,.kb-study-card,.ea-card) h2,
body main :is([class$="-card"],[class*="-card "]) h2,
body .flp-three-areas strong,body .oc-card>strong,body .app main.main .grid>.card h4{
 font-family:var(--flp-subheading-family) !important;font-size:var(--flp-size-subheading) !important;font-weight:400 !important;line-height:1.3 !important;
}
body :is(main,[role="main"],article,dialog) :is(h4,h5,h6),
body :is(main,[role="main"],article,dialog) [data-flp-heading="minor"]{
 font-family:var(--flp-minor-family) !important;font-size:var(--flp-size-minor) !important;font-weight:600 !important;
}
/* Páginas antigas com contentores não semânticos: a mesma escala fora de main. */
body h1:not(:is(main *,[role="main"] *,article *,dialog *,header *,footer *,.flp-identity,[data-flp-font-preserve] *)){font-family:var(--flp-heading-family) !important;font-size:var(--flp-size-title) !important;font-weight:400 !important;line-height:1.2}
body h2:not(:is(main *,[role="main"] *,article *,dialog *,header *,footer *,.flp-identity,[data-flp-font-preserve] *)){font-family:var(--flp-subtitle-family) !important;font-size:var(--flp-size-subtitle) !important;font-weight:400 !important}
body h3:not(:is(main *,[role="main"] *,article *,dialog *,header *,footer *,[data-flp-font-preserve] *)){font-family:var(--flp-subheading-family) !important;font-size:var(--flp-size-subheading) !important;font-weight:400 !important}
body :is(h4,h5,h6):not(:is(main *,[role="main"] *,article *,dialog *,header *,footer *,[data-flp-font-preserve] *)){font-family:var(--flp-minor-family) !important;font-size:var(--flp-size-minor) !important;font-weight:600 !important}
/* Funções explícitas prevalecem sobre o nível HTML e o contexto de cartão. */
body :is(main,[role="main"],article,dialog) :is(h1,h2,h3,h4,h5,h6)[data-flp-heading="title"],
body .app main.main>.section>.hero h3{
 font-family:var(--flp-heading-family) !important;font-size:var(--flp-size-title) !important;font-weight:400 !important;
}
body :is(main,[role="main"],article,dialog) :is(h1,h2,h3,h4,h5,h6)[data-flp-heading="subtitle"]{
 font-family:var(--flp-subtitle-family) !important;font-size:var(--flp-size-subtitle) !important;font-weight:400 !important;
}
body :is(main,[role="main"],article,dialog) :is(h1,h2,h3,h4,h5,h6)[data-flp-heading="subheading"],body .app main.main .grid>.card h4{
 font-family:var(--flp-subheading-family) !important;font-size:var(--flp-size-subheading) !important;font-weight:400 !important;
}
body :is(main,[role="main"],article,dialog) :is(h1,h2,h3,h4,h5,h6)[data-flp-heading="minor"]{
 font-family:var(--flp-minor-family) !important;font-size:var(--flp-size-minor) !important;font-weight:600 !important;
}
body :is(main,[role="main"],article,dialog) :is(h1,h2,h3,h4,h5,h6) em,body #flp-search-title em{
 font-family:inherit !important;font-size:inherit !important;font-weight:inherit !important;font-style:italic;
}
body main :is(h1,h2,h3,h4,h5,h6)[data-flp-heading="label"],body main .kb-worlds-heading{
 font-family:var(--flp-minor-family) !important;font-size:.8rem !important;font-weight:600 !important;line-height:1.45 !important;letter-spacing:.08em !important;text-shadow:none;
}
/* Escritas sagradas e alfabetos especiais: nunca substituir a fonte de glifos. */
body :is(main,[role="main"],article,dialog) :is(h1,h2,h3,h4,h5,h6):lang(he){font-family:"Noto Serif Hebrew","Times New Roman",serif !important;text-shadow:none}
body :is(main,[role="main"],article,dialog) :is(h1,h2,h3,h4,h5,h6):lang(syr){font-family:"Noto Sans Syriac","Estrangelo Edessa",serif !important;text-shadow:none}
body #tres-areas #areas-title{margin-bottom:1.3rem}
body #inicio .hero-inner h1{font-size:var(--flp-size-subtitle) !important}
body .hero .flp-identity{font-family:"Cinzel Decorative",Georgia,serif !important;font-size:clamp(1.05rem,3.8vw,2.4rem) !important}
body .hero .flp-identity .flp-initial{font-family:"Almendra Display",Georgia,serif !important}
body .site-header .brand{font-family:"Inter",system-ui,sans-serif;display:inline-flex;align-items:center;gap:.65rem;white-space:nowrap;color:#fff !important}
body .site-header .brand .brand-mark{color:#b89a5a !important}
body .site-header .brand .brand-text{color:#fff !important;font-size:clamp(1.2rem,1.6vw,1.5rem);line-height:1.1}
/* Subtítulo independente em cabeçalhos de estudo, sem duplicar o H1. */
body main .kb-hero .flp-page-subtitle{color:var(--gold-soft);margin:-.2rem 0 1.15rem;font-style:normal}
body main .kb-hero:has(.flp-page-subtitle) h1{margin-bottom:.55rem}
body main .kb-hero:has(.flp-page-subtitle){margin-bottom:1.8rem}
body main .kb-world strong{font-family:var(--flp-subheading-family);font-size:clamp(1.05rem,1.6vw,1.35rem);font-weight:400}
body main .kb-map-related{margin:1rem auto 0}


/* Composição institucional compacta: margens simétricas, sem zoom nem escala
   artificial. As larguras locais mais estreitas continuam a ser respeitadas. */
@media screen and (min-width:1024px){
 :root{
  --flp-content-max:1280px;
  --flp-page-gutter:max(10vw,calc((100vw - var(--flp-content-max))/2));
  --flp-content-width:min(80%,var(--flp-content-max));
  font-size:15px;
 }
 body.flp-area{font-size:1rem}
 /* Cabeçalho e página inicial: fundos de largura integral, conteúdo alinhado. */
 body .site-header{
  box-sizing:border-box;
  padding-inline:var(--flp-page-gutter) !important;
 }
 body .site-header .site-nav{right:var(--flp-page-gutter)}
 body main:has(> #inicio.hero){
  box-sizing:border-box;width:100%;max-width:none;margin-inline:auto;
 }
 body main:has(> #inicio.hero)>:is(.section,.hero){
  box-sizing:border-box;
  padding-inline:var(--flp-page-gutter) !important;
 }
 body main:has(> #inicio.hero)>.section{padding-block:4.5rem}
 body main:has(> #inicio.hero)>.hero{padding-block:4rem}
 body main:has(> #inicio.hero) .hero-logo-wrap{width:min(320px,70vw)}
 body main:has(> #inicio.hero) .flp-three-areas>a{padding:1.25rem 1rem}
 body main:has(> #inicio.hero) .flp-three-areas .area-icon{width:80px;height:80px}
 /* Páginas internas e áreas de trabalho. width limita a composição, sem
    substituir max-width de artigos, estudos ou formulários mais estreitos. */
 body main:not(:has(> #inicio.hero)),body [role="main"]:not(main){
  box-sizing:border-box;
  width:var(--flp-content-width) !important;
  margin-inline:auto !important;
  min-width:0;
 }
 body main.section.inner-page{padding-inline:clamp(1rem,2vw,2rem)}
 body.flp-area main{padding-inline:clamp(0px,1vw,16px)}
 /* Asterium: a margem mede-se na área disponível depois do menu lateral. */
 body .app>main.main{width:min(90%,var(--flp-content-max)) !important;padding-inline:clamp(1rem,2vw,1.8rem)}
}
/* Entre desktop e telemóvel preserva-se o espaço de leitura e os controlos. */
@media screen and (min-width:768px) and (max-width:1023px){
 body .site-header{padding-inline:5vw !important}
 body main:has(> #inicio.hero)>.section{padding-inline:5vw}
}


/* Cartões de navegação: toda a superfície é uma ligação, sem chamadas repetidas. */
body main a.flp-nav-panel{
 display:block;color:inherit;text-decoration:none !important;text-align:center;
}
body main a.flp-nav-panel>p{max-width:70ch;margin-inline:auto}
body main a.flp-nav-panel>h2{margin-top:0}
body main :is(a.flp-nav-panel,.flp-stretched-card,a.tile,a.oc-card,a.kb-branch-card,a.kb-study-card,a.ft-card){cursor:pointer}
body main :is(a.flp-nav-panel,.flp-stretched-card):hover{
 border-color:var(--gold-soft,#d3bc85);background-color:rgba(184,154,90,.07);
}
body main :is(a.flp-nav-panel,.flp-stretched-card:focus-within,a.tile,a.oc-card,a.kb-branch-card,a.kb-study-card,a.ft-card):focus-visible,
body main .flp-stretched-card:focus-within{
 outline:2px solid var(--gold-soft,#d3bc85);outline-offset:3px;
}
.flp-stretched-card{position:relative;isolation:isolate}
.flp-stretched-card .flp-stretched-link{position:static !important}
.flp-stretched-card .flp-stretched-link::after{
 content:"";position:absolute;inset:0;z-index:2;cursor:pointer;border-radius:inherit;
}
.flp-stretched-card .flp-stretched-link:focus-visible{outline:none!important}
.flp-card-sr-only{
 position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
 margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important;border:0!important;
}
.flp-card-redundant{display:none!important}

.flp-stretched-card .flp-card-link-row{margin:0!important;padding:0!important;line-height:0!important}
body main a.flp-nav-panel.ea-panel{border:1px solid var(--line,#494136)}

body.flp-area main a.flp-nav-panel{color:inherit!important;text-decoration:none!important}
.flp-stretched-card .flp-stretched-button{display:block;width:0!important;height:0!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;background:none!important;overflow:visible!important}
.flp-stretched-card a.flp-stretched-link{display:block;min-width:0;min-height:0;margin:0!important;padding:0!important;border:0!important;background:none!important;line-height:0!important}


/* Hierarquia óptica: títulos de cartões claramente destacados do texto.
   A Spectral tem altura visual própria; não deve competir com a Merienda. */
body main :is(.mp-step,.tile,.oc-card,.kb-branch-card,.kb-study-card,.ft-card,.project-card,.path-card,.ea-card,.card,.flp-nav-panel) :is(p,li,dd):not(:is(.eyebrow,.overline,.muted,.caption,.astro-note,.med-note,[lang]:not([lang^="pt"]),[lang]:not([lang^="pt"]) *,[data-flp-font-preserve],[data-flp-font-preserve] *,[class*="hebrew"],[class*="syr"],[class*="akbar-glyph"],[class*="akbar-script"])){
 font-size:var(--flp-size-card-body) !important;
 line-height:1.55;
}
body main :is(.mp-step,.tile,.oc-card,.kb-study-card,.ft-card,.project-card,.path-card,.ea-card) :is(h3,[data-flp-heading="subheading"]){
 margin-bottom:.65em;
}
body main .mp-step{hyphens:none;overflow-wrap:normal}
body main .mp-step h3{hyphens:none;overflow-wrap:normal;word-break:normal}
body main .mp-step p{hyphens:none;overflow-wrap:break-word}
body main .mp-step a{font-size:.92rem;line-height:1.45}
@media(max-width:600px){
 :root{--flp-size-card-body:1.05rem}
}

/* Progresso de INITIUM e MENTIS: cartões de acesso direto ao percurso. */
body main a.flp-progress-card{display:block;color:inherit;text-decoration:none!important;cursor:pointer;background:var(--bg-panel,#151519);transition:border-color .15s,background-color .15s}
body main a.flp-progress-card:is(:hover,:focus-visible){border-color:var(--gold-soft,#d3bc85);background-color:rgba(184,154,90,.08)}
body main a.flp-progress-card:focus-visible{outline:2px solid var(--gold-soft,#d3bc85);outline-offset:3px}
body main a.flp-progress-card h3{color:var(--gold-soft,#d3bc85)}
body main a.flp-progress-card p{font-size:var(--flp-size-card-body);margin-bottom:0}

/* Referências de estudo: o mesmo tratamento pontilhado em todas as áreas. */
main a.flp-cross-reference{color:var(--oc-gold,#d1b579);text-decoration:underline;text-decoration-style:dotted;text-underline-offset:.2em}
main a.flp-cross-reference:hover{color:#fff2cc;text-decoration-style:solid}
main a.flp-cross-reference::after{content:" ↗";font-size:.75em}
main a.flp-cross-reference:focus-visible{outline:2px solid currentColor;outline-offset:3px}


/* Menus de selecção institucionais: controlo nativo, apresentação discreta. */
body select {
  color-scheme: dark;
}
body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve]) {
  --flp-select-bg: #17191f;
  --flp-select-text: #e7dfd2;
  --flp-select-gold: #b89a5a;
  appearance: none;
  -webkit-appearance: none;
  color: var(--flp-select-text);
  background-color: var(--flp-select-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23b89a5a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right .8rem center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  border: 1px solid rgba(184,154,90,.32);
  border-radius: 7px;
  padding-inline-end: 2.4rem;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve]):hover:not(:disabled) {
  border-color: rgba(184,154,90,.65);
}
body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve]):focus-visible {
  outline: 2px solid #b89a5a;
  outline-offset: 2px;
}
body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve]):disabled {
  cursor: default;
  opacity: .6;
}
body select:not([data-flp-select-preserve]) :is(option,optgroup) {
  background: #17191f;
  color: #e7dfd2;
}
body select:not([data-flp-select-preserve]) option:checked {
  background: #393126;
  color: #f0dfb8;
}
/* Chromium moderno: estiliza também o painel aberto, sem trocar o select
   por um componente JS e sem alterar os valores ou eventos dos formulários. */
@supports (appearance: base-select) and selector(::picker(select)) {
  body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve]),
  body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve])::picker(select) {
    appearance: base-select;
  }
  body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve]) {
    background-image: none;
    padding-inline-end: .85rem;
    gap: .75rem;
  }
  body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve])::picker-icon {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23b89a5a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transition: transform .15s;
  }
  body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve]):open::picker-icon {
    transform: rotate(180deg);
  }
  body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve])::picker(select) {
    color-scheme: dark;
    background: #17191f;
    color: #e7dfd2;
    border: 1px solid rgba(184,154,90,.38);
    border-radius: 9px;
    padding: .3rem;
    margin-block: .3rem;
    max-height: min(320px, 55vh);
    overflow: auto;
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
  }
  body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve]) option {
    padding: .55rem .7rem;
    border-radius: 5px;
    gap: .6rem;
    line-height: 1.4;
    white-space: normal;
    cursor: pointer;
  }
  body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve]) option:is(:hover,:focus-visible) {
    background: #2b2925;
    color: #f0dfb8;
  }
  body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve]) option:checked {
    background: #393126;
    color: #f0dfb8;
  }
  body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve]) option::checkmark {
    color: #d3bc85;
  }
  body select:not([multiple]):is(:not([size]),[size="1"]):not([data-flp-select-preserve]) option:disabled {
    color: #89847a;
    cursor: default;
  }
}
@media (prefers-reduced-motion: reduce) {
  body select, body select::picker-icon { transition: none; }
}
