/* Mathhh logos and colours page. Uses the brand variables from ../style.css. */
body.mk { background: var(--paper); color: var(--ink); }
.mk-wrap { max-width: 1040px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
.mk-top { position: sticky; top: 0; z-index: 5; background: var(--purple); padding-top: env(safe-area-inset-top); }
.mk-top .mk-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.mk-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mk-brand .logo { color: #fff; } .mk-brand .logo span { color: var(--lav); }
.mk-back { color: #fff; text-decoration: none; font-weight: 600; padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; }
.mk-back:hover { text-decoration: underline; }
.mk-hero { background: var(--purple); color: #fff; padding: 36px 0 52px; }
.mk-hero h1 { font-family: var(--head); font-weight: 800; font-size: clamp(34px, 6vw, 56px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 14px; }
.mk-hero p { font-size: clamp(17px, 2.2vw, 20px); color: #efeafa; margin: 0 0 26px; max-width: 34em; }
.mk-hero .mk-white { background: #fff; color: var(--deep); display: inline-flex; align-items: center; text-decoration: none; }
.mk-hero .mk-white:hover { background: var(--tint); }
.mk-sec { padding: 48px 0 0; }
main.mk-wrap { padding-bottom: 56px; }
.mk-sec h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 10px; }
.mk-lead { color: var(--muted); font-size: 17px; max-width: 42em; margin: 0 0 20px; }
.mk-h3 { font-family: var(--head); font-weight: 700; font-size: 22px; margin: 34px 0 10px; }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mk-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 18px; display: flex; flex-direction: column; }
.mk-card h3 { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--headink); margin: 14px 8px 4px; }
.mk-card p { margin: 0 8px 14px; color: var(--muted); font-size: 15px; }
.mk-dl { display: flex; gap: 8px; flex-wrap: wrap; margin: auto 8px 0; }
.mk-dl .btn { min-height: 44px; padding: 8px 16px; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; }
.mk-tile { border-radius: 12px; height: 190px; display: grid; place-items: center; padding: 18px; border: 1px solid var(--line); }
.mk-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.mk-tile:not(.wide) img { height: 140px; }
.t-light { background: #fff; } .t-deep { background: var(--deep); border-color: var(--deep); } .t-paper { background: var(--paper); }
.mk-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mk-box { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.mk-box h3 { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--headink); margin: 0 0 10px; }
.mk-box ul { margin: 0; padding-left: 20px; color: var(--muted); } .mk-box li { margin: 0 0 8px; }
.mk-small { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.f-head { font-family: var(--head); font-weight: 800; font-size: 34px; letter-spacing: -.02em; line-height: 1.1; margin: 0; color: var(--ink); }
.f-body { font-family: var(--body); font-size: 18px; margin: 0; }
.sw-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sw { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.swc { width: 100%; height: 96px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px 12px; color: #fff; font-weight: 600; font-size: 13px; border-radius: 0; }
.swc.sw-light { color: var(--ink); box-shadow: inset 0 -1px 0 var(--line); }
.swc:hover span { text-decoration: underline; }
.swt { padding: 14px 16px 16px; display: grid; gap: 2px; }
.swt b { font-family: var(--head); font-size: 18px; color: var(--headink); }
.swt code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.swt small { color: var(--muted); }
.swt p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.pairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pairs li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; gap: 14px; align-items: center; }
.pp { flex: none; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 24px; border: 1px solid var(--line); }
.pairs b { display: block; font-size: 15px; } .pairs small { color: var(--muted); }
@media (max-width: 600px) { .mk-grid, .sw-grid, .pairs, .mk-two { grid-template-columns: 1fr; } .mk-hero { padding: 24px 0 40px; } .mk-sec { padding-top: 40px; } }
.mk-right { display: inline-flex; align-items: center; gap: 10px; }
.mk-prose { padding-bottom: 56px; }
.mk-prose > * { max-width: 760px; }
.mk-prose h2 { font-size: clamp(22px, 3.4vw, 28px); margin: 36px 0 10px; }
.mk-prose p, .mk-prose li { color: var(--muted); font-size: 17px; line-height: 1.6; }
.mk-prose ul { padding-left: 22px; margin: 0 0 8px; } .mk-prose li { margin: 0 0 10px; }
.mk-prose b { color: var(--ink); } .mk-prose a { color: var(--accent); text-underline-offset: 3px; }
.mk-video { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.mk-video video { width: 100%; height: auto; aspect-ratio: 9 / 16; background: #1c1b22; border-radius: 22px; box-shadow: 0 10px 30px rgba(40,20,90,.22); display: block; }
.mk-vlist { display: grid; gap: 12px; }
.mk-vrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.mk-vrow b { display: block; font: 700 18px var(--head); color: var(--headink); } .mk-vrow span { color: var(--muted); font-size: 14px; }
.mk-vrow .btn { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; }
@media (max-width: 720px) { .mk-video { grid-template-columns: 1fr; } .mk-video video { max-width: 300px; margin: 0 auto; } }

/* Wallpapers */
.wp-all { margin: 0 0 6px; } .wp-all .btn { text-decoration: none; display: inline-flex; align-items: center; }
.wp-note { margin: -4px 0 16px; max-width: 46em; }
.wp-tile { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); line-height: 0; }
.wp-tile img { display: block; width: 100%; height: auto; }
.wp-card .mk-dl { align-items: center; } .wp-size { color: var(--muted); font-size: 14px; }
.wp-phone { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wp-phone .wp-tile { max-width: 220px; margin: 0 auto; }
@media (max-width: 600px) { .wp-phone { grid-template-columns: 1fr; } }
.mk-sub { font-family: var(--head); font-size: 24px; color: var(--headink); margin: 44px 0 6px; }
/* the Copy label sits on a small dark pill so it reads on every brand swatch, light or mid-tone */
.swc:not(.sw-light) span { background: rgba(28, 27, 34, .55); padding: 2px 9px; border-radius: 999px; }
