/**
 * PHANTASO — Premium core bundle (auto-generated)
 * Run: php scripts/build-premium-bundle.php
 */

/* ===== premium-ui.css ===== */
/* PHANTASO CMS — Premium UI system (2025 editorial) */

body.phantaso-body{text-rendering:optimizeLegibility}
.phantaso-container{max-width:76rem;padding:0 clamp(1rem,3vw,1.75rem)}

/* Header */
.phantaso-header--premium{border-bottom:0;box-shadow:none;background:transparent}
.phantaso-header--premium .phantaso-header__topbar{background:var(--phantaso-primary);color:rgba(255,255,255,.82);font-size:.6875rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.phantaso-header--premium .phantaso-header__topbar-inner{display:flex;justify-content:space-between;gap:1rem;padding:.45rem clamp(1rem,3vw,1.75rem);max-width:76rem;margin:0 auto}
.phantaso-header--premium .phantaso-header__topbar-tagline{opacity:.65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:50%}
.phantaso-header--premium .phantaso-header__main{background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--p-border);position:sticky;top:0;z-index:50}
.phantaso-header--premium .phantaso-header__row{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.phantaso-header--premium .phantaso-header__row--brand{padding:1rem 0 .75rem}
.phantaso-header--premium .phantaso-header__row--nav{padding:.25rem 0 .85rem;border-top:1px solid var(--p-border);overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.phantaso-header--premium .phantaso-header__row--nav::-webkit-scrollbar{display:none}
.phantaso-header--premium .phantaso-site-title{font-size:clamp(1.375rem,2.8vw,1.875rem);font-weight:800;letter-spacing:-.04em;color:var(--phantaso-primary);line-height:1.1}
.phantaso-header--premium .custom-logo{max-height:48px;width:auto}
.phantaso-nav__list--premium{display:flex!important;flex-wrap:nowrap;gap:.25rem;margin:0;padding:0;list-style:none}
.phantaso-nav__list--premium a{display:inline-flex;align-items:center;padding:.45rem .875rem;border-radius:9999px;font-size:.8125rem;font-weight:600;color:#475569;white-space:nowrap;transition:background .15s,color .15s}
.phantaso-nav__list--premium a:hover,.phantaso-nav__list--premium .current-menu-item>a{background:color-mix(in srgb,var(--phantaso-accent) 10%,transparent);color:var(--phantaso-accent)}
.phantaso-header--premium .phantaso-header__search{width:2.5rem;height:2.5rem;border-radius:9999px;background:var(--p-surface-muted);border:1px solid var(--p-border);color:#64748b;transition:all .15s}
.phantaso-header--premium .phantaso-header__search:hover{background:#fff;border-color:color-mix(in srgb,var(--phantaso-accent) 30%,transparent);color:var(--phantaso-accent);box-shadow:var(--p-shadow-sm)}

/* Breaking news */
.phantaso-breaking,.phantaso-breaking--premium{display:flex;align-items:stretch;gap:0;background:var(--phantaso-primary);color:#fff;border-radius:var(--p-radius-lg);overflow:hidden;box-shadow:var(--p-shadow-md);margin-bottom:.5rem}
.phantaso-breaking__label{display:inline-flex;align-items:center;padding:0 1.125rem!important;background:var(--phantaso-accent)!important;font-size:.6875rem!important;font-weight:800!important;letter-spacing:.12em!important;border-radius:0!important;position:relative}
.phantaso-breaking__label::after{content:"";position:absolute;right:-8px;top:50%;transform:translateY(-50%);border:8px solid transparent;border-left-color:var(--phantaso-accent)}
.phantaso-breaking__viewport{padding:.7rem 1rem .7rem .25rem;flex:1;min-width:0}
.phantaso-breaking__track a{color:rgba(255,255,255,.95)!important;font-size:.875rem!important;font-weight:500!important;margin-right:2.5rem!important}
.phantaso-breaking__track a:hover{text-decoration:none!important;color:#fff!important}

/* Portal layout */
.phantaso-homepage--10,.phantaso-homepage--20{background:var(--phantaso-bg)}
.phantaso-homepage__inner{gap:1.75rem;padding-top:1.75rem;padding-bottom:3.5rem}
@media(min-width:1024px){.phantaso-homepage__grid{grid-template-columns:minmax(0,280px) minmax(0,1fr) minmax(0,300px)}}
.phantaso-home-zone{background:transparent;border:0;padding:0}
.phantaso-widget--panel{background:var(--p-surface);border:1px solid var(--p-border);border-radius:var(--p-radius-xl);padding:1.25rem 1.375rem;box-shadow:var(--p-shadow-sm)}
.phantaso-home-zone--top .phantaso-widget--panel,.phantaso-home-zone--middle .phantaso-widget--panel,.phantaso-home-zone--bottom .phantaso-widget--panel{background:transparent;border:0;box-shadow:none;padding:0}
.phantaso-widget--panel .phantaso-widget-title{font-size:1rem;font-weight:800;letter-spacing:-.02em}

/* Cards */
.phantaso-card{position:relative;border:0;border-radius:var(--p-radius-xl);background:var(--p-surface);box-shadow:var(--p-shadow-sm);overflow:hidden;transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s}
.phantaso-card:hover{transform:translateY(-4px);box-shadow:var(--p-shadow-lg)}
.phantaso-card__thumb{position:relative;display:block;overflow:hidden;background:#e2e8f0;aspect-ratio:16/10}
.phantaso-card__thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.phantaso-card:hover .phantaso-card__thumb img{transform:scale(1.06)}
.phantaso-card__overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(15,23,42,.55));pointer-events:none}
.phantaso-card__body{padding:1.125rem 1.25rem 1.25rem}
.phantaso-card__cats{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.625rem}
.phantaso-card__cats a{font-size:.625rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;padding:.25rem .55rem;border-radius:9999px;background:color-mix(in srgb,var(--phantaso-accent) 12%,#fff);color:var(--phantaso-accent);border:1px solid color-mix(in srgb,var(--phantaso-accent) 20%,transparent)}
.phantaso-card__title{font-size:1.0625rem;font-weight:700;line-height:1.35;letter-spacing:-.02em;margin:0}
.phantaso-card__title a{color:var(--phantaso-primary);transition:color .15s}
.phantaso-card:hover .phantaso-card__title a{color:var(--phantaso-accent)}
.phantaso-card__excerpt{margin:.5rem 0 0;font-size:.875rem;line-height:1.6;color:var(--p-text-muted)}
.phantaso-card__meta{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;margin-top:.875rem;padding-top:.875rem;border-top:1px solid var(--p-border);font-size:.75rem;font-weight:600;color:#94a3b8}
.phantaso-card__views{color:var(--phantaso-accent);opacity:.85}

.phantaso-card--lead{grid-column:1/-1}
@media(min-width:768px){.phantaso-card--lead{grid-column:span 2;grid-row:span 2;display:grid;grid-template-columns:1.15fr 1fr;min-height:320px}}
.phantaso-card--lead .phantaso-card__thumb{aspect-ratio:16/9}
@media(min-width:768px){.phantaso-card--lead .phantaso-card__thumb{aspect-ratio:auto;min-height:100%;height:100%;grid-row:1/-1}}
.phantaso-card--lead .phantaso-card__title{font-size:clamp(1.25rem,2.5vw,1.625rem);font-weight:800}

/* Category strips */
.phantaso-home-categories--premium{margin-top:2rem;padding-top:2.5rem;border-top:1px solid var(--p-border)}
.phantaso-home-categories--premium .phantaso-home-cat-strip{margin-bottom:3rem;padding-bottom:3rem;border-bottom:1px solid var(--p-border)}
.phantaso-home-cat-strip__header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:1.5rem}
.phantaso-home-cat-strip__title-wrap{display:flex;align-items:center;gap:.875rem}
.phantaso-home-cat-strip__index{font-size:.75rem;font-weight:800;color:var(--phantaso-accent);opacity:.7}
.phantaso-home-categories__title{font-size:clamp(1.125rem,2vw,1.375rem);font-weight:800;margin:0;padding:0;border:0}
.phantaso-home-cat-strip__more{display:inline-flex;align-items:center;gap:.35rem;font-size:.8125rem;font-weight:700;color:var(--phantaso-accent);padding:.45rem .875rem;border-radius:9999px;border:1px solid color-mix(in srgb,var(--phantaso-accent) 25%,transparent)}
.phantaso-home-cat-strip__more:hover{background:var(--phantaso-accent);color:#fff}
.phantaso-editorial-grid{display:grid;gap:1.125rem}
@media(min-width:640px){.phantaso-editorial-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.phantaso-editorial-grid{grid-template-columns:repeat(4,1fr)}}

.phantaso-hero-card{border-radius:var(--p-radius-xl);box-shadow:var(--p-shadow-lg);margin-bottom:1.25rem}
.phantaso-hero-card img{min-height:280px;object-fit:cover;width:100%}
.phantaso-hero-card__body h2{font-size:clamp(1.375rem,3vw,2rem);font-weight:800;letter-spacing:-.03em;line-height:1.15}
.phantaso-hero-card__meta{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#fbbf24;margin-bottom:.35rem}

.phantaso-headline--1 .pw-headline-hero{border-radius:var(--p-radius-xl);min-height:280px;box-shadow:var(--p-shadow-md)}
.phantaso-carousel__item{border:0;border-radius:var(--p-radius-lg);box-shadow:var(--p-shadow-sm)}
.phantaso-card-stack{display:grid;gap:1rem;margin-top:1rem}
@media(min-width:640px){.phantaso-card-stack{grid-template-columns:repeat(2,1fr)}}

/* ===== premium-global.css ===== */
/**
 * PHANTASO — Premium global (single, archive, footer, components)
 */

/* ── Single article ── */
.phantaso-single--02,
.phantaso-single--premium {
	max-width: 48rem;
	margin-inline: auto;
	padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem) 4rem;
}

.phantaso-single--premium .phantaso-article {
	background: var(--p-surface, #fff);
	border: 1px solid var(--p-border, rgba(15, 23, 42, 0.08));
	border-radius: var(--p-radius-xl, 1.25rem);
	box-shadow: var(--p-shadow-md, 0 8px 24px rgba(15, 23, 42, 0.08));
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.phantaso-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 120;
	background: transparent;
	pointer-events: none;
}

.phantaso-reading-progress__bar {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--phantaso-accent), color-mix(in srgb, var(--phantaso-accent) 70%, #fff));
	transition: width 0.08s linear;
}

.phantaso-article__header {
	text-align: center;
	margin-bottom: 2rem;
}

.phantaso-article__header .phantaso-breadcrumb {
	justify-content: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--p-text-muted, #64748b);
	margin-bottom: 1.25rem;
}

.phantaso-breadcrumb a {
	color: var(--p-text-muted, #64748b);
	text-decoration: none;
}

.phantaso-breadcrumb a:hover {
	color: var(--phantaso-accent);
}

.phantaso-breadcrumb-sep {
	color: #cbd5e1;
	margin-inline: 0.35rem;
}

.phantaso-article__cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
	margin-bottom: 1rem;
}

.phantaso-article__cats a {
	font-size: 0.6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--phantaso-accent) 12%, #fff);
	color: var(--phantaso-accent);
	text-decoration: none;
}

.phantaso-article__title {
	font-size: clamp(1.75rem, 4.5vw, 2.625rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.12;
	margin: 0 0 1rem;
	color: var(--phantaso-primary);
}

.phantaso-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--p-text-muted, #64748b);
}

.phantaso-article__meta-divider {
	opacity: 0.4;
}

.phantaso-article__author a {
	color: var(--phantaso-accent);
	text-decoration: none;
	font-weight: 700;
}

.phantaso-article__author a:hover {
	text-decoration: underline;
}

.phantaso-article__featured {
	margin: 0 0 2rem;
	border-radius: var(--p-radius-xl, 1.25rem);
	overflow: hidden;
	box-shadow: var(--p-shadow-lg);
}

.phantaso-article__featured img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.phantaso-article__content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #334155;
}

.phantaso-article__content > *:first-child {
	margin-top: 0;
}

.phantaso-article__content h2,
.phantaso-article__content h3 {
	font-weight: 800;
	letter-spacing: -0.025em;
	margin-top: 2rem;
	color: var(--phantaso-primary);
}

.phantaso-article__content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--phantaso-accent);
	background: var(--p-surface-muted, #f8fafc);
	border-radius: 0 var(--p-radius-md, 0.75rem) var(--p-radius-md, 0.75rem) 0;
	font-style: italic;
	color: #475569;
}

.phantaso-article__footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--p-border, rgba(15, 23, 42, 0.08));
}

.phantaso-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.phantaso-tags a {
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.4rem 0.875rem;
	border-radius: 999px;
	background: var(--p-surface-muted, #f8fafc);
	border: 1px solid var(--p-border);
	color: var(--phantaso-primary);
	text-decoration: none;
	transition: all 0.15s;
}

.phantaso-tags a:hover {
	background: var(--phantaso-accent);
	border-color: var(--phantaso-accent);
	color: #fff;
}

/* Share */
.phantaso-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 1.5rem 0;
	padding: 0.875rem 1rem;
	background: var(--p-surface-muted, #f8fafc);
	border-radius: var(--p-radius-lg, 1rem);
	border: 1px solid var(--p-border);
}

.phantaso-share__label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--p-text-muted);
	margin-right: 0.5rem;
}

.phantaso-share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.75rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--p-border);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--phantaso-primary);
	text-decoration: none;
	transition: all 0.15s;
}

.phantaso-share a:hover {
	background: var(--phantaso-accent);
	border-color: var(--phantaso-accent);
	color: #fff;
}

/* Related */
.phantaso-related {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--p-border);
}

.phantaso-related__title {
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 1.25rem;
}

.phantaso-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.phantaso-related__item {
	background: var(--p-surface, #fff);
	border: 1px solid var(--p-border);
	border-radius: var(--p-radius-lg, 1rem);
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
}

.phantaso-related__item:hover {
	box-shadow: var(--p-shadow-md);
	transform: translateY(-2px);
}

.phantaso-related__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e2e8f0;
}

.phantaso-related__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.phantaso-related__body {
	padding: 0.875rem;
}

.phantaso-related__body a {
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--phantaso-primary);
	text-decoration: none;
}

.phantaso-related__body a:hover {
	color: var(--phantaso-accent);
}

/* Author box (blog module) */
.phantaso-author-box {
	display: flex;
	gap: 1.25rem;
	margin-top: 2.5rem;
	padding: 1.5rem;
	background: var(--p-surface-muted, #f8fafc);
	border-radius: var(--p-radius-xl, 1.25rem);
	border: 1px solid var(--p-border);
}

.phantaso-author-box img {
	border-radius: 50%;
	flex-shrink: 0;
}

.phantaso-author-box h4 {
	font-size: 1rem;
	font-weight: 800;
	margin: 0 0 0.35rem;
}

.phantaso-author-box p {
	font-size: 0.875rem;
	color: var(--p-text-muted);
	line-height: 1.55;
	margin: 0;
}

/* ── Archive / category ── */
.phantaso-archive--02 {
	padding-bottom: 4rem;
}

.phantaso-archive-hero {
	position: relative;
	padding: clamp(2rem, 5vw, 3.5rem) 0;
	background: linear-gradient(180deg, var(--p-surface-muted, #f8fafc) 0%, var(--phantaso-bg, #fff) 100%);
	border-bottom: 1px solid var(--p-border);
	margin-bottom: 2rem;
	overflow: hidden;
}

.phantaso-archive-hero--cover {
	padding: 0;
	min-height: clamp(220px, 38vw, 360px);
	display: flex;
	align-items: flex-end;
	color: #fff;
	border-bottom: none;
	margin-bottom: 2.5rem;
}

.phantaso-archive-hero__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.phantaso-archive-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.phantaso-archive-hero--cover .phantaso-archive-hero__inner {
	position: relative;
	z-index: 1;
	padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 1.75rem);
}

.phantaso-archive-hero__crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 1rem;
	opacity: 0.85;
}

.phantaso-archive-hero__crumb a {
	color: inherit;
	text-decoration: none;
}

.phantaso-archive-hero__crumb a:hover {
	color: var(--phantaso-accent);
}

.phantaso-archive-hero--cover .phantaso-archive-hero__crumb a:hover {
	color: #fff;
}

.phantaso-archive-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-top: 1rem;
}

.phantaso-archive-hero__subs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.phantaso-archive-hero__sub {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
	background: color-mix(in srgb, var(--phantaso-accent) 12%, #fff);
	color: var(--phantaso-accent);
	border: 1px solid color-mix(in srgb, var(--phantaso-accent) 20%, transparent);
}

.phantaso-archive-hero--cover .phantaso-archive-hero__sub {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.18);
}

.phantaso-archive-hero__sub span {
	opacity: 0.75;
	font-weight: 600;
}

.phantaso-archive-hero--cover .phantaso-archive-hero__label,
.phantaso-archive-hero--cover .phantaso-archive-hero__title,
.phantaso-archive-hero--cover .phantaso-archive-hero__desc,
.phantaso-archive-hero--cover .phantaso-archive-hero__count {
	color: #fff;
}

.phantaso-archive-hero--cover .phantaso-archive-hero__label {
	color: color-mix(in srgb, var(--phantaso-accent) 70%, #fff);
}

.phantaso-archive-hero__inner {
	max-width: 76rem;
	margin-inline: auto;
	padding-inline: clamp(1rem, 3vw, 1.75rem);
}

.phantaso-archive-hero__label {
	font-size: 0.6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--phantaso-accent);
	margin-bottom: 0.5rem;
	display: block;
}

.phantaso-archive-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	margin: 0 0 0.75rem;
}

.phantaso-archive-hero__desc {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--p-text-muted);
	max-width: 42rem;
	margin: 0;
}

.phantaso-archive-hero__count {
	display: inline-block;
	margin-top: 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--p-text-muted);
}

.phantaso-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.phantaso-archive__grid .phantaso-card:not(.phantaso-card--lead) {
	content-visibility: auto;
	contain-intrinsic-size: 320px;
}

@media (min-width: 768px) {
	.phantaso-archive--02 .phantaso-archive__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.phantaso-archive--02 .phantaso-card--lead {
		grid-column: 1 / -1;
	}
}

.phantaso-list-archive--premium .phantaso-list-item {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 1.25rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--p-border);
	align-items: start;
}

.phantaso-list-archive--premium .phantaso-list-item__thumb {
	display: block;
	border-radius: var(--p-radius-lg, 1rem);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.phantaso-list-archive--premium .phantaso-list-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.phantaso-list-archive--premium .phantaso-list-item__title {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.5rem;
	letter-spacing: -0.02em;
}

.phantaso-list-archive--premium .phantaso-list-item__title a {
	color: var(--phantaso-primary);
	text-decoration: none;
}

.phantaso-list-archive--premium .phantaso-list-item__title a:hover {
	color: var(--phantaso-accent);
}

.phantaso-list-archive--premium .phantaso-list-item__excerpt {
	font-size: 0.875rem;
	color: var(--p-text-muted);
	line-height: 1.55;
	margin: 0 0 0.5rem;
}

.phantaso-list-archive--premium .phantaso-list-item__meta {
	font-size: 0.75rem;
	font-weight: 600;
	color: #94a3b8;
}

/* Pagination */
.phantaso-pagination,
.navigation.pagination {
	margin-top: 2.5rem;
}

.phantaso-pagination .nav-links,
.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
}

.phantaso-pagination a,
.phantaso-pagination span,
.navigation.pagination a,
.navigation.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	border: 1px solid var(--p-border);
	background: #fff;
	color: var(--phantaso-primary);
	text-decoration: none;
	transition: all 0.15s;
}

.phantaso-pagination a:hover,
.navigation.pagination a:hover {
	background: var(--phantaso-accent);
	border-color: var(--phantaso-accent);
	color: #fff;
}

.phantaso-pagination .current,
.navigation.pagination .current {
	background: var(--phantaso-primary);
	border-color: var(--phantaso-primary);
	color: #fff;
}

/* Search page */
.phantaso-search-hero {
	background: linear-gradient(180deg, #fff 0%, var(--p-bg, #eef1f4) 100%);
	border-bottom: 1px solid var(--p-border);
}

.phantaso-search-hero__form {
	margin-top: 1.25rem;
	max-width: 36rem;
}

.phantaso-search-form {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
}

.phantaso-search-form--hero {
	background: #fff;
	border: 1px solid var(--p-border);
	border-radius: 999px;
	padding: 0.35rem;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.phantaso-search-form__input {
	flex: 1 1 auto;
	min-height: 44px;
	border: none;
	background: transparent;
	padding: 0 1rem;
	font: inherit;
	font-size: 0.9375rem;
	color: var(--phantaso-primary);
}

.phantaso-search-form__input:focus {
	outline: none;
}

.phantaso-search-form__btn {
	flex-shrink: 0;
	border: none;
	border-radius: 999px;
	background: var(--phantaso-accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.875rem;
	padding: 0 1.25rem;
	cursor: pointer;
	transition: filter 0.15s;
}

.phantaso-search-form__btn:hover {
	filter: brightness(1.08);
}

.phantaso-search-hero__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1rem;
}

.phantaso-search-hero__tags-label {
	font-size: 0.6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--p-text-muted);
	margin-right: 0.25rem;
}

.phantaso-search-hero__tag {
	display: inline-block;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--p-border);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--phantaso-primary);
	text-decoration: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.phantaso-search-hero__tag:hover {
	background: var(--phantaso-accent);
	border-color: var(--phantaso-accent);
	color: #fff;
}

.phantaso-search {
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

.phantaso-no-results--premium {
	text-align: center;
	padding: 3rem 1.5rem;
	background: #fff;
	border: 1px solid var(--p-border);
	border-radius: var(--p-radius-lg, 1rem);
	margin: 0 0 2rem;
}

.phantaso-no-results__icon {
	width: 3rem;
	height: 3rem;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--phantaso-accent) 12%, #fff);
	color: var(--phantaso-accent);
	font-size: 1.25rem;
	font-weight: 800;
}

.phantaso-no-results--premium h2 {
	font-size: 1.25rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
	letter-spacing: -0.02em;
}

.phantaso-no-results--premium p {
	margin: 0 0 1.25rem;
	color: var(--p-text-muted);
	font-size: 0.9375rem;
}

.phantaso-no-results--premium .phantaso-search-form {
	max-width: 28rem;
	margin: 0 auto;
}

/* 404 error page */
.phantaso-error-hero {
	background: linear-gradient(180deg, #fff 0%, var(--p-bg, #eef1f4) 100%);
	border-bottom: 1px solid var(--p-border);
}

.phantaso-error-hero__code {
	display: block;
	font-size: clamp(3rem, 10vw, 5rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.04em;
	color: color-mix(in srgb, var(--phantaso-accent) 35%, var(--phantaso-primary));
	margin-bottom: 0.25rem;
}

.phantaso-error-hero__actions {
	margin-top: 1rem;
}

.phantaso-error-hero__btn {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1.25rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	transition: filter 0.15s;
}

.phantaso-error-hero__btn--primary {
	background: var(--phantaso-accent);
	color: #fff;
}

.phantaso-error-hero__btn--primary:hover {
	filter: brightness(1.08);
	color: #fff;
}

.phantaso-error {
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

.phantaso-error__suggest-title {
	font-size: 1.125rem;
	font-weight: 800;
	margin: 0 0 1.25rem;
	letter-spacing: -0.02em;
}

/* Author archive */
.phantaso-author-hero {
	background: linear-gradient(180deg, #fff 0%, var(--p-bg, #eef1f4) 100%);
	border-bottom: 1px solid var(--p-border);
}

.phantaso-author-hero__profile {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	align-items: flex-start;
	margin-top: 0.5rem;
}

.phantaso-author-hero__avatar {
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

.phantaso-author-hero__body {
	flex: 1 1 240px;
}

.phantaso-author-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: 0.75rem;
}

.phantaso-author-hero__social {
	display: flex;
	gap: 0.65rem;
}

.phantaso-author-hero__social a {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--phantaso-accent);
	text-decoration: none;
}

.phantaso-author {
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

/* Cookie banner */
.phantaso-cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #0f172a;
	color: #fff;
	padding: 1rem;
	z-index: 9999;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: center;
	font-size: 0.8125rem;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

.phantaso-cookie-banner__btn {
	background: var(--phantaso-accent, #3b82f6);
	color: #fff;
	border: none;
	padding: 0.4rem 1rem;
	border-radius: 0.375rem;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.8125rem;
}

.phantaso-cookie-banner__btn:hover {
	filter: brightness(1.08);
}

html.phantaso-dark .phantaso-cookie-banner {
	background: #0a0f18;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Footer premium ── */
.phantaso-footer--02 {
	background: var(--phantaso-primary);
	color: rgba(255, 255, 255, 0.85);
	margin-top: 0;
}

.phantaso-footer--02 .phantaso-footer__top {
	padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phantaso-footer--02 .phantaso-footer__top-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(2, 1fr);
	gap: 2rem;
}

@media (max-width: 768px) {
	.phantaso-footer--02 .phantaso-footer__top-grid {
		grid-template-columns: 1fr;
	}
}

.phantaso-footer--02 .phantaso-footer__brand-name {
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #fff;
	margin: 0 0 0.75rem;
}

.phantaso-footer--02 .phantaso-footer__brand-desc {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
	max-width: 28rem;
}

.phantaso-footer--02 .phantaso-footer__col-title {
	font-size: 0.6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 1rem;
}

.phantaso-footer--02 .phantaso-footer-nav,
.phantaso-footer--02 .phantaso-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.phantaso-footer--02 .phantaso-footer-nav a,
.phantaso-footer--02 .phantaso-footer__links a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 500;
	transition: color 0.15s;
}

.phantaso-footer--02 .phantaso-footer-nav a:hover,
.phantaso-footer--02 .phantaso-footer__links a:hover {
	color: #fff;
}

.phantaso-footer--02 .phantaso-footer__widgets {
	padding: 2rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phantaso-footer--02 .phantaso-footer__bottom {
	padding: 1.25rem 0;
	background: rgba(0, 0, 0, 0.2);
}

.phantaso-footer--02 .phantaso-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.55);
}

.phantaso-footer--02 .phantaso-footer__copy {
	margin: 0;
}

.phantaso-footer--02 .phantaso-footer-widget-title {
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

/* Comments */
.phantaso-comments {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--p-border);
}

.phantaso-comments .comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.phantaso-comments .comment-body {
	padding: 1rem 0;
	border-bottom: 1px solid var(--p-border);
}

.phantaso-comments .comment-respond {
	margin-top: 2rem;
	padding: 1.25rem;
	background: var(--p-surface-muted, #f8fafc);
	border-radius: var(--p-radius-lg, 1rem);
	border: 1px solid var(--p-border);
}

.phantaso-comments .comment-respond textarea,
.phantaso-comments .comment-respond input[type="text"],
.phantaso-comments .comment-respond input[type="email"],
.phantaso-comments .comment-respond input[type="url"] {
	width: 100%;
	padding: 0.65rem 0.875rem;
	border: 1px solid var(--p-border);
	border-radius: var(--p-radius-md, 0.75rem);
	font: inherit;
	background: #fff;
}

.phantaso-comments .comment-respond input[type="submit"],
.phantaso-comments .form-submit input[type="submit"] {
	background: var(--phantaso-accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.55rem 1.25rem;
	font-weight: 700;
	cursor: pointer;
}

/* Reading time */
.phantaso-reading-time {
	font-weight: 600;
}

/* ===== premium-type.css ===== */
/**
 * PHANTASO — Premium typography & base reset (loads after main.css)
 */

:root {
	--pm-font-heading: var(--phantaso-font-heading, 'Plus Jakarta Sans'), system-ui, sans-serif;
	--pm-font-body: var(--phantaso-font-body, 'Source Sans 3'), system-ui, sans-serif;
	--pm-text: #141414;
	--pm-text-soft: #5c6570;
	--pm-accent: var(--phantaso-accent, #1b7f5a);
	--pm-bg: var(--phantaso-bg, #eef1f4);
	--pm-surface: #ffffff;
	--pm-radius: 12px;
	--pm-radius-sm: 8px;
	--pm-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
	--pm-shadow-hover: 0 12px 32px rgba(16, 24, 40, 0.1);
}

body.phantaso-body {
	font-family: 'Source Sans 3', var(--phantaso-font-body), system-ui, sans-serif !important;
	font-size: var(--phantaso-font-size, 15px);
	line-height: var(--phantaso-line-height, 1.65);
	color: var(--pm-text);
	background: var(--pm-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.phantaso-widget-title,
.pm-block__title {
	font-family: 'Plus Jakarta Sans', var(--phantaso-font-heading), system-ui, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.phantaso-widget-title,
.pm-block__title {
	font-weight: var(--phantaso-heading-weight, 800);
	color: var(--pm-text);
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.phantaso-site-title {
	font-family: var(--pm-font-heading) !important;
	font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.04em !important;
	color: var(--pm-text) !important;
	text-decoration: none;
}

.phantaso-container {
	max-width: 76rem;
	padding-inline: clamp(1rem, 3vw, 1.5rem);
}

/* Header premium polish */
.phantaso-header--02.phantaso-header--premium {
	background: var(--pm-surface);
	box-shadow: 0 1px 0 rgba(16, 24, 40, 0.06), 0 8px 32px rgba(16, 24, 40, 0.04);
}

.phantaso-header--02 .phantaso-header__row--brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0 0.75rem;
}

.phantaso-header--02 .phantaso-header__row--nav {
	padding: 0.35rem 0 0.75rem;
	border-top: 1px solid rgba(16, 24, 40, 0.06);
}

/* Non-mega fallback nav */
.phantaso-header--02 .phantaso-nav__list--premium:not(.phantaso-nav__list--mega) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.phantaso-header--02 .phantaso-nav__list--premium:not(.phantaso-nav__list--mega) > li > a {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pm-text);
	text-decoration: none;
	padding: 0.35rem 0;
}

.phantaso-header--02 .phantaso-nav__list--premium:not(.phantaso-nav__list--mega) > li > a:hover,
.phantaso-header--02 .phantaso-nav__list--premium:not(.phantaso-nav__list--mega) > li.current-menu-item > a {
	color: var(--pm-accent);
}

body.phantaso-sticky-header .phantaso-header--02.phantaso-header--premium {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, 0.92);
}

body.phantaso-body .phantaso-footer--02 {
	background: linear-gradient(180deg, #111827 0%, #0a0f18 100%) !important;
	color: rgba(255, 255, 255, 0.82) !important;
	margin-top: 0 !important;
}

a {
	transition: color 0.15s ease;
}

.phantaso-magazine img,
.pm-block img {
	border-radius: var(--pm-radius-sm);
}

/* ===== premium-dark.css ===== */
/**
 * PHANTASO — Premium dark mode (html.phantaso-dark)
 */

html.phantaso-dark {
	color-scheme: dark;
	--pm-text: #e8eaed;
	--pm-text-soft: #9aa3ad;
	--pm-bg: #0c1017;
	--pm-surface: #151b26;
	--pm-border: rgba(255, 255, 255, 0.08);
	--p-surface: #151b26;
	--p-surface-muted: #111827;
	--p-border: rgba(255, 255, 255, 0.08);
	--p-text-muted: #94a3b8;
}

html.phantaso-dark body.phantaso-body {
	background: var(--pm-bg) !important;
	color: var(--pm-text) !important;
}

html.phantaso-dark .phantaso-header--02.phantaso-header--premium,
html.phantaso-dark .phantaso-header--02 .phantaso-header__main {
	background: rgba(21, 27, 38, 0.96) !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.phantaso-dark .phantaso-header--02 .phantaso-header__topbar {
	background: #0a0f18;
}

html.phantaso-dark .phantaso-site-title,
html.phantaso-dark h1,
html.phantaso-dark h2,
html.phantaso-dark h3,
html.phantaso-dark h4,
html.phantaso-dark .pm-block__title {
	color: #f1f5f9 !important;
}

html.phantaso-dark .phantaso-header__search {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.1);
	color: #cbd5e1;
}

html.phantaso-dark .phantaso-header__social a {
	background: #1e293b;
	color: #94a3b8;
}

html.phantaso-dark .phantaso-magazine {
	background: var(--pm-bg);
}

html.phantaso-dark .pm-block,
html.phantaso-dark .pm-trending,
html.phantaso-dark .phantaso-card,
html.phantaso-dark .pm-card-grid__item {
	background: var(--pm-surface);
	border-color: var(--pm-border);
}

html.phantaso-dark .pm-tabbed__nav {
	background: #1e293b;
}

html.phantaso-dark .pm-tabbed__tab.is-active {
	background: var(--pm-surface);
	color: #f1f5f9;
}

html.phantaso-dark .pm-trending__chip {
	background: #1e293b;
	color: #cbd5e1;
}

html.phantaso-dark .pm-breaking {
	background: #0a0f18;
	border-bottom-color: var(--phantaso-accent);
}

html.phantaso-dark .phantaso-single--premium .phantaso-article {
	background: var(--pm-surface);
	border-color: var(--pm-border);
}

html.phantaso-dark .phantaso-article__content {
	color: #cbd5e1;
}

html.phantaso-dark .phantaso-archive-hero {
	background: linear-gradient(180deg, #111827 0%, var(--pm-bg) 100%);
	border-bottom-color: var(--pm-border);
}

html.phantaso-dark .phantaso-archive-hero--cover .phantaso-archive-hero__overlay {
	background: linear-gradient(180deg, rgba(12, 16, 23, 0.55) 0%, rgba(12, 16, 23, 0.92) 100%);
}

html.phantaso-dark .phantaso-share,
html.phantaso-dark .phantaso-author-box,
html.phantaso-dark .phantaso-comments .comment-respond {
	background: #111827;
	border-color: var(--pm-border);
}

html.phantaso-dark .phantaso-share a,
html.phantaso-dark .phantaso-tags a,
html.phantaso-dark .phantaso-related__item {
	background: #1e293b;
	border-color: var(--pm-border);
	color: #e2e8f0;
}

html.phantaso-dark .phantaso-footer--02 {
	background: linear-gradient(180deg, #0a0f18 0%, #050810 100%) !important;
}

html.phantaso-dark .phantaso-mobile-drawer__panel {
	background: #151b26;
	color: #e2e8f0;
}

html.phantaso-dark .phantaso-mobile-drawer__list a {
	color: #e2e8f0;
}

html.phantaso-dark .phantaso-mobile-drawer__list a:hover,
html.phantaso-dark .phantaso-mobile-drawer__list .current-menu-item > a {
	background: rgba(255, 255, 255, 0.06);
	color: var(--phantaso-accent);
}

html.phantaso-dark .phantaso-mobile-toggle span {
	background: #e2e8f0;
}

html.phantaso-dark .phantaso-mega-panel {
	background: #151b26;
	border-top-color: var(--phantaso-accent);
}

html.phantaso-dark .phantaso-pagination a,
html.phantaso-dark .navigation.pagination a {
	background: #1e293b;
	border-color: var(--pm-border);
	color: #e2e8f0;
}

html.phantaso-dark .phantaso-theme-toggle {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.12);
	color: #fbbf24;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

html.phantaso-dark #phantaso-cookie {
	background: #0a0f18 !important;
}

html.phantaso-dark .phantaso-card__title a,
html.phantaso-dark .pm-tabbed__list-item a,
html.phantaso-dark .pm-tabbed__feature-title a {
	color: #f1f5f9;
}

html.phantaso-dark .pm-meta,
html.phantaso-dark .phantaso-card__meta,
html.phantaso-dark .phantaso-card__excerpt {
	color: #94a3b8;
}

html.phantaso-dark .pm-market-indices__card {
	background: var(--pm-surface);
	border-color: var(--pm-border);
}

html.phantaso-dark .pm-market-indices__value {
	color: #f1f5f9;
}

html.phantaso-dark .pm-sidebar-market__list li {
	border-bottom-color: var(--pm-border);
}

html.phantaso-dark .pm-tech-spotlight__lead,
html.phantaso-dark .pm-tech-spotlight__item,
html.phantaso-dark .pm-tech-hscroll__link {
	background: var(--pm-surface);
	border-color: var(--pm-border);
}

html.phantaso-dark .pm-tech-spotlight__title a,
html.phantaso-dark .pm-tech-spotlight__item-body a,
html.phantaso-dark .pm-tech-hscroll__body h3 {
	color: #f1f5f9;
}

html.phantaso-dark .pm-sidebar-tags__chip {
	background: #1e293b;
	color: #e2e8f0;
}

html.phantaso-dark .pm-sidebar-tags__chip:hover {
	background: var(--phantaso-accent);
	color: #fff;
}

html.phantaso-dark .phantaso-search-hero {
	background: linear-gradient(180deg, #111827 0%, var(--pm-bg) 100%);
	border-bottom-color: var(--pm-border);
}

html.phantaso-dark .phantaso-search-form--hero,
html.phantaso-dark .phantaso-no-results--premium {
	background: var(--pm-surface);
	border-color: var(--pm-border);
}

html.phantaso-dark .phantaso-search-form__input {
	color: #f1f5f9;
}

html.phantaso-dark .phantaso-search-hero__tag {
	background: #1e293b;
	border-color: var(--pm-border);
	color: #e2e8f0;
}

html.phantaso-dark .phantaso-error-hero,
html.phantaso-dark .phantaso-author-hero {
	background: linear-gradient(180deg, #111827 0%, var(--pm-bg) 100%);
	border-bottom-color: var(--pm-border);
}

html.phantaso-dark .phantaso-author-hero__avatar {
	border-color: #1e293b;
}

html.phantaso-dark .pm-sidebar-author__list li {
	border-color: var(--pm-border);
}

html.phantaso-dark .pm-sidebar-author__list a {
	color: #f1f5f9;
}

/* ===== premium-mobile.css ===== */
/**
 * PHANTASO — Premium mobile drawer & header
 */

.phantaso-mobile-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.5rem;
	background: #f3f5f7;
	border: 1px solid rgba(16, 24, 40, 0.08);
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.phantaso-mobile-toggle:hover {
	background: #fff;
	border-color: rgba(16, 24, 40, 0.14);
}

.phantaso-mobile-toggle span {
	display: block;
	height: 2px;
	width: 1.125rem;
	background: var(--pm-text, #141414);
	border-radius: 999px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.phantaso-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.phantaso-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.phantaso-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
	.phantaso-header--02 .phantaso-mobile-toggle {
		display: none !important;
	}
}

.phantaso-mobile-drawer {
	overflow: hidden;
}

.phantaso-mobile-drawer__panel {
	width: min(22rem, 92vw);
	padding: 0;
	display: flex;
	flex-direction: column;
	box-shadow: -8px 0 40px rgba(16, 24, 40, 0.15);
	transform: translateX(100%);
	transition: transform 0.25s ease;
}

.phantaso-mobile-drawer.is-open .phantaso-mobile-drawer__panel {
	transform: translateX(0);
}

.phantaso-mobile-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.125rem 1.25rem;
	border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.phantaso-mobile-drawer__brand {
	font-family: 'Plus Jakarta Sans', var(--phantaso-font-heading), system-ui, sans-serif;
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--pm-text, #141414);
	text-decoration: none;
}

.phantaso-mobile-drawer__close {
	position: static;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f3f5f7;
	border: none;
	border-radius: 8px;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.phantaso-mobile-drawer__nav {
	flex: 1;
	overflow-y: auto;
	padding: 0.75rem 0.875rem 1.5rem;
}

.phantaso-mobile-drawer__list--premium {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.phantaso-mobile-drawer__list--premium > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.75rem 0.875rem;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--pm-text, #141414);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.phantaso-mobile-drawer__list--premium > li > a:hover,
.phantaso-mobile-drawer__list--premium > .current-menu-item > a {
	background: color-mix(in srgb, var(--phantaso-accent) 10%, transparent);
	color: var(--phantaso-accent);
}

.phantaso-mobile-drawer__list--premium .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0 0.5rem 0.875rem;
	display: none;
}

.phantaso-mobile-drawer__list--premium .menu-item-has-children.is-open > .sub-menu {
	display: block;
}

.phantaso-mobile-drawer__list--premium .sub-menu a {
	display: block;
	padding: 0.5rem 0.875rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--pm-text-soft, #5c6570);
	text-decoration: none;
	border-radius: 8px;
}

.phantaso-mobile-drawer__list--premium .sub-menu a:hover {
	color: var(--phantaso-accent);
	background: rgba(16, 24, 40, 0.04);
}

.phantaso-mobile-drawer__caret {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	background: rgba(16, 24, 40, 0.05);
	font-size: 0.625rem;
	transition: transform 0.2s ease;
}

.phantaso-mobile-drawer__list--premium .menu-item-has-children.is-open > a .phantaso-mobile-drawer__caret {
	transform: rotate(180deg);
}

body.phantaso-drawer-open {
	overflow: hidden;
}

/* Theme toggle */
.phantaso-theme-toggle {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 90;
	width: 2.75rem;
	height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid rgba(16, 24, 40, 0.1);
	background: #fff;
	color: #64748b;
	cursor: pointer;
	font-size: 1.125rem;
	box-shadow: 0 4px 20px rgba(16, 24, 40, 0.12);
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.phantaso-theme-toggle:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(16, 24, 40, 0.16);
}

.phantaso-theme-toggle__icon--sun {
	display: none;
}

html.phantaso-dark .phantaso-theme-toggle__icon--moon {
	display: none;
}

html.phantaso-dark .phantaso-theme-toggle__icon--sun {
	display: inline;
}

/* Back to top */
.phantaso-back-top {
	position: fixed;
	right: 1.25rem;
	bottom: 4.75rem;
	z-index: 88;
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(16, 24, 40, 0.1);
	border-radius: 999px;
	background: #fff;
	color: var(--phantaso-accent);
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(16, 24, 40, 0.12);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s;
}

.phantaso-back-top.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.phantaso-back-top:hover {
	background: var(--phantaso-accent);
	color: #fff;
}

html.phantaso-dark .phantaso-back-top {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.1);
	color: #fff;
}
