/*
Theme Name: SkillTutorials
Theme URI: https://skilltutorials.com/
Author: SkillFour Technology
Author URI: https://skillfour.com/
Description: "Pastel Soft" – a calm, modern and fast tutorial theme in pastel purple, pink, mint and butter yellow. Self-hosted fonts (Sora + Inter, ~80 KB), no jQuery, one CSS and one small JS file, dark mode, reading progress, sticky "On this page" outline, Udemy course cards, related posts. Works with the ST SEO plugin and with Rank Math or Yoast.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skilltutorials
Tags: blog, education, two-columns, three-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("assets/fonts/sora-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--purple: #7b4dff;
	--pink: #ff7eb6;
	--green: #3dd68c;
	--yellow: #ffd95a;
	--ink: #2a1b5e;
	--text: #3d3266;
	--muted: #6b5f93;
	--muted-2: #8a80ae;
	--bg: #fbfaff;
	--surface: #ffffff;
	--line: #eee9fb;
	--lav: #f2edff;
	--t-purple: #ece5ff; --i-purple: #5b33d6;
	--t-pink: #ffe1ef;   --i-pink: #b8336e;
	--t-green: #ddf7ea;  --i-green: #137a4b;
	--t-yellow: #fff1b8; --i-yellow: #8a6400;
	--code-bg: #2a1b5e;
	--code-text: #ede7ff;
	--shadow: 0 10px 40px rgba(42, 27, 94, .06);
	--shadow-pop: 0 14px 40px rgba(123, 77, 255, .14);
	--r-lg: 30px;
	--r: 22px;
	--head: "Sora", ui-sans-serif, system-ui, sans-serif;
	--body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--wrap: 1200px;
}
[data-theme="dark"] {
	--ink: #efeaff;
	--text: #d6cdf5;
	--muted: #b3a8da;
	--muted-2: #9488c0;
	--bg: #110b24;
	--surface: #1b1436;
	--line: #2c2350;
	--lav: #241b47;
	--t-purple: #2b2155; --i-purple: #c7b6ff;
	--t-pink: #3b1d36;   --i-pink: #ff9cc8;
	--t-green: #15372b;  --i-green: #7fe8b3;
	--t-yellow: #3a3115; --i-yellow: #ffe07a;
	--code-bg: #0b0718;
	--shadow: 0 10px 40px rgba(0, 0, 0, .35);
	--shadow-pop: 0 14px 40px rgba(0, 0, 0, .45);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--purple); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 1.6em 0 .6em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 8px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: 12px; }
.container { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: 32px 0 64px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Tones used by topic cards, thumbnails and badges */
.tone-1 { --tint: var(--t-green);  --tint-ink: var(--i-green);  --dot: var(--green); }
.tone-2 { --tint: var(--t-purple); --tint-ink: var(--i-purple); --dot: var(--purple); }
.tone-3 { --tint: var(--t-pink);   --tint-ink: var(--i-pink);   --dot: var(--pink); }
.tone-4 { --tint: var(--t-yellow); --tint-ink: var(--i-yellow); --dot: var(--yellow); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--primary { background: var(--purple); color: #fff; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--yellow { background: var(--yellow); color: #2a1b5e; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 0; background: var(--lav); color: var(--ink); cursor: pointer; }
.icon-btn:hover { color: var(--purple); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px 0 8px; background: linear-gradient(var(--bg) 60%, transparent); }
.header-pill { display: flex; align-items: center; gap: 24px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 22px; box-shadow: var(--shadow); position: relative; }
.brand { font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--purple); }
.custom-logo { max-height: 38px; width: auto; display: block; }
.main-nav .menu { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav .menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.main-nav .menu a:hover, .main-nav .current-menu-item > a, .main-nav .current-cat > a { background: var(--lav); color: var(--purple); }
.main-nav .menu > li { position: relative; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; list-style: none; margin: 6px 0 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); min-width: 220px; }
.main-nav .menu > li:hover > .sub-menu, .main-nav .menu > li:focus-within > .sub-menu { display: block; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-cta { background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.header-cta:hover { filter: brightness(1.15); }
.menu-toggle { display: none; }
.header-progress { display: none; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-2); }
.single-post .header-progress { display: flex; }
.header-progress__bar { width: 120px; height: 6px; border-radius: 999px; background: var(--lav); overflow: hidden; }
.header-progress__bar span { display: block; height: 100%; width: 100%; background: var(--purple); transform: scaleX(0); transform-origin: 0 50%; }
.header-search { margin-top: 10px; }
.header-search .search-form { margin-inline: auto; }
@media (max-width: 960px) {
	.menu-toggle { display: inline-grid; }
	.header-progress { display: none !important; }
	.main-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 10px; display: none; }
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; margin: 0; }
}
@media (max-width: 560px) { .header-cta { display: none; } .header-pill { padding-left: 16px; } }

/* ---------- Search form ---------- */
.search-form { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px; max-width: 580px; box-shadow: var(--shadow-pop); }
.search-form svg { flex-shrink: 0; color: var(--muted); }
.search-form__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.search-form__btn { background: var(--purple); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 56px; text-align: center; overflow: hidden; }
.hero .shape { position: absolute; pointer-events: none; }
.hero .shape--a { left: 6%; top: 80px; width: 64px; height: 64px; border-radius: 22px; background: var(--t-pink); transform: rotate(-12deg); }
.hero .shape--b { right: 7%; top: 140px; width: 54px; height: 54px; border-radius: 999px; background: var(--t-green); }
.hero .shape--c { right: 16%; top: 56px; width: 26px; height: 26px; border-radius: 8px; background: var(--t-yellow); transform: rotate(18deg); }
.hero .shape--d { left: 14%; bottom: 40px; width: 34px; height: 34px; border-radius: 999px; background: var(--t-purple); }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.pill-badge i { width: 8px; height: 8px; border-radius: 999px; background: var(--green); }
.hero__title { margin: 24px auto 18px; font-size: clamp(38px, 6vw, 66px); line-height: 1.06; letter-spacing: -.04em; max-width: 900px; }
.hero__title em { font-style: normal; color: var(--purple); }
.hero__text { margin: 0 auto 30px; font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--muted); max-width: 620px; }
.hero .search-form { margin-inline: auto; }
.hero .container { position: relative; z-index: 1; }
@media (max-width: 760px) { .hero { padding: 48px 0 40px; } .hero .shape--a, .hero .shape--b, .hero .shape--d { display: none; } .hero .shape--c { right: 6%; top: 24px; } }

/* Topic cards */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 56px; }
@media (max-width: 900px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.topic { background: var(--tint); border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 28px; text-decoration: none; color: var(--ink); transition: transform .2s ease; }
.topic:hover { transform: translateY(-3px); }
.topic__icon { width: 48px; height: 48px; border-radius: 16px; background: var(--surface); display: grid; place-items: center; font-family: var(--head); font-weight: 700; color: var(--tint-ink); font-size: 15px; }
.topic__name { display: block; font-family: var(--head); font-weight: 600; font-size: 20px; line-height: 1.25; }
.topic__count { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .topic { padding: 18px; gap: 18px; border-radius: 22px; } .topic__name { font-size: 16px; overflow-wrap: anywhere; } .search-form { padding-left: 16px; } .search-form__btn { padding: 12px 16px; } }

/* Featured + popular */
.spotlight { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; margin-bottom: 56px; }
@media (max-width: 900px) { .spotlight { grid-template-columns: 1fr; } }
.featured { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; }
.featured__media { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--lav); }
.featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured__body { padding: 20px 14px 10px; }
.kicker { font-size: 13px; font-weight: 600; color: var(--purple); }
.featured__title { margin: 8px 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.featured__excerpt { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.popular h2 { margin: 4px 0 14px; font-size: 22px; }
.popular__item { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; text-decoration: none; transition: border-color .15s; }
.popular__item:hover { border-color: var(--purple); }
.popular__mark { width: 64px; height: 64px; border-radius: 18px; background: var(--tint); color: var(--tint-ink); display: grid; place-items: center; font-family: var(--head); font-weight: 700; flex-shrink: 0; overflow: hidden; }
.popular__mark img { width: 100%; height: 100%; object-fit: cover; }
.popular__title { display: block; font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--ink); }
.popular__meta { font-size: 13px; color: var(--muted-2); }

/* Pastel placeholder art */
.art { position: absolute; inset: 0; background: var(--tint, var(--lav)); overflow: hidden; display: grid; place-items: center; }
.art::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 999px; background: var(--t-pink); left: -14%; bottom: -36%; }
.art::after { content: ""; position: absolute; width: 34%; aspect-ratio: 1; border-radius: 28%; background: var(--t-green); right: 8%; top: -12%; transform: rotate(20deg); }
.tone-1 .art::after { background: var(--t-yellow); }
.tone-3 .art::before { background: var(--t-purple); }
.tone-4 .art::before { background: var(--t-green); }
.art__chip { position: relative; z-index: 1; background: var(--surface); color: var(--tint-ink, var(--purple)); font-family: var(--head); font-weight: 700; font-size: clamp(16px, 2.2vw, 22px); padding: 12px 20px; border-radius: 16px; box-shadow: 0 10px 30px rgba(42, 27, 94, .1); max-width: 80%; text-align: center; line-height: 1.25; }

/* ---------- Cards ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 22px; }
.section-title { font-size: 28px; margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; }
.page-header { text-align: center; padding: 48px 0 24px; }
.page-title { font-size: clamp(30px, 4.6vw, 48px); margin: 8px 0 10px; letter-spacing: -.035em; }
.page-desc { color: var(--muted); max-width: 640px; margin: 0 auto; }
.page-header .search-form { margin: 18px auto 0; }
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 12px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.card__thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--lav); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: 16px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.badge { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--tint, var(--t-purple)); color: var(--tint-ink, var(--i-purple)); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.card__title { font-size: 19px; margin: 10px 0 8px; line-height: 1.3; letter-spacing: -.01em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--purple); }
.card__excerpt { color: var(--muted); font-size: 15px; margin: 0 0 14px; line-height: 1.6; }
.card__meta { margin-top: auto; display: flex; gap: 6px; color: var(--muted-2); font-size: 13px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: #2a1b5e; color: #fff; border-radius: 34px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 64px 0 24px; }
.cta-band::before { content: ""; position: absolute; right: 26%; top: -40px; width: 120px; height: 120px; border-radius: 999px; background: var(--pink); opacity: .35; }
.cta-band::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 160px; height: 160px; border-radius: 48px; background: var(--green); opacity: .3; transform: rotate(18deg); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 10px; color: #fff; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; }
.cta-band p { margin: 0; color: #cfc6f2; }

/* ---------- Article ---------- */
.article-head { text-align: center; padding: 56px 0 28px; max-width: 900px; margin-inline: auto; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0 0 16px; font-size: 14px; color: var(--muted-2); }
.breadcrumbs li + li::before { content: "·"; margin-right: 6px; }
.breadcrumbs a { color: var(--muted-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--purple); }
.article__title { font-size: clamp(32px, 5vw, 54px); line-height: 1.08; letter-spacing: -.04em; margin: 10px 0 22px; }
.author-pill { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px 6px 6px; font-size: 14px; color: var(--muted); }
.author-pill img { border-radius: 999px; display: block; }
.author-pill strong { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .author-pill { border: 0; background: none; padding: 0; gap: 6px 8px; } }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 700px) 270px; gap: 40px; justify-content: center; padding: 16px 0 64px; }
.article-layout__toc { order: 0; }
.article-layout__main { order: 1; min-width: 0; }
.article-layout__side { order: 2; }
@media (max-width: 1180px) { .article-layout { grid-template-columns: minmax(0, 700px) 270px; } .article-layout__toc { display: none; } }
@media (max-width: 900px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }
.sticky-col { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.article__image { margin: 0 0 28px; }
.article__image img { border-radius: 26px; display: block; width: 100%; }

.toc-side { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.toc-side__title { font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--ink); margin: 0 0 10px; }
.toc-side ol { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 220px); overflow: auto; }
.toc-side a { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; color: var(--muted-2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc-side a::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line); flex-shrink: 0; transform: translateY(-1px); }
.toc-side li:nth-child(4n+1) a::before { background: var(--green); }
.toc-side li:nth-child(4n+2) a::before { background: var(--purple); }
.toc-side li:nth-child(4n+3) a::before { background: var(--pink); }
.toc-side li:nth-child(4n+4) a::before { background: var(--yellow); }
.toc-side a:hover, .toc-side a.is-active { color: var(--ink); font-weight: 600; }

/* Content typography */
.entry-content { font-size: 18px; line-height: 1.8; color: var(--text); overflow-wrap: break-word; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > p:first-child { font-size: 21px; line-height: 1.6; color: var(--ink); }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { font-size: 30px; margin-top: 1.9em; letter-spacing: -.03em; }
.entry-content h3 { font-size: 21px; margin-top: 1.5em; }
.entry-content strong { color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin: .35em 0; }
.entry-content li::marker { color: var(--purple); }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 22px; background: var(--t-green); color: var(--i-green); border-radius: 22px; border: 0; }
.entry-content blockquote p { margin: 0; }
.entry-content hr { border: 0; border-top: 1px dashed var(--line); margin: 2.5em 0; }
.entry-content img { border-radius: 18px; }
.entry-content :not(pre) > code { font-family: var(--mono); font-size: .86em; background: var(--lav); color: var(--i-purple); padding: .12em .45em; border-radius: 8px; }
.entry-content pre { position: relative; background: var(--code-bg); color: var(--code-text); padding: 20px 22px; border-radius: 22px; overflow-x: auto; font-size: 14.5px; line-height: 1.65; }
.entry-content pre code { font-family: var(--mono); background: none; padding: 0; color: inherit; }
.copy-code { position: absolute; top: 10px; right: 10px; padding: 5px 12px; font-size: 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; font-family: var(--body); }
.entry-content pre:hover .copy-code, .copy-code:focus { opacity: 1; }
@media (hover: none) { .copy-code { opacity: 1; } }
.entry-content .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 1.15em; }
.entry-content table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15.5px; margin: 0; }
.entry-content th, .entry-content td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.entry-content th { background: var(--lav); color: var(--ink); font-weight: 600; }
.entry-content tr:last-child td { border-bottom: 0; }

/* Boxes that come inside the articles (TOC + CTA): restyled to match */
.entry-content .st-toc { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 22px !important; padding: 20px 24px !important; }
.entry-content .st-toc > p { font-family: var(--head); color: var(--ink); }
.entry-content .st-toc a { text-decoration: none; color: var(--text); }
.entry-content .st-toc a:hover { color: var(--purple); }
.entry-content .st-cta { background: var(--t-pink) !important; border: 0 !important; border-radius: 28px !important; padding: 28px !important; }
.entry-content .st-cta p { color: var(--ink) !important; }
.entry-content .st-cta p:first-child { font-family: var(--head); }
.entry-content .st-cta a { background: var(--ink) !important; color: var(--bg) !important; border-radius: 999px !important; }
.entry-content .st-cta:nth-of-type(3n+2) { background: var(--t-purple) !important; }
.entry-content .st-cta:nth-of-type(3n) { background: var(--t-green) !important; }

/* Course card */
.course-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 14px; box-shadow: var(--shadow-pop); }
.course-card__art { position: relative; height: 120px; border-radius: 20px; background: var(--lav); overflow: hidden; }
.course-card__art::before { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 999px; background: var(--t-yellow); left: -20px; bottom: -30px; }
.course-card__art::after { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 22px; background: var(--t-green); right: 20px; top: 16px; transform: rotate(14deg); }
.course-card__tag { position: absolute; left: 16px; top: 16px; z-index: 1; background: var(--surface); color: var(--purple); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.course-card__body { padding: 16px 8px 8px; }
.course-card__title { margin: 0 0 8px; font-family: var(--head); font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.course-card__perks { margin: 0 0 16px; font-size: 13px; color: var(--muted-2); }
.course-card .btn { width: 100%; }
.course-card__note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.course-card__note strong, .course-band__note strong { color: var(--ink); }
.course-band__note { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.course-card__more { display: block; text-align: center; font-size: 13px; margin-top: 10px; color: var(--muted); }
.course-band { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--t-purple); border-radius: 28px; padding: 26px 28px; margin: 40px 0; }
.course-band__text { flex: 1 1 280px; }
.course-band__label { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--i-purple); }
.course-band__title { margin: 0; font-family: var(--head); font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.3; }

/* Tags, share, author, nav */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0; }
.tags a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--lav); color: var(--i-purple); text-decoration: none; font-size: 14px; font-weight: 500; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-size: 14px; }
.share > span { font-weight: 600; color: var(--ink); margin-right: 4px; }
.share a, .copy-link { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; font-size: 14px; cursor: pointer; }
.share a:hover, .copy-link:hover { border-color: var(--purple); color: var(--purple); }
.author-box { display: flex; gap: 16px; align-items: center; margin: 32px 0; padding: 22px; border-radius: 26px; background: var(--t-yellow); }
.author-box img { border-radius: 999px; flex-shrink: 0; }
.author-box__name { font-family: var(--head); font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.author-box p { margin: 0; font-size: 15px; color: var(--text); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.post-navigation a { display: block; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; height: 100%; }
.post-navigation a:hover { border-color: var(--purple); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; font-size: 12.5px; color: var(--muted-2); font-weight: 600; }
.nav-title { display: block; color: var(--ink); font-family: var(--head); font-weight: 600; margin-top: 4px; line-height: 1.35; }
@media (max-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { text-align: left; } }
.related { margin: 48px 0; }
.related .section-title { margin-bottom: 18px; font-size: 24px; }
.related .grid--3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.related .card__excerpt { display: none; }

/* Widgets */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; font-size: 15px; }
.widget-title { font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; }
.widget a { color: var(--text); text-decoration: none; }
.widget a:hover { color: var(--purple); }

/* Comments */
.comments { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 18px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.comment-author img { border-radius: 999px; vertical-align: middle; margin-right: 8px; }
.comment-meta { font-size: 13px; color: var(--muted-2); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.comment-form .submit { background: var(--purple); color: #fff; border: 0; border-radius: 999px; padding: 13px 24px; font: inherit; font-weight: 600; cursor: pointer; }

/* 404 */
.error-404 { text-align: center; padding: 80px 0; }
.error-404__code { font-family: var(--head); font-size: 110px; font-weight: 700; margin: 0; line-height: 1; color: var(--purple); letter-spacing: -.06em; }
.error-404 .search-form { margin: 24px auto; }

/* Footer */
.site-footer { margin-top: 40px; padding: 48px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--purple); }
.footer-grid .widget { border: 0; padding: 0; background: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 8px 0; color: var(--muted-2); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.footer-menu a { color: var(--muted-2); text-decoration: none; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; font-size: 18px; z-index: 40; }

/* WordPress core */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, figure { max-width: 100%; margin: 1.5em 0; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted-2); text-align: center; margin-top: 8px; }
.sticky .card__title::before { content: "★ "; color: var(--yellow); }
.bypostauthor > .comment-body .fn::after { content: " ✓"; color: var(--purple); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
