/* Refined DS3 theme. Shared components retain their accessible semantics. */
:root {
  --ink: #202e2b;
  --ink-soft: #53645e;
  --paper: #fcfcf9;
  --stone: #f1f4ee;
  --stone-dark: #e4eae1;
  --line: #dce4dc;
  --line-strong: #84958a;
  --green-900: #123d32;
  --green-700: #23604c;
  --green-600: #2e735b;
  --green-100: #eaf2e9;
  --gorse: #efc872;
  --gorse-100: #fff7e5;
  --radius: 16px;
  --radius-sm: 8px;
  --container: 80rem;
}
body { font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { font-size: clamp(2.4rem, 4.4vw, 4.25rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
h3 { line-height: 1.3; }
::selection { background: #efc872; color: #123d32; }
.proto-banner { background: #f0f3ed; border-bottom: 1px solid var(--line); font-size: .8125rem; color: #475b50; }
.proto-banner .container { flex-wrap: nowrap; gap: .8rem; padding-top: .45rem; padding-bottom: .45rem; }
.tag-proto { background: #dfe8dc; color: #284835; font-size: .65rem; letter-spacing: .12em; padding: .2rem .5rem; flex-shrink: 0; }
.header-inner { padding-top: .7rem; padding-bottom: .7rem; }
.site-title { gap: 1.25rem; }
.site-title .name { font-size: 1.55rem; }
.site-title .sub { font-size: .85rem; margin-top: .35rem; }
.site-title .brand-text { border-left-width: 1px; padding-left: 1.25rem; }
.icon-link { font-size: .9375rem; padding: .6rem .8rem; }
.header-tools > a[href='/signin'] { border: 1px solid var(--line); border-radius: 8px; margin-left: .5rem; }
.nav { background: #fff; border-top: 1px solid #edf0eb; }
.nav ul { gap: 1.75rem; }
.nav a, .nav a:visited { color: var(--green-900); padding: .9rem .15rem; font-size: .95rem; border-bottom-width: 3px; }
.nav a:hover { color: var(--green-700); background: transparent; }
.nav a[aria-current='page'] { border-bottom-color: var(--green-700); }
.hero { background: #eef2e9; border-bottom: 0; position: relative; }
.hero-grid { gap: 3rem; padding-top: 4rem; padding-bottom: 3.5rem; }
.hero-copy { position: relative; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--green-700); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.3rem; }
.eyebrow::before { content: ''; width: 1.6rem; height: 2px; background: currentColor; flex-shrink: 0; }
.hero h1 { max-width: 13ch; margin-bottom: 1.3rem; }
.hero h1 span { color: #45735c; }
.hero .lead { font-size: 1.125rem; line-height: 1.75; color: #4b6055; max-width: 43ch; }
.hero-actions { margin-top: 1.7rem; }
.hero-actions .btn { padding: .85rem 1.3rem; }
.hero-actions .text-link { color: var(--green-900); font-weight: 700; text-decoration: none; padding: .6rem 0; }
.hero-actions .text-link::after { content: ' ↗'; margin-left: .4rem; }
.hero-photo { position: relative; border: 0; border-radius: 100px 16px 16px 16px; background: var(--green-900); box-shadow: 0 20px 45px #123d3214; }
.hero-photo img { aspect-ratio: 1.15; }
.hero-photo figcaption { background: var(--green-900); color: #edf3e9; font-size: .8rem; padding: 1rem 1.3rem; line-height: 1.5; }
.hero-note { display: flex; align-items: center; gap: .55rem; font-size: .825rem; color: #4b6055; margin: 1.7rem 0 0; }
.hero-note svg { width: 17px; height: 17px; }
.home-search { background: #eef2e9; padding: 0 0 2.75rem; }
.home-search .finder { margin: 0; padding: 1.5rem 1.75rem; box-shadow: 0 12px 35px #123d3209; border: 1px solid #dce5d8; }
.finder label { font-size: .9rem; }
.finder-grid { gap: 1.25rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=month], select, textarea { border-width: 1px; padding: .75rem .9rem; background-color: #fff; }
input::placeholder { color: #66766e; opacity: 1; }
.btn { box-shadow: none; border-width: 1px; min-height: 48px; padding: .75rem 1.25rem; transition: background .18s, box-shadow .18s; }
.btn:hover { box-shadow: 0 4px 12px #123d3214; }
.btn-secondary { border-color: #cbd9cd; }
.btn-small { min-height: 40px; padding: .4rem .8rem; font-size: .875rem; }
.section { padding: 4.5rem 0; }
.section-stone { background: #f3f5f0; }
.section-head { margin-bottom: 2rem; align-items: center; }
.section-head > a { font-size: .9375rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid #b8c9b8; padding-bottom: .2rem; }
.section-head > a::after { content: ' ↗'; margin-left: .5rem; }
.tiles { gap: 1.5rem; }
.tile { position: relative; border: 1px solid var(--line); padding: 2rem; gap: .8rem; transition: transform .2s, box-shadow .2s; }
.tile:nth-child(2), .tile:nth-child(3) { border-top-color: var(--line); }
.tile svg { width: 48px; height: 48px; padding: 11px; box-sizing: content-box; background: #edf3e7; border-radius: 14px; margin-bottom: .8rem; }
.tile:nth-child(2) svg { background: #ecf0f7; color: #385571; }
.tile:nth-child(3) svg { background: #f6eee2; color: #82572d; }
.tile h3 { font-size: 1.55rem; }
.tile p { font-size: 1rem; }
.tile::after { content: '↗'; position: absolute; right: 1.6rem; top: 1.6rem; font-size: 1.3rem; color: #64776c; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 12px 30px #123d320c; border-color: #9eb4a2; }
.card { padding: 1.6rem; gap: .75rem; box-shadow: 0 3px 12px #123d3203; transition: border-color .18s, box-shadow .18s; }
.card:hover { border-color: #a4b8a7; box-shadow: 0 8px 24px #123d320a; }
.card h3 { font-size: 1.4rem; }
.card p { font-size: 1rem; }
.card .meta { font-size: .875rem; line-height: 1.6; }
.card-foot { padding-top: 1rem; }
.card-foot .save-btn { background: transparent; border-color: var(--line); }
.badge { font-size: .75rem; padding: .2rem .6rem; border-radius: 5px; line-height: 1.5; }
.badges { gap: .4rem; }
.date-block { min-width: 4.5rem; padding: .7rem; background: #eef3ea; border: 0; color: var(--green-900); border-radius: 10px; }
.date-block .d { font-size: 2rem; }
.date-block .m { font-size: .7rem; letter-spacing: .12em; margin-top: .2rem; }
.event-card { gap: 1.5rem; }
.page-head { background: #eef2e9; border-bottom: 0; padding: 2.5rem 0 3rem; }
.page-head h1 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
.page-head .lead { font-size: 1.125rem; max-width: 55ch; margin-top: 1rem; }
.breadcrumbs { font-size: .875rem; margin-bottom: 1.4rem; }
.filters, .panel, .admin-nav { padding: 1.5rem; box-shadow: 0 4px 20px #123d3204; }
.filters h2, .panel h2 { font-size: 1.2rem; }
.tabs { gap: 1rem; border-bottom-width: 1px; }
.tabs a { font-size: .95rem; padding: .75rem .3rem; border-bottom-width: 3px; }
.card-photo { margin: -1.6rem -1.6rem .5rem; height: 175px; border-radius: 16px 16px 0 0; }
.steps li { padding: 1.5rem; }
.steps li::before { background: #eaf1e5; color: var(--green-900); border-radius: 8px; }
.community-hero .art { border-radius: 20px; }
.funding-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; gap: 2rem 4rem; }
.funding-inner p { font-size: .95rem; color: var(--ink-soft); }
.footer { background: #10382e; padding: 4rem 0 2rem; }
.footer-brand { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid #ffffff26; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.8rem; color: #fff; }
.footer-brand p { font-size: 1rem; margin: .4rem 0 0; color: #c9d9ce; }
.footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #c1d5be; margin-bottom: 1.2rem; }
.footer li + li { margin-top: .65rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-note { font-size: .8125rem; max-width: none; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }
@media (max-width: 59.99rem) {
  .nav ul { gap: 0; }
  .nav a { padding: .85rem 1rem; }
  .nav a[aria-current='page'] { border-left-color: var(--green-700); }
  .hero-grid { padding-top: 2.5rem; gap: 2rem; }
  .hero h1 { max-width: 18ch; }
  .hero-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 39.99rem) {
  .proto-banner .container { align-items: flex-start; font-size: .75rem; }
  .header-inner { gap: .25rem; }
  .header-tools { border-top: 1px solid #edf0eb; padding-top: .5rem; margin-top: .3rem; }
  .header-tools > a[href='/signin'] { margin-left: 0; border: 0; }
  .hero h1 { font-size: 2.75rem; }
  .hero-photo { border-radius: 55px 12px 12px 12px; }
  .home-search .finder { padding: 1.25rem; }
  .section { padding: 3rem 0; }
  .section-head { gap: .8rem; margin-bottom: 1.5rem; }
  .tile { padding: 1.5rem; }
  .event-card { gap: .85rem; padding: 1.15rem; }
  .date-block { min-width: 3.5rem; padding: .5rem; }
  .card h3 { font-size: 1.25rem; }
  .footer { padding-top: 3rem; }
}
@media print { .home-search, .hero-actions { display: none; } .hero { background: white; } }

/* A richer regional palette: evergreen, Atlantic blue, clay and soft gold. */
:root {
  --green-900: #103e40;
  --green-700: #176563;
  --green-600: #237b73;
  --green-100: #e2f1eb;
  --lough-700: #284e82;
  --lough-100: #e7eefb;
  --heather-700: #79435f;
  --heather-100: #f6e9ef;
  --paper: #fdfbf8;
  --stone: #f0f4f0;
  --line: #d9e4df;
  --gorse: #efbc64;
}
.hero { background: linear-gradient(115deg, #e9f3ed 0%, #f3f3e7 65%, #f8ead9 100%); }
.home-search { background: #f0f2e6; }
.hero h1 span { color: #26736c; }
.hero-photo, .hero-photo figcaption { background: #103e40; }
.hero-photo { border: 5px solid #ffffffa6; box-shadow: 0 20px 50px #103e401c; }
.nav a[aria-current='page'] { color: #13585a; border-bottom-color: #cf8644; }
.tile:first-child { background: #f2f8f3; border-color: #cbded0; }
.tile:nth-child(2) { background: #f1f5fc; border-color: #d4def0; }
.tile:nth-child(3) { background: #fcf4ea; border-color: #eadac4; }
.tile:first-child svg { background: #dceee0; color: #1c674a; }
.tile:nth-child(2) svg { background: #dfe9fa; color: #284e82; }
.tile:nth-child(3) svg { background: #f5e3c9; color: #85531d; }
.section-stone { background: #eef3ef; }
.badge-green { background: #e3f1e6; color: #24573c; border-color: #c0d8c4; }
.badge-blue { background: #e7eefb; color: #284e82; border-color: #c8d6ef; }
.badge-heather { background: #f5e8ef; color: #79435f; border-color: #e7cad8; }
.page-head { background: linear-gradient(115deg, #e6f1ed, #f3f2e4); border-bottom: 1px solid #d4e3da; }
.directory-discover { padding-top: 2rem; }
.discover-heading { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.discover-heading .eyebrow { margin: 0; }
.discover-heading > a { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 700; text-decoration: none; }
.discover-heading svg { width: 18px; height: 18px; }
.category-shortcuts { display: flex; flex-wrap: wrap; gap: .6rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.category-shortcuts a { display: inline-flex; align-items: center; min-height: 42px; padding: .5rem .9rem; border: 1px solid #d5dfdc; border-radius: 999px; background: #fff; color: #315954; font-size: .85rem; text-decoration: none; }
.category-shortcuts a:nth-child(3n+2) { background: #edf3fb; color: #284e82; border-color: #d3deed; }
.category-shortcuts a:nth-child(3n+3) { background: #fbf0e5; color: #784a23; border-color: #ebd7c3; }
.category-shortcuts a[aria-current='page'] { background: #176563; color: #fff; border-color: #176563; box-shadow: 0 3px 8px #17656320; }
.category-shortcuts a:hover { outline: 1px solid currentColor; outline-offset: 2px; }
.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; align-items: center; }
.filter-chip { display: inline-flex; align-items: center; gap: .7rem; padding: .45rem .7rem; min-height: 38px; border: 1px solid #bed6cc; border-radius: 7px; background: #e5f0e9; color: #214f42; text-decoration: none; font-size: .85rem; }
.filter-chip span { font-size: 1.15rem; line-height: 1; }
.clear-filters { font-size: .85rem; padding: .5rem; }
.view-switch { display: inline-flex; padding: 3px; background: #eaf0ec; border-radius: 8px; gap: 2px; }
.view-switch button { border: 0; background: transparent; color: #3c5d52; font: inherit; font-size: .85rem; font-weight: 700; border-radius: 6px; padding: .5rem .8rem; cursor: pointer; min-height: 36px; }
.view-switch button[aria-pressed='true'] { background: #fff; color: #103e40; box-shadow: 0 1px 5px #103e4018; }
.directory-results[data-layout='list'] { grid-template-columns: 1fr; }
.directory-results[data-layout='list'] .card { border-left: 4px solid #3d8a7e; }
.directory-layout .filters { border-top: 4px solid #176563; background: #fff; }
.share-card { margin-left: auto; text-decoration: none; }
.card-foot { width: 100%; }
.footer { background: #103b3e; }
.footer-brand strong { color: #f4d99f; }
[hidden] { display: none !important; }
@media (min-width: 60rem) { .directory-layout > .filters { position: sticky; top: 1.5rem; } }
@media (max-width: 39.99rem) { .discover-heading { gap: .75rem; } .category-shortcuts { gap: .5rem; } .category-shortcuts a { font-size: .8rem; } }

/* Source photography and programme information */
.programme-photo { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.programme-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.programme-photo figcaption { padding: .85rem 1.1rem; color: var(--ink-soft); font-size: .85rem; line-height: 1.5; }
.programme-feature { background: #faf3e8; }
.project-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin-top: 2rem; }
.lab-panels { margin-top: 2rem; align-items: stretch; }
.lab-panels .panel { margin: 0; padding: 2rem; border-top: 4px solid #237b73; }
.lab-panels .panel:nth-child(2) { border-top-color: #735b9c; }
.lab-panels .panel > svg { width: 36px; height: 36px; color: var(--green-700); margin-bottom: 1.25rem; }
.partner-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; gap: .85rem; margin: 2rem 0; }
.partner-list li { margin: 0; background: #fff; border: 1px solid var(--line); padding: 1.2rem; border-radius: 10px; font-weight: 700; color: var(--green-900); }
.event-period { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.event-period a { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: .9rem; }
.event-period a[aria-current='page'] { background: var(--green-700); color: white; border-color: var(--green-700); }
@media (max-width: 47.99rem) { .project-gallery, .partner-list { grid-template-columns: 1fr; } .lab-panels .panel { padding: 1.5rem; } }

/* Landmark photography: panoramic banners and linked area cards. */
.region-banner { margin: 2rem 0 0; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.region-banner img { width: 100%; height: clamp(12rem, 28vw, 24rem); object-fit: cover; object-position: 50% 48%; }
.region-banner figcaption { padding: .7rem 1rem; font-size: .8rem; color: var(--ink-soft); }
.community-page-head .community-hero { display: flex; flex-direction: column; align-items: stretch; gap: 2rem; }
.community-page-head .community-hero .art { order: -1; width: 100%; border-radius: 18px; background: white; }
.community-page-head .community-hero .photo img { aspect-ratio: auto; height: clamp(15rem, 30vw, 27rem); object-fit: cover; }
.community-page-head .community-hero .lead { max-width: 75ch; }
.community-page-head .community-hero .photo figcaption { padding: .8rem 1rem; font-size: .8rem; }
.community-photo-grid { margin-top: 2rem; }
.community-photo-card .eyebrow { margin: .2rem 0; font-size: .65rem; }
.community-photo-card .eyebrow::before { display: none; }
.photo-credit-link { position: relative; z-index: 2; align-self: start; font-size: .75rem; color: var(--ink-soft); margin-top: auto; padding-top: .4rem; }
.photo-credit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin: 2rem 0; }
.photo-credit-grid .panel { margin: 0; }
.photo-credit-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: 1.5rem; }
.photo-credit-grid p, .photo-credit-grid a { font-size: .9rem; }
@media (max-width: 47.99rem) { .photo-credit-grid { grid-template-columns: 1fr; } .community-page-head .community-hero { gap: 1.5rem; } }

/* Community participation: a second navigation level and consistent workspaces. */
.community-toolbar { background: #e6efea; border-bottom: 1px solid #cadbd1; font-size: .82rem; }
.community-toolbar > .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .65rem; padding-bottom: .65rem; }
.community-toolbar a { color: #205951; text-decoration: none; }
.community-toolbar a:hover { text-decoration: underline; }
.community-toolbar .community-choice { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; }
.community-choice svg { width: 16px; height: 16px; flex-shrink: 0; }
.community-toolbar nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; justify-content: flex-end; }
.language-notice { padding-top: .8rem; padding-bottom: .8rem; font-size: .85rem; color: var(--ink-soft); }
.account-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.account-shortcuts a { display: block; padding: 1.15rem; border: 1px solid #ccddd4; border-radius: 12px; background: #eff6ef; text-decoration: none; color: var(--green-900); font-weight: 700; }
.account-shortcuts a:nth-child(3n+2) { background: #edf2fa; border-color: #d1def0; }
.account-shortcuts a:nth-child(3n+3) { background: #fbf1e5; border-color: #eadcc7; }
.account-shortcuts a:hover { border-color: var(--green-700); }
.feature-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 2rem 0; }
.management-list, .contribution-list { list-style: none; padding: 0; }
.management-list li, .contribution-list li { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: .6rem; }
.management-list a, .contribution-list a { font-weight: 700; }
.browse-search { margin: 0 0 2rem; }
.post-thumb { border-radius: 10px; overflow: hidden; }
.post-thumb img { width: 100%; height: 190px; object-fit: cover; }
.translation-source { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .95rem; max-height: 24rem; overflow: auto; background: #eef3ed; padding: 1.5rem; border-radius: 12px; }
.prose .programme-photo { margin-bottom: 2rem; }
.panel form { margin-top: 1rem; }
.nav ul { gap: 1.3rem; }
@media (max-width: 59.99rem) { .community-toolbar > .container { align-items: flex-start; flex-direction: column; gap: .55rem; } .community-toolbar nav { justify-content: flex-start; gap: .5rem 1rem; } .account-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 39.99rem) { .feature-stats, .account-shortcuts { grid-template-columns: 1fr; } .community-toolbar nav a { min-height: 30px; display: inline-flex; align-items: center; } .management-list li { align-items: flex-start; } .tile h2 { font-size: 1.55rem; } }
/* Keep absolutely positioned screen-reader labels inside horizontal table scrollers. */
.table-wrap { position: relative; max-width: 100%; }
.admin-layout .section { padding: 2rem 0; }
