/*
 * De Hoeskamer "modern" layer, loaded last (replaces public/assets/css/modern.css for this site). The page itself is a
 * measured copy of the legacy site (css/style.css); this layer only adds what the legacy site lacked or did with
 * third-party scripts, without changing the recognisable look: real form fields and buttons in the house colours,
 * slider arrows in the legacy slippry style (white circles, shown when hovering the slider), the cookie box and the
 * modals in the house colours (with the Font Awesome glyphs of consent.css drawn as masks, no webfont needed),
 * back-to-top button (.site-top, added by js/site.js), focus styles. Remove the <link> in the themed head partial to get
 * the bare legacy look back.
 */
:root {
  --hk-radius: .6rem;
  --hk-radius-lg: 1.2rem;
  --hk-ease: cubic-bezier(.2, .7, .2, 1);
  --hk-shadow-md: 0 14px 32px -14px rgba(0, 0, 0, .7);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:focus-visible { outline: 3px solid rgba(226, 205, 148, .7); outline-offset: 2px; border-radius: .3rem; }
::selection { background: #7f0000; color: #fff; }
blockquote { border-left: .4rem solid var(--hk-olive); padding-left: 2rem; margin-left: 0; font-style: italic; }
hr { border: 0; height: 0; background: none; border-top: 1px solid rgba(255, 255, 255, .15); margin: 3rem 0; }

/* ---------- buttons ---------- */
a.button, button, .button, input[type=submit] {
  display: inline-block;
  height: auto;
  background: #7f0000;
  color: #fff;
  border: 1px solid #7f0000;
  border-radius: 5px;
  padding: 8px 20px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  text-shadow: none;
  transition: background .2s var(--hk-ease), border-color .2s var(--hk-ease), color .2s;
}
a.button:hover, button:not(:disabled):hover, .button:not(:disabled):hover, input[type=submit]:hover, button:not(:disabled):focus { background: var(--hk-olive); border-color: #7f0000; color: #fff; }
button:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- slider arrows: the legacy slippry controls (white circle, dark arrow, 40% opacity, on hover only) ---------- */
.arrowSliders > .container { position: static; top: auto; transform: none; }
.arrowSliders .row, .arrowSliders [class*=column-] { position: static; }
.plugin--Slider .slick-button-slider, .plugin--Slider .slick-button-slider:not(:disabled):hover, .plugin--Slider .slick-button-slider:not(:disabled):focus {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  padding: 0;
  transform: none;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 20px;
  font-weight: 800;
  line-height: 50px;
  text-align: center;
  box-shadow: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.plugin--Slider .slick-prev-slider { left: max(5%, 37px); }
.plugin--Slider .slick-next-slider { left: auto; right: max(5%, 37px); margin: -25px -25px 0 0 !important; }
.plugin--Slider:hover .slick-button-slider, .plugin--Slider .slick-button-slider:focus-visible { opacity: .4; }
.plugin--Slider .slick-button-slider:not(:disabled):hover { opacity: .8; }
@media (hover: none) {
  .plugin--Slider .slick-button-slider, .plugin--Slider .slick-button-slider:not(:disabled):hover {
    opacity: .4;
    width: 25px;
    height: 25px;
    margin: -12px 0 0 -12px;
    font-size: 12px;
    line-height: 25px;
  }
  .plugin--Slider .slick-next-slider { margin: -12px -12px 0 0 !important; }
}
.plugin--Carousel img { border-radius: var(--hk-radius); }

/* ---------- lists of the generic plugins (news, grid) as cards ---------- */
.plugin--Messages ul.layout-rows > li, .plugin--GridView ul.layout-grid > li, .plugin--GridView ul.layout-rows > li {
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(180, 154, 92, .35);
  border-radius: var(--hk-radius-lg);
  padding: 2.4rem;
  margin: 1.6rem 0;
}
.MessagesMore, .SearchsMore { display: inline-block; margin-top: 1.2rem; padding: .6rem 1.6rem; border: 1.5px solid var(--hk-gold); border-radius: 999px; font-size: 1.4rem; }
.MessagesMore:hover, .SearchsMore:hover { background: #7f0000; border-color: #7f0000; color: #fff; }

/* ---------- forms (legacy: white fields with a dark red border, 5px radius) ---------- */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=url], input[type=date], select, textarea {
  width: 100%;
  background: #fff;
  color: #7f0000;
  border: 1px solid #7f0000;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 16px;
  transition: border-color .15s var(--hk-ease), box-shadow .15s var(--hk-ease);
}
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, input[type=number]:focus, input[type=password]:focus, input[type=search]:focus, input[type=url]:focus, input[type=date]:focus, select:focus, textarea:focus {
  outline: none;
  background: #fff;
  border-color: #86754d;
  box-shadow: 0 0 0 3px rgba(134, 117, 77, .25);
}
textarea { min-height: 15rem; }
.form-render label, .MailingListsForm label, .AuthenticationLoginForm label { font-weight: 600; font-size: 1.45rem; color: var(--hk-gold-light); margin-bottom: .4rem; text-shadow: 1px 1px 0 #000; }
.form-render .small { color: var(--hk-gold); font-size: 1.3rem; }
.form-render .required { color: #ff8a80 !important; }
.form-render .error input, .form-render .error select, .form-render .error textarea { border-color: #d9534f; box-shadow: 0 0 0 4px rgba(217, 83, 79, .2); }

/* ---------- modals ---------- */
.modal { border-radius: var(--hk-radius-lg) !important; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .8) !important; background: #f6f3ec url(../img/paper.jpg) !important; }
.modal.modal--image { width: auto !important; max-width: min(1400px, 92vw) !important; padding: 1rem !important; line-height: 0; }
.modal.modal--image img { display: block; width: auto; max-width: 100%; height: auto; max-height: 84vh; margin: 0 auto; border-radius: .4rem; }
.modal.modal--pdf { width: 92vw !important; max-width: 1400px !important; height: 90vh; padding: 0 !important; }
.modal.modal--pdf object { display: block; width: 100%; height: 100%; border-radius: var(--hk-radius-lg); }
.blocker { background: rgba(20, 8, 8, .72) !important; backdrop-filter: blur(3px); }

/* ---------- cookie box: dark card in the house colours ---------- */
#ct-ultimate-gdpr-cookie-popup {
  background: #2b2522 !important;
  color: #e9e2d3 !important;
  border: 1px solid rgba(180, 154, 92, .5) !important;
  border-radius: var(--hk-radius-lg) !important;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9) !important;
  max-width: calc(100vw - 3.2rem);
}
#ct-ultimate-gdpr-cookie-popup .ct-header-popup { color: var(--hk-gold-light) !important; font-family: var(--hk-script); font-size: 2.4rem; }
#ct-ultimate-gdpr-cookie-popup #ct-ultimate-gdpr-cookie-content, #ct-ultimate-gdpr-cookie-popup p { color: #d8d0c0 !important; text-shadow: none; font-size: 13px; }
#ct-ultimate-gdpr-cookie-popup .ct-skin-dark-icon { opacity: .12; }
#ct-ultimate-gdpr-cookie-popup #ct-ultimate-gdpr-cookie-accept,
#ct-ultimate-gdpr-cookie-popup #ct-ultimate-gdpr-cookie-read-more,
#ct-ultimate-gdpr-cookie-popup #ct-ultimate-gdpr-cookie-change-settings {
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  border: 1.5px solid transparent !important;
}
#ct-ultimate-gdpr-cookie-popup #ct-ultimate-gdpr-cookie-accept { background: #7f0000 !important; color: #fff !important; }
#ct-ultimate-gdpr-cookie-popup #ct-ultimate-gdpr-cookie-accept:hover { background: #b30000 !important; }
#ct-ultimate-gdpr-cookie-popup #ct-ultimate-gdpr-cookie-change-settings { background: transparent !important; color: var(--hk-gold-light) !important; border-color: var(--hk-gold) !important; }
#ct-ultimate-gdpr-cookie-popup #ct-ultimate-gdpr-cookie-read-more { background: rgba(255, 255, 255, .08) !important; color: #e9e2d3 !important; }
/* consent.css draws its button icons with the Font Awesome webfont, which the platform does not ship (a box was shown):
   the same glyphs (check, cog, long-arrow-alt-right; Font Awesome Free 5, CC BY 4.0) as CSS masks */
.skin-dark-theme #ct-ultimate-gdpr-cookie-accept::before,
.skin-dark-theme #ct-ultimate-gdpr-cookie-change-settings::after,
.skin-dark-theme #ct-ultimate-gdpr-cookie-read-more::after {
  content: "" !important;
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -.125em;
  background-color: currentColor !important;
  -webkit-mask: var(--hk-icon) no-repeat center / contain;
  mask: var(--hk-icon) no-repeat center / contain;
}
.skin-dark-theme #ct-ultimate-gdpr-cookie-accept::before { --hk-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M173.9 439.4l-166.4-166.4c-10-10-10-26.2 0-36.2l36.2-36.2c10-10 26.2-10 36.2 0L192 312.7 432.1 72.6c10-10 26.2-10 36.2 0l36.2 36.2c10 10 10 26.2 0 36.2l-294.4 294.4c-10 10-26.2 10-36.2 0z'/></svg>"); }
.skin-dark-theme #ct-ultimate-gdpr-cookie-change-settings::after { --hk-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z'/></svg>"); }
.skin-dark-theme #ct-ultimate-gdpr-cookie-read-more::after { --hk-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M313.9 216H12c-6.6 0-12 5.4-12 12v56c0 6.6 5.4 12 12 12h301.9v46.1c0 21.4 25.9 32.1 41 17l86.1-86.1c9.4-9.4 9.4-24.6 0-33.9l-86.1-86.1c-15.1-15.1-41-4.4-41 17V216z'/></svg>"); }
#ct-ultimate-gdpr-cookie-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  right: 2rem;
  bottom: 2rem;
  padding: 0 !important;
  border-radius: 999px;
  background: #7f0000 !important;
  color: #fff !important;
  font-size: 1.8rem;
  border: 1px solid rgba(180, 154, 92, .6);
  box-shadow: var(--hk-shadow-md);
}
#ct-ultimate-gdpr-cookie-modal .ct-ultimate-gdpr-cookie-modal-content { border-radius: var(--hk-radius-lg) !important; }

/* ---------- back to top (added by site.js) ---------- */
.site-top {
  position: fixed;
  right: 2rem;
  bottom: 7.4rem;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: #7f0000;
  color: #fff !important;
  font-size: 2rem;
  line-height: 4.4rem;
  text-align: center;
  box-shadow: var(--hk-shadow-md);
  border: 1px solid rgba(180, 154, 92, .6);
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  z-index: 98;
  transition: opacity .25s var(--hk-ease), transform .25s var(--hk-ease), background .2s;
}
.site-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.site-top:hover { background: #b30000; }

/* ---------- footer ---------- */
footer p span[style] { color: inherit !important; }

/* =====================================================================================================================
 * Modernisation pass (2026-10): same layout, colours, textures, fonts and header; only polish. Motion is limited to
 * opacity / transform / filter and switched off under prefers-reduced-motion (bottom of this file). js/hk-modern.js adds
 * the lazy-image fade-in hook (img.hk-lazy / .hk-loaded) and keyboard support + aria-expanded for the mobile menu button.
 * ===================================================================================================================== */
:root {
  --hk-dur: .3s;
  --hk-dur-slow: .8s;
  --hk-depth: drop-shadow(0 10px 14px rgba(0, 0, 0, .45));
}

/* ---------- typography: smoother rendering, balanced headings, no orphans, readable measure ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -moz-osx-font-smoothing: grayscale; font-kerning: normal; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
p, p:first-child, p:last-child, main ul:not([class]) > li, main ol:not([class]) > li { line-height: 1.65; }
.main-content p { overflow-wrap: break-word; }
/* a single full-width text column keeps a comfortable line length (centred like the rest of the content) */
.main-content .row > .column-1 .content-widget > p,
.main-content .row > .column-1 .content-widget > ul:not([class]),
.main-content .row > .column-1 .content-widget > ol:not([class]) { max-width: 72ch; margin-left: auto; margin-right: auto; }
a, a:link, a:visited { transition: color .2s ease, text-decoration-color .2s ease, background-color .2s ease; }
main .content-widget p a:not(.button) { text-decoration: underline; text-decoration-color: rgba(180, 154, 92, .35); text-underline-offset: 3px; text-decoration-thickness: 1px; }
main .content-widget p a:not(.button):hover { text-decoration-color: currentColor; }

/* ---------- spacing rhythm: a little more air above and below the content bands ---------- */
@media (min-width: 721px) {
  .main-content > section > .container { padding-top: 24px; padding-bottom: 24px; }
  .page-title > .container { padding-bottom: 14px; }
}
.main-content > section:has(.virtual-tour) > .container { padding: 0; }

/* ---------- focus: one clear, warm ring everywhere ---------- */
:focus-visible { outline: 2px solid var(--hk-gold-light); outline-offset: 3px; }
a:focus-visible { border-radius: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

/* ---------- header depth: board, logo and lamp lift slightly off the wood ---------- */
.hk-board { filter: var(--hk-depth); transition: transform .5s var(--hk-ease), filter .5s var(--hk-ease); }
.hk-board:hover, .hk-board:focus-within { transform: rotate(0deg) translateY(-2px); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .5)); }
.hk-logo-link { transition: transform .4s var(--hk-ease), filter .4s var(--hk-ease); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }
.hk-logo-link:hover, .hk-logo-link:focus-visible { transform: scale(1.015); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); }
.hk-logo-link:focus-visible { outline-offset: 6px; border-radius: 50%; }
.hk-lamp img { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); transition: filter .4s var(--hk-ease), transform .6s var(--hk-ease); transform-origin: 50% 0; }
.hk-lamp:hover img, .hk-lamp:focus-within img { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)) brightness(1.08) drop-shadow(0 0 14px rgba(255, 214, 120, .35)); transform: rotate(-1.5deg); }
.hk-lamp a { transition: box-shadow var(--hk-dur) var(--hk-ease); }
.hk-lamp a:focus-visible { outline: none; }

/* ---------- the chalkboard: a soft crossfade between the notices, one notice visible at a time ---------- */
.hk-board .plugin--Announcements[data-interval]:not([data-interval="0"]) ul { display: grid; }
.hk-board .plugin--Announcements[data-interval]:not([data-interval="0"]) li.announcement {
  display: block;
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  animation: none;
  transition: opacity var(--hk-dur-slow) ease, visibility 0s linear var(--hk-dur-slow);
}
.hk-board .plugin--Announcements[data-interval]:not([data-interval="0"]) li.announcement.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--hk-dur-slow) ease .15s, visibility 0s;
}
.hk-board .plugin--Announcements a .announcement-more { transition: color .2s ease, letter-spacing .3s var(--hk-ease); }
.hk-board .plugin--Announcements a:hover .announcement-more, .hk-board .plugin--Announcements a:focus-visible .announcement-more { color: #fff; letter-spacing: .5px; }
.hk-board .plugin--Announcements a:focus-visible { outline-color: rgba(255, 255, 255, .7); outline-offset: 2px; }

/* ---------- blackboard menu buttons: smooth straighten + lift on hover/focus ---------- */
@media (min-width: 721px) {
  nav.nav > div.mainnav > ul.dropdown > li { transition: transform var(--hk-dur) var(--hk-ease), filter var(--hk-dur) var(--hk-ease); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25)); }
  nav.nav > div.mainnav > ul.dropdown > li:hover, nav.nav > div.mainnav > ul.dropdown > li:focus-within { transform: rotate(0deg) translateY(-3px); filter: drop-shadow(0 9px 8px rgba(0, 0, 0, .35)); }
  nav.nav > div.mainnav > ul.dropdown > li > a { transition: color .25s ease, text-shadow .25s ease; }
  nav.nav > div.mainnav > ul.dropdown > li > a:hover, nav.nav > div.mainnav > ul.dropdown > li > a:focus-visible { color: #fff; text-shadow: 1px 1px 0 #000, 0 0 10px rgba(255, 255, 255, .35); }
  nav.nav > div.mainnav > ul.dropdown > li > a:focus-visible { outline: none; }
  nav.nav > div.mainnav > ul.dropdown > li:has(> a:focus-visible) { filter: drop-shadow(0 0 6px rgba(226, 205, 148, .95)); }
  nav.nav > div.usernav > ul.dropdown > li > a { transition: color .2s ease; }
  nav.nav ul.dropdown li:hover > ul { animation: hk-drop-in .22s var(--hk-ease); }
  nav.nav ul.dropdown ul li a { transition: background-color .15s ease, color .15s ease; }
}
@keyframes hk-drop-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- mobile menu bar: the MENU button morphs into a close cross, softer item rows ---------- */
@media screen and (max-width: 720px) {
  .nav.blue-black { transition: box-shadow var(--hk-dur) ease; -webkit-tap-highlight-color: transparent; }
  html.site-scrolled .nav.blue-black { box-shadow: 0 4px 14px rgba(0, 0, 0, .55); }
  .menu-icon { transition: background-color .2s ease; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
  .menu-icon:hover, .menu-icon.active { background: #940000; }
  .menu-icon:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .menu-icon .hk-menu-bars i { transition: transform var(--hk-dur) var(--hk-ease), opacity .2s ease; }
  .menu-icon.active .hk-menu-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu-icon.active .hk-menu-bars i:nth-child(2) { opacity: 0; }
  .menu-icon.active .hk-menu-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  ul.dropdown li { margin: 0 0 4px; }
  ul.dropdown li a, ul.dropdown li a:visited { border-radius: 6px; transition: background-color .2s ease, color .2s ease; }
  ul.dropdown li a:hover, ul.dropdown li a:focus-visible { background: rgba(255, 255, 255, .22); }
  ul.dropdown li a.active { background: rgba(0, 0, 0, .12); }
  .usernav ul.dropdown { border-bottom: 1px solid rgba(255, 255, 255, .25); margin-bottom: 6px; padding-bottom: 4px; }
}

/* ---------- title band: a hair more depth ---------- */
.page-title, .footer-title { box-shadow: 0 0 10px 0 #000, inset 0 1px 0 rgba(255, 255, 255, .12); }

/* ---------- slider arrows: crisp drawn chevrons in the white legacy circle ---------- */
.plugin--Slider .slick-button-slider, .plugin--Slider .slick-button-slider:not(:disabled):hover, .plugin--Slider .slick-button-slider:not(:disabled):focus {
  font-size: 0;
  color: transparent;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: opacity var(--hk-dur) ease, transform var(--hk-dur) var(--hk-ease), background-color .2s ease;
}
.plugin--Slider .slick-button-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 40%;
  height: 40%;
  background: #2a1a14;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15 4l-8 8 8 8' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15 4l-8 8 8 8' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}
.plugin--Slider .slick-next-slider::before { transform: scaleX(-1); }
.plugin--Slider .slick-button-slider:not(:disabled):hover { transform: scale(1.08); background: #fff; }
.plugin--Slider .slick-button-slider:focus-visible { opacity: .9; outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) {
  .plugin--Slider:hover .slick-button-slider { opacity: .55; }
  .plugin--Slider .slick-button-slider:not(:disabled):hover { opacity: .95; }
}

/* ---------- lazy images fade in once loaded (js/hk-modern.js) ---------- */
img.hk-lazy { transition: opacity .6s ease; }
img.hk-lazy:not(.hk-loaded) { opacity: 0; }

/* ---------- the books: depth under the leather, gentle page turns, a modern toolbar ---------- */
.hk-book-pages::before { box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .05); }
.hk-book-ready .hk-page.hk-turn-next { --hk-turn-from: 14px; animation: hk-turn .45s var(--hk-ease) both; }
.hk-book-ready .hk-page.hk-turn-prev { --hk-turn-from: -14px; animation: hk-turn .45s var(--hk-ease) both; }
.hk-book-ready .hk-page:nth-child(even).hk-turn-next, .hk-book-ready .hk-page:nth-child(odd).hk-turn-prev { animation-delay: .06s; }
@keyframes hk-turn { from { opacity: 0; transform: translateX(var(--hk-turn-from)); } to { opacity: 1; transform: none; } }
.hk-book-toolbar {
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(20, 12, 10, .55);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.hk-book-toolbar button, .hk-book-toolbar button:not(:disabled):hover {
  width: 44px;
  height: 40px;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .2s var(--hk-ease);
}
.hk-book-toolbar button:not(:disabled):hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hk-book-toolbar button:not(:disabled):active { transform: scale(.94); }
.hk-book-toolbar button:disabled { opacity: .35; }
.hk-book-toolbar button:focus-visible { outline: 2px solid var(--hk-gold-light); outline-offset: 0; }
.hk-book-toolbar svg { width: 22px; height: 22px; stroke-width: 3; }
.hk-book-count { min-width: 5.5em; padding: 0 6px; font-family: var(--hk-hand); font-size: 14px; line-height: 1; color: rgba(255, 255, 255, .85); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; text-shadow: 0 1px 1px rgba(0, 0, 0, .6); }
.hk-photobook .gallery-tile img { transition: opacity .6s ease, filter .4s ease; }
.hk-photobook .gallery-tile:hover img { filter: brightness(1.05) saturate(1.05); }
.hk-photobook .gallery-tile:focus-visible { outline: 3px solid var(--hk-gold-light); outline-offset: -3px; }
.plugin--Menu .menu-index a { display: inline-block; transition: color .2s ease, transform .25s var(--hk-ease); }
.plugin--Menu .menu-index a:hover, .plugin--Menu .menu-index a:focus-visible { transform: translateX(5px); }
.plugin--Menu table.menu-products td.menu-price { font-variant-numeric: tabular-nums; }

/* ---------- guestbook: calmer fields on the paper page ---------- */
.plugin--Guestbook form.guestbook input:not(.guestbook-hp), .plugin--Guestbook form.guestbook textarea {
  height: 42px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid rgba(127, 0, 0, .55);
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  color: #4a1010;
  font-size: 15px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.plugin--Guestbook form.guestbook textarea { height: 170px; min-height: 170px; line-height: 1.55; resize: vertical; }
.plugin--Guestbook form.guestbook input:not(.guestbook-hp):hover, .plugin--Guestbook form.guestbook textarea:hover { border-color: #7f0000; }
.plugin--Guestbook form.guestbook input:not(.guestbook-hp):focus, .plugin--Guestbook form.guestbook textarea:focus { border-color: #7f0000; background: #fff; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 3px rgba(127, 0, 0, .18); }
.plugin--Guestbook form.guestbook .button { height: 44px; margin-top: 4px; border-radius: 6px; font-size: 15px; font-weight: 600; letter-spacing: .2px; box-shadow: 0 6px 14px -8px rgba(127, 0, 0, .9); transition: background-color .2s ease, transform .2s var(--hk-ease), box-shadow .2s ease; }
.plugin--Guestbook form.guestbook .button:not(:disabled):hover { background: #940000; border-color: #940000; transform: translateY(-1px); box-shadow: 0 10px 18px -10px rgba(127, 0, 0, 1); }
.plugin--Guestbook form.guestbook .button:active { transform: none; }
.plugin--Guestbook .guestbook-pager { margin-top: 14px; }
.plugin--Guestbook .guestbook-pager a { transition: background-color .2s ease, transform .2s var(--hk-ease); }
.plugin--Guestbook .guestbook-pager a:hover { transform: translateY(-1px); }

/* ---------- buttons (generic): focus ring and smooth state changes ---------- */
button, .button, a.button, input[type=submit] { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--hk-ease); }
button:focus-visible, .button:focus-visible, a.button:focus-visible { outline: 2px solid var(--hk-gold-light); outline-offset: 2px; }

/* ---------- footer: a clear bottom row, room above the fixed bottom line ---------- */
footer h1, footer h2, footer h3 { margin-bottom: 12px; }
.hk-footer-bottom {
  margin-top: 18px;
  padding: 16px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  row-gap: 8px;
}
.hk-footer-bottom p, .hk-footer-bottom p:first-child, .hk-footer-bottom p:last-child { font-size: 15px; }
.hk-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-extra > .container { padding-bottom: 14px; }
@media (max-width: 549px) {
  .hk-footer-bottom { justify-content: center; text-align: center; }
  .hk-footer-bottom p.hk-legal, .hk-footer-bottom p.hk-legal:last-child { margin: 0; text-align: center; }
}

/* ---------- back to top + cookie button: gentle lift ---------- */
.site-top, #ct-ultimate-gdpr-cookie-open { transition: opacity .25s var(--hk-ease), transform .25s var(--hk-ease), background-color .2s ease; }
.site-top.is-visible:hover, #ct-ultimate-gdpr-cookie-open:hover { transform: translateY(-2px); }

/* ---------- reduced motion: keep the look, drop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hk-board:hover, .hk-board:focus-within { transform: rotate(-4deg); }
  .hk-logo-link:hover, .hk-logo-link:focus-visible, .hk-lamp:hover img, .hk-lamp:focus-within img, .plugin--Menu .menu-index a:hover { transform: none; }
  nav.nav > div.mainnav > ul.dropdown > li:hover, nav.nav > div.mainnav > ul.dropdown > li:focus-within { transform: rotate(0deg); }
}
