/* Local service pages */
.commune-hero {
  color: #1c2120;
  background-color: #f7f4e9;
  background-image: linear-gradient(110deg, #f9f7ef 18%, #f9f7efea 45%, #f9f7ef00 78%),
    repeating-linear-gradient(0deg, transparent 0 43px, #9c9f8621 43px 44px),
    repeating-linear-gradient(90deg, transparent 0 43px, #9c9f8621 43px 44px);
}
.commune-hero > .wrap { padding-bottom: clamp(24px, 4vw, 50px); }
body[data-page] .commune-hero .crumb {
  max-width: none; margin: 0; padding-inline: 0; color: #54544b;
}
body[data-page] .commune-hero .crumb .sep { color: #746a46; }
.commune-hero .crumb a:hover, .commune-hero .textlink:hover { color: #705000; }
.commune-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(0,1fr);
  gap: clamp(30px, 5.5vw, 80px);
  align-items: center;
  padding-block: clamp(28px, 3.2vw, 50px) clamp(24px, 3.3vw, 50px);
}
.commune-copy { min-width: 0; }
.commune-kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 clamp(13px, 1.5vw, 21px);
  color: #514d41; font-size: .82rem; font-weight: 680; letter-spacing: .045em;
}
.commune-kicker::before { content: ""; width: 28px; height: 5px; flex: none; background: #e9ad00; }
.commune-copy h1 {
  margin: 0; color: #1b211f; font-size: clamp(49px, 5.35vw, 82px);
  font-weight: 740; line-height: .99; letter-spacing: -.048em;
  overflow-wrap: break-word; text-wrap: balance;
}
.commune-lead {
  max-width: 48ch; margin: clamp(15px, 1.6vw, 23px) 0 0;
  color: #41463f; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.5;
}
.commune-copy .actions { gap: 7px 19px; margin-top: clamp(16px, 2vw, 28px); }
.commune-copy .actions .btn { background: #1e2521; border: 1px solid #1e2521; color: #fffaf0; }
.commune-copy .actions .btn:hover { background: #394139; }
.commune-copy .textlink { color: #36392e; text-decoration-color: #837857; }
.commune-photo {
  position: relative; min-width: 0; isolation: isolate; margin: 0 8px 8px 0;
  overflow: hidden; border-radius: 3px 28px 3px 3px; background: #292f2a;
  box-shadow: 8px 8px 0 #efbd35; 
}
.commune-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.46; object-fit: cover; }
.commune-photo figcaption {
  margin: 0; border-top: 1px solid #f4d58345; background: #252c27; color: #fffbef;
  padding: 11px 15px; font-size: .82rem; line-height: 1.4; overflow-wrap: anywhere;
}
.commune-photo figcaption:empty { display: none; }
.commune-facts {
  position: relative; display: grid; grid-template-columns: minmax(0,.76fr) minmax(0,1.2fr) minmax(0,1fr);
  gap: 0; border-inline-start: 5px solid #eab62a; background: #282e29; color: #fffbee;
  box-shadow: 0 5px 16px #29251112;
}
.commune-facts > div { min-width: 0; align-self: stretch; padding: clamp(14px, 1.8vw, 25px); }
.commune-facts > div + div { border-inline-start: 1px solid #ffffff2e; }
.commune-facts span, .commune-facts strong { display: block; }
.commune-facts span { margin-bottom: 5px; color: #ded9c8; font-size: .8rem; font-weight: 500; }
.commune-facts strong { font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.3; font-weight: 650; }
.commune-map-note { background: #fcfaf3; border-bottom: 1px solid #d9d5c8; }
.commune-map-note .wrap {
  display: grid; align-items: center; grid-template-columns: minmax(0,1.1fr) minmax(0,.83fr);
  gap: 19px clamp(22px, 5vw, 80px); padding-block: clamp(28px, 4.3vw, 64px);
}
.commune-map-note h2 { margin: 0; font-size: clamp(26px, 3.1vw, 42px); line-height: 1.08; }
.commune-map-note p { max-width: 70ch; margin: 0; color: #42473e; }
.commune-map-note a { text-decoration-color: #958046; text-underline-offset: 3px; }
.commune-map-note a:hover { color: #714f00; }
.commune-map-note .wrap > p + p { grid-column: 2; }
.commune-map-copy > p { margin-top: 14px; }
.commune-map-copy > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }
.local-neighbours { margin-top: 1.4rem; }
.local-neighbours h3 { margin: 0 0 .55rem; font-size: 1rem; }
.local-neighbours a { display: inline-flex; min-height: 44px; align-items: center; border: 1px solid #cbc6b7; border-radius: 4px; padding: .35rem .6rem; margin: 0 .15rem .25rem 0; color: #2a3029; background: #fffdf6; text-decoration: none; }
.local-neighbours a:hover { background: #ffe8a2; }
.commune-locator {
  width: 100%; max-width: 480px; justify-self: end; margin: 0; overflow: hidden;
  border: 1px solid #bbb7a9; border-radius: 3px 16px 3px 3px; background: #242a24;
}
.commune-locator > img { display: block; width: 100%; height: auto; aspect-ratio: 400 / 288; }
.commune-locator figcaption { margin: 0; border-top: 1px solid #ffffff24; padding: 9px 13px; color: #f5f2e4; font-size: .82rem; }
.commune-locator a { color: inherit; }
.commune-locator a:hover { color: #ffd867; }

/* Native checkboxes also work when scripting is disabled. */
.commune-check {
  scroll-margin-top: 84px; background: #ece8d9; color: #232820;
  background-image: radial-gradient(#ada79655 .7px, transparent .8px);
  background-size: 12px 12px;
}
.commune-check-grid {
  display: grid; align-items: start; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr);
  gap: clamp(25px, 5vw, 82px); padding-block: clamp(38px, 6vw, 88px);
}
.commune-check-intro h2 { margin: 0; max-width: 15ch; }
.commune-check-intro p { max-width: 43ch; margin: 15px 0 21px; color: #43473d; }
.commune-check-card {
  min-width: 0; border: 1px solid #c9c4b4; border-radius: 3px 18px 3px 3px;
  background: #fffdf6; box-shadow: 0 5px 20px #3128130a; overflow: hidden;
}
.commune-check-progress {
  display: grid; align-items: center; grid-template-columns: minmax(0,1fr) minmax(56px,.44fr);
  gap: 12px; padding: 13px clamp(12px, 2vw, 24px); background: #282e29; color: #fffdf5;
  font-size: .88rem; font-weight: 650; line-height: 1.3;
}
.commune-check-progress progress {
  display: block; appearance: none; width: 100%; height: 6px;
  border: 0; border-radius: 3px; overflow: hidden; background: #585e56; color: #ffcf49;
}
.commune-check-progress progress::-webkit-progress-bar { background: #585e56; }
.commune-check-progress progress::-webkit-progress-value { background: #ffcf49; }
.commune-check-progress progress::-moz-progress-bar { background: #ffcf49; }
.commune-check-list { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.commune-check-row {
  display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: start;
  gap: 12px; min-height: 44px; padding: clamp(12px, 1.6vw, 21px) clamp(12px, 2vw, 24px);
  cursor: pointer;
}
.commune-check-row + .commune-check-row { border-top: 1px solid #dedacc; }
.commune-check-row input {
  width: 21px; height: 21px; margin: 1px 0 0; padding: 0;
  cursor: pointer; accent-color: #635016;
}
.commune-check-row strong, .commune-check-row small { display: block; }
.commune-check-row strong { font-size: 1.02rem; line-height: 1.3; }
.commune-check-row small { margin-top: 4px; color: #515448; font-size: .9rem; line-height: 1.43; }
.commune-check-row:has(input:checked) { background: #f9efcd; }
.commune-check-row:has(input:focus-visible) { outline: 2px solid #765410; outline-offset: -3px; }

/* The Ilfov hub also links directly to the detailed commune guides. */
.commune-featured { margin-block: clamp(20px, 3vw, 38px); }
.commune-featured header:not(.top) { display: block; position: static; margin-bottom: 14px; }
.commune-featured h3 { margin: 0; font-size: clamp(22px, 2.2vw, 32px); }
.commune-featured header p { max-width: 62ch; margin: 7px 0 0; color: #525348; }
.commune-featured-links {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  gap: 9px; margin: 0; padding: 0; list-style: none;
}
.commune-featured-links li { display: flex; margin: 0; min-width: 0; }
.commune-featured-links a {
  position: relative; display: flex; flex: 1; flex-direction: column; justify-content: end;
  gap: 7px; min-height: 84px; padding: 14px 27px 14px 14px; border-top: 3px solid #f2bf34;
  border-radius: 2px 10px 2px 2px; color: #fffbee; background: #2d332e; text-decoration: none;
}
.commune-featured-links a:hover { background: #444c40; }
.commune-featured-links a::after {
  position: absolute; top: 14px; right: 13px; width: 8px; height: 8px;
  border-top: 2px solid #f3c446; border-right: 2px solid #f3c446; transform: rotate(45deg); content: "";
}
.commune-featured-links strong { font-size: 1.05rem; line-height: 1.16; }
.commune-featured-links small { color: #dedfcf; line-height: 1.32; }
@media (max-width: 880px) {
  .commune-hero-grid { grid-template-columns: 1fr; gap: 23px; }
  .commune-copy h1 { font-size: clamp(40px, 7.6vw, 63px); }
  .commune-photo img { aspect-ratio: 1.95; max-height: 340px; }
  .commune-check-grid { grid-template-columns: 1fr; }
  .commune-check-intro h2 { max-width: 22ch; }
}
@media (max-width: 600px) {
  .commune-hero-grid { padding-top: 15px; gap: 19px; }
  .commune-copy h1 { font-size: clamp(36px, 9.4vw, 53px); }
  .commune-kicker { font-size: .77rem; }
  .commune-copy .actions { gap: 2px 14px; }
  .commune-facts { grid-template-columns: 1fr; }
  .commune-facts > div { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.1fr); gap: 10px; align-items: baseline; padding: 10px 12px; }
  .commune-facts > div + div { border-inline-start: 0; border-top: 1px solid #ffffff2e; }
  .commune-facts span { margin: 0; }
  .commune-facts strong { font-size: .94rem; }
  .commune-photo { margin-right: 5px; margin-bottom: 5px; box-shadow: 5px 5px 0 #efbd35; }
  .commune-photo figcaption { padding: 8px 10px; font-size: .77rem; }
  .commune-map-note .wrap { grid-template-columns: 1fr; }
  .commune-locator { justify-self: start; }
  .commune-map-note .wrap > p + p { grid-column: auto; }
  .commune-featured-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commune-featured-links a { min-height: 82px; padding: 12px 19px 12px 10px; }
  .commune-featured-links a::after { right: 9px; width: 6px; height: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .commune-hero .btn, .commune-check .btn, .commune-featured-links a { transition: none; }
}
