/* Lake Map — survey-sheet styling. Tokens come from theme.json (--wp--preset--color--*). */
:root {
	--lmg-paper: var(--wp--preset--color--paper);
	--lmg-sheet: var(--wp--preset--color--sheet);
	--lmg-ink: var(--wp--preset--color--ink);
	--lmg-graphite: var(--wp--preset--color--graphite);
	--lmg-shallows: var(--wp--preset--color--shallows);
	--lmg-mid: var(--wp--preset--color--mid);
	--lmg-deep: var(--wp--preset--color--deep);
	--lmg-marker: var(--wp--preset--color--marker);
	--lmg-ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}
body { font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .wp-block-post-title { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--lmg-deep); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--lmg-shallows); }

/* Water names: blue italic serif, the cartographic convention */
.lmg-water, .wp-block-post-title.lmg-water { font-family: var(--wp--preset--font-family--serif); font-style: italic; color: var(--lmg-deep); }

/* Header */
.lmg-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 20; background: color-mix(in srgb, var(--lmg-paper) 92%, transparent) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lmg-brand { color: var(--lmg-deep); }
.lmg-brand .wp-block-site-title a { text-decoration: none; }
.lmg-mark { display: block; flex: none; }
.lmg-nav a { text-decoration: none; }
.lmg-nav a:hover { text-decoration: underline; }
.lmg-search .wp-block-search__inside-wrapper { border: 1px solid var(--lmg-mid) !important; border-radius: 999px; background: var(--lmg-sheet); padding: 2px 2px 2px 12px !important; }
.lmg-search .wp-block-search__input { border: 0; background: transparent; font-size: .9375rem; }
.lmg-search .wp-block-search__button { background: transparent; color: var(--lmg-deep); border-radius: 999px; padding: .45rem .6rem; }

/* Hero */
.lmg-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.lmg-hero-title { margin: 0; font-size: var(--wp--preset--font-size--display); letter-spacing: -.01em; }
.lmg-lede { color: var(--lmg-graphite); max-width: 34em; }
.lmg-hero-search { max-width: 30rem; }
.lmg-hero-search .wp-block-search__label { font-weight: 600; font-size: .875rem; color: var(--lmg-ink); }
.lmg-hero-search .wp-block-search__input { border: 1px solid var(--lmg-mid); border-radius: 4px; padding: .8rem .9rem; font-size: 1.0625rem; background: var(--lmg-sheet); }
.lmg-hero-search .wp-block-search__input:focus { outline: 2px solid var(--lmg-deep); outline-offset: 1px; }
.lmg-hero-map { margin: 0; }
.lmg-sheet { background: var(--lmg-sheet); border: 1px solid color-mix(in srgb, var(--lmg-mid) 55%, transparent); border-radius: 4px; padding: clamp(1rem, 3vw, 2rem); }
.lmg-hero-map .lmg-sheet { max-width: 30rem; margin-inline: auto; }
.lmg-hero-map svg { display: block; width: 100%; height: auto; max-height: 72vh; }
.lmg-hero-map figcaption { max-width: 30rem; margin: .75rem auto 0; font-size: .875rem; color: var(--lmg-graphite); display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: end; }
.lmg-hero-map figcaption .lmg-water { font-size: 1.25rem; grid-column: 1; }

/* Contour lines: shoreline in ink, then deeper lines toward deep water */
.lmg-contours path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lmg-contours .d0  { stroke: var(--lmg-ink); stroke-width: 1.6; }
.lmg-contours .d5  { stroke: #9cc3d6; stroke-width: 1; }
.lmg-contours .d10 { stroke: #86b4ca; stroke-width: 1; }
.lmg-contours .d15 { stroke: #6fa3bd; stroke-width: 1; }
.lmg-contours .d20 { stroke: #5892ae; stroke-width: 1.1; }
.lmg-contours .d25 { stroke: #42809f; stroke-width: 1.1; }
.lmg-contours .d30 { stroke: #2f6d8c; stroke-width: 1.2; }
.lmg-contours .d35 { stroke: var(--lmg-deep); stroke-width: 1.4; }
.lmg-legend { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(8, 10px); grid-template-rows: 10px auto; column-gap: 2px; font-size: .75rem; }
.lmg-legend i { height: 10px; border-radius: 1px; }
.lmg-legend i.d0 { background: var(--lmg-ink); } .lmg-legend i.d5 { background: #9cc3d6; } .lmg-legend i.d10 { background: #86b4ca; } .lmg-legend i.d15 { background: #6fa3bd; }
.lmg-legend i.d20 { background: #5892ae; } .lmg-legend i.d25 { background: #42809f; } .lmg-legend i.d30 { background: #2f6d8c; } .lmg-legend i.d35 { background: var(--lmg-deep); }
.lmg-legend b { font-weight: 500; grid-row: 2; } .lmg-legend b:first-of-type { grid-column: 1 / span 4; } .lmg-legend b:last-of-type { grid-column: 5 / span 4; text-align: right; }

/* The one orchestrated moment: depth lines draw in from the shoreline to the deepest hole */
@media (prefers-reduced-motion: no-preference) {
	@keyframes lmg-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
	.lmg-hero-map .lmg-contours path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lmg-draw 2.2s var(--lmg-ease) forwards; }
	.lmg-hero-map .lmg-contours .d5  { animation-delay: .35s; }
	.lmg-hero-map .lmg-contours .d10 { animation-delay: .6s; }
	.lmg-hero-map .lmg-contours .d15 { animation-delay: .85s; }
	.lmg-hero-map .lmg-contours .d20 { animation-delay: 1.1s; }
	.lmg-hero-map .lmg-contours .d25 { animation-delay: 1.35s; }
	.lmg-hero-map .lmg-contours .d30 { animation-delay: 1.6s; }
	.lmg-hero-map .lmg-contours .d35 { animation-delay: 1.85s; }
	@view-transition { navigation: auto; }
}

/* Sections */
.lmg-section { margin-top: var(--wp--preset--spacing--50); }
.lmg-section > h2 { margin-bottom: var(--wp--preset--spacing--30); }
.lmg-state-cols { gap: var(--wp--preset--spacing--30) !important; }
.lmg-state { border-top: 2px solid var(--lmg-mid); padding-top: 1rem; }
.lmg-state.is-live { border-top-color: var(--lmg-deep); }
.lmg-state h3 { font-size: var(--wp--preset--font-size--large); margin: 0 0 .4rem; }
.lmg-state h3 a { color: var(--lmg-deep); text-decoration: none; }
.lmg-state h3 a:hover { text-decoration: underline; }
.lmg-state p { margin: .3rem 0; color: var(--lmg-graphite); }
.lmg-status { font-weight: 600; color: var(--lmg-ink) !important; }
.lmg-gift-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1px; background: color-mix(in srgb, var(--lmg-mid) 50%, transparent); border: 1px solid color-mix(in srgb, var(--lmg-mid) 50%, transparent); }
.lmg-gift-grid li { background: var(--lmg-paper); padding: 1.1rem 1.2rem; color: var(--lmg-graphite); margin: 0; }
.lmg-gift-grid strong { display: block; font-family: var(--wp--preset--font-family--serif); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--lmg-ink); }
.lmg-steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--wp--preset--spacing--30); }
.lmg-steps li { counter-increment: s; position: relative; padding-top: 2.6rem; color: var(--lmg-graphite); margin: 0; }
.lmg-steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--lmg-deep); border-radius: 50%; font-weight: 600; color: var(--lmg-deep); }
.lmg-steps strong { color: var(--lmg-ink); }
.lmg-empty { color: var(--lmg-graphite); border: 1px dashed var(--lmg-mid); border-radius: 4px; padding: 1.25rem; background: var(--lmg-sheet); }

/* Lake cards */
.lmg-card { background: var(--lmg-sheet); border: 1px solid color-mix(in srgb, var(--lmg-mid) 50%, transparent); border-radius: 4px; padding: .9rem .9rem 1rem; height: 100%; transition: border-color .2s var(--lmg-ease), transform .2s var(--lmg-ease); }
.lmg-card:hover { border-color: var(--lmg-deep); transform: translateY(-2px); }
.lmg-card .wp-block-post-title { margin: .6rem 0 .2rem; font-size: 1.25rem; }
.lmg-card .wp-block-post-title a { text-decoration: none; color: var(--lmg-deep); }
.lmg-card .wp-block-post-terms { color: var(--lmg-graphite); }
.lmg-card .wp-block-post-terms a { color: inherit; text-decoration: none; }

/* Lake page */
.lmg-lake-top { align-items: start; }
.lmg-lake-art .wp-block-post-featured-image { margin: 0; }
.lmg-lake-info .wp-block-post-title { font-size: var(--wp--preset--font-size--display); margin: 0; }
.lmg-where { color: var(--lmg-graphite); margin-top: .3rem; }
.lmg-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 1.25rem 0; border-top: 1px solid var(--lmg-mid); }
.lmg-facts div { padding: .7rem 0; border-bottom: 1px solid color-mix(in srgb, var(--lmg-mid) 50%, transparent); }
.lmg-facts dt { font-size: .8125rem; color: var(--lmg-graphite); }
.lmg-facts dd { margin: 0; font-size: 1.25rem; font-weight: 600; }
.lmg-shop { display: grid; gap: .6rem; margin: 1.25rem 0; }
.lmg-shop a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--lmg-mid); border-radius: 4px; background: var(--lmg-sheet); text-decoration: none; color: var(--lmg-ink); transition: border-color .2s var(--lmg-ease); }
.lmg-shop a:hover { border-color: var(--lmg-deep); }
.lmg-shop a.is-primary { background: var(--lmg-marker); border-color: var(--lmg-marker); color: #fff; font-weight: 600; }
.lmg-shop a.is-primary:hover { background: var(--lmg-ink); border-color: var(--lmg-ink); }
.lmg-shop small { color: inherit; opacity: .8; }
.lmg-shop a span { flex: 1; }
.lmg-shop .lmg-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lmg-shop a:not(.is-primary) .lmg-price { color: var(--lmg-deep); }
.lmg-price-note { margin-top: -.25rem; }
.lmg-crumbs { font-size: .875rem; color: var(--lmg-graphite); margin-bottom: 1rem; }
.lmg-crumbs a { color: inherit; }

/* Footer */
.lmg-footer .wp-block-site-title { margin: 0 0 .5rem; }
.lmg-footer-head { font-family: var(--wp--preset--font-family--sans) !important; font-style: normal !important; font-weight: 600 !important; margin: 0 0 .5rem; }
.lmg-plain-list { list-style: none; padding: 0; margin: 0; }
.lmg-plain-list li { margin: .3rem 0; }
.lmg-fineprint { margin-top: var(--wp--preset--spacing--40); }

@media (max-width: 781px) {
	.lmg-hero { grid-template-columns: 1fr; }
	.lmg-hero-map .lmg-sheet { max-width: 22rem; }
	.lmg-hero-map svg { max-height: 60vh; }
	.lmg-header .lmg-search { width: 100% !important; }
	.lmg-facts { grid-template-columns: 1fr 1fr; }
}
