:root{--ink:#1b3438;--muted:#647576;--paper:#f6f5f0;--line:#dce1db;--green:#295c4a}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:15px/1.5 system-ui,sans-serif}header{height:90px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:18px;text-decoration:none;color:var(--ink);font:italic 40px Georgia}.brand span{font:600 12px system-ui;letter-spacing:2px}.private{font-size:12px;border:1px solid #c9d3c8;border-radius:30px;padding:6px 14px}main{max-width:1680px;margin:auto;padding:0 clamp(20px,3.5vw,64px)}.intro{display:flex;justify-content:space-between;align-items:center;padding:54px 0 46px;gap:50px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--green)}h1{font:normal clamp(48px,5vw,72px)/1.06 Georgia;margin:22px 0}.lead{color:var(--muted);line-height:1.7;margin-bottom:0}aside{border-left:1px solid #ccd5c9;padding:8px 0 8px 40px;min-width:250px;display:flex;flex-direction:column;color:var(--muted)}.stat{font:48px Georgia;color:var(--ink)}.rule{height:1px;background:var(--line);margin:23px 0;width:45px}.small{font-size:12px}.explore{background:white;border:1px solid var(--line);border-radius:12px;padding:28px}.search{display:flex;gap:15px;align-items:center;padding:12px 18px;border:1px solid #afc2b9;border-radius:6px;background:#fafcf9;box-shadow:0 0 0 3px #f0f5ee}.search span{font-size:29px;line-height:1}.search input{width:100%;font:17px system-ui;border:0;background:none;outline:none;color:var(--ink)}kbd{color:#81908a;border:1px solid var(--line);padding:0 6px;border-radius:3px}.filters{display:flex;align-items:end;gap:22px;padding:24px 0}.filters label{font-size:11px;color:var(--muted)}select{display:block;margin-top:6px;border:1px solid var(--line);background:white;padding:8px 28px 8px 10px;color:var(--ink);border-radius:4px;font-size:13px}.check{display:flex;align-items:center;gap:6px;padding-bottom:9px}.quiet{color:var(--muted);background:none;border:0}.filters button{margin-left:auto;padding-bottom:9px}button{cursor:pointer;font:inherit;border:1px solid var(--line);background:white;color:var(--ink);border-radius:4px;padding:8px 14px}button:hover{background:#edf3ed}button:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:3px}button:disabled{opacity:.35;cursor:default}.results-bar{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:17px}.results-bar h2{font-size:16px;font-weight:600}.results-bar h2 span{font-size:11px;font-weight:500;background:#edf2eb;color:var(--green);padding:3px 8px;border-radius:14px;margin-left:7px}.results-bar>span{font-size:11px;color:var(--muted)}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:10px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);background:#f7f8f4;padding:12px}td{padding:15px 12px;border-bottom:1px solid #edf0eb;font-size:13px}td:first-child{width:38%}.person{padding:0;border:0;background:none;text-align:left;font-weight:600;color:var(--ink)}.person:hover{background:none;color:var(--green);text-decoration:underline}.id{display:block;font-size:10px;font-family:monospace;color:#81908a;margin-top:4px}.unknown{color:#a0aaa4}td:last-child{color:#8caa9c}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:23px;font-size:12px}.pagination button{font-size:12px}footer{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;padding:25px 0 35px}dialog{width:min(740px,94vw);max-height:90vh;border:1px solid var(--line);border-radius:12px;padding:28px 34px;color:var(--ink)}dialog::backdrop{background:#102e35a6;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between}.dialog-top #close{margin-left:auto}.profile-name{font:36px/1.2 Georgia;margin:20px 0 10px}.fslink{color:var(--green);font-size:12px}.facts{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:25px 0;border-bottom:1px solid var(--line)}.facts dt{font-size:11px;color:var(--muted);margin-bottom:5px}.facts dd{margin:0;font-size:15px}.section-title{font-size:14px;margin:24px 0 12px}.relative{padding:12px 0;border-bottom:1px solid #edf0eb;display:flex;gap:16px;align-items:baseline}.relative small{width:130px;flex-shrink:0;color:var(--muted);font-size:11px}.relative button{text-align:left;padding:0;border:0;background:none;color:var(--green)}.disclaimer{font-size:12px;color:var(--muted);background:#f4f6f0;padding:14px;border-radius:5px;margin-top:25px}.sources{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.sources summary{cursor:pointer}.sources p{padding:8px;background:#f7f8f5}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden}#empty{text-align:center;padding:45px;color:var(--muted)}@media(max-width:700px){header{height:70px;padding:0 5%}.brand span{font-size:10px}.intro{padding:35px 0;gap:20px}aside{display:none}main{padding:0 4%}.explore{padding:16px}.filters{gap:12px;flex-wrap:wrap}.filters button{margin-left:0}.check{padding-top:10px}td{padding:13px 7px;font-size:12px}td:first-child{width:48%}footer{gap:20px}.search input{font-size:14px}dialog{padding:20px}.facts{gap:16px}.profile-name{font-size:29px}.relative small{width:90px}}
.edit-actions{display:flex;gap:12px;align-items:center;margin:20px 0 4px}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#204a3c}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.edit-label{font-size:12px;color:var(--muted)}.edit-label input{display:block;width:100%;border:1px solid #bfcfc3;border-radius:4px;padding:10px;font:14px system-ui;color:var(--ink);margin:6px 0;background:#fcfdfb}.edit-label input:focus{outline:2px solid #bed5c4}.edit-label span{font-size:10px}#save-status{font-size:12px;color:var(--green)}.error{color:#a52f24;font-size:13px}@media(max-width:600px){.edit-grid{grid-template-columns:1fr}}

[hidden]{display:none!important}.access-panel{max-width:850px;margin:65px auto;padding:24px}.access-panel h1{font-size:clamp(2.5rem,6vw,4.5rem)}.access-panel h2{margin:25px 0 12px}.access-panel p{line-height:1.7}.access-panel label{display:grid;gap:8px}.access-panel input{border:1px solid #b7c4bc;padding:14px;border-radius:8px;background:white;font:inherit;max-width:380px}.access-panel form{display:grid;gap:15px;margin:20px 0;justify-items:start}.account-bar{display:flex;gap:16px;flex-wrap:wrap;align-items:center;padding:16px 5%}.account-bar span{margin-right:auto}.test-banner{background:#fff0b9;text-align:center;padding:12px;font-size:14px}.plans{display:flex;gap:16px;flex-wrap:wrap}.plans button{display:grid;gap:10px;padding:24px;background:#173e34;color:white}.plans strong{font-size:24px}#access-status{color:#833c29;white-space:pre-wrap}

.locations{margin:0 0 36px;padding:28px;border:1px solid #d9dfd5;border-radius:16px;background:#eef1e9}.locations h2{font-size:28px;margin:8px 0 18px}#location-path{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:20px}#location-folders{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}.location-folder{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:24px;background:#fffdf7;border:1px solid #ccd5ca;border-radius:12px;color:#173e34;text-align:left}.location-folder strong{font-size:25px}.location-folder:hover{background:#e2e9dd}.location-folder:focus-visible{outline:3px solid #173e34;outline-offset:3px}.collection-open{padding:16px}.locations .small{margin-top:20px}@media(max-width:600px){.locations{padding:18px}.brand span{font-size:12px}}
\n.birth-place{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4;overflow-wrap:anywhere}\n
/* Birth date and locality displayed on separate lines in the archive table. */
#results td .birth-place{display:block!important;margin-top:5px!important;color:var(--muted)!important;font-size:11px!important;font-weight:400;line-height:1.45;overflow-wrap:anywhere}
#results td:nth-child(2){min-width:190px;vertical-align:middle}

/* Birthplace directory links in the people table */
#results .birth-locality{display:block;max-width:100%;padding:0;border:0;background:transparent;color:#71847d;font:400 10px/1.45 system-ui,sans-serif;text-align:left;overflow-wrap:anywhere;text-decoration:none}
#results .birth-locality:hover{color:var(--green);text-decoration:underline;background:transparent}
#results .birth-locality:focus-visible{outline:2px solid var(--green);outline-offset:3px}

/* Naturalidade: ligação com aparência de texto simples, sem caixa. */
#results button.birth-locality,
#results button.birth-locality:hover,
#results button.birth-locality:active {
  appearance:none!important;-webkit-appearance:none!important;
  display:block!important;width:auto!important;min-height:0!important;
  padding:0!important;margin:0!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;
  background:none!important;background-color:transparent!important;
  color:#71847d!important;font-size:10px!important;font-weight:400!important;
  line-height:1.45!important;letter-spacing:normal!important;text-align:left!important;
  text-decoration:none!important;cursor:pointer!important;
}
#results button.birth-locality:hover {text-decoration:underline!important;color:#385d50!important}
#results button.birth-locality:focus-visible {outline:2px solid #385d50!important;outline-offset:3px!important}

/* Símbolos de sexo discretos junto ao nome */
.sex-mark{display:inline-block;margin-left:5px;font-size:15px;font-weight:600;vertical-align:baseline;line-height:1}
.sex-mark.male{color:#608ebb}
.sex-mark.female{color:#c0789d}
.profile-name .sex-mark{font-size:.75em}

/* Marcadores de sexo: círculos discretos antes dos nomes */
.sex-mark,.profile-name .sex-mark{display:inline-block;width:11px;height:11px;min-width:11px;margin:0 7px 0 0;border-radius:50%;vertical-align:middle;font-size:0;line-height:0;box-shadow:none}
.sex-mark.male{background-color:#477fb5;color:transparent}
.sex-mark.female{background-color:#be6c98;color:transparent}

/* Formulário de fontes: nome e URL em campos separados */
.source-editor{margin:20px 0}
.source-edit-row{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;padding:14px 0;border-bottom:1px solid #dce5e0}
.source-edit-row>label{min-width:0;display:block}
.source-edit-row>label:nth-child(3){grid-column:1}
.source-edit-row .source-note{display:block;width:100%;min-height:68px;box-sizing:border-box;margin-top:5px;resize:vertical}
.source-edit-row .remove-source{grid-column:1;justify-self:start}
.source-edit-row input{display:block;width:100%;box-sizing:border-box;margin-top:5px}
.source-edit-row .remove-source{margin-bottom:2px}
@media(max-width:640px){.source-edit-row{grid-template-columns:1fr}.source-edit-row .remove-source{justify-self:start}}

/* Marcador textual robusto, visível mesmo sem suporte a fundos CSS */
#results .sex-mark,.profile-name .sex-mark{display:inline!important;width:auto!important;height:auto!important;min-width:0!important;margin:0 7px 0 0!important;border-radius:0!important;background:transparent!important;font-family:Arial,sans-serif!important;font-size:18px!important;font-weight:700!important;line-height:1!important;vertical-align:baseline!important}
#results .sex-mark.male,.profile-name .sex-mark.male{color:#477fb5!important}
#results .sex-mark.female,.profile-name .sex-mark.female{color:#be6c98!important}

/* Colunas de relações familiares na lista */
#results .family-cell{display:flex;flex-direction:column;gap:5px;min-width:150px}
#results .family-entry{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
#results .family-role{color:var(--muted);font-size:10px}
#results button.family-person{display:inline;padding:0;margin:0;border:0;background:none;color:var(--green);font:inherit;text-align:left;text-decoration:underline;text-underline-offset:2px}
#results button.family-person:hover{color:var(--ink)}

/* Relações familiares: texto simples, sem botões emoldurados */
#results td .family-cell{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:170px}
#results td .family-entry{display:block;width:100%;font-size:12px;line-height:1.5;text-align:left;color:var(--ink)}
#results td .family-role{display:inline;color:#71847d;font-size:11px;margin-right:3px}
#results td button.family-person,#results td button.family-person:hover,#results td button.family-person:active{appearance:none!important;-webkit-appearance:none!important;display:inline!important;width:auto!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;background-color:transparent!important;color:var(--ink)!important;font:inherit!important;line-height:inherit!important;text-align:left!important;text-decoration:none!important;vertical-align:baseline!important}
#results td button.family-person:hover{text-decoration:underline!important;text-underline-offset:2px!important;color:var(--green)!important}
#results td button.family-person:focus-visible{outline:2px solid var(--green)!important;outline-offset:2px!important}

/* Edição individual dos filhos, semelhante aos restantes familiares */
.children-editor{margin:20px 0}
.child-edit-row{display:flex;gap:8px;align-items:center;margin:8px 0}
.child-edit-row .child-name{flex:1;min-width:0;padding:9px 11px;border:1px solid var(--line);border-radius:4px;font:inherit}
.child-edit-row .remove-child{flex:none}
@media(max-width:520px){.child-edit-row{flex-wrap:wrap}.child-edit-row .child-name{flex-basis:100%}}

/* Opções de sexo acessíveis, sem menu dropdown */
.sex-selector{display:flex;flex-wrap:wrap;gap:9px;border:0;padding:0;margin:8px 0 20px;min-width:0}
.sex-selector legend{font-size:13px;color:var(--muted,#667);margin-bottom:9px}
.sex-choice{position:relative;cursor:pointer}
.sex-choice input{position:absolute;opacity:0;width:1px;height:1px}
.sex-choice-content{display:flex;align-items:center;gap:7px;padding:10px 14px;border:1px solid var(--line,#d8d8d8);border-radius:7px;background:transparent;font-size:14px;transition:border-color .15s,background .15s}
.sex-choice-symbol{font-size:22px;line-height:1}
.sex-choice.male .sex-choice-symbol{color:#477fb5}
.sex-choice.female .sex-choice-symbol{color:#be6c98}
.sex-choice input:checked+.sex-choice-content{border-color:var(--green,#285b4a);background:rgba(40,91,74,.09);font-weight:600}
.sex-choice input:focus-visible+.sex-choice-content{outline:2px solid var(--green,#285b4a);outline-offset:3px}

/* Cores suaves nos botões de seleção do sexo */
.sex-choice.male .sex-choice-content{background:#edf4fb;border-color:#bdd2e8;color:#315f8e}
.sex-choice.female .sex-choice-content{background:#fbedf4;border-color:#e8bed4;color:#a34d7d}
.sex-choice.male input:checked+.sex-choice-content{background:#d8eafa;border-color:#477fb5;color:#245987;box-shadow:inset 0 0 0 1px #477fb5}
.sex-choice.female input:checked+.sex-choice-content{background:#f8dce9;border-color:#be6c98;color:#93436f;box-shadow:inset 0 0 0 1px #be6c98}
.sex-choice.unknown input:checked+.sex-choice-content{background:#eef1ef;border-color:#82928a;color:#3c5148}

/* Histórico das fichas consultadas */
.recent-history{margin:22px 0 30px;padding:25px 28px;border:1px solid var(--line);border-radius:12px;background:#fff}
.recent-history-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.recent-history-heading h2{font:normal 28px Georgia,serif;margin:4px 0 0}
.recent-history>.small{color:var(--muted);margin:8px 0 17px}
.recent-history-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:9px}
.recent-profile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;text-align:left;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#f8faf7;color:var(--ink);cursor:pointer;font:inherit}
.recent-profile:hover,.recent-profile:focus-visible{border-color:var(--green);background:#edf3ee}
.recent-profile-name{font-weight:600;overflow-wrap:anywhere}
.recent-profile-id{font-size:12px;color:var(--muted)}
@media(max-width:550px){.recent-history{padding:20px 16px}.recent-history-list{grid-template-columns:1fr}}

/* Fichas: relações familiares agrupadas e alinhadas */
.family-profile-list{border:1px solid var(--line);border-radius:9px;overflow:hidden;margin:12px 0 26px;background:#fff}
.family-profile-row{display:grid;grid-template-columns:minmax(95px,24%) minmax(0,1fr);gap:15px;align-items:center;padding:13px 16px;border-bottom:1px solid #e8ede7}
.family-profile-row:last-child{border-bottom:0}
.family-profile-row:nth-child(even){background:#f9faf7}
.family-profile-role{font-size:12px;font-weight:600;color:var(--muted)}
.family-profile-person{min-width:0;overflow-wrap:anywhere}
.family-profile-person button{background:none;border:0;padding:0;color:var(--green);font:inherit;text-align:left;cursor:pointer}
.family-profile-person button:hover{text-decoration:underline}
.children-list .family-profile-row{grid-template-columns:1fr}
.family-count{display:inline-block;vertical-align:middle;font:600 12px system-ui,sans-serif;color:var(--green);background:#e9f1e9;border-radius:12px;padding:2px 9px;margin-left:7px}
.family-profile-list>.small{padding:10px 16px}
@media(max-width:520px){.family-profile-row{grid-template-columns:75px minmax(0,1fr);padding:12px;gap:10px}}

/* Filhos agrupados por outro progenitor */
.child-family-groups{display:grid;gap:15px;margin:12px 0 26px}
.child-family-group{padding:13px 15px 1px;background:#f7f9f5;border:1px solid var(--line);border-radius:10px}
.child-family-group h4{font-size:13px;font-weight:600;margin:0 0 11px;color:var(--ink);line-height:1.6}
.child-family-group h4 button{border:0;background:none;padding:0;color:var(--green);font:inherit;cursor:pointer;text-align:left}
.child-family-group h4 button:hover{text-decoration:underline}
.child-family-group .family-profile-list{margin:0 0 14px}

/* Irmãos e meios-irmãos na ficha individual */
.sibling-list .family-profile-row{grid-template-columns:minmax(0,1fr) auto}
.sibling-kind{font-size:11px;color:var(--muted);text-align:right}
@media(max-width:520px){.sibling-list .family-profile-row{grid-template-columns:1fr;gap:3px}.sibling-kind{text-align:left}}

/* Miniárvore genealógica das fichas */
.family-tree{margin:12px 0 30px}
.tree-heading{font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--muted);text-transform:uppercase;margin:16px 0 10px}
.tree-parents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tree-parent{padding:16px 13px;border:1px solid var(--line);border-radius:10px;text-align:center;min-width:0}
.tree-father{background:#eff5fb;border-color:#c7d8ea}
.tree-mother{background:#fbf0f6;border-color:#ead0df}
.tree-role{display:block;font-size:11px;font-weight:600;letter-spacing:.04em;color:var(--muted);margin-bottom:7px}
.tree-father .tree-role{color:#477fb5}
.tree-mother .tree-role{color:#a95584}
.tree-person{overflow-wrap:anywhere}
.family-tree button[data-person]{background:none;border:0;padding:0;color:var(--green);font:inherit;cursor:pointer;text-align:inherit}
.family-tree button[data-person]:hover{text-decoration:underline}
.tree-connector{height:22px;width:1px;background:#bdc9c1;margin:0 auto}
.tree-self{padding:13px 18px;border:1px solid #b8cfc0;border-radius:10px;background:#eff5ef;text-align:center}
.tree-self strong{font:normal 21px Georgia,serif}
.tree-sibling-heading{margin-top:23px}
.tree-siblings{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}
.tree-sibling{padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.tree-sibling small{display:block;color:var(--muted);margin-top:4px}
.tree-empty{font-size:13px;color:var(--muted);margin:7px 0 18px}
.tree-descendants-heading{margin-top:25px;padding-top:18px;border-top:1px solid var(--line)}
.tree-partners{display:grid;gap:9px;margin-bottom:14px}
.tree-partner{padding:12px 15px;background:#fff;border:1px solid var(--line);border-radius:9px}
.tree-extras{margin-bottom:14px;font-size:13px}
.tree-extras>div{padding:7px 0}
.tree-extras small{color:var(--muted);margin-right:8px}
@media(max-width:480px){.tree-parents{gap:7px}.tree-parent{padding:12px 7px}.tree-self strong{font-size:18px}}

/* Relações conjugais documentadas e editor de múltiplas relações */
.relationship-cards{display:grid;gap:10px;margin:12px 0 18px}
.relationship-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 16px}
.relationship-card-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.relationship-card-head strong{font-size:12px;color:var(--muted)}
.relationship-card p{margin:6px 0 0;font-size:12px;color:var(--muted)}
.relationship-card a{color:var(--green)}
.relationship-editor{margin:24px 0}
.relationship-edit-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;margin:12px 0;border:1px solid var(--line);border-radius:10px;background:#f8faf7}
.relationship-edit-row label{font-size:12px;color:var(--muted);min-width:0}
.relationship-edit-row input,.relationship-edit-row select{display:block;width:100%;margin-top:5px;padding:10px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink);font:inherit}
.relationship-edit-row .remove-relationship{justify-self:start;grid-column:1/-1}
@media(max-width:540px){.relationship-edit-row{grid-template-columns:1fr}}

/* Dados biográficos organizados por acontecimentos */
.life-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 26px}
.life-event{border:1px solid var(--line);background:#fafbf9;border-radius:10px;padding:16px 18px;min-width:0}
.life-event-title{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-size:14px;font-weight:650;color:var(--ink)}
.life-event-title span{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#e8f0e9;color:var(--green);font-size:16px}
.life-event-details{display:grid;gap:12px;margin:0}
.life-event-detail dt{font-size:11px;color:var(--muted);margin:0 0 4px}
.life-event-detail dd{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.life-event-detail dd .unknown{color:var(--muted)}
@media(max-width:550px){.life-events{grid-template-columns:1fr}.life-event{padding:14px 16px}}

.child-couple-groups{display:grid;gap:15px;margin:12px 0}.child-couple-group{border:1px solid var(--line);border-radius:10px;padding:14px;background:#fafbf9;min-width:0}.child-couple-group h4{font-size:14px;margin:0 0 12px;font-weight:650;line-height:1.5}.child-couple-entries{display:grid;gap:10px;margin-bottom:10px}.child-couple-group .child-edit-row{display:flex;flex-wrap:wrap;gap:8px;align-items:end}.child-couple-group .child-name{flex:1 1 160px;min-width:0}.child-couple-group .child-parent-label{flex:1 1 190px}.child-couple-group .child-parent-label select{width:100%}

/* Linha do tempo biográfica */
.bio-timeline{position:relative;display:grid;gap:0;margin:14px 0 27px;padding:4px 0 4px 8px}
.bio-timeline:before{content:"";position:absolute;left:27px;top:24px;bottom:28px;width:2px;background:linear-gradient(#87bda6,#9daed2,#c9a7ad)}
.bio-timeline-item{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);gap:13px;padding:10px 0 14px;min-width:0}
.bio-timeline-symbol{position:relative;z-index:1;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:700;border:2px solid white;box-shadow:0 0 0 1px var(--line)}
.bio-birth .bio-timeline-symbol{background:#e0f1e8;color:#28785a}
.bio-baptism .bio-timeline-symbol{background:#e6edfb;color:#516eae}
.bio-death .bio-timeline-symbol{background:#f4e7eb;color:#a15d75}
.bio-timeline-content{padding:8px 14px 12px;border-radius:9px;border:1px solid var(--line);min-width:0}
.bio-birth .bio-timeline-content{background:#f5faf6;border-left:3px solid #87bda6}
.bio-baptism .bio-timeline-content{background:#f6f8fc;border-left:3px solid #9daed2}
.bio-death .bio-timeline-content{background:#fcf7f8;border-left:3px solid #c9a7ad}
.bio-timeline-content h4{margin:0 0 6px;font-size:14px}
.bio-timeline-date{font-size:15px;font-weight:550;margin-bottom:5px}
.bio-timeline-place{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.bio-timeline-unknown{color:var(--muted);font-weight:400}


/* Cronologia discreta: a cor fica reservada para a árvore familiar */
.bio-timeline:before{background:#c9d2ce}
.bio-timeline-symbol,.bio-birth .bio-timeline-symbol,.bio-baptism .bio-timeline-symbol,.bio-death .bio-timeline-symbol{background:#f3f5f3;color:#687b72;border-color:#fff;box-shadow:0 0 0 1px #d7dfd9}
.bio-timeline-content,.bio-birth .bio-timeline-content,.bio-baptism .bio-timeline-content,.bio-death .bio-timeline-content{background:#fff;border:0;border-bottom:1px solid #e6ebe7;border-radius:0;padding:7px 5px 15px}
.bio-timeline-item:last-child .bio-timeline-content{border-bottom:0}
.bio-timeline-content h4{font-weight:650;color:var(--ink)}
.bio-timeline-date{font-weight:550}

.profile-portrait{display:block;width:112px;height:138px;object-fit:cover;object-position:center top;border-radius:9px;border:1px solid var(--line);float:right;margin:0 0 14px 18px;background:#f6f7f6}
.profile-document-photo{display:block;max-width:min(100%,420px);max-height:540px;object-fit:contain;border-radius:9px;border:1px solid var(--line);margin:12px 0 18px}
.photo-editor{clear:both;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px;margin:14px 0;border:1px solid var(--line);border-radius:9px;background:#fafbf9}
.photo-editor strong{width:100%;font-size:14px}.photo-editor label{font-size:13px;display:grid;gap:5px}.photo-editor input{max-width:220px}.photo-message{font-size:13px}

.quick-edit-bar{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}.quick-edit-bar select{max-width:185px;padding:8px;border-radius:6px}.quick-edit-panel:not([hidden]){padding:14px;margin:10px 0;border:1px solid #d4ddd7;border-radius:9px;background:#f9faf8}.quick-edit-form{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.quick-edit-form strong{width:100%}.quick-edit-form input{min-width:180px;flex:1;padding:9px}.quick-edit-pencil{font-size:14px;margin-left:8px;border:0;background:transparent;cursor:pointer;opacity:.65}.quick-edit-pencil:hover{opacity:1}

/* Edição discreta e alinhada com o conteúdo da cronologia */
.bio-timeline .quick-edit-pencil{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 position:static!important;vertical-align:middle!important;
 box-sizing:border-box!important;width:22px!important;height:22px!important;
 min-width:22px!important;min-height:22px!important;
 padding:0!important;margin:0 0 0 6px!important;
 border:1px solid transparent!important;border-radius:5px!important;
 background:transparent!important;box-shadow:none!important;
 color:#69766f!important;font:normal 13px/1 sans-serif!important;
 cursor:pointer!important;opacity:.65!important;
}
.bio-timeline .quick-edit-pencil:hover,.bio-timeline .quick-edit-pencil:focus-visible{
 opacity:1!important;border-color:#d9e0db!important;background:#f4f6f4!important;
}


/* Formulário de colaboração dos leitores */
.suggestion-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:min(88vh,850px);overflow-y:auto;padding:0;border:1px solid #dce5de;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 24px 75px rgba(13,40,30,.22)}
.suggestion-dialog::backdrop{background:rgba(12,32,26,.57);backdrop-filter:blur(3px)}
.suggestion-dialog #suggestion-form{display:flex!important;flex-direction:column;gap:0!important;min-width:0!important;padding:28px 30px 26px;margin:0}
.suggestion-dialog h2{font-size:23px;line-height:1.2;margin:0 0 9px;letter-spacing:-.025em}
.suggestion-dialog .suggestion-person{padding:11px 13px;margin:4px 0 24px;background:#f4f7f4;border:1px solid #e5ece6;border-radius:9px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.suggestion-dialog .suggestion-person strong{display:block;font-size:14px}
.suggestion-dialog label{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;width:100%!important;min-width:0!important;margin:0 0 18px!important;font-size:13px!important;font-weight:650!important;line-height:1.5!important;color:var(--ink)!important}
.suggestion-dialog label select,.suggestion-dialog label input,.suggestion-dialog label textarea{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:11px 12px!important;border:1px solid #cbd8cf!important;border-radius:8px!important;background:#fff!important;color:var(--ink)!important;font:400 14px/1.5 inherit!important;box-shadow:none!important}
.suggestion-dialog label textarea{min-height:145px!important;resize:vertical}
.suggestion-dialog label :is(input,select,textarea):focus{outline:2px solid #3e8068!important;outline-offset:1px}
.suggestion-dialog .suggestion-help{font-size:12px;line-height:1.6;color:var(--muted);margin:-6px 0 17px}
.suggestion-dialog .suggestion-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:8px}
.suggestion-dialog .suggestion-actions button{min-height:41px;padding:10px 17px;border-radius:8px}
.suggestion-dialog #suggestion-status{color:#9a372d;font-size:13px;margin:0}
@media(max-width:550px){.suggestion-dialog #suggestion-form{padding:22px 18px}.suggestion-dialog h2{font-size:21px}.suggestion-dialog .suggestion-actions button{flex:1}}


/* Notificações privadas e gestão de sugestões */
#suggestions-count{display:inline-block;margin-left:4px;padding:2px 6px;border-radius:12px;background:#e2eee6;color:#205a43;font-size:11px;font-weight:700}
#suggestions-count[hidden]{display:none}
.my-suggestions-content{padding:26px 28px;max-height:80vh;overflow:auto}
.my-suggestions-content h2{margin:0 0 16px}
.my-suggestions-content>button{margin-bottom:18px}
.my-suggestion-item{padding:14px 0;border-top:1px solid #e0e8e2}
.my-suggestion-item h3{font-size:15px;margin:0 0 6px}
.my-suggestion-item p{overflow-wrap:anywhere;line-height:1.55;margin:7px 0}
.suggestion-delete{border:1px solid #e1b9b9!important;color:#9a3535!important;background:#fff8f8!important}
.suggestion-delete:hover{background:#faeaea!important}

/* Aviso visual de notificações novas */
.notification-button{display:inline-flex;align-items:center;gap:7px;position:relative}
.notification-button[hidden]{display:none}
.notification-bell{font-size:17px;line-height:1}
.notification-button.has-unread{border-color:#d18a37!important;background:#fff6e8!important;color:#74400e!important}
.notification-button.has-unread .notification-bell{filter:saturate(1.4)}
.notification-button.has-unread::after{content:'';position:absolute;top:3px;left:20px;width:8px;height:8px;border-radius:50%;background:#e46b2e;border:2px solid white;box-shadow:0 0 0 1px #d97938}
.notification-button #suggestions-count:not([hidden]){display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;margin-left:1px;border-radius:20px;background:#df6b29;color:#fff;font-size:11px;font-weight:750}

/* Propostas de novas pessoas */
#propose-person{white-space:nowrap}
.new-person-dialog{width:min(590px,calc(100vw - 32px))}
.new-person-dialog #suggest-new-person{display:flex;flex-direction:column;gap:0;padding:26px 30px}
.new-person-dialog h2{margin:0 0 18px}
.new-person-dialog label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650;margin-bottom:16px}
.new-person-dialog label input,.new-person-dialog label textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;padding:11px 12px;border:1px solid #cbd8cf;border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-weight:400}
.new-person-dialog label textarea{resize:vertical;min-height:85px}
.new-person-dialog label :is(input,textarea):focus{outline:2px solid #3e8068;outline-offset:1px}
.new-person-dialog #new-person-status{font-size:13px;color:#9a372d}
@media(max-width:550px){.new-person-dialog #suggest-new-person{padding:22px 18px}#propose-person{white-space:normal}}

/* Ação exclusiva da administração: visual secundário, distinto das sugestões */
.results-bar #new-person.admin-add-person{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:transparent;color:#53645e;border:1px dashed #91a79b;border-radius:7px;padding:9px 13px;font-weight:600;box-shadow:none}
.results-bar #new-person.admin-add-person:hover{background:#edf3ef;color:#254b3a;border-color:#547d68}
.results-bar #new-person.admin-add-person:focus-visible{outline:2px solid #295c4a;outline-offset:3px}
.results-bar #new-person.admin-add-person[hidden]{display:none}
.admin-button-label{font-size:11px;letter-spacing:.02em;color:#71867a;font-weight:500}

/* Lista de sugestões: leitura rápida e detalhes expansíveis */
.suggestion-admin-section{padding:44px 0 65px;border-top:1px solid var(--line);margin-top:35px}
.suggestion-admin-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.suggestion-admin-top h2{margin:5px 0 9px}
.suggestion-admin-top .small{max-width:650px;color:var(--muted);line-height:1.6;margin:0}
.suggestion-admin-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.suggestion-admin-toolbar label{font-size:13px;font-weight:600}
.suggestion-admin-toolbar select{min-width:150px;padding:9px 12px;border:1px solid #cbd7cf;border-radius:8px;background:#fff;color:var(--ink)}
#suggestion-admin-status{margin-left:auto;font-size:12px;color:var(--muted)}
.suggestion-admin-list{border:1px solid #dbe3dc;border-radius:12px;background:#fff;overflow:hidden}
.admin-suggestion-row+.admin-suggestion-row{border-top:1px solid #e6ece7}
.admin-suggestion-summary{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;align-items:center;gap:16px;padding:17px 20px;cursor:pointer;list-style:none}
.admin-suggestion-summary::-webkit-details-marker{display:none}
.admin-suggestion-summary:hover{background:#f7faf7}
.admin-suggestion-row[open]>.admin-suggestion-summary{background:#f4f8f5;border-bottom:1px solid #e2e9e3}
.admin-suggestion-heading{display:flex;flex-direction:column;gap:4px;min-width:0}
.admin-suggestion-heading strong{font-size:14px;overflow-wrap:anywhere}
.admin-suggestion-category{font-size:12px;color:#667b70}
.admin-suggestion-meta{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.admin-suggestion-status{border-radius:20px;padding:5px 10px;font-size:11px;font-weight:700;background:#f0f3f0;color:#5b6c61;white-space:nowrap}
.admin-suggestion-row[data-status="pending"] .admin-suggestion-status{background:#fff1dc;color:#92601c}
.admin-suggestion-row[data-status="approved"] .admin-suggestion-status{background:#e6f4eb;color:#286c43}
.admin-suggestion-row[data-status="rejected"] .admin-suggestion-status{background:#fbe9e9;color:#974d4d}
.admin-suggestion-body{padding:22px 24px 24px}
.admin-suggestion-details{white-space:pre-line;overflow-wrap:anywhere;line-height:1.65;margin:0 0 15px}
.admin-suggestion-note{display:flex;flex-direction:column;gap:7px;margin:20px 0 14px;font-size:13px;font-weight:600}
.admin-suggestion-note textarea{box-sizing:border-box;width:100%;max-width:680px;padding:11px 12px;border:1px solid #cbd7cf;border-radius:8px;font:inherit;font-weight:400;resize:vertical}
.admin-suggestion-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.admin-suggestion-actions button{padding:9px 13px;border-radius:7px}
.admin-suggestion-actions .suggestion-approve{background:#295c4a;color:#fff;border:1px solid #295c4a}
.admin-suggestion-actions .suggestion-reject{background:#fff;color:#9b4c4c;border:1px solid #d9b4b4}
.admin-suggestion-actions .suggestion-pending{background:#fff;color:#53665b;border:1px solid #cbd7cf}
.admin-suggestion-actions .suggestion-delete{margin-left:auto}
.admin-suggestion-actions button:disabled{opacity:.45;cursor:default}
.suggestion-empty{padding:26px;color:var(--muted);text-align:center}
@media(max-width:700px){.suggestion-admin-top{flex-direction:column}.admin-suggestion-summary{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:15px}.admin-suggestion-meta{grid-column:1 / -1;grid-row:2}.admin-suggestion-body{padding:18px 15px}.suggestion-admin-actions{gap:7px}#suggestion-admin-status{margin-left:0}.admin-suggestion-actions .suggestion-delete{margin-left:0}}

.suggestion-approval-message{padding:12px 14px;border-left:3px solid #438267;border-radius:5px;background:#f1f7f2;color:#24553c;line-height:1.6;font-weight:500}

/* Fechar o histórico de sugestões com um X discreto */
#my-suggestions-dialog .my-suggestions-content{position:relative;padding-top:28px}
#my-suggestions-dialog .my-suggestions-content h2{padding-right:44px}
#my-suggestions-dialog .my-suggestions-close{position:absolute;top:18px;right:18px;display:flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:#586b61;font-size:27px;font-weight:400;line-height:1;cursor:pointer}
#my-suggestions-dialog .my-suggestions-close:hover{background:#edf2ee;color:#244b39}
#my-suggestions-dialog .my-suggestions-close:focus-visible{outline:2px solid #295c4a;outline-offset:2px}

/* Cabeçalho de notificações com X alinhado à direita */
#my-suggestions-dialog .my-suggestions-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
#my-suggestions-dialog .my-suggestions-header h2{margin:0;padding:0;flex:1}
#my-suggestions-dialog .my-suggestions-header-close{position:static;flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:#53675d;font-size:27px;line-height:1;cursor:pointer}
#my-suggestions-dialog .my-suggestions-header-close:hover{background:#edf2ee;color:#244b39}
#my-suggestions-dialog .my-suggestions-header-close:focus-visible{outline:2px solid #295c4a;outline-offset:2px}

/* Partilha de ficha junto ao botão de fechar */
#detail .dialog-top{display:flex;align-items:center;justify-content:flex-end;gap:8px}
#detail .dialog-top #back{margin-right:auto}
#detail .dialog-top #close{margin-left:0}
#detail .profile-share-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:#52675d;box-shadow:none;cursor:pointer}
#detail .profile-share-icon:hover{background:#eef3ef;color:#244e3b}
#detail .profile-share-icon:focus-visible{outline:2px solid #295c4a;outline-offset:2px}

/* Exploração e histórico lado a lado em ecrãs largos */
@media(min-width:1050px){.home-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,330px);align-items:start;gap:24px;margin-bottom:34px}.home-columns>.locations{margin:0;min-width:0}.home-columns>.recent-history{margin:0;min-width:0}.home-columns .recent-history-list{grid-template-columns:minmax(0,1fr)}.home-columns .recent-history-heading{align-items:flex-start}.home-columns>.recent-history{align-self:stretch;padding:18px 20px;max-height:none;overflow:visible;display:flex;flex-direction:column}.home-columns .recent-history-list{flex:1;grid-template-rows:repeat(5,minmax(0,1fr))}.home-columns .recent-profile{justify-content:center}.home-columns .recent-history-heading{gap:6px}.home-columns .recent-history-heading h2{font-size:23px}.home-columns .recent-history>.small{margin:5px 0 10px;font-size:11px}.home-columns .recent-history-list{overflow:visible;gap:5px;padding:0}.home-columns .recent-profile{padding:7px 10px;gap:1px}.home-columns .recent-profile-name{font-size:12px;line-height:1.3}.home-columns .recent-profile-id{font-size:10px;line-height:1.25}.home-columns #clear-history{font-size:11px;padding:3px 0}}


/* Identidade visual inspirada nos arquivos históricos portugueses */
:root{--paper:#f8f4eb;--ink:#173d37;--muted:#64706a;--line:#ded7c9;--green:#245b4b;--heritage-blue:#416c83;--heritage-gold:#bd985d}
body{background-color:#f8f4eb;background-image:radial-gradient(ellipse at 4% 9%,rgba(192,165,118,.12),transparent 36%),radial-gradient(ellipse at 97% 38%,rgba(88,126,111,.10),transparent 35%),repeating-linear-gradient(0deg,rgba(101,77,43,.014) 0px,rgba(101,77,43,.014) 1px,transparent 1px,transparent 5px)}
header{background:rgba(255,253,248,.9);border-bottom:1px solid #d8d4c8}
#archive .intro{position:relative;isolation:isolate;overflow:hidden;margin:0 -3.5vw 24px;padding:55px clamp(20px,3.5vw,64px) 65px;min-height:335px;align-items:center;background:linear-gradient(90deg,rgba(250,246,236,.98) 0%,rgba(250,246,236,.94) 44%,rgba(250,246,236,.55) 100%),radial-gradient(ellipse at 85% 45%,rgba(109,144,137,.26),transparent 48%),#eee8da;border-bottom:1px solid #e0d7c7}
#archive .intro:before{content:"";position:absolute;z-index:-1;right:1%;top:0;width:46%;height:100%;opacity:.25;background-image:url('/heritage-ornament.svg');background-position:right center;background-repeat:no-repeat;background-size:contain;pointer-events:none}
#archive .intro:after{content:"";position:absolute;z-index:-1;left:0;top:0;width:125px;height:100%;opacity:.45;background-image:url('/heritage-tile.svg');background-size:82px 82px;mask-image:linear-gradient(to right,#000,transparent);pointer-events:none}
#archive .intro h1{font:normal clamp(45px,4.3vw,74px)/1.08 Georgia,serif;max-width:770px;color:#173e37;letter-spacing:-.025em;margin:15px 0 20px}
#archive .intro h1:after{content:"";display:block;width:78px;height:2px;margin-top:16px;background:#bc985f}
#archive .intro .lead{font:19px/1.7 Georgia,serif;color:#435a56}
#archive .intro aside{background:rgba(255,251,241,.68);border:1px solid #e1d7c4;border-left:3px solid #bb9864;border-radius:8px;padding:20px 24px;min-width:225px}
#archive .intro .stat{color:#204b46}
#archive .home-columns{position:relative}
#archive .locations{background:linear-gradient(130deg,#f5f3e9,#eef1e9);border:1px solid #dcd9c9;box-shadow:0 7px 25px rgba(62,76,62,.035)}
#archive .locations h2{font-family:Georgia,serif;font-weight:normal;font-size:32px}
#archive .location-folder{position:relative;overflow:hidden;min-height:132px;background:linear-gradient(110deg,#fffdf7 5%,#f0f2e9 100%);border-color:#d5d8cb;transition:transform .15s ease,box-shadow .15s ease}
#archive .location-folder:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(31,70,61,.10)}
#archive .location-folder:after{content:"";position:absolute;right:-20px;bottom:-42px;width:140px;height:140px;background:url('/heritage-ornament.svg') center/contain no-repeat;opacity:.11;pointer-events:none}
#archive .location-folder:nth-child(even){background:linear-gradient(110deg,#fffdf8,#edf1f4)}
#archive .location-folder:nth-child(even):after{filter:hue-rotate(65deg);opacity:.14}
#archive .recent-history{background:#fffcf6;border-color:#e0d9cd;box-shadow:0 7px 25px rgba(62,76,62,.035)}
#archive .recent-history-heading h2{font-family:Georgia,serif}
#archive .recent-profile{background:#f8f7f1;border-color:#e0dfd4}
#archive .recent-profile:hover{background:#eef3ed}
#archive .explore{background:#fffdf9;border-color:#dfdbd1}
#archive .eyebrow{color:#355f54}
@media(max-width:1049px){#archive .intro{margin:0 -20px 24px;padding:40px 24px;min-height:0}#archive .intro:before{opacity:.12}#archive .intro:after{opacity:.20}}
@media(max-width:700px){#archive .intro{gap:20px}#archive .intro h1{font-size:clamp(39px,9vw,56px)}#archive .intro .lead{font-size:16px}#archive .intro aside{min-width:0;padding:14px}#archive .location-folder{min-height:110px}}

/* Paisagem patrimonial ilustrada e cartões de distritos */
#archive .intro{background-image:linear-gradient(90deg,#faf6ec 0%,rgba(250,246,236,.97) 36%,rgba(250,246,236,.70) 59%,rgba(250,246,236,.18) 100%),url('/heritage-village.svg');background-repeat:no-repeat;background-position:center,right center;background-size:cover,auto 100%}
#archive .intro:before{opacity:.16;width:32%;right:-3%}
#archive #location-folders>.location-folder{isolation:isolate;min-height:160px;padding:19px 22px;justify-content:center;gap:10px}
#archive #location-folders>.location-folder:before{content:"";position:absolute;z-index:-1;inset:0 0 0 37%;background-image:linear-gradient(90deg,#fffdf7 0%,rgba(255,253,247,.14) 42%,rgba(255,253,247,0) 100%),url('/heritage-braga.svg');background-size:cover,cover;background-position:center,right center;background-repeat:no-repeat;opacity:.82;pointer-events:none}
#archive #location-folders>.location-folder:nth-child(2):before{background-image:linear-gradient(90deg,#fffdf7 0%,rgba(255,253,247,.1) 45%,rgba(255,253,247,0) 100%),url('/heritage-porto.svg')}
#archive #location-folders>.location-folder:after{display:none}
#archive #location-folders>.location-folder strong{position:relative;z-index:1;color:#173d37;text-shadow:0 1px 1px rgba(255,255,255,.6)}
#archive #location-folders>.location-folder:hover{border-color:#b8ad91}
@media(max-width:700px){#archive .intro{background-image:linear-gradient(90deg,rgba(250,246,236,.96),rgba(250,246,236,.80)),url('/heritage-village.svg');background-size:cover,auto 100%;background-position:center,right center}#archive #location-folders>.location-folder{min-height:125px}#archive #location-folders>.location-folder:before{inset:0 0 0 43%;opacity:.55}}


/* Corrigir visibilidade das ilustrações e enriquecer a composição */
#archive .intro{background-image:linear-gradient(90deg,#faf6ec 0%,rgba(250,246,236,.96) 34%,rgba(250,246,236,.52) 58%,rgba(250,246,236,.03) 100%),url('/heritage-village.svg');background-position:center,right center;background-size:cover,auto 100%}
#archive .intro:before{opacity:.32;right:0;width:28%}
#archive .intro:after{opacity:.85;width:105px;background-size:76px 76px}
#archive #location-folders>.location-folder{background:#fdfbf4}
#archive #location-folders>.location-folder:nth-child(2){background:#fdfbf4}
#archive #location-folders>.location-folder:before{z-index:0;inset:0 0 0 38%;opacity:1;background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.05) 35%,rgba(253,251,244,0) 100%),url('/heritage-braga.svg');background-position:center,right center;background-size:cover,cover}
#archive #location-folders>.location-folder:nth-child(2):before{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.05) 35%,rgba(253,251,244,0) 100%),url('/heritage-porto.svg')}
#archive #location-folders>.location-folder>*{position:relative;z-index:1}
#archive #location-folders>.location-folder:after{display:none}
@media(max-width:700px){#archive .intro{background-image:linear-gradient(90deg,rgba(250,246,236,.96),rgba(250,246,236,.64)),url('/heritage-village.svg')}#archive .intro:after{opacity:.25}#archive #location-folders>.location-folder:before{opacity:.7}}

/* Acabamentos: leitura das estatísticas, papel texturado e paisagem mais orgânica */
body{background-color:#f7f2e8;background-image:radial-gradient(circle at 14% 22%,rgba(167,136,90,.075),transparent 32%),radial-gradient(circle at 84% 65%,rgba(99,127,110,.065),transparent 38%),repeating-linear-gradient(0deg,rgba(96,75,48,.022) 0,rgba(96,75,48,.022) 1px,transparent 1px,transparent 6px),repeating-linear-gradient(90deg,rgba(96,75,48,.012) 0,rgba(96,75,48,.012) 1px,transparent 1px,transparent 9px)}
#archive .intro aside{position:relative;z-index:2;background:rgba(255,252,245,.96);border:1px solid #d9cbb3;border-left:3px solid #b58d52;box-shadow:0 6px 22px rgba(56,64,51,.10);backdrop-filter:blur(3px)}
#archive .intro aside .small{color:#586a63}
#archive .intro{background-image:linear-gradient(90deg,#faf6ec 0%,rgba(250,246,236,.96) 34%,rgba(250,246,236,.46) 58%,rgba(250,246,236,.08) 100%),url('/heritage-village.svg')}
#archive .locations,#archive .recent-history{box-shadow:0 8px 22px rgba(83,71,49,.055)}
@media(max-width:700px){#archive .intro aside{background:rgba(255,252,245,.97)}}

/* Alinhar as secções de exploração e a tabela com a faixa superior */
@media(min-width:1050px){
#archive>.home-columns,#archive>.explore{margin-left:calc(-1 * clamp(20px,3.5vw,64px));margin-right:calc(-1 * clamp(20px,3.5vw,64px))}
}
@media(min-width:701px) and (max-width:1049px){
#archive>.home-columns,#archive>.explore{margin-left:calc(-1 * clamp(20px,3.5vw,64px));margin-right:calc(-1 * clamp(20px,3.5vw,64px))}
}

/* Ilustrações por distrito real, nunca pela posição do cartão */
#archive #location-folders>.location-folder:before,
#archive #location-folders>.location-folder:nth-child(2):before{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.16) 100%),url('/heritage-ornament.svg');background-position:center,right center;background-size:cover,auto 100%;background-repeat:no-repeat;opacity:.45}
#archive #location-folders>.location-folder[data-district="Braga"]:before,
#archive #location-folders>.location-folder[data-district="Braga"]:nth-child(2):before{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.05) 35%,rgba(253,251,244,0) 100%),url('/heritage-braga.svg');background-position:center,right center;background-size:cover,cover;opacity:1}
#archive #location-folders>.location-folder[data-district="Porto"]:before,
#archive #location-folders>.location-folder[data-district="Porto"]:nth-child(2):before{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.05) 35%,rgba(253,251,244,0) 100%),url('/heritage-porto.svg');background-position:center,right center;background-size:cover,cover;opacity:1}
@media(max-width:700px){#archive #location-folders>.location-folder[data-district="Braga"]:before,#archive #location-folders>.location-folder[data-district="Porto"]:before{opacity:.7}}

/* Ilustração geográfica de Viana do Castelo */
#archive #location-folders>.location-folder[data-district="Viana do Castelo"]:before,#archive #location-folders>.location-folder[data-district="Viana do Castelo"]:nth-child(2):before{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.05) 35%,rgba(253,251,244,0) 100%),url('/heritage-viana.svg');background-position:center,right center;background-size:cover,cover;opacity:1}

/* Viana: SVG incorporado para evitar falhas de carregamento de ficheiros estáticos */
#archive #location-folders>.location-folder[data-district="Viana do Castelo"]:before,#archive #location-folders>.location-folder[data-district="Viana do Castelo"]:nth-child(2):before{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.05) 35%,rgba(253,251,244,0) 100%),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20640%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22sky%22%20x2%3D%221%22%20y2%3D%220%22%3E%3Cstop%20stop-color%3D%22%23f8f8ef%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d7e5df%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22water%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23a4c1c6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%237fa9b0%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22300%22%20fill%3D%22url%28%23sky%29%22%2F%3E%3Cpath%20d%3D%22M0%20220Q130%20132%20255%20190Q345%2090%20490%20155Q580%20120%20640%20150V300H0Z%22%20fill%3D%22%23b7cbbf%22%2F%3E%3Cpath%20d%3D%22M160%20234Q300%20125%20465%20193Q550%20156%20640%20183V300H160Z%22%20fill%3D%22%23819f91%22%2F%3E%3Cg%20fill%3D%22%23668d7e%22%3E%3Ccircle%20cx%3D%22410%22%20cy%3D%22190%22%20r%3D%2242%22%2F%3E%3Ccircle%20cx%3D%22466%22%20cy%3D%22179%22%20r%3D%2244%22%2F%3E%3Ccircle%20cx%3D%22530%22%20cy%3D%22189%22%20r%3D%2243%22%2F%3E%3Ccircle%20cx%3D%22588%22%20cy%3D%22191%22%20r%3D%2236%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28405%2070%29%22%20fill%3D%22%23f5f0dd%22%20stroke%3D%22%23738d85%22%20stroke-width%3D%222%22%3E%3Crect%20x%3D%2248%22%20y%3D%2251%22%20width%3D%22112%22%20height%3D%2299%22%2F%3E%3Crect%20x%3D%2234%22%20y%3D%2230%22%20width%3D%2230%22%20height%3D%22120%22%2F%3E%3Crect%20x%3D%22144%22%20y%3D%2230%22%20width%3D%2230%22%20height%3D%22120%22%2F%3E%3Cpath%20d%3D%22M27%2030L49%208L71%2030ZM137%2030L159%208L181%2030ZM80%2051L104%2015L128%2051Z%22%2F%3E%3Cpath%20d%3D%22M86%20150V111Q104%2087%20122%20111V150Z%22%20fill%3D%22%2388a9a2%22%2F%3E%3Cpath%20d%3D%22M43%2057h12v30H43Zm110%200h12v30h-12Z%22%20fill%3D%22%239bb7b2%22%2F%3E%3Ccircle%20cx%3D%22104%22%20cy%3D%2273%22%20r%3D%2210%22%20fill%3D%22%239bb7b2%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M0%20235Q180%20229%20330%20242T640%20232V300H0Z%22%20fill%3D%22url%28%23water%29%22%2F%3E%3Cg%20stroke%3D%22%23e2eeea%22%20stroke-width%3D%223%22%20opacity%3D%22.55%22%3E%3Cpath%20d%3D%22M90%20260h140m30%2015h165m40-22h115m-410%2035h200m110%200h100%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23647f80%22%20stroke-width%3D%228%22%3E%3Cpath%20d%3D%22M0%20214Q85%20202%20165%20216T340%20215%22%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%22%23647f80%22%20stroke-width%3D%225%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M30%20214Q75%20249%20120%20214M120%20214Q165%20249%20210%20214M210%20214Q255%20249%20300%20214%22%2F%3E%3Cpath%20d%3D%22M45%20207V183m80%2027v-30m90%2030v-29m85%2029v-28%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23e9e2cc%22%20stroke%3D%22%239da99a%22%20stroke-width%3D%221.5%22%3E%3Cpath%20d%3D%22M315%20210v-32l20-16%2022%2016v32Zm43%200v-42l21-19%2022%2019v42Zm46%200v-31l18-13%2019%2013v31Z%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23c78f73%22%3E%3Cpath%20d%3D%22M310%20179l25-21%2026%2021Zm44-10%2025-24%2026%2024Zm47%2011%2021-17%2022%2017Z%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M520%20258q34%2021%2078%200Z%22%20fill%3D%22%232b5960%22%2F%3E%3Cpath%20d%3D%22M562%20258v-70%22%20stroke%3D%22%233b5b5c%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22M558%20197l-27%2056h27Z%22%20fill%3D%22%23f2ead8%22%2F%3E%3Cpath%20d%3D%22M565%20207l23%2045h-23Z%22%20fill%3D%22%23e2e6d8%22%2F%3E%3C%2Fsvg%3E")}


/* Página de entrada editorial — Raízes de Portugal */
#access-panel.access-panel{max-width:none;margin:0;min-height:calc(100vh - 90px);padding:0;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(390px,.88fr);background:#faf8f2}
#access-panel[hidden]{display:none!important}
.welcome-story{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:650px;padding:clamp(45px,7vw,110px);color:#f7f1df;background:radial-gradient(ellipse at 12% 16%,#3a6552 0%,transparent 43%),linear-gradient(145deg,#173e34,#102b27 82%)}
.welcome-story:before{content:"";position:absolute;inset:25px;border:1px solid #d7c69b35;pointer-events:none}
.welcome-story:after{content:"";position:absolute;width:520px;height:520px;right:-250px;bottom:-290px;border:1px solid #d7c69b36;border-radius:50%;box-shadow:0 0 0 45px #d7c69b08,0 0 0 90px #d7c69b07;pointer-events:none}
.welcome-story-inner{position:relative;z-index:1;max-width:660px}
.welcome-story .eyebrow{color:#dfd0a9;letter-spacing:3px}
.welcome-ornament{font:24px Georgia;color:#d5bb83;margin:35px 0 12px;letter-spacing:8px}
.welcome-story h1{font:normal clamp(3.3rem,5.4vw,6rem)/1.07 Georgia,serif;letter-spacing:-2px;margin:0 0 32px;color:#fffaf0}
.welcome-lead{font:clamp(17px,1.55vw,21px)/1.75 Georgia,serif;color:#e3e8db;max-width:520px}
.welcome-line{height:1px;width:76px;background:#cbb582;margin:42px 0 24px}
.welcome-footnote{font-size:12px;letter-spacing:.5px;color:#d1d9cc}.welcome-footnote span{margin:0 7px;color:#d4ba85}
.welcome-login{display:flex;align-items:center;justify-content:center;padding:65px clamp(28px,5.5vw,100px);background:radial-gradient(ellipse at 90% 5%,#e9e8dc,transparent 50%),#faf8f2}
.welcome-login-inner{width:100%;max-width:430px}
.welcome-login .eyebrow{letter-spacing:2.4px;color:#537365}
.welcome-login h2{font:normal clamp(34px,3.3vw,49px)/1.16 Georgia,serif;letter-spacing:-.7px;margin:18px 0 16px;color:#173e34}
.welcome-login-intro{color:#68776e;margin-bottom:38px}
.welcome-login #signin{border-top:1px solid #d6ddd1;padding-top:25px}
.welcome-login #signin h3{font-size:17px;margin:0 0 8px;color:#1d4035}
.welcome-login #signin p,.welcome-login #subscribe p{color:#68776e;font-size:13px;line-height:1.7}
.welcome-login .access-panel form,.welcome-login form{display:grid;gap:15px;justify-items:stretch;margin:22px 0}
.welcome-login label{display:grid;gap:9px;font-size:13px;font-weight:600;color:#294d40}
.welcome-login input{max-width:none;width:100%;padding:15px 16px;border:1px solid #c8d2c5;border-radius:8px;background:#fff;font:15px system-ui,sans-serif}
.welcome-login .primary{width:100%;padding:15px 20px;border-radius:8px;font-weight:650;background:#245640;border-color:#245640}
.welcome-login .primary:hover{background:#173e34}
.welcome-login #access-status{font-size:13px;line-height:1.6}
.welcome-pilot{border-top:1px solid #d6ddd1;padding-top:22px;margin-top:32px;font-size:12px;color:#849084}
.welcome-login .plans{display:grid;grid-template-columns:1fr 1fr}
.welcome-login .plans button{padding:18px}
@media(max-width:850px){#access-panel.access-panel{grid-template-columns:1fr}.welcome-story{min-height:360px;padding:52px 8%}.welcome-story h1{font-size:clamp(42px,8vw,64px)}.welcome-story:before{inset:14px}.welcome-ornament{margin:18px 0 8px}.welcome-line{margin:22px 0 15px}.welcome-login{padding:48px 8% 60px}.welcome-login-inner{max-width:540px}}
@media(max-width:460px){.welcome-story{min-height:350px;padding:42px 8%}.welcome-story h1{letter-spacing:-1px}.welcome-lead{font-size:16px}.welcome-login{padding:36px 7% 50px}.welcome-login .plans{grid-template-columns:1fr}}


/* Mobile archive layout: keep desktop table unchanged. */
@media (max-width:700px) {
  html,body{max-width:100%;overflow-x:clip}
  #archive,#archive .explore,#archive .locations,#archive .home-columns{min-width:0;max-width:100%}
  #archive .explore{padding:16px}
  #archive .search,#archive .search input{min-width:0;max-width:100%}
  #archive .filters{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:stretch}
  #archive .filters>*,#archive .filters label,#archive .filters select{min-width:0;max-width:100%;width:100%}
  #archive .filters .check{width:auto}
  #archive .filters button{margin:0;justify-self:start;width:auto}
  #archive .results-bar{flex-wrap:wrap;gap:12px}
  #archive .results-bar>*{min-width:0}
  #archive .edit-actions{flex-wrap:wrap}
  #archive .edit-actions button{max-width:100%;white-space:normal}
  #archive table{display:block;width:100%;min-width:0}
  #archive table thead{display:none}
  #archive table tbody{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
  #archive table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px;padding:15px;border:1px solid #deded3;border-radius:10px;background:#fffdf9}
  #archive table tbody td{display:block;min-width:0!important;width:auto!important;padding:9px 0;border:0;overflow-wrap:anywhere}
  #archive table tbody td:first-child{grid-column:1/-1;padding-top:0;border-bottom:1px solid #e5e8df}
  #archive table tbody td:nth-child(2):before{content:"Nascimento"}
  #archive table tbody td:nth-child(3):before{content:"Falecimento"}
  #archive table tbody td:nth-child(4):before{content:"Pais"}
  #archive table tbody td:nth-child(5):before{content:"Cônjuge"}
  #archive table tbody td:nth-child(4),#archive table tbody td:nth-child(5){grid-column:1/-1;border-top:1px solid #edf0eb}
  #archive table tbody td:nth-child(n+2):nth-child(-n+5):before{display:block;margin-bottom:5px;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#647576}
  #archive table tbody td:last-child{display:none}
  #archive table tbody td button{max-width:100%;white-space:normal;text-align:left;overflow-wrap:anywhere}
  #archive .pagination{flex-wrap:wrap;gap:12px}
}

/* Lisboa: ilustração própria, sem alterar os outros distritos. */
#archive #location-folders>.location-folder[data-district="Lisboa"]:before{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.06) 35%,rgba(253,251,244,0) 100%),url('/heritage-lisboa.svg');background-position:center,right center;background-size:cover,cover;background-repeat:no-repeat;opacity:1}
@media(max-width:700px){#archive #location-folders>.location-folder[data-district="Lisboa"]:before{opacity:.8}}

/* Lisboa: SVG incorporado para funcionar mesmo sem o ficheiro estático em cache. */
#archive #location-folders>.location-folder[data-district="Lisboa"]:before{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.06) 35%,rgba(253,251,244,0) 100%),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20680%20320%22%3E%0A%3Cdefs%3E%3ClinearGradient%20id%3D%22sky%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23edf2ee%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d9e8e6%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22water%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23b9d4d5%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%238eb6bd%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%0A%3Crect%20width%3D%22680%22%20height%3D%22320%22%20fill%3D%22url(%23sky)%22%2F%3E%0A%3Cpath%20d%3D%22M0%20195Q85%20153%20174%20185T360%20175Q515%20140%20680%20185V320H0Z%22%20fill%3D%22%23a7beb2%22%2F%3E%0A%3Cpath%20d%3D%22M0%20219Q150%20203%20290%20222T680%20208V320H0Z%22%20fill%3D%22url(%23water)%22%2F%3E%0A%3Cg%20stroke%3D%22%23e1efeb%22%20stroke-width%3D%222%22%20opacity%3D%22.65%22%3E%3Cpath%20d%3D%22M15%20243h155m-85%2017h220m45-16h160m-230%2037h210m40-20h130%22%2F%3E%3C%2Fg%3E%0A%3C!--%20Ponte%2025%20de%20Abril%20--%3E%0A%3Cg%20fill%3D%22none%22%20stroke%3D%22%23bd7964%22%20stroke-width%3D%224%22%3E%3Cpath%20d%3D%22M12%20188H680%22%2F%3E%3Cpath%20d%3D%22M75%20188V81h15v107M385%20188V49h17v139%22%2F%3E%3Cpath%20d%3D%22M0%20106Q90%20173%20235%20169Q336%20165%20394%2065Q520%20176%20680%20118%22%2F%3E%3C%2Fg%3E%0A%3Cg%20stroke%3D%22%23c98770%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M0%20106v82M25%20125v63M50%20144v44M110%20161v27M140%20170v18M170%20174v14M200%20176v12M230%20177v11M260%20175v13M290%20167v21M320%20145v43M350%20116v72M430%20104v84M460%20128v60M490%20143v45M520%20155v33M550%20159v29M580%20159v29M610%20153v35M640%20140v48%22%2F%3E%3C%2Fg%3E%0A%3Cg%20stroke%3D%22%23bd7964%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M75%2095l15%2018-15%2017%2015%2017-15%2017M385%2065l17%2020-17%2020%2017%2020-17%2020%22%2F%3E%3C%2Fg%3E%0A%3C!--%20Colinas%2C%20casas%20de%20Lisboa%20--%3E%0A%3Cpath%20d%3D%22M400%20230Q485%20164%20680%20173V320H400Z%22%20fill%3D%22%237fa59a%22%2F%3E%0A%3Cg%20fill%3D%22%23e8e4d6%22%20stroke%3D%22%23bdc7b8%22%20stroke-width%3D%221.5%22%3E%0A%3Cpath%20d%3D%22M410%20234h55v61h-55zM462%20216h53v79h-53zM510%20237h60v58h-60zM567%20208h62v87h-62zM621%20230h59v65h-59z%22%2F%3E%0A%3C%2Fg%3E%0A%3Cg%20fill%3D%22%23c88b74%22%3E%3Cpath%20d%3D%22M405%20234l32-21%2032%2021zM458%20216l31-24%2031%2024zM506%20237l34-23%2035%2023zM562%20208l36-25%2036%2025zM616%20230l33-25%2036%2025z%22%2F%3E%3C%2Fg%3E%0A%3Cg%20fill%3D%22%238caeaa%22%3E%3Cpath%20d%3D%22M423%20249h10v17h-10zM442%20249h10v17h-10zM476%20232h11v20h-11zM494%20232h11v20h-11zM524%20253h12v19h-12zM546%20253h12v19h-12zM580%20225h12v22h-12zM605%20225h12v22h-12zM635%20245h12v20h-12z%22%2F%3E%3C%2Fg%3E%0A%3C!--%20C%C3%BApula%20monumental%20inspirada%20no%20Pante%C3%A3o%20--%3E%0A%3Cg%20fill%3D%22%23f3eee0%22%20stroke%3D%22%23aebdb2%22%20stroke-width%3D%222%22%3E%3Crect%20x%3D%22572%22%20y%3D%22110%22%20width%3D%2291%22%20height%3D%22113%22%2F%3E%3Cpath%20d%3D%22M575%20112Q576%2059%20617%2057Q659%2059%20660%20112Z%22%2F%3E%3Crect%20x%3D%22606%22%20y%3D%2239%22%20width%3D%2222%22%20height%3D%2221%22%2F%3E%3Cpath%20d%3D%22M603%2039h28l-14-18z%22%2F%3E%3C%2Fg%3E%0A%3Cg%20fill%3D%22%239bb6b0%22%3E%3Cpath%20d%3D%22M588%20140h12v29h-12zM610%20140h12v29h-12zM634%20140h12v29h-12zM607%20184q11-17%2022%200v39h-22z%22%2F%3E%3C%2Fg%3E%0A%3Cg%20fill%3D%22%23537f71%22%20opacity%3D%22.85%22%3E%3Ccircle%20cx%3D%22547%22%20cy%3D%22210%22%20r%3D%2224%22%2F%3E%3Ccircle%20cx%3D%22671%22%20cy%3D%22199%22%20r%3D%2231%22%2F%3E%3Ccircle%20cx%3D%22469%22%20cy%3D%22284%22%20r%3D%2223%22%2F%3E%3Ccircle%20cx%3D%22528%22%20cy%3D%22304%22%20r%3D%2229%22%2F%3E%3C%2Fg%3E%0A%3C%2Fsvg%3E")!important;background-position:center,right center!important;background-size:cover,cover!important;background-repeat:no-repeat!important;opacity:1!important}

/* Editor de fichas organizado por secções */
#edit-form .person-edit-section{border:1px solid #d9e2db;border-radius:12px;padding:20px;margin:18px 0;background:#fff}
#edit-form .person-edit-section h3{margin:0 0 15px;font-size:16px;color:#245647}
#edit-form .person-edit-section .edit-grid{margin:0;gap:14px 18px}
#edit-form .sex-selector{margin:16px 0 0;gap:7px}
#edit-form .sex-choice-content{padding:6px 10px;font-size:12px;gap:5px;border-radius:7px}
#edit-form .sex-choice-symbol{font-size:16px}
#edit-form .sex-choice input:checked+.sex-choice-content:after{content:'✓';font-weight:800;margin-left:3px}
#edit-form .sex-choice.unknown .sex-choice-content{background:#f4f5f5;color:#687276;border-color:#d4d9da}
#edit-form .sex-choice.unknown input:checked+.sex-choice-content{background:#e5e8e9;border-color:#65737b;box-shadow:inset 0 0 0 1px #65737b;color:#34444b}
#edit-form .alias-editor{margin-top:15px}
#edit-form .alias-row{display:flex;align-items:center;gap:9px;margin:8px 0}
#edit-form .alias-row input{flex:1;min-width:0;padding:10px;border:1px solid #bfcfc3;border-radius:5px}
#edit-form .edit-actions{position:sticky;bottom:0;background:var(--paper,#f6f5f0);padding:12px 8px;z-index:5;border-top:1px solid var(--line)}
@media(max-width:600px){#edit-form .person-edit-section{padding:14px}#edit-form .edit-grid{grid-template-columns:1fr}}

/* Ilustração de Setúbal, independente da posição alfabética */
#archive #location-folders>.location-folder[data-district="Setúbal"]:before{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.06) 38%,rgba(253,251,244,0) 100%),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20420%20220%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%0A%3Cdefs%3E%3ClinearGradient%20id%3D%22sky%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23f9f7ed%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d8e9e5%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22sea%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%2392c6c9%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23568f9a%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%0A%3Crect%20width%3D%22420%22%20height%3D%22220%22%20fill%3D%22url(%23sky)%22%2F%3E%0A%3Cpath%20d%3D%22M0%20140Q65%2098%20115%20114T230%20100T420%2064V180H0Z%22%20fill%3D%22%23a8c6b6%22%2F%3E%0A%3Cpath%20d%3D%22M0%20158Q65%20118%20140%20130T280%20112T420%2083V183H0Z%22%20fill%3D%22%236b9c8c%22%2F%3E%0A%3Cpath%20d%3D%22M0%20174Q90%20139%20172%20153T310%20127T420%20110V186H0Z%22%20fill%3D%22%23457c73%22%2F%3E%0A%3Cpath%20d%3D%22M65%20143l9-25%2011-8%2018%2012%2010%2021z%22%20fill%3D%22%23dfcfaf%22%2F%3E%3Cpath%20d%3D%22M72%20117l7-19%2011%202%204%2020%22%20fill%3D%22%23e9dfc9%22%2F%3E%3Cpath%20d%3D%22M76%20112h18%22%20stroke%3D%22%23b4a58b%22%20stroke-width%3D%222%22%2F%3E%0A%3Cpath%20d%3D%22M0%20166H420V220H0Z%22%20fill%3D%22url(%23sea)%22%2F%3E%0A%3Cpath%20d%3D%22M220%20166v-55l-32%2053z%22%20fill%3D%22%23fffaf0%22%2F%3E%3Cpath%20d%3D%22M225%20115v51h28z%22%20fill%3D%22%23d8ece8%22%2F%3E%3Cpath%20d%3D%22M182%20170h77l-12%209h-55z%22%20fill%3D%22%23265d65%22%2F%3E%3Cpath%20d%3D%22M220%20109v63%22%20stroke%3D%22%234a746f%22%20stroke-width%3D%222%22%2F%3E%0A%3Cpath%20d%3D%22M276%20149h144v21H276z%22%20fill%3D%22%23e9dfcb%22%2F%3E%0A%3Cg%20fill%3D%22%23f6edda%22%20stroke%3D%22%23c7b9a2%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M280%20121h33v28h-33z%22%2F%3E%3Cpath%20d%3D%22M314%20112h38v37h-38z%22%2F%3E%3Cpath%20d%3D%22M355%20102h40v47h-40z%22%2F%3E%3Cpath%20d%3D%22M396%20118h24v31h-24z%22%2F%3E%3C%2Fg%3E%0A%3Cg%20fill%3D%22%23c88462%22%3E%3Cpath%20d%3D%22M276%20121l21-15%2020%2015z%22%2F%3E%3Cpath%20d%3D%22M310%20112l23-16%2023%2016z%22%2F%3E%3Cpath%20d%3D%22M351%20102l24-18%2024%2018z%22%2F%3E%3C%2Fg%3E%0A%3Cpath%20d%3D%22M370%20100V73q0-20%2013-23%2013%203%2013%2023v27z%22%20fill%3D%22%23fff5df%22%20stroke%3D%22%23c9bca5%22%2F%3E%3Cpath%20d%3D%22M376%2050q7-19%2014%200%22%20fill%3D%22%23d8c3a0%22%2F%3E%3Cpath%20d%3D%22M383%2029v17m-5-11h10%22%20stroke%3D%22%23c4ad87%22%20stroke-width%3D%222%22%2F%3E%0A%3Cg%20fill%3D%22%234b8275%22%3E%3Ccircle%20cx%3D%22290%22%20cy%3D%22144%22%20r%3D%2213%22%2F%3E%3Ccircle%20cx%3D%22323%22%20cy%3D%22147%22%20r%3D%2210%22%2F%3E%3Ccircle%20cx%3D%22404%22%20cy%3D%22143%22%20r%3D%2213%22%2F%3E%3C%2Fg%3E%0A%3Cg%20stroke%3D%22%23d6eeeb%22%20opacity%3D%22.7%22%3E%3Cpath%20d%3D%22M12%20190h104M132%20201h88M272%20191h109M30%20212h64%22%2F%3E%3C%2Fg%3E%0A%3C%2Fsvg%3E");background-position:center,right center;background-size:cover,cover;opacity:1}

#edit-form .notes-field{display:block;margin-top:18px}#edit-form .notes-field textarea{display:block;width:100%;min-height:170px;margin-top:7px;padding:12px;border:1px solid #bfcfc3;border-radius:6px;font:inherit;color:var(--text);background:#fff;resize:vertical;box-sizing:border-box}

/* Inline spouse link in the biographical marriage timeline */
.marriage-spouse-link button{display:inline!important;width:auto!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:#17634f!important;font:inherit!important;font-weight:600!important;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.marriage-spouse-link button:hover{color:#0d4937!important;text-decoration-thickness:2px}

/* Ilustrações dos cartões de países: preserva os cartões dos distritos existentes. */
#archive #location-folders>.location-folder[data-country="Portugal"][data-location="Portugal"]:before{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.25) 46%,rgba(253,251,244,0) 100%),url('/heritage-lisboa.svg');background-position:center,right center;background-size:cover,cover;opacity:1}
#archive #location-folders>.location-folder[data-country="Brasil"][data-location="Brasil"]:before{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.25) 46%,rgba(253,251,244,0) 100%),url('/heritage-brasil.svg');background-position:center,right center;background-size:cover,cover;opacity:1}

/* Países: imagem aplicada diretamente ao cartão, sem depender do pseudo-elemento. */
#archive #location-folders>.location-folder[data-country="Portugal"][data-location="Portugal"]{background-color:#fdfbf4!important;background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.92) 33%,rgba(253,251,244,.12) 76%),url('/heritage-lisboa.svg')!important;background-size:cover,auto 100%!important;background-position:center,right center!important;background-repeat:no-repeat!important}
#archive #location-folders>.location-folder[data-country="Brasil"][data-location="Brasil"]{background-color:#fdfbf4!important;background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.92) 33%,rgba(253,251,244,.12) 76%),url('/heritage-brasil.svg')!important;background-size:cover,auto 100%!important;background-position:center,right center!important;background-repeat:no-repeat!important}
#archive #location-folders>.location-folder[data-country][data-location="Portugal"]:before,#archive #location-folders>.location-folder[data-country][data-location="Brasil"]:before{display:none!important}

/* Países: ilustrações SVG embebidas na página, sem ficheiros externos. */
#archive #location-folders>.location-folder .country-art{display:block!important;position:absolute!important;right:0!important;bottom:0!important;width:68%!important;height:100%!important;z-index:0!important;opacity:1!important;pointer-events:none!important}
#archive #location-folders>.location-folder[data-country] small,#archive #location-folders>.location-folder[data-country] strong,#archive #location-folders>.location-folder[data-country] span{position:relative;z-index:2}

/* Cartões de países compactos, com ilustração discreta à direita. */
#archive #location-folders>.location-folder[data-location="Portugal"][data-country="Portugal"],#archive #location-folders>.location-folder[data-location="Brasil"][data-country="Brasil"]{height:145px!important;min-height:145px!important;max-height:145px!important;box-sizing:border-box!important;overflow:hidden!important;justify-content:center!important;padding:18px 20px!important}
#archive #location-folders>.location-folder[data-location="Portugal"] .country-art,#archive #location-folders>.location-folder[data-location="Brasil"] .country-art{width:43%!important;height:92%!important;right:0!important;bottom:0!important;object-fit:contain!important;opacity:.78!important}

/* Aguarelas dos países, em ficheiros locais, mantendo os cartões compactos. */
#archive #location-folders>.location-folder[data-country="Portugal"][data-location="Portugal"]{background:#fdfbf4 url('/country-portugal-watercolor.svg') right center / auto 100% no-repeat!important}
#archive #location-folders>.location-folder[data-country="Brasil"][data-location="Brasil"]{background:#fdfbf4 url('/country-brasil-watercolor.svg') right center / auto 100% no-repeat!important}
#archive #location-folders>.location-folder[data-country][data-location]>.country-art{display:none!important}
#archive #location-folders>.location-folder[data-country][data-location="Portugal"]::before,#archive #location-folders>.location-folder[data-country][data-location="Brasil"]::before{display:none!important}

/* Corrigir imagens dos países: WebP direto, sem SVG externo com imagem aninhada. */
#archive #location-folders>.location-folder[data-country="Portugal"][data-location="Portugal"]{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.98) 20%,rgba(253,251,244,0) 62%),url("data:image/webp;base64,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")!important;background-position:center,right center!important;background-size:cover,auto 100%!important;background-repeat:no-repeat!important}
#archive #location-folders>.location-folder[data-country="Brasil"][data-location="Brasil"]{background-image:linear-gradient(90deg,#fdfbf4 0%,rgba(253,251,244,.98) 20%,rgba(253,251,244,0) 62%),url("data:image/webp;base64,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")!important;background-position:center,right center!important;background-size:cover,auto 100%!important;background-repeat:no-repeat!important}

/* Ilustrações próprias dos estados brasileiros, apenas no nível Estado. */
#archive #location-folders>.location-folder[data-country="Brasil"][data-level="0"][data-district="Rio de Janeiro"][data-location="Rio de Janeiro"],
#archive #location-folders>.location-folder[data-country="Brasil"][data-level="0"][data-district="São Paulo"][data-location="São Paulo"]{background-color:#fdfbf4!important;background-position:right center!important;background-size:auto 100%!important;background-repeat:no-repeat!important}
#archive #location-folders>.location-folder[data-country="Brasil"][data-level="0"][data-district="Rio de Janeiro"][data-location="Rio de Janeiro"]{background-image:linear-gradient(90deg,#fdfbf4 0%,#fdfbf4 29%,rgba(253,251,244,.1) 75%),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20620%20260%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22sky%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23d6e9e9%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f9f7ee%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22sea%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%2390bcc0%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c9ded8%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22hill%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%237d9e88%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%233f7168%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url(%23sky)%22%20d%3D%22M0%200h620v260H0z%22%2F%3E%3Cg%20fill%3D%22%23fff%22%20opacity%3D%22.65%22%3E%3Cellipse%20cx%3D%22185%22%20cy%3D%2245%22%20rx%3D%2295%22%20ry%3D%2217%22%2F%3E%3Cellipse%20cx%3D%22440%22%20cy%3D%2229%22%20rx%3D%2285%22%20ry%3D%2215%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23b4c8b5%22%20d%3D%22M0%20174Q60%20118%20111%20150T220%20120Q265%20105%20320%20155T434%20120Q510%2089%20620%20145V260H0Z%22%2F%3E%3Cpath%20fill%3D%22%23779e91%22%20d%3D%22M0%20193Q64%20149%20130%20167Q192%2091%20238%20145Q282%20183%20333%20150Q396%2090%20455%20164Q526%20124%20620%20170V260H0Z%22%2F%3E%3Cpath%20fill%3D%22%23a7c7c3%22%20d%3D%22M0%20201Q135%20186%20242%20202T456%20188Q540%20184%20620%20194V260H0Z%22%2F%3E%3Cpath%20fill%3D%22url(%23sea)%22%20d%3D%22M0%20218Q145%20192%20280%20219T620%20208V260H0Z%22%2F%3E%3Cpath%20fill%3D%22url(%23hill)%22%20d%3D%22M292%20260Q328%20186%20359%20166Q391%20143%20414%20183Q438%20209%20459%20260Z%22%2F%3E%3Cpath%20fill%3D%22%23618b74%22%20d%3D%22M440%20260Q489%20182%20530%20181Q576%20174%20620%20217V260Z%22%2F%3E%3Cg%20fill%3D%22%23f4f0dc%22%20opacity%3D%22.92%22%3E%3Cpath%20d%3D%22M25%20210h13v19H25zm18-12h15v32H43zm21%207h12v26H64zm17-13h18v38H81zm25%2011h14v28h-14zm25-4h18v34h-18zm23%2010h13v26h-13zm19-15h16v37h-16z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(386%20113)%22%20fill%3D%22%23eeeadd%22%20stroke%3D%22%238eaaa1%22%20stroke-width%3D%221.5%22%3E%3Cpath%20d%3D%22M-13%2023Q0%2015%2013%2023L19%2073H-19Z%22%2F%3E%3Cpath%20d%3D%22M-6%2022L-9%2010Q-18%205-15-5Q-12-16%200-16Q12-16%2015-5Q18%205%209%2010L6%2022Z%22%2F%3E%3Cpath%20d%3D%22M-12%2027L-58%2035L-62%2026L-10%2013L10%2013L62%2026L58%2035L12%2027Z%22%2F%3E%3Cpath%20d%3D%22M-20%2073H20L29%2083H-29Z%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M0%20249Q130%20224%20280%20247T620%20236%22%20fill%3D%22none%22%20stroke%3D%22%23f7f3e7%22%20stroke-width%3D%223%22%20opacity%3D%22.65%22%2F%3E%3Cg%20fill%3D%22%23547c68%22%20opacity%3D%22.65%22%3E%3Ccircle%20cx%3D%22460%22%20cy%3D%22230%22%20r%3D%2224%22%2F%3E%3Ccircle%20cx%3D%22491%22%20cy%3D%22218%22%20r%3D%2218%22%2F%3E%3Ccircle%20cx%3D%22532%22%20cy%3D%22233%22%20r%3D%2223%22%2F%3E%3Ccircle%20cx%3D%22582%22%20cy%3D%22239%22%20r%3D%2228%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")!important}
#archive #location-folders>.location-folder[data-country="Brasil"][data-level="0"][data-district="São Paulo"][data-location="São Paulo"]{background-image:linear-gradient(90deg,#fdfbf4 0%,#fdfbf4 29%,rgba(253,251,244,.1) 75%),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20620%20260%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22sky%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23d8e8e9%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23fcf8ed%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22water%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%2391b8bd%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c8d9d1%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url(%23sky)%22%20d%3D%22M0%200h620v260H0z%22%2F%3E%3Cg%20fill%3D%22%23fff%22%20opacity%3D%22.65%22%3E%3Cellipse%20cx%3D%22150%22%20cy%3D%2243%22%20rx%3D%22100%22%20ry%3D%2217%22%2F%3E%3Cellipse%20cx%3D%22430%22%20cy%3D%2258%22%20rx%3D%22118%22%20ry%3D%2219%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23bfd1c8%22%20d%3D%22M0%20185Q190%20164%20333%20180T620%20166V260H0Z%22%2F%3E%3Cg%20fill%3D%22%23b1c1bb%22%20stroke%3D%22%23eef0e8%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M24%20180V113h31v67zm42%200V94h35v86zm45%200V124h25v56zm34%200V72h43v108zm53%200V107h29v73zm39%200V82h39v98zm48%200V119h26v61zm41%200V92h34v88zm50%200V108h29v72zm39%200V76h42v104zm52%200V116h30v64zm39%200V90h39v90z%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23e7ede7%22%20opacity%3D%22.75%22%3E%3Cpath%20d%3D%22M78%20110h5v8h-5zm0%2017h5v8h-5zm75-43h6v9h-6zm16%200h6v9h-6zm79%2011h6v8h-6zm15%200h6v8h-6zm154%200h6v8h-6zm15%200h6v8h-6zm111%2010h6v8h-6z%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23749c87%22%20d%3D%22M0%20192Q120%20171%20222%20193Q390%20172%20620%20188V215H0Z%22%2F%3E%3Cpath%20fill%3D%22url(%23water)%22%20d%3D%22M0%20211Q165%20203%20330%20215T620%20208V260H0Z%22%2F%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23d6d4bd%22%20stroke-width%3D%224%22%3E%3Cpath%20d%3D%22M300%20190L390%2040L475%20190%22%2F%3E%3Cpath%20d%3D%22M390%2040V198%22%2F%3E%3Cpath%20d%3D%22M310%20186L390%2058L463%20186M328%20187L390%2075L450%20187M348%20188L390%2095L433%20188M367%20188L390%20115L413%20188%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M260%20183H515%22%20stroke%3D%22%23e7e2d1%22%20stroke-width%3D%2211%22%2F%3E%3Cpath%20d%3D%22M260%20187H515%22%20stroke%3D%22%238faba1%22%20stroke-width%3D%224%22%2F%3E%3Cpath%20d%3D%22M0%20244Q125%20230%20260%20244T620%20237%22%20stroke%3D%22%23eef3e7%22%20stroke-width%3D%223%22%20fill%3D%22none%22%20opacity%3D%22.6%22%2F%3E%3Cg%20fill%3D%22%23739a82%22%3E%3Cellipse%20cx%3D%2245%22%20cy%3D%22193%22%20rx%3D%2242%22%20ry%3D%2213%22%2F%3E%3Cellipse%20cx%3D%22112%22%20cy%3D%22191%22%20rx%3D%2234%22%20ry%3D%2212%22%2F%3E%3Cellipse%20cx%3D%22554%22%20cy%3D%22191%22%20rx%3D%2245%22%20ry%3D%2212%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")!important}
#archive #location-folders>.location-folder[data-country="Brasil"][data-level="0"][data-district="Rio de Janeiro"]::before,
#archive #location-folders>.location-folder[data-country="Brasil"][data-level="0"][data-district="São Paulo"]::before{display:none!important}

/* Paisagens dos municípios brasileiros, sem afetar os cartões dos estados. */
#archive #location-folders>.location-folder[data-country="Brasil"][data-level="1"][data-district="Rio de Janeiro"][data-location="Rio de Janeiro"]{background-color:#fdfbf4!important;background-image:linear-gradient(90deg,#fdfbf4 0%,#fdfbf4 29%,rgba(253,251,244,.12) 76%),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20620%20260%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22s%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23d8e9ed%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f9f8ee%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22w%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%2382b4c3%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23bddbd8%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url(%23s)%22%20d%3D%22M0%200h620v260H0z%22%2F%3E%3Cg%20fill%3D%22%23fff%22%20opacity%3D%22.72%22%3E%3Cellipse%20cx%3D%22155%22%20cy%3D%2250%22%20rx%3D%2282%22%20ry%3D%2217%22%2F%3E%3Cellipse%20cx%3D%22475%22%20cy%3D%2237%22%20rx%3D%22108%22%20ry%3D%2218%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23c1d6d0%22%20d%3D%22M0%20170Q68%20125%20132%20149T255%20121Q330%2094%20387%20142T510%20122Q573%20109%20620%20141V260H0Z%22%2F%3E%3Cpath%20fill%3D%22%2388aba4%22%20d%3D%22M0%20197Q82%20154%20138%20176Q200%20115%20246%20162Q288%20192%20347%20155Q418%20107%20483%20167Q550%20132%20620%20176V260H0Z%22%2F%3E%3Cpath%20fill%3D%22url(%23w)%22%20d%3D%22M0%20210Q160%20185%20300%20214T620%20204V260H0Z%22%2F%3E%3Cpath%20fill%3D%22%23527d70%22%20d%3D%22M275%20260Q323%20173%20365%20169Q405%20167%20439%20260Z%22%2F%3E%3Cpath%20fill%3D%22%23759c7d%22%20d%3D%22M451%20260Q496%20180%20545%20184Q589%20187%20620%20217V260Z%22%2F%3E%3Cpath%20fill%3D%22%23a3baa6%22%20d%3D%22M105%20213Q151%20164%20172%20151Q191%20135%20213%20166Q236%20189%20252%20215Z%22%2F%3E%3Cg%20fill%3D%22%23f7f3e6%22%3E%3Cpath%20d%3D%22M22%20210h11v21H22zm17-9h14v30H39zm19%206h12v25H58zm17-13h14v39H75zm20%206h12v33H95zm18%208h13v25h-13zm20-11h15v36h-15zm22%207h12v28h-12z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(357%20114)%22%20fill%3D%22%23f2efe5%22%20stroke%3D%22%23849c96%22%20stroke-width%3D%221.8%22%3E%3Ccircle%20cy%3D%22-12%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M-11%202H11L18%2070H-18Z%22%2F%3E%3Cpath%20d%3D%22M-12%208L-58%2022L-62%2013L-12-3H12L62%2013L58%2022L12%208Z%22%2F%3E%3Cpath%20d%3D%22M-19%2070H19L27%2080H-27Z%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M0%20247Q150%20227%20300%20244T620%20237%22%20fill%3D%22none%22%20stroke%3D%22%23f7f5e9%22%20stroke-width%3D%223%22%20opacity%3D%22.65%22%2F%3E%3Cg%20fill%3D%22%23618d78%22%3E%3Ccircle%20cx%3D%22459%22%20cy%3D%22228%22%20r%3D%2223%22%2F%3E%3Ccircle%20cx%3D%22486%22%20cy%3D%22220%22%20r%3D%2219%22%2F%3E%3Ccircle%20cx%3D%22522%22%20cy%3D%22233%22%20r%3D%2225%22%2F%3E%3Ccircle%20cx%3D%22574%22%20cy%3D%22237%22%20r%3D%2230%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")!important;background-position:center,right center!important;background-size:cover,auto 100%!important;background-repeat:no-repeat!important}
#archive #location-folders>.location-folder[data-country="Brasil"][data-level="1"][data-district="Rio de Janeiro"][data-location="Rio de Janeiro"]::before{display:none!important}
#archive #location-folders>.location-folder[data-country="Brasil"][data-level="1"][data-district="São Paulo"][data-location="São José do Rio Preto"]{background-color:#fdfbf4!important;background-image:linear-gradient(90deg,#fdfbf4 0%,#fdfbf4 29%,rgba(253,251,244,.12) 76%),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20620%20260%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22sky%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23dbeaed%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23fbf7e9%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22lake%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%2387b8bd%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c2dcd6%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url(%23sky)%22%20d%3D%22M0%200h620v260H0z%22%2F%3E%3Cg%20fill%3D%22%23fff%22%20opacity%3D%22.7%22%3E%3Cellipse%20cx%3D%22176%22%20cy%3D%2247%22%20rx%3D%2288%22%20ry%3D%2217%22%2F%3E%3Cellipse%20cx%3D%22470%22%20cy%3D%2235%22%20rx%3D%22101%22%20ry%3D%2217%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23d4ded0%22%20d%3D%22M0%20181Q110%20150%20236%20176T440%20165Q540%20148%20620%20178V260H0Z%22%2F%3E%3Cg%20fill%3D%22%23d5d2bf%22%20stroke%3D%22%23f5f3e9%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M31%20183v-41h25v41zm31%200v-63h26v63zm32%200V99h36v84zm43%200v-48h26v48zm33%200V88h37v95zm44%200v-72h28v72zm34%200v-95h35v95zm42%200v-58h28v58zm35%200V104h29v79zm35%200V77h40v106zm47%200v-69h30v69zm37%200v-87h33v87zm39%200v-51h28v51z%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23f5f3e9%22%20opacity%3D%22.85%22%3E%3Cpath%20d%3D%22M109%20112h6v8h-6zm15%200h6v8h-6zm60-10h7v9h-7zm15%200h7v9h-7zm79%200h7v8h-7zm16%200h7v8h-7zm87-11h7v9h-7zm16%200h7v9h-7z%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%2378a28b%22%20d%3D%22M0%20188Q140%20163%20274%20188Q411%20162%20620%20184V220H0Z%22%2F%3E%3Cg%20fill%3D%22%235f9278%22%3E%3Ccircle%20cx%3D%2229%22%20cy%3D%22180%22%20r%3D%2227%22%2F%3E%3Ccircle%20cx%3D%2268%22%20cy%3D%22184%22%20r%3D%2224%22%2F%3E%3Ccircle%20cx%3D%22502%22%20cy%3D%22181%22%20r%3D%2231%22%2F%3E%3Ccircle%20cx%3D%22550%22%20cy%3D%22185%22%20r%3D%2230%22%2F%3E%3Ccircle%20cx%3D%22604%22%20cy%3D%22184%22%20r%3D%2232%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22url(%23lake)%22%20d%3D%22M0%20213Q150%20198%20310%20212T620%20205V260H0Z%22%2F%3E%3Cpath%20d%3D%22M314%20201Q373%20133%20427%20199%22%20stroke%3D%22%23e6d9b7%22%20stroke-width%3D%2211%22%20fill%3D%22none%22%2F%3E%3Cpath%20d%3D%22M296%20200H449%22%20stroke%3D%22%23e8ddc6%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M0%20241Q145%20224%20310%20244T620%20235%22%20fill%3D%22none%22%20stroke%3D%22%23f4f5e8%22%20stroke-width%3D%223%22%20opacity%3D%22.7%22%2F%3E%3Cg%20stroke%3D%22%23eef3eb%22%20fill%3D%22none%22%20stroke-width%3D%223%22%3E%3Cpath%20d%3D%22M218%20217Q230%20197%20242%20217M213%20220Q230%20202%20247%20220M209%20223Q230%20209%20251%20223%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")!important;background-position:center,right center!important;background-size:cover,auto 100%!important;background-repeat:no-repeat!important}
#archive #location-folders>.location-folder[data-country="Brasil"][data-level="1"][data-district="São Paulo"][data-location="São José do Rio Preto"]::before{display:none!important}
