/* WPTools Pro v8.4.0 - Fast, Responsive & Multi-Domain Differentiated Magazine Tutorial Stylesheet */
:root {
  --wpt-primary: #4f46e5;
  --wpt-primary-dark: #3730a3;
  --wpt-emerald: #059669;
  --wpt-bg: #f8fafc;
  --wpt-surface: #ffffff;
  --wpt-border: #e2e8f0;
  --wpt-text: #0f172a;
  --wpt-muted: #475569;
  --wpt-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wpt-font-head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--wpt-font-body);
  background: var(--wpt-bg);
  color: var(--wpt-text);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}
h1, h2, h3, .wpt-mag-lead-title, .wpt-post-title, .wpt-single-title {
  font-family: var(--wpt-font-head);
}
body.wpt-nav-locked,
body.wpt-modal-locked {
  overflow: hidden;
}
html.wpt-dark,
html.wpt-dark body,
body.wpt-high-contrast {
  --wpt-bg: #0f172a;
  --wpt-surface: #1e293b;
  --wpt-border: #334155;
  --wpt-text: #f8fafc;
  --wpt-muted: #cbd5e1;
}

a { color: var(--wpt-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--wpt-primary);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; }

.wpt-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--wpt-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  z-index: 10000;
}
.wpt-skip-link:focus { left: 12px; }
.wpt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wpt-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 600px) {
  .wpt-container { padding: 0 16px; }
}
.wpt-main-pad { padding-top: 28px; padding-bottom: 56px; }

/* Reading Progress */
.wpt-read-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--wpt-primary), var(--wpt-emerald));
  z-index: 9999; transition: width .1s linear;
}

/* Header & Clean Single-Row Navigation */
.wpt-site-header {
  background: var(--wpt-surface);
  border-bottom: 1px solid var(--wpt-border);
  position: sticky; top: 0; z-index: 70;
}
.wpt-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 66px;
}
.wpt-brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--wpt-text); text-decoration: none !important;
  min-width: 0; flex-shrink: 1;
}
.wpt-brand-logo {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; line-height: 0;
}
.wpt-brand-svg { width: 100%; height: 100%; display: block; }
.wpt-brand-text {
  display: flex; flex-direction: column; min-width: 0;
}
.wpt-brand-name {
  font-size: 16.5px; font-weight: 800; line-height: 1.2; color: var(--wpt-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wpt-brand-tag {
  font-size: 11px; color: var(--wpt-muted); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px;
}

.wpt-main-nav { flex-shrink: 0; }
.wpt-nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.wpt-nav-list li { flex-shrink: 0; }
.wpt-nav-list a {
  display: inline-flex; align-items: center; min-height: 38px;
  padding: 6px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--wpt-muted);
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.wpt-nav-list a:hover,
.wpt-nav-list li.current-menu-item > a,
.wpt-nav-list li.current-menu-ancestor > a,
.wpt-nav-list a[aria-current="page"] {
  background: rgba(79, 70, 229, 0.1);
  color: var(--wpt-primary);
  text-decoration: none;
}

.wpt-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wpt-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 7px 12px; border-radius: 9px;
  border: 1px solid var(--wpt-border); background: var(--wpt-bg);
  color: var(--wpt-muted); font-size: 12.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.wpt-icon-btn:hover { border-color: var(--wpt-primary); color: var(--wpt-primary); }
.wpt-icon-btn kbd {
  background: var(--wpt-surface); border: 1px solid var(--wpt-border);
  border-radius: 5px; padding: 1px 5px; font-size: 11px; font-family: inherit;
}
.wpt-theme-sun { display: none; }
html.wpt-dark .wpt-theme-moon,
body.wpt-high-contrast .wpt-theme-moon { display: none; }
html.wpt-dark .wpt-theme-sun,
body.wpt-high-contrast .wpt-theme-sun { display: inline-block; color: #fbbf24; }
.wpt-menu-toggle {
  display: none; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  border: 1px solid var(--wpt-border); background: var(--wpt-surface);
  color: var(--wpt-text); padding: 0 11px; border-radius: 9px; font-size: 18px; cursor: pointer;
}
.wpt-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 66px;
  background: rgba(15, 23, 42, 0.45);
  z-index: 60;
}
.wpt-nav-backdrop.open { display: block; }

@media (max-width: 960px) {
  .wpt-menu-toggle { display: inline-flex; }
  .wpt-main-nav {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    background: var(--wpt-surface);
    border-bottom: 1px solid var(--wpt-border);
    box-shadow: 0 20px 35px -15px rgba(15, 23, 42, 0.25);
    padding: 12px 16px 18px 16px;
    z-index: 68;
  }
  .wpt-main-nav.open { display: block; }
  .wpt-nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .wpt-nav-list a {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 15px;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .wpt-header-inner { gap: 10px; }
  .wpt-icon-btn { min-width: 44px; min-height: 44px; padding: 8px 11px; }
  .wpt-icon-btn kbd { display: none; }
}
@media (max-width: 480px) {
  .wpt-brand-tag { display: none; }
  .wpt-brand-logo { width: 34px; height: 34px; font-size: 15px; }
  .wpt-brand-name { font-size: 15.5px; }
  .wpt-theme-label { display: none; }
}

/* Posts Section, Horizontal Swipe Category Bar & Magazine Spotlight */
.wpt-posts-section { padding: 24px 0 56px 0; }
.wpt-section-header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.wpt-section-title {
  margin: 0; font-size: clamp(20px, 2.5vw, 26px); font-weight: 800;
  color: var(--wpt-text); line-height: 1.25;
}
.wpt-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wpt-cat-pill {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  background: var(--wpt-surface); border: 1px solid var(--wpt-border);
  color: var(--wpt-muted); text-decoration: none !important;
  white-space: nowrap; flex-shrink: 0;
  transition: background-color .15s, border-color .15s, color .15s;
}
.wpt-cat-pill.active, .wpt-cat-pill:hover {
  background: var(--wpt-primary); border-color: var(--wpt-primary); color: #fff;
}
@media (max-width: 768px) {
  .wpt-posts-section { padding: 18px 0 44px 0; }
  .wpt-cat-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .wpt-cat-pills::-webkit-scrollbar { display: none; }
  .wpt-cat-pill { min-height: 40px; padding: 8px 15px; }
}

/* Magazine Featured Lead Article */
.wpt-mag-lead {
  display: grid; grid-template-columns: 1.18fr 1fr;
  background: var(--wpt-surface); border: 1px solid var(--wpt-border);
  border-radius: 18px; overflow: hidden; margin-bottom: 24px;
  transition: border-color .15s, box-shadow .15s;
}
.wpt-mag-lead:hover { border-color: var(--wpt-primary); box-shadow: 0 14px 30px -14px rgba(15,23,42,0.18); }
.wpt-mag-lead-media { display: flex; background: #0f172a; min-width: 0; }
.wpt-mag-lead-thumb { width: 100%; height: 100%; min-height: 290px; aspect-ratio: 16 / 10; }
.wpt-mag-lead-body {
  padding: 26px 28px; display: flex; flex-direction: column; gap: 12px;
  justify-content: center; min-width: 0;
}
.wpt-mag-eyebrow { font-size: 12px; font-weight: 800; color: var(--wpt-emerald); letter-spacing: 0.02em; }
.wpt-mag-lead-title {
  margin: 0; font-size: clamp(19px, 2.4vw, 25px); font-weight: 800; line-height: 1.3;
  overflow-wrap: anywhere;
}
.wpt-mag-lead-title a { color: var(--wpt-text); text-decoration: none; }
.wpt-mag-lead-title a:hover { color: var(--wpt-primary); }
.wpt-mag-lead-excerpt { margin: 0; font-size: 14px; color: var(--wpt-muted); line-height: 1.65; }

@media (max-width: 860px) {
  .wpt-mag-lead { grid-template-columns: 1fr; border-radius: 16px; }
  .wpt-mag-lead-thumb { min-height: 195px; aspect-ratio: 16 / 9; }
  .wpt-mag-lead-body { padding: 18px; gap: 10px; }
}

.wpt-post-grid { display: grid; gap: 20px; }
.wpt-layout-magazine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wpt-layout-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wpt-layout-minimal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wpt-layout-editorial-list { grid-template-columns: minmax(0, 1fr); }
.wpt-layout-editorial-list .wpt-post-card { flex-direction: row; }
.wpt-layout-editorial-list .wpt-post-thumb { width: 280px; flex-shrink: 0; }

@media (max-width: 960px) {
  .wpt-layout-magazine, .wpt-layout-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 640px) {
  .wpt-layout-magazine, .wpt-layout-cards, .wpt-layout-minimal-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wpt-layout-editorial-list .wpt-post-card { flex-direction: column; }
  .wpt-layout-editorial-list .wpt-post-thumb { width: 100%; }
}

.wpt-post-card {
  background: var(--wpt-surface); border: 1px solid var(--wpt-border);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  min-width: 0; transition: border-color .15s, box-shadow .15s;
}
.wpt-post-card:hover { border-color: var(--wpt-primary); box-shadow: 0 10px 24px -12px rgba(15,23,42,0.16); }
.wpt-post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0f172a; text-decoration: none !important; }
.wpt-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.wpt-post-card:hover .wpt-post-thumb img, .wpt-mag-lead:hover .wpt-post-thumb img { transform: scale(1.03); }

/* Clean Branded Cover Fallback when thumbnail isn't set yet */
.wpt-thumb-fallback {
  width: 100%; height: 100%; padding: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
  border-top: 4px solid var(--wpt-primary);
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.wpt-thumb-fb-brand {
  font-size: 11px; font-weight: 800; color: #6ee7b7; letter-spacing: 0.04em; text-transform: uppercase;
}
.wpt-thumb-fb-title {
  font-size: 15px; font-weight: 800; color: #f8fafc; line-height: 1.35;
}
.wpt-mag-lead-thumb .wpt-thumb-fb-title { font-size: clamp(16px, 2vw, 20px); }

.wpt-post-card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.wpt-post-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--wpt-muted); }
.wpt-post-cat { font-weight: 700; color: var(--wpt-primary); }
.wpt-post-title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.38; overflow-wrap: anywhere; }
.wpt-post-title a { color: var(--wpt-text); text-decoration: none; }
.wpt-post-title a:hover { color: var(--wpt-primary); }
.wpt-post-excerpt { margin: 0; font-size: 13.5px; color: var(--wpt-muted); line-height: 1.6; }
.wpt-post-card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--wpt-border);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px;
}
.wpt-read-more { font-weight: 700; color: var(--wpt-primary); white-space: nowrap; }

/* Single Tutorial Page & Breadcrumbs */
.wpt-breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--wpt-muted); padding: 18px 0 14px 0;
  overflow-wrap: anywhere;
}
.wpt-bc-sep { color: var(--wpt-muted); opacity: 0.7; }
.wpt-bc-cur { font-weight: 700; color: var(--wpt-text); }

.wpt-single-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px; padding-bottom: 56px; align-items: start;
}
@media (max-width: 960px) { .wpt-single-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

.wpt-single-card, .wpt-legal-card {
  background: var(--wpt-surface); border: 1px solid var(--wpt-border);
  border-radius: 18px; padding: 28px; min-width: 0; overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .wpt-single-card, .wpt-legal-card { padding: 18px; border-radius: 14px; }
}

.wpt-single-meta-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--wpt-muted); margin-bottom: 10px; }
.wpt-meta-author-link { font-weight: 700; color: var(--wpt-text); text-decoration: none; border-bottom: 1px dotted var(--wpt-border); }
.wpt-meta-author-link:hover { color: var(--wpt-primary); border-bottom-color: var(--wpt-primary); text-decoration: none; }
.wpt-single-title, .wpt-page-title { margin: 0 0 12px 0; font-size: clamp(22px, 3vw, 32px); font-weight: 800; line-height: 1.25; }
.wpt-single-excerpt { margin: 0 0 16px 0; font-size: 15px; color: var(--wpt-muted); line-height: 1.65; }

.wpt-a11y-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid var(--wpt-border); margin-bottom: 18px; font-size: 12.5px;
}
.wpt-a11y-btn {
  min-height: 36px; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--wpt-border);
  background: var(--wpt-bg); color: var(--wpt-text); font-weight: 700; font-size: 12.5px; cursor: pointer;
}
.wpt-single-thumb { margin-bottom: 20px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #0f172a; }
.wpt-single-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* TOC */
.wpt-toc-box {
  background: var(--wpt-bg); border: 1px solid var(--wpt-border);
  border-radius: 14px; padding: 16px 18px; margin: 20px 0;
}
.wpt-toc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.wpt-toc-head button {
  background: none; border: none; color: var(--wpt-primary); font-size: 12.5px; font-weight: 700;
  cursor: pointer; min-height: 34px; padding: 4px 8px;
}
.wpt-toc-list { margin: 10px 0 0 18px; padding: 0; font-size: 13.5px; }
.wpt-toc-list li { margin-bottom: 6px; }
.wpt-toc-sub { margin-left: 14px; font-size: 13px; }

/* Article Body Typography & Responsive Tables/Embeds */
.wpt-tutorial-article { font-size: 16px; line-height: 1.78; color: var(--wpt-text); overflow-wrap: anywhere; }
.wpt-tutorial-article h2 { margin: 28px 0 12px 0; font-size: clamp(19px, 2.2vw, 22px); font-weight: 800; line-height: 1.3; }
.wpt-tutorial-article h3 { margin: 22px 0 10px 0; font-size: 17px; font-weight: 800; line-height: 1.35; }
.wpt-tutorial-article p { margin: 0 0 15px 0; }
.wpt-tutorial-article ul, .wpt-tutorial-article ol { margin: 0 0 16px 20px; padding: 0; }
.wpt-tutorial-article li { margin-bottom: 6px; }
.wpt-tutorial-article pre,
.wpt-tutorial-article code { max-width: 100%; overflow-x: auto; border-radius: 6px; }
.wpt-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border-radius: 10px; border: 1px solid var(--wpt-border); }
.wpt-table-wrap table { width: 100%; min-width: 480px; border-collapse: collapse; margin: 0; font-size: 13.5px; }
.wpt-tutorial-article table:not(.wpt-wrapped) { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13.5px; }
.wpt-tutorial-article th, .wpt-tutorial-article td { border: 1px solid var(--wpt-border); padding: 10px 12px; text-align: left; }
.wpt-tutorial-article th { background: var(--wpt-bg); font-weight: 700; }

/* Auto-Inserted In-Article Illustration Figure */
.wpt-inline-figure {
  margin: 24px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--wpt-border);
  background: var(--wpt-bg);
}
.wpt-inline-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.wpt-inline-figure figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--wpt-muted);
  border-top: 1px solid var(--wpt-border);
}

/* Auto Internal Link ("Baca Juga") & Footer Related Cards */
.wpt-baca-juga,
.wpt-related-inline {
  margin: 20px 0;
  padding: 13px 16px;
  background: var(--wpt-bg);
  border: 1px solid var(--wpt-border);
  border-left: 4px solid var(--wpt-primary);
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.55;
}
.wpt-bj-label {
  display: inline-block;
  font-weight: 800;
  color: var(--wpt-primary);
  margin-right: 4px;
}
.wpt-bj-link {
  font-weight: 700;
  color: var(--wpt-text);
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.35);
  text-underline-offset: 3px;
}
.wpt-bj-link:hover {
  color: var(--wpt-primary);
  text-decoration-color: var(--wpt-primary);
}
.wpt-related-footer {
  margin: 26px 0 18px 0;
  padding: 18px;
  background: var(--wpt-bg);
  border: 1px solid var(--wpt-border);
  border-radius: 14px;
}
.wpt-related-footer-title {
  margin: 0 0 12px 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--wpt-text);
}
.wpt-related-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px) {
  .wpt-related-footer-grid { grid-template-columns: 1fr; }
}
.wpt-related-footer-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--wpt-surface);
  border: 1px solid var(--wpt-border);
  text-decoration: none !important;
  transition: border-color .15s;
}
.wpt-related-footer-card:hover { border-color: var(--wpt-primary); }
.wpt-rf-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--wpt-primary);
  text-transform: uppercase;
}
.wpt-rf-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--wpt-text);
  line-height: 1.4;
}

/* Archive & Search Page Head */
.wpt-tools-page-head { margin-bottom: 24px; }
.wpt-tools-page-head h1 { margin: 0 0 8px 0; font-size: clamp(22px, 3vw, 28px); font-weight: 800; line-height: 1.25; }
.wpt-tools-page-head p { margin: 0; color: var(--wpt-muted); max-width: 680px; }

/* Freshness, Author Curation, FAQ, Tags, Sentiment, Comments, Sidebar */
.wpt-freshness-note {
  margin: 24px 0; padding: 16px 18px; background: var(--wpt-bg);
  border: 1px solid var(--wpt-border); border-radius: 14px; font-size: 13px;
}
.wpt-freshness-note p { margin: 8px 0 0 0; color: var(--wpt-muted); line-height: 1.6; }
.wpt-freshness-angle { color: var(--wpt-text) !important; font-size: 12.5px; }

.wpt-faq-section { margin: 28px 0; }
.wpt-faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.wpt-faq-item { border: 1px solid var(--wpt-border); border-radius: 12px; overflow: hidden; background: var(--wpt-surface); }
.wpt-faq-question {
  width: 100%; background: transparent; border: none; padding: 14px 16px; min-height: 46px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 700; text-align: left; color: var(--wpt-text); cursor: pointer;
}
.wpt-faq-answer { display: none; padding: 0 16px 14px 16px; font-size: 13.5px; color: var(--wpt-muted); }
.wpt-faq-item.open .wpt-faq-answer { display: block; }

.wpt-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 12.5px; }
.wpt-tag-link { padding: 5px 11px; background: var(--wpt-bg); border: 1px solid var(--wpt-border); border-radius: 8px; color: var(--wpt-muted); }

.wpt-sentiment-box {
  margin-top: 24px; padding: 16px; border-radius: 14px; background: var(--wpt-bg);
  border: 1px solid var(--wpt-border); display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; font-weight: 600;
}
.wpt-sentiment-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wpt-sentiment-btn {
  min-height: 40px; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--wpt-border);
  background: var(--wpt-surface); color: var(--wpt-text); font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.wpt-sentiment-btn.active { background: var(--wpt-emerald); border-color: var(--wpt-emerald); color: #fff; }
.wpt-sentiment-thanks { margin: 0; color: var(--wpt-emerald); font-size: 12.5px; }

/* Comments Styling */
.wpt-comments-area .comment-body {
  background: var(--wpt-bg); border: 1px solid var(--wpt-border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px;
}
.wpt-comments-area .comment-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.wpt-comments-area .comment-form input[type="text"],
.wpt-comments-area .comment-form input[type="email"],
.wpt-comments-area .comment-form input[type="url"],
.wpt-comments-area .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--wpt-border); border-radius: 10px;
  background: var(--wpt-bg); color: var(--wpt-text); font-family: inherit;
}
.wpt-comments-area .form-submit input[type="submit"] {
  background: var(--wpt-primary); color: #fff; border: none; padding: 11px 20px;
  min-height: 44px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 14px;
}

.wpt-single-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wpt-widget { background: var(--wpt-surface); border: 1px solid var(--wpt-border); border-radius: 16px; padding: 18px; }
.wpt-widget-title { margin: 0 0 12px 0; font-size: 15px; font-weight: 800; }
.wpt-side-tools-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wpt-side-tools-list a {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 12px;
  border-radius: 10px; background: var(--wpt-bg); border: 1px solid var(--wpt-border);
  text-decoration: none !important;
}
.wpt-side-tools-list a:hover { border-color: var(--wpt-primary); }
.wpt-side-tools-list strong { font-size: 13.5px; color: var(--wpt-text); line-height: 1.35; }
.wpt-side-tools-list span { font-size: 11.5px; color: var(--wpt-muted); }

/* Pagination Styling */
.wpt-pagination { margin-top: 30px; display: flex; justify-content: center; }
.wpt-pagination .navigation,
.wpt-pagination .nav-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
}
.wpt-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 6px 13px; border-radius: 10px;
  background: var(--wpt-surface); border: 1px solid var(--wpt-border);
  color: var(--wpt-text); font-size: 13px; font-weight: 700; text-decoration: none !important;
}
.wpt-pagination .page-numbers:hover { border-color: var(--wpt-primary); color: var(--wpt-primary); }
.wpt-pagination .page-numbers.current {
  background: var(--wpt-primary); border-color: var(--wpt-primary); color: #fff;
}

/* Inline / 404 Search Box */
.wpt-inline-search-form {
  max-width: 460px; margin: 16px auto; display: flex; gap: 8px;
}
.wpt-inline-search-form input {
  flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--wpt-border);
  border-radius: 10px; background: var(--wpt-bg); color: var(--wpt-text);
}
.wpt-inline-search-form button {
  background: var(--wpt-primary); color: #fff; border: none;
  padding: 10px 18px; min-height: 44px; border-radius: 10px; font-weight: 700; cursor: pointer;
}
@media (max-width: 480px) {
  .wpt-inline-search-form, .wpt-search-dialog-form { flex-direction: column; }
}

/* Footer */
.wpt-site-footer {
  background: #0f172a; color: #cbd5e1; padding: 40px 0 28px 0; font-size: 13px;
}
body.wpt-has-sticky-ad .wpt-site-footer { padding-bottom: 84px; }
.wpt-footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 720px) { .wpt-footer-top { grid-template-columns: 1fr; gap: 22px; } }
.wpt-footer-about strong { color: #fff; font-size: 16px; }
.wpt-footer-about p { margin: 8px 0; color: #94a3b8; line-height: 1.65; }
.wpt-footer-nav-wrap h4 { margin: 0 0 12px 0; color: #fff; font-size: 14px; }
.wpt-footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
@media (max-width: 420px) { .wpt-footer-links { grid-template-columns: 1fr; } }
.wpt-footer-links a { display: inline-flex; align-items: center; min-height: 32px; color: #cbd5e1; }
.wpt-footer-links li.current-menu-item > a,
.wpt-footer-links a[aria-current="page"] { color: #fff; font-weight: 700; text-decoration: underline; }
.wpt-footer-bottom {
  padding-top: 18px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #94a3b8;
}

/* Ad Slots, Modal, Cookie, Back to Top */
.wpt-ad-slot { max-width: 1160px; margin: 14px auto; padding: 8px 20px; text-align: center; overflow: hidden; }
.wpt-ad-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--wpt-muted); margin-bottom: 4px; }

.wpt-search-modal {
  position: fixed; inset: 0; background: rgba(15,23,42,0.72);
  display: none; align-items: flex-start; justify-content: center; padding: 80px 16px; z-index: 999;
}
.wpt-search-modal.open { display: flex; }
.wpt-search-dialog {
  width: 100%; max-width: 560px; background: var(--wpt-surface);
  border-radius: 16px; padding: 20px; border: 1px solid var(--wpt-border);
}
.wpt-search-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wpt-close-btn {
  background: none; border: none; font-size: 24px; line-height: 1;
  min-width: 40px; min-height: 40px; cursor: pointer; color: var(--wpt-muted);
}
.wpt-search-dialog-form { display: flex; gap: 8px; }
.wpt-search-dialog-form input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--wpt-border);
  background: var(--wpt-bg); color: var(--wpt-text); font-size: 14px;
}
.wpt-search-dialog-form button {
  background: var(--wpt-primary); color: #fff; border: none;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; font-weight: 700; cursor: pointer;
}

.wpt-cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 780px; margin: 0 auto;
  background: #0f172a; color: #f8fafc; padding: 14px 18px; border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 12.5px; z-index: 900;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28); border: 1px solid rgba(255,255,255,0.12);
}
.wpt-cookie-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.wpt-cookie-copy strong { font-size: 13px; color: #fff; }
.wpt-cookie-copy a { color: #93c5fd; text-decoration: underline; }
.wpt-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }
.wpt-cookie-btn-primary {
  background: var(--wpt-emerald); color: #fff; border: none; padding: 8px 14px; min-height: 38px;
  border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 12.5px;
}
.wpt-cookie-btn-ghost {
  background: rgba(255,255,255,0.1); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 12px; min-height: 38px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 12px;
}
.wpt-cookie-btn-ghost:hover { background: rgba(255,255,255,0.18); color: #fff; }
body.wpt-has-sticky-ad .wpt-cookie-banner { bottom: 72px; }
@media (max-width: 680px) {
  .wpt-cookie-banner { flex-direction: column; align-items: stretch; gap: 10px; font-size: 12px; }
  .wpt-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .wpt-cookie-btn-primary { grid-column: 1 / -1; width: 100%; }
}

.wpt-footer-pref-btn {
  background: rgba(255,255,255,0.08); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.wpt-footer-pref-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }

.wpt-consent-dialog { max-width: 520px; }
.wpt-consent-desc { margin: 0 0 14px; font-size: 13px; color: var(--wpt-muted); line-height: 1.5; }
.wpt-consent-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.wpt-consent-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 12px; border: 1px solid var(--wpt-border); border-radius: 10px; background: var(--wpt-bg); cursor: pointer;
}
.wpt-consent-item strong { display: block; font-size: 13.5px; color: var(--wpt-text); margin-bottom: 2px; }
.wpt-consent-item small { display: block; font-size: 12px; color: var(--wpt-muted); line-height: 1.45; }
.wpt-consent-item input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.wpt-consent-foot { display: flex; justify-content: flex-end; }
.wpt-consent-dialog .wpt-cookie-btn-primary { background: var(--wpt-primary); min-height: 42px; padding: 9px 18px; }

.wpt-back-top {
  position: fixed; right: 18px; bottom: 20px; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid var(--wpt-border);
  background: var(--wpt-surface); color: var(--wpt-text); font-weight: 800; font-size: 16px; cursor: pointer;
  align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(15,23,42,0.16); z-index: 800;
}
body.wpt-has-sticky-ad .wpt-back-top { bottom: 74px; }

.wpt-sitemap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .wpt-sitemap-grid { grid-template-columns: 1fr; } }
.wpt-sitemap-cols { columns: 2; column-gap: 24px; }
@media (max-width: 640px) { .wpt-sitemap-cols { columns: 1; } }
.wpt-empty-state { background: var(--wpt-surface); border: 1px dashed var(--wpt-border); border-radius: 16px; padding: 28px; text-align: center; }

/* Prevent iOS Safari zoom when focusing inputs on mobile */
@media (max-width: 768px) {
  input[type="search"],
  input[type="text"],
  input[type="email"],
  input[type="url"],
  textarea {
    font-size: 16px !important;
  }
}

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

/* Comments & Sitemap Utilities (moved from inline styles) */
.wpt-comments-area { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--wpt-border); }
.wpt-comments-title { margin-bottom: 16px; }
.wpt-comments-list { list-style: none; margin: 0 0 24px 0; padding: 0; }
.wpt-comments-note { font-size: 12.5px; color: var(--wpt-muted); }
.wpt-sitemap-posts { margin-top: 24px; }

/* Code / Formula Block Copy Wrapper */
.wpt-code-wrap { position: relative; margin: 16px 0; }
.wpt-code-wrap pre {
  margin: 0; padding: 16px 76px 16px 16px;
  background: #0f172a; color: #f8fafc; border-radius: 10px;
  font-size: 13px; line-height: 1.6; overflow-x: auto;
}
.wpt-copy-code-btn {
  position: absolute; top: 10px; right: 10px;
  min-height: 30px; padding: 4px 10px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(30,41,59,0.92);
  color: #e2e8f0; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.wpt-copy-code-btn:hover { background: var(--wpt-primary); border-color: var(--wpt-primary); color: #fff; }

/* Clean Print Layout for Tutorial Readers */
@media print {
  .wpt-read-progress,
  .wpt-site-header,
  .wpt-nav-backdrop,
  .wpt-single-sidebar,
  .wpt-a11y-toolbar,
  .wpt-sentiment-box,
  .wpt-comments-area,
  .wpt-ad-slot,
  .wpt-cookie-banner,
  .wpt-back-top,
  .wpt-search-modal,
  .wpt-copy-code-btn,
  .wpt-site-footer {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .wpt-single-grid { display: block; }
  .wpt-single-card { border: none; padding: 0; }
}

/* Interactive Mini Calculators */
.wpt-calc-box {
  margin: 26px 0;
  padding: 20px;
  background: var(--wpt-surface);
  border: 1px solid var(--wpt-border);
  border-top: 4px solid var(--wpt-primary);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.wpt-calc-head { margin-bottom: 14px; }
.wpt-calc-badge {
  display: inline-block;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.wpt-calc-head h3 { margin: 4px 0 6px; font-size: 18px; color: var(--wpt-text); }
.wpt-calc-head p { margin: 0; font-size: 13.5px; color: var(--wpt-muted); }
.wpt-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.wpt-calc-field { display: flex; flex-direction: column; gap: 5px; }
.wpt-calc-field span { font-size: 12px; font-weight: 700; color: var(--wpt-muted); }
.wpt-calc-in {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--wpt-border);
  border-radius: 9px;
  background: var(--wpt-bg);
  color: var(--wpt-text);
  font-size: 14px;
  font-weight: 600;
}
.wpt-calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
}
.wpt-calc-stat {
  background: var(--wpt-bg);
  border: 1px solid var(--wpt-border);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wpt-calc-stat span { font-size: 11.5px; color: var(--wpt-muted); font-weight: 600; }
.wpt-calc-stat strong { font-size: 15.5px; color: var(--wpt-text); font-weight: 800; }
.wpt-calc-stat.wpt-calc-ok { background: #ecfdf5; border-color: #a7f3d0; }
.wpt-calc-stat.wpt-calc-ok strong { color: #065f46; }
.wpt-calc-stat.wpt-calc-warn { background: #fffbeb; border-color: #fde68a; }
.wpt-calc-stat.wpt-calc-warn strong { color: #92400e; }

/* Official Editorial Sources Box */
.wpt-sources-box {
  margin: 22px 0;
  padding: 16px 18px;
  background: var(--wpt-bg);
  border: 1px solid var(--wpt-border);
  border-left: 4px solid var(--wpt-emerald);
  border-radius: 12px;
}
.wpt-sources-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--wpt-text);
}
.wpt-sources-policy { font-size: 12.5px; font-weight: 700; }
.wpt-sources-box ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.wpt-sources-box li { margin-bottom: 4px; }

/* Upgraded Author E-E-A-T Card */
.wpt-eeat-card {
  margin: 24px 0;
  padding: 18px;
  background: var(--wpt-surface);
  border: 1px solid var(--wpt-border);
  border-radius: 14px;
}
.wpt-eeat-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.wpt-eeat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--wpt-primary);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wpt-eeat-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--wpt-border);
  flex-shrink: 0;
}
.wpt-eeat-who { min-width: 0; }
.wpt-eeat-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wpt-eeat-name-row strong { font-size: 15px; color: var(--wpt-text); }
.wpt-eeat-role {
  display: inline-block;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.wpt-eeat-date { display: block; font-size: 12px; color: var(--wpt-muted); margin-top: 2px; }
.wpt-eeat-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
}

/* AJAX Contact Form Box */
.wpt-contact-form-box {
  margin-top: 26px;
  padding: 22px;
  background: var(--wpt-bg);
  border: 1px solid var(--wpt-border);
  border-radius: 14px;
}
.wpt-contact-form-box h2 { margin-top: 0; margin-bottom: 6px; font-size: 19px; }
.wpt-contact-sub { font-size: 13.5px; color: var(--wpt-muted); margin: 0 0 16px; }
.wpt-contact-form { display: flex; flex-direction: column; gap: 13px; }
.wpt-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) { .wpt-contact-grid { grid-template-columns: 1fr; } }
.wpt-cf-field { display: flex; flex-direction: column; gap: 5px; }
.wpt-cf-field span { font-size: 12.5px; font-weight: 700; color: var(--wpt-text); }
.wpt-cf-field input,
.wpt-cf-field select,
.wpt-cf-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--wpt-border);
  border-radius: 9px;
  background: var(--wpt-surface);
  color: var(--wpt-text);
  font-size: 14px;
  font-family: inherit;
}
.wpt-cf-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.wpt-cf-submit {
  background: var(--wpt-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.wpt-cf-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.wpt-cf-status {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
}
.wpt-cf-status.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.wpt-cf-status.err { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }

html.wpt-dark .wpt-calc-badge,
html.wpt-dark .wpt-eeat-role,
body.wpt-high-contrast .wpt-calc-badge,
body.wpt-high-contrast .wpt-eeat-role {
  background: #312e81;
  color: #e0e7ff;
}
html.wpt-dark .wpt-calc-stat.wpt-calc-ok,
body.wpt-high-contrast .wpt-calc-stat.wpt-calc-ok { background: #064e3b; border-color: #059669; }
html.wpt-dark .wpt-calc-stat.wpt-calc-ok strong,
body.wpt-high-contrast .wpt-calc-stat.wpt-calc-ok strong { color: #a7f3d0; }
html.wpt-dark .wpt-calc-stat.wpt-calc-warn,
body.wpt-high-contrast .wpt-calc-stat.wpt-calc-warn { background: #78350f; border-color: #d97706; }
html.wpt-dark .wpt-calc-stat.wpt-calc-warn strong,
body.wpt-high-contrast .wpt-calc-stat.wpt-calc-warn strong { color: #fde68a; }

/* Auto-Generated SVG Step Flowchart Diagram */
.wpt-diagram-box {
  margin: 22px 0;
  padding: 16px;
  background: var(--wpt-surface);
  border: 1px solid var(--wpt-border);
  border-radius: 14px;
}
.wpt-diagram-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.wpt-diagram-badge {
  display: inline-block;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
}
.wpt-diagram-title { font-size: 14px; color: var(--wpt-text); }
.wpt-diagram-svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.wpt-diagram-cap { margin: 9px 0 0; font-size: 12px; color: var(--wpt-muted); line-height: 1.45; }
.wpt-eeat-author-link { color: inherit; text-decoration: none; }
.wpt-eeat-author-link:hover { text-decoration: underline; }
.wpt-eeat-reviewer { font-weight: 700; color: var(--wpt-text); }

html.wpt-dark .wpt-diagram-badge,
body.wpt-high-contrast .wpt-diagram-badge { background: #312e81; color: #e0e7ff; }
html.wpt-dark .wpt-diagram-box,
body.wpt-high-contrast .wpt-diagram-box { background: #0f172a; }

/* Interactive Prep Checklist */
.wpt-chk-box {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--wpt-bg);
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
}
.wpt-chk-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.wpt-chk-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 8px;
}
.wpt-chk-head strong { font-size: 15px; color: var(--wpt-text); }
.wpt-chk-reset {
  background: transparent;
  border: 1px solid var(--wpt-border);
  border-radius: 6px;
  color: var(--wpt-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
}
.wpt-chk-progress-wrap {
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.wpt-chk-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #4f46e5);
  transition: width 0.2s ease;
}
.wpt-chk-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--wpt-muted);
  margin-bottom: 10px;
}
.wpt-chk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wpt-chk-list li label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--wpt-text);
  cursor: pointer;
}
.wpt-chk-list li input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--wpt-primary);
  flex-shrink: 0;
}
.wpt-chk-list li.done span {
  text-decoration: line-through;
  color: var(--wpt-muted);
}

/* Editorial Correction Mini Form */
.wpt-corr-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--wpt-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.wpt-corr-toggle-btn:hover { text-decoration: underline; }
.wpt-corr-box {
  margin-top: 12px;
  padding: 14px;
  background: var(--wpt-surface);
  border: 1px solid var(--wpt-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.wpt-corr-head strong { font-size: 13px; color: var(--wpt-text); }
.wpt-corr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 600px) { .wpt-corr-grid { grid-template-columns: 1fr; } }
.wpt-corr-box select,
.wpt-corr-box input,
.wpt-corr-box textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--wpt-border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--wpt-bg);
  color: var(--wpt-text);
  font-family: inherit;
}
.wpt-corr-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wpt-corr-submit {
  background: var(--wpt-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.wpt-corr-status { font-size: 12.5px; font-weight: 600; }
.wpt-corr-status.ok { color: #059669; }
.wpt-corr-status.err { color: #dc2626; }

/* Smart 404 & Footer Bottom Links */
.wpt-404-cats { margin-top: 16px; }
.wpt-404-cats-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--wpt-muted); margin-bottom: 8px; }
.wpt-404-cats-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wpt-404-cat-link {
  display: inline-block;
  background: var(--wpt-surface);
  border: 1px solid var(--wpt-border);
  color: var(--wpt-text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.wpt-404-cat-link:hover { border-color: var(--wpt-primary); color: var(--wpt-primary); }
.wpt-404-recent { margin-top: 30px; }
.wpt-footer-bottom-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wpt-footer-pref-link { color: inherit; text-decoration: none; font-weight: 600; }
.wpt-footer-pref-link:hover { text-decoration: underline; }

html.wpt-dark .wpt-chk-box,
body.wpt-high-contrast .wpt-chk-box { background: #1e293b; border-color: #334155; }
html.wpt-dark .wpt-chk-badge,
body.wpt-high-contrast .wpt-chk-badge { background: #064e3b; color: #a7f3d0; }
html.wpt-dark .wpt-chk-progress-wrap,
body.wpt-high-contrast .wpt-chk-progress-wrap { background: #334155; }
html.wpt-dark .wpt-nav-list a:hover,
html.wpt-dark .wpt-nav-list li.current-menu-item > a,
html.wpt-dark .wpt-nav-list a[aria-current="page"],
body.wpt-high-contrast .wpt-nav-list a:hover,
body.wpt-high-contrast .wpt-nav-list li.current-menu-item > a,
body.wpt-high-contrast .wpt-nav-list a[aria-current="page"] {
  background: rgba(148, 163, 184, 0.16);
  color: #f8fafc;
}
html.wpt-dark a:not(.wpt-cat-pill):not(.wpt-read-more):not(.wpt-bj-link),
body.wpt-high-contrast a:not(.wpt-cat-pill):not(.wpt-read-more):not(.wpt-bj-link) {
  color: #93c5fd;
}
html.wpt-dark .wpt-brand-name,
html.wpt-dark .wpt-post-title a,
html.wpt-dark .wpt-mag-lead-title a,
html.wpt-dark .wpt-side-tools-list strong,
html.wpt-dark .wpt-404-cat-link {
  color: var(--wpt-text);
}
html.wpt-dark .wpt-post-cat,
html.wpt-dark .wpt-read-more,
html.wpt-dark .wpt-bj-label,
html.wpt-dark .wpt-rf-cat {
  color: #a5b4fc;
}
html.wpt-dark .wpt-cf-status.ok { background: #064e3b; border-color: #059669; color: #d1fae5; }
html.wpt-dark .wpt-cf-status.err { background: #4c0519; border-color: #be123c; color: #ffe4e6; }
html.wpt-dark .wpt-site-footer { background: #020617; border-top: 1px solid #1e293b; }

@media print {
  .wpt-calc-box,
  .wpt-chk-box,
  .wpt-corr-toggle-btn,
  .wpt-corr-box,
  .wpt-contact-form-box,
  .wpt-footer-pref-btn {
    display: none !important;
  }
}

/* Multi-Domain Header & Card Structural Variants (v8.4.0) */
body.wpt-hdr-accent_top .wpt-site-header {
  border-top: 4px solid var(--wpt-primary);
  border-bottom: 1px solid var(--wpt-border);
}
body.wpt-hdr-solid_brand .wpt-site-header {
  background: var(--wpt-primary-dark);
  border-bottom-color: rgba(255,255,255,0.14);
}
body.wpt-hdr-solid_brand .wpt-brand-name,
body.wpt-hdr-solid_brand .wpt-nav-list a {
  color: #f8fafc;
}
body.wpt-hdr-solid_brand .wpt-brand-tag {
  color: rgba(248,250,252,0.78);
}
body.wpt-hdr-solid_brand .wpt-nav-list a:hover,
body.wpt-hdr-solid_brand .wpt-nav-list a[aria-current="page"] {
  background: rgba(255,255,255,0.16);
  color: #ffffff;
}
body.wpt-hdr-solid_brand .wpt-icon-btn,
body.wpt-hdr-solid_brand .wpt-menu-toggle {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: #f8fafc;
}
body.wpt-hdr-solid_brand .wpt-icon-btn kbd {
  background: rgba(15,23,42,0.35);
  border-color: rgba(255,255,255,0.22);
  color: #f8fafc;
}
body.wpt-hdr-centered_masthead .wpt-site-header {
  border-top: 2px solid var(--wpt-text);
  border-bottom: 3px double var(--wpt-border);
}
@media (max-width: 960px) {
  body.wpt-hdr-solid_brand .wpt-main-nav a { color: var(--wpt-text); }
  body.wpt-hdr-solid_brand .wpt-main-nav a:hover,
  body.wpt-hdr-solid_brand .wpt-main-nav a[aria-current="page"] { color: var(--wpt-primary); background: rgba(15,23,42,0.06); }
}

body.wpt-card-sharp_editorial .wpt-post-card,
body.wpt-card-sharp_editorial .wpt-mag-lead {
  border-radius: 6px;
  border-top: 3px solid var(--wpt-primary);
}
body.wpt-card-elevated_clean .wpt-post-card,
body.wpt-card-elevated_clean .wpt-mag-lead {
  border-radius: 14px;
  border-color: transparent;
  box-shadow: 0 10px 26px -14px rgba(15,23,42,0.18), 0 1px 4px rgba(15,23,42,0.05);
}
html.wpt-dark body.wpt-card-elevated_clean .wpt-post-card,
html.wpt-dark body.wpt-card-elevated_clean .wpt-mag-lead {
  border-color: var(--wpt-border);
  box-shadow: 0 12px 26px -14px rgba(2,6,23,0.65);
}
body.wpt-card-bordered_classic .wpt-post-card,
body.wpt-card-bordered_classic .wpt-mag-lead {
  border-radius: 10px;
  border-width: 1.5px;
}

