/* =========================================================
   MAGZ20 3.0 — Premium Dark Editorial
   ========================================================= */

:root {
	--m-bg: #080B10;
	--m-bg2: #111720;
	--m-card: #151B25;
	--m-elev: #1D2530;
	--m-red: #FF0037;          /* accents, active states, labels */
	--m-red-btn: #D90030;      /* button fill: passes contrast with white text */
	--m-red-hover: #B80028;
	--m-white: #FFFFFF;
	--m-text2: #B6BDC8;
	--m-muted: #8993A2;
	--m-border: #2B3441;
	--m-sponsor: #3A2A31;
	--m-r-sm: 10px;
	--m-r: 16px;
	--m-r-lg: 18px;
	--m-r-xl: 24px;
	--m-wrap: 1440px;
	--m-gutter: 32px;
	--m-font: Inter, "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--m-display: Manrope, "Noto Sans Thai", Inter, system-ui, sans-serif;
	--m-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
	margin: 0;
	background: var(--m-bg);
	color: var(--m-white);
	font-family: var(--m-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--m-red); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--m-red); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--m-red-btn); color: #fff; }
[hidden] { display: none !important; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.m-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 200;
	padding: 10px 16px; background: var(--m-red-btn); color: #fff; border-radius: 8px; font-weight: 600;
}
.m-skip:focus { left: 8px; color: #fff; }

.m-wrap { max-width: var(--m-wrap); margin-left: auto; margin-right: auto; padding-left: var(--m-gutter); padding-right: var(--m-gutter); }
.m-red { color: var(--m-red); }
.m-noscroll { scrollbar-width: none; }
.m-noscroll::-webkit-scrollbar { display: none; }
.m-main { min-height: 50vh; }

/* Image placeholder (shown when a post has no featured image) */
.m-ph {
	display: block;
	background-color: var(--m-elev);
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 2px, transparent 2px 16px);
}

/* Media boxes with hover zoom */
.m-media { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--m-elev); }
.m-media > .m-img, .m-media > img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	transition: transform .7s var(--m-ease);
}
.m-zoom:hover .m-media > .m-img, .m-zoom:hover .m-media > img { transform: scale(1.045); }

/* ---------- Type helpers ---------- */
.m-eyebrow { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--m-red); }
.m-h2 { margin: 4px 0 0; font-family: var(--m-display); font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -.015em; }
.m-cat { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--m-red); }
.m-tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--m-text2); padding: 2px 8px; border: 1px solid var(--m-border); border-radius: 6px; }
.m-badge { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; padding: 3px 8px; background: var(--m-border); border-radius: 6px; }
.m-pill { display: inline-block; padding: 5px 10px; background: var(--m-red-btn); border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.m-pill:hover { color: #fff; background: var(--m-red-hover); }

/* ---------- Buttons ---------- */
.m-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
	font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.m-btn--red { background: var(--m-red-btn); color: #fff; }
.m-btn--red:hover { background: var(--m-red-hover); color: #fff; }
.m-btn--ghost { background: transparent; border-color: var(--m-border); color: #fff; }
.m-btn--ghost:hover { border-color: var(--m-muted); color: #fff; }
.m-btn--lg { height: 52px; padding: 0 26px; font-size: 15px; }
.m-btn--block { display: flex; width: 100%; }
.m-btnrow { display: flex; flex-wrap: wrap; gap: 12px; }

.m-iconbtn {
	position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center;
	background: transparent; border: 1px solid var(--m-border); border-radius: 12px; color: var(--m-text2);
	transition: border-color .2s ease, color .2s ease;
}
.m-iconbtn:hover { border-color: var(--m-muted); color: #fff; }
.m-iconbtn--text { width: auto; display: inline-flex; gap: 6px; padding: 0 12px; font-size: 13px; font-weight: 600; }
.m-iconbtn__dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--m-red); box-shadow: 0 0 0 2px var(--m-bg); }
.m-roundbtn {
	width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
	background: rgba(8,11,16,.6); border: 1px solid var(--m-border); color: #fff;
}
.m-roundbtn:hover { border-color: var(--m-muted); }
.m-chip {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
	border: 1px solid var(--m-border); border-radius: 999px; background: transparent;
	font-size: 13px; font-weight: 500; color: var(--m-text2);
}
.m-chip:hover { border-color: var(--m-muted); color: #fff; }
.m-avatar { border-radius: 50%; display: block; object-fit: cover; }

/* ---------- Header ---------- */
.m-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(8,11,16,.94);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--m-border);
}
.admin-bar .m-header { top: 32px; }
.m-header__top { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 10px; }
.m-brand { display: flex; flex-direction: column; line-height: 1; flex: none; }
.m-brand:hover { color: inherit; }
.m-brand__word { font-family: var(--m-display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; color: #fff; }
.m-brand__logo { max-height: 40px; width: auto; }
.m-brand__slogan { margin-top: 6px; font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--m-muted); }

.m-search {
	flex: 1 1 380px; max-width: 640px; display: flex; align-items: center; gap: 10px;
	height: 46px; padding: 0 6px 0 16px; background: var(--m-bg2); border: 1px solid var(--m-border); border-radius: 12px;
	color: var(--m-muted);
}
.m-search:focus-within { border-color: var(--m-muted); }
.m-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font-size: 14px; }
.m-search input::placeholder { color: var(--m-muted); }
.m-search select { height: 34px; padding: 0 10px; background: var(--m-elev); color: var(--m-text2); border: 1px solid var(--m-border); border-radius: 8px; font-size: 13px; }
.m-search--inline { max-width: 560px; margin: 0 auto 20px; height: 52px; padding-right: 4px; }
.m-search--inline .m-btn { height: 42px; }

.m-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.m-header__nav { display: flex; align-items: center; gap: 12px; }
.m-nav { display: flex; align-items: center; flex-wrap: wrap; }
.m-nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 2px; }
.m-nav__list a, .m-nav__more {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 12px 14px 10px; font-size: 14px; font-weight: 500; color: var(--m-text2);
	background: none; border: 0; border-bottom: 2px solid transparent;
}
.m-nav__list a:hover, .m-nav__more:hover { color: #fff; }
.m-nav__list .current-menu-item > a, .m-nav__list .current_page_item > a, .m-nav__list .current-menu-ancestor > a {
	color: #fff; font-weight: 600; border-bottom-color: var(--m-red);
}
.m-header__date { margin-left: auto; font-size: 13px; color: var(--m-muted); white-space: nowrap; }

/* Dropdowns */
.m-dd { position: relative; display: inline-block; }
.m-dd__panel {
	position: absolute; top: 100%; left: 0; z-index: 60; min-width: 240px; margin-top: 6px; padding: 8px;
	background: var(--m-elev); border: 1px solid var(--m-border); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.m-dd__panel--right { left: auto; right: 0; }
.m-dd__list { list-style: none; margin: 0; padding: 0; }
.m-dd__list a, .m-dd__item { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #fff; }
.m-dd__list a:hover, .m-dd__item:hover { background: var(--m-card); color: #fff; }

/* Mobile drawer */
.m-drawer { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); }
.m-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); overflow-y: auto;
	background: var(--m-bg2); border-left: 1px solid var(--m-border); padding: 16px 20px 32px;
	display: flex; flex-direction: column; gap: 16px;
}
.m-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.m-drawer__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--m-border); }
.m-drawer__list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--m-border); font-size: 16px; font-weight: 500; }
.m-drawer__cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
body.m-lock { overflow: hidden; }

.m-only-mobile { display: none !important; }

/* ---------- Sections ---------- */
.m-section { margin-top: 56px; }
.m-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.m-empty-site { padding: 120px var(--m-gutter); text-align: center; color: var(--m-text2); }
.m-empty-site h2 { font-family: var(--m-display); font-size: 36px; color: #fff; margin: 0 0 8px; }

/* ---------- Hero ---------- */
.m-hero { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 32px; }
.m-hero__main {
	flex: 2 1 640px; min-width: 0; position: relative; height: 580px;
	border-radius: var(--m-r-lg); border: 1px solid var(--m-border); overflow: hidden; background: var(--m-elev);
}
.m-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.m-hero__slide.is-active { opacity: 1; visibility: visible; }
.m-hero__media { position: absolute; inset: 0; }
.m-hero__media .m-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--m-ease); }
.m-hero__main:hover .m-hero__slide.is-active .m-img { transform: scale(1.03); }
.m-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,11,16,.97) 6%, rgba(8,11,16,.6) 46%, rgba(8,11,16,.1) 100%); }
.m-hero__kicker {
	position: absolute; top: 20px; left: 24px; display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.m-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--m-red); }
.m-hero__body { position: absolute; left: 40px; right: 40px; bottom: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-right: 240px; }
.m-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--m-text2); }
.m-hero__title { margin: 0; max-width: 820px; font-family: var(--m-display); font-weight: 800; font-size: clamp(32px, 3.8vw, 56px); line-height: 1.06; letter-spacing: -.025em; }
.m-hero__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.m-hero__summary { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--m-text2); }
.m-hero__controls { position: absolute; right: 32px; bottom: 32px; z-index: 2; display: flex; align-items: center; gap: 6px; }
.m-hero__dot { width: 36px; height: 44px; padding: 0; display: grid; place-items: center; background: transparent; border: 0; }
.m-hero__dot::before { content: ""; display: block; width: 8px; height: 4px; border-radius: 4px; background: #5A6474; transition: width .3s ease, background .3s ease; }
.m-hero__dot[aria-current="true"]::before { width: 28px; background: var(--m-red); }
.m-hero__controls .m-roundbtn:first-of-type { margin-left: 8px; }

.m-hero__side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.m-sidecard {
	flex: 1; display: flex; gap: 16px; min-height: 160px; padding: 14px;
	background: var(--m-card); border: 1px solid var(--m-border); border-radius: var(--m-r);
	transition: border-color .2s ease;
}
.m-sidecard:hover { color: inherit; border-color: #3A4554; }
.m-sidecard__media { width: 150px; flex: none; }
.m-sidecard__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 4px 4px 4px 0; }
.m-sidecard__title { font-family: var(--m-display); font-weight: 700; font-size: 19px; line-height: 1.25; color: #fff; }
.m-sidecard:hover .m-sidecard__title { color: var(--m-red); }
.m-sidecard__meta { margin-top: auto; font-size: 13px; color: var(--m-muted); }

/* ---------- Category tiles ---------- */
.m-tiles { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.m-tile {
	position: relative; flex: none; width: 176px; height: 220px; border-radius: var(--m-r);
	overflow: hidden; border: 1px solid var(--m-border); scroll-snap-align: start; background: var(--m-elev);
}
.m-tile .m-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--m-ease); }
.m-tile:hover .m-img { transform: scale(1.07); }
.m-tile__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,11,16,.92) 10%, rgba(8,11,16,.05) 70%); }
.m-tile__name { position: absolute; left: 16px; right: 16px; bottom: 16px; font-family: var(--m-display); font-weight: 700; font-size: 19px; color: #fff; }

/* ---------- Layout: main + sidebar ---------- */
.m-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-top: 56px; }
.m-layout__main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.m-layout__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.m-layout--article { margin-top: 40px; }

/* Stories */
.m-stories { display: flex; gap: 18px; overflow-x: auto; padding: 18px 20px; background: var(--m-bg2); border: 1px solid var(--m-border); border-radius: var(--m-r-lg); }
.m-story { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.m-story__ring { width: 68px; height: 68px; border-radius: 50%; padding: 3px; border: 2px solid var(--m-red); }
.m-story__ring--you { border-color: var(--m-border); }
.m-story__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; }
.m-story__name { max-width: 76px; font-size: 12px; color: var(--m-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Tabs */
.m-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--m-border); }
.m-tab {
	flex: none; padding: 12px 16px; margin-bottom: -1px; background: transparent; border: 0;
	border-bottom: 2px solid transparent; font-size: 15px; font-weight: 500; color: var(--m-muted);
}
.m-tab:hover { color: #fff; }
.m-tab[aria-selected="true"] { color: #fff; font-weight: 600; border-bottom-color: var(--m-red); }

/* Composer */
.m-composer { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--m-card); border: 1px solid var(--m-border); border-radius: var(--m-r); }
.m-composer:hover { color: inherit; border-color: #3A4554; }
.m-composer__field { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; padding: 0 16px; background: var(--m-bg2); border: 1px solid var(--m-border); border-radius: 12px; font-size: 14px; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Feed */
.m-feed { display: flex; flex-direction: column; gap: 20px; }
.m-card { background: var(--m-card); border: 1px solid var(--m-border); border-radius: var(--m-r); }
.m-news__inner { display: flex; flex-wrap: wrap; gap: 22px; padding: 16px; }
.m-news__media { flex: 1 1 260px; min-height: 200px; }
.m-play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(8,11,16,.7); border: 1px solid rgba(255,255,255,.3); color: #fff;
}
.m-news__body { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 4px 6px 0 0; }
.m-news__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.m-news__title { margin: 0; font-family: var(--m-display); font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.m-news__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--m-text2); }
.m-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--m-muted); }
.m-byline__author { color: var(--m-text2); font-weight: 500; }
.m-news--sponsored { border-color: var(--m-sponsor); }
.m-sponsor-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--m-border); font-size: 12px; color: var(--m-text2); }
.m-sponsor-bar a { margin-left: auto; color: var(--m-muted); text-decoration: underline; }

/* Social card */
.m-social { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.m-social__head { display: flex; align-items: center; gap: 12px; }
.m-social__avatar img { width: 46px; height: 46px; border-radius: 50%; }
.m-social__who { display: flex; flex-direction: column; min-width: 0; }
.m-social__name { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.m-social__meta { font-size: 13px; color: var(--m-muted); }
.m-social__body { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.m-social__body p { margin: 0 0 10px; }
.m-social__body img { border-radius: 12px; }

/* Actions */
.m-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--m-border); }
.m-act {
	height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px;
	background: transparent; border: 0; border-radius: var(--m-r-sm); font-size: 13px; font-weight: 500; color: var(--m-text2);
}
.m-act:hover { background: var(--m-elev); color: #fff; }
.m-act--muted { color: var(--m-muted); }
.m-act--end { margin-left: auto; }
.m-act[data-like][aria-pressed="true"] { color: var(--m-red); }
.m-act[data-like][aria-pressed="true"] svg { fill: var(--m-red); }
.m-act[data-save][aria-pressed="true"] { color: #fff; }
.m-act[data-save][aria-pressed="true"] svg { fill: #fff; }
.m-act svg { transition: transform .2s ease; }
.m-act:active svg { transform: scale(.85); }

.m-feed-empty { padding: 56px 24px; text-align: center; background: var(--m-bg2); border: 1px dashed var(--m-border); border-radius: var(--m-r); color: var(--m-muted); font-size: 14px; }
.m-feed-empty svg { margin: 0 auto; }
.m-feed-empty p { margin: 4px 0; }
.m-feed-empty__title { margin-top: 12px !important; font-family: var(--m-display); font-weight: 700; font-size: 19px; color: #fff; }

/* ---------- Sidebar boxes ---------- */
.m-box { position: relative; overflow: hidden; padding: 22px; background: var(--m-bg2); border: 1px solid var(--m-border); border-radius: var(--m-r-lg); }
.m-box p { font-size: 14px; color: var(--m-text2); }
.m-box__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.m-box__title { margin: 0; font-family: var(--m-display); font-weight: 700; font-size: 21px; line-height: 1.2; }
.m-box__title--lg { font-size: 22px; margin: 8px 0; position: relative; }
.m-box__more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--m-text2); }
.m-box__note { margin: 12px 0 0; font-size: 12px !important; color: var(--m-muted) !important; }
.m-box--pr { background: var(--m-card); }
.m-box--pr > * { position: relative; }
.m-box__bigword { position: absolute !important; right: -10px; top: -30px; font-family: var(--m-display); font-weight: 800; font-size: 150px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--m-border); pointer-events: none; }
.m-box--cta { background: var(--m-card); }
.m-box .widget-title, .m-box ul { margin-top: 0; }
.m-box ul:not(.m-list):not(.m-trend) { padding-left: 18px; color: var(--m-text2); }

.m-trend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.m-trend__item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; }
.m-trend__item:hover { background: var(--m-card); color: inherit; }
.m-trend__rank { width: 30px; flex: none; font-family: var(--m-display); font-weight: 800; font-size: 22px; color: var(--m-muted); }
.m-trend__rank.is-first { color: var(--m-red); }
.m-trend__thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; }
.m-trend__text { display: flex; flex-direction: column; min-width: 0; }
.m-trend__title { font-size: 15px; font-weight: 600; line-height: 1.35; color: #fff; }
.m-trend__item:hover .m-trend__title { color: var(--m-red); }
.m-trend__eng { font-size: 12px; color: var(--m-muted); }

.m-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.m-list__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.m-list__row--link { padding: 10px; margin: 0 -10px; border-radius: 12px; }
.m-list__row--link:hover { background: var(--m-card); color: inherit; }
.m-list__thumb img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.m-list__logo { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--m-elev); border: 1px solid var(--m-border); display: grid; place-items: center; overflow: hidden; color: var(--m-muted); }
.m-list__logo img { width: 100%; height: 100%; object-fit: cover; }
.m-list__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.m-list__title { font-size: 15px; font-weight: 600; color: #fff; }
.m-list__sub { font-size: 13px; color: var(--m-text2); }
.m-list__meta { font-size: 12px; color: var(--m-muted); }
.m-list__btn .generic-button a, .m-list__btn .generic-button button, .m-list__btn a, .m-list__btn button {
	display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px;
	background: var(--m-red-btn); color: #fff; border: 0; font-size: 13px; font-weight: 600;
}
.m-list__btn .leave-group a, .m-list__btn .leave-group button { background: transparent; color: var(--m-text2); border: 1px solid var(--m-border); }
.m-box .m-btn--block { margin-top: 12px; }
.m-datebox { width: 54px; height: 58px; flex: none; border-radius: 12px; background: var(--m-elev); border: 1px solid var(--m-border); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.m-datebox span { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--m-red); }
.m-datebox strong { font-family: var(--m-display); font-weight: 800; font-size: 18px; }

/* ---------- Join ---------- */
.m-join {
	position: relative; overflow: hidden; margin-top: 80px; padding: 64px;
	background: var(--m-bg2); border: 1px solid var(--m-border); border-radius: var(--m-r-xl);
	display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.m-join__num { position: absolute; right: -20px; bottom: -90px; font-family: var(--m-display); font-weight: 800; font-size: 380px; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--m-border); pointer-events: none; }
.m-join__text { position: relative; flex: 3 1 480px; min-width: 0; }
.m-join__title { margin: 10px 0 16px; font-family: var(--m-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.025em; }
.m-join__lead { margin: 0 0 28px; max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--m-text2); }
.m-join__grid { position: relative; flex: 2 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m-join__feat { padding: 18px; background: rgba(21,27,37,.9); border: 1px solid var(--m-border); border-radius: var(--m-r); }
.m-join__feat strong { font-family: var(--m-display); font-size: 16px; }
.m-join__feat p { margin: 6px 0 0; font-size: 13px; color: var(--m-text2); }

/* ---------- Footer ---------- */
.m-footer { margin-top: 80px; border-top: 1px solid var(--m-border); }
.m-footer__top { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 32px; }
.m-footer__brand { flex: 2 1 300px; min-width: 0; }
.m-footer__brand p { margin: 8px 0 20px; max-width: 340px; font-size: 14px; color: var(--m-text2); }
.m-footer__col { flex: 1 1 160px; }
.m-footer__title { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--m-muted); }
.m-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.m-footer__list a { color: var(--m-text2); }
.m-footer__list a:hover { color: #fff; }
.m-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--m-border); font-size: 13px; color: var(--m-muted); }
.m-newsletter input[type="email"], .m-newsletter input[type="text"] {
	height: 46px; padding: 0 14px; background: var(--m-bg2); border: 1px solid var(--m-border); border-radius: var(--m-r-sm); color: #fff;
}
.m-newsletter button, .m-newsletter input[type="submit"] { height: 46px; padding: 0 16px; border: 0; border-radius: var(--m-r-sm); background: var(--m-red-btn); color: #fff; font-weight: 600; }

/* Mobile bottom nav */
.m-bottomnav { display: none; }

/* Toast */
.m-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translateX(-50%);
	padding: 12px 18px; background: var(--m-elev); border: 1px solid var(--m-border); border-radius: 12px;
	box-shadow: 0 18px 40px rgba(0,0,0,.5); font-size: 14px; font-weight: 500;
}

/* ---------- Archive / grid ---------- */
.m-archive { padding-top: 40px; }
.m-archive__head { padding: 8px 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--m-border); }
.m-archive__title { margin: 6px 0 0; font-family: var(--m-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.m-archive__desc { max-width: 720px; margin-top: 10px; color: var(--m-text2); }
.m-grid { display: grid; gap: 20px; }
.m-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.m-gridcard { display: flex; flex-direction: column; overflow: hidden; }
.m-gridcard__media { aspect-ratio: 16 / 10; border-radius: 0; }
.m-gridcard__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.m-gridcard__title { margin: 0; font-family: var(--m-display); font-weight: 700; font-size: 20px; line-height: 1.28; }
.m-gridcard__excerpt { margin: 0; font-size: 14px; color: var(--m-text2); }
.m-gridcard .m-byline { margin-top: auto; }
.m-pagination { margin-top: 40px; }
.m-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.m-pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--m-border); border-radius: 12px; font-weight: 600; color: var(--m-text2); }
.m-pagination .page-numbers.current { background: var(--m-red-btn); border-color: var(--m-red-btn); color: #fff; }

/* ---------- Article ---------- */
.m-article__head { max-width: 960px; padding-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.m-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--m-muted); }
.m-crumbs a { color: var(--m-text2); }
.m-notice { margin: 0; padding: 12px 16px; background: var(--m-card); border: 1px solid var(--m-sponsor); border-radius: 12px; font-size: 14px; color: var(--m-text2); }
.m-article__title { margin: 0; font-family: var(--m-display); font-weight: 800; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.06; letter-spacing: -.025em; }
.m-article__dek { margin: 0; font-size: 20px; line-height: 1.55; color: var(--m-text2); }
.m-article__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px 0; border-top: 1px solid var(--m-border); border-bottom: 1px solid var(--m-border); }
.m-article__author { display: flex; align-items: center; gap: 12px; }
.m-article__authorname { font-weight: 600; }
.m-article__dates { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--m-muted); }
.m-share { display: flex; flex-wrap: wrap; gap: 8px; }
.m-article__hero { margin-top: 28px; margin-bottom: 0; }
.m-article__img { width: 100%; max-height: 720px; object-fit: cover; border-radius: var(--m-r-lg); border: 1px solid var(--m-border); }
.m-article__hero figcaption { margin-top: 10px; font-size: 13px; color: var(--m-muted); }
.m-article__content { max-width: 760px; font-size: 18px; line-height: 1.75; color: #E6E9EE; }
.m-article__content > * + * { margin-top: 1.2em; }
.m-article__content p { margin-bottom: 0; }
.m-article__content h2, .m-article__content h3 { font-family: var(--m-display); color: #fff; line-height: 1.25; margin-top: 1.8em; }
.m-article__content h2 { font-size: 30px; }
.m-article__content h3 { font-size: 23px; }
.m-article__content a { color: #fff; text-decoration: underline; text-decoration-color: var(--m-red); text-underline-offset: 3px; }
.m-article__content a:hover { color: var(--m-red); }
.m-article__content blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--m-red); font-family: var(--m-display); font-size: 24px; line-height: 1.4; color: #fff; }
.m-article__content img, .m-article__content .wp-block-image img { border-radius: 12px; }
.m-article__content figcaption { font-size: 13px; color: var(--m-muted); margin-top: 8px; }
.m-article__content ul, .m-article__content ol { padding-left: 1.3em; }
.m-article__content .alignwide { max-width: none; }
.m-article__content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.m-article__content th, .m-article__content td { padding: 10px; border-bottom: 1px solid var(--m-border); text-align: left; }
.m-article__tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 760px; }
.m-article__tags a { padding: 6px 12px; border: 1px solid var(--m-border); border-radius: 999px; font-size: 13px; color: var(--m-text2); }
.m-article__actions .m-actions { border-top: 1px solid var(--m-border); border-bottom: 1px solid var(--m-border); padding: 4px 0; }
.m-authorbox { display: flex; gap: 16px; padding: 22px; background: var(--m-card); border: 1px solid var(--m-border); border-radius: var(--m-r); }
.m-authorbox__name { display: block; font-family: var(--m-display); font-weight: 700; font-size: 19px; margin: 2px 0 4px; }
.m-authorbox p { margin: 0; font-size: 14px; color: var(--m-text2); }
.m-related { margin-top: 20px; }
.m-related .m-h2 { margin-bottom: 18px; }

/* Comments */
.m-comments { margin-top: 20px; }
.m-comments__list, .m-comments__list .children { list-style: none; padding: 0; margin: 18px 0; }
.m-comments__list .children { padding-left: 28px; border-left: 1px solid var(--m-border); }
.m-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--m-border); }
.m-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.m-comments .comment-author img { border-radius: 50%; }
.m-comments .comment-metadata { font-size: 12px; color: var(--m-muted); margin: 4px 0 8px; }
.m-comments .reply a { font-size: 13px; font-weight: 600; color: var(--m-text2); }
.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--m-text2); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; background: var(--m-bg2); border: 1px solid var(--m-border); border-radius: 12px; color: #fff; outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--m-muted); }
.comment-form .form-submit .m-btn { border: 0; }

/* Pages */
.m-page { padding-top: 40px; }
.m-page__head { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--m-border); }
.m-page__content { font-size: 17px; line-height: 1.7; }
.m-page__content a { text-decoration: underline; text-decoration-color: var(--m-red); }

/* 404 */
.m-404 { padding: 100px var(--m-gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.m-404__num { font-family: var(--m-display); font-weight: 800; font-size: 160px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--m-border); }
.m-404 p { color: var(--m-text2); margin: 0 0 12px; }
.m-404 .m-search--inline { width: 100%; }

/* Gutenberg basics */
.wp-block-button__link { background: var(--m-red-btn); color: #fff; border-radius: 12px; }
.wp-block-separator { border-color: var(--m-border); }
.wp-block-pullquote { border-color: var(--m-red); }
.wp-caption-text { font-size: 13px; color: var(--m-muted); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
	.m-hero__body { padding-right: 0; bottom: 96px; }
	.m-hero__controls { left: 40px; right: auto; bottom: 24px; }
	.m-header__date { display: none; }
}

@media (max-width: 960px) {
	:root { --m-gutter: 20px; }
	.m-search { flex-basis: 260px; }
	.m-join { padding: 40px 28px; }
}

@media (max-width: 782px) {
	.admin-bar .m-header { top: 46px; }
}

@media (max-width: 760px) {
	:root { --m-gutter: 16px; }
	html { scroll-padding-top: 80px; }
	body { padding-bottom: 76px; }
	.m-only-mobile { display: inline-grid !important; }
	.m-hide-mobile { display: none !important; }

	/* Compact header */
	.m-header__top { flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
	.m-brand__word { font-size: 25px; }
	.m-brand__slogan { display: none; }
	.m-header__nav { display: none; }
	.m-iconbtn { border-color: transparent; }
	.m-search { order: 3; flex: 1 1 100%; max-width: none; display: none; }
	.m-header.is-search-open .m-search { display: flex; }
	.m-search select { display: none; }

	/* Hero */
	.m-hero { padding-top: 16px; gap: 14px; }
	.m-hero__main { flex-basis: 100%; height: 460px; border-radius: var(--m-r); }
	.m-hero__body { left: 20px; right: 20px; bottom: 20px; gap: 12px; }
	.m-hero__title { font-size: 31px; }
	.m-hero__summary { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.m-hero__controls { left: auto; right: 12px; top: 8px; bottom: auto; }
	.m-hero__controls .m-roundbtn { display: none; }
	.m-hero__kicker { top: 18px; left: 18px; }
	.m-sidecard { min-height: 0; }
	.m-sidecard__media { width: 110px; height: 96px; }
	.m-sidecard__title { font-size: 16px; }

	.m-section { margin-top: 36px; }
	.m-h2 { font-size: 22px; }
	.m-tile { width: 128px; height: 160px; }
	.m-tile__name { font-size: 16px; left: 12px; bottom: 12px; }
	.m-layout { margin-top: 36px; gap: 24px; }

	.m-stories { padding: 14px; gap: 14px; border-radius: var(--m-r); }
	.m-story { width: 66px; }
	.m-story__ring { width: 62px; height: 62px; }

	.m-tab { padding: 8px 14px; margin: 0 0 10px; border: 1px solid var(--m-border); border-radius: 999px; font-size: 13px; font-weight: 600; }
	.m-tabs { gap: 8px; border-bottom: 0; }
	.m-tab[aria-selected="true"] { background: #fff; color: var(--m-bg); border-color: #fff; }

	.m-news__inner { padding: 0; gap: 0; }
	.m-news__media { flex-basis: 100%; min-height: 0; aspect-ratio: 16 / 10; border-radius: var(--m-r) var(--m-r) 0 0; }
	.m-news--sponsored .m-news__media { border-radius: 0; }
	.m-news__body { padding: 16px; }
	.m-news__title { font-size: 19px; }
	.m-act__label { display: none; }
	.m-act { padding: 0 10px; }

	.m-join { margin-top: 48px; padding: 28px 20px; border-radius: var(--m-r-lg); gap: 24px; }
	.m-join__num { font-size: 190px; bottom: -50px; }
	.m-join__lead { font-size: 15px; }
	.m-join__grid { display: none; }
	.m-btnrow .m-btn { flex: 1 1 100%; }

	.m-footer { margin-top: 48px; }

	/* Bottom navigation */
	.m-bottomnav {
		display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: 76px;
		padding: 6px 8px calc(10px + env(safe-area-inset-bottom));
		background: #0D1118; border-top: 1px solid var(--m-border);
	}
	.m-bottomnav a { height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--m-muted); }
	.m-bottomnav a.is-active { color: var(--m-red); }
	.m-bottomnav .m-bottomnav__create { justify-self: center; width: 52px; height: 52px; border-radius: 16px; background: var(--m-red-btn); color: #fff; }
	.m-toast { bottom: 92px; }

	.m-article__head { padding-top: 24px; }
	.m-article__dek { font-size: 17px; }
	.m-article__content { font-size: 17px; }
	.m-authorbox { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.m-zoom:hover .m-img, .m-tile:hover .m-img, .m-hero__main:hover .m-img { transform: none !important; }
}
