/* Municipality pages (landing/municipis, en/municipis, es/municipis), generated by scripts/build_municipality_pages.mjs.
   Builds on site.css (tokens, header, footer, .strip dot strips, .callout, .actions); nothing here needs JavaScript. */

.page-head .head-side p{max-width:34em}
.page-head .head-side .actions{margin-top:20px}
.page-head h1{overflow-wrap:anywhere;hyphens:auto}
.head p a{font-weight:500}

/* Figure cards */
.figs{list-style:none;padding:0;margin:36px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.fc{display:flex;flex-direction:column;gap:6px;min-width:0;padding:20px 20px 18px;background:#fff;border:1px solid var(--rule);border-top:3px solid var(--ink)}
.fc h3{font-size:17px;line-height:1.25;font-weight:600;letter-spacing:-.005em;min-height:2.5em}
.fv{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin-top:2px}
.fv b{font-size:38px;line-height:1.05;letter-spacing:-.01em;overflow-wrap:anywhere}
.fv>span[aria-hidden]{font:600 22px/1 var(--cond);color:var(--ink2)}
.fref{font:600 16px/1.2 var(--cond);color:var(--ink2);white-space:nowrap}
.fd{font-size:14.5px;line-height:1.4;color:var(--ink2)}
.fc .strip{margin-top:8px}
.frank{font-size:14px;color:var(--ink2);line-height:1.35}
.fs,.fl,.fnote{font-size:13.5px;line-height:1.4;color:var(--ink2)}
.fs b,.fl b{color:var(--ink);font-weight:600}
.fc .fs{margin-top:8px;padding-top:10px;border-top:1px solid var(--rule)}
.fo{display:inline-flex;align-items:center;margin-top:auto;padding-top:12px;font-size:15.5px;font-weight:500;color:var(--ink);text-decoration:none;min-height:44px}
.fo:hover{text-decoration:underline;text-decoration-thickness:2px}
.fc .fo{margin-top:6px}

/* Context blocks */
.blocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:36px;align-items:start}
.blk{display:flex;flex-direction:column;gap:10px;min-width:0;padding:20px;background:var(--paper2);border-top:3px solid var(--ink)}
.blk h3{font-size:21px;line-height:1.2;font-weight:600;letter-spacing:-.01em}
.bl{font-size:15.5px;line-height:1.45;color:var(--ink2)}
.tscroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.bt{width:100%;border-collapse:collapse;font-size:14px}
.bt th,.bt td{padding:8px 8px 8px 0;border-top:1px solid var(--rule);text-align:left;vertical-align:top}
.bt thead th{border-top:0;font:600 12.5px/1.25 var(--cond);color:var(--ink2)}
.bt td{font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
.bt th[scope=row]{font-weight:500;min-width:9em}
.bt td:last-child{text-align:right;padding-right:0}
.bt thead th:last-child{text-align:right;padding-right:0}
.fn2{font-size:13.5px;line-height:1.4;color:var(--ink2)}
.sbar{display:flex;height:22px;border:1px solid var(--ink);background:#fff}
.sbar i{display:block;height:100%}
.sbar i.none,.tleg .tsw.none{background:repeating-linear-gradient(135deg,#fff 0 4px,#B4BEC5 4px 6px)}
.tleg{list-style:none;padding:0;display:flex;flex-direction:column;gap:9px}
.tleg li{display:grid;grid-template-columns:14px minmax(0,1fr);gap:10px;font-size:14.5px;line-height:1.35}
.tleg .tsw{width:14px;height:14px;margin-top:3px;border:1px solid var(--ink)}
.tleg small{display:block;color:var(--ink2);font-size:13px}
.eufig{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.eufig.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.eufig li{display:flex;flex-direction:column;gap:2px;min-width:0}
.eufig b{font-size:30px;line-height:1.05}
.eufig span{font-size:14px;line-height:1.25;color:var(--ink2);overflow-wrap:anywhere}
.blk .fs,.blk .fl{margin-top:2px}

/* Questions */
.qgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 56px;margin-top:36px}
.qg h3{padding-bottom:8px;border-bottom:2px solid var(--ink);font-size:19px;font-weight:600;letter-spacing:-.005em}
.ql-list{list-style:none;padding:0}
.ql-list li{padding:14px 0;border-bottom:1px solid var(--rule);display:flex;flex-direction:column;gap:3px}
.ql-list a{font-size:17.5px;line-height:1.3;font-weight:500;text-underline-offset:3px}
.qshows{font-size:14.5px;line-height:1.4;color:var(--ink2)}
.qlimit,.qview{font-size:13px;line-height:1.35;color:var(--ink2)}
.more-q{margin-top:28px;border-top:1px solid var(--rule)}
.more-q summary,.srcs summary{display:flex;justify-content:space-between;gap:16px;padding:16px 0;font-size:18px;font-weight:500;cursor:pointer;list-style:none;min-height:48px}
.more-q summary::-webkit-details-marker,.srcs summary::-webkit-details-marker{display:none}
.more-q summary::after,.srcs summary::after{content:"";flex:none;width:9px;height:9px;margin:7px 4px 0 0;border-right:1.6px solid var(--ink);border-bottom:1.6px solid var(--ink);transform:rotate(45deg)}
.more-q[open] summary::after,.srcs[open] summary::after{transform:rotate(-135deg);margin-top:11px}
.more-q .qgrid{margin-top:8px}

/* Checking, sources, access, other municipalities */
.srcs{margin-top:24px;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.srcs ul{padding:0 0 16px 20px;font-size:15px;color:var(--ink2);display:flex;flex-direction:column;gap:6px;max-width:60em}
.gen{margin-top:16px;font-size:14px;color:var(--ink2)}
.callout h2{font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.02em}
.callout{margin-top:0;padding:28px 30px 30px}
.callout p{max-width:40em;font-size:17px}
.callout .actions{margin-top:20px}
.callout .btn{margin-top:0}
.others h2{font-size:26px;line-height:1.1;font-weight:600;letter-spacing:-.015em}
.others ul{list-style:none;padding:0;margin-top:20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 28px;border-top:1px solid var(--rule)}
.others li{border-bottom:1px solid var(--rule)}
.others a{display:block;padding:11px 0;font-size:16px;line-height:1.3;text-decoration:none}
.others a:hover{text-decoration:underline}
main>.others{padding-bottom:88px}

/* Index of the 36 */
.mgrid{list-style:none;padding:0;margin:36px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.mcard{display:flex;flex-direction:column;gap:8px;min-width:0;padding:18px 20px 12px;background:#fff;border:1px solid var(--rule);border-top:3px solid var(--ink)}
.mcard h2{font-size:22px;line-height:1.15;font-weight:600;letter-spacing:-.01em}
.mcard h2 a{text-decoration:none}
.mcard h2 a:hover{text-decoration:underline}
.mres{font-size:15px;color:var(--ink2)}
.mres b{font-size:26px;color:var(--ink);margin-right:2px}
.mcard dl{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mcard dt{font:600 12px/1.2 var(--cond);color:var(--ink2)}
.mcard dd{margin:2px 0 0;font:600 17px/1.15 var(--cond);font-variant-numeric:tabular-nums lining-nums}
.mcard .fo{margin-top:auto;padding-top:6px}
main>.sect:last-of-type{padding-bottom:88px}

@media (max-width:1100px){
  .figs,.blocks,.mgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .others ul{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:760px){
  .figs,.blocks,.mgrid,.qgrid{grid-template-columns:minmax(0,1fr)}
  .qgrid{gap:28px}
  .figs,.blocks,.mgrid{gap:16px;margin-top:28px}
  .fc{padding:18px 16px 14px}
  .fc h3{min-height:0}
  .fv b{font-size:34px}
  .blk{padding:18px 16px}
  .callout{padding:22px 18px 24px}
  .callout h2{font-size:25px}
  .others ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
  main>.others,main>.sect:last-of-type{padding-bottom:64px}
}
@media (max-width:400px){
  .page-head h1{font-size:32px}
  .others ul{grid-template-columns:minmax(0,1fr)}
}

/* Eight links in the header (Municipis added): tighten so the language switch stays on the first row at 1440 px. */
@media (min-width:761px){.top nav{gap:16px}.bar{column-gap:16px}}

/* Dusk 3D capture of the town centre, right under the page head */
.muni-3d{margin-top:32px;margin-bottom:0}
.muni-3d figcaption{margin-top:10px;font-size:14.5px;line-height:1.45;color:var(--ink2)}
