/* Motion is an enhancement to the public portal's existing navigation. */
.public-site .bx-primary-nav .main-nav-inner { position: relative; isolation: isolate; }
.nav-glass {
  position: absolute; z-index: -1; inset: calc(50% - 18px) auto auto 0;
  width: 1px; height: 36px; pointer-events: none; opacity: 0;
  transform-origin: left center; border-radius: 10px;
  background: linear-gradient(125deg, #f8dfcccf, #f7e8e4ab 62%, #f5d6aeaa);
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #b67e583b;
  transition: translate 340ms cubic-bezier(.23,.87,.35,1.16), width 320ms ease, opacity 160ms;
}
.public-site .bx-primary-nav .bx-nav-link::after { bottom: calc(50% - 19px); }
.public-site .bx-live-panel { position: relative; isolation: isolate; }
.public-site .bx-live-panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  pointer-events: none; background: conic-gradient(from var(--glint-angle), transparent 70%, #f8d28b 86%, transparent 100%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: notice-glint 5s linear infinite;
}
@property --glint-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes notice-glint { to { --glint-angle: 360deg; } }
.public-site .bx-stat-strip > a { position: relative; isolation: isolate; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .public-site .bx-stat-strip > a::before {
    content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(150px circle at var(--spot-x,50%) var(--spot-y,50%), #f9d6a487, transparent);
    transition: opacity 180ms;
  }
  .public-site .bx-stat-strip > a:hover::before { opacity: 1; }
}
.notice-preview-row { position: relative; }
.public-site .notice-preview-row:has(.notice-peek:not([hidden])) .bx-notice-row { padding-right: 82px; }
.notice-preview-row:has(.notice-peek:not([hidden])) .bx-notice-arrow { visibility: hidden; }
.notice-peek, .peek-close {
  color: #792f2c; background: #fff7ee; border: 1px solid #d8bda6; border-radius: 999px;
  padding: .42rem .75rem; font: inherit; font-size: .875rem; line-height: 1.4; cursor: pointer;
}
.notice-peek { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.notice-peek:hover, .peek-close:hover { background: #f8e8d4; }
.notice-dialog {
  inset: 0; margin: auto; width: min(36rem, calc(100vw - 2rem)); box-sizing: border-box;
  max-height: 82dvh; overflow: auto; border: 1px solid #d9c4b0; border-radius: 18px;
  background: #fffcf8; color: #302825; padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 24px 80px #24111140; transform-origin: top left;
}
.notice-dialog::backdrop { background: #251d1d88; }
.notice-dialog form { float: right; margin: 0 0 12px 12px; }
.notice-dialog .peek-kind { color: #98422f; font-size: .9rem; margin: 0 0 1rem; }
.notice-dialog h2 { clear: both; line-height: 1.45; font-size: clamp(1.25rem, 3vw, 1.7rem); margin: 0; }
.peek-meta { font-size: .9rem; color: #69564f; margin: 1rem 0; }
.peek-summary { line-height: 1.8; margin: 1rem 0 1.5rem; white-space: pre-line; overflow-wrap: anywhere; }
.peek-open { display: inline-block; color: white; background: #872b2c; padding: .68rem 1.1rem; border-radius: 8px; }
.public-site :is(.peek-open,.notice-peek,.peek-close):focus-visible { outline: 3px solid #30749c; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .nav-glass { transition: none; }
  .public-site .bx-live-panel::after { animation: none; }
}
.home-dock { display: none; }
@media (max-width: 768px) {
  .public-site:has(.home-dock) { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  #home-search-q { scroll-margin-top: 90px; }
  .home-dock {
    display: flex; position: fixed; z-index: 9; left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(-50%); padding: 4px 8px; border: 1px solid #dac5b7; border-radius: 32px;
    background: #fff9f3ed; backdrop-filter: blur(16px); box-shadow: 0 4px 18px #2b1a1424;
  }
  .home-dock a { min-width: 60px; min-height: 48px; display: grid; justify-items: center; align-content: center; gap: 2px; border-radius: 24px; font-size: 14px; color: #672d29; }
  .home-dock svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .home-dock a:is(:active,:focus-visible) { background: #f1ddcb; }
}
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .home-dock svg { transition: transform 180ms ease; }
  .home-dock a:is(:hover,:focus-visible,:active) svg { transform: translateY(-2px) scale(1.18); }
  .home-dock a:has(+ a:hover) svg, .home-dock a:hover + a svg { transform: scale(1.08); }
}
.public-site .rural-hall-entry { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin:20px 0; color:#fff2d3; font-size:1rem; font-weight:600; }
.public-site .rural-hall-entry a { display:inline-flex; align-items:center; min-height:40px; padding:5px 18px; border-radius:8px; color:#52201d; background:#f4d390; text-decoration:none; }
.public-site .rural-hall-entry a:hover { background:#ffe5b2; }
.public-site .rural-hall-hero { padding:clamp(34px,6vw,80px) 0; color:#fff8ed; background:linear-gradient(115deg,#512022,#862e30); }
.public-site .rural-hall-hero a { color:#f8d79a; text-decoration:underline; }
.public-site .rural-hall-hero h1 { font-size:clamp(1.8rem,4vw,3.1rem); line-height:1.3; margin:22px 0 14px; color:inherit; }
.public-site .rural-hall-body { padding-block:34px 64px; }
.public-site .rural-hall-body h2 { margin:16px 0; }
.public-site .rural-search-links { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:36px; }
.public-site .rural-search-links a { padding:12px 18px; border:1px solid #ddcaba; border-radius:10px; color:#753234; background:#fffcf8; }
