/* Fonmon Castle: one stylesheet. The palette and fonts are the old site's (Typekit: fertigo-pro for headings, museo-sans for text). */

:root {
  --blue1: #3d4e5b; --blue2: #4e616e; --blue3: #afbfd9; --blue4: #e5eeff;
  --green1: #657939; --green2: #78aa48; --green3: #4a8e77; --green4: #d4fac8; --green5: #263437;
  --brown1: #77746d; --brown2: #c4b8a2; --brown3: #e0ddd0; --brown4: #f7f1e7;
  --yellow1: #fdaf01; --yellow2: #f4ce67; --yellow3: #ffe867; --yellow4: #fffae2;
  --red1: #a83636; --red2: #c40d0d;
  --black1: #414141; --black2: #797979; --black3: #f2f2f2; --black4: #b2b2b2;
  --blue334: #73a9ce57; --green534: #26343757;
  --black34: #00000057; --black50: #00000080; --black75: #000000bb;
  --font-heading: fertigo-pro, Georgia, serif;
  --font-text: museo-sans, system-ui, sans-serif;
  --svg-blue1: url(#blue1); --svg-blue2: url(#blue2); --svg-brown1: url(#brown1); --svg-brown2: url(#brown2); --svg-green1: url(#green1); --svg-green2: url(#green2);
  --header-h: 7rem;
  --highlight-h: 9.5rem;
  --font-size-0: .75rem; --font-size-1: .875rem; --font-size-2: 1rem; --font-size-3: 1.125rem; --font-size-4: 1.375rem; --font-size-5: 1.5rem; --font-size-6: 1.75rem; --font-size-7: 2.125rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font-text); font-size: 1rem; font-weight: 500; line-height: 1.25; color: var(--black1); background: #fff; }
img, video, iframe { max-width: 100%; }
a { color: var(--blue2); }
a:hover { color: var(--red1); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--green5); line-height: 1.2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.container { max-width: 75rem; margin-inline: auto; padding-inline: 1rem; }
.flex { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; }
.body { max-width: 50em; padding-block: 1.5rem; }
.body.intro { text-align: center; }
.block--section { margin: 0; }

.button { display: inline-block; text-align: center; background: var(--red1); color: #fff; text-decoration: none; padding: .5em 1em; border-radius: 1em; transition: background-color .2s linear; }
.button:hover { background: var(--red2); color: #fff; }
.buttons { justify-content: center; gap: 1rem; padding-block: 1rem; }
/* rows of buttons (a section in the row style holding Link items, or a list of Links), as the old site's: stacked on a phone, side by side from 800px, and every second one green */
.block--row > .flex:has(> a.button), .buttons { padding: 1.5em 1em; gap: 0; }
.block--row > .flex > a.button, .buttons > a.button { flex: 0 0 100%; max-width: 25em; margin: 0 auto; padding: .75em; font-size: var(--font-size-3); }
.block--row > .flex > a.button:nth-child(n+2), .buttons > a.button:nth-child(n+2) { margin-top: 1.5em; }
.block--row > .flex > a.button:nth-child(2n+2), .buttons > a.button:nth-child(2n+2) { background-color: var(--green1); }
.block--row > .flex > a.button:nth-child(2n+2):hover, .buttons > a.button:nth-child(2n+2):hover { background-color: var(--green3); }
@media (min-width: 50em) {
  .block--row > .flex:has(> a.button), .buttons { justify-content: space-around; }
  .block--row > .flex > a.button, .buttons > a.button { flex: 0 0 auto; margin: 0; }
  .block--row > .flex > a.button:nth-child(n+2), .buttons > a.button:nth-child(n+2) { margin: 0; }
  .home .block--row > .flex > a.button { flex: 0 0 48%; }
}

/* words in a row or on their own on the home page (We welcome dogs..., Embark on...): the heading font, centred */
.block--row > .flex > .block.body, .home > .block.body { flex: 0 0 100%; max-width: none; text-align: center; font-family: var(--font-heading); font-size: var(--font-size-3); padding: .5rem; margin: 1em auto; }
.block--row > .flex > .block.body p, .home > .block.body p { font-size: inherit; line-height: inherit; margin: 0; }
@media (min-width: 50em) { .block--row > .flex > .block.body, .home > .block.body { font-size: var(--font-size-4); } }

/* a card in a row (the home page's Day visit and Upcoming events): a dark box of centred white words under a picture with the title in a translucent green bar across the foot of it, two to a row from 800px.
   The card's words are laid out on the card itself (display: contents) so the title shares the picture's cell of the grid and sits over it */
.block--row > .flex > .card { display: grid; grid-template-columns: 100%; align-content: start; flex: 0 0 100%; max-width: 25em; margin: 0 auto 1em; background-color: var(--green5); color: #fff; text-align: center; border-radius: 0; }
.block--row > .flex:has(> .card), .block--row > .flex:has(> a.image-link) { padding-inline: 0; }
.block--row > .flex > .card > img { grid-area: 1 / 1; }
.block--row > .flex > .card > .card__text { display: contents; }
.block--row > .flex > .card h3 { grid-area: 1 / 1; align-self: end; margin: 0; padding: .625rem; background-color: var(--green534); color: #fff; font-size: var(--font-size-3); font-weight: 700; text-transform: uppercase; }
.block--row > .flex > .card .card__text > :not(h3) { grid-column: 1; max-width: 20em; margin: 0 auto; padding-inline: 1.5em; }
.block--row > .flex > .card .card__text > p { margin-top: .75em; font-family: var(--font-heading); font-size: var(--font-size-3); }
.block--row > .flex > .card .card__text > p:last-child { margin-bottom: .75em; }
.block--row > .flex > .card .button { border: solid 1px #fff; font-family: var(--font-text); font-size: var(--font-size-2); }
@media (min-width: 50em) {
  .block--row > .flex > .card { flex: 0 0 49%; max-width: none; margin: 0 0 1em; }
  .block--row > .flex > .card .card__text > p { font-size: var(--font-size-4); }
}

/* a Link with a picture (the home page's things to do): the picture with its name over the foot of it, which a dark bar crosses on hover; three to a row from 800px */
a.image-link { display: block; max-width: 25em; margin: 0 auto 1em; color: #fff; text-decoration: none; }
.block--row > .flex > a.image-link { flex: 0 0 100%; }
a.image-link figure { margin: 0 auto; padding: 0; position: relative; }
a.image-link figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
a.image-link figcaption { position: absolute; bottom: 0; left: 0; width: 100%; padding: .625rem; text-align: center; box-sizing: border-box; background-color: var(--green534); color: #fff; font-size: var(--font-size-3); font-weight: 700; text-transform: uppercase; }
a.image-link figcaption::before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 100%; background-color: var(--black75); transition: width .3s ease-in-out; }
a.image-link:hover figcaption::before { width: 100%; }
a.image-link figcaption span { position: relative; z-index: 2; }
@media (min-width: 50em) {
  .block--row > .flex > a.image-link { flex: 0 0 32%; margin: 0; }
  .block--row > .flex > a.image-link:nth-child(-n+3) { margin-bottom: 2%; }
}
@media (min-width: 68.75em) { a.image-link figcaption { font-size: var(--font-size-5); } }

/* header: the quick strip, then the logo and the highlighted item, then the main menu in a bar of its own (the old site's layout) */
.header-outer { position: relative; z-index: 50; }
.site-header { background: var(--green5); color: #fff; position: relative; }
.site-header a { color: #fff; text-decoration: none; }

/* the strip above the header: a translucent black over the header's green, three equal parts on a small screen */
.quick-menu { background-color: var(--black34); font-size: var(--font-size-1); }
.quick-menu ul { list-style: none; margin: 0 auto; padding: 0; }
.quick-menu li { flex: 1 1 33.3333%; display: flex; text-align: center; }
.quick-menu li a { flex: 1; display: flex; align-items: center; justify-content: center; padding: .75rem; line-height: 1rem; transition: background-color .2s linear; }
.quick-menu li a:hover { background-color: var(--black34); color: #fff; }
.quick-menu li a.button { border-radius: 0; background: var(--red1) url(/img/external.svg) no-repeat top .1em right .1em; background-size: 1em; }
.quick-menu li a.button:hover { background-color: var(--red2); }

/* the logo, and the highlighted Snippet beside it (on a small screen the highlight is in the open menu instead) */
/* the row of the logo and the highlight keeps its 1.5rem at each side outside the 75rem (content-box, as the old site's): on a wide screen the highlight lines up with the Book tickets button and the last link, and on a narrow one the highlight or the menu button never touches the edge of the screen */
.site-header__bar { align-items: center; flex-wrap: nowrap; gap: 1rem; padding: .8125rem 1.5rem 1.0625rem; box-sizing: content-box; }
.logo { flex: 0 0 auto; display: block; width: 3.75rem; }
.logo img { display: block; width: 100%; height: auto; }
/* the highlight is a box of one shape whatever is put in it: a fixed height, the picture cut to fill its half (around the focal point set on the file), and the words cut short (a title of two lines, a text of three) */
.header-highlight { line-height: 1.25; display: flex; align-items: stretch; height: var(--highlight-h); background-color: var(--blue3); font-size: .75em; width: 100%; margin-bottom: 1em; overflow: hidden; }
.header-highlight img { flex: 0 0 50%; width: 50%; height: 100%; object-fit: cover; display: block; }
.header-highlight > span { flex: 1 1 50%; min-width: 0; padding: .5em 1em; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.header-highlight .title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 1.125em; font-weight: 700; text-transform: uppercase; }
.header-highlight .text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: .875em; }
.site-header__bar .header-highlight { display: none; }

/* the menu button: three bars that become a cross when the menu is open */
[data-island="NavToggle"] { flex: 0 0 auto; margin-left: auto; display: block; }
button.mainnav { display: block; font-size: 1em; background-color: transparent; border: 0; color: #fff; text-indent: -99px; overflow: hidden; width: 32px; height: 32px; cursor: pointer; padding: 0; }
button.mainnav span { display: block; width: 100%; height: 3px; background-color: #fff; font-size: 0; border-radius: 2px; transition: background-color .2s ease-out .6s; }
button.mainnav span::before, button.mainnav span::after { content: ""; display: block; width: 100%; height: 3px; background-color: #fff; position: relative; border-radius: 2px; transition: transform .4s ease-out, top .2s cubic-bezier(1, 0, 0, .7) .4s; }
button.mainnav span::before { top: -10px; }
button.mainnav span::after { top: 7px; }
button.mainnav.open span, button.mainnav[aria-expanded="true"] span { background-color: transparent; transition: background-color .2s ease-out; }
button.mainnav.open span::before, button.mainnav[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; transition: transform .4s ease-in-out .4s, top .2s cubic-bezier(1, 0, 0, .7) .2s; }
button.mainnav.open span::after, button.mainnav[aria-expanded="true"] span::after { transform: rotate(-45deg); top: -3px; transition: transform .4s ease-in-out .4s, top .2s cubic-bezier(1, 0, 0, .7) .2s; }
@media (min-width: 21.875em) { button.mainnav { width: 43px; height: 43px; } }

/* the main menu: a bar of its own below the logo. On a small screen it opens over the page from the menu button, and each menu with a drop-down is collapsed until it is clicked */
.site-nav { display: none; background-color: color-mix(in srgb, #fff 95%, transparent); }
.site-header[data-open="true"] .site-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.site-nav .header-highlight { display: flex; margin: 1em; width: auto; }
@media (min-width: 21.875em) { .site-nav .header-highlight { font-size: .9em; } }
@media (min-width: 25em) { .site-nav .header-highlight { font-size: 1em; } }
@media (min-width: 37.5em) { .site-nav .header-highlight { font-size: .9em; } }
@media (min-width: 43.75em) { .site-nav .header-highlight { font-size: 1em; } }
.site-nav__list { list-style: none; margin: 0 auto; padding: 0; }
.site-nav__list li { margin: 2px 0 0; position: relative; }
.site-nav__list a, .site-nav__list button { display: block; width: 100%; padding: .8125rem 1rem; font: inherit; font-size: var(--font-size-2); font-weight: 500; line-height: 1rem; text-align: left; border: 0; cursor: pointer; background-color: var(--green5); color: #fff; transition: background-color .2s linear; }
.site-nav__list li:hover > a, .site-nav__list li:hover > button, .site-nav__list li.sub-menu-open > button { background-color: var(--red1); }
/* a menu with a drop-down: an arrow that turns over when it is open */
.site-nav__list button.parent { padding-right: 2.5rem; position: relative; }
.site-nav__list button.parent::after { content: ""; display: block; width: 1rem; height: 1rem; position: absolute; top: calc(50% - .5rem); right: 1rem; background: url(/img/icons/expand.svg) center / contain no-repeat; transition: transform .2s linear; }
.site-nav__list li.sub-menu-open > button.parent::after { transform: rotate(180deg); }
.site-nav__list ul { list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .4s ease-in-out; }
.site-nav__list li.sub-menu-open > ul { max-height: 30em; }
.site-nav__list ul li { text-transform: uppercase; }
/* the colour of a menu's drop-down: Things to do is blue, Visitor info green (the class is the item's name) */
.site-nav__list li.things-to-do li a { background-color: var(--blue3); }
.site-nav__list li.things-to-do li:hover > a { background-color: var(--blue2); }
.site-nav__list li.visitor-info li a, .site-nav__list li.plan-your-visit li a { background-color: var(--green3); }
.site-nav__list li.visitor-info li:hover > a, .site-nav__list li.plan-your-visit li:hover > a { background-color: var(--green1); }
/* the red items of a drop-down: What's here (the Things to do page itself) and Book your day ticket */
.site-nav__list li.things-to-do li.whats-here a, .site-nav__list li.visitor-info li.book-your-day-ticket a { background-color: var(--red1); background-image: none; padding-left: 1rem; text-transform: none; }
.site-nav__list li.things-to-do li.whats-here:hover > a, .site-nav__list li.visitor-info li.book-your-day-ticket:hover > a { background-color: var(--red2); }
/* an icon for each of the things to do, by the item's name */
.site-nav__list li.things-to-do li a { background-position: center left 1rem; background-repeat: no-repeat; background-size: 1.5rem auto; padding-left: 3.25rem; }
.site-nav__list li.dinosaurs a, .site-nav__list li.jurassic-wales a { background-image: url(/img/icons/dinosaur.svg); }
.site-nav__list li.step-through-time a, .site-nav__list li.medieval-grange a { background-image: url(/img/icons/time.svg); }
.site-nav__list li.step-into-the-wild a { background-image: url(/img/icons/wild.svg); }
.site-nav__list li.castle-gardens a, .site-nav__list li.castle-grounds a { background-image: url(/img/icons/gardens.svg); }
.site-nav__list li.interactive-story-trail a, .site-nav__list li.welsh-folklore-trail a { background-image: url(/img/icons/story.svg); }
.site-nav__list li.eating-drinking a { background-image: url(/img/icons/eating.svg); }
.site-nav__list li.disc-golf a { background-image: url(/img/icons/disc.svg); }
.site-nav__list li.bespoke-catering a { background-image: url(/img/icons/catering.svg); }
.site-nav__list li.medieval-farm a, .site-nav__list li.medieval-village a { background-image: url(/img/icons/medieval.svg); }
.site-nav__list li.true-aim-activities a { background-image: url(/img/icons/trueaim.svg); }

@media (max-width: 57.8124em) {
  body:has(.site-header[data-open="true"])::after { content: ""; position: fixed; inset: 0; background-color: var(--black50); z-index: 40; }
  body:has(.site-header[data-open="true"]) main, body:has(.site-header[data-open="true"]) .site-footer { filter: blur(3px) grayscale(.6); }
}
@media (min-width: 50em) {
  .quick-menu ul { justify-content: flex-end; }
  .quick-menu li { flex: 0 0 auto; }
  .quick-menu li a, .quick-menu li a.button { padding-inline: 4rem; }
  .logo { width: 5.6875rem; }
  .site-header__bar .header-highlight { display: flex; margin: 0 0 0 auto; width: 30em; max-width: 60%; background-color: var(--blue334); }
  .site-header__bar .header-highlight { --highlight-h: 8.5rem; }
  .site-header__bar .header-highlight .title { font-size: 1em; }
  .site-header__bar .header-highlight .text { font-size: .95em; }
  .site-nav .header-highlight { display: none; }
}
@media (min-width: 53.125em) {
  .site-header__bar .header-highlight .title { font-size: 1.125em; }
}
@media (min-width: 71.875em) {
  .site-header__bar .header-highlight { font-size: 1em; }
  .site-header__bar .header-highlight .text { font-size: .875em; }
}
@media (min-width: 57.8125em) {
  [data-island="NavToggle"] { display: none; }
  .site-nav, .site-header[data-open="true"] .site-nav { display: block; position: relative; top: auto; max-height: none; overflow: visible; background-color: var(--black34); }
  /* the items keep the width of their own words and are spread across the bar, the first at its left edge and the last at its right; a drop-down lines up under its button */
  .site-nav__list { display: flex; flex-wrap: nowrap; justify-content: space-between; }
  .site-nav__list > li { flex: 0 0 auto; margin: 0; text-align: left; }
  .site-nav__list > li > a, .site-nav__list > li > button { background-color: transparent; text-align: left; white-space: nowrap; font-size: var(--font-size-1); }
  .site-nav__list > li:hover > a, .site-nav__list > li:hover > button, .site-nav__list > li.sub-menu-open > button { background-color: var(--red1); }
  .site-nav__list ul { position: absolute; top: 100%; left: 0; width: auto; min-width: 100%; z-index: 5; background-color: #fff; box-shadow: 0 6px 12px var(--black34); }
  .site-nav__list ul a { white-space: nowrap; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 57.8125em) {
  /* a mouse opens a drop-down by hovering; a click (or the keyboard) opens it too */
  .site-nav__list li:hover > ul { max-height: 30em; }
  .site-nav__list li:hover > button.parent::after { transform: rotate(180deg); }
}
@media (min-width: 62.5em) { .site-nav__list > li > a, .site-nav__list > li > button { font-size: var(--font-size-2); } }

/* banners */
.banner { position: relative; min-height: 8rem; background: var(--blue3); overflow: hidden; display: grid; align-items: center; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner h1 { position: relative; margin: 0; padding: 1.5rem 1rem; text-align: center; color: #fff; text-transform: uppercase; font-family: var(--font-text); font-size: 1.5rem; background: color-mix(in srgb, var(--blue2) 72%, transparent); }
.banner--plain h1 { background: var(--blue3); }
.map-banner { position: relative; min-height: 17rem; text-align: center; background: var(--blue3); }
.map-banner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-banner > div { position: absolute; inset: 0 0 auto 0; }
.map-banner h1 { margin: 0; padding: .8rem; color: #fff; text-transform: uppercase; font-family: var(--font-text); font-size: 1.125rem; background: color-mix(in srgb, var(--blue2) 85%, transparent); }
@media (min-width: 37.5em) { .map-banner { min-height: 25rem; } }

/* the home page's banner, as the old site's: the film fills the width, and from 800px up the strapline (the first block, a rich text) sits above it as a red strip of white capitals; on a phone only the film shows */
.home-banner { position: relative; background: var(--green5); color: #fff; text-align: center; }
.home-banner .block { margin: 0; max-width: none; padding: 0; }
.home-banner .block--video video { display: block; width: 100%; }
.home-banner .block--richtext, .home-banner .block.body { display: none; }
.home-banner .block.body p { font-size: inherit; line-height: inherit; margin: 0; }
@media (min-width: 50em) {
  .home-banner .block--richtext, .home-banner .block.body { display: block; background-color: var(--red1); font-family: var(--font-heading); font-size: var(--font-size-6); text-transform: uppercase; font-weight: 700; padding: .75rem; text-align: center; }
}

/* content */
.standard .body, .map .body { text-align: left; }
.body img { height: auto; }
.grid { list-style: none; margin: 0 auto; padding: 1rem; max-width: 75rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.card { background: var(--brown4); border-radius: .5rem; overflow: hidden; display: flex; flex-direction: column; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.card__text { padding: 1rem; }
.card__text h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.card__text .subtitle { margin: 0 0 .5rem; font-weight: 700; color: var(--green1); }
.card__text a { text-decoration: none; }
.block--row > .flex > *, .block--columns > .flex > * { flex: 1 1 18rem; }

/* events */
.events { display: grid; gap: 1.5rem; max-width: 50em; padding-block: 1.5rem; }
.event-item { display: grid; background: var(--brown4); border-radius: .5rem; overflow: hidden; }
.event-item img { display: block; width: 100%; height: auto; }
.event-item .text { padding: 1rem 1.25rem; }
.event-item h2 { margin: 0 0 .25rem; font-size: 1.5rem; }
.event-item .when { margin: 0 0 .75rem; color: var(--green1); }
.event-item .summary { white-space: normal; }
@media (min-width: 40em) { .event-item { grid-template-columns: 17rem 1fr; } .event-item img { height: 100%; object-fit: cover; } }

/* FAQs */
.faqs { max-width: 50em; margin-inline: auto; padding: 1rem; }
.faqs details { border-bottom: 1px solid var(--brown3); padding: .75rem 0; }
.faqs summary { cursor: pointer; font-weight: 700; color: var(--green5); }
.faqs .answer { padding-top: .5rem; }
.faq-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.faq-tools input { flex: 1 1 14rem; padding: .5rem .75rem; border: 1px solid var(--brown2); border-radius: 1em; font: inherit; }
.faq-tools button { border: 1px solid var(--blue2); background: #fff; color: var(--blue2); border-radius: 1em; padding: .25rem .9rem; font: inherit; cursor: pointer; }
.faq-tools button[aria-pressed="true"] { background: var(--blue2); color: #fff; }

/* footer: shortcut links over a dark part holding four sections, then the logo, the footer links and the copyright (the old site's layout) */
.site-footer .site-footer-inner { background: var(--green5); color: #fff; text-align: center; }
.site-footer .container { position: relative; z-index: 2; padding: .8125rem 1.5rem 1.0625rem; box-sizing: content-box; }
.site-footer .footer-faqs.container { box-sizing: border-box; }

/* the shortcut links (Links tagged footer-faqs): a white square with the icon on the left that grows over the whole link on hover */
.site-footer .footer-faqs.flex { justify-content: space-between; padding: 1.5em 1em; }
.footer-faqs > a { display: block; position: relative; background-color: var(--green1); border: solid 1px var(--green1); color: #fff; margin-bottom: 1em; text-decoration: none; box-sizing: border-box; font-size: 1rem; flex: 0 0 100%; }
.footer-faqs a > span { display: block; width: 100%; font-weight: 700; }
.footer-faqs a > span::before { content: ""; background-color: #fff; display: inline-block; position: absolute; top: 0; left: 0; width: 1.75em; height: 100%; z-index: 1; transition: width ease-in-out .3s; }
.footer-faqs a:hover > span::before { width: 100%; }
.footer-faqs a > span span { position: relative; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; z-index: 2; padding: .25em .75em .25em 0; }
.footer-faqs a > span span::before { content: ""; display: inline-block; flex: 0 0 1.75em; width: 1.75em; height: 1.75em; margin-right: .75em; background-repeat: no-repeat; background-position: center; background-size: 1.5em 1.5em; filter: var(--svg-green1); }
.footer-faqs a:hover { color: var(--green1); text-decoration: none; }
/* the colours: three groups of three on a small screen, a colour for each column from 800px */
@media (max-width: 49.9375em) {
  .footer-faqs > a:nth-child(n+4):nth-child(-n+6) { background-color: var(--brown1); border-color: var(--brown1); }
  .footer-faqs > a:nth-child(n+4):nth-child(-n+6) > span span::before { filter: var(--svg-brown1); }
  .footer-faqs > a:nth-child(n+4):nth-child(-n+6):hover { color: var(--brown1); }
  .footer-faqs > a:nth-child(n+7) { background-color: var(--blue2); border-color: var(--blue2); }
  .footer-faqs > a:nth-child(n+7) > span span::before { filter: var(--svg-blue2); }
  .footer-faqs > a:nth-child(n+7):hover { color: var(--blue2); }
}
@media (min-width: 50em) {
  .footer-faqs > a { flex: 0 0 32%; }
  .footer-faqs > a:nth-child(3n+2) { background-color: var(--brown1); border-color: var(--brown1); }
  .footer-faqs > a:nth-child(3n+2) > span span::before { filter: var(--svg-brown1); }
  .footer-faqs > a:nth-child(3n+2):hover { color: var(--brown1); }
  .footer-faqs > a:nth-child(3n+3) { background-color: var(--blue2); border-color: var(--blue2); }
  .footer-faqs > a:nth-child(3n+3) > span span::before { filter: var(--svg-blue2); }
  .footer-faqs > a:nth-child(3n+3):hover { color: var(--blue2); }
}
/* the icons (a Link is tagged with one of these names) */
.footer-faqs a.bbq > span span::before { background-image: url(/img/faq-icons/bbq.svg); }
.footer-faqs a.footwear > span span::before { background-image: url(/img/faq-icons/footwear.svg); }
.footer-faqs a.dog > span span::before { background-image: url(/img/faq-icons/dog.svg); }
.footer-faqs a.map > span span::before { background-image: url(/img/faq-icons/map.svg); }
.footer-faqs a.pram > span span::before { background-image: url(/img/faq-icons/pram.svg); }
.footer-faqs a.rain > span span::before { background-image: url(/img/faq-icons/rain.svg); }
.footer-faqs a.clock > span span::before { background-image: url(/img/faq-icons/clock.svg); }
.footer-faqs a.toilets > span span::before { background-image: url(/img/faq-icons/toilets.svg); }
.footer-faqs a.wheelchair > span span::before { background-image: url(/img/faq-icons/wheelchair.svg); }

/* the four sections: on a small screen each is a bar that opens when its heading is clicked (only once the script has run: with none they are all open), from 800px a grid of three columns */
.site-footer .grid > [data-island] { display: none; }
.site-footer .grid { padding: 3.75em 0 2.25em; max-width: 75rem; margin-inline: auto; list-style: none; display: block; gap: 0; }
.site-footer .footer-section { background-color: var(--blue334); color: #fff; text-align: left; margin-bottom: .75rem; overflow: hidden; }
.js-footer .site-footer .footer-section { max-height: 2.875rem; transition: max-height .2s linear; }
.js-footer .site-footer .footer-section.open { max-height: 60rem; }
.site-footer .footer-section > * { padding: .625rem 1.25rem; box-sizing: border-box; }
.site-footer .footer-section h2 { font-family: var(--font-text); font-size: var(--font-size-4); font-weight: 700; margin: 0; position: relative; width: 100%; color: #fff; }
.js-footer .site-footer .footer-section h2 { cursor: pointer; }
.js-footer .site-footer .footer-section h2::after { content: ""; display: block; width: 1.5rem; height: 1.5rem; position: absolute; top: calc(50% - .75rem); right: 1.5rem; background: url(/img/icons/expand.svg) center / contain no-repeat; transition: transform .2s linear; }
.js-footer .site-footer .footer-section.open h2::after { transform: rotate(180deg); }
.site-footer .footer-section p { font-size: .875em; margin: 0 0 1em; line-height: 1.25; }
.site-footer .footer-section p a { color: var(--green2); text-decoration: none; }
.site-footer .footer-section p a:hover { text-decoration: underline; }
.site-footer .content-text p:last-child { margin-bottom: 0; }
.site-footer .content-map { padding: 0; }
.site-footer .content-map iframe { display: block; width: 100%; height: 25em; border: 0; }
.site-footer a.content-link { display: block; background-color: var(--red1); color: #fff; text-decoration: none; text-align: center; padding: .5rem 1rem; margin: .625rem 1.25rem; border-radius: 1em; transition: background-color .2s linear; }
.site-footer a.content-link:hover { background-color: var(--red2); }
.site-footer .follow-us a { display: inline-block; margin-right: .5em; }
.site-footer .follow-us img { display: block; width: 2.25em; height: auto; }
.site-footer .current-opening-times { display: flex; flex-direction: column; }
.site-footer .current-opening-times h2 { font-size: var(--font-size-4); }
.site-footer .current-opening-times a.content-link { margin-top: auto; }

/* the logo, the footer links and the copyright */
.site-footer .footer-logo { margin: 0 auto 1.875em; display: inline-block; }
.site-footer .footer-logo a { display: block; width: 3em; margin: 0 auto; }
.site-footer .footer-logo img { display: block; width: 100%; height: auto; }
.site-footer .copy-links { font-size: var(--font-size-0); font-weight: 300; align-items: center; justify-content: center; }
.site-footer .copy-links > * { flex-basis: auto; display: inline-block; padding: 0 .25em; }
.site-footer .copy-links a { border-right: solid 1px #fff; color: #fff; text-decoration: none; }
.site-footer .copy-links a:hover { text-decoration: underline; }
@media (min-width: 37.5em) {
  .site-footer .footer-logo { flex-basis: auto; }
  .site-footer .footer-logo a { margin: 0; }
}
@media (min-width: 50em) {
  .site-footer .container.flex { justify-content: flex-start; align-items: center; }
  .site-footer .container.flex .footer-logo { margin: 0; }
  .site-footer .container.flex .copy-links { justify-content: flex-end; margin-top: 1rem; margin-left: auto; }
  .site-footer .grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr auto; column-gap: 1.25em; row-gap: .625em; padding-inline: 1.5em; box-sizing: border-box; }
  .site-footer .footer-section { max-height: none !important; margin-bottom: 0; }
  .site-footer .footer-section h2 { font-size: var(--font-size-6); cursor: default !important; }
  .site-footer .footer-section h2::after { display: none !important; }
  .site-footer .footer-section.how-to-get-here { grid-column: 1 / 2; grid-row: 1 / 3; display: flex; flex-direction: row; flex-wrap: wrap; }
  .site-footer .footer-section.how-to-get-here > * { order: 2; width: 100%; }
  .site-footer .footer-section.how-to-get-here .content-map { order: 1; }
  .site-footer .footer-section.how-to-get-here a.content-link { align-self: flex-end; width: auto; margin-inline: auto; }
  .site-footer .footer-section.how-to-contact-us { grid-column: 2 / 3; }
  .site-footer .footer-section.follow-us { grid-column: 2 / 3; }
  .site-footer .footer-section.current-opening-times { grid-column: 3 / 4; grid-row: 1 / 3; }
  .site-footer .current-opening-times p { font-size: var(--font-size-3); }
}
