/*
Theme Name: SOAKJAM Knowledge
Theme URI: https://soakjam.com/knowledge/
Author: SOAKJAM
Author URI: https://soakjam.com/
Description: A lightweight, original WordPress theme built for SOAKJAM Knowledge. Designed for clear guides, useful information, contributor publishing, categories, search, featured articles, author pages and future advertising placements without a page builder.
Version: 1.0.2
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: soakjam-knowledge
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, education, custom-logo, featured-images, editor-style, responsive-layout
*/

:root {
  --sj-ink: #0a153f;
  --sj-deep: #11134f;
  --sj-soft: #505b7d;
  --sj-muted: #7f89a7;
  --sj-violet: #5630cc;
  --sj-blue: #086af4;
  --sj-cyan: #00c8d8;
  --sj-coral: #ff4b65;
  --sj-orange: #ff9557;
  --sj-paper: #f7f8fd;
  --sj-white: #ffffff;
  --sj-line: #dde1ef;
  --sj-card: rgba(255,255,255,.78);
  --sj-shadow: 0 20px 55px rgba(26,35,86,.10);
  --sj-radius: 24px;
  --sj-content: 780px;
  --sj-wide: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sj-ink);
  background: var(--sj-paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { color: #fff; background: var(--sj-violet); }

.sj-screen-reader-text,
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.sj-screen-reader-text:focus,
.screen-reader-text:focus {
  z-index: 100000;
  top: 8px; left: 8px;
  width: auto; height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--sj-ink);
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--sj-shadow);
}

/* Header */
.sj-site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--sj-wide), calc(100% - 36px));
  min-height: 72px;
  padding: 0 16px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 45px rgba(23,31,78,.09);
  backdrop-filter: blur(18px);
}
.sj-brand-link { width: 164px; flex: 0 0 auto; }
.sj-brand-link .custom-logo { width: 164px; max-height: 52px; object-fit: contain; }
.sj-main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 800; }
.sj-main-nav a { position: relative; color: #384263; }
.sj-main-nav a:not(.sj-nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -7px;
  height: 2px;
  background: linear-gradient(90deg,var(--sj-coral),var(--sj-violet),var(--sj-cyan));
  transition: right .22s ease;
}
.sj-main-nav a:not(.sj-nav-cta):hover::after,
.sj-main-nav a[aria-current="page"]::after { right: 0; }
.sj-main-nav a[aria-current="page"] { color: var(--sj-ink); }
.sj-nav-cta,
.sj-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.sj-nav-cta { color: #fff !important; background: var(--sj-ink); }
.sj-nav-cta:hover,
.sj-button:hover { transform: translateY(-2px); }
.sj-menu-button {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--sj-ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.sj-menu-button span { width: 18px; height: 2px; border-radius: 2px; background: #fff; }

/* Shared */
.sj-wrap { width: min(var(--sj-wide), calc(100% - 48px)); margin: 0 auto; }
.sj-section { padding: 88px 0; }
.sj-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 38px; }
.sj-section-heading > div { max-width: 760px; }
.sj-section-heading h2,
.sj-archive-head h1,
.sj-search-head h1 {
  margin: 16px 0 0;
  font-size: clamp(34px,4vw,56px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.sj-section-heading p { max-width: 460px; margin: 0; color: var(--sj-soft); font-size: 15px; line-height: 1.7; }
.sj-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #566185;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.sj-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 8px; background: linear-gradient(90deg,var(--sj-coral),var(--sj-cyan)); }
.sj-muted { color: var(--sj-soft); }
.sj-gradient-text {
  background: linear-gradient(100deg,#fe4e68 0%,#7b36d6 52%,#008fd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sj-button { min-height: 54px; padding: 0 23px; font-size: 14px; }
.sj-button-primary { color: #fff; background: linear-gradient(110deg,#1d246c,#512bb8 70%,#0e7ace); box-shadow: 0 15px 30px rgba(62,41,153,.22); }
.sj-button-secondary { border-color: #cdd2e5; background: rgba(255,255,255,.8); }
.sj-button-small { min-height: 43px; padding: 0 16px; }

/* Knowledge front page */
.sj-knowledge-hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 92px;
  background:
    linear-gradient(rgba(255,255,255,.68) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.68) 1px,transparent 1px),
    radial-gradient(circle at 88% 14%,#e7eaff 0,transparent 34%),
    linear-gradient(145deg,#f8faff 0%,#f3f0ff 55%,#f5fbff 100%);
  background-size: 46px 46px,46px 46px,auto,auto;
}
.sj-knowledge-hero::before,
.sj-knowledge-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(5px);
  opacity: .55;
}
.sj-knowledge-hero::before { width: 320px; height: 320px; left: -100px; top: 130px; background: #e6d8ff; }
.sj-knowledge-hero::after { width: 420px; height: 420px; right: -150px; bottom: -160px; background: #d4f6ff; }
.sj-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: 64px; align-items: center; }
.sj-hero-copy h1 { margin: 22px 0 24px; max-width: 780px; font-size: clamp(52px,6vw,84px); line-height: .98; letter-spacing: -.065em; }
.sj-hero-copy p { max-width: 670px; margin: 0; color: var(--sj-soft); font-size: 18px; line-height: 1.75; }
.sj-search-hero { max-width: 680px; margin-top: 32px; }
.sj-search-form { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid rgba(204,210,229,.92); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 18px 40px rgba(27,35,86,.08); }
.sj-search-form input[type="search"] { width: 100%; min-height: 48px; padding: 0 16px; border: 0; outline: 0; color: var(--sj-ink); background: transparent; font-size: 15px; }
.sj-search-form button { flex: 0 0 auto; min-height: 48px; padding: 0 19px; border: 0; border-radius: 12px; color: #fff; background: var(--sj-ink); font-weight: 850; }
.sj-hero-principles { display: flex; gap: 18px 24px; flex-wrap: wrap; margin-top: 27px; color: #5a6485; font-size: 13px; font-weight: 800; }
.sj-hero-principles span { display: inline-flex; align-items: center; gap: 7px; }
.sj-hero-principles i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #4450a8; background: #fff; font-style: normal; box-shadow: 0 5px 12px rgba(35,43,95,.1); }
.sj-hero-panel { position: relative; min-height: 430px; display: grid; place-items: center; }
.sj-hero-orbit { position: absolute; width: 400px; height: 400px; border: 1px solid rgba(79,66,158,.14); border-radius: 50%; }
.sj-hero-orbit.two { width: 310px; height: 310px; border-style: dashed; animation: sj-spin 32s linear infinite; }
@keyframes sj-spin { to { transform: rotate(360deg); } }
.sj-knowledge-stage { position: relative; z-index: 2; width: min(430px,90%); padding: 34px; border: 1px solid rgba(255,255,255,.94); border-radius: 30px; background: rgba(255,255,255,.79); box-shadow: 0 30px 80px rgba(39,32,100,.16); backdrop-filter: blur(20px); }
.sj-stage-logo { width: 82%; margin: 15px auto 26px; }
.sj-stage-label { color: #8991ab; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.sj-stage-title { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.035em; }
.sj-stage-copy { margin: 12px 0 0; color: #66708f; font-size: 13px; line-height: 1.65; }
.sj-stage-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sj-stage-tags span { padding: 8px 10px; border: 1px solid #e0e3ef; border-radius: 999px; color: #5b6483; background: rgba(255,255,255,.8); font-size: 10px; font-weight: 850; }
.sj-stage-progress { height: 4px; margin-top: 22px; border-radius: 20px; overflow: hidden; background: #e5e7f3; }
.sj-stage-progress span { display: block; width: 78%; height: 100%; background: linear-gradient(90deg,var(--sj-coral),var(--sj-violet),var(--sj-cyan)); }

/* Ads only render when a widget is active */
.sj-ad-slot { width: min(var(--sj-wide),calc(100% - 48px)); margin: 28px auto; }
.sj-ad-slot .widget { margin: 0; }
.sj-ad-slot .widget-title { margin: 0 0 8px; color: #8a93aa; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

/* Categories */
.sj-category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.sj-category-card { position: relative; overflow: hidden; min-height: 190px; padding: 24px; border: 1px solid var(--sj-line); border-radius: 22px; background: rgba(255,255,255,.78); box-shadow: 0 12px 32px rgba(31,39,88,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sj-category-card:hover { transform: translateY(-3px); border-color: #cdd3e8; box-shadow: var(--sj-shadow); }
.sj-category-card::after { content: ""; position: absolute; width: 140px; height: 140px; right: -54px; bottom: -70px; border-radius: 50%; opacity: .12; background: var(--tone,var(--sj-violet)); }
.sj-category-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: linear-gradient(135deg,var(--tone,var(--sj-violet)),var(--tone2,var(--sj-blue))); font-size: 12px; font-weight: 950; letter-spacing: .06em; }
.sj-category-card h3 { margin: 30px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.sj-category-card p { margin: 0; color: var(--sj-soft); font-size: 12px; line-height: 1.65; }
.sj-category-card small { display: block; margin-top: 15px; color: #858eaa; font-size: 10px; font-weight: 800; }
.sj-empty-state { padding: 38px; border: 1px dashed #cbd2e4; border-radius: 22px; color: var(--sj-soft); background: rgba(255,255,255,.62); }
.sj-empty-state h3 { margin: 0 0 8px; color: var(--sj-ink); }
.sj-empty-state p { margin: 0; line-height: 1.65; }

/* Featured */
.sj-featured-wrap { padding: 82px 0; background: #fff; }
.sj-featured-card { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 440px; overflow: hidden; border: 1px solid var(--sj-line); border-radius: 30px; background: #fff; box-shadow: 0 28px 70px rgba(27,35,86,.10); }
.sj-featured-media { min-height: 390px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#f7f5ff,#f2fbff); }
.sj-featured-media img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.sj-placeholder-media { position: relative; width: 100%; min-height: 100%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 25% 25%,rgba(255,75,101,.22),transparent 30%), radial-gradient(circle at 80% 72%,rgba(0,200,216,.24),transparent 30%), linear-gradient(135deg,#f0edff,#edf8ff); }
.sj-placeholder-media img { width: 120px !important; height: auto !important; opacity: .92; object-fit: contain !important; }
.sj-featured-copy { padding: 46px; display: flex; flex-direction: column; justify-content: center; }
.sj-featured-copy h2 { margin: 15px 0; font-size: clamp(32px,3.4vw,52px); line-height: 1.06; letter-spacing: -.045em; }
.sj-featured-copy p { margin: 0; color: var(--sj-soft); font-size: 15px; line-height: 1.75; }
.sj-featured-copy .sj-button { align-self: flex-start; margin-top: 25px; }

/* Post cards */
.sj-post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.sj-post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--sj-line); border-radius: 22px; background: rgba(255,255,255,.82); transition: transform .2s ease, box-shadow .2s ease; }
.sj-post-card:hover { transform: translateY(-3px); box-shadow: var(--sj-shadow); }
.sj-post-card-media { display: flex; align-items: center; justify-content: center; width: 100%; flex: 0 0 auto; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg,#f7f5ff,#f2fbff); }
.sj-post-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.sj-post-card:hover .sj-post-card-media > img:not(.sj-fallback-emblem) { transform: scale(1.025); }
.sj-post-card-media .sj-placeholder-media { min-height: 100%; }
.sj-post-card-media .sj-placeholder-media img { width: 82px !important; }
.sj-post-card-body { display: block; flex: 1 1 auto; padding: 21px; }
.sj-post-card h3 { margin: 12px 0 9px; font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
.sj-post-card p { margin: 0; color: var(--sj-soft); font-size: 12px; line-height: 1.7; }
.sj-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 17px; color: #7e88a5; font-size: 10px; font-weight: 750; }
.sj-card-meta span + span::before { content: "•"; margin-right: 8px; color: #b1b7c9; }
.sj-category-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border: 1px solid rgba(86,48,204,.16); border-radius: 999px; color: #5c3cc0; background: #f4f1ff; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.sj-section-action { margin-top: 30px; display: flex; justify-content: center; }

/* Tools strip */
.sj-tools-strip { color: #fff; background: radial-gradient(circle at 90% 10%,rgba(0,211,227,.25),transparent 32%),linear-gradient(120deg,#11134f 0%,#432492 58%,#0e6ead 100%); }
.sj-tools-strip .sj-section-heading h2 { color: #fff; }
.sj-tools-strip .sj-section-heading p { color: #c4cbed; }
.sj-tools-strip .sj-eyebrow { color: #bec8eb; }
.sj-tools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.sj-tool-link { min-height: 160px; padding: 22px; border: 1px solid rgba(255,255,255,.17); border-radius: 20px; background: rgba(255,255,255,.08); transition: transform .2s ease, background .2s ease; }
.sj-tool-link:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); }
.sj-tool-link b { display: block; font-size: 18px; }
.sj-tool-link p { margin: 12px 0 0; color: #c7cfee; font-size: 12px; line-height: 1.65; }
.sj-tool-link span { display: block; margin-top: 24px; color: #fff; font-size: 11px; font-weight: 850; }

/* Archive, search, 404 */
.sj-page-shell { padding: 152px 0 90px; min-height: 72vh; }
.sj-archive-head,
.sj-search-head { max-width: 830px; margin-bottom: 40px; }
.sj-archive-description { margin-top: 18px; color: var(--sj-soft); font-size: 15px; line-height: 1.75; }
.sj-result-count { margin-top: 14px; color: #7b85a2; font-size: 12px; font-weight: 750; }
.sj-pagination { margin-top: 42px; }
.sj-pagination .nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sj-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 11px; border: 1px solid var(--sj-line); border-radius: 11px; background: #fff; font-size: 12px; font-weight: 850; }
.sj-pagination .current { color: #fff; border-color: var(--sj-ink); background: var(--sj-ink); }

/* Single article */
.sj-article-shell { padding: 145px 0 92px; background: #fff; }
.sj-article-head { max-width: 920px; margin: 0 auto 34px; text-align: center; }
.sj-breadcrumbs { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; color: #7b85a2; font-size: 10px; font-weight: 750; }
.sj-breadcrumbs span { color: #adb4c7; }
.sj-article-head h1 { margin: 16px 0 22px; font-size: clamp(42px,5.5vw,72px); line-height: 1.02; letter-spacing: -.055em; }
.sj-article-excerpt { max-width: 760px; margin: 0 auto; color: var(--sj-soft); font-size: 18px; line-height: 1.72; }
.sj-article-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 15px; margin-top: 24px; color: #7c86a2; font-size: 11px; font-weight: 750; }
.sj-author-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--sj-ink); }
.sj-author-initial { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: linear-gradient(135deg,var(--sj-violet),var(--sj-blue)); font-size: 11px; font-weight: 950; }
.sj-article-hero-image { width: min(1100px,calc(100% - 48px)); margin: 0 auto 45px; overflow: hidden; border: 1px solid var(--sj-line); border-radius: 28px; background: #f0f2fa; box-shadow: 0 24px 70px rgba(27,35,86,.08); }
.sj-article-hero-image img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.sj-article-layout { width: min(1060px,calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0,var(--sj-content)) 220px; gap: 58px; align-items: start; }
.sj-article-content { min-width: 0; }
.sj-article-content > *:first-child { margin-top: 0; }
.sj-article-content p,
.sj-article-content li { color: #2f395c; font-size: 17px; line-height: 1.82; }
.sj-article-content p { margin: 0 0 1.45em; }
.sj-article-content h2 { margin: 2.2em 0 .75em; font-size: clamp(28px,3vw,38px); line-height: 1.15; letter-spacing: -.035em; }
.sj-article-content h3 { margin: 1.8em 0 .7em; font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
.sj-article-content h4 { margin: 1.6em 0 .6em; font-size: 20px; }
.sj-article-content a { color: #3156c9; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sj-article-content ul,
.sj-article-content ol { margin: 0 0 1.7em; padding-left: 1.45em; }
.sj-article-content li { margin: .5em 0; }
.sj-article-content blockquote { margin: 2em 0; padding: 22px 24px; border-left: 4px solid var(--sj-violet); border-radius: 0 16px 16px 0; color: #343c61; background: #f5f3ff; }
.sj-article-content blockquote p:last-child { margin-bottom: 0; }
.sj-article-content pre { overflow: auto; padding: 20px; border-radius: 16px; color: #eaf0ff; background: #0d1638; font-size: 13px; line-height: 1.6; }
.sj-article-content code { padding: .12em .35em; border-radius: 5px; background: #eef0f7; font-family: Consolas, Monaco, monospace; font-size: .9em; }
.sj-article-content pre code { padding: 0; background: transparent; color: inherit; }
.sj-article-content table { width: 100%; margin: 1.8em 0; border-collapse: collapse; font-size: 14px; }
.sj-article-content th,
.sj-article-content td { padding: 12px; border: 1px solid var(--sj-line); text-align: left; vertical-align: top; }
.sj-article-content th { background: #f4f5fa; }
.sj-article-content figure { margin: 1.8em 0; }
.sj-article-content figcaption { margin-top: 8px; color: #7b85a1; font-size: 11px; line-height: 1.5; text-align: center; }
.sj-article-content .wp-block-image img { border-radius: 18px; }
.sj-article-content .wp-block-button__link { color: #fff; background: var(--sj-ink); border-radius: 12px; text-decoration: none; font-weight: 850; }
.sj-article-content .alignwide { width: min(1000px,calc(100vw - 48px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.sj-article-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.sj-article-aside { position: sticky; top: 112px; display: grid; gap: 14px; }
.sj-aside-card { padding: 18px; border: 1px solid var(--sj-line); border-radius: 17px; background: #f8f9fd; }
.sj-aside-card b { display: block; margin-bottom: 7px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.sj-aside-card p { margin: 0; color: var(--sj-soft); font-size: 11px; line-height: 1.6; }
.sj-source-box,
.sj-related-tool { margin-top: 42px; padding: 26px; border: 1px solid var(--sj-line); border-radius: 20px; background: #f8f9fd; }
.sj-source-box h2,
.sj-related-tool h2 { margin: 0 0 14px; font-size: 20px; }
.sj-source-list { margin: 0; padding-left: 20px; }
.sj-source-list li { margin: 8px 0; color: #465170; font-size: 13px; line-height: 1.55; }
.sj-source-list a { color: #3156c9; text-decoration: none; }
.sj-related-tool { position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg,#141a55,#5130b9 62%,#0872b6); }
.sj-related-tool::after { content: ""; position: absolute; width: 190px; height: 190px; right: -80px; bottom: -110px; border-radius: 50%; background: rgba(0,212,227,.22); }
.sj-related-tool h2 { color: #fff; }
.sj-related-tool p { position: relative; z-index: 2; margin: 0; color: #cbd2ef; font-size: 13px; line-height: 1.65; }
.sj-related-tool .sj-button { position: relative; z-index: 2; margin-top: 18px; color: var(--sj-ink); background: #fff; }
.sj-author-box { margin-top: 42px; padding: 25px; display: grid; grid-template-columns: auto 1fr; gap: 18px; border-top: 1px solid var(--sj-line); border-bottom: 1px solid var(--sj-line); }
.sj-author-box .sj-author-initial { width: 54px; height: 54px; font-size: 18px; }
.sj-author-box h2 { margin: 0 0 7px; font-size: 19px; }
.sj-author-box p { margin: 0; color: var(--sj-soft); font-size: 12px; line-height: 1.7; }
.sj-author-box a { display: inline-block; margin-top: 9px; color: #3156c9; font-size: 11px; font-weight: 850; }
.sj-related-section { padding: 75px 0; background: var(--sj-paper); }

/* Author archive */
.sj-author-profile { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; max-width: 800px; margin: 0 0 40px; padding: 26px; border: 1px solid var(--sj-line); border-radius: 22px; background: #fff; }
.sj-author-profile .sj-author-initial { width: 68px; height: 68px; font-size: 22px; }
.sj-author-profile h1 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.035em; }
.sj-author-profile p { margin: 0; color: var(--sj-soft); font-size: 13px; line-height: 1.7; }

/* Page */
.sj-standard-page { width: min(900px,calc(100% - 48px)); margin: 0 auto; }
.sj-standard-page h1 { margin: 0 0 35px; font-size: clamp(42px,5vw,64px); letter-spacing: -.05em; }

/* 404 */
.sj-404 { max-width: 760px; padding: 36px 0; }
.sj-404-mark { font-size: 12px; font-weight: 950; letter-spacing: .2em; color: var(--sj-violet); }
.sj-404 h1 { margin: 16px 0; font-size: clamp(48px,7vw,82px); line-height: .98; letter-spacing: -.06em; }
.sj-404 p { color: var(--sj-soft); font-size: 17px; line-height: 1.7; }
.sj-404-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* Footer */
.sj-site-footer { padding: 72px max(6vw,36px) 30px; color: #b8bfdc; background: #070d28; }
.sj-footer-inner { width: min(var(--sj-wide),100%); margin: 0 auto; }
.sj-footer-top { display: grid; grid-template-columns: 1fr minmax(520px,.95fr); gap: 60px; align-items: start; }
.sj-footer-brand img { width: 190px; }
.sj-footer-brand p { max-width: 330px; margin: 16px 0 0; color: #7782aa; font-size: 13px; line-height: 1.65; }
.sj-footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.sj-footer-links div { display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.sj-footer-links b { margin-bottom: 4px; color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.sj-footer-links a:hover { color: #fff; }
.sj-footer-bottom { margin-top: 64px; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #626d95; font-size: 11px; }

/* WordPress generated content */
.wp-caption { max-width: 100%; }
.wp-caption-text { color: #7b85a1; font-size: 11px; }
.sticky { }
.gallery-caption { }
.bypostauthor { }

/* Comments if enabled manually */
.sj-comments { margin-top: 45px; padding-top: 35px; border-top: 1px solid var(--sj-line); }
.sj-comments h2 { font-size: 24px; }
.sj-comments-list { padding-left: 0; list-style: none; }
.sj-comments-list li { margin: 18px 0; padding: 18px; border: 1px solid var(--sj-line); border-radius: 15px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1040px) {
  .sj-hero-grid { grid-template-columns: 1fr; }
  .sj-hero-panel { width: min(720px,100%); margin: 0 auto; }
  .sj-category-grid,.sj-post-grid { grid-template-columns: repeat(2,1fr); }
  .sj-featured-card { grid-template-columns: 1fr; }
  .sj-featured-media { min-height: 360px; }
  .sj-article-layout { grid-template-columns: 1fr; }
  .sj-article-aside { position: static; grid-template-columns: repeat(2,1fr); }
  .sj-footer-top { grid-template-columns: 1fr; }
  .sj-footer-links { max-width: 650px; }
}

@media (max-width: 760px) {
  .sj-site-header { top: 10px; width: calc(100% - 20px); min-height: 64px; padding: 0 13px 0 17px; border-radius: 18px; }
  .sj-brand-link,.sj-brand-link .custom-logo { width: 142px; }
  .sj-menu-button { display: flex; }
  .sj-main-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; padding: 18px; align-items: stretch; gap: 4px; border: 1px solid #e0e3ef; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(25,33,79,.14); }
  .sj-main-nav.is-open { display: flex; flex-direction: column; }
  .sj-main-nav a { padding: 12px; }
  .sj-main-nav .sj-nav-cta { margin-top: 6px; }
  .sj-wrap { width: calc(100% - 32px); }
  .sj-section { padding: 70px 0; }
  .sj-section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .sj-knowledge-hero { padding: 132px 0 70px; }
  .sj-hero-copy h1 { font-size: clamp(44px,13vw,62px); }
  .sj-hero-copy p { font-size: 16px; }
  .sj-search-form { align-items: stretch; flex-direction: column; }
  .sj-search-form button { width: 100%; }
  .sj-hero-panel { min-height: 390px; }
  .sj-hero-orbit { width: 340px; height: 340px; }
  .sj-hero-orbit.two { width: 265px; height: 265px; }
  .sj-knowledge-stage { padding: 26px; }
  .sj-category-grid,.sj-post-grid,.sj-tools-grid { grid-template-columns: 1fr; }
  .sj-featured-copy { padding: 28px; }
  .sj-featured-media { min-height: 280px; }
  .sj-page-shell { padding: 130px 0 72px; }
  .sj-article-shell { padding: 125px 0 72px; }
  .sj-article-head { width: calc(100% - 32px); }
  .sj-article-head h1 { font-size: clamp(38px,11vw,56px); }
  .sj-article-excerpt { font-size: 16px; }
  .sj-article-hero-image,.sj-article-layout { width: calc(100% - 32px); }
  .sj-article-content p,.sj-article-content li { font-size: 16px; }
  .sj-article-aside { grid-template-columns: 1fr; }
  .sj-author-box { grid-template-columns: 1fr; }
  .sj-footer-top { gap: 48px; }
  .sj-footer-links { grid-template-columns: repeat(2,1fr); }
  .sj-footer-bottom { flex-direction: column; }
  .sj-site-footer { padding: 60px 20px 26px; }
  .sj-ad-slot { width: calc(100% - 32px); }
}

@media (max-width: 460px) {
  .sj-footer-links { grid-template-columns: 1fr; }
  .sj-hero-orbit { width: 300px; height: 300px; }
  .sj-hero-orbit.two { width: 230px; height: 230px; }
  .sj-stage-logo { width: 90%; }
}
