/* ==========================================================================
   TradeSphere FX — main.css (mobile-first)
   ========================================================================== */
:root {
	--navy: #0c1a33;
	--navy-2: #15274a;
	--ink: #0f1b2d;
	--text: #2a3446;
	--muted: #667085;
	--line: #e3e8f0;
	--bg: #f5f7fb;
	--card: #ffffff;
	--brand: #1d5cff;
	--brand-d: #1546c7;
	--brand-soft: #e8efff;
	--cyan: #22c3e6;
	--radius: 14px;
	--radius-s: 10px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
	--shadow-h: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 32px rgba(16, 24, 40, .12);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-h: "Manrope", "Inter", system-ui, sans-serif;
	--wrap: 1200px;
	--gutter: 16px;
	--c: var(--brand); /* warna kanal (di-override per kategori) */
}
.is-asuransi { --c: #0e9f9b; }
.is-investasi { --c: #1d5cff; }
.is-keuangan { --c: #6d4aff; }
.is-market { --c: #e08a00; }
.is-news { --c: #e0245e; }
.is-perencanaan-keuangan { --c: #12a150; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-h); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.ico { flex: none; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--cyan)); }

/* Topbar + ticker ---------------------------------------------------------- */
.topbar { background: var(--navy); color: #c7d1e4; font-size: 13px; }
.topbar-in { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.tb-label { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--brand); padding: 3px 8px; border-radius: 5px; }
.ticker { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; white-space: nowrap; animation: tick 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a, .ticker-dup a { margin-right: 34px; position: relative; color: #dfe6f3; }
.ticker-track a::after { content: ""; position: absolute; right: -19px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); transform: translateY(-50%); }
.ticker-track a:hover { color: #fff; }
.ticker-dup { display: inline-flex; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tb-time { display: none; flex: none; color: #9fb0cc; font-variant-numeric: tabular-nums; }

/* Header ------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 6px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-icon { width: 38px; height: 38px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-h); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-name b { color: var(--brand); }
.brand-tag { font-size: 11px; color: var(--muted); margin-top: 3px; display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--bg); color: var(--brand); }
.main-nav { display: none; }

.searchbar { background: #fff; border-top: 1px solid var(--line); padding: 12px 0; }
.search-form { position: relative; display: flex; }
.search-input { width: 100%; height: 46px; padding: 0 52px 0 16px; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; -webkit-appearance: none; }
.search-input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 92, 255, .15); }
.search-submit { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 9px; background: var(--brand); color: #fff; }
.search-submit:hover { background: var(--brand-d); }

/* Drawer ------------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 300; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 15, 30, .5); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; z-index: 1; width: min(86vw, 340px); background: #fff; padding: 14px 16px 24px; overflow-y: auto; transform: translateX(-100%); transition: transform .28s ease; display: flex; flex-direction: column; gap: 14px; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-home, .drawer-list a { display: flex; align-items: center; gap: 10px; padding: 12px 4px; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list .sub-menu { list-style: none; margin: 0; padding: 0 0 0 16px; }
.drawer-list .sub-menu a { font-weight: 500; font-size: 15px; color: var(--muted); }
.drawer-list .current-menu-item > a { color: var(--brand); }
body.no-scroll { overflow: hidden; }

/* Common ------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.badge:hover { color: var(--c); opacity: .85; }
.badge-solid { color: #fff; background: var(--c); padding: 4px 10px; border-radius: 6px; }
.badge-solid::before { display: none; }
.badge-solid:hover { color: #fff; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; }
.btn:hover { background: var(--brand-d); color: #fff; }
.box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.box-title { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); position: relative; }
.box-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 36px; height: 3px; border-radius: 2px; background: var(--brand); }
img.ph { background: var(--navy); object-fit: cover; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 16px; }
.section-title { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: linear-gradient(var(--brand), var(--cyan)); }
.section-sub { margin: 0; color: var(--muted); font-size: 14px; }

/* Hero --------------------------------------------------------------------- */
.hero { display: grid; gap: 16px; padding-top: 18px; }
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); isolation: isolate; }
.hero-media { display: block; aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-main::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 15, 30, 0) 30%, rgba(8, 15, 30, .9) 100%); }
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; color: #d3dbea; }
.hero-title { color: #fff; font-size: 22px; margin: 10px 0 8px; }
.hero-title a:hover { color: #cfe0ff; }
.hero-excerpt { display: none; }
.hero-body .meta { color: #b9c4d8; }

.latest { padding: 16px 18px 6px; }
.latest-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.latest-item:last-child { border-bottom: 0; }
.latest-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.latest-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.latest-excerpt { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Kanal Konten ------------------------------------------------------------- */
.channels { padding-top: 34px; }
.channel-grid { display: grid; gap: 16px; }
.channel { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border-top: 3px solid var(--c); }
.channel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.channel-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.channel-title { font-size: 18px; margin: 0; }
.channel-title a:hover { color: var(--c); }
.channel-media { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-s); overflow: hidden; background: var(--navy); margin-bottom: 10px; }
.channel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.channel-lead:hover .channel-media img { transform: scale(1.04); }
.channel-lead { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.channel-lead-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.channel-more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--c); }
.channel-more:hover { color: var(--c); gap: 9px; }

.row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.channel .row:last-of-type { border-bottom: 0; }
.row-media { display: block; aspect-ratio: 7 / 5; border-radius: 8px; overflow: hidden; background: var(--navy); }
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-title { font-family: var(--font-h); font-size: 14.5px; font-weight: 700; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Cards -------------------------------------------------------------------- */
.more-news { padding-top: 36px; padding-bottom: 8px; }
.grid { display: grid; gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 17px; font-weight: 700; margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-excerpt { font-size: 14px; color: var(--muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; }

/* Layout ------------------------------------------------------------------- */
.layout { display: grid; gap: 24px; padding-top: 20px; padding-bottom: 40px; }
.content { min-width: 0; }
.sidebar { display: grid; gap: 20px; align-content: start; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { counter-increment: r; position: relative; padding: 11px 0 11px 40px; border-bottom: 1px solid var(--line); }
.ranked li:last-child { border-bottom: 0; }
.ranked li::before { content: counter(r); position: absolute; left: 0; top: 11px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 13px; }
.ranked a { font-family: var(--font-h); font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.35; display: block; margin-bottom: 3px; }
.ranked a:hover { color: var(--brand); }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-weight: 600; font-size: 14.5px; }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list .ico { color: var(--c); }
.cat-list span { flex: 1; }
.cat-list em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg); padding: 2px 9px; border-radius: 999px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }

/* Archive head ------------------------------------------------------------- */
.archive-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0 18px; position: relative; }
.archive-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.archive-title-row { display: flex; align-items: center; gap: 12px; }
.archive-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.archive-count { margin: 6px 0 0; font-size: 14px; color: var(--muted); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.page-head { padding-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs .sep { opacity: .5; }
.page-title { font-size: 26px; margin: 0; }
.page-desc { color: var(--muted); font-size: 15px; margin-top: 6px; }
.page-desc p:last-child { margin: 0; }
.page-search { max-width: 540px; margin-top: 14px; }

.pager { margin-top: 28px; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; }
.pager .current { background: var(--brand); color: #fff; }
.pager .dots { background: transparent; box-shadow: none; }

/* Article ------------------------------------------------------------------ */
.article { min-width: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px; }
.article-head { margin-bottom: 18px; }
.article-title { font-size: 26px; line-height: 1.22; margin: 8px 0 12px; }
.article-lead { font-size: 17px; color: var(--muted); }
.article-meta { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.article-meta strong { color: var(--ink); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.avatar-lg { width: 54px; height: 54px; }
.article-figure { margin: 0 -16px 22px; }
.article-figure img { width: 100%; }
.article-figure figcaption { font-size: 13px; color: var(--muted); padding: 8px 16px 0; }

.entry { font-size: 17px; line-height: 1.8; color: #1f2939; overflow-wrap: break-word; }
.entry > * { margin-top: 0; margin-bottom: 1.15em; }
.entry h2 { font-size: 22px; margin-top: 1.6em; }
.entry h3 { font-size: 19px; margin-top: 1.4em; }
.entry a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry li::marker { color: var(--brand); }
.entry > ul:first-child, .entry > p:first-child + ul { background: var(--brand-soft); border-radius: 12px; padding: 16px 18px 16px 36px; }
.entry blockquote { margin: 1.5em 0; padding: 14px 18px; border-left: 4px solid var(--brand); background: #f3f6ff; border-radius: 0 10px 10px 0; font-style: italic; color: var(--ink); }
.entry blockquote p:last-child { margin: 0; }
.entry img, .entry figure { border-radius: 10px; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.entry th { background: var(--bg); color: var(--ink); }
.entry iframe { width: 100%; border-radius: 10px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags a { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.tags a:hover { background: var(--brand); color: #fff; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-label { font-weight: 700; font-size: 14px; color: var(--ink); margin-right: 4px; }
.share-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 0; color: #fff; }
.s-whatsapp { background: #25d366; } .s-telegram { background: #229ed9; } .s-x { background: #111; } .s-facebook { background: #1877f2; } .s-copy { background: var(--muted); }
.share-btn:hover { color: #fff; filter: brightness(1.1); }
.copy-tip { position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap; }
.s-copy.copied .copy-tip { opacity: 1; }
.author-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px; border-radius: 12px; background: var(--bg); }
.author-box strong { color: var(--ink); font-family: var(--font-h); }
.author-box p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* Legal -------------------------------------------------------------------- */
.legal { max-width: 860px; padding-top: 22px; padding-bottom: 48px; }
.legal-head { margin-bottom: 20px; }
.legal-intro { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; }
.legal-list { list-style: none; margin: 0; padding: 0; counter-reset: legal; display: grid; gap: 14px; }
.legal-card { counter-increment: legal; position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px 8px 70px; border-top: 3px solid var(--brand); }
.legal-card::before { content: counter(legal); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-h); font-weight: 800; }
.legal-card h2 { font-size: 19px; margin-top: 6px; }

.notfound { text-align: center; max-width: 560px; padding-top: 56px; padding-bottom: 30px; }
.nf-code { font-family: var(--font-h); font-size: 96px; font-weight: 800; line-height: 1; margin: 0 0 10px; background: linear-gradient(135deg, var(--brand), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .search-form { margin: 20px 0; }
.empty { text-align: center; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #a9b6cc; font-size: 14.5px; margin-top: 40px; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-tag { display: block; color: #8d9bb4; }
.footer-grid { display: grid; gap: 26px; padding-top: 40px; padding-bottom: 26px; }
.f-about p { max-width: 400px; margin-top: 14px; }
.f-title { color: #fff; font-family: var(--font-h); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-list a:hover { color: #fff; }
.f-risk { font-size: 12.5px; color: #8796b0; padding-top: 16px; padding-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.f-risk strong { color: var(--cyan); }
.f-bottom { background: #08122a; font-size: 13px; padding: 14px 0; color: #7d8ba5; }

.to-top { position: fixed; right: 16px; bottom: 18px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(29, 92, 255, .35); }
.to-top:hover { background: var(--brand-d); }

/* Ponsel: kartu kedua dst. dibuat ringkas horizontal ------------------------- */
@media (max-width: 639px) {
	.grid .card:not(:first-child) { flex-direction: row; }
	.grid .card:not(:first-child) .card-media { width: 38%; max-width: 150px; aspect-ratio: auto; flex: none; }
	.grid .card:not(:first-child) .card-body { padding: 12px 14px; }
	.grid .card:not(:first-child) .card-title { font-size: 15px; margin: 4px 0 6px; }
	.grid .card:not(:first-child) .card-excerpt { display: none; }
	.grid .card:not(:first-child) .badge { font-size: 10.5px; }
}

/* ==========================================================================
   Tablet ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
	:root { --gutter: 24px; }
	.brand-tag { display: block; }
	.tb-time { display: block; }
	.grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.hero-media { aspect-ratio: 16 / 9; }
	.hero-title { font-size: 28px; }
	.hero-body { padding: 24px; }
	.hero-excerpt { display: block; max-width: 640px; font-size: 15px; margin-bottom: 10px; }
	.channel-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
	.article { padding: 28px; }
	.article-figure { margin: 0 -28px 24px; }
	.article-figure figcaption { padding: 8px 28px 0; }
	.article-title { font-size: 32px; }
	.page-title { font-size: 30px; }
	.legal-card { padding: 24px 24px 10px 80px; }
	.legal-card::before { left: 22px; top: 22px; }
}

/* ==========================================================================
   Desktop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
	.menu-toggle { display: none; }
	.header-in { min-height: 76px; gap: 16px; }
	.brand { margin-right: 0; }
	.brand-icon { width: 44px; height: 44px; }
	.brand-name { font-size: 21px; }
	.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
	.main-nav .nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
	.main-nav .nav-list > li { position: relative; }
	.main-nav a { display: flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink); }
	.main-nav a:hover { background: var(--bg); color: var(--brand); }
	.main-nav .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; margin-left: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
	.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current-menu-parent > a, .home-btn.is-active { color: var(--brand); background: var(--brand-soft); }
	.home-btn { padding: 10px 11px !important; }
	.main-nav .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-h); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
	.main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
	.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.main-nav .sub-menu a { font-weight: 500; }

	.hero { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; padding-top: 26px; }
	.hero-media { aspect-ratio: auto; height: 100%; min-height: 460px; }
	.hero-title { font-size: 32px; }
	.hero-body { padding: 30px; }
	.latest { display: flex; flex-direction: column; justify-content: space-between; }
	.channel-grid { grid-template-columns: repeat(3, 1fr); }
	.grid-3 { grid-template-columns: repeat(3, 1fr); }

	.layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; padding-top: 28px; }
	.sidebar { position: sticky; top: 96px; }
	.single-layout .article { padding: 36px 44px; }
	.single-layout .article-figure { margin: 0 -44px 28px; }
	.single-layout .article-figure figcaption { padding: 8px 44px 0; }
	.article-title { font-size: 36px; }
	.entry { font-size: 18px; }
	.page-title { font-size: 34px; }
	.section-title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.ticker { overflow-x: auto; }
}

@media print {
	.topbar, .site-header, .sidebar, .share, .related, .site-footer, .to-top, .progress { display: none !important; }
	body { background: #fff; }
	.article { box-shadow: none; padding: 0; }
}
