:root { --bg: #eef3f1; --panel: #ffffff; --ink: #14312c; --muted: #58706a; --line: #cfdcd8; --accent: #0b7a68; --pop: #ffc933;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif; --body: "Figtree", "Segoe UI", system-ui, sans-serif }
@media (prefers-color-scheme: dark) { :root { --bg: #0f1c1a; --panel: #172826; --ink: #e6f1ee; --muted: #9db3ae; --line: #2c4340; --accent: #35c2a8; color-scheme: dark } }
* { box-sizing: border-box }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body) }
main { max-width: 680px; margin: 0 auto; padding-block: 24px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.brand { display: inline-block; font: 800 1.4rem var(--display); color: #14312c; background: var(--pop); padding: 2px 12px 4px; border-radius: 10px; text-decoration: none }
h1 { font: 800 clamp(1.7rem, 6vw, 2.3rem)/1.15 var(--display); text-wrap: balance; margin: 20px 0 8px }
h2 { font: 700 1.25rem/1.3 var(--display); margin: 32px 0 8px }
p, li { max-width: 65ch } ol, ul { padding-left: 22px } li + li { margin-top: 6px }
a { color: var(--accent) }
.cta { display: inline-block; margin-top: 12px; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none }
footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem }
.related { margin-top: 36px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel) }
.related h2 { margin-top: 0 }
.table { overflow-x: auto }
table { border-collapse: collapse; width: 100%; font-size: .95rem }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top }
th { font-weight: 600 }
.note { padding: 12px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line) }
main.wide { max-width: 1000px }
.how { padding-left: 22px }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px }
.card { margin: 0; display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel) }
.card img { width: 100%; height: auto; aspect-ratio: 1; display: block; border-radius: 8px;
  background: repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0 / 16px 16px }
.card figcaption { font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0 }
.tag { font-size: .7rem; font-weight: 600; padding: 2px 6px; border-radius: 99px; background: var(--pop); color: #14312c; white-space: nowrap }
.btns { display: flex; gap: 6px }
.btn { flex: 1; text-align: center; padding: 8px 6px; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem }
.btn.alt { background: transparent; color: var(--accent); border: 1px solid var(--accent) }
main.wide .note { margin-top: 28px }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap }
.topbar .brand { transform: rotate(-2deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(9, 30, 26, .22) }
.links { display: flex; gap: 4px 16px; align-items: center; flex-wrap: wrap }
.links a { color: var(--ink); text-decoration: none; font-weight: 600 }
.links a.go { background: var(--ink); color: var(--bg); padding: 7px 13px; border-radius: 99px }
.links a:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px }
@media (max-width: 440px) { .links a.hide-sm { display: none } }
