/* WordPress-only additions to the Land & Sea design (landsea.css is generated:
   do not edit it). Every value comes from the design's own tokens. */

/* The request form (inc/enquiry.php) ------------------------------------- */
.enq__hp{ position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.enq__fail{ color: var(--text); border-inline-start: 3px solid var(--accent); padding-inline-start: var(--s-s, 1rem); }
.enq__privacy{ color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.btn[aria-disabled="true"]{ cursor: progress; }

/* Prose pages: the privacy policy and the accessibility statement (parts/page-*.php) */
.legal__body{ max-width: var(--measure-prose, var(--measure)); }
.legal__body > * + *{ margin-top: var(--s-s, 1rem); }
.legal__body > :first-child{ margin-top: 0; }
.legal__body h2{ font-size: var(--step-2); margin-top: var(--s-xl, 2.5rem); }
.legal__body h3{ font-size: var(--step-1); margin-top: var(--s-l, 1.75rem); }
.legal__body ul{ padding-left: 1.25em; }
.legal__body li + li{ margin-top: var(--s-2xs, .35rem); }
.legal__body a{ color: var(--accent); }
.legal__updated{ font-size: var(--step--1); color: var(--text-2); }
.legal__body h2[id]{ scroll-margin-top: 7rem; }

/* The footer's small print (inc/routes.php jpc_footer_links) ------------- */
.foot__legal-row{ display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.foot button.foot__legal{
  min-height: var(--tap); display: inline-flex; align-items: center; position: relative;
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--step--1); color: var(--text);
  transition: color var(--dur-fast) var(--ease);
}
.foot button.foot__legal:hover{ color: var(--accent); }
.foot button.foot__legal::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: .35rem;
  height: var(--hairline); background: currentColor;
  transform: scaleX(0); transform-origin: center; transition: transform 180ms var(--ease-stone);
}
.foot button.foot__legal:hover::after, .foot button.foot__legal:focus-visible::after{ transform: scaleX(1); }

/* Target size (WCAG 2.2, 2.5.8). The menus disclosure sat .2rem into the
   "Menus" link, so neither had a clear 24px; axe flagged both. */
.nav__disc{ margin-inline-start: 0; }

/* Reading options (inc/a11y.php) ---------------------------------------- */
.rdo{
  position: fixed; z-index: 75;
  right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column-reverse; align-items: flex-end; gap: .6rem;
  pointer-events: none;
}
.rdo > *{ pointer-events: auto; }
.rdo__fab{
  width: 3rem; height: 3rem; border-radius: 50%; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--room-deep); color: var(--cream);
  border: var(--hairline) solid var(--rule-dark); cursor: pointer;
  box-shadow: 0 6px 24px rgb(8 19 20 / .28);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.rdo__fab:hover, .rdo__fab[aria-expanded="true"]{ color: var(--candle); border-color: var(--candle); }
.rdo__fab:focus-visible{ outline: 2px solid var(--candle); outline-offset: 3px; }
.rdo__panel{
  width: min(20rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 10rem);   /* clears the masthead */
  overflow-y: auto; overscroll-behavior: contain;
  background-color: var(--ground); color: var(--text);
  padding: var(--s-m); border: var(--hairline) solid var(--rule); border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgb(8 19 20 / .32);
}
.rdo__head{ display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-s); margin-bottom: var(--s-s); }
.rdo__h{ margin: 0; font-family: var(--display); font-size: var(--step-1); font-weight: 400; line-height: 1.2; }
.rdo__h:focus{ outline: none; }
.rdo__acts{ display: flex; gap: .9rem; }
.rdo__act{
  min-height: 1.5rem; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--step--1); color: var(--text-3);
  text-decoration: underline; text-underline-offset: .2em;
}
.rdo__act:hover{ color: var(--text); }
.rdo__group{ margin: 0; padding: var(--s-s) 0 0; border: 0; border-top: var(--hairline) solid var(--rule); min-width: 0; }
.rdo__group + .rdo__group{ margin-top: var(--s-s); }
.rdo__group:first-of-type{ border-top: 0; padding-top: 0; }
/* A floated legend leaves the fieldset's border alone (otherwise the rule runs through it). */
.rdo__group legend{ float: left; width: 100%; padding: 0; color: var(--text-3); }
.rdo__opts{ clear: both; display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .5rem; }
.rdo__opt{
  min-height: 2.25rem; padding: .35rem .9rem; margin: 0; cursor: pointer;
  border: var(--hairline) solid var(--rule); border-radius: var(--radius-pill);
  background: none; color: var(--text); font: inherit; font-size: var(--step--1); line-height: 1.2;
}
.rdo__opt:hover{ border-color: var(--accent); }
.rdo__opt[aria-pressed="true"]{ background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rdo__opt:focus-visible, .rdo__act:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; }
.rdo__note{ margin: var(--s-s) 0 0; font-size: var(--step--1); color: var(--text-3); }
.rdo__note a{ color: var(--accent); }
/* The round button is fixed to the corner; at the foot of the page the credit
   would run under it wherever the page edge is closer than the button. */
@media (min-width: 52.001rem){
  .foot__base{ padding-inline-end: max(0px, calc(4.75rem - var(--edge))); }
}
@media (max-width: 52rem){
  /* The mobile action bar owns the bottom edge: no floating button; the
     footer's "Reading options" opens the panel, just above the bar. */
  .rdo__fab{ display: none; }
  .rdo{ left: .75rem; right: .75rem; align-items: stretch; bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
  .rdo__panel{ width: auto; max-height: calc(100dvh - 10rem); }
}

.rdo-guide{ position: fixed; inset: 0; z-index: 90; pointer-events: none; --band: 4.5rem; }
.rdo-guide__top, .rdo-guide__bot{ position: absolute; left: 0; right: 0; background: rgb(12 23 24 / .45); }
.rdo-guide__top{ top: 0; height: max(0px, calc(var(--y, -200px) - var(--band) / 2)); }
.rdo-guide__bot{ top: calc(var(--y, -200px) + var(--band) / 2); bottom: 0; border-top: 2px solid var(--candle); }

/* What each option does. Values follow the LCT site's (A11yPanel). */
html[data-text-size="large"]{ font-size: 112.5%; }
html[data-text-size="larger"]{ font-size: 125%; }
html[data-contrast="high"]{ --hairline: 2px; }
html[data-contrast="high"] *{
  --text-2: var(--text); --text-3: var(--text);
  --rule: color-mix(in srgb, var(--text) 60%, transparent);
}
html[data-contrast="high"] :focus-visible{ outline-width: 3px !important; }
html[data-spacing="wide"] :is(p, li, dd, dt, blockquote, label, legend, figcaption, summary){
  line-height: 1.9 !important; letter-spacing: .02em !important; word-spacing: .16em !important;
}
html[data-font="readable"]{
  --sans: Verdana, Tahoma, 'Segoe UI', system-ui, sans-serif;
  --display: Verdana, Tahoma, 'Segoe UI', system-ui, sans-serif;
}
html[data-font="readable"] :is(h1, h2, h3, h4, em, i, cite){ font-style: normal !important; }
html[data-links="underline"] :is(main, footer) a:not(.btn){
  text-decoration-line: underline !important; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after{
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important;
  transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
}
html[data-motion="off"]::view-transition-group(*),
html[data-motion="off"]::view-transition-old(*),
html[data-motion="off"]::view-transition-new(*){ animation: none !important; }

/* The cookie choice (inc/consent.php) ----------------------------------- */
.consent{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background-color: var(--ground); color: var(--text);
  border-top: var(--rule-accent) solid var(--accent);
  box-shadow: 0 -10px 40px rgb(8 19 20 / .3);
  padding: var(--s-m) var(--gutter) calc(var(--s-m) + env(safe-area-inset-bottom, 0px));
}
.consent__in{
  max-width: var(--shell); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-s) var(--s-l);
}
.consent__text{ flex: 1 1 26rem; }
.consent__h{ margin: 0 0 .3rem; font-family: var(--display); font-size: var(--step-1); font-weight: 400; line-height: 1.2; }
.consent__p{ margin: 0; max-width: 40rem; font-size: var(--step--1); color: var(--text-2); }
.consent__p a{ color: var(--accent); }
.consent__btns{ display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 52rem){
  /* Above the action bar, so Call and Directions stay usable. */
  .consent{ bottom: calc(3.75rem + 1px + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--s-m); }
  .consent__btns .btn{ flex: 1 1 8rem; }
}
@media print{ .rdo, .rdo-guide, .consent{ display: none !important; } }
