* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f0f6f3; color: #172d28; font: 1rem/1.55 system-ui, sans-serif; }
a { color: #155d49; text-underline-offset: .16em; }
.top, footer { padding: 18px max(5vw, calc((100vw - 1080px) / 2)); background: #e8f1ea; color: #234537; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px; }
.top a, footer a { color: #174a39; }
footer { justify-content: flex-start; }
main { max-width: 1120px; margin: auto; padding: 32px 20px 60px; }
.intro { overflow: hidden; isolation: isolate; position: relative; padding: clamp(24px, 5vw, 64px); border-radius: 26px; background: #133c38; color: white; }
.intro::after { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 82% 18%, #72ae9e4d, transparent 52%), repeating-radial-gradient(ellipse at 98% 115%, transparent 0 32px, #c7f6e640 33px 34px, transparent 35px 48px); mask-image: linear-gradient(90deg, transparent 20%, black); }
.intro a { color: #c6efb7; font-weight: 700; }
h1 { font-size: clamp(2.85rem, 8vw, 6.4rem); letter-spacing: -.07em; line-height: .92; margin: 16px 0 22px; }
.intro p { max-width: 48ch; margin-bottom: 0; font-size: 1.12rem; }
h2 { line-height: 1.08; margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -.045em; }
p { margin: .65rem 0; }
.card { min-width: 0; border: 1px solid #c9dbd1; border-radius: 18px; background: white; padding: clamp(14px, 3vw, 24px); }
.finder, .sources, #result { margin-top: 24px; }
label { display: block; margin: 12px 0 5px; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
input, select, button { font: inherit; min-height: 44px; border-radius: 8px; }
input, select { padding: 9px 12px; border: 1px solid #648276; color: #172d28; background: white; }
input { flex: 1 1 230px; min-width: 0; }
select { max-width: 100%; }
button { padding: 9px 15px; border: 1px solid transparent; background: #154938; color: white; font-weight: 700; cursor: pointer; }
.secondary { background: white; color: #174a39; border-color: #87a799; }
:focus-visible { outline: 3px solid #287d6c; outline-offset: 3px; }
.result-head { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin-bottom: 12px; }
.eyebrow { color: #356352; font-weight: 750; margin: 0 0 5px; }
#share-status { margin: 0; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 14px; }
figure { margin: 0; }
figcaption { font-weight: 750; margin-bottom: 10px; font-size: 1.08rem; }
canvas { display: block; width: 100%; height: auto; border-radius: 10px; background: #183c4a; }
.photo-frame { border-radius: 10px; overflow: hidden; background: #183c4a; }
.photo-frame img { display: block; width: 100%; height: auto; }
.points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 12px 0 0; }
.points dt { font-weight: 700; }
.points dd { margin: 0; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: .75em; height: .75em; border-radius: 50%; margin-right: .3em; }
.start { background: #258671; }
.opposite { background: #bd623c; }
.muted { font-size: .93rem; color: #405b52; }
.source-links { display: flex; flex-wrap: wrap; gap: 7px 16px; }
.related { margin: 20px 0 0; }
@media (max-width: 650px) { .result-grid { grid-template-columns: 1fr; } main { padding: 20px 14px 44px; } }
