/* The dttasa.org/care pages (Care R1.10b), made by tools/care/web-pages.mjs in the dttasa-apps codebase: never
   edited here. Care's approved design (Apothecary Glass, 8 November 2026): Fraunces for the titles, Hanken Grotesk for
   everything else, the apothecary green on the screen's pale ground, the living ground's green and gold light behind. */
@font-face { font-family: 'Care Fraunces'; font-weight: 500; font-display: swap; src: url(/assets/care/fonts/Fraunces24pt-Medium.ttf) format('truetype'); }
@font-face { font-family: 'Care Hanken'; font-weight: 400; font-display: swap; src: url(/assets/care/fonts/HankenGrotesk-Regular.ttf) format('truetype'); }
@font-face { font-family: 'Care Hanken'; font-weight: 600; font-display: swap; src: url(/assets/care/fonts/HankenGrotesk-SemiBold.ttf) format('truetype'); }

:root {
  --screen: #f7faf9; --card: #ffffff; --ink: #13211e; --ink2: #3a4b47; --muted: #62736f; --rule: #d5e0dc;
  --apothecary: #0d5c52; --on-apothecary: #ffffff; --gold: #b8862a; --focus: #0d5c52;
  --band: #0d5c52; --on-band: #ffffff; --on-band-2: #d9ebe6; --band-rule: rgba(255, 255, 255, 0.24);
  --dt-green-bright: #43b14b; --dt-green-glow: #5cc965;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --screen: #0f1a18; --card: #13211e; --ink: #e6efec; --ink2: #bfd0cb; --muted: #8fa39e; --rule: #22332f;
    --apothecary: #5cc4b0; --on-apothecary: #0f1a18; --gold: #e0b04f; --focus: #5cc4b0;
    --band: #12302b; --on-band: #e6efec; --on-band-2: #bfd0cb; --band-rule: rgba(230, 239, 236, 0.18);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; min-height: 100vh; background: var(--screen); color: var(--ink); font: 400 1.0625rem/1.55 'Care Hanken', system-ui, sans-serif; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: 0.5rem 0.75rem; background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: 0.5rem; z-index: 5; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 0.375rem; }
a { color: var(--apothecary); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; }

/* The bar: Care's mark, the five pages people look for first, and the way back to dttasa.org. It stays at the top. */
.bar { position: sticky; top: 0; z-index: 4; background: color-mix(in srgb, var(--screen) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.bar-in { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; min-height: 4rem; display: flex; align-items: center; gap: 0.5rem 2rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; color: var(--ink); text-decoration: none; font: 500 1.1875rem/1 'Care Fraunces', Georgia, serif; white-space: nowrap; }
.brand img { border-radius: 0.5rem; }
.primary { flex: 1 1 auto; min-width: 0; }
.primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.primary ul::-webkit-scrollbar { display: none; }
.primary li + li { margin-top: 0; }
.primary a { display: block; padding: 0.5rem 0.75rem; border-radius: 0.5rem; color: var(--ink2); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.primary a:hover { color: var(--ink); background: color-mix(in srgb, var(--apothecary) 8%, transparent); }
.primary a[aria-current="page"] { color: var(--apothecary); font-weight: 600; background: color-mix(in srgb, var(--apothecary) 10%, transparent); }
.site { color: var(--muted); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.site:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 47.99rem) {
  .bar-in { flex-wrap: wrap; padding-top: 0.75rem; justify-content: space-between; gap: 0.25rem 1rem; }
  .primary { order: 3; flex-basis: 100%; margin: 0 -0.75rem; }
  .primary ul { padding: 0 0 0.5rem; }
  html { scroll-padding-top: 7.5rem; }
}

main:focus { outline: none; }
h1 { font: 500 clamp(2.25rem, 6vw, 3.5rem)/1.06 'Care Fraunces', Georgia, serif; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font: 500 1.625rem/1.2 'Care Fraunces', Georgia, serif; margin: 0; text-wrap: balance; }
h3 { font: 600 1.0625rem/1.4 'Care Hanken', system-ui, sans-serif; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }
li ul { margin-top: 0.4rem; }
blockquote { margin: 0; padding-left: 1rem; border-left: 2px solid var(--gold); color: var(--ink2); }
strong { font-weight: 600; }
.lead { color: var(--ink2); font-size: 1.1875rem; line-height: 1.5; }

/* The home page. Its one set-apart thing is the label: Care's plain facts as a sheet, under a gold rule. */
.hero { max-width: 70rem; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem 4rem; align-items: start; }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); padding-top: 5rem; padding-bottom: 5.5rem; } .hero-words { padding-top: 1rem; } }
.hero .lead { margin-top: 1.5rem; max-width: 31em; font-size: 1.25rem; }
.status { margin-top: 2rem; max-width: 31em; padding: 0.875rem 1rem; border: 1px solid var(--rule); border-left: 3px solid var(--apothecary); border-radius: 0.5rem; background: var(--card); color: var(--ink2); font-size: 0.975rem; }
.label { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 0.25rem 0.25rem 1rem 1rem; box-shadow: 0 1px 2px rgba(19, 33, 30, 0.04), 0 12px 32px -12px rgba(13, 92, 82, 0.18); }
.label-head { display: flex; align-items: center; gap: 0.875rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--rule); font: 500 1.375rem/1.1 'Care Fraunces', Georgia, serif; }
.label-head img { border-radius: 0.8125rem; }
.label dl { margin: 0; padding: 0.25rem 1.5rem 0.75rem; }
.label dl > div { padding: 0.875rem 0; }
.label dl > div + div { border-top: 1px solid var(--rule); }
.label dt { color: var(--muted); font-size: 0.875rem; }
.label dd { margin: 0.125rem 0 0; }

.never { background: var(--band); color: var(--on-band); }
.never-in { max-width: 70rem; margin: 0 auto; padding: 4rem 1.25rem 4.5rem; }
.never h2 { max-width: 16em; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.never ul { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.75rem 4rem; }
@media (min-width: 48rem) { .never ul { grid-template-columns: 1fr 1fr; } }
.never li { padding-top: 1rem; border-top: 1px solid var(--band-rule); color: var(--on-band-2); }
.never li + li { margin-top: 0; }
.never strong { display: block; margin-bottom: 0.25rem; color: var(--on-band); font-size: 1.125rem; line-height: 1.35; }

.block { max-width: 70rem; margin: 0 auto; padding: 4rem 1.25rem 0; }
.block:last-of-type { padding-bottom: 5rem; }
.docs { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.docs li + li { margin-top: 0; }
.docs a { display: grid; grid-template-columns: 1fr; gap: 0.125rem 2rem; padding: 1rem 0.75rem; margin: 0 -0.75rem; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink2); border-radius: 0.25rem; }
@media (min-width: 48rem) { .docs a { grid-template-columns: 16rem minmax(0, 1fr); align-items: baseline; } }
.docs a:hover { background: color-mix(in srgb, var(--apothecary) 6%, transparent); }
.docs a:hover .doc-name { text-decoration: underline; text-decoration-thickness: 2px; }
.doc-name { color: var(--apothecary); font-weight: 600; }
.facts { margin: 1.5rem 0 0; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 0.125rem 2rem; padding: 0.875rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) { .facts > div { grid-template-columns: 16rem minmax(0, 1fr); } }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* A document: its sections listed beside it, one reading column of about 38rem. */
.frame { max-width: 70rem; margin: 0 auto; padding: 3rem 1.25rem 5rem; display: grid; grid-template-columns: 1fr; gap: 2rem 4rem; }
@media (min-width: 60rem) { .frame { grid-template-columns: 15rem minmax(0, 38rem); padding-top: 4rem; } .frame-plain { grid-template-columns: minmax(0, 38rem); padding-left: calc(1.25rem + 19rem); } .contents { position: sticky; top: 6rem; align-self: start; max-height: calc(100vh - 8rem); overflow-y: auto; } }
.contents p { color: var(--muted); font-size: 0.875rem; margin-bottom: 0.5rem; }
.contents ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.contents li + li { margin-top: 0; }
.contents a { display: block; padding: 0.375rem 0 0.375rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink2); text-decoration: none; font-size: 0.925rem; line-height: 1.35; }
.contents a:hover { color: var(--apothecary); border-left-color: var(--apothecary); }
@media (max-width: 59.99rem) { .contents { padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: 0.75rem; background: var(--card); } .contents ol { border-left: 0; } .contents a { padding-left: 0; border-left: 0; margin-left: 0; } }
.doc { min-width: 0; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.12; }
.doc p, .doc ul, .doc ol { max-width: 36em; }
.effective { color: var(--muted); font-size: 0.95rem; }
/* The rhythm of a document: a line's space between things, more before a section, a little less after its heading. */
.doc > * { margin-top: 1rem; }
.doc > :first-child { margin-top: 0; }
.doc > h1 + * { margin-top: 1.25rem; }
.doc > h2 { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.doc > h2 + * { margin-top: 0.625rem; }
.doc > h3 { margin-top: 1.5rem; }
.doc > h3 + * { margin-top: 0.35rem; }

.table { overflow-x: auto; max-width: 100%; border: 1px solid var(--rule); border-radius: 0.75rem; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule); min-width: 11rem; }
th { font-weight: 600; }
thead th { background: color-mix(in srgb, var(--apothecary) 8%, var(--card)); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* A wide table as cards (four or more columns). */
.doc .cards { list-style: none; padding: 0; max-width: none; }
.cards > li { background: var(--card); border: 1px solid var(--rule); border-radius: 0.75rem; padding: 1rem 1.1rem 1.1rem; }
.cards > li + li { margin-top: 0.75rem; }
.cards h3 { margin: 0 0 0.6rem; font-weight: 600; }
.cards dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0.5rem 1rem; }
@media (min-width: 40rem) { .cards dl { grid-template-columns: 10rem minmax(0, 1fr); } .cards dl > div { display: contents; } }
.cards dt { color: var(--muted); font-size: 0.9rem; }
.cards dd { margin: 0; }
@media (max-width: 39.99rem) { .cards dl > div + div { margin-top: 0.4rem; } }

.foot { border-top: 1px solid var(--rule); background: var(--card); color: var(--ink2); font-size: 0.925rem; line-height: 1.6; }
.foot-in { max-width: 70rem; margin: 0 auto; padding: 3rem 1.25rem 3.5rem; display: grid; grid-template-columns: 1fr; gap: 2rem 4rem; }
@media (min-width: 48rem) { .foot-in { grid-template-columns: 1fr 1fr; } .foot .legal { grid-column: 1 / -1; } }
@media (min-width: 60rem) { .foot-in { grid-template-columns: 15rem 15rem minmax(0, 1fr); } .foot .legal { grid-column: auto; } }
.foot nav p { color: var(--ink); font-weight: 600; margin-bottom: 0.5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 0.25rem; }
.foot a { color: var(--ink2); text-decoration: none; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--apothecary); text-decoration: underline; }
.foot .legal { color: var(--muted); font-size: 0.875rem; }
.foot .legal a { text-decoration: underline; }
.foot button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink2); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }

@media print { .bar, .foot nav, .contents, .skip { display: none; } body { background: #fff; color: #000; } .frame { display: block; padding: 0; } }

/* dttasa.org's cookie banner (assets/site.js), as the website shows it everywhere. */
#dt-cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9999; max-width: 760px; margin: 0 auto; background: #0b2414; color: #faf8f3; border: 1px solid rgba(67,177,75,0.45); border-radius: 14px; padding: 20px 22px; display: flex; gap: 18px 24px; align-items: center; flex-wrap: wrap; box-shadow: 0 24px 60px rgba(0,0,0,0.35); font-family: 'Care Hanken', system-ui, sans-serif; animation: dtCookieIn 0.5s cubic-bezier(0.16,1,0.3,1) both; }
#dt-cookie .dt-cookie-text { flex: 1 1 320px; min-width: 0; }
#dt-cookie h2 { font-family: 'Care Fraunces', Georgia, serif; font-weight: 500; font-size: 1.15rem; margin: 0 0 6px; color: #faf8f3; }
#dt-cookie p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: rgba(250,248,243,0.86); max-width: none; }
#dt-cookie a { color: var(--dt-green-glow); text-underline-offset: 3px; }
#dt-cookie .dt-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#dt-cookie button { font: 600 0.92rem 'Care Hanken', system-ui, sans-serif; min-height: 44px; padding: 10px 20px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--dt-green-bright); background: var(--dt-green-bright); color: #04210d; }
#dt-cookie button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes dtCookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 540px) { #dt-cookie { padding: 16px; } #dt-cookie .dt-cookie-actions, #dt-cookie button { flex: 1 1 0; } }
@media (prefers-reduced-motion: reduce) { #dt-cookie { animation: none; } html { scroll-behavior: auto; } }
