:root {
  --ink: #050410;
  --paper: #f8f6ff;
  --lavender: #ad95ff;
  --subtle: #c2bed3;
  --line: #302b44;
  --display: 'Barlow Condensed', Impact, sans-serif;

}
body {
  position: relative;
  isolation: isolate;
  padding: 0;
  color: var(--paper);
  background: var(--ink);
}
main { display: flow-root; }
#costa { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; }
.coast-picture { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
#costa header { align-self: start; }
#costa header .brand { text-decoration: none; }
#costa .hero-title { position: static; margin: 0; }
#costa .logo-frame { width: min(66vw, 1000px); margin-inline: auto; }
#costa .hero-foot { align-self: end; }
#comunidad, #consejo, .office { scroll-margin-top: 1.25rem; }
:where(.role-link, .office summary, #language, #scene, #motion):focus-visible { outline: 2px solid #a5f2ff; outline-offset: 4px; }
.section-heading, .directory-intro { text-align: center; margin-inline: auto; }

.kicker, .section-heading .kicker { display: inline-flex; align-items: center; gap: .55rem; color: #ccc0f8; font: 700 .7rem/1.4 Inter,sans-serif; letter-spacing: .16em; text-transform: uppercase; }

.community h2, .government h2, .community h3, .office b, .judicial b { font-family: var(--display); font-style: italic; font-weight: 700; letter-spacing: -.015em; }

.directory-intro p { margin: 1.4rem auto 0; max-width: 56ch; color: #e1dded; font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.6; text-wrap: pretty; }

.status.section-width { border: 0; gap: .7rem 1.35rem; padding: 1.1rem .35rem; color: #d1cade; display: flex; justify-content: start; flex-wrap: wrap; }
.status.section-width::before { width: 7px; height: 7px; background: #ffba92; flex: none; }
.status.section-width strong { font-size: .68rem; letter-spacing: .07em; }
.scene-tools { display: flex; gap: .65rem; align-items: center; margin-left: auto; }
.scene-tools label { font-size: .68rem; color: #bcb4cf; }
.scene-tools :is(select,button) { min-height: 2.5rem; padding: .45rem .8rem; border: 1px solid #49415b; border-radius: 1.5rem; color: var(--paper); background: #131020; font: 700 .76rem Inter,sans-serif; }
.scene-tools select { color-scheme: dark; padding-right: .25rem; }
.scene-tools button:hover { color: white; background: #28203b; transform: none; }
.section-width { width: min(92%,1240px); margin-inline: auto; }
.community { padding-block: clamp(4.5rem, 8.5vw, 8.5rem); }
.community h2, .government h2 { margin: .5rem 0 0; font-size: clamp(3.2rem, 5.4vw, 5.45rem); line-height: .98; }
.community h2 em, .government h2 em { color: var(--lavender); }
.community .columns { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; margin: clamp(2rem, 3.7vw, 3.5rem) 0 0; }
.community .columns::before { content: ""; position: absolute; inset: -70px -1% -55px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse closest-side at 50% 57%,#634a959c,transparent); }
.community article.activity { --accent: #dbb5ff; min-width: 0; border: 1px solid #b09ed313; border-radius: 1.1rem; padding: clamp(1.55rem, 2.9vw, 2.7rem); background: #c5acff0f; transition: border-color .25s, background-color .25s; }
.community article:nth-child(2) { --accent: #b8a4ff; }
.community article:nth-child(3) { --accent: #8ae2ed; }
.community article::before { content: none; }
.community article:hover { border-color: #bba3fb52; background-color: #c5acff18; }
.activity .activity-icon { width: 2.6rem; height: 2.6rem; margin: 0 0 1.4rem; stroke-width: 2.2; }
.community .activity h3 { margin: 0; font-size: clamp(1.9rem, 2.8vw, 2.7rem); line-height: 1.05; }
.community .activity p { margin: .8rem 0 0; color: #d0cbdc; font-size: 1rem; line-height: 1.6; }
.government { position: relative; isolation: isolate; overflow: clip; width: min(97%,1420px); border-radius: clamp(1.6rem, 4.8vw, 4.8rem); background: radial-gradient(ellipse 63% 49% at 50% 108%, #382c6a, transparent 95%), #0d0c19; margin: 0 auto; padding: clamp(3.8rem, 6.8vw, 6.8rem) clamp(1rem, 4.4vw, 4.8rem) clamp(1.8rem, 3.5vw, 3.4rem); }
.directory-intro p { color: var(--subtle); margin-top: 1rem; max-width: 61ch; }
.role-links { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem clamp(.8rem, 5vw, 5rem); margin: clamp(2rem, 3.1vw, 3rem) auto; max-width: 960px; }
.role-link { position: relative; display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 44px; padding: .6rem .45rem; border: 1px solid #484057; border-radius: 99px; background: #10101d; color: #eee9fa; font-weight: 700; font-size: .88rem; text-align: center; text-decoration: none; }
.role-link svg { width: 1.1rem; height: 1.1rem; flex: none; color: #bda7ff; }
.role-link:hover { border-color: #ab8ff2; background: #251d35; }
.role-links::before { content: ""; position: absolute; z-index: -1; inset: 0 4%; background: linear-gradient(#4a405c,#4a405c) center calc(25% - .25rem) / 100% 1px no-repeat, linear-gradient(#4a405c,#4a405c) center calc(75% + .25rem) / 100% 1px no-repeat; }
.office-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.office { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0c0a1515; text-align: center; min-width: 0; padding: 1.55rem clamp(1rem, 2.4vw, 2rem); }
.office:target { background: #9681ff17; box-shadow: inset 0 0 0 1px #b49cff85; }
.office summary { display: flex; flex-direction: column; align-items: center; position: relative; cursor: pointer; list-style: none; border-radius: .4rem; }
.office summary::-webkit-details-marker { display: none; }
.office-icon { width: 1.65rem; height: 1.65rem; color: #ab91ff; margin: 0 0 .65rem; }
.office b { font-size: clamp(1.65rem, 2.3vw, 2.25rem); line-height: 1.05; }
.office-role { display: inline-flex; align-items: center; gap: .45rem; font-size: .79rem; color: #cbb9f6; margin: .38rem 0 0; }
.office-role::after { content: "+"; font-size: .9rem; line-height: 1; }
.office[open] .office-role::after { content: "−"; }
.office p { color: #cec9dc; margin: .82rem auto 0; max-width: 35ch; font-size: .93rem; line-height: 1.55; }
@media (min-width:851px) {
  .office:nth-child(1)::after, .office:nth-child(2)::after { content: ""; position: absolute; right: -6px; bottom: -6px; z-index: 1; width: 11px; height: 11px; background: #a69cb9; clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%); }
}
.judicial { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 2rem auto 0; text-align: left; }
.judicial > svg { width: 2rem; height: 2rem; color: #b79dfb; }
.judicial b { font-size: 1.45rem; line-height: 1.1; }
.judicial p { font-size: .85rem; color: var(--subtle); margin: .1rem 0 0; }
footer { max-width: 1320px; margin: auto; padding: 2rem 4%; color: #aaa4bc; }
footer .brand { color: white; }
@media (max-width:850px) {
  .office-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .community .columns { gap: .55rem; }
}
@media (max-width:720px) {
  #costa .logo-frame { width: 92%; }

  .site-nav[data-menu] .nav-trigger:not([hidden]) { min-height: 2.4rem; color: white; }

  .status.section-width { gap: .5rem; justify-content: center; }
  .status.section-width strong { flex: 0 1 auto; }
  .scene-tools { width: 100%; justify-content: center; margin: .25rem 0 0; }
  .community .columns { grid-template-columns: 1fr; gap: .75rem; }
  .community article.activity { padding: 1.4rem; }
  .activity .activity-icon { width: 2rem; height: 2rem; margin-bottom: .75rem; }
  .community .columns::before { inset: 0; }
  .government { width: 96%; }
  .role-links { gap: .6rem .75rem; }
  .role-link { font-size: .78rem; }
}
@media (max-width:520px) {

  .office-grid { grid-template-columns: 1fr; }
  .office { padding: 1.3rem 1rem; }
  .role-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .role-links::before { background: linear-gradient(#4a405c,#4a405c) center / 100% 1px no-repeat; }
  .role-link { background: #14111f; }
}
@media (max-width:370px) {
  #costa header { gap: .4rem; }
  #costa header .brand { font-size: 1.48rem; }
  #costa #language { padding-inline: .65rem; }
}
