/* ------------------------------------------------------------------
   Site chrome, hall skin (2026-11-28). Loaded site-wide only when the
   option paa_site_chrome_skin is 'hall' (helpers/enqueue.php). With the
   option off this file is not requested and the header and footer are
   exactly as before. No markup changes: components/header.php and
   components/footer.php are untouched.

   Footer: option B "Hall threshold", Prince 2026-11-28 ("ok with option
   b for the footer for now"). Header: see the block at the end.
   Art in img/ is the Course Stand's vetted set plus the hall plate.
   ------------------------------------------------------------------ */
.footer {
    --ch-gold: #c9a66b;
    --ch-gold-hi: #f0ddb0;
    --ch-ink2: #b8ab98;
    --ch-line: rgba(201, 166, 107, 0.22);
    background:
        linear-gradient(180deg, #070707 0, rgba(7, 7, 7, 0.9) 40%, rgba(7, 7, 7, 0.8) 72%, rgba(7, 7, 7, 0.66) 100%),
        url(img/hall-empty.webp) center 62% / cover no-repeat #050607 !important;
    border-top: 1px solid var(--ch-line);
    isolation: isolate;
    padding-top: 3.4rem !important;
    position: relative;
}
.footer::before {
    background: url(img/divider.webp) center / 100% 100% no-repeat;
    content: "";
    height: 26px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: -13px;
    transform: translateX(-50%);
    width: min(520px, 80%);
}
.footer h2 {
    border-bottom: 1px solid var(--ch-line);
    color: var(--ch-gold-hi) !important;
    font-family: "Cinzel", "Marcellus SC", Georgia, serif !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    min-width: 9rem;
    padding-bottom: 0.6rem;
    text-transform: uppercase;
    white-space: nowrap;
}
.footer > div:first-child > div:last-child h2 {
    font-size: 1.02rem !important;
    letter-spacing: 0.1em !important;
}
.footer li a {
    color: var(--ch-ink2) !important;
    font-family: "Nunito Sans", system-ui, sans-serif !important;
    font-size: 0.98rem !important;
    transition: color 0.16s;
}
.footer li a:hover,
.footer li a:focus-visible {
    color: var(--ch-gold-hi) !important;
}
.footer a:focus-visible,
.footer button:focus-visible,
.footer input:focus-visible {
    outline: 2px solid var(--ch-gold-hi);
    outline-offset: 3px;
}
/* the two forged plates: ruby for joining the Guild, the quiet plate for the newsletter */
.footer .cta-button,
.footer > div:first-child > div:last-child button {
    --bh: 54px;
    --cap: calc(var(--bh) * 1.053);
    --cc: calc(var(--bh) * 0.485);
    --mid: calc(50% - var(--cap) - var(--cc) / 2 + 1.5px);
    background:
        url(img/btnG-main-l.webp) left center / var(--cap) 100% no-repeat,
        url(img/btnG-main-r.webp) right center / var(--cap) 100% no-repeat,
        url(img/btnG-main-c.webp) center / var(--cc) 100% no-repeat,
        url(img/btnG-main-ml.webp) left calc(var(--cap) - 0.5px) center / var(--mid) 100% no-repeat,
        url(img/btnG-main-mr.webp) right calc(var(--cap) - 0.5px) center / var(--mid) 100% no-repeat !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-family: "Marcellus SC", "Cinzel", Georgia, serif !important;
    font-size: 0.98rem !important;
    height: var(--bh) !important;
    letter-spacing: 0.13em !important;
    min-width: 15rem;
    padding: 0 3.2rem !important;
    text-shadow: 0 1px 3px rgba(40, 0, 0, 0.95);
    transition: filter 0.5s ease, transform 0.2s ease !important;
    width: auto !important;
}
.footer .cta-button:hover,
.footer .cta-button:focus-visible {
    filter: brightness(1.14) drop-shadow(0 0 12px rgba(230, 59, 63, 0.45));
    transform: translateY(-1px) !important;
}
.footer > div:first-child > div:last-child .cta-button,
.footer > div:first-child > div:last-child button {
    --bh: 42px;
    background:
        url(img/btnG-ghost-l.webp) left center / var(--cap) 100% no-repeat,
        url(img/btnG-ghost-r.webp) right center / var(--cap) 100% no-repeat,
        url(img/btnG-ghost-c.webp) center / var(--cc) 100% no-repeat,
        url(img/btnG-ghost-ml.webp) left calc(var(--cap) - 0.5px) center / var(--mid) 100% no-repeat,
        url(img/btnG-ghost-mr.webp) right calc(var(--cap) - 0.5px) center / var(--mid) 100% no-repeat !important;
    color: #ece4d6 !important;
    font-size: 0.84rem !important;
    letter-spacing: 0.12em !important;
    min-width: 9.5rem;
    padding: 0 2.4rem !important;
    text-shadow: 0 1px 2px #000 !important;
}
.footer .social-icon svg,
.footer .social-icon svg * {
    fill: var(--ch-gold) !important;
    transition: fill 0.16s;
}
.footer .social-icon:hover svg,
.footer .social-icon:hover svg *,
.footer .social-icon:focus-visible svg,
.footer .social-icon:focus-visible svg * {
    fill: var(--ch-gold-hi) !important;
}
.footer input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]) {
    background: rgba(4, 4, 4, 0.7) !important;
    border: 1px solid rgba(201, 166, 107, 0.34) !important;
    border-radius: 0 !important;
    box-shadow: inset 0 0 0 1px rgba(201, 166, 107, 0.34) !important;
    color: #ece4d6 !important;
    font-family: "Nunito Sans", system-ui, sans-serif !important;
    height: 46px !important;
    padding: 0 1rem !important;
}
@media (max-width: 767px) {
    .footer h2 {
        min-width: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .footer .cta-button,
    .footer li a {
        transition: none !important;
    }
}
/* Footer, second pass (Prince 2026-11-28): the newsletter field gets a frame again, the 2024 line
   image gives way to the hall's own rule, and the column headings sit left over their links. */
@media (min-width: 768px) {
    .footer h2 {
        align-self: stretch;
        text-align: left !important;
    }
}
.footer input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]) {
    background:
        linear-gradient(180deg, rgba(20, 16, 14, 0.92), rgba(6, 5, 5, 0.94)) padding-box,
        url(img/slate.webp) 0 0 / 420px padding-box !important;
    border: 9px solid transparent !important;
    border-image: url(img/card-frame.webp) 30 / 9px / 3px stretch !important;
    box-shadow: none !important;
    height: 54px !important;
    margin-bottom: 1.1rem !important;
    max-width: 100%;
    width: 19rem !important;
}
.footer input::placeholder {
    color: #9c917f !important;
    font-style: italic;
    opacity: 1;
}
.footer input:focus {
    filter: brightness(1.18);
}
.footer > div:last-child > img {
    display: none !important;
}
.footer > div:last-child::before {
    background:
        radial-gradient(circle, #e63b3f 0 2px, rgba(230, 59, 63, 0.35) 3px, transparent 5px) center / 12px 12px no-repeat,
        linear-gradient(90deg, transparent, rgba(201, 166, 107, 0.42) 16%, rgba(240, 221, 176, 0.62) 46%, transparent 48.6%, transparent 51.4%, rgba(240, 221, 176, 0.62) 54%, rgba(201, 166, 107, 0.42) 84%, transparent) center / 100% 1px no-repeat;
    content: "";
    display: block;
    height: 12px;
    margin: 0 auto 1.1rem;
    width: min(85%, 1180px);
}
/* Tailwind marks these links white with !important inside a cascade layer, which outranks any
   unlayered rule; the fill colour is the property that is still free. */
.footer > div:last-child a {
    -webkit-text-fill-color: var(--ch-ink2);
    font-family: "Nunito Sans", system-ui, sans-serif !important;
    transition: -webkit-text-fill-color 0.16s;
}
.footer > div:last-child a:hover,
.footer > div:last-child a:focus-visible {
    -webkit-text-fill-color: var(--ch-gold-hi);
}

/* ------------------------------------------------------------------
   Header (Prince 2026-11-28: the quiet option, "if we can make the band a
   red gradient that plays off the point of the red ornament so it looks
   like a continuous form", and "enhance the menu dropdowns too").
   Same height as before. The band is a deep ruby gradient; its lower edge
   is a ruby line on the same pixel row as the blade of the marker under
   the menu, so the marker reads as the bright part of one line. Icons are
   the hall set. Every menu that drops from the band shares one panel.
   ------------------------------------------------------------------ */
.header {
    --ch-gold: #c9a66b;
    --ch-gold-hi: #f0ddb0;
    --ch-ruby: #b5111d;
    --ch-ruby-hi: #e63b3f;
    background:
        linear-gradient(90deg, rgba(5, 4, 4, 0.82) 0, rgba(5, 4, 4, 0) 22%, rgba(5, 4, 4, 0) 78%, rgba(5, 4, 4, 0.82) 100%),
        linear-gradient(180deg, rgba(58, 6, 10, 0.88) 0, rgba(30, 4, 6, 0.9) 52%, rgba(12, 2, 3, 0.96) 100%),
        url(img/steel.webp) 0 0 / 300px #070707 !important;
}
.header::after {
    background:
        linear-gradient(90deg, rgba(181, 17, 29, 0) 0, rgba(181, 17, 29, 0.6) 14%, rgba(222, 44, 52, 0.9) 50%, rgba(181, 17, 29, 0.6) 86%, rgba(181, 17, 29, 0) 100%) left bottom / 100% 1px no-repeat,
        linear-gradient(180deg, rgba(12, 2, 3, 0.96), rgba(9, 2, 2, 0.9)) left top / 100% 3px no-repeat;
    content: "";
    filter: drop-shadow(0 0 5px rgba(230, 59, 63, 0.4));
    height: 4px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1;
}
.header #mainNav .nav-link {
    color: #e6decd !important;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    transition: color 0.16s;
}
.header #mainNav .nav-link:hover,
.header #mainNav .nav-link:focus-visible,
.header #mainNav .nav-item:focus-within > .nav-link {
    color: var(--ch-gold-hi) !important;
}
.header .paa-header-actions .w-px {
    background: rgba(201, 166, 107, 0.4) !important;
    opacity: 1 !important;
}
/* the hall icon set, painted where the pewter trial painted its own */
html body.logged-in .header .paa-header-actions .desktop-search,
html body .header .paa-header-actions .desktop-search {
    background-image: url(img/hi-search.webp) !important;
    background-size: 32px auto !important;
}
html .header #header-messages-dropdown-elem .notification-link {
    background-image: url(img/hi-letter.webp) !important;
    background-size: 30px 30px !important;
}
html .header #header-notifications-dropdown-elem .notification-link {
    background-image: url(img/hi-bell.webp) !important;
    background-size: 30px 30px !important;
}
html .header #menu-cart {
    background-image: url(img/hi-basket.webp) !important;
    background-size: 32px 32px !important;
}
.header .paa-header-actions .desktop-search,
.header .paa-header-actions .notification-link,
.header #menu-cart {
    transition: filter 0.16s;
}
.header .paa-header-actions .desktop-search:hover,
.header .paa-header-actions .notification-link:hover,
.header #menu-cart:hover {
    filter: brightness(1.3) drop-shadow(0 0 6px rgba(240, 221, 176, 0.3));
}

/* one panel for everything that drops from the band */
.header #mainNav .dropdown-menu,
.header .profile-dropdown-toggle > div.absolute,
.header .notification-wrap .notification-dropdown,
.header .desktop-search .search-bar,
.header #search-results-desktop-search {
    background:
        linear-gradient(180deg, rgba(40, 8, 11, 0.9) 0, rgba(17, 13, 12, 0.94) 70px, rgba(9, 8, 8, 0.97) 100%),
        url(img/slate.webp) 0 0 / 420px #0a0808 !important;
    border: 1px solid rgba(201, 166, 107, 0.32) !important;
    border-radius: 0 !important;
    box-shadow:
        inset 0 1px 0 rgba(230, 59, 63, 0.9),
        inset 0 2px 0 rgba(120, 10, 18, 0.5),
        0 22px 44px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(0, 0, 0, 0.6) !important;
}
.header #mainNav .dropdown-menu,
.header .profile-dropdown-toggle > div.absolute {
    min-width: 13.5rem;
}
/* gold corner ticks, the same mark the hall cards carry */
.header #mainNav .dropdown-menu::before,
.header #mainNav .dropdown-menu::after,
.header .profile-dropdown-toggle > div.absolute::before,
.header .profile-dropdown-toggle > div.absolute::after {
    border: solid var(--ch-gold-hi);
    bottom: -3px;
    content: "";
    height: 8px;
    opacity: 0.8;
    pointer-events: none;
    position: absolute;
    width: 8px;
}
.header #mainNav .dropdown-menu::before,
.header .profile-dropdown-toggle > div.absolute::before {
    border-width: 0 0 2px 2px;
    left: -3px;
}
.header #mainNav .dropdown-menu::after,
.header .profile-dropdown-toggle > div.absolute::after {
    border-width: 0 2px 2px 0;
    right: -3px;
}
.header #mainNav .dropdown-menu ul,
.header .profile-dropdown-toggle > div.absolute ul {
    padding: 0.45rem 0 0.55rem !important;
}
.header #mainNav .dropdown-menu li a,
.header .profile-dropdown-toggle > div.absolute li a {
    background: none !important;
    color: #d8cfbd !important;
    font-family: "Marcellus SC", "Cinzel", Georgia, serif !important;
    font-size: 0.86rem !important;
    letter-spacing: 0.08em;
    line-height: 1.25;
    padding: 0.6rem 1.1rem 0.6rem 2rem !important;
    position: relative;
    transition: color 0.14s, background-color 0.14s;
}
.header #mainNav .dropdown-menu li + li a,
.header .profile-dropdown-toggle > div.absolute li + li a {
    border-top: 1px solid rgba(201, 166, 107, 0.09);
}
/* the diamond from the marker under the menu, small, in front of every entry */
.header #mainNav .dropdown-menu li a::before,
.header .profile-dropdown-toggle > div.absolute li a::before {
    background: rgba(201, 166, 107, 0.4);
    content: "";
    height: 5px;
    left: 0.95rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    transition: background-color 0.14s, box-shadow 0.14s;
    width: 5px;
}
.header #mainNav .dropdown-menu li a:hover,
.header #mainNav .dropdown-menu li a:focus-visible,
.header .profile-dropdown-toggle > div.absolute li a:hover,
.header .profile-dropdown-toggle > div.absolute li a:focus-visible {
    background: linear-gradient(90deg, rgba(181, 17, 29, 0.34), rgba(181, 17, 29, 0.04) 82%) !important;
    box-shadow: inset 2px 0 0 var(--ch-gold-hi);
    color: var(--ch-gold-hi) !important;
}
.header #mainNav .dropdown-menu li a:hover::before,
.header #mainNav .dropdown-menu li a:focus-visible::before,
.header .profile-dropdown-toggle > div.absolute li a:hover::before,
.header .profile-dropdown-toggle > div.absolute li a:focus-visible::before {
    background: var(--ch-ruby-hi);
    box-shadow: 0 0 6px rgba(230, 59, 63, 0.8);
}
/* member menu: the name plate on top, a gold rule before signing out */
.header .profile-dropdown-toggle > div.absolute > a {
    border-bottom: 1px solid rgba(201, 166, 107, 0.22);
    display: block;
    padding: 0.5rem 0.7rem 0.7rem;
}
.header .profile-dropdown-toggle > div.absolute > a img {
    border-color: rgba(201, 166, 107, 0.5) !important;
}
.header .profile-dropdown-toggle > div.absolute li.border-t {
    border-color: rgba(201, 166, 107, 0.22) !important;
    margin: 0.3rem 0 !important;
}
.header .profile-dropdown-toggle > div.absolute li.border-t + li a {
    border-top: 0;
}
/* messages and notifications */
.header .notification-wrap .notification-dropdown .notification-header {
    background: none !important;
    border-bottom: 1px solid rgba(201, 166, 107, 0.22) !important;
}
.header .notification-wrap .notification-dropdown .notification-header .title {
    color: var(--ch-gold-hi) !important;
    font-family: "Marcellus SC", "Cinzel", Georgia, serif !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.1em;
}
.header .notification-wrap .notification-dropdown .notification-list,
.header .notification-wrap .notification-dropdown .notification-list li {
    background: none !important;
}
.header .notification-wrap .notification-dropdown .notification-content {
    color: #cfc6b6 !important;
    font-family: "Nunito Sans", system-ui, sans-serif !important;
}
.header .notification-wrap .notification-dropdown .notification-footer {
    background: none !important;
    border-top: 1px solid rgba(201, 166, 107, 0.22) !important;
}
.header .notification-wrap .notification-dropdown .notification-footer a {
    color: var(--ch-gold-hi) !important;
    font-family: "Marcellus SC", "Cinzel", Georgia, serif !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.1em;
}
/* search */
.header .desktop-search .search-bar .search-input {
    background: none !important;
    box-shadow: none !important;
    color: #ece4d6 !important;
    font-family: "Nunito Sans", system-ui, sans-serif !important;
}
.header .desktop-search .search-bar.w-0 {
    border-width: 0 !important;
    box-shadow: none !important;
}
.header a:focus-visible,
.header button:focus-visible {
    outline: 2px solid var(--ch-gold-hi);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .header #mainNav .nav-link,
    .header #mainNav .dropdown-menu li a,
    .header .profile-dropdown-toggle > div.absolute li a {
        transition: none !important;
    }
}

/* ------------------------------------------------------------------
   Footer, third pass (Prince 2026-11-28: "the footer changes are a little
   weak ... enhance the look of those last changes"). The field becomes a
   forged slot with the letter mark, the rule above the small print is the
   same ornament that opens the footer, and each heading sits on a rule
   that starts from a ruby point.
   ------------------------------------------------------------------ */
.footer h2 {
    background: linear-gradient(90deg, rgba(240, 221, 176, 0.7), rgba(201, 166, 107, 0.3) 46%, rgba(201, 166, 107, 0) 100%) left bottom / 100% 1px no-repeat;
    border-bottom: 0;
    padding-bottom: 0.75rem;
    position: relative;
    text-shadow: 0 1px 0 #000, 0 0 18px rgba(201, 166, 107, 0.18);
}
.footer h2::after {
    background: linear-gradient(135deg, #f0575b, #9c0f1a);
    bottom: -3px;
    box-shadow: 0 0 0 1px rgba(240, 221, 176, 0.75), 0 0 8px rgba(230, 59, 63, 0.55);
    content: "";
    height: 7px;
    left: 1px;
    position: absolute;
    transform: rotate(45deg);
    width: 7px;
}
@media (max-width: 767px) {
    .footer h2 {
        background: linear-gradient(90deg, rgba(201, 166, 107, 0), rgba(240, 221, 176, 0.7) 50%, rgba(201, 166, 107, 0)) center bottom / 100% 1px no-repeat;
    }
    .footer h2::after {
        left: calc(50% - 3.5px);
    }
}
/* links step in from a small point, as the header menus do */
@media (min-width: 768px) and (hover: hover) {
    .footer li a {
        display: inline-block;
        position: relative;
        transition: color 0.16s, padding-left 0.16s;
    }
    .footer li a::before {
        background: linear-gradient(135deg, #f0575b, #9c0f1a);
        content: "";
        height: 5px;
        left: 1px;
        opacity: 0;
        position: absolute;
        top: calc(50% - 2.5px);
        transform: rotate(45deg);
        transition: opacity 0.16s;
        width: 5px;
    }
    .footer li a:hover,
    .footer li a:focus-visible {
        padding-left: 14px;
    }
    .footer li a:hover::before,
    .footer li a:focus-visible::before {
        opacity: 1;
    }
}
/* the newsletter slot */
.footer input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]) {
    background:
        url(img/hi-letter.webp) 12px center / 30px 30px no-repeat padding-box,
        linear-gradient(90deg, rgba(240, 221, 176, 0.22), rgba(240, 221, 176, 0.22)) 52px center / 1px 58% no-repeat padding-box,
        linear-gradient(180deg, rgba(34, 9, 11, 0.86), rgba(8, 6, 6, 0.95)) padding-box,
        url(img/leather.webp) 0 0 / 220px padding-box !important;
    border: 11px solid transparent !important;
    border-image: url(img/card-frame.webp) 30 / 11px / 4px stretch !important;
    box-shadow: 0 0 0 1px rgba(201, 166, 107, 0.3), inset 0 3px 12px rgba(0, 0, 0, 0.9), 0 12px 26px rgba(0, 0, 0, 0.55) !important;
    font-size: 1rem !important;
    height: 60px !important;
    margin-bottom: 1.25rem !important;
    /* the theme sets this field's padding from a layered !important utility, so the text is
       moved clear of the letter mark with an indent instead */
    text-indent: 44px;
    transition: box-shadow 0.2s, filter 0.2s;
    width: min(100%, 21rem) !important;
}
.footer input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]):focus {
    box-shadow: 0 0 0 1px rgba(240, 221, 176, 0.75), inset 0 3px 12px rgba(0, 0, 0, 0.9), 0 0 22px rgba(230, 59, 63, 0.32) !important;
    filter: none;
}
/* the rule above the small print: the footer's own ornament, with a line running out to both sides */
.footer > div:last-child::before {
    background:
        url(img/divider.webp) center / min(520px, 78%) 100% no-repeat,
        linear-gradient(90deg, rgba(201, 166, 107, 0), rgba(201, 166, 107, 0.34) 14%, rgba(201, 166, 107, 0) 30%, rgba(201, 166, 107, 0) 70%, rgba(201, 166, 107, 0.34) 86%, rgba(201, 166, 107, 0)) center / 100% 1px no-repeat;
    height: 26px;
    margin-bottom: 0.9rem;
    width: min(92%, 1240px);
}
@media (prefers-reduced-motion: reduce) {
    .footer li a,
    .footer li a::before,
    .footer input {
        transition: none !important;
    }
}
/* the floating chat and cart launcher sits over the bottom right corner; leave it room so the
   policy links are not covered when the page is scrolled to its end */
.footer > div:last-child {
    padding-bottom: 4.6rem !important;
}
