/* Light Science › Your greenhouse. Builds on site.css tokens, the app-window frame and the form styles.
   Dark panel: ink ground, mint hairlines, lime only for the current state (your point, today, the target) and only on
   dark surfaces. Daylight is warm yellow (#f0d660), lamp light magenta with a hatch, so colour is never the only cue. */

/* ---------- hero and location input ---------- */
.yg-hero { padding-bottom: clamp(48px, 6vw, 88px); }
.yg-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.yg-hero h1 { max-width: 17ch; margin-bottom: 18px; }
.yg-hero .lead { max-width: 52ch; }
.yg-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; max-width: 620px; }
.yg-steps li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid rgba(66, 211, 156, 0.18); font-size: 0.9rem; line-height: 1.4; color: #cfe3d9; }
.yg-step-n { flex: none; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--brand-mint); }

.yg-locate { position: relative; padding: 22px 22px 20px; border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(19, 41, 33, 0.94), rgba(10, 24, 19, 0.96)); border: 1px solid rgba(66, 211, 156, 0.24); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.yg-locate::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 50% at 100% 0%, rgba(216, 243, 106, 0.1), rgba(216, 243, 106, 0) 70%); }
.yg-locate-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.yg-pin { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(216, 243, 106, 0.12); color: var(--accent); }
.yg-pin svg { width: 18px; height: 18px; }
.yg-locate-t { margin: 0; font-size: 1.08rem; font-weight: 750; letter-spacing: -0.01em; color: #fff; }
.yg-label { display: block; margin-bottom: 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa49b; }
.yg-inrow { position: relative; }
.yg-inrow textarea { display: block; width: 100%; min-height: 76px; padding: 13px 44px 13px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(3, 10, 8, 0.55); color: #fff; font: 500 0.95rem/1.45 var(--mono); resize: vertical; transition: border-color 0.2s, box-shadow 0.2s; word-break: break-all; }
.yg-inrow textarea::placeholder { color: #6f8279; }
.yg-inrow textarea:focus { outline: none; border-color: rgba(216, 243, 106, 0.7); box-shadow: 0 0 0 3px rgba(216, 243, 106, 0.16); }
.yg-clear { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, 0.08); color: #cfe3d9; cursor: pointer; }
.yg-clear:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.yg-clear svg { width: 14px; height: 14px; }
.yg-clear[hidden] { display: none; }
.yg-read { min-height: 1.45em; margin: 10px 0 0; font-size: 0.86rem; line-height: 1.45; color: #b3c3bb; }
.yg-read b { font-family: var(--mono); font-weight: 600; color: var(--accent); }
.yg-read.is-err { color: #ffb8ad; }
.yg-swap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; font-size: 0.84rem; color: #e6c79a; }
.yg-swap[hidden] { display: none; }
.yg-linkbtn { padding: 0; border: 0; background: none; color: var(--brand-mint); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.yg-linkbtn:hover { color: #fff; }
.yg-formats, .yg-howto { margin: 10px 0 0; font-size: 0.78rem; line-height: 1.5; color: #8a9b93; }
.yg-howto { margin-top: 4px; }
.yg-consent { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(66, 211, 156, 0.2); animation: yg-in 0.35s var(--ease) both; }
.yg-consent[hidden] { display: none; }
.yg-consent-t { margin: 0 0 6px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-mint); }
.yg-consent-x { margin: 0 0 6px; font-size: 0.92rem; line-height: 1.5; color: #eef4f0; }
.yg-consent-s { margin: 0 0 6px; font-size: 0.8rem; line-height: 1.5; color: #9fb3aa; }
.yg-consent-s[hidden] { display: none; }
.yg-consent-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.yg-consent-btns .btn[hidden] { display: none; }
.yg-consent-foot { margin: 12px 0 0; font-size: 0.76rem; color: #8a9b93; }
@keyframes yg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) { .yg-hero-grid { grid-template-columns: 1fr; } .yg-steps { max-width: none; } }
@media (max-width: 560px) { .yg-steps { grid-template-columns: 1fr; margin-top: 20px; } .yg-locate { padding: 18px 16px 16px; } .yg-inrow textarea { font-size: 16px; } .yg-consent-btns .btn { flex: 1 1 100%; justify-content: center; } }

/* ---------- panel frame and states ---------- */
.yg-panel-sec .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.yg-app { border-color: rgba(66, 211, 156, 0.16); box-shadow: 0 40px 90px -40px rgba(7, 18, 15, 0.8), 0 0 0 1px rgba(66, 211, 156, 0.08); background: linear-gradient(180deg, #0c1c17, var(--ink-1) 320px); }
.yg-app .aw-bar { height: 48px; }
.yg-app[data-state='live'] .aw-badge::before, .yg-app[data-state='loading'] .aw-badge::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.yg-app[data-state='loading'] .aw-badge::before { animation: yg-blink 1s ease-in-out infinite; }
.yg-app[data-state='local'] .aw-badge, .yg-app[data-state='error'] .aw-badge, .yg-app[data-state='idle'] .aw-badge { color: #9fb3aa; }
@keyframes yg-blink { 50% { opacity: 0.25; } }
.yg-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; padding: 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.88rem; line-height: 1.5; color: #cfe3d9; }
.yg-status[hidden] { display: none; }
.yg-status.is-error { background: rgba(255, 138, 92, 0.08); color: #ffd2bd; }
.yg-status.is-loading { color: #b3c3bb; }
.yg-status.is-loading::before { content: ''; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(216, 243, 106, 0.25); border-top-color: var(--accent); animation: yg-spin 0.8s linear infinite; align-self: center; }
.yg-status button[hidden] { display: none; }
@keyframes yg-spin { to { transform: rotate(360deg); } }
.yg-empty { display: grid; justify-items: center; gap: 10px; padding: clamp(40px, 7vw, 72px) 20px; text-align: center; }
.yg-empty[hidden] { display: none; }
.yg-empty-art { width: min(240px, 70%); height: auto; }
.yg-empty p { max-width: 52ch; margin: 0; font-size: 0.95rem; line-height: 1.55; color: #9fb3aa; }
.yg-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.yg-body > *, .yg-ctx-grid > *, .yg-place > * { min-width: 0; }
.yg-body[hidden] { display: none; }
.yg-block { padding: 22px 20px 20px; border-top: 1px solid rgba(255, 255, 255, 0.07); animation: yg-in 0.45s var(--ease) both; }
.yg-block[hidden] { display: none; }
.yg-bh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.yg-bh-l { justify-content: space-between; align-items: flex-start; }
.yg-bh-l > div { max-width: 78ch; }
.yg-h { margin: 0; font-size: 1.14rem; font-weight: 750; letter-spacing: -0.01em; color: #fff; }
.yg-eb { margin: 0 0 4px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-mint); }
.yg-sub { margin: 4px 0 0; font-size: 0.82rem; line-height: 1.5; color: #9fb3aa; }
.yg-bh > .yg-sub { margin: 0; }
.yg-chip { flex: none; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(216, 243, 106, 0.12); color: var(--accent); }
.yg-chip-ctx { max-width: 40ch; text-transform: none; letter-spacing: 0; font-size: 0.76rem; line-height: 1.35; font-weight: 700; background: rgba(66, 211, 156, 0.12); color: #bff0da; }
.yg-chip[hidden] { display: none; }

/* ---------- skeletons ---------- */
.yg-sk { display: block; height: 10px; margin: 6px 0; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.12) 40%, rgba(255, 255, 255, 0.05) 80%) 0 0 / 300% 100%; animation: yg-shimmer 1.4s linear infinite; }
span.yg-sk { display: inline-block; vertical-align: middle; }
.yg-sk.w40 { width: 40%; } .yg-sk.w60 { width: 60%; } .yg-sk.w80 { width: 80%; }
.yg-sk.h { height: 26px; }
.yg-sk.bar { width: 10px; height: 90px; margin: 10px auto; }
.yg-sk.chart { height: 220px; border-radius: 12px; }
@keyframes yg-shimmer { to { background-position: -300% 0; } }

/* ---------- place header and map ---------- */
.yg-place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 18px 24px; padding: 20px 20px 22px; align-items: center; }
.yg-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.yg-fact { min-width: 0; padding: 10px 0 11px; border-top: 1px solid rgba(66, 211, 156, 0.16); }
.yg-fact.is-wide { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
.yg-fact dt { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8fa49b; }
.yg-fact dd { margin: 4px 0 0; }
.yg-fact dd b { font-size: 1.12rem; font-weight: 750; letter-spacing: -0.01em; color: #fff; font-variant-numeric: tabular-nums; }
.yg-fact.is-wide dd b { font-family: var(--mono); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.yg-fact dd small { display: block; margin-top: 3px; font-size: 0.76rem; line-height: 1.4; color: #9fb3aa; }
.yg-mapbox { padding: 8px; border-radius: 14px; background: radial-gradient(90% 120% at 70% 0%, rgba(66, 211, 156, 0.1), rgba(66, 211, 156, 0) 60%), rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); }
.yg-mapbox[hidden] { display: none; }
.yg-map .sd-map-svg { display: block; width: 100%; height: auto; overflow: hidden; border-radius: 10px; }
.yg-map .sd-prov { stroke: #0a1813; stroke-width: 0.8; transition: fill 0.3s; }
.yg-map .sd-reg { fill: none; stroke: rgba(238, 244, 240, 0.3); stroke-width: 1.2; stroke-linejoin: round; pointer-events: none; }
.yg-map .sd-sel { fill: none; stroke: var(--brand-mint); stroke-width: 1.8; stroke-linejoin: round; pointer-events: none; }
.yg-mk-line { stroke: rgba(66, 211, 156, 0.9); stroke-width: 1.4; stroke-dasharray: 4 4; }
.yg-mk-centre { fill: #0a1813; stroke: var(--brand-mint); stroke-width: 2; }
.yg-mk-halo { fill: rgba(216, 243, 106, 0.22); transform-box: fill-box; transform-origin: center; animation: yg-pulse 2.4s var(--ease) infinite; }
.yg-mk-pt { fill: var(--accent); stroke: #0a1813; stroke-width: 2.4; }
@keyframes yg-pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- now ---------- */
.yg-now { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr)); gap: 10px; }
.yg-tile { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 12px 14px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.yg-tile[data-k='t'] { grid-row: span 2; justify-content: flex-start; background: linear-gradient(160deg, rgba(66, 211, 156, 0.12), rgba(66, 211, 156, 0.02) 60%), rgba(255, 255, 255, 0.03); border-color: rgba(66, 211, 156, 0.22); }
.yg-tile.is-none { opacity: 0.6; }
.yg-tl { margin: 0; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa49b; }
.yg-tv { display: flex; align-items: baseline; gap: 5px; margin: 4px 0 0; }
.yg-tv b { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.yg-tv small { font-size: 0.76rem; font-weight: 650; color: #9fb3aa; }
.yg-tile[data-k='t'] .yg-tv b { font-size: clamp(2.6rem, 4.6vw, 3.6rem); font-weight: 750; }
.yg-tile[data-k='t'] .yg-tv small { font-size: 1rem; }
.yg-tn { margin: 3px 0 8px; min-height: 1.2em; font-size: 0.72rem; line-height: 1.35; color: #8a9b93; }
.yg-arrow { flex: none; width: 18px; height: 18px; color: var(--brand-mint); align-self: center; transition: transform 0.4s var(--ease); }
.yg-spark { display: block; width: 100%; height: 26px; margin-top: auto; overflow: visible; }
.yg-tile[data-k='t'] .yg-spark { height: 64px; }
.yg-spark .l { fill: none; stroke: var(--brand-mint); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.yg-spark .a { fill: rgba(66, 211, 156, 0.1); stroke: none; }
.yg-spark rect { fill: rgba(120, 180, 255, 0.75); }
.yg-spark .n { stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 2 2; }
.yg-spark.is-bars .n { display: none; }
.yg-tile.is-sk { min-height: 108px; }

/* ---------- next days ---------- */
.yg-strip-wrap { position: relative; margin: 0 -4px; }
.yg-strip { list-style: none; margin: 0; padding: 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(66, 211, 156, 0.35) transparent; }
.yg-day { scroll-snap-align: start; display: grid; justify-items: center; align-content: start; gap: 0; padding: 10px 4px 10px; border-left: 1px solid rgba(255, 255, 255, 0.06); text-align: center; animation: yg-in 0.4s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.yg-day:first-child { border-left: 0; }
.yg-day.is-today { border-radius: 12px; background: rgba(216, 243, 106, 0.06); box-shadow: inset 0 2px 0 var(--accent); border-left-color: transparent; }
.yg-day.is-today + .yg-day { border-left-color: transparent; }
.yg-dn { margin: 0; font-size: 0.8rem; font-weight: 750; color: #fff; text-transform: capitalize; white-space: nowrap; }
.yg-day.is-today .yg-dn { color: var(--accent); }
.yg-dd { margin: 1px 0 0; font-size: 0.7rem; color: #8a9b93; white-space: nowrap; }
.yg-dr { position: relative; width: 100%; height: var(--H, 116px); margin: 22px 0 22px; }
.yg-dbar { position: absolute; left: 50%; width: 8px; margin-left: -4px; border-radius: 4px; background-image: var(--tgrad); background-size: 100% var(--H, 116px); background-repeat: no-repeat; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
.yg-dmax, .yg-dmin { position: absolute; left: 0; right: 0; font-size: 0.82rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 14px; }
.yg-dmax { color: #fff; }
.yg-dmin { color: #a9bbb3; }
.yg-dflag { display: grid; gap: 3px; min-height: 0; margin: 0 0 6px; }
.yg-dflag span { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 5px; border-radius: 5px; white-space: nowrap; }
.f-frost { background: rgba(159, 208, 255, 0.16); color: #bfe0ff; }
.f-hot { background: rgba(255, 154, 92, 0.16); color: #ffc29a; }
.yg-dp, .yg-dw, .yg-ds { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; padding: 6px 0; width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.78rem; font-weight: 650; color: #dbe9e2; font-variant-numeric: tabular-nums; }
.yg-dp small, .yg-dw small { font-size: 0.62rem; font-weight: 600; color: #8a9b93; }
.yg-dp > span small { margin-left: 2px; }
.yg-dpp { line-height: 1.2; }
.yg-drop { display: block; width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; position: relative; }
.yg-drop::after { content: ''; position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); background: #78b4ff; border-radius: 2px; }
.yg-dw .yg-arrow { width: 14px; height: 14px; }
.yg-ds { font-size: 0.68rem; font-weight: 600; color: #9fb3aa; }
.yg-flags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; padding: 0; font-size: 0.78rem; color: #9fb3aa; }
.yg-flags li { display: inline-flex; align-items: center; gap: 7px; }
.yg-flags b { color: #dbe9e2; font-weight: 700; }
.yg-flags i { width: 10px; height: 10px; border-radius: 3px; }
.yg-flags .k-frost { background: #9fd0ff; }
.yg-flags .k-hot { background: #ff9a5c; }
.yg-flags-n { flex-basis: 100%; }
.yg-day.is-sk { min-height: 300px; }

/* ---------- daylight in the greenhouse ---------- */
.yg-ctl { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-start; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); }
.yg-ctl[hidden] { display: none; }
.yg-f { display: grid; gap: 8px; min-width: 0; flex: 2 1 420px; }
.yg-f-cover { flex: 1 1 260px; }
.yg-l { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa49b; }
.yg-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.yg-seg button { flex: 1 1 auto; display: grid; gap: 1px; min-height: 44px; padding: 6px 12px; line-height: 1.2; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); background: transparent; color: #cfdcd5; font: inherit; font-size: 0.84rem; font-weight: 650; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.yg-seg button small { font-size: 0.68rem; font-weight: 600; opacity: 0.8; }
.yg-seg button:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.yg-seg button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.yg-seg button:focus-visible, .yg-app button:focus-visible, .yg-table summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.yg-note { margin: 0; font-size: 0.78rem; line-height: 1.45; color: #9fb3aa; }
.yg-note:empty { display: none; }
.yg-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0 0 8px; padding: 0; font-size: 0.76rem; color: #b3c3bb; }
.yg-legend li { display: inline-flex; align-items: center; gap: 7px; }
.yg-legend i { flex: none; display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.yg-legend .k-day { background: #f0d660; }
.yg-legend .k-band { width: 2px; height: 12px; border-radius: 0; background: rgba(255, 255, 255, 0.7); }
.yg-legend .k-gap { background: repeating-linear-gradient(45deg, #ff5a8e 0 2px, rgba(255, 90, 142, 0.22) 2px 5px); box-shadow: inset 0 0 0 1px #ff5a8e; }
.yg-legend .k-target { height: 0; border-top: 2px dashed var(--accent); border-radius: 0; }
.yg-chart { position: relative; width: 100%; min-height: 40px; }
.yg-svg { display: block; overflow: visible; }
.yg-svg text { fill: #8a9b93; font-family: var(--font); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.yg-svg .g { stroke: rgba(255, 255, 255, 0.07); }
.yg-svg .b { fill: #f0d660; }
.yg-svg .b.is-now { fill: #ffe596; stroke: var(--accent); stroke-width: 1.5; }
.yg-svg .gp { stroke: #ff5a8e; stroke-width: 1; }
.yg-svg .wk { stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.3; }
.yg-svg .t { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 6 4; }
.yg-svg .tl { fill: var(--accent); font-weight: 750; font-size: 11.5px; }
.yg-svg .d { fill: #cfe3d9; font-weight: 700; text-transform: capitalize; }
.yg-svg .d.is-now { fill: var(--accent); }
.yg-svg .d2 { font-size: 10px; }
.yg-svg .h { fill: #ffc2d6; font-weight: 750; font-size: 11px; }
.yg-svg .h.is-cap { fill: #ff8fb5; text-decoration: underline; }
.yg-svg .u { fill: #8a9b93; font-weight: 600; font-size: 10.5px; }
.yg-svg .f { stroke: #fff; stroke-width: 2; }
.yg-svg .fd { fill: var(--accent); stroke: #0a1813; stroke-width: 2; }
.yg-svg .fl { fill: #fff; font-weight: 700; font-size: 11px; paint-order: stroke; stroke: rgba(10, 24, 19, 0.9); stroke-width: 3px; }
.yg-grow { transform-box: fill-box; transform-origin: 50% 100%; animation: yg-grow 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes yg-grow { from { transform: scaleY(0); opacity: 0.2; } to { transform: none; opacity: 1; } }
.yg-tiles, .yg-ctiles { margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.yg-tiles > div, .yg-ctiles > div { min-width: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.yg-tiles dt, .yg-ctiles dt { font-size: 0.72rem; font-weight: 750; line-height: 1.3; color: #cfe3d9; }
.yg-tiles dd, .yg-ctiles dd { margin: 4px 0 0; }
.yg-tiles b, .yg-ctiles b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; font-variant-numeric: tabular-nums; }
.yg-tiles b small, .yg-ctiles dd small { margin-left: 5px; font-size: 0.72rem; font-weight: 600; color: #8a9b93; }
.yg-tsub { font-size: 0.74rem; line-height: 1.4; color: #9fb3aa; }
.yg-tsub:empty { display: none; }
.yg-msg { margin: 12px 0 0; font-size: 0.92rem; line-height: 1.55; color: #dbe9e2; }
.yg-msg strong { color: var(--accent); font-weight: 750; }
.yg-none { margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.14); font-size: 0.88rem; line-height: 1.5; color: #b3c3bb; }
.yg-none[hidden], [data-o='lightbody'][hidden] { display: none; }

/* ---------- context ---------- */
.yg-ctx[hidden] { display: none; }
.yg-ctx-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.yg-ctx-grid[hidden] { display: none; }
.yg-ctiles { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yg-ctiles > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.yg-card { min-width: 0; padding: 14px 16px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.09); }
.yg-ch { margin: 0; font-size: 0.95rem; font-weight: 750; color: #fff; }
.yg-card .yg-sub { margin-bottom: 8px; }

/* ---------- tables ---------- */
.yg-table { margin: 14px 0 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.02); }
.yg-table summary { padding: 10px 14px; font-size: 0.84rem; font-weight: 700; color: #cfe3d9; cursor: pointer; }
.yg-tw { overflow-x: auto; padding: 0 14px 8px; }
.yg-tw table { width: 100%; border-collapse: collapse; font-size: 0.8rem; color: #dbe9e2; font-variant-numeric: tabular-nums; }
.yg-tw th, .yg-tw td { padding: 6px 12px 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); text-align: left; white-space: nowrap; background: none; position: static; text-transform: none; letter-spacing: 0; }
.yg-tw thead th { font-size: 0.72rem; font-weight: 750; color: #9fb3aa; }
.yg-tw tbody th { font-weight: 700; color: #fff; text-transform: capitalize; }

/* ---------- sources ---------- */
.yg-src { padding: 16px 20px 18px; border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(3, 10, 8, 0.35); }
.yg-src-t { margin: 0 0 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8fa49b; }
.yg-src ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 0.76rem; line-height: 1.5; color: #8fa49b; }
.yg-src li[hidden] { display: none; }
.yg-src a { color: #cfe3d9; }

/* ---------- request form (light paper section; no lime) ---------- */
.yg-req-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.yg-req-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.yg-aside-card { padding: 20px 20px 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.yg-aside-card .h4 { margin: 0 0 10px; }
.yg-ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 0.9rem; line-height: 1.5; color: var(--fg-2); }
.yg-ticks li { position: relative; padding-left: 24px; }
.yg-ticks li::before { content: ''; position: absolute; left: 0; top: 0.42em; width: 13px; height: 8px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg) scale(0.85); transform-origin: 30% 60%; }
.yg-locsum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 12px 14px; border-radius: var(--r); border: 1px dashed var(--line-2); background: var(--bg-2); }
.yg-locsum.is-set { border-style: solid; border-color: #b9e2cc; background: #eef8f2; }
.yg-locsum-x { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--fg-2); }
.yg-locsum-x b { font-family: var(--mono); font-weight: 600; color: var(--fg); word-break: break-all; }
.yg-locsum .yg-linkbtn { color: var(--brand); }
.yg-radios { margin: 0; padding: 0; border: 0; min-width: 0; }
.yg-radios legend { padding: 0; }
.yg-radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.yg-radio { position: relative; display: inline-flex; }
.yg-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yg-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 0.92rem; font-weight: 650; color: var(--fg); cursor: pointer; transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.yg-radio input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.yg-radio input:focus-visible + span { box-shadow: 0 0 0 3px rgba(8, 128, 90, 0.25); }
.yg-radios[aria-invalid='true'] .yg-radio span { border-color: var(--alert); }
.yg-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; align-items: start; }
@media (max-width: 980px) { .yg-req-grid { grid-template-columns: 1fr; } .yg-req-aside { position: static; } }
@media (max-width: 760px) { .yg-trio { grid-template-columns: 1fr; } }

/* ---------- close ---------- */
.yg-close-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.yg-close-grid .h2 { margin: 0; max-width: 16ch; }
.yg-close-grid .lead { color: #d8e8e0; margin: 0 0 26px; max-width: 58ch; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .yg-now { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yg-tile[data-k='t'] { grid-row: auto; grid-column: span 3; }
  .yg-tile[data-k='t'] .yg-spark { height: 40px; }
  .yg-place { grid-template-columns: 1fr; }
  .yg-mapbox { max-width: 560px; }
  .yg-ctx-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) { .yg-close-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .yg-place { padding: 16px 14px 18px; }
  .yg-block { padding: 18px 12px 16px; }
  .yg-status { padding: 12px 14px; }
  .yg-now { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .yg-tile[data-k='t'] { grid-column: span 2; }
  .yg-tile { padding: 10px 12px 8px; }
  .yg-tv b { font-size: 1.35rem; }
  .yg-strip { grid-auto-columns: 66px; scroll-snap-type: x mandatory; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .yg-ctl { padding: 12px; gap: 12px; }
  .yg-f, .yg-f-cover { flex-basis: 100%; }
  .yg-seg button { flex: 1 1 40%; font-size: 0.8rem; }
  .yg-tiles { grid-template-columns: 1fr; }
  .yg-card { padding: 12px 10px 10px; }
  .yg-src { padding: 14px; }
  .yg-facts { gap: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .yg-consent, .yg-block, .yg-day, .yg-grow { animation: none !important; }
  .yg-mk-halo, .yg-sk, .yg-status.is-loading::before, .yg-app[data-state='loading'] .aw-badge::before { animation: none !important; }
  .yg-mk-halo { opacity: 0.6; }
  .yg-seg button, .yg-arrow, .yg-map .sd-prov, .yg-inrow textarea, .yg-radio span { transition: none !important; }
}
.yg-fcl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 0.78rem; color: #cfe3d9; }
.yg-fcl[hidden] { display: none; }
.yg-fcl i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #0a1813; }
.yg-fcl b { color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- day strip: confidence per day (measured skill of ECMWF IFS in Türkiye, as the 15-day outlook) ---------- */
.yg-dc { display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 0; padding: 2px 6px 2px 5px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); font-size: 0.6rem; font-weight: 750; line-height: 1.15; letter-spacing: 0.01em; color: #cfe3d9; text-align: left; max-width: 100%; }
.yg-dc i { flex: none; width: 6px; height: 6px; border-radius: 50%; }
.yg-dc[data-l='iklim'] { color: #9fb3aa; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 3px, rgba(255, 255, 255, 0.02) 3px 6px); }
.yg-day .yg-dr, .yg-day .yg-dflag, .yg-day .yg-dp, .yg-day .yg-dw, .yg-day .yg-ds { opacity: var(--o, 1); }
.yg-day.is-c-iklim .yg-dbar { background-image: none; background: rgba(207, 230, 218, 0.28); }
.yg-conf { display: grid; gap: 8px; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(66, 211, 156, 0.05); border: 1px solid rgba(66, 211, 156, 0.18); }
.yg-confkey { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; padding: 0; font-size: 0.76rem; color: #dbe9e2; }
.yg-confkey li { display: inline-flex; align-items: center; gap: 6px; }
.yg-confkey i { width: 9px; height: 9px; border-radius: 50%; }
.yg-confk-t { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa49b; }
.yg-confnote { margin: 0; font-size: 0.78rem; line-height: 1.5; color: #b3c3bb; max-width: 110ch; }
.yg-conflink { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 750; color: var(--brand-mint); text-decoration: none; }
.yg-conflink svg { width: 14px; height: 14px; }
.yg-conflink:hover { text-decoration: underline; }
/* two layers: the calibrated province-centre forecast (main bar and values) and the point forecast (thin bar, ±) */
.yg-strip.has-prov .yg-dbar { margin-left: -6px; }
.yg-pbar { position: absolute; left: 50%; width: 3px; margin-left: 5px; border-radius: 2px; background: transparent; box-shadow: inset 0 0 0 1px rgba(238, 244, 240, 0.65); opacity: 0.85; }
.yg-dpt { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 3px; margin: -6px 0 6px; font-size: 0.62rem; line-height: 1.25; color: #9fb3aa; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yg-dpt span { font-weight: 700; color: #8a9b93; }
.yg-dpt b { font-weight: 750; color: #cfdcd5; }
.yg-pm { font-size: 0.6rem; font-weight: 700; color: #8fa49b; }
.yg-dpt.is-only { margin-top: -6px; }
.yg-dfp { display: grid; justify-items: center; gap: 2px; margin: 0 0 6px; font-size: 0.62rem; font-weight: 700; color: #8a9b93; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yg-dfp i { display: block; width: 22px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #9fd0ff calc(var(--p, 0) * 100%), rgba(255, 255, 255, 0.08) 0); }
.yg-dfp.is-on { color: #cfe8ff; }
.yg-layers { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; font-size: 0.8rem; color: #dbe9e2; }
.yg-layers li { display: flex; align-items: center; gap: 8px; }
.yg-layers .is-prov i { flex: none; width: 8px; height: 14px; border-radius: 3px; background: linear-gradient(180deg, #f0d660, #42d39c 55%, #9fd0ff); }
.yg-layers .is-point i { flex: none; width: 3px; height: 14px; margin: 0 2px 0 3px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(238, 244, 240, 0.7); }
.yg-layers .is-miss { color: #f6efcf; font-weight: 650; padding: 6px 10px; border-radius: 8px; background: rgba(240, 214, 96, 0.08); box-shadow: inset 3px 0 0 #f0d660; }
.yg-attr { color: #8fa49b; }
