/* Areas page: layout and town cards, ported from final-areas.html (pages.css .area, ref.css .two-col/.rows/.slant) */

/* Two columns on desktop. Practice: text and ticks left, photo right. Further out: intro left, rows right. */
@media (min-width: 62rem) {
  .areas-practice > [data-etch-element='container'],
  .areas-further > [data-etch-element='container'] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
  }
  .areas-practice .cm-section-intro { grid-column: 1; grid-row: 1; }
  .areas-practice .cm-ticklist-wrapper { grid-column: 1; grid-row: 2; }
  .areas-practice .areas-photo { grid-column: 2; grid-row: 1 / span 2; }
}
.areas-practice > [data-etch-element='container'] > *,
.areas-further > [data-etch-element='container'] > * { min-width: 0; }

/* Photo: 4:3 crop with rounded corners, as the mockup */
.areas-photo { margin: 0; }
.areas-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
@media (max-width: 61.99rem) { .areas-photo { margin-block-start: 1.5rem; } }

/* Town grid: auto-fit so it needs no media queries */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin-block-start: 2rem;
}

/* Dark section: shallow slant top and bottom, as the mockup */
.areas-further {
  --areas-slant: 1.8vw;
  clip-path: polygon(0 var(--areas-slant), 100% 0, 100% calc(100% - var(--areas-slant)), 0 100%);
  padding-block: calc(clamp(4rem, 6.5vw, 7rem) + var(--areas-slant));
}

/* Region rows on the dark section */
.areas-regions { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.areas-regions__item { padding-block: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.85); }

/* Three cards */
.areas-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
  margin-block-start: 2rem;
}
