/* ohworm.com - Worm Escape. Light, sunny, phone first */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: #3a2216;
  background:
    radial-gradient(120% 50% at 50% 0%, #bfeaff 0%, transparent 70%),
    linear-gradient(180deg, #d9f3ff 0%, #f3fbe9 45%, #e9f6d4 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; }
.app[hidden] { display: none !important; }

.app {
  position: relative; display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh; max-width: 640px; margin: 0 auto;
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.top { text-align: center; padding: 2px 48px 0; }
.title {
  margin: 0; font-size: clamp(2.3rem, 11vw, 4.4rem); line-height: 1.02; font-weight: 900; letter-spacing: -.03em;
  color: #7a3b1d; text-shadow: 0 .06em 0 #ffc2d4, 0 .11em 0 rgba(90, 40, 10, .16);
}
.title span { color: #e2477b; }
.tagline { margin: 2px 0 0; font-size: clamp(.84rem, 3.6vw, 1.12rem); white-space: nowrap; font-weight: 800; color: #5b3a22; }

/* ---------- the Wise Old Worm's garden ---------- */
.stage {
  position: relative; margin: 8px auto 0; width: min(100%, 560px);
  height: clamp(250px, 45svh, 390px);
  border-radius: 28px; overflow: hidden;
  border: 3px solid #5b3a22;
  background:
    linear-gradient(180deg, #8fd8ff 0%, #c9efff 52%, #e6f8ff 72%, transparent 72%),
    linear-gradient(180deg, #6cc04a 0 100%);
  box-shadow: 0 7px 0 rgba(90, 50, 20, .18);
}
.stage .sun {
  position: absolute; left: 12px; top: 10px; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fffbd0, #ffd84a 60%, #ffb703);
  box-shadow: 0 0 0 7px rgba(255, 216, 74, .28), 0 0 0 15px rgba(255, 216, 74, .14);
  animation: sunpulse 4s ease-in-out infinite;
}
@keyframes sunpulse { 50% { box-shadow: 0 0 0 10px rgba(255, 216, 74, .3), 0 0 0 20px rgba(255, 216, 74, .12); } }
.stage .cloud { position: absolute; height: 18px; border-radius: 20px; background: #fff; opacity: .95; }
.stage .cloud::before, .stage .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.c1 { width: 64px; top: 30px; left: 30%; animation: drift 10s ease-in-out infinite; }
.c1::before { width: 26px; height: 26px; top: -12px; left: 10px; } .c1::after { width: 32px; height: 32px; top: -16px; left: 26px; }
.c2 { width: 48px; top: 64px; left: 6%; animation: drift 13s ease-in-out infinite reverse; }
.c2::before { width: 20px; height: 20px; top: -9px; left: 8px; } .c2::after { width: 24px; height: 24px; top: -12px; left: 20px; }
@keyframes drift { 50% { transform: translateX(14px); } }
.stage .hill {
  position: absolute; left: -10%; right: -10%; top: 58%; height: 26%;
  background: radial-gradient(60% 100% at 25% 100%, #9fdc7a 0 60%, transparent 61%), radial-gradient(55% 90% at 80% 100%, #8fd26a 0 60%, transparent 61%);
}
.ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.18) 0 1.5px, transparent 2px) 0 0 / 22px 18px,
    linear-gradient(180deg, #4f9a35 0 10%, #7a4a2b 10% 55%, #a85e34 55% 100%);
  border-top: 4px solid #3f8a2c;
}
.ground::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 16px;
  background:
    radial-gradient(circle at 50% 100%, #5fb43f 0 6px, transparent 7px) 0 0 / 12px 16px,
    radial-gradient(circle at 50% 100%, #73c84d 0 5px, transparent 6px) 6px 3px / 12px 16px;
}
.ground .pb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d9d3cc, #8c857f); }
.pb.p1 { width: 14px; height: 10px; left: 8%; top: 46%; } .pb.p2 { width: 9px; height: 7px; left: 26%; top: 74%; }
.pb.p3 { width: 12px; height: 9px; left: 46%; top: 60%; } .pb.p4 { width: 8px; height: 6px; left: 62%; top: 82%; }
.ground .fossil { position: absolute; left: 33%; top: 30%; width: 22px; height: 22px; border-radius: 50%;
  background: repeating-radial-gradient(circle at 55% 55%, #e9dcc0 0 2px, #b9a27a 2px 4px); opacity: .9; }
.ground .cap { position: absolute; left: 16%; top: 70%; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 2px, #e2342f 2.5px); box-shadow: 0 0 0 2px #9b1c18; transform: rotate(20deg); }
.flowers { position: absolute; left: 0; right: 0; bottom: 22%; pointer-events: none; }
.flowers i { position: absolute; bottom: 0; width: 4px; height: 30px; background: #3f8a2c; border-radius: 2px; transform-origin: bottom; animation: sway 3s ease-in-out infinite; }
.flowers i::after { content: ""; position: absolute; left: 50%; top: -10px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle, #ffd23f 0 3px, #fff 3.5px 100%); box-shadow: 0 0 0 2px rgba(0,0,0,.06); }
.flowers .f1 { left: 4%; } .flowers .f2 { left: 15%; height: 22px; animation-delay: -1s; }
.flowers .f2::after { background: radial-gradient(circle, #fff 0 3px, #ff6fa0 3.5px 100%); }
.flowers .f3 { left: 40%; height: 18px; animation-delay: -2s; } .flowers .f3::after { background: radial-gradient(circle, #ffd23f 0 3px, #8f7bff 3.5px 100%); }
.flowers .f4 { left: 52%; height: 26px; animation-delay: -.5s; }
@keyframes sway { 50% { transform: rotate(6deg); } }

.bubble {
  position: absolute; z-index: 5; left: 10px; top: 54px; width: calc(55% - 14px);
  max-height: calc(78% - 56px); overflow: hidden;
  margin: 0; padding: 9px 12px;
  background: #fffef8; color: #3a2216; border: 3px solid #5b3a22; border-radius: 18px;
  font-weight: 800; font-size: clamp(.8rem, 3.4vw, 1rem); line-height: 1.28;
  box-shadow: 0 4px 0 rgba(90, 50, 20, .16);
  opacity: 0; transform: scale(.94); transform-origin: 100% 30%; transition: opacity .2s, transform .25s cubic-bezier(.2,1.5,.4,1);
}
.bubble.show { opacity: 1; transform: scale(1); }
.bubble::after {
  content: ""; position: absolute; right: -14px; top: 26px;
  border: 9px solid transparent; border-left: 14px solid #5b3a22; border-right: 0;
}
.bubble::before {
  content: ""; position: absolute; right: -9px; top: 29px; z-index: 1;
  border: 6px solid transparent; border-left: 10px solid #fffef8; border-right: 0;
}
.wise { position: absolute; z-index: 3; right: 0; bottom: 3%; width: 46%; height: 86%; overflow: visible; }
.wise .sway { transform-origin: 112px 290px; animation: wsway 3.4s ease-in-out infinite; }
@keyframes wsway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg) translateY(-3px); } }
.wise .head { transform-origin: 134px 120px; }
/* grand entrance: rise out of the hole, bow, tip the hat (clipped at the rim by #wClip) */
.wise.rising .rise { animation: wrise 1.9s both; }
@keyframes wrise {
  0% { transform: translateY(340px); animation-timing-function: cubic-bezier(.3,.05,.25,1); }
  84% { transform: translateY(-7px); animation-timing-function: ease-in-out; }
  100% { transform: translateY(0); }
}
.wise .bow { transform-origin: 112px 280px; }
.wise.rising .bow { animation: wbow 1.1s ease-in-out 1.95s both; }
@keyframes wbow { 0%, 100% { transform: rotate(0); } 35%, 62% { transform: rotate(-9deg); } }
.wise .tophat { transform-origin: 128px 44px; }
.wise.rising .tophat { animation: hattip 1.1s ease-in-out 1.95s both; }
@keyframes hattip { 0%, 100% { transform: none; } 30%, 66% { transform: translate(-10px, -26px) rotate(-24deg); } }
.wise.talk .head { animation: nod .5s ease-in-out 2; }
@keyframes nod { 50% { transform: rotate(-4deg) translateY(2px); } }
.wise .mouth { transform-box: fill-box; transform-origin: center top; transform: scaleY(.35); }
.wise.talk .mouth { animation: chat .18s ease-in-out 6; }
@keyframes chat { 50% { transform: scaleY(1.15); } }
.wise .brows { transform-box: fill-box; transform-origin: center; }
.wise.talk .brows { animation: browup .5s ease-in-out 2; }
@keyframes browup { 50% { transform: translateY(-5px); } }
.wise .tache { transform-box: fill-box; transform-origin: center; }
.wise.talk .tache { animation: tache .18s ease-in-out 6; }
@keyframes tache { 50% { transform: scaleY(.9) translateY(-1px); } }
.wise .lids ellipse { transform-box: fill-box; transform-origin: center top; transform: scaleY(0); }
.wise.blink .lids ellipse { animation: blink .18s linear; }
@keyframes blink { 40%, 60% { transform: scaleY(1); } }
.wise .pupil { transition: transform .15s; }
.wise .partyhat { display: none; }
.wise.party .partyhat { display: inline; } .wise.party .tophat { display: none; }
.wise.hop { animation: hop .5s cubic-bezier(.3,1.4,.4,1); }
@keyframes hop { 40% { transform: translateY(-7%); } }
.wise { cursor: pointer; }

.wisdom-row { display: flex; justify-content: center; margin-top: 10px; }
.more-wisdom { min-height: 40px; padding: .2em 1.1em; font-size: .9rem; background: #fffef6; color: #8a2f52; border-color: #8a2f52; box-shadow: 0 4px 0 #8a2f52; }
.more-wisdom:hover { background: #fff; }
.more-wisdom:active { box-shadow: 0 1px 0 #8a2f52; }
.personal { margin: 8px 0 0; text-align: center; font-size: .82rem; font-weight: 800; color: #7a3b1d; }
.personal[hidden] { display: none; }

.play-row { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.btn {
  font-weight: 900; font-size: .95rem; color: #fff; background: #1f8a4c;
  border: 3px solid #145c32; border-radius: 999px; min-height: 48px; padding: .5em .8em;
  box-shadow: 0 5px 0 #145c32; cursor: pointer; touch-action: manipulation;
  transition: transform .06s, box-shadow .06s, background .15s;
}
.btn:hover { background: #249955; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #145c32; }
.btn:focus-visible { outline: 3px dashed #145c32; outline-offset: 3px; }
.play-btn { background: #e2477b; border-color: #7a1640; box-shadow: 0 5px 0 #7a1640; }
.play-btn:hover { background: #ee5a8b; }
.play-btn:active { box-shadow: 0 1px 0 #7a1640; }
.board-btn { background: #fffef6; color: #145c32; }
.board-btn:hover { background: #fff; }
.play-row .btn { flex: 1 1 0; white-space: nowrap; }
.main-row { width: min(100%, 520px); margin-left: auto; margin-right: auto; }
.main-row .btn { min-height: 54px; font-size: clamp(.86rem, 3.9vw, 1.08rem); }
.main-row .play-btn { flex: 1.25 1 0; }

.world { margin: 12px 0 0; text-align: center; font-size: .8rem; font-weight: 750; line-height: 1.45; color: #6a4329; }
.world[hidden] { display: none; }
.world b { font-weight: 900; color: #7a3b1d; }
.foot { text-align: center; color: #6a4329; padding: 10px 2px 0; margin-top: auto; }
.foot p { margin: 0 auto; max-width: 64ch; }
.legal { font-size: .74rem; font-weight: 650; line-height: 1.5; }
.legal-1, .legal-2 { display: block; }
.legal .links { white-space: nowrap; }
.legal-sep { display: none; }
.legal a { color: #7a3b1d; font-weight: 800; }
.legal-1 a { display: inline-block; padding: 10px 2px; margin: -8px 0; text-decoration: underline dotted rgba(122,59,29,.55); text-underline-offset: 3px; }
.company { position: relative; display: inline-block; text-decoration: underline dotted rgba(122,59,29,.55); text-underline-offset: 3px; }
.co-worm { position: absolute; left: 0; top: -15px; width: 30px; height: 12px; opacity: 0; pointer-events: none; }
.company:active .co-worm, .company.fly .co-worm { animation: wormZip .6s linear; }
@keyframes wormZip { 0% { opacity: 1; transform: translateX(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(200px); } }
.company:focus-visible { outline: 2px dashed #7a3b1d; outline-offset: 2px; border-radius: 4px; }

.sound-btn {
  position: absolute; z-index: 7; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right));
  width: 44px; height: 44px; min-height: 44px; padding: 0; display: grid; place-items: center;
}
.sound-btn svg { width: 24px; height: 24px; }
.sound-btn .snd-off { display: none; }
.sound-btn[aria-pressed="false"] { background: #eef6e6; color: #245c32; }
.sound-btn[aria-pressed="false"] .snd-on { display: none; }
.sound-btn[aria-pressed="false"] .snd-off { display: inline; }

/* ---------- game ---------- */
html.playing, html.playing body { overflow: hidden; overscroll-behavior: none; }
html.playing .sound-btn { position: fixed; z-index: 30; width: 40px; height: 40px; min-height: 40px; top: max(6px, env(safe-area-inset-top)); }
html.playing .sound-btn svg { width: 22px; height: 22px; }
.game[hidden], .sheet[hidden] { display: none !important; }
.game { position: fixed; inset: 0; z-index: 10; background: #5e3920; touch-action: none; user-select: none; -webkit-user-select: none; cursor: ns-resize; }
#cv { position: absolute; inset: 0; display: block; touch-action: none; }
.hud {
  position: absolute; z-index: 4; left: max(6px, env(safe-area-inset-left)); right: calc(max(6px, env(safe-area-inset-right)) + 86px); top: max(6px, env(safe-area-inset-top));
  display: flex; align-items: center; gap: 6px; pointer-events: none;
}
.lives { display: flex; gap: 2px; padding: 5px 8px; background: rgba(255,255,255,.82); border: 2px solid rgba(90,50,20,.35); border-radius: 999px; }
.lives svg { width: 20px; height: 18px; display: block; }
.lives .off { opacity: .28; filter: grayscale(1); }
.lives .new { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
.hud-mid { flex: 1; text-align: center; line-height: 1; color: #fff; text-shadow: 0 2px 0 rgba(60,30,10,.55), 0 0 8px rgba(0,60,120,.35); }
.hud-mid b { display: block; font-size: 1.6rem; font-weight: 900; }
.hud-mid span { font-size: .78rem; font-weight: 800; }
.hud-left { position: relative; }
.hud-right { position: absolute; left: 0; top: calc(100% + 4px); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.game-ctrls { position: absolute; z-index: 6; top: max(6px, env(safe-area-inset-top)); right: max(6px, env(safe-area-inset-right)); display: flex; gap: 6px; }
.ctrl-btn { width: 38px; height: 38px; min-height: 38px; padding: 0; display: grid; place-items: center; color: #3a2216; background: rgba(255,254,248,.92); border: 2px solid #5b3a22; box-shadow: 0 3px 0 #5b3a22; }
.ctrl-btn:hover { background: #fff; }
.ctrl-btn:active { transform: translateY(3px); box-shadow: 0 0 0 #5b3a22; }
.ctrl-btn svg { width: 20px; height: 20px; }
.game.paused .combo.on { animation-play-state: paused; }
.sheet-small { z-index: 22; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.mini-card { width: min(320px, 100%); padding: 14px 14px 16px; }
.mini-card h2 { font-size: 1.5rem; color: #3a2216; }
.mini-text { margin: 4px 0 12px; font-weight: 800; color: #6a4329; }
.btn.wide { width: 100%; min-height: 52px; font-size: 1.1rem; }
.leave-btn { background: #fffef8; color: #3a2216; border-color: #5b3a22; box-shadow: 0 5px 0 #5b3a22; }
.leave-btn:hover { background: #fff; }
.leave-btn:active { box-shadow: 0 1px 0 #5b3a22; }
.combo { font-weight: 900; color: #fff; background: #ff7a1a; border: 2px solid #8a3000; border-radius: 999px; padding: 1px 8px; font-size: .9rem; visibility: hidden; }
.combo.on { visibility: visible; animation: wobble .4s ease-in-out infinite; }
@keyframes wobble { 25% { transform: rotate(-5deg) scale(1.06); } 75% { transform: rotate(5deg) scale(1.1); } }
.power { font-weight: 900; font-size: .74rem; color: #3a2216; background: #ffe066; border: 2px solid #8a6400; border-radius: 999px; padding: 1px 7px; visibility: hidden; white-space: nowrap; }
.power.on { visibility: visible; }
.banner {
  position: absolute; z-index: 4; left: 50%; top: calc(max(6px, env(safe-area-inset-top)) + 74px);
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none; text-align: center;
  background: rgba(255,254,248,.92); border: 3px solid #5b3a22; border-radius: 16px; padding: 4px 14px 6px; white-space: nowrap;
  transition: opacity .25s, transform .35s cubic-bezier(.2,1.5,.4,1);
}
.banner.show { opacity: 1; transform: translate(-50%, 0); }
.banner strong { display: block; font-size: 1.05rem; color: #e2477b; }
.banner span { display: block; font-weight: 800; font-size: .8rem; }
.hint {
  position: absolute; z-index: 4; left: 50%; bottom: 14%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; pointer-events: none; white-space: nowrap;
  background: rgba(255,254,248,.94); border: 3px solid #5b3a22; border-radius: 999px; padding: 8px 16px;
  font-weight: 900; color: #3a2216; transition: opacity .4s;
}
.hint.gone { opacity: 0; }
.hint .finger { font-size: 1.4rem; animation: fing 1.1s ease-in-out infinite; }
@keyframes fing { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
.flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(255,40,60,.55)); transition: opacity .35s; }
.flash.on { opacity: 1; transition: none; }
.flash.gold { background: radial-gradient(ellipse at center, transparent 40%, rgba(255,210,60,.5)); }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px 12px; background: rgba(60, 34, 18, .55); backdrop-filter: blur(3px); }
.card {
  width: min(440px, 100%); max-height: min(94svh, 760px); overflow: auto;
  background: linear-gradient(180deg, #fffef8, #fff0f4); border: 3px solid #5b3a22; border-radius: 24px;
  padding: 16px 14px 12px; text-align: center; box-shadow: 0 10px 0 rgba(40, 20, 10, .3);
  animation: cardIn .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes cardIn { from { transform: translateY(20px) scale(.95); opacity: 0; } }
.card h2 { margin: 0; }
.over-kicker { margin: 0; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; color: #e2477b; }
.rank { margin: 2px 0; font-size: 1.6rem; color: #7a3b1d; text-shadow: 0 3px 0 #ffd0dd; }
.bigscore { margin: 0; font-size: 2.6rem; font-weight: 900; line-height: 1; color: #3a2216; }
.metres { margin: 2px 0 0; font-weight: 850; color: #6a4329; }
.newbest { display: inline-block; margin: 6px 0 0; background: #ffe066; color: #6a4a00; font-weight: 900; border-radius: 999px; padding: 2px 12px; border: 2px solid #8a6400; animation: pop .4s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.4); } }
.newbest[hidden], .nudge[hidden], .name-form[hidden], .board-empty[hidden] { display: none !important; }
.extra, .nudge { margin: 6px 0 0; font-weight: 750; }
.nudge { color: #c0541a; font-weight: 850; }
.name-form { margin-top: 10px; }
.name-form label { display: block; font-weight: 900; margin-bottom: 6px; }
.name-row { display: flex; gap: 8px; }
.name-row input { flex: 1; min-width: 0; min-height: 48px; border: 3px solid #145c32; border-radius: 999px; padding: 0 14px; background: #fff; color: #3a2216; font-weight: 750; }
.name-row input:focus-visible { outline: 3px dashed #145c32; outline-offset: 2px; }
.text-back { margin-top: 6px; background: none; border: 0; color: #7a3b1d; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; cursor: pointer; }
.tabs { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.tab { min-height: 42px; padding: .3em 1em; border-radius: 999px; border: 3px solid #145c32; background: #fff; color: #145c32; font-weight: 900; box-shadow: 0 4px 0 #145c32; cursor: pointer; }
.tab:active { transform: translateY(3px); box-shadow: 0 1px 0 #145c32; }
.tab[aria-selected="true"] { background: #1f8a4c; color: #fff; }
.board-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.board-list li { display: grid; grid-template-columns: 2rem 1fr auto auto; gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px dashed rgba(90, 50, 20, .25); font-weight: 750; }
.board-list li:nth-child(1) span:first-child { color: #c98a00; }
.board-list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list .mt { font-size: .78rem; color: #6a4329; }
.board-list .sc { font-weight: 900; color: #145c32; }
.board-list .you { background: #fff4cc; border-radius: 10px; }
.board-empty { font-weight: 750; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 25; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 2px; animation: fall 1.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(260deg); } }

@media (min-width: 800px) {
  .app { max-width: 760px; padding-top: 16px; }
  .stage { width: min(100%, 620px); height: clamp(280px, 44vh, 380px); }
  .bubble { font-size: 1.06rem; padding: 12px 16px; }
  .legal-1, .legal-2, .legal-sep { display: inline; }
  .hud-mid b { font-size: 2rem; }
}
@media (max-height: 700px) and (max-width: 500px) { .stage { height: 236px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* ---------- legal pages ---------- */
html.doc-html, .doc-html body { height: auto; }
.doc { max-width: 760px; margin: 0 auto; padding: 16px 14px 28px; }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.doc-brand { margin: 0; font-size: 1.8rem; font-weight: 900; color: #16824a; }
.doc-brand a { color: inherit; text-decoration: none; }
.doc-brand span { color: #0e9b62; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.doc-back { font-size: .95rem; }
.doc-card {
  margin-top: 14px; background: rgba(255,254,248,.92);
  border: 3px solid #1d3c28; border-radius: 22px; padding: 16px 16px 8px;
}
.doc h1 { margin: 0 0 4px; font-size: 1.8rem; }
.doc h2 { margin: 1.2em 0 .3em; font-size: 1.2rem; }
.doc h3 { margin: .8em 0 .2em; font-size: 1.02rem; }
.doc p, .doc li { line-height: 1.45; }
.doc .updated, .doc .lead { color: #245c32; }
.doc .quip { font-weight: 800; color: #0e6294; margin-bottom: 0; }
.doc a:not(.btn) { color: #145c32; font-weight: 750; }
.doc .summary, .doc .company-box { background: #f3fbee; border-radius: 14px; padding: 8px 12px; }
.doc .toc ol { margin: 6px 0 0; padding-left: 1.2em; }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid rgba(20,92,50,.2); }
.doc-end { text-align: center; margin: 16px 0; }
.doc-foot { text-align: center; font-size: .82rem; font-weight: 700; color: #3d6a40; }
.doc-foot a { color: #145c32; font-weight: 800; }
