/* P11 cat habit card v1. Scoped standalone route, no shared theme dependency. */
:root { color-scheme: light; font: 18px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #2a2118; background: #fbf5ea; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header, main, footer { width: min(100% - 2rem, 48rem); margin: 1.5rem auto; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
a { color: #243a5e; text-underline-offset: .2em; overflow-wrap: anywhere; }
header a, footer a, nav a { display: inline-block; padding: .6rem .1rem; min-height: 44px; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid #243a5e; outline-offset: 4px; }
h1, h2 { font-family: Georgia, serif; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7vw, 3rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.05rem; }
.eyebrow { color: #6a5c4c; font-size: .9rem; }
#chooser, .habit-card { padding: clamp(1rem, 4vw, 2rem); background: #fffdf8; border: 1px solid #d5c2a7; border-radius: .6rem; margin-block: 1.5rem; }
label { display: block; font-weight: 600; margin-bottom: .5rem; }
select, button { font: inherit; min-height: 48px; border: 1px solid #6a5c4c; border-radius: .3rem; padding: .6rem; }
select { width: 100%; color: #2a2118; background: white; }
button { cursor: pointer; background: #243a5e; color: #fffdf8; }
button:disabled { opacity: .6; cursor: default; }
#reset { color: #243a5e; background: #fffdf8; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
#status { font-size: .95rem; }
.context { border-left: 3px solid #d5c2a7; padding-left: 1rem; font-size: .92rem; }
.disclaimer, .attribution { font-size: .85rem; }
.skip { position: absolute; top: -8rem; background: white; padding: .7rem; }
.skip:focus { top: 0; }
.print-address { display: none; }
@media print {
  @page { margin: 15mm; }
  :root { font-size: 11pt; color: #000; background: #fff; }
  header, footer, .skip, .introduction, #chooser, .fallback-nav { display: none !important; }
  main { width: auto; margin: 0; }
  .habit-card { border: 0; padding: 0; margin: 0 0 1.5rem; break-after: page; }
  .habit-card:last-child { break-after: auto; }
  h2 { font-size: 19pt; }
  h3, p, li { orphans: 3; widows: 3; }
  .has-choice .habit-card:not(.selected) { display: none !important; }
  .has-choice .habit-card.selected { break-after: auto; }
  a { color: #000; }
  .print-address { display: inline; }
  .habit-card section a::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
}
