/* Магнитни бури - site design. Scoped to body.mb-on. */

@font-face { font-family: "Onest"; src: url(fonts/onest-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url(fonts/onest-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; src: url(fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url(fonts/unbounded-latin-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body.mb-on {
	--paper: #eef1f4;
	--surface: #f9fbfc;
	--ink: #1b2430;
	--ink-2: #4a5566;
	--rule: #c7d0da;
	--focus: #1f5fa8;
	--mb-w: 1100px;
	--wp--style--global--content-size: 1100px;
	--wp--style--global--wide-size: 1100px;
	background: var(--paper);
	color: var(--ink);
	font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* Storm levels. --lc: strong colour, --lb: tint, --lt: text-safe colour. */
.mb-l-calm { --lc: #2c7a6b; --lb: #e2f0ec; --lt: #1f5c50; }
.mb-l-act  { --lc: #d4a106; --lb: #fbf0c8; --lt: #6e5200; }
.mb-l-g1   { --lc: #e07400; --lb: #ffe3c7; --lt: #8a4300; }
.mb-l-g2   { --lc: #c24e00; --lb: #ffd5b8; --lt: #8a3500; }
.mb-l-g3   { --lc: #b81d3a; --lb: #fbd3d9; --lt: #8c1229; }
.mb-l-g4   { --lc: #9a1a72; --lb: #f3d3ea; --lt: #7a1159; }
.mb-l-g5   { --lc: #5b2aa0; --lb: #e6dbf7; --lt: #46207d; }

/* Type */
body.mb-on h1, body.mb-on h2, body.mb-on h3, body.mb-on .wp-block-post-title {
	font-family: "Unbounded", "Onest", system-ui, sans-serif;
	color: var(--ink);
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-wrap: balance;
}
body.mb-on h1, body.mb-on .wp-block-post-title { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 650; margin-block: 0 0.6em; }
body.mb-on h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); font-weight: 600; margin-block: 2.2em 0.6em; }
body.mb-on h3 { font-size: 1.1rem; font-weight: 600; margin-block: 1.8em 0.5em; }
body.mb-on .wp-block-post-content a,
body.mb-on .mb-month a,
body.mb-on .mb-year a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ink-2); }
body.mb-on .wp-block-post-content a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--ink); }
body.mb-on :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
body.mb-on main { margin-top: 0 !important; padding-top: clamp(1.5rem, 4vw, 3rem); }
body.mb-on .wp-block-post-content ul:not([class]) li,
body.mb-on .wp-block-post-content ol:not([class]) li { margin-block: 0.25em; }
/* One left edge for everything: text is limited to 44rem, data blocks run to 1100px. */
body.mb-on .wp-block-post-content > * { margin-left: max(0px, calc((100% - var(--mb-w)) / 2)) !important; margin-right: auto !important; max-width: min(44rem, 100%); }
body.mb-on .wp-block-post-content > :is(.mb-wide, .mb-now, table, .mb-aurora, figure, .mb-embed) { max-width: min(var(--mb-w), 100%); }
.mb-wide p, .mb-now p { max-width: 72ch; }
.mb-small { font-size: 0.875rem; color: var(--ink-2); }
.mb-nodata { padding: 0.9rem 1rem; border-left: 4px solid var(--rule); background: var(--surface); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* Header */
.mb-header { background: var(--surface); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.mb-header__in { max-width: var(--mb-w); margin: 0 auto; padding: 0.85rem clamp(1rem, 3vw, 1.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mb-brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.mb-brand__mark { flex: none; }
.mb-nav__list, .mb-sub { list-style: none; margin: 0; padding: 0; }
.mb-nav__list { display: flex; gap: 0.25rem; align-items: center; }
.mb-nav__item { position: relative; display: flex; align-items: center; }
.mb-nav__item > a { display: block; padding: 0.5rem 0.6rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; border-bottom: 2px solid transparent; }
.mb-nav__item.is-current > a { border-bottom-color: var(--ink); }
.mb-nav__item > a:hover { border-bottom-color: var(--ink-2); }
.mb-sub-toggle { width: 1.6rem; height: 1.6rem; margin-left: -0.35rem; border: 0; background: transparent; cursor: pointer; color: var(--ink); position: relative; }
.mb-sub-toggle::before { content: ""; position: absolute; left: 50%; top: 45%; width: 0.42rem; height: 0.42rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.mb-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 15rem; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: 0.4rem 0; }
.mb-sub--grid { display: none; grid-template-columns: repeat(3, minmax(8.5rem, 1fr)); min-width: 28rem; }
.mb-sub a { display: block; padding: 0.42rem 0.9rem; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.mb-sub a:hover, .mb-sub a[aria-current] { background: var(--paper); }
.mb-nav__item.has-sub:hover > .mb-sub,
.mb-nav__item.has-sub:focus-within > .mb-sub,
.mb-nav__item.is-open > .mb-sub { display: block; }
.mb-nav__item.has-sub:hover > .mb-sub--grid,
.mb-nav__item.has-sub:focus-within > .mb-sub--grid,
.mb-nav__item.is-open > .mb-sub--grid { display: grid; }
.mb-nav__item:last-child .mb-sub { left: auto; right: 0; }
.mb-burger { display: none; align-items: center; gap: 0.5rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 0.45rem 0.7rem; font: 500 0.95rem "Onest", sans-serif; cursor: pointer; }
.mb-burger__icon, .mb-burger__icon::before, .mb-burger__icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.mb-burger__icon::before, .mb-burger__icon::after { content: ""; position: absolute; left: 0; }
.mb-burger__icon::before { top: -6px; }
.mb-burger__icon::after { top: 6px; }

@media (max-width: 860px) {
	.mb-header__in { flex-wrap: wrap; }
	.mb-burger { display: inline-flex; }
	.mb-nav { display: none; width: 100%; }
	.mb-header.is-open .mb-nav { display: block; }
	.mb-nav__list { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--rule); }
	.mb-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
	.mb-nav__item > a { flex: 1; padding: 0.8rem 0; border-bottom: 0; }
	.mb-nav__item.is-current > a { font-weight: 700; }
	.mb-sub-toggle { width: 2.75rem; height: 2.75rem; margin: 0; }
	.mb-nav__item.has-sub:hover > .mb-sub,
	.mb-nav__item.has-sub:focus-within > .mb-sub { display: none; }
	.mb-sub, .mb-sub--grid, .mb-nav__item.is-open > .mb-sub { position: static; width: 100%; min-width: 0; border: 0; border-left: 3px solid var(--ink); background: transparent; padding: 0 0 0.6rem; margin-bottom: 0.4rem; }
	.mb-nav__item.is-open > .mb-sub--grid { display: grid; grid-template-columns: repeat(2, 1fr); }
	.mb-nav__item.is-open > .mb-sub-toggle::before { transform: translate(-50%, -20%) rotate(225deg); }
}

/* Hero: the live status band. Its colour is the storm level. */
.mb-now { background: var(--lb); border-top: 8px solid var(--lc); margin: 0.5rem auto 1.5rem; }
.mb-now__in { padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 1.75rem); }
.mb-now__status { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 1rem; max-width: 18ch; color: var(--ink); }
.mb-now__g { display: inline-block; vertical-align: 0.35em; font-size: 0.38em; letter-spacing: 0; background: var(--lc); color: #fff; padding: 0.2em 0.5em; }
.mb-now__facts { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1.5rem; align-items: end; margin-bottom: 1.4rem; }
.mb-now__kp { grid-row: span 2; margin: 0; display: flex; align-items: baseline; gap: 0.5rem; }
.mb-now__kpnum { font-family: "Unbounded", sans-serif; font-weight: 600; font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); line-height: 1; color: var(--lt); }
.mb-now__kpunit { font-size: 0.95rem; color: var(--ink-2); }
.mb-now__meta, .mb-now__next { margin: 0; font-size: 0.95rem; }
.mb-now__next { font-weight: 600; }
@media (max-width: 600px) { .mb-now__facts { grid-template-columns: 1fr; } .mb-now__kp { grid-row: auto; } }

.mb-scale { max-width: 46rem; }
.mb-scale__bar { position: relative; display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; height: 14px; }
.mb-scale__seg { background: var(--lc); }
.mb-scale__mark { position: absolute; top: -9px; width: 4px; height: 32px; margin-left: -2px; background: var(--ink); animation: mb-mark 900ms cubic-bezier(.2, .7, .2, 1) both; }
.mb-scale__mark::before { content: ""; position: absolute; top: -7px; left: -5px; border: 7px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
@keyframes mb-mark { from { left: 0; } }
@media (prefers-reduced-motion: reduce) { .mb-scale__mark { animation: none; } }
.mb-scale__ticks { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-2); margin-top: 0.35rem; font-variant-numeric: tabular-nums; }
.mb-scale__zones { display: grid; grid-template-columns: 4.67fr 4.33fr; font-size: 0.8rem; color: var(--ink-2); margin-top: 0.15rem; }
.mb-scale__zones .z-storm { border-left: 2px solid var(--ink-2); padding-left: 0.4rem; }

/* 6-day strip chart */
.mb-strip { margin: 1rem auto 2rem; }
.mb-strip__plot { position: relative; height: 190px; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; align-items: end; padding-bottom: 1.6rem; background-image: repeating-linear-gradient(to top, var(--rule) 0 1px, transparent 1px calc((190px - 1.6rem) / 9)); background-position: 0 calc(-1.6rem); background-size: 100% calc(100% - 1.6rem); background-repeat: no-repeat; border-bottom: 1px solid var(--ink); }
.mb-strip__g1 { position: absolute; left: 0; right: 0; bottom: calc(1.6rem + (100% - 1.6rem) * 0.5185); border-top: 2px dashed var(--ink); pointer-events: none; z-index: 1; }
.mb-strip__g1 span { position: absolute; right: 0; top: -1.45rem; font-size: 0.75rem; background: var(--paper); padding: 0 0.3rem; }
.mb-strip__col { position: relative; height: 100%; display: flex; align-items: flex-end; }
.mb-strip__col.is-newday { box-shadow: -2px 0 0 0 var(--paper), -3px 0 0 0 var(--rule); }
.mb-strip__bar { display: block; width: 100%; background: var(--lc); }
.mb-strip__col.k-predicted .mb-strip__bar { background: repeating-linear-gradient(135deg, var(--lc) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--lc); }
.mb-strip__col.is-now .mb-strip__bar { outline: 2px solid var(--ink); outline-offset: 1px; }
.mb-strip__day { position: absolute; bottom: -1.5rem; left: 0; white-space: nowrap; font-size: 0.78rem; color: var(--ink-2); }
.mb-strip__cap { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }
.mb-key::before { content: ""; display: inline-block; width: 0.9rem; height: 0.9rem; margin-right: 0.35rem; vertical-align: -0.1rem; background: #2c7a6b; }
.mb-key--fc::before { background: repeating-linear-gradient(135deg, #2c7a6b 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px #2c7a6b; }
@media (max-width: 600px) { .mb-strip__day { font-size: 0.68rem; } .mb-strip__plot { gap: 1px; } }

/* Next three days */
.mb-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1rem auto 2rem; }
.mb-day { background: var(--lb); border-top: 6px solid var(--lc); padding: 0.9rem 1rem 1rem; }
.mb-day p { margin: 0; }
.mb-day__name { font-weight: 600; }
.mb-day__kp { font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 1.6rem; color: var(--lt); margin: 0.3rem 0 0.1rem !important; }
.mb-day__lvl { font-weight: 600; }
.mb-day__note { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.4rem !important; }

/* Stats */
.mb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0; margin: 1rem 0 1.25rem; border-top: 1px solid var(--ink); }
.mb-stats > div { padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
.mb-stats dt { font-size: 0.85rem; color: var(--ink-2); }
.mb-stats dd { margin: 0.15rem 0 0; font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.mb-stats dd small { font-family: "Onest", sans-serif; font-weight: 500; font-size: 0.85rem; color: var(--ink-2); }
.mb-wind__note { margin-top: 0; }

/* Tables */
body.mb-on .mb-table, body.mb-on .wp-block-post-content table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.75rem; font-size: 0.95rem; }
body.mb-on .mb-table th, body.mb-on .wp-block-post-content table th { text-align: left; font-weight: 600; border-bottom: 2px solid var(--ink); padding: 0.55rem 0.75rem 0.55rem 0; vertical-align: bottom; }
body.mb-on .mb-table td, body.mb-on .wp-block-post-content table td { border-bottom: 1px solid var(--rule); padding: 0.6rem 0.75rem 0.6rem 0; vertical-align: top; }
.mb-gscale td:first-child { white-space: nowrap; font-weight: 600; }
.mb-chip { display: inline-block; min-width: 2.4rem; text-align: center; background: var(--lc); color: #fff; font: 600 0.85rem/1.5 "Unbounded", sans-serif; padding: 0.1rem 0.4rem; }
.mb-gscale tr td:first-child { border-left: 6px solid var(--lc); padding-left: 0.6rem; }

/* Calendars */
.mb-cal { margin: 1rem 0 1.5rem; }
.mb-cal ol { list-style: none; margin: 0; padding: 0; }
.mb-cal__dow, .mb-cal--month .mb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mb-cal__dow li { font-size: 0.8rem; color: var(--ink-2); padding-bottom: 0.25rem; max-width: none; }
.mb-cal--outlook .mb-cal__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.3rem, 1fr)); gap: 3px; }
.mb-cal__cell { background: var(--lb); border-top: 4px solid var(--lc); padding: 0.3rem 0.4rem 0.45rem; min-height: 3.6rem; display: flex; flex-direction: column; justify-content: space-between; max-width: none !important; margin: 0 !important; }
.mb-cal__cell.is-empty { background: transparent; border: 0; }
.mb-cal__cell.is-future { background: transparent; border-top: 4px solid var(--rule); color: var(--ink-2); }
.mb-cal__d { font-size: 0.78rem; color: var(--ink-2); }
.mb-cal__v { font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--lt); }
.mb-cal figcaption { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.5rem; }
.mb-month__h { margin-top: 0.5rem !important; }
.mb-month__h small { font-family: "Onest", sans-serif; font-size: 0.6em; font-weight: 500; color: var(--ink-2); }
.mb-compare { font-weight: 500; }
@media (max-width: 520px) { .mb-cal__v { font-size: 0.85rem; } .mb-cal__cell { min-height: 3rem; padding: 0.2rem 0.25rem; } }

/* Aurora box */
.mb-aurora { background: var(--lb); border-left: 6px solid var(--lc); padding: 0.9rem 1.1rem; margin: 1rem 0 1.5rem; max-width: var(--mb-w); }
.mb-aurora p { margin: 0; }
.mb-aurora__t { font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 1.1rem; margin-bottom: 0.3rem !important; }

/* FAQ */
body.mb-on .wp-block-post-content details { border-top: 1px solid var(--rule); padding: 0.2rem 0; max-width: 72ch; }
body.mb-on .wp-block-post-content details:last-of-type { border-bottom: 1px solid var(--rule); }
body.mb-on .wp-block-post-content summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.04rem; padding: 0.8rem 2rem 0.8rem 0; position: relative; }
body.mb-on .wp-block-post-content summary::-webkit-details-marker { display: none; }
body.mb-on .wp-block-post-content summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.55rem; font: 500 1.4rem/1 "Unbounded", sans-serif; }
body.mb-on .wp-block-post-content details[open] summary::after { content: "\2212"; }
body.mb-on .wp-block-post-content details > :not(summary) { margin-top: 0; }

/* Key facts list: "Label. Fact." items */
body.mb-on .mb-facts { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
body.mb-on .mb-facts li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
body.mb-on .mb-facts strong { font-weight: 650; }

/* Lead paragraph */
body.mb-on .mb-lead { font-size: 1.15rem; line-height: 1.55; }

/* Embed */
.mb-embed { display: grid; gap: 0.5rem; max-width: 32rem; }
.mb-embed label { font-weight: 600; margin-top: 0.5rem; }
.mb-embed textarea { width: 100%; font: 0.85rem/1.4 ui-monospace, monospace; padding: 0.6rem; border: 1px solid var(--rule); background: var(--surface); }

/* Sitemap */
.mb-sitemap, .mb-sitemap ul { list-style: none; padding-left: 0; }
.mb-sitemap ul { padding-left: 1.25rem; border-left: 1px solid var(--rule); margin: 0.2rem 0 0.6rem; }

/* Footer */
.mb-footer { background: var(--ink); color: #dfe5ec; margin-top: clamp(3rem, 8vw, 5rem); }
.mb-footer a { color: #fff; text-decoration: none; }
.mb-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mb-footer .mb-brand { color: #fff; }
.mb-footer__in { max-width: var(--mb-w); margin: 0 auto; padding: 2.75rem clamp(1rem, 3vw, 1.5rem) 2rem; display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 2rem; }
.mb-footer__brand p { font-size: 0.92rem; max-width: 30ch; color: #c3ccd6; }
.mb-footer__h { font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 0.9rem; color: #fff; margin: 0 0 0.7rem; }
.mb-footer ul { list-style: none; margin: 0; padding: 0; font-size: 0.93rem; }
.mb-footer li { margin: 0 0 0.4rem; }
.mb-footer__months { columns: 2; column-gap: 1rem; }
.mb-footer__base { border-top: 1px solid #36414f; }
.mb-footer__base p { max-width: var(--mb-w); margin: 0 auto; padding: 1rem clamp(1rem, 3vw, 1.5rem) 1.5rem; font-size: 0.82rem; color: #aab4c0; }
@media (max-width: 860px) { .mb-footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mb-footer__in { grid-template-columns: 1fr; } }

/* Small screens: tables scroll instead of pushing the page wider */
@media (max-width: 640px) {
	body.mb-on .wp-block-post-content > table,
	body.mb-on .wp-block-post-content > .mb-wide > table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.mb-gscale td:first-child { white-space: normal; }
	.mb-gscale th:nth-child(4), .mb-gscale td:nth-child(4) { display: none; }
	body.mb-on .mb-gscale { display: table; }
}
