/* Cookie consent banner — Paper & Screen tokens, with literal fallbacks so it
   renders correctly on the few pages that do not load hw.css. */
.hw-consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  background: var(--sheet, #FBF9F2);
  color: var(--ink, #182619);
  border: 1px solid var(--line-hw, #D6D0BE);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(24,38,25,.05), 0 14px 40px rgba(24,38,25,.14);
  font-family: var(--body, 'PublicSans', system-ui, sans-serif);
  animation: hw-consent-in .22s ease-out;
}
@keyframes hw-consent-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hw-consent[data-leaving] { opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; }

.hw-consent-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hw-consent-copy {
  flex: 1 1 380px;
  font-size: 13px; line-height: 1.6;
  color: var(--ink-muted, #63705F);
}
.hw-consent-copy strong { color: var(--ink, #182619); }
.hw-consent-copy a { color: var(--pine, #1D4A37); text-decoration: underline; }

.hw-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.hw-consent-btn {
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 20px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-hw, #D6D0BE);
  background: transparent; color: var(--ink, #182619);
  transition: background .15s, border-color .15s;
}
.hw-consent-btn.ghost:hover { background: var(--well, #EDE9DC); }
.hw-consent-btn.primary {
  background: var(--pine, #1D4A37);
  border-color: var(--pine, #1D4A37);
  color: var(--on-pine, #F1F5EC);
}
.hw-consent-btn.primary:hover { filter: brightness(1.08); }
.hw-consent-btn:focus-visible { outline: 2px solid var(--pine, #1D4A37); outline-offset: 2px; }

@media (max-width: 640px) {
  .hw-consent { left: 10px; right: 10px; bottom: 10px; }
  .hw-consent-inner { padding: 14px 16px; gap: 14px; }
  .hw-consent-actions { width: 100%; }
  .hw-consent-btn { flex: 1; }
}

/* A control, not a destination: styled to sit inline with the footer links it
   sits beside, inheriting whatever that page's footer already uses. */
.hw-cookie-link {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit;
  cursor: pointer; text-decoration: underline;
}
.hw-cookie-link:hover { opacity: .8; }
.hw-cookie-link:focus-visible { outline: 2px solid var(--pine, #1D4A37); outline-offset: 2px; border-radius: 3px; }

/* Minimal legal footer for pages that had none. */
.hw-minifoot {
  max-width: 1100px; margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--body, 'PublicSans', system-ui, sans-serif);
  font-size: 12.5px;
  color: var(--ink-muted, #63705F);
}
.hw-minifoot a, .hw-minifoot .hw-cookie-link { color: var(--ink-muted, #63705F); text-decoration: none; }
.hw-minifoot a:hover, .hw-minifoot .hw-cookie-link:hover { text-decoration: underline; }
