/* Trust Press 1.0.0 — CoursesHome Brand Stylesheet (Editorial Step-by-Step Tech Academy) */
@font-face {
	font-family: "Dahab Arabic";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/DahabArabic-Regular.woff2") format("woff2");
}
@font-face {
	font-family: "Dahab Arabic";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("../fonts/DahabArabic-Bold.woff2") format("woff2");
}

:root {
	--tp-bg: #F8FAFC;
	--tp-card: #FFFFFF;
	--tp-surface-2: #F1F5F9;
	--tp-ink: #0F172A;
	--tp-ink-2: #1E293B;
	--tp-muted: #475569;
	--tp-line: #E2E8F0;
	--tp-line-strong: #CBD5E1;
	--tp-accent: #EA580C;
	--tp-accent-aa: #C2410C;
	--tp-accent-hover: #9A3412;
	--tp-accent-soft: #FFF7ED;
	--tp-accent-border: #FDBA74;
	--tp-link: #0369A1;
	--tp-radius: 10px;
	--tp-radius-lg: 14px;
	--tp-wrap: 1220px;
	--tp-font: "Dahab Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--tp-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.03);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; max-width: 100%; overflow-x: clip; }
body {
	margin: 0;
	max-width: 100%;
	background: var(--tp-bg);
	color: var(--tp-ink);
	font-family: var(--tp-font);
	font-size: 17px;
	line-height: 1.8;
	direction: rtl;
	text-align: right;
	overflow-x: clip;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
body.side-aside-open { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--tp-accent-aa); outline-offset: 2px; border-radius: 4px; }

.tp-sr, .screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tp-skip {
	position: fixed; inset-inline-start: 16px; top: -80px; z-index: 200;
	padding: 10px 18px; background: var(--tp-accent-aa); color: #fff;
	font-weight: 700; border-radius: 8px; box-shadow: 0 8px 20px rgba(15,23,42,.2);
}
.tp-skip:focus { top: 14px; color: #fff; }
.tp-icon { flex: none; vertical-align: middle; }
.tp-wrap { width: min(100% - 20px, var(--tp-wrap)); margin-inline: auto; }
@media (max-width: 350px) { .tp-wrap { width: min(100% - 16px, var(--tp-wrap)); } }
@media (min-width: 640px) { .tp-wrap { width: min(100% - 32px, var(--tp-wrap)); } }
.tp-main { flex: 1; min-width: 0; max-width: 100%; padding-block: 24px 48px; }
.tp-primary-col, .ch-stage > *, .ch-doc-card__body, .ch-step__info, .tp-side-list__body { min-width: 0; }

/* ===== Header (Sharp Architectural Top Rule) ===== */
.tp-header {
	position: sticky; top: 0; z-index: 90;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(8px);
	border-top: 3px solid var(--tp-accent);
	border-bottom: 1px solid var(--tp-line);
}
.tp-header__in {
	display: flex; align-items: center; justify-content: space-between;
	gap: 10px; min-height: 62px;
}
.tp-header__start { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.tp-header__end { display: flex; align-items: center; gap: 8px; flex: none; }
.tp-logo { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.tp-logo__img { display: block; height: 34px; width: auto; max-width: min(190px, 56vw); object-fit: contain; }
.tp-logo__text { font-size: 20px; font-weight: 700; color: var(--tp-ink); white-space: nowrap; }

.tp-nav { flex: 1; min-width: 0; display: none; }
.tp-nav__list {
	display: flex; align-items: center; flex-wrap: nowrap; gap: 2px;
	margin: 0; padding: 0; list-style: none;
}
.tp-nav__list > li { position: relative; }
.tp-nav__list > li > a {
	display: inline-flex; align-items: center; padding: 8px 11px;
	font-size: 14.5px; font-weight: 700; color: var(--tp-ink-2);
	border-radius: 7px; transition: background .15s, color .15s; white-space: nowrap;
}
.tp-nav__list > li > a:hover,
.tp-nav__list > li.current-menu-item > a,
.tp-nav__list > li.current-category-ancestor > a {
	background: var(--tp-accent-soft); color: var(--tp-accent-aa);
}
.tp-nav__list ul.sub-menu {
	display: none; position: absolute; inset-inline-start: 0; top: 100%; min-width: 210px;
	margin: 0; padding: 6px; list-style: none; background: var(--tp-card);
	border: 1px solid var(--tp-line); border-radius: 8px; box-shadow: 0 12px 28px rgba(15,23,42,.12); z-index: 95;
}
.tp-nav__list > li:hover > ul.sub-menu,
.tp-nav__list > li:focus-within > ul.sub-menu { display: block; }
.tp-nav__list ul.sub-menu a {
	display: block; padding: 8px 12px; font-size: 14.5px; font-weight: 500;
	border-radius: 6px; color: var(--tp-ink);
}
.tp-nav__list ul.sub-menu a:hover { background: var(--tp-surface-2); color: var(--tp-accent-aa); }

.tp-icon-btn {
	appearance: none; display: inline-grid; place-items: center;
	width: 42px; height: 42px; padding: 0; border: 1px solid var(--tp-line);
	border-radius: 8px; background: var(--tp-card); color: var(--tp-ink);
	cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.tp-icon-btn:hover { border-color: var(--tp-accent); color: var(--tp-accent-aa); background: var(--tp-accent-soft); }

.tp-hsearch { background: var(--tp-surface-2); border-top: 1px solid var(--tp-line); padding-block: 12px; }
.tp-hsearch__form { display: flex; gap: 8px; max-width: 680px; margin-inline: auto; }
.tp-hsearch__input {
	flex: 1; min-width: 0; height: 44px; padding: 0 14px;
	border: 1px solid var(--tp-line-strong); border-radius: 8px; background: #fff;
}
.tp-hsearch__submit {
	height: 44px; padding: 0 20px; border: 0; border-radius: 8px;
	background: var(--tp-accent-aa); color: #fff; font-weight: 700; cursor: pointer;
}
.tp-hsearch__submit:hover { background: var(--tp-accent-hover); }

@media (min-width: 1024px) {
	.tp-header__in { gap: 20px; min-height: 68px; }
	.tp-header__start { flex: none; }
	.tp-nav { display: block; }
	.tp-menu-btn { display: none; }
	.tp-logo__img { height: 42px; max-width: 240px; }
}

/* ===== Mobile Drawer ===== */
.tp-scrim { position: fixed; inset: 0; z-index: 120; background: rgba(15, 23, 42, 0.52); }
.tp-drawer {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 130;
	width: min(320px, 88vw); background: var(--tp-card); border-inline-end: 1px solid var(--tp-line);
	display: flex; flex-direction: column; overflow-y: auto; padding: 16px;
	box-shadow: -8px 0 30px rgba(15, 23, 42, 0.18);
}
.tp-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding-bottom: 14px; border-bottom: 1px solid var(--tp-line);
}
.tp-drawer__brand { font-size: 19px; font-weight: 700; color: var(--tp-ink); }
.tp-drawer__search { display: flex; gap: 6px; margin-block: 14px; }
.tp-drawer__input {
	flex: 1; min-width: 0; height: 42px; padding: 0 12px;
	border: 1px solid var(--tp-line-strong); border-radius: 8px; background: var(--tp-bg);
}
.tp-drawer__sbtn {
	width: 42px; height: 42px; border: 0; border-radius: 8px;
	background: var(--tp-accent-aa); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.tp-drawer__list, .tp-drawer__trust { list-style: none; margin: 0; padding: 0; }
.tp-drawer__list ul { list-style: none; margin: 0; padding: 0 14px 0 0; }
.tp-drawer__list a {
	display: block; padding: 10px 8px; font-weight: 700; font-size: 15.5px;
	color: var(--tp-ink); border-bottom: 1px solid var(--tp-surface-2);
}
.tp-drawer__list a:hover { color: var(--tp-accent-aa); }
.tp-drawer__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--tp-line); }
.tp-drawer__trust { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; color: var(--tp-muted); }
.tp-drawer__trust a:hover { color: var(--tp-accent-aa); text-decoration: underline; }

/* ===== Shared Section Headers ===== */
.tp-sec-head {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
	gap: 10px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--tp-line);
}
.tp-sec-title {
	margin: 0; font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--tp-ink);
	position: relative;
}
.tp-sec-title::after {
	content: ""; position: absolute; inset-inline-start: 0; bottom: -12px;
	width: 68px; height: 3px; background: var(--tp-accent); border-radius: 2px;
}
.tp-sec-title a:hover { color: var(--tp-accent-aa); }
.tp-sec-meta { font-size: 13.5px; color: var(--tp-muted); font-weight: 500; }
.tp-sec-more {
	display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px;
	font-weight: 700; color: var(--tp-accent-aa);
}
.tp-sec-more:hover { color: var(--tp-accent-hover); text-decoration: underline; }

/* ===== CoursesHome Homepage: Academy Hero ===== */
.tp-home--ch > section + section { margin-top: 40px; }
.ch-hero {
	position: relative; background: var(--tp-card); border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius-lg); overflow: hidden; box-shadow: var(--tp-shadow);
	background-image: radial-gradient(circle at 10% 15%, rgba(234, 88, 12, 0.06), transparent 42%);
}
.ch-hero__bar { height: 5px; background: linear-gradient(90deg, var(--tp-accent), var(--tp-accent-aa)); }
.ch-hero__inner { padding: 28px 20px 26px; max-width: 860px; margin-inline: auto; text-align: center; }
.ch-hero__kicker {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px;
	background: var(--tp-accent-soft); border: 1px solid var(--tp-accent-border);
	color: var(--tp-accent-aa); font-size: 13.5px; font-weight: 700; border-radius: 6px;
}
.ch-hero__title {
	margin: 12px 0 8px; font-size: clamp(23px, 3.4vw, 33px);
	font-weight: 700; line-height: 1.4; color: var(--tp-ink);
}
.ch-hero__sub { margin: 0 auto 20px; max-width: 640px; font-size: 16px; color: var(--tp-muted); line-height: 1.75; }
.ch-search {
	display: flex; align-items: center; gap: 8px; max-width: 680px; margin: 0 auto 18px;
	padding: 6px; background: var(--tp-bg); border: 1.5px solid var(--tp-line-strong);
	border-radius: var(--tp-radius); transition: border-color .15s, box-shadow .15s;
}
.ch-search:focus-within { border-color: var(--tp-accent); background: #fff; box-shadow: 0 0 0 3px rgba(234,88,12,.12); }
.ch-search__ico { padding-inline-start: 10px; color: var(--tp-muted); display: grid; place-items: center; }
.ch-search__input {
	flex: 1; min-width: 0; height: 42px; border: 0; background: transparent;
	padding: 0 8px; font-size: 15.5px; outline: none;
}
.ch-search__btn {
	flex: none; height: 42px; padding: 0 22px; border: 0; border-radius: 7px;
	background: var(--tp-accent-aa); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer;
}
.ch-search__btn:hover { background: var(--tp-accent-hover); }

.ch-chips__list {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
	margin: 0; padding: 0; list-style: none;
}
.ch-chip {
	display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px;
	background: #fff; border: 1px solid var(--tp-line-strong); border-radius: 7px;
	font-size: 14px; font-weight: 700; color: var(--tp-ink-2);
	transition: border-color .15s, color .15s, background .15s;
}
.ch-chip__dot { width: 6px; height: 6px; border-radius: 2px; background: var(--tp-accent); }
.ch-chip:hover { border-color: var(--tp-accent); background: var(--tp-accent-soft); color: var(--tp-accent-aa); }

/* ===== CoursesHome: Asymmetric Stage (Right 58% Lead + Left 42% Numbered 01..06 Step-List) ===== */
.ch-stage { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
@media (min-width: 980px) {
	.ch-stage { grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); }
}
.ch-lead {
	background: var(--tp-card); border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius-lg); overflow: hidden; box-shadow: var(--tp-shadow);
}
.ch-lead__media { display: block; overflow: hidden; background: var(--tp-surface-2); }
.ch-lead__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s; }
.ch-lead:hover .ch-lead__img { transform: scale(1.02); }
.ch-lead__body { padding: 20px 22px 22px; }
.ch-pill {
	display: inline-block; padding: 3px 11px; background: var(--tp-accent-aa);
	color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 5px; margin-bottom: 10px;
}
.ch-pill:hover { background: var(--tp-accent-hover); color: #fff; }
.ch-lead__title { margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.45; font-weight: 700; }
.ch-lead__title a:hover { color: var(--tp-accent-aa); }
.ch-lead__excerpt { margin: 0 0 14px; font-size: 15.5px; color: var(--tp-muted); line-height: 1.75; }
.ch-lead__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding-top: 12px; border-top: 1px solid var(--tp-surface-2); font-size: 13.5px;
}
.ch-date { display: inline-flex; align-items: center; gap: 5px; color: var(--tp-muted); }
.ch-lead__more { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--tp-accent-aa); }
.ch-lead__more:hover { color: var(--tp-accent-hover); }

.ch-steps-panel {
	background: var(--tp-card); border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius-lg); padding: 8px 16px; box-shadow: var(--tp-shadow);
}
.ch-steps { list-style: none; margin: 0; padding: 0; }
.ch-step + .ch-step { border-top: 1px solid var(--tp-surface-2); }
.ch-step__link {
	display: grid; grid-template-columns: 32px 96px minmax(0, 1fr); align-items: center;
	gap: 12px; padding: 12px 2px;
}
.ch-step__num {
	display: inline-grid; place-items: center; height: 28px; border-radius: 6px;
	background: var(--tp-accent-soft); border: 1px solid var(--tp-accent-border);
	color: var(--tp-accent-aa); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ch-step__thumb { display: block; border-radius: 7px; overflow: hidden; background: var(--tp-surface-2); }
.ch-step__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ch-step__title {
	margin: 0; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--tp-ink);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.ch-step__link:hover .ch-step__title { color: var(--tp-accent-aa); }
.ch-step__link:hover .ch-step__num { background: var(--tp-accent-aa); border-color: var(--tp-accent-aa); color: #fff; }
.ch-step__date { display: block; margin-top: 3px; font-size: 12.5px; color: var(--tp-muted); }
@media (max-width: 420px) {
	.ch-step__link { grid-template-columns: 28px 80px minmax(0, 1fr); gap: 9px; }
}

/* ===== CoursesHome: Dark-Slate #0F172A AI Spotlight Band ===== */
.ch-spotlight {
	background: #0F172A; color: #F8FAFC; border-radius: var(--tp-radius-lg);
	padding: 26px 22px 28px; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
	border: 1px solid #1E293B;
}
.ch-spotlight__head {
	display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
	gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #1E293B;
}
.ch-spotlight__tag {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
	font-weight: 700; color: #FB923C; margin-bottom: 4px;
}
.ch-spotlight__title { margin: 0; font-size: 24px; font-weight: 700; color: #FFFFFF; }
.ch-spotlight__title a { color: #FFFFFF; }
.ch-spotlight__title a:hover { color: #FB923C; }
.ch-spotlight__all {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
	border-radius: 7px; background: #1E293B; border: 1px solid #334155;
	color: #FDBA74; font-size: 14px; font-weight: 700;
}
.ch-spotlight__all:hover { background: var(--tp-accent-aa); border-color: var(--tp-accent-aa); color: #fff; }
.ch-spotlight__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px) {
	.ch-spotlight__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ch-spot-card {
	background: #1E293B; border: 1px solid #334155; border-radius: var(--tp-radius);
	overflow: hidden; transition: border-color .15s, transform .15s;
}
.ch-spot-card:hover { border-color: #FB923C; transform: translateY(-2px); }
.ch-spot-card__link { display: flex; flex-direction: column; height: 100%; }
.ch-spot-card__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0F172A; }
.ch-spot-card__body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.ch-spot-card__title { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.55; color: #F8FAFC; }
.ch-spot-card:hover .ch-spot-card__title { color: #FDBA74; }
.ch-spot-card__excerpt {
	margin: 0 0 10px; font-size: 14.5px; color: #CBD5E1; line-height: 1.7;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.ch-spot-card__date { margin-top: auto; font-size: 12.5px; color: #94A3B8; }

/* ===== CoursesHome: 2-Column Horizontal Documentation Media Rows ===== */
.ch-doc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 820px) {
	.ch-doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ch-doc-card {
	background: var(--tp-card); border: 1px solid var(--tp-line);
	border-inline-start: 3px solid var(--tp-accent); border-radius: var(--tp-radius);
	overflow: hidden; box-shadow: var(--tp-shadow); transition: border-color .15s, box-shadow .15s;
}
.ch-doc-card:hover { border-color: var(--tp-accent-aa); box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.ch-doc-card__link { display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 15px; padding: 13px; align-items: center; }
.ch-doc-card__media { border-radius: 7px; overflow: hidden; background: var(--tp-surface-2); }
.ch-doc-card__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ch-doc-card__title { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; line-height: 1.5; color: var(--tp-ink); }
.ch-doc-card:hover .ch-doc-card__title { color: var(--tp-accent-aa); }
.ch-doc-card__excerpt {
	margin: 0 0 6px; font-size: 14px; color: var(--tp-muted); line-height: 1.65;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.ch-doc-card__date { font-size: 12.5px; color: var(--tp-muted); }
@media (max-width: 520px) {
	.ch-doc-card__link { grid-template-columns: 112px minmax(0, 1fr); gap: 11px; padding: 11px; }
	.ch-doc-card__excerpt { display: none; }
}

/* ===== CoursesHome: 4-Column Structured Tutorial Grids ===== */
.ch-tut-grid, .tp-related__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) {
	.ch-tut-grid, .tp-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
	.ch-tut-grid, .tp-related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ch-tut-card, .tp-rel-card, .tp-arc-card {
	background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: var(--tp-radius);
	overflow: hidden; box-shadow: var(--tp-shadow); transition: border-color .15s, transform .15s;
}
.ch-tut-card:hover, .tp-rel-card:hover, .tp-arc-card:hover { border-color: var(--tp-accent); transform: translateY(-2px); }
.ch-tut-card__link, .tp-rel-card__link, .tp-arc-card__link { display: flex; flex-direction: column; height: 100%; }
.ch-tut-card__img, .tp-rel-card__img, .tp-arc-card__img {
	display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tp-surface-2);
}
.ch-tut-card__body, .tp-rel-card__body, .tp-arc-card__body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.ch-tut-card__title, .tp-rel-card__title { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.55; color: var(--tp-ink); }
.ch-tut-card:hover .ch-tut-card__title, .tp-rel-card:hover .tp-rel-card__title, .tp-arc-card:hover .tp-arc-card__title { color: var(--tp-accent-aa); }
.ch-tut-card__date, .tp-rel-card__date, .tp-arc-card__date { margin-top: auto; font-size: 12.5px; color: var(--tp-muted); }
.tp-rel-card__cat, .tp-arc-card__cat {
	align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--tp-accent-aa);
	background: var(--tp-accent-soft); padding: 2px 9px; border-radius: 5px; margin-bottom: 7px;
}

/* ===== Single Post, Breadcrumbs, Content & Sidebar ===== */
.tp-crumbs { margin-bottom: 16px; font-size: 13.5px; color: var(--tp-muted); }
.tp-crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tp-crumbs__item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tp-crumbs__link { color: var(--tp-muted); font-weight: 500; }
.tp-crumbs__link:hover { color: var(--tp-accent-aa); text-decoration: underline; }
.tp-crumbs__sep { color: var(--tp-line-strong); }
.tp-crumbs__current { color: var(--tp-ink); font-weight: 700; overflow-wrap: anywhere; }

.tp-layout-single { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 1040px) {
	.tp-layout-single { grid-template-columns: minmax(0, 1fr) 310px; }
}
.tp-page-wrap { max-width: 860px; }

.tp-article {
	background: var(--tp-card); border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius-lg); padding: 20px 14px 26px; box-shadow: var(--tp-shadow);
}
@media (min-width: 481px) {
	.tp-article { padding: 24px 22px 28px; }
}
@media (min-width: 768px) {
	.tp-article { padding: 32px 36px 36px; }
}
.tp-post-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--tp-line); }
.tp-post-cat {
	display: inline-block; padding: 4px 12px; border-radius: 6px;
	background: var(--tp-accent-aa); color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.tp-post-cat:hover { background: var(--tp-accent-hover); color: #fff; }
.tp-post-title { margin: 0 0 14px; font-size: clamp(24px, 3.2vw, 33px); font-weight: 700; line-height: 1.42; color: var(--tp-ink); }
.tp-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--tp-muted); }
.tp-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.tp-author { font-weight: 700; color: var(--tp-ink-2); }

.tp-hero-media { margin: 0 0 24px; border-radius: var(--tp-radius); overflow: hidden; background: var(--tp-surface-2); }
.tp-hero-media__img { display: block; width: 100%; height: auto; }

/* Entry Content (:where() keeps specificity 0 so MU-plugin widgets always win cleanly) */
.entry-content { font-size: 17.5px; line-height: 1.9; color: var(--tp-ink); overflow-wrap: anywhere; }
.entry-content::after { content: ""; display: table; clear: both; }
:where(.entry-content) :where(p, ul, ol, dl, pre, blockquote, table, figure) { margin: 0 0 1.35em; }
:where(.entry-content) :where(h2, h3, h4, h5, h6) {
	margin: 1.75em 0 0.7em; font-weight: 700; line-height: 1.45; color: var(--tp-ink); scroll-margin-top: 88px;
}
:where(.entry-content) > h2 {
	font-size: clamp(21px, 2.4vw, 25px); padding-inline-start: 13px;
	border-inline-start: 4px solid var(--tp-accent);
}
:where(.entry-content) > h3 { font-size: clamp(18.5px, 2vw, 21px); }
:where(.entry-content) > h4 { font-size: 18px; }
:where(.entry-content) [id] { scroll-margin-top: 88px; }
:where(.entry-content) a { color: var(--tp-link); text-decoration: underline; text-underline-offset: .22em; font-weight: 600; }
:where(.entry-content) a:hover { color: var(--tp-accent-aa); }
.entry-content span[style*="#ff6600"], .entry-content span[style*="#FF6600"] { color: var(--tp-accent-aa) !important; }
:where(.entry-content) :where(ul, ol) { padding-inline-start: 24px; }
:where(.entry-content) li { margin-bottom: 0.55em; }
:where(.entry-content) img {
	display: block; max-width: 100%; height: auto; margin: 1.3em auto;
	border-radius: var(--tp-radius); border: 1px solid var(--tp-line);
}
.entry-content .aligncenter { margin-inline: auto; text-align: center; }
.entry-content .alignright { float: right; margin: 0.4em 0 1em 1.4em; max-width: 50%; }
.entry-content .alignleft { float: left; margin: 0.4em 1.4em 1em 0; max-width: 50%; }
.entry-content .wp-caption { max-width: 100%; margin: 1.4em auto; text-align: center; }
.entry-content .wp-caption-text, :where(.entry-content) figcaption { margin-top: 8px; font-size: 14px; color: var(--tp-muted); text-align: center; }
:where(.entry-content) blockquote {
	padding: 16px 20px; background: var(--tp-accent-soft);
	border-inline-start: 4px solid var(--tp-accent); border-radius: 8px; color: var(--tp-ink-2);
}
:where(.entry-content) pre {
	padding: 16px; background: #0F172A; color: #F8FAFC; border-radius: 8px;
	overflow-x: auto; direction: ltr; text-align: left; font-size: 14.5px; line-height: 1.65;
}
:where(.entry-content) code {
	padding: 2px 6px; background: var(--tp-surface-2); border-radius: 5px; font-size: 0.9em;
}
:where(.entry-content) pre code { padding: 0; background: none; color: inherit; }
:where(.entry-content) table {
	width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff;
	border: 1px solid var(--tp-line); border-radius: 8px; overflow: hidden;
}
@media (max-width: 767px) {
	:where(.entry-content) table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
:where(.entry-content) :where(th, td) { padding: 11px 14px; border: 1px solid var(--tp-line); text-align: right; }
:where(.entry-content) th { background: var(--tp-surface-2); font-weight: 700; color: var(--tp-ink); }
:where(.entry-content) tr:nth-child(even) td { background: #FAFBFD; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="youtu.be"] {
	display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
	border: 0; border-radius: var(--tp-radius); margin: 1.5em auto;
}

/* ===== Trust Publisher Components (.tp-toc, .tp-ad, .tp-btn, .tp-divider, .tp-box, .tp-toggle) ===== */
.tp-toc {
	margin: 1.6em 0; background: var(--tp-bg); border: 1px solid var(--tp-line-strong);
	border-radius: var(--tp-radius); overflow: hidden;
}
.tp-toc__sum {
	list-style: none; display: flex; align-items: center; justify-content: space-between;
	gap: 12px; padding: 13px 18px; cursor: pointer; font-weight: 700; font-size: 16.5px;
	color: var(--tp-ink); user-select: none;
}
.tp-toc__sum::-webkit-details-marker { display: none; }
.tp-toc__sum:hover { background: var(--tp-accent-soft); color: var(--tp-accent-aa); }
.tp-toc__toggle {
	display: inline-grid; place-items: center; width: 28px; height: 28px;
	border-radius: 6px; background: #fff; border: 1px solid var(--tp-line-strong); flex: none;
}
.tp-toc__toggle:empty::before {
	content: ""; width: 8px; height: 8px; border-inline-start: 2px solid currentColor;
	border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-1px); transition: transform .18s;
}
.tp-toc[open] .tp-toc__toggle:empty::before { transform: rotate(135deg) translateY(-2px); }
.tp-toc__nav { padding: 4px 18px 16px; border-top: 1px solid var(--tp-line); background: #fff; }
.tp-toc__list { margin: 10px 0 0; padding-inline-start: 22px; font-size: 15.5px; line-height: 1.75; }
.tp-toc__list ol { margin: 6px 0 6px; padding-inline-start: 20px; list-style-type: circle; }
.tp-toc__list li { margin-bottom: 6px; }
.tp-toc__list a { color: var(--tp-ink-2); text-decoration: none; font-weight: 500; }
.tp-toc__list a:hover { color: var(--tp-accent-aa); text-decoration: underline; }

.tp-ad {
	display: block; width: 100%; max-width: 100%; min-height: 300px; margin: 24px auto;
	overflow: hidden; clear: both; text-align: center;
}
.tp-ad ins.adsbygoogle { max-width: 100%; }
@media (max-width: 350px) {
	.entry-content .tp-ad { width: calc(100% + 28px); max-width: none; margin-inline: -14px; }
}
@media (min-width: 980px) {
	.tp-ad { min-height: 250px; }
}

.tp-btn, a.tp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 24px; margin: 6px 4px;
	background: var(--tp-accent-aa); color: #fff !important; font-weight: 700; font-size: 15.5px;
	line-height: 1.5; border-radius: 8px; border: 0; text-decoration: none !important;
	cursor: pointer; transition: background .15s, transform .15s;
}
.tp-btn:hover, a.tp-btn:hover { background: var(--tp-accent-hover); color: #fff !important; transform: translateY(-1px); }
.tp-btn--green, a.tp-btn--green { background: #1E6B24; }
.tp-btn--blue, a.tp-btn--blue { background: #0369A1; }
.tp-btn--red, a.tp-btn--red { background: #B91C1C; }
.tp-btn--dark, a.tp-btn--dark { background: #0F172A; }
.tp-btn--custom, a.tp-btn--custom { background: var(--tp-btn-color, var(--tp-accent-aa)); }
.tp-btn--small, a.tp-btn--small { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.tp-btn--big, .tp-btn--large, a.tp-btn--big, a.tp-btn--large { min-height: 50px; padding: 12px 30px; font-size: 17px; }
.tp-btn--disabled { opacity: .65; cursor: default; }

.tp-divider { border: 0; border-top: 1px solid var(--tp-line-strong); margin: 28px 0; clear: both; }
.tp-divider--dashed { border-top-style: dashed; }
.tp-divider--dotted { border-top-style: dotted; }
.tp-divider--double { border-top-style: double; border-top-width: 3px; }
.tp-box {
	margin: 1.4em 0; padding: 16px 18px; border-radius: 8px;
	background: var(--tp-surface-2); border-inline-start: 4px solid var(--tp-accent); color: var(--tp-ink);
}
.tp-toggle { margin: 1.2em 0; border: 1px solid var(--tp-line); border-radius: 8px; background: #fff; padding: 12px 16px; }
.tp-toggle > summary { cursor: pointer; font-weight: 700; }
.tp-toggle__body { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--tp-line); }
.tp-highlight, .tp-hl, :where(.entry-content) mark { background: #FEF08A; color: #0F172A; padding: 1px 6px; border-radius: 4px; }
.tp-tie-list { margin: 1.35em 0; }
.tp-tie-list ul { list-style: none; margin: 0; padding: 0; }
.tp-tie-list li { position: relative; padding-inline-start: 26px; margin-bottom: 0.6em; }
.tp-tie-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0.05em; font-weight: 700; color: #15803d; }
.tp-tie-list--cons li::before, .tp-tie-list--minus li::before, .tp-tie-list--thumbdown li::before { content: "✕"; color: #dc2626; }
.tp-tie-list--starlist li::before, .tp-tie-list--lightbulb li::before, .tp-tie-list--heart li::before { content: "★"; color: #d97706; }

.tp-related { margin-top: 32px; }

/* ===== Sidebar ===== */
.tp-sidebar { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1040px) {
	.tp-sidebar { position: sticky; top: 88px; }
}
.tp-widget {
	background: var(--tp-card); border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius-lg); padding: 18px; box-shadow: var(--tp-shadow);
}
.tp-widget__title {
	margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--tp-line);
	font-size: 17.5px; font-weight: 700; color: var(--tp-ink);
}
.tp-side-search { display: flex; gap: 6px; }
.tp-side-search__input {
	flex: 1; min-width: 0; height: 42px; padding: 0 12px;
	border: 1px solid var(--tp-line-strong); border-radius: 7px; background: var(--tp-bg); font-size: 14.5px;
}
.tp-side-search__btn {
	width: 42px; height: 42px; border: 0; border-radius: 7px;
	background: var(--tp-accent-aa); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.tp-side-cats, .tp-side-list { list-style: none; margin: 0; padding: 0; }
.tp-side-cats li + li, .tp-side-list__item + .tp-side-list__item { border-top: 1px solid var(--tp-surface-2); }
.tp-side-cats a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 9px 4px; font-size: 15px; font-weight: 700; color: var(--tp-ink-2);
}
.tp-side-cats a:hover { color: var(--tp-accent-aa); }
.tp-side-list__link { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 11px; padding: 10px 0; align-items: center; }
.tp-side-list__thumb { border-radius: 6px; overflow: hidden; background: var(--tp-surface-2); }
.tp-side-list__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tp-side-list__title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
	overflow: hidden; font-size: 14.5px; font-weight: 700; line-height: 1.45; color: var(--tp-ink);
}
.tp-side-list__link:hover .tp-side-list__title { color: var(--tp-accent-aa); }
.tp-side-list__date { display: block; margin-top: 3px; font-size: 12px; color: var(--tp-muted); }

/* ===== Archives, Search & 404 ===== */
.tp-archive-head {
	background: var(--tp-card); border: 1px solid var(--tp-line);
	border-inline-start: 4px solid var(--tp-accent); border-radius: var(--tp-radius-lg);
	padding: 22px 24px; margin-bottom: 24px; box-shadow: var(--tp-shadow);
}
.tp-archive-head__kicker {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
	font-weight: 700; color: var(--tp-accent-aa); margin-bottom: 6px;
}
.tp-archive-head__title { margin: 0; font-size: clamp(23px, 3vw, 30px); font-weight: 700; color: var(--tp-ink); }
.tp-archive-head__desc { margin-top: 8px; font-size: 15.5px; color: var(--tp-muted); }
.tp-archive-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .tp-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .tp-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tp-arc-card__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.5; color: var(--tp-ink); }
.tp-arc-card__excerpt {
	margin: 0 0 12px; font-size: 14.5px; color: var(--tp-muted); line-height: 1.7;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

.tp-search-page-form, .tp-empty-search { display: flex; gap: 8px; max-width: 560px; margin-top: 14px; }
.tp-search-page-form__input, .tp-empty-search__input {
	flex: 1; min-width: 0; height: 44px; padding: 0 14px;
	border: 1px solid var(--tp-line-strong); border-radius: 8px; background: #fff;
}
.tp-search-page-form__btn, .tp-empty-search__btn {
	height: 44px; padding: 0 22px; border: 0; border-radius: 8px;
	background: var(--tp-accent-aa); color: #fff; font-weight: 700; cursor: pointer;
}
.tp-empty-box, .tp-404-card {
	background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: var(--tp-radius-lg);
	padding: 36px 24px; text-align: center; max-width: 680px; margin: 12px auto 36px; box-shadow: var(--tp-shadow);
}
.tp-empty-box .tp-empty-search, .tp-404-card .tp-empty-search { margin-inline: auto; }
.tp-404-code { display: block; font-size: 56px; font-weight: 700; line-height: 1; color: var(--tp-accent-aa); margin-bottom: 10px; }
.tp-404-title { margin: 0 0 10px; font-size: 25px; }
.tp-404-desc { margin: 0 0 20px; color: var(--tp-muted); }
.tp-404-actions { margin-top: 18px; }

.tp-pagination { margin-top: 32px; }
.tp-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tp-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px;
	background: var(--tp-card); border: 1px solid var(--tp-line-strong); border-radius: 8px;
	font-weight: 700; font-size: 15px; color: var(--tp-ink);
}
.tp-pagination .page-numbers.current, .tp-pagination a.page-numbers:hover {
	background: var(--tp-accent-aa); border-color: var(--tp-accent-aa); color: #fff;
}

/* ===== Footer ===== */
.tp-footer { background: #0F172A; color: #CBD5E1; margin-top: auto; border-top: 3px solid var(--tp-accent); }
.tp-footer__grid {
	display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: 38px 32px;
}
@media (min-width: 768px) {
	.tp-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
}
.tp-footer__brand { display: inline-block; font-size: 22px; font-weight: 700; color: #FFFFFF; margin-bottom: 10px; }
.tp-footer__desc { margin: 0 0 16px; font-size: 15px; line-height: 1.8; color: #94A3B8; max-width: 440px; }
.tp-footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-soc-link {
	display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px;
	border-radius: 7px; background: #1E293B; border: 1px solid #334155;
	color: #F8FAFC; font-size: 14px; font-weight: 700;
}
.tp-soc-link:hover { background: var(--tp-accent-aa); border-color: var(--tp-accent-aa); color: #fff; }
.tp-footer__heading { margin: 0 0 12px; font-size: 16.5px; font-weight: 700; color: #FFFFFF; }
.tp-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.tp-footer__links a { color: #CBD5E1; }
.tp-footer__links a:hover { color: #FDBA74; text-decoration: underline; }
.tp-footer__bar { border-top: 1px solid #1E293B; padding-block: 16px; font-size: 13.5px; color: #94A3B8; }
.tp-footer__bar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.tp-footer__copy, .tp-footer__tag { margin: 0; }

.tp-top-btn {
	position: fixed; inset-inline-end: 18px; bottom: 20px; z-index: 85;
	width: 44px; height: 44px; border: 0; border-radius: 10px;
	background: var(--tp-accent-aa); color: #fff; display: grid; place-items: center;
	cursor: pointer; box-shadow: 0 6px 18px rgba(15,23,42,.24);
}
@media (max-width: 768px) {
	.tp-top-btn { inset-inline-end: auto; inset-inline-start: 16px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
.tp-top-btn .tp-icon { transform: rotate(180deg); }
.tp-top-btn:hover { background: var(--tp-accent-hover); }

@media print {
	#theme-header, #main-nav, .tp-drawer, .tp-scrim, #sidebar, #related-posts, #footer, .tp-top-btn, .tp-ad, #breadcrumb, iframe { display: none !important; }
	body, .tp-article { background: #fff !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
	.tp-layout-single { display: block !important; }
}
