/* The Key - Update H page styles (Legal, sign-in, Hosts, Trust Centre, error pages).
   Style guide v2 tokens; loaded after the-key-member.css. UTF-8. */

/* Legal: readable policies with headings, lists and anchors that clear the fixed header */
.key-legal article[id], .key-legal [id] { scroll-margin-top: calc(var(--key-header-h, 104px) + 16px); }
.key-legal .key-card h2 { font-size: 28px; margin: 0 0 16px; color: var(--key-gold, #D8AD58); }
.key-legal .key-card h3 { font-family: var(--key-font-display, Georgia, serif); font-size: 19px; line-height: 1.35; margin: 28px 0 8px; color: var(--key-text, #F5EFE4); }
.key-legal .key-card h3:first-of-type { margin-top: 8px; }
.key-legal .key-card p, .key-legal .key-card li { font-size: 16px; line-height: 1.65; color: var(--key-text-secondary, #D8D0C3); max-width: 72ch; }
.key-legal .key-card ul { margin: 8px 0 16px; padding-left: 22px; }
.key-legal .key-card li { margin: 0 0 8px; }
.key-legal .key-card li::marker { color: var(--key-gold, #D8AD58); }
.key-legal .key-subnav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 32px; }
.key-legal .key-subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--key-border, rgba(216,173,88,.22)); border-radius: 999px; color: var(--key-text, #F5EFE4) !important; text-decoration: none !important; font-size: 14px; }
.key-legal .key-subnav a:hover, .key-legal .key-subnav a:focus-visible { border-color: var(--key-gold, #D8AD58); color: var(--key-gold-highlight, #F2D58A) !important; }
.key-legal .key-back-top { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 14px; color: var(--key-gold, #D8AD58) !important; }
@media (max-width: 767px) {
  .key-legal .key-card { padding: 20px 16px; }
  .key-legal .key-card h2 { font-size: 24px; }
  .key-legal .key-card h3 { font-size: 18px; }
}

/* Host photos: never show alt text sprawling over a card while an image loads or fails */
.keyb-host-card img, .key-portrait img, .key-host__img img, #portfoliopic { color: transparent; background: #100E0D url("the-key/host-placeholder.svg") center / cover no-repeat; }

/* ---------- Sign in / reset / register (Update H) ----------
   Real HTML text on a responsive door photograph; no baked-in text images. */
.key-auth { position: relative; isolation: isolate; min-height: calc(100vh - var(--key-header-h, 104px)); display: flex; align-items: center; justify-content: flex-start; padding: 56px max(24px, 8vw); overflow: hidden; }
.key-auth__bg { position: absolute; inset: 0; z-index: -2; }
.key-auth__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; display: block; }
.key-auth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,6,4,.94) 0%, rgba(8,6,4,.78) 38%, rgba(8,6,4,.25) 72%, rgba(8,6,4,.45) 100%); }
.key-auth__card { width: 100%; max-width: 440px; background: rgba(16,14,13,.86); border: 1px solid var(--key-border, rgba(216,173,88,.22)); border-radius: var(--key-radius-card, 8px); padding: 40px 36px 32px; box-shadow: 0 24px 60px rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--key-text, #F5EFE4); }
.key-auth__eyebrow { font-family: var(--key-font-ui, Arial, sans-serif); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--key-gold-muted, #B9A16E); margin: 0 0 10px; }
.key-auth__title { font-family: var(--key-font-display, Georgia, serif); font-weight: 400; font-size: 40px; line-height: 1.1; margin: 0 0 10px; color: var(--key-text, #F5EFE4); }
.key-auth__lede { color: var(--key-text-secondary, #D8D0C3); font-size: 16px; line-height: 1.5; margin: 0 0 28px; }
.key-auth__form { margin: 0; }
.key-auth .key-field label { color: var(--key-text-secondary, #D8D0C3); }
.key-auth__pw { position: relative; }
.key-auth__pw input { padding-right: 52px; }
.key-auth .key-pwtoggle { position: absolute; top: 0; right: 0; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--key-text-muted, #AAA197); cursor: pointer; border-radius: var(--key-radius-control, 6px); }
.key-auth .key-pwtoggle:hover, .key-auth .key-pwtoggle[aria-pressed="true"] { color: var(--key-gold-highlight, #F2D58A); }
.key-auth .key-pwtoggle:focus-visible { outline: none; box-shadow: var(--key-focus, 0 0 0 2px #080604, 0 0 0 4px #F2D58A); }
.key-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 24px; }
.key-auth__remember, .key-auth__agree { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--key-text-secondary, #D8D0C3); font-size: 15px; cursor: pointer; margin: 0; }
.key-auth__agree { align-items: flex-start; margin: 4px 0 24px; line-height: 1.45; }
.key-auth__remember input, .key-auth__agree input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--key-gold, #D8AD58); margin: 2px 0 0; }
.key-auth__submit { width: 100%; min-height: 52px; font-size: 15px; }
html body #mainpages .key-auth a.key-auth__link, html body #mainpages .key-auth a.key-auth__link:visited { color: var(--key-gold-highlight, #F2D58A) !important; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
html body #mainpages .key-auth a.key-btn.key-btn--outline, html body #mainpages .key-auth a.key-btn.key-btn--outline:visited { color: var(--key-text, #F5EFE4) !important; text-decoration: none !important; }
html body #mainpages .key-auth a.key-btn.key-btn--outline:hover { color: var(--key-gold-highlight, #F2D58A) !important; }
.key-auth__error { color: #F0B4BC; font-size: 15px; }
.key-auth__error ul { margin: 0 0 16px; padding-left: 18px; }
.key-auth__error.validation-summary-valid { display: none; }
.key-auth__fielderror { color: #F0B4BC; font-size: 14px; }
.key-auth__alt { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(216,173,88,.16); text-align: center; }
.key-auth__alt p { margin: 0 0 12px; color: var(--key-text-muted, #AAA197); font-size: 14px; }
.key-auth__altlinks { display: flex; gap: 12px; }
.key-auth__altlinks .key-btn { flex: 1 1 0; padding: 0 12px; font-size: 14px; }
.key-auth__back { margin: 20px 0 0; text-align: center; }
.key-auth__secure { display: flex; justify-content: center; gap: 16px; margin-top: 24px; }
.key-auth__secure img { width: 64px; height: auto; border-radius: 4px; background: #fff; padding: 4px; }
@media (max-width: 767px) {
  .key-auth { align-items: flex-start; justify-content: center; padding: 32px 16px 48px; min-height: calc(100vh - var(--key-header-h, 76px)); }
  .key-auth::before { background: linear-gradient(180deg, rgba(8,6,4,.55) 0%, rgba(8,6,4,.82) 45%, rgba(8,6,4,.95) 100%); }
  .key-auth__bg img { object-position: 50% 30%; }
  .key-auth__card { padding: 28px 20px 24px; background: rgba(16,14,13,.9); }
  .key-auth__title { font-size: 32px; }
  .key-auth__altlinks { flex-direction: column; }
}

/* Tips / new-message alerts (Update H): inline SVG icons instead of the 3 MB of animated GIFs */
.key-alert-icon { display: flex; align-items: center; justify-content: center; margin: 0 auto; width: 72px; height: 72px; border-radius: 50%; background: #100E0D; border: 1px solid rgba(216,173,88,.45); color: var(--key-gold, #D8AD58); }
.key-alert-icon--bell { width: 56px; height: 56px; }
@media (prefers-reduced-motion: no-preference) {
  .key-alert-icon--bell svg { transform-origin: 50% 10%; animation: key-bell 2.4s ease-in-out infinite; }
  .key-alert-icon--tip { animation: key-glow 2.4s ease-in-out infinite; }
}
@keyframes key-bell { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 82% { transform: rotate(-12deg); } 89% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@keyframes key-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(216,173,88,0); } 50% { box-shadow: 0 0 0 8px rgba(216,173,88,.18); } }

/* WebP <picture> wrappers (Update H) must not change the layout of the images they wrap */
.key-header picture, .key-drawer picture, .key-hero__logo picture, .key-membership__media picture,
.key-split__media picture, .key-footer picture { display: contents; }

/* One host status vocabulary (Update H, style guide): Available / Busy / In meeting / Offline */
.key-dot--busy { background: var(--key-warning, #C6842A); }
.keyb-chip.keyb-chip--available, .keyb-chip.keyb-chip--busy, .keyb-chip.keyb-chip--inmeeting, .keyb-chip.keyb-chip--offline { background: rgba(8,6,4,.82); color: var(--key-text, #F5EFE4); border: 1px solid rgba(216,173,88,.35); }
.keyb-chip--available::before { background: var(--key-success, #3E9B75) !important; }
.keyb-chip--busy::before { background: var(--key-warning, #C6842A) !important; }
.keyb-chip--inmeeting::before { background: var(--key-gold-muted, #B9A16E) !important; }
.keyb-chip--offline::before { background: transparent !important; border: 1px solid var(--key-text-muted, #AAA197); }

/* Hosts page heading (Update H) */
.key-hosts { padding-top: 0 !important; }
.key-hosts__head { max-width: 1200px; margin: 0 auto; padding: 40px 16px 20px; text-align: center; }
.key-hosts__title { font-family: var(--key-font-display, Georgia, serif); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; color: var(--key-text, #F5EFE4); margin: 0 0 12px; }
.key-hosts__lede { color: var(--key-text-secondary, #D8D0C3); font-size: 17px; margin: 0 auto; max-width: 620px; }
.key-hosts__credits { margin: 20px auto 0; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 10px 18px; border: 1px solid rgba(216,173,88,.3); border-radius: 50rem; background: rgba(16,14,13,.8); color: var(--key-text, #F5EFE4); font-size: 16px; }
.key-hosts__credits img { width: 28px !important; height: 28px !important; }
@media (max-width: 767px) { .key-hosts__head { padding: 28px 16px 12px; } .key-hosts__lede { font-size: 16px; } }

/* Footer tap targets (Update H): every footer link is at least 44px tall with breathing room */
.key-footer__nav a { min-height: 44px; padding: 0 6px; }
.key-footer__legal a, .key-footer__policies a, .key-footer__details-body a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.key-footer__policies li { min-height: 44px; }
@media (max-width: 767px) { .key-footer__nav ul { gap: 4px 16px; } }

/* ---------- Trust Centre page, .key-tc (Update H; .key-trust is the homepage strip): brand styling, no Bootstrap alert colours ---------- */
.key-tc { max-width: 960px; margin: 0 auto; padding: 48px 24px 72px; color: var(--key-text, #F5EFE4); }
.key-tc__head { text-align: center; margin: 0 0 40px; }
.key-tc__title { font-family: var(--key-font-display, Georgia, serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.1; margin: 0 0 14px; color: var(--key-text, #F5EFE4); }
.key-tc__lede { color: var(--key-text-secondary, #D8D0C3); font-size: 17px; line-height: 1.6; max-width: 640px; margin: 0 auto; }
.key-tc__pillars { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.key-tc__pillars li { background: var(--key-surface, #100E0D); border: 1px solid var(--key-border, rgba(216,173,88,.22)); border-radius: var(--key-radius-card, 8px); padding: 22px 18px; }
.key-tc__pillars svg { width: 32px; height: 32px; color: var(--key-gold, #D8AD58); margin-bottom: 12px; display: block; }
.key-tc__pillars h2 { font-family: var(--key-font-display, Georgia, serif); font-weight: 400; font-size: 19px; margin: 0 0 6px; color: var(--key-text, #F5EFE4); }
.key-tc__pillars p { margin: 0; color: var(--key-text-secondary, #D8D0C3); font-size: 14px; line-height: 1.5; }
.key-tc__section { margin: 0 0 40px; }
.key-tc__section-title { font-family: var(--key-font-ui, Arial, sans-serif); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--key-gold-muted, #B9A16E); margin: 0 0 12px; }
.key-tc__item { border-top: 1px solid var(--key-border, rgba(216,173,88,.22)); }
.key-tc__item:last-child { border-bottom: 1px solid var(--key-border, rgba(216,173,88,.22)); }
.key-tc__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 4px; }
.key-tc__item summary::-webkit-details-marker { display: none; }
.key-tc__item summary::after { content: "+"; flex: none; color: var(--key-gold, #D8AD58); font-size: 24px; line-height: 1; }
.key-tc__item[open] summary::after { content: "\2212"; }
.key-tc__item summary:focus-visible { outline: none; box-shadow: var(--key-focus, 0 0 0 2px #080604, 0 0 0 4px #F2D58A); border-radius: 4px; }
.key-tc__item summary h3 { font-family: var(--key-font-display, Georgia, serif); font-weight: 400; font-size: 21px; line-height: 1.35; margin: 0; color: var(--key-text, #F5EFE4); }
.key-tc__item summary:hover h3 { color: var(--key-gold-highlight, #F2D58A); }
.key-tc__body { padding: 0 4px 24px; color: var(--key-text-secondary, #D8D0C3); font-size: 16px; line-height: 1.7; }
.key-tc__body p, .key-tc__body ul, .key-tc__body ol { margin: 0 0 14px; }
.key-tc__body .alert, .key-tc__body [class*="border-success"], .key-tc__body [class*="alert-"] { background: transparent !important; border: 0 !important; color: inherit !important; padding: 0 !important; }
.key-tc__item--single { border: 0; padding-top: 24px; }
.key-tc__empty { text-align: center; color: var(--key-text-secondary, #D8D0C3); }
.key-tc__contact { margin-top: 56px; text-align: center; padding: 36px 24px; background: var(--key-surface, #100E0D); border: 1px solid var(--key-border, rgba(216,173,88,.22)); border-radius: var(--key-radius-card, 8px); }
.key-tc__contact h2 { font-family: var(--key-font-display, Georgia, serif); font-weight: 400; font-size: 28px; margin: 0 0 8px; color: var(--key-text, #F5EFE4); }
.key-tc__contact p { color: var(--key-text-secondary, #D8D0C3); margin: 0 0 20px; }
html body #mainpages .key-tc a.key-btn--primary, html body #mainpages .key-tc a.key-btn--primary:visited { color: var(--key-bg, #080604) !important; text-decoration: none !important; }
@media (max-width: 991px) { .key-tc__pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .key-tc { padding: 32px 16px 56px; } .key-tc__pillars { grid-template-columns: 1fr; } .key-tc__item summary h3 { font-size: 19px; } }

/* Update H: the page header is already offset by the body (fixed public header) or sits in the flow
   (member navbar), so content pages do not add the header height a second time. */
body.key-body--inner .key-page, body.key-body--member .key-page { padding-top: 48px; }
@media (max-width: 767px) { body.key-body--inner .key-page, body.key-body--member .key-page { padding-top: 28px; } }
.key-page.key-tc h2.key-tc__section-title { font-family: var(--key-font-ui, Arial, sans-serif); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--key-gold-muted, #B9A16E); }

/* Member header (_Layout navbar). Logo 260x150 on desktop, ~173x100 on phones, from the 2x/3x
   the-key-logo-header-*.webp assets. The bar grows with the logo (no fixed height), and it is
   sticky in normal flow, so the page below needs no extra offset.
   Scoped to .keyb-logo--nav: stand-alone pages that use .keyb-logo keep their 140px logo. */
html body nav.keyb-member-nav,
html body nav.keyb-member-nav > .container-fluid { min-height: 176px; }
html body .keyb-member-nav .navbar-brand { display: block; padding: 13px 0; margin-right: 24px; }
html body .keyb-member-nav .navbar-brand img.keyb-logo--nav { display: block; width: auto !important; height: 150px; max-width: none; }
/* 992-1199px: the bigger logo leaves less room, so drop the legacy 350px gap beside the account menu
   and keep each link on one line. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  html body .keyb-member-nav .dropdownnav { margin-right: 0 !important; }
  html body .keyb-member-nav .keyb-nav .nav-link { white-space: nowrap; }
}
@media (max-width: 991.98px) {
  html body .keyb-member-nav .navbar-collapse { margin-top: 0 !important; max-height: calc(100vh - 124px); overflow-y: auto; }
}
@media (max-width: 767px) {
  html body nav.keyb-member-nav,
  html body nav.keyb-member-nav > .container-fluid { min-height: 124px; }
  html body .keyb-member-nav .navbar-brand { padding: 12px 0; margin-right: 12px; }
  html body .keyb-member-nav .navbar-brand img.keyb-logo--nav { height: 100px; }
}
