/* ADR-080: the ArkTally pages (templates/arktally_*.html) wear ArkTally's look, the beta site's calculator: a paper card over its
   cream page, Georgia headings, forest-green buttons. Loaded after style.css by those three templates alone, and every rule is
   scoped to .arktally, so no other page changes. Values are the calculator's own (beta.listingark.io/calculator/calculator.css);
   tests/test_arktally_theme.py checks each pair it uses against WCAG AA. */
.arktally, body:has(main.arktally) {
  --ark-cream: #f8f6ed; --ark-paper: #fffef9; --ark-ink: #1a3a30; --ark-muted: #526155; --ark-line: #c6cebf;
  --ark-green: #103b30; --ark-green-hover: #0b2d25; --ark-on-green: #f8f6ed; --ark-link: #006451;
  --ark-focus: #688633; --ark-control: #7c8b80;
  background: var(--ark-cream);
}
.arktally { color: var(--ark-ink); font: 16px/1.6 Arial, Helvetica, sans-serif; }
.arktally .arktally__card {
  position: relative; background: var(--ark-paper); border: 1px solid var(--ark-line); border-radius: 14px;
  box-shadow: 0 18px 50px rgb(16 59 48 / 12%); padding: 36px 32px 32px;
}
.arktally .signin__title, .arktally h1, .arktally h2 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; color: var(--ark-ink); }
.arktally .signin__title { font-size: 32px; line-height: 1.15; letter-spacing: -0.5px; }
.arktally .signin__subtitle { font-size: 22px; line-height: 1.3; }
.arktally a:not(.btn) { color: var(--ark-link); text-underline-offset: 3px; }
.arktally .field__hint, .arktally .legal-footer, .arktally .arktally__delete > summary { color: var(--ark-muted); }
.arktally .btn {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px;
  border-radius: 6px; font-weight: bold; font-family: inherit; text-decoration: none; filter: none;
}
.arktally .btn.btn-primary { background: var(--ark-green); background-image: none; color: var(--ark-on-green); border: 1px solid var(--ark-green); box-shadow: none; }
.arktally .btn.btn-primary:hover { background: var(--ark-green-hover); filter: none; }
.arktally .btn.btn-outline { background: transparent; color: var(--ark-green); border: 2px solid var(--ark-green); }
.arktally .btn.btn-ghost { background: transparent; color: var(--ark-muted); border: 1px solid transparent; text-decoration: underline; }
.arktally .input { min-height: 44px; background: #fff; color: var(--ark-ink); border: 1px solid var(--ark-control); border-radius: 6px; }
.arktally :focus-visible, .arktally .input:focus-visible { outline: 3px solid var(--ark-focus); outline-offset: 3px; box-shadow: none; }
.arktally .arktally__list, .arktally .arktally__news { border-top-color: var(--ark-line); }
.arktally .arktally__close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 50%; color: var(--ark-muted); font-size: 28px; line-height: 1; text-decoration: none;
}
.arktally .arktally__close:hover { color: var(--ark-ink); background: var(--ark-cream); }
@media (max-width: 639px) {
  .arktally .arktally__card { padding: 30px 18px 22px; border-radius: 12px; }
  .arktally .signin__title { font-size: 28px; }
}
