/* Loaded after the retained styles. All rules are confined to catalogue pages. */
body.catalogue-refined #main,
body.sample-refined #main,
body.directory-refined #main{line-height:1.5}

/* A short row of selects, then two independently sized groups of options. */
body.catalogue-refined.browse-first .browse-filter-drawer{margin:12px 0 18px;border-radius:10px;background:#f4f7ed}
body.catalogue-refined.browse-first .browse-filter-drawer>summary{padding:12px 16px;line-height:1.35;min-height:44px}
body.catalogue-refined.browse-first .browse-filter-drawer .search-line{padding:0 16px 14px;border-bottom:1px solid #d6dfcf}
body.catalogue-refined.browse-first .search-line>label{font:600 20px/1.3 Georgia,serif;margin:0 0 9px}
body.catalogue-refined .search-line>div{display:flex;flex-wrap:nowrap;max-width:none;gap:8px}
body.catalogue-refined .search-line input{min-width:0;width:auto;flex:1;flex-basis:auto;min-height:44px;height:44px;padding:9px 12px;font-size:15px;border-width:1px;border-radius:5px}
body.catalogue-refined .search-line button{min-height:44px;height:44px;padding:8px 18px;font-size:14px;line-height:1.3;white-space:nowrap;width:auto}
body.catalogue-refined.browse-first .browse-filter-drawer .filters{display:flex;flex-direction:column;gap:14px;padding:12px 16px 14px}
body.catalogue-refined .filter-title{min-height:28px;align-items:center}
body.catalogue-refined .filter-title h3{font:700 16px/1.3 'Segoe UI',Arial,sans-serif;letter-spacing:0;margin:0}
body.catalogue-refined .filter-title button{font-size:13px;min-height:32px;padding:4px 0}
body.catalogue-refined .filter-select-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.catalogue-refined .filter-select-row>label{display:block;margin:0;font-size:13px;line-height:1.35;font-weight:700;min-width:0}
body.catalogue-refined .filters select{width:100%;font:14px/1.3 'Segoe UI',Arial,sans-serif;margin:6px 0 0;padding:9px 10px;min-height:44px;height:44px;border-radius:5px}
body.catalogue-refined .filter-checkbox-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
body.catalogue-refined .filters fieldset{margin:0;padding:10px 0 0;border:0;border-top:1px solid #d4decc;min-width:0}
body.catalogue-refined .filters legend{float:none;width:auto;font:700 13px/1.3 'Segoe UI',Arial,sans-serif;margin:0 0 8px;padding:0 8px 0 0}
body.catalogue-refined .filter-check-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body.catalogue-refined .filters .check{display:flex;align-items:center;gap:8px;clear:none;font-size:13px;line-height:1.25;min-height:40px;padding:7px 10px;border:1px solid #c7d4c0;border-radius:5px;background:#fff;margin:0;cursor:pointer}
body.catalogue-refined .filters .check input{accent-color:#285c43;width:17px;height:17px;flex:0 0 17px;margin:0}
body.catalogue-refined .filters .check:hover{border-color:#6c9478;background:#f8fbea}
body.catalogue-refined .filters .check:has(input:checked){background:#e2edb4;border-color:#668c43;color:#163f2d}
body.catalogue-refined .filters .check:focus-within{outline:2px solid #d66d3f;outline-offset:2px}
body.catalogue-refined .filter-note{font-size:12px;line-height:1.4;margin:0;color:#4a6252}
body.catalogue-refined .filters noscript p{font-size:13px;margin:0}
body.catalogue-refined .results-heading{align-items:center;gap:12px;margin-bottom:8px}
body.catalogue-refined .results-heading h2{font-size:22px;line-height:1.25}
body.catalogue-refined .results-heading select{font-size:14px;min-height:40px;margin:0}
body.catalogue-refined.browse-first .active-filters{font-size:13px;line-height:1.4;margin:0 0 14px}
body.catalogue-refined .park-card .card-copy{padding:14px}
body.catalogue-refined .park-card h3{font-size:20px;line-height:1.2;margin:5px 0 8px}
body.catalogue-refined .park-card .card-copy>p{font-size:13px;line-height:1.45;margin-top:0;margin-bottom:9px}

/* The feature number belongs to its title, not a separate empty row. */
body.sample-refined.aberafon-design .feature-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px;margin-top:20px;align-items:start}
body.sample-refined.aberafon-design .feature-grid article{padding:13px 0 0;border-top:1px solid #a9c09a;background:transparent;min-width:0}
body.sample-refined .feature-heading{display:flex;align-items:flex-start;gap:9px}
body.sample-refined.aberafon-design .feature-mark{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;flex:0 0 29px;margin:0;font:700 12px/1 'Segoe UI',Arial,sans-serif;border-radius:50%;background:#dae986;color:#234b32}
body.sample-refined.aberafon-design .feature-grid h3{font:700 19px/1.25 Georgia,serif;letter-spacing:-.15px;margin:2px 0 0;min-width:0}
body.sample-refined.aberafon-design .feature-grid p{font-size:14px;line-height:1.5;color:#405b4a;margin:9px 0 0}
body.sample-refined.browse-first .section{padding-block:28px}
body.sample-refined .features-band>.wrap{padding-block:28px}
body.sample-refined .features-band .section{padding-block:0}
body.sample-refined .park-story{gap:28px!important}
body.sample-refined .park-story h2,
body.sample-refined .editorial h2,
body.sample-refined .features-band h2{font-size:clamp(26px,3vw,34px);line-height:1.16;letter-spacing:-.8px}
body.sample-refined .park-story p,
body.sample-refined .editorial p{font-size:15px;line-height:1.5}
body.sample-refined .park-story p+p,
body.sample-refined .editorial p+p{margin-top:12px}
body.sample-refined.aberafon-design .park-story h3{font-size:21px;line-height:1.25;margin:18px 0 9px}
body.sample-refined .section-heading{gap:18px!important;margin-bottom:16px!important}
body.sample-refined .section-heading>p{line-height:1.45!important;margin-top:0}
body.sample-refined .more-features{margin-top:18px}
body.sample-refined .more-features summary,
body.sample-refined .full-description summary,
body.sample-refined .source-note summary,
body.sample-refined .media-proof-note summary{font:600 14px/1.4 'Segoe UI',Arial,sans-serif;min-height:40px;padding:10px 0}
body.sample-refined .more-features ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;padding:0;list-style:none;margin:8px 0 0}
body.sample-refined .more-features li{padding:12px 0;margin:0;border-top:1px solid #cbd8bd;font-size:14px;line-height:1.45}
body.sample-refined .more-features li p{font-size:14px;line-height:1.5;margin-top:7px}
body.sample-refined .source-note{padding-block:20px;font-size:13px;line-height:1.45}
body.sample-refined .source-note p+p{margin-top:10px}
body.sample-refined .media-proof-note{margin-top:12px}
body.sample-refined .media-proof-note p{font-size:13px;line-height:1.45}
body.sample-refined .supporting-media .media-buttons{margin-top:14px;gap:10px}
body.directory-refined #main>section{padding-block:28px}
body.directory-refined #main p,body.directory-refined #main li{line-height:1.5}

@media(max-width:960px){
 body.sample-refined.aberafon-design .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 body.catalogue-refined .filter-checkbox-groups{gap:14px}
}
@media(max-width:700px){
 body.catalogue-refined .filter-select-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.catalogue-refined .filter-select-row>label:last-child{grid-column:1/-1}
 body.catalogue-refined .filter-checkbox-groups{grid-template-columns:1fr;gap:14px}
 body.catalogue-refined .filters .check{min-height:44px}
 body.sample-refined .park-story,.sample-refined .editorial{gap:22px!important}
 body.sample-refined .more-features ul{grid-template-columns:1fr;gap:0}
 body.sample-refined.browse-first .section{padding-block:24px}
}
@media(max-width:480px){
 body.catalogue-refined.browse-first .browse-filter-drawer .search-line{padding-inline:12px}
 body.catalogue-refined.browse-first .browse-filter-drawer .filters{padding-inline:12px;gap:12px}
 body.catalogue-refined .search-line>div{flex-wrap:wrap}
 body.catalogue-refined .search-line input{flex-basis:100%;width:100%}
 body.catalogue-refined .search-line button{width:100%;justify-content:center}
 body.catalogue-refined .filter-select-row{grid-template-columns:1fr}
 body.catalogue-refined .filter-check-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.catalogue-refined .filters .check{font-size:12px;padding-inline:7px;gap:6px}
 body.sample-refined.aberafon-design .feature-grid{grid-template-columns:1fr;gap:16px;margin-top:16px}
 body.sample-refined.aberafon-design .feature-grid h3{font-size:19px}
 body.sample-refined .section-heading>p{margin-top:8px}
}

body.sample-refined.aberafon-design .features-band{padding-block:0}

/* Keep the way back to the thumbnails and the location together above the artwork. */
.sample-browse-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 1rem;
}
body.sample-refined .sample-browse-rail > .wrap {
  width: auto;
  max-width: 100%;
  margin: 0;
}
body.sample-refined .sample-browse-rail .browse-toolbar {
  gap: .35rem;
  padding-block: .3rem;
}
body.sample-refined .sample-browse-rail .browse-toolbar a {
  min-height: 44px;
  padding: .35rem .65rem;
}
body.sample-refined .sample-browse-rail .breadcrumbs {
  min-height: 0;
  margin: 0;
  padding-block: .35rem;
  gap: .4rem;
}
body.sample-refined .park-hero {padding-block: .85rem 1rem}
body.sample-refined .sample-heading {
  text-align: left;
  max-width: none;
  margin: 0 0 .75rem;
  padding: 0;
}
body.sample-refined .sample-heading::after {content: none}
body.sample-refined .sample-heading .eyebrow {
  margin: 0;
  line-height: 1.2;
  letter-spacing: .12em;
}
body.sample-refined .sample-heading h1 {
  margin: .25rem 0;
  font-size: clamp(1.85rem, 3.9vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
body.sample-refined .sample-heading h1 span {
  display: inline-block;
  font-size: .55em;
  margin: 0 0 0 .5em;
}
body.sample-refined .sample-heading :is(.intro, .park-location) {
  margin: .3rem 0 0;
  max-width: 70ch;
  line-height: 1.35;
}
body.sample-refined .main-map {
  margin: 0;
  padding: .65rem clamp(.5rem, 1.6vw, 1.15rem) 0;
  border-radius: 8px;
  box-shadow: 0 3px 12px #163d2e16;
}
body.sample-refined .map-paper-label {padding-bottom: .4rem}
body.sample-refined .main-map-image {
  position: relative;
  display: block;
  padding-block: .25rem;
}
body.sample-refined .main-map-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(300px, 55vh, 640px);
  object-fit: contain;
}
body.sample-refined .main-map-image .zoom-pill {
  position: absolute;
  inset: auto .3rem .55rem auto;
  min-height: 0;
  margin: 0;
  padding: .4rem .65rem;
  font: 650 .75rem/1.25 system-ui, sans-serif;
  border-radius: 5px;
  background: #163e31;
  color: white;
}
body.sample-refined .main-map figcaption {padding-block: .45rem;line-height: 1.35}
body.sample-refined .sample-map-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.2rem;
  margin: .65rem 0 0;
}
body.sample-refined .sample-map-tools .hero-links {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: center;
  gap: .25rem .7rem;
  margin: 0 !important;
}
body.sample-refined .sample-map-tools .hero-links .button {
  min-height: 44px;
  padding: .55rem .9rem;
}
body.sample-refined .sample-map-tools .page-guide,
body.sample-refined .sample-map-tools .tags {
  width: auto;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .25rem .7rem;
}
body.sample-refined .alternative-style .alternative-map-title {
  margin: 0 0 .75rem;
  color: inherit;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
}

/* Both galleries have their own crawlable collection and numbered pages. */
.gallery-style-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-block: .5rem 0;
  padding: .2rem;
  background: #eff4e4;
  border: 1px solid #9bb594;
  border-radius: .55rem;
}
.gallery-style-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .8rem;
  border-radius: .35rem;
  font: 650 .87rem/1.2 system-ui, sans-serif;
  color: #214c38;
  text-decoration: none;
}
.gallery-style-links a:hover {text-decoration: underline}
.gallery-style-links a[aria-current] {background: #214c38;color: white}
@media (min-width: 850px) {
  body.catalogue-refined .collection-hero > .wrap:has(.gallery-style-links) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 2rem;
  }
  body.catalogue-refined .collection-hero > .wrap > :not(.gallery-style-links) {grid-column: 1}
  .gallery-style-links {grid-column: 2;grid-row: 1 / span 2;margin: 0}
}
@media (max-width: 680px) {
  body.sample-refined .sample-browse-rail {display: block}
  body.sample-refined .sample-browse-rail .browse-toolbar {flex-wrap: nowrap}
  body.sample-refined .sample-browse-rail .browse-toolbar a {
    font-size: .75rem;
    white-space: normal;
    line-height: 1.2;
  }
  body.sample-refined .sample-browse-rail .breadcrumbs {padding: 0 0 .35rem}
  body.sample-refined .sample-heading h1 span {display: block;margin: .14em 0 0}
  body.sample-refined .park-hero {padding-block: .65rem .85rem}
  body.sample-refined .sample-heading {margin-bottom: .5rem}
  body.sample-refined .main-map-image img {max-height: 60vh}
}
@media (min-width: 340px) and (max-width: 540px) {
  body.sample-refined .park-hero .sample-stepper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: .3rem;
    margin: .55rem 0;
  }
  body.sample-refined .park-hero .sample-stepper > a {
    min-width: 0;
    max-width: none;
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: .3rem .4rem;
    font-size: .73rem;
    line-height: 1.2;
    order: 0;
  }
  body.sample-refined .park-hero .sample-stepper .gallery-return {width: 5.8rem}
}

.archive-page .collection-hero .archive-crumbs {margin: 0 0 .5rem;font-size: .86rem}
.archive-page .archive-index,
.archive-page .archive-feature {padding-block: 1rem 2rem}
.archive-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}
.archive-examples > a {
  display: grid;
  gap: .4rem;
  border: 1px solid #c7d6c2;
  border-radius: .5rem;
  background: white;
  padding: .5rem;
  font-weight: 650;
}
.archive-examples img {display: block;width: 100%;height: 8rem;object-fit: contain}
.archive-letters {display: flex;flex-wrap: wrap;gap: .25rem}
.archive-letters a {
  display: grid;place-items: center;
  width: 2.6rem;min-height: 44px;
  border: 1px solid #bacdb4;border-radius: .35rem;
  color: #234e3a;text-decoration: none;font-weight: 700;
}
.archive-letters a:hover {background: #e0edbe}
.archive-index section {padding-block: .65rem;border-top: 1px solid #c6d4bf;scroll-margin-top: 9rem}
.archive-index section:first-of-type {margin-top: .65rem}
.archive-index section h2 {margin: 0 0 .3rem;font-size: 1.5rem}
.archive-filenames {margin: 0;padding: 0;list-style: none;columns: 3 15rem;column-gap: 1.4rem}
.archive-filenames li {break-inside: avoid;margin: 0}
.archive-filenames summary {padding: .38rem 0;cursor: pointer;overflow-wrap: anywhere;font-size: .9rem}
.archive-filenames a {display: grid;gap: .3rem;color: #234e3a;font-size: .85rem}
.archive-filenames img {display: block;width: 100%;max-height: 14rem;object-fit: contain;background: white}
.archive-filenames details[open] {padding: 0 .5rem .5rem;border: 1px solid #c6d4bf;border-radius: .35rem}
.archive-page .archive-feature {max-width: 54rem}
.archive-feature p {margin: .6rem 0;line-height: 1.48}
.archive-feature h2 {margin: 1.3rem 0 .5rem}
.archive-figures {display: flex;flex-wrap: wrap;gap: .65rem;margin: .6rem 0}
.archive-illustration {display: grid;place-items: center;flex: 1 1 13rem;min-width: 0}
.archive-illustration img {display: block;max-width: 100%;max-height: 23rem;width: auto;height: auto;object-fit: contain}
.archive-feature .archive-attribution {margin: .25rem 0 .65rem;color: #45624d;font-size: .85rem}
