/* Sliding Smile - single small stylesheet, no external fonts or scripts. */
:root {
  --bg: #ffffff;
  --text: #1b2430;
  --muted: #4b5666;
  --brand: #0b6b63;
  --brand-dark: #07524c;
  --brand-tint: #e8f4f2;
  --border: #d5dde5;
  --warn-bg: #fff6e0;
  --warn-border: #c98a00;
  --link: #0a5fb4;
  --radius: 10px;
  --max: 70rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181f; --text: #e6ecf2; --muted: #a9b5c2; --brand: #5fcfc3; --brand-dark: #8fe3d9;
    --brand-tint: #16302d; --border: #2b3947; --warn-bg: #2d2610; --warn-border: #d9a520; --link: #8ec1ff;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
main.container { padding-top: 1.25rem; padding-bottom: 3rem; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; border-radius: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: .5em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.prose { max-width: 46rem; }

/* header */
.site-header { border-bottom: 1px solid var(--border); background: var(--brand-tint); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--brand-dark); text-decoration: none; }
.brand-mark { color: var(--brand); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: .35rem .1rem; color: var(--text); text-decoration: none; font-size: .98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; color: var(--brand-dark); }

/* breadcrumb */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 0 0 .5rem; font-size: .92rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .25rem; color: var(--muted); }

/* callouts */
.notice { border-left: 5px solid var(--warn-border); background: var(--warn-bg); padding: .85rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.25rem 0; }
.notice p:last-child { margin-bottom: 0; }
.info { border-left-color: var(--brand); background: var(--brand-tint); }

/* category grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; padding: 0; list-style: none; margin: 1rem 0 2rem; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--bg); height: 100%; }
.card h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card a.card-link { text-decoration: none; color: inherit; display: block; }
.card:hover { border-color: var(--brand); }
.tag { display: inline-block; font-size: .78rem; border: 1px solid var(--border); border-radius: 999px; padding: .05rem .55rem; color: var(--muted); margin-left: .35rem; vertical-align: middle; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; min-width: 36rem; }
caption { text-align: left; font-weight: 600; padding: .6rem .75rem; }
th, td { text-align: left; padding: .55rem .75rem; border-top: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--brand-tint); border-top: 0; }

/* lists + misc */
.page-list { padding-left: 1.2rem; }
.meta { color: var(--muted); font-size: .95rem; }
details { border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem .9rem; margin: 1rem 0; }
summary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.org { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1rem 1rem; margin: 1.25rem 0; }
.org h3 { margin-top: 1rem; }
.stat { display: inline-block; background: var(--brand-tint); border-radius: 6px; padding: .15rem .5rem; font-size: .92rem; margin: 0 .35rem .35rem 0; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--brand-tint); padding: 1.5rem 0 2rem; font-size: .95rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: 0; margin: .75rem 0; }
.footer-small { color: var(--muted); margin-bottom: 0; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}
@media print { .site-header, .site-footer .footer-links, .skip-link { display: none; } a { color: inherit; } }
