.act {
  padding: 12px; border: 0; border-radius: var(--r-sm); background: var(--accent);
  color: var(--on-accent); font-family: var(--display); font-weight: 800; font-size: 15px;
  cursor: pointer; min-height: var(--tap); text-decoration: none; text-align: center;
}
.act.ghost { background: var(--raised); color: var(--fg-2); border: 1px solid var(--line-hard); }
.act.ghost:hover { border-color: var(--accent); color: var(--fg); }
.act.danger { background: transparent; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
.act.sm { padding: 5px 10px; font-size: 12px; min-height: 0; }
.act:disabled { opacity: .45; cursor: default; }

.sub.small, p.small { font-size: 13px; color: var(--fg-4); line-height: 1.55; }
.label { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; color: var(--fg-4); }
.label.muted { color: var(--fg-5); font-weight: 500; }

.field select, .field textarea {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); color: var(--fg); font: inherit; font-size: 16px; outline: none; width: 100%;
}
.field select { height: var(--tap); padding: 0 12px; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; font-family: var(--sans); }
.field select:focus, .field textarea:focus { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.announce-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.announce {
  --tone: var(--info);
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 10px 13px 16px;
  background: color-mix(in srgb, var(--tone) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent);
  border-radius: var(--r-md);
}
.announce[data-tone="important"] { --tone: var(--warn); }
.announce-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--tone); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.announce-text { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 1.45; color: var(--fg); overflow-wrap: anywhere; }
.announce-text a {
  color: var(--fg); font-weight: 700; text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--tone) 70%, transparent);
  text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap;
}
.announce-close {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -6px 0; padding: 0;
  background: none; border: 0; border-radius: var(--r-sm); color: var(--fg-3); cursor: pointer;
}
.announce-close:hover { color: var(--fg); background: color-mix(in srgb, var(--tone) 18%, transparent); }
.announce-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.cookie-notice {
  position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 60; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 560px; margin: 0 auto; padding: 12px 14px;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.cookie-notice p { margin: 0; flex: 1 1 260px; font-size: 13.5px; line-height: 1.5; }
.cookie-notice a { color: var(--accent-ink); }
.cookie-notice .act { margin-left: auto; padding: 7px 16px; }
@media (min-width: 900px) { .cookie-notice { bottom: 18px; } }

.feedback-pop {
  position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 61; max-width: 420px; margin: 0 auto; padding: 16px 16px 14px;
  max-height: calc(100dvh - 96px - env(safe-area-inset-bottom)); overflow-y: auto;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
@media (min-width: 900px) { .feedback-pop { left: auto; right: 18px; width: 400px; } }
.feedback-x {
  position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--fg-3); font-size: 22px; line-height: 1; cursor: pointer;
}
.feedback-x:hover { background: var(--raised); color: var(--fg); }
.feedback-title { margin: 0 34px 6px 0; font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.35; letter-spacing: -.01em; }
.feedback-sub { margin: 0; color: var(--fg-3); font-size: 13.5px; line-height: 1.5; }
.feedback-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.feedback-acts .act { flex: 1 1 auto; }
.feedback-form { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.feedback-field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.feedback-field:first-child { margin-right: 34px; }
.feedback-field em { font-style: normal; font-weight: 400; color: var(--fg-4); }
.feedback-field input, .feedback-field textarea {
  background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; font: inherit; font-weight: 400; font-size: 15px; min-height: var(--tap); width: 100%;
}
.feedback-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; font-family: var(--sans); }
.feedback-field input:focus, .feedback-field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.feedback-msg { margin: 0; font-size: 13.5px; color: var(--fg-3); }
.feedback-msg[data-kind="bad"] { color: var(--warn); }

.sitefoot { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.sitefoot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.sitefoot-links a {
  color: var(--fg-2); font-weight: 600; font-size: 14.5px; text-decoration: none;
  min-height: var(--tap); display: inline-flex; align-items: center;
}
.sitefoot-links a:hover { color: var(--accent-ink); }
.sitefoot-note { margin: 0; color: var(--fg-5); font-size: 12px; line-height: 1.6; max-width: 68ch; }
.sitefoot-note a { color: var(--fg-4); }
.sitefoot-note a:hover { color: var(--accent-ink); }

.prose section { margin: 22px 0; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 17px; margin: 0 0 8px; }
.prose p, .prose li { font-size: 14.5px; line-height: 1.6; color: var(--fg-2); max-width: 65ch; }
.prose ul { padding-left: 20px; margin: 8px 0; }
.prose li + li { margin-top: 4px; }
.prose code { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--raised); color: var(--fg); }
.tablewrap { overflow-x: auto; }
table.plain { border-collapse: collapse; font-size: 13.5px; }
table.plain th, table.plain td { text-align: left; padding: 7px 14px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-weight: 500; color: var(--fg-2); }
table.plain td { color: var(--fg); }
.nocount { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; color: var(--fg); }
.nocount input { width: 18px; height: 18px; accent-color: var(--accent); }

.qa { display: flex; flex-direction: column; gap: 1px; border-radius: var(--r-sm); overflow: hidden; }
.qa details { background: var(--card); }
.qa details[open] { background: var(--card-2); }
.qa summary {
  padding: 15px 16px; cursor: pointer; font-weight: 600; color: var(--fg); list-style: none;
  display: flex; align-items: center; gap: 10px; min-height: var(--tap);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  content: ""; flex: none; width: 7px; height: 7px;
  border-right: 2px solid var(--fg-4); border-bottom: 2px solid var(--fg-4);
  transform: rotate(-45deg); transition: transform .18s ease;
}
.qa details[open] summary::before { transform: rotate(45deg); }
.qa summary:hover { background: var(--card-2); }
.qa details > div { padding: 0 16px 16px 33px; color: var(--fg-2); font-size: 14.5px; line-height: 1.6; max-width: 68ch; }
.qa a { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .qa summary::before { transition: none; } }

.contact-lede { max-width: 60ch; }
.contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin-top: 12px; }
.contact-send { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact-send .act { padding: 12px 22px; }
.contact-msg { margin: 0; color: var(--fg-3); font-size: 13.5px; }
.contact-msg[data-kind="bad"] { color: var(--warn); }
.contact-done { padding: 18px; background: var(--card); border-radius: var(--r-sm); max-width: 560px; }
.contact-done b { display: block; margin-bottom: 6px; color: var(--fg); }
.contact-done p { margin: 0; color: var(--fg-3); font-size: 14px; line-height: 1.55; }

a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.page section p.note a { color: var(--accent-ink); }
