/* The sun theme. Loaded on every page; does nothing without sun.js (then the site is night, as it was).
   sun.js writes the colours onto the root and the existing tokens follow. Night values are exactly the tokens of record. */
@property --ground{syntax:'<color>';inherits:true;initial-value:#080c16}
@property --deep{syntax:'<color>';inherits:true;initial-value:#0f1624}
@property --cream{syntax:'<color>';inherits:true;initial-value:#f0e8d8}
@property --cream-dim{syntax:'<color>';inherits:true;initial-value:#c8bfaf}
@property --muted{syntax:'<color>';inherits:true;initial-value:#939db1}
@property --gold-light{syntax:'<color>';inherits:true;initial-value:#ddb06a}
@property --gold-dim{syntax:'<color>';inherits:true;initial-value:#8a6a35}
@property --rule{syntax:'<color>';inherits:true;initial-value:rgba(240,232,216,.13)}
@property --btn-rule{syntax:'<color>';inherits:true;initial-value:rgba(240,232,216,0)}
@property --sky-1{syntax:'<color>';inherits:true;initial-value:#080c16}
@property --sky-2{syntax:'<color>';inherits:true;initial-value:#080c16}
@property --sky-3{syntax:'<color>';inherits:true;initial-value:#080c16}
@property --sky-4{syntax:'<color>';inherits:true;initial-value:#080c16}
:root{--ground:#080c16;--btn-rule:rgba(240,232,216,0)}
html{transition:--ground 1s ease,--deep 1s ease,--cream 1s ease,--cream-dim 1s ease,--muted 1s ease,--gold-light 1s ease,--gold-dim 1s ease,--rule 1s ease,--btn-rule 1s ease,--sky-1 1s ease,--sky-2 1s ease,--sky-3 1s ease,--sky-4 1s ease}
@media(prefers-reduced-motion:reduce){html{transition:none}}
/* the grounds that were always the page's dark are now the sun's ground */
html[data-sun],html[data-sun] body,html[data-sun] .sec,html[data-sun] .panels-wrap{background:var(--ground)}
html[data-sun] .site-header{background:color-mix(in srgb,var(--ground) 90%,transparent)}
@media (max-width:1100px){html[data-sun] .site-header nav{background:color-mix(in srgb,var(--ground) 98%,transparent)}}   /* only the drawer is a solid box; on a wide screen the nav has no background of its own, so the bar's one fade runs evenly behind the logo, the menu and Contact (17 Nov 2026) */
html[data-sun] form.enquiry input,html[data-sun] form.enquiry select,html[data-sun] form.enquiry textarea{border-color:color-mix(in srgb,var(--cream) 24%,transparent)}
/* blocks over photographs keep the night values at every hour */
.hero,.panels,.panel,.map-stage{--cream:#f0e8d8;--cream-dim:#c8bfaf;--muted:#939db1;--gold-light:#ddb06a;--deep:#0f1624;--rule:rgba(240,232,216,.13)}
/* the badge is one drawing: it turns with the headings */
html[data-sun="light"] .badge-h,html[data-sun="light"] .badge-f{filter:brightness(0)}
/* links are underlined at every hour in running text */
html[data-sun] .sec-body p a,html[data-sun] details p a,html[data-sun] .site-footer .legal a{text-decoration:underline;text-underline-offset:3px}
/* the sky and the horizon line: decoration only, never lettering */
html[data-sun] .site-header{border-bottom:0;box-shadow:0 1px 0 var(--rule)}
html[data-sun] .site-header::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:linear-gradient(90deg,var(--sky-1),var(--sky-2),var(--sky-3),var(--sky-4));opacity:.9;pointer-events:none}
html[data-sun] .site-footer{position:relative}
html[data-sun] .site-footer::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,var(--sky-4),var(--sky-3),var(--sky-2),var(--sky-1));pointer-events:none}
/* the setting and the cue, in the footer */
.sun-set{margin:var(--sp-16) 0 0;max-width:520px}
.sun-cue{margin:0 0 .6em;font-size:var(--text-14);color:var(--muted)}
.sun-set .seg{display:inline-flex;gap:clamp(8px,2vw,22px);border:0;border-bottom:1px solid var(--rule)}
.sun-set button{padding:0 2px}
.sun-set button[aria-pressed="true"]{color:var(--cream)}.sun-set button[aria-pressed="true"]::after{transform:scaleX(1)}.sun-set button[aria-pressed="true"] .c-hex{color:var(--c-gold);opacity:1}
.sun-set button:focus-visible{outline:var(--focus-ring);outline-offset:2px}

/* "Back to now": a small pill, bottom left, while the planner has moved the colours. The Pause motion button sits bottom right. */
.sun-back{position:fixed;left:14px;bottom:14px;z-index:40;appearance:none;min-height:44px;width:max-content;max-width:calc(100vw - 28px);padding:0 20px 0 32px;border:0;border-radius:0;background:var(--ground,#080c16);clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);color:var(--gold-light);font:500 12px/1 var(--font-text,sans-serif);letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;cursor:pointer}   /* a solid cut-corner plate: the label is never lost over the page's own letters */
.sun-back::before{content:"";position:absolute;left:14px;top:50%;width:7px;height:7px;margin-top:-4px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.sun-back::after{content:"";position:absolute;left:32px;right:20px;bottom:9px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .48s cubic-bezier(.16,1,.3,1)}
.sun-back[hidden]{display:none}
.sun-back:hover::after,.sun-back:focus-visible::after{transform:scaleX(1)}
.sun-back:focus-visible{outline:3px solid var(--gold-light);outline-offset:3px}
@media (max-width:760px){.sun-back{left:8px;bottom:8px;font-size:12px}}
/* while the planner's sliders are moving the colours step quickly and do not ease; see live() in sun.js */
html.sun-live{transition:none}
