/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOKENS & BASE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --c0: #080808;
  --c1: #141414;
  --c2: #222222;
  --c3: #383838;
  --c4: #555555;
  --c5: #7a7a7a;
  --c6: #a0a0a0;
  --c7: #c4c4c4;
  --c8: #dcdcdc;
  --c9: #efefef;
  --ca: #f6f6f5;
  --cb: #fafaf9;
  --cc: #ffffff;

  --jp:   'Noto Sans JP', 'BIZ UDGothic', sans-serif;
  --cond: 'Barlow Condensed', sans-serif;
  --disp: 'Bebas Neue', sans-serif;

  --e1: cubic-bezier(0.16, 1, 0.3, 1);
  --e2: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --e3: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cb);
  color: var(--c1);
  font-family: var(--jp);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.8;
}

body::before {
  content:'';position:fixed;inset:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events:none;z-index:9999;opacity:.5;
}

::-webkit-scrollbar{width:3px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--c7)}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAV
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 60px;
  background: rgba(250,250,249,.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c8);
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.nav-logo {
  font-family: var(--cond);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c0);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nav-logo-sub {
  font-family: var(--jp);
  font-size: .56rem;
  font-weight: 300;
  letter-spacing: .22em;
  color: var(--c6);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BLOG ARTICLE LAYOUT & TYPOGRAPHY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 40px 100px;
  position: relative;
  z-index: 10;
}

.article-header {
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--c8);
  animation: fadeUp 0.8s var(--e1) forwards;
}

.article-h1 {
  font-family: var(--jp);
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--c0);
  margin-bottom: 24px;
}

.article-content {
  animation: fadeUp 0.8s var(--e1) 0.15s forwards;
  opacity: 0;
}

/* Base Paragraphs / Emphasized Text */
.entry-content p {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 2.1;
  color: var(--c2);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.entry-content em {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(255, 225, 120, 0.7) 60%);
  color: var(--c0);
  padding: 0 4px;
}

/* Headings */
.entry-content h2 {
  margin: 80px 0 40px;
  padding-left: 20px;
  border-left: 4px solid var(--c0);
  font-family: var(--jp);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c0);
  line-height: 1.4;
}

.entry-content h3 {
  font-family: var(--jp);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c0);
  margin: 56px 0 24px;
  border-bottom: 2px solid var(--c0);
  padding-bottom: 12px;
}

/* Lists */
.entry-content ul {
  list-style: none;
  margin: 0 0 32px 0;
  padding: 0;
}

.entry-content ul > li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--c2);
}

.entry-content ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 2px;
  background: var(--c0);
}

.entry-content ul ul {
  margin-top: 12px;
  margin-bottom: 0;
  padding-left: 12px;
}
.entry-content ul ul > li::before {
  width: 6px; height: 6px; border-radius: 50%; top: 10px; background: var(--c6);
}

/* Links */
.entry-content a {
  color: var(--c0);
  text-decoration: none;
  border-bottom: 1px solid var(--c0);
  transition: color 0.2s, border-color 0.2s;
  font-weight: 500;
}
.entry-content a:hover {
  color: var(--c5);
  border-color: var(--c5);
}

/* Blockquote */
.entry-content blockquote {
  margin: 40px 0;
  padding: 24px 32px;
  background: var(--ca);
  border-left: 4px solid var(--c7);
  color: var(--c4);
  font-size: 1.05rem;
  font-style: italic;
}
.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Code & Pre */
.entry-content code {
  font-family: 'Consolas', 'Courier New', monospace;
  background: var(--c9);
  color: var(--c2);
  padding: 2px 6px;
  font-size: 0.9em;
  border-radius: 4px;
}
.entry-content pre {
  background: var(--c1);
  color: var(--cc);
  padding: 32px;
  overflow-x: auto;
  margin: 40px 0;
  border-radius: 4px;
}
.entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Images & Figures */
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border: 1px solid var(--c8);
}
.entry-content figure {
  margin: 40px 0;
}
.entry-content figure img {
  margin: 0;
}
.entry-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--c6);
  margin-top: 12px;
}

/* Horizontal Rule */
.entry-content hr {
  border: none;
  height: 1px;
  background: var(--c8);
  margin: 56px 0;
}

/* Ordered List */
.entry-content ol {
  counter-reset: article-counter;
  list-style: none;
  margin: 0 0 40px 0;
  padding: 0;
}
.entry-content ol > li {
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--c2);
}
.entry-content ol > li::before {
  counter-increment: article-counter;
  content: "0" counter(article-counter);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--c7);
  letter-spacing: -0.05em;
}

/* H4, H5 */
.entry-content h4 {
  font-family: var(--jp);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c0);
  margin: 48px 0 16px;
}
.entry-content h5 {
  font-family: var(--jp);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c3);
  margin: 40px 0 16px;
}

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 48px;
  font-size: 1rem;
  background: var(--cc);
  box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}

.entry-content th {
  background: var(--c0);
  color: var(--cc);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  border: 1px solid var(--c0);
  text-align: left !important;
}

.entry-content td {
  padding: 16px 20px;
  border: 1px solid var(--c8);
  color: var(--c2);
  line-height: 1.6;
}

/* removed table hover */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CTA BAND
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-cta-band {
  background: var(--c0);
  color: var(--cc);
  padding: 48px;
  margin: 64px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.article-cta-copy h2 {
  font-family: var(--jp);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--cc);
}
.article-cta-copy p {
  font-size: 1rem;
  color: var(--c8);
  line-height: 1.8;
  margin: 0;
}
.article-cta-action {
  position: relative;
  flex-shrink: 0;
}
.article-cta-action .cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-stack {
  display: grid;
  gap: 16px;
}
.cta-note {
  margin: 0;
  color: var(--c8);
  font-size: 0.95rem;
  line-height: 1.7;
}
/* Button Component: CTA Pill */
.btn-cta {
  display: inline-flex;
  align-items: center;
  background: var(--cc);
  color: var(--c0);
  padding: 8px 8px 8px 32px;
  border-radius: 40px;
  font-family: var(--jp);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  gap: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-cta .circle-icon {
  width: 48px; height: 48px;
  background: var(--c0);
  color: var(--cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--e2);
}
.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}
.btn-cta:hover .circle-icon {
  transform: translateX(4px) scale(1.05);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TABLE OF CONTENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-toc {
  background: var(--ca);
  border-top: 4px solid var(--c0);
  padding: 40px;
  margin: 64px 0;
}
.article-toc-head {
  margin-bottom: 24px;
}
.article-toc-head h2 {
  font-family: var(--jp);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c0);
  margin-bottom: 0;
}
.article-toc-list {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
  margin: 0;
}
.article-toc-list > li {
  position: relative;
  counter-increment: toc-counter;
  margin-bottom: 16px;
  padding-left: 32px;
}
.article-toc-list > li::before {
  content: counter(toc-counter) ".";
  position: absolute;
  left: 0; top: 0;
  font-family: var(--cond);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--c5);
}
.article-toc-list a {
  text-decoration: none;
  border-bottom: none !important;
  color: var(--c0);
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s, color 0.2s;
}
.article-toc-list a:hover {
  color: var(--c5);
  transform: translateX(4px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SHARE BAND
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-share-band {
  position: relative;
  background: var(--ca);
  padding: 48px;
  margin: 64px 0;
  border-top: 4px solid var(--c0);
  overflow: hidden;
}
.article-share-copy {
  margin-bottom: 24px;
}
.section-kicker {
  font-family: var(--cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(201, 168, 76, 0.08);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 8px;
}
.article-share-copy h2 {
  font-family: var(--jp);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c0);
  margin-bottom: 12px;
}
.article-share-copy p {
  color: var(--c4);
  font-size: 1rem;
  margin: 0;
}
.article-share-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.share-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cc);
  border: 1px solid var(--c0);
  color: var(--c0);
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--c0);
  transition: box-shadow 0.2s, transform 0.2s;
}
.share-chip:hover {
  background: var(--cc);
  color: var(--c0);
  box-shadow: 5px 5px 0 var(--c0);
  transform: translate(-2px, -2px);
}

.chip-icon {
  width: 18px;
  height: 18px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RELATED POSTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--c8);
}
.post-card-grid {
  display: flex;
  flex-direction: column;
  background: var(--cc);
  border: 1px solid var(--c8);
  transition: transform 0.3s var(--e2), box-shadow 0.3s;
}
.post-card-grid:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.post-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-bottom: 1px solid var(--c8);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--e2);
}
.post-card-grid:hover .post-card-image img {
  transform: scale(1.05);
}
.post-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-kicker {
  font-family: var(--cond);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c5);
  margin-bottom: 8px;
}
.post-card-title {
  font-family: var(--jp);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}
.post-card-title a {
  color: var(--c0);
  text-decoration: none;
}
.post-card-excerpt {
  font-size: 0.95rem;
  color: var(--c4);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--c9);
  padding-top: 16px;
}
.post-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--c5);
  font-family: var(--cond);
}
.read-more-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c0);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 2px solid var(--c0);
  padding-bottom: 2px;
  transition: gap 0.25s var(--e2);
}
.read-more-link::after {
  content: '→';
  font-family: var(--cond);
  font-size: 1.1rem;
  line-height: 0.5;
  padding-top: 2px;
}
.post-card-grid:hover .read-more-link {
  gap: 12px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   WP THEME SHELL COMPONENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c9);
  height: 70px;
  display: flex;
  align-items: center;
}
.header-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
}
.site-logo a {
  text-decoration: none;
}
.site-logo-text {
  font-family: var(--cond);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c0);
  text-decoration: none;
}
.nav-toggle {
  background: none;
  border: none;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-icon {
  width: 24px; height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle-bar {
  width: 100%; height: 2px;
  background: var(--c0);
  transition: 0.3s var(--e2);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Nav Drawer */
.main-nav-shell {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.main-nav-shell[aria-hidden="false"] {
  display: block;
}
.main-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.main-nav {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 300px;
  background: var(--cc);
  padding: 40px 32px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  transform: translateX(100%);
  animation: slideIn 0.4s var(--e2) forwards;
}
@keyframes slideIn {
  to { transform: translateX(0); }
}
.main-nav-close {
  background: none;
  border: none;
  font-family: var(--cond);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c4);
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 24px;
}
.main-nav-list {
  list-style: none; padding: 0; margin: 0;
}
.main-nav-list li a {
  display: block;
  padding: 16px 0;
  font-family: var(--jp);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c0);
  text-decoration: none;
  border-bottom: 1px solid var(--c9);
  transition: color 0.2s;
}
.main-nav-list li a:hover {
  color: var(--c5);
}

/* Article Shell */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* Article Hero */
.article-hero {
  margin-bottom: 64px;
}
.article-hero-copy {
  margin-bottom: 32px;
}
.entry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--cond);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c5);
  margin-top: 12px;
  margin-bottom: 24px;
}
.entry-meta-link {
  color: var(--c0);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--c9);
}
.article-title {
  font-family: var(--jp);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--c0);
  margin-bottom: 20px;
}
.article-deck {
  font-size: 1.05rem;
  color: var(--c4);
  line-height: 1.7;
  margin: 0;
}
.article-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--c8);
}

/* Referral Spotlight */
.article-referral-spotlight {
  background: var(--ca);
  border: 1px solid var(--c8);
  border-left: 6px solid var(--c0);
  padding: 40px;
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.article-referral-copy h2 {
  font-family: var(--jp);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--c0);
}
.article-referral-copy p {
  color: var(--c3);
  font-size: 0.95rem;
  margin: 0;
}

/* TOC */
.article-toc {
  background: var(--cc);
  border: 1px solid var(--c0);
  padding: 40px;
  margin-bottom: 64px;
  box-shadow: 6px 6px 0 var(--c0);
}
.article-toc-head {
  margin-bottom: 24px;
  border-bottom: 2px solid var(--c0);
  padding-bottom: 16px;
}
.article-toc-head h2 {
  font-family: var(--jp);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}
.article-toc-list {
  padding-left: 24px;
  margin: 0;
  line-height: 1.9;
}
.article-toc-list a {
  color: var(--c2);
  text-decoration: underline;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}
.article-toc-list a:hover {
  color: var(--c6);
}

/* Related Guides (In Content) */
.aff-related-guides {
  background: var(--ca);
  padding: 40px;
  margin: 64px 0;
  border-top: 4px solid var(--c0);
}
.aff-related-guides-kicker {
  font-family: var(--cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c5);
  margin-bottom: 12px;
}
.aff-related-guides-title {
  font-size: 1.4rem;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  border: none !important;
  padding: 0 !important;
}
.aff-related-guides-lead {
  font-size: 0.95rem;
  color: var(--c4);
  margin-bottom: 24px;
}
.aff-related-guides-list {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.aff-related-guides-item {
  position: relative;
  padding-left: 24px !important;
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
}
.aff-related-guides-item::before {
  content: '→' !important;
  position: absolute;
  left: 0;
  top: -2px;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--cond) !important;
  font-weight: 800;
  color: var(--c5) !important;
  font-size: 1.2rem;
  border-radius: 0;
}
.aff-related-guides-item a {
  color: var(--c0);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed var(--c8);
  transition: all 0.2s;
}
.aff-related-guides-item a:hover {
  border-bottom-color: var(--c0);
}

/* Footer Tags */
.entry-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--c8);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
}
.tags strong {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c5);
  margin-right: 8px;
}
.tags a {
  background: var(--ca);
  color: var(--c3);
  padding: 6px 14px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--c8);
  transition: all 0.2s;
}
.tags a:hover {
  background: var(--c0);
  color: var(--cc);
  border-color: var(--c0);
}

/* Related Posts Section */
.related-posts {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 4px solid var(--c0);
}
.section-title {
  font-family: var(--jp);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c0);
  margin-bottom: 8px;
}

/* Footer & Back to top */
.site-footer {
  background: var(--c0);
  color: var(--cc);
  padding: 64px 24px;
  text-align: center;
  font-family: var(--cond);
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px; height: 50px;
  background: var(--c0);
  color: var(--cc);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--cond);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--c4);
  z-index: 90;
  transition: transform 0.2s, box-shadow 0.2s;
}
.back-to-top:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--c4);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE OPTIMIZATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; height: 50px; }
  .nav-logo { font-size: 1.1rem; }
  .nav-logo-sub { display: none; }
  .article-wrap { padding: 70px 12px 40px; }
  .article-header { margin-bottom: 40px; padding-bottom: 24px; }
  .article-h1 { font-size: 1.5rem; line-height: 1.4; margin-bottom: 16px; }
  .entry-content p { font-size: 0.95rem; line-height: 1.9; margin-bottom: 24px; }
  .entry-content h2 { margin: 56px 0 32px; padding-left: 16px; font-size: 1.35rem; border-left-width: 3px; }
  .entry-content h3 { margin: 40px 0 20px; font-size: 1.2rem; }
  .entry-content ul > li { font-size: 0.95rem; line-height: 1.8; padding-left: 20px; margin-bottom: 12px; }
  .entry-content ul > li::before { top: 10px; width: 10px; }
  .entry-content ol > li { font-size: 0.95rem; padding-left: 36px; margin-bottom: 16px; }
  .entry-content ol > li::before { font-size: 1.1rem; }
  .entry-content blockquote { padding: 24px; margin: 32px 0; font-size: 0.95rem; }
  .entry-content pre { padding: 20px; margin: 32px 0; font-size: 0.85rem; }
  .entry-content img, .entry-content figure { margin: 32px 0; }
  .entry-content hr { margin: 40px 0; }
  .entry-content h4 { font-size: 1.15rem; margin: 40px 0 16px; }
  .entry-content h5 { font-size: 1.05rem; margin: 32px 0 16px; }
  
  .entry-content table {
    display: block; width: 100%; overflow-x: auto; white-space: nowrap;
    font-size: 0.85rem; margin-bottom: 32px; -webkit-overflow-scrolling: touch;
  }
  .entry-content th, .entry-content td { padding: 12px 14px; }
  
  .article-cta-band { flex-direction: column; padding: 32px 24px; text-align: center; gap: 24px; margin: 48px 0; }
  .article-cta-copy h2 { font-size: 1.35rem; }
  .article-cta-action .btn-cta { width: 100%; justify-content: center; padding: 6px 6px 6px 16px; font-size: 1.05rem; gap: 12px; }
  .btn-cta .circle-icon { width: 40px; height: 40px; }
  .promo-offer-shell { padding: 22px 18px; gap: 18px; }
  .promo-offer-grid { grid-template-columns: 1fr; }
  .promo-offer-card { padding: 18px; }
  
  .article-share-band { padding: 32px 24px; margin: 48px 0; }
  .article-share-copy h2 { font-size: 1.35rem; }
  .share-chip { font-size: 0.85rem; padding: 8px 16px; }
  
  .related-posts-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; padding-top: 48px; }
  .post-card-content { padding: 20px; }
  .post-card-title { font-size: 1.1rem; }
  
  .main-content { padding: 40px 16px; }
  .article-title { font-size: 1.7rem; }
  .article-hero-media img { aspect-ratio: auto; }
  .article-referral-spotlight { flex-direction: column; text-align: left; padding: 32px 24px; border-left: none; border-top: 6px solid var(--c0); }
  .article-toc { padding: 24px; }
  .article-toc-head h2 { font-size: 1.25rem; }
  .aff-related-guides { padding: 32px 24px; margin: 48px 0; }
  .related-posts { margin-top: 64px; padding-top: 48px; }
  .section-title { font-size: 1.4rem; }
}

/* Theme compatibility helpers for live WP markup */
.article-cta-action {
  position: relative;
  flex-shrink: 0;
}

.article-cta-action .cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-stack {
  display: grid;
  gap: 16px;
}

.cta-note {
  margin: 0;
  color: var(--c8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.referral-code-box {
  padding: 16px 18px 18px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--c8);
}

.referral-code-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c5);
}

.referral-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.referral-code-value {
  flex: 1 1 240px;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--c8);
  background: var(--cc);
  color: var(--c0);
  text-decoration: none;
  word-break: break-all;
  font-weight: 700;
}

.referral-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--cc);
  border: 1px solid var(--c0);
  color: var(--c0);
  text-decoration: none;
  font-weight: 700;
}

.referral-code-note {
  margin: 10px 0 0;
  color: var(--c4);
  font-size: 0.92rem;
}

.share-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.article-share-copy {
  position: relative;
  z-index: 1;
}

.share-chip-x,
.share-chip-facebook,
.share-chip-line {
  background: var(--cc);
  color: var(--c0);
}

.share-chip-copy {
  display: none;
}

/* Mystica redesign overrides */
:root {
  --void: #0b0915;
  --void-2: #161325;
  --panel: rgba(18, 15, 33, 0.88);
  --panel-solid: #171328;
  --panel-soft: rgba(28, 23, 50, 0.62);
  --line: rgba(201, 168, 76, 0.22);
  --line-strong: rgba(201, 168, 76, 0.45);
  --gold: #c9a84c;
  --gold-2: #edd48a;
  --violet: #5c4fcf;
  --violet-2: #8d78ff;
  --mist: #efe8d3;
  --fog: rgba(239, 232, 211, 0.72);
  --white: #fffdf7;
  --dark: #09070f;
  --primary: var(--gold);
  --text: var(--mist);
  --muted: rgba(239, 232, 211, 0.62);
  --surface: var(--panel);
  --surface-alt: rgba(20, 16, 36, 0.96);
  --shadow: 0 28px 80px rgba(3, 2, 10, 0.46);
  --shadow-sm: 0 16px 42px rgba(3, 2, 10, 0.32);
  --radius: 24px;
  --border-width: 1px;
  --container: 1180px;
  --font-sans-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-ui: "Noto Sans JP", sans-serif;
  --font-display: "Cinzel Decorative", "Noto Serif JP", serif;
  --font-heading: "Cinzel", "Noto Serif JP", serif;
  --font-italic: "IM Fell English", "Noto Serif JP", serif;
}

html {
  background:
    radial-gradient(circle at top, rgba(93, 79, 207, 0.24), transparent 34%),
    radial-gradient(circle at 20% 20%, rgba(201, 168, 76, 0.16), transparent 24%),
    linear-gradient(180deg, #090710 0%, #120f20 38%, #090711 100%);
}

body {
  position: relative;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans-jp);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 168, 76, 0.12) 0%, transparent 18%),
    radial-gradient(circle at 83% 9%, rgba(141, 120, 255, 0.2) 0%, transparent 16%),
    radial-gradient(circle at 50% 100%, rgba(201, 168, 76, 0.08) 0%, transparent 28%);
}

body::after {
  z-index: -1;
  opacity: 0.46;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.85) 0 1px, transparent 1.6px),
    radial-gradient(circle at 74% 26%, rgba(255,255,255,0.7) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 42% 62%, rgba(201,168,76,0.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 89% 74%, rgba(255,255,255,0.75) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 24% 80%, rgba(141,120,255,0.6) 0 1px, transparent 1.8px);
  background-size: 280px 280px, 360px 360px, 420px 420px, 320px 320px, 460px 460px;
}

::selection {
  background: rgba(201, 168, 76, 0.28);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 8, 18, 0.8);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.8), rgba(141, 120, 255, 0.65));
}

a {
  color: var(--gold-2);
}

.site-shell {
  position: relative;
}

.site-wrapper {
  max-width: var(--container);
  padding: 0 24px;
}

.site-header {
  height: 72px;
  padding: 0;
  background: rgba(9, 7, 15, 0.74);
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(4, 4, 10, 0.2);
}

.header-container {
  min-height: 72px;
}

.brand-cluster {
  gap: 1rem;
}

.site-logo,
.site-logo-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.site-logo-text::before {
  content: "✦";
  display: inline-block;
  margin-right: 0.6rem;
  color: var(--gold);
  font-size: 0.78em;
  transform: translateY(-0.05em);
}

.site-logo a {
  color: var(--mist);
}

.site-logo .custom-logo {
  max-height: 54px;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.18));
}

.site-tagline {
  max-width: 40rem;
  color: var(--fog);
  font-family: var(--font-italic);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 168, 76, 0.34);
  background: rgba(19, 15, 34, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 24px rgba(4, 3, 10, 0.24);
}

.nav-toggle:hover {
  background: rgba(30, 23, 53, 0.94);
  transform: translateY(-1px);
}

.nav-toggle-bar {
  background: var(--gold-2);
}

.main-nav-backdrop {
  background: rgba(4, 3, 10, 0.72);
  backdrop-filter: blur(10px);
}

.main-nav-panel {
  width: min(620px, 100%);
  padding: 36px;
  background:
    radial-gradient(circle at top right, rgba(141, 120, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(22, 18, 40, 0.98), rgba(11, 9, 21, 0.98));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.main-nav-close {
  background: rgba(201, 168, 76, 0.08);
  color: var(--mist);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.main-nav-list {
  gap: 0.6rem;
}

.main-nav a {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border-bottom: 0;
  color: var(--mist);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--gold-2);
  background: rgba(201, 168, 76, 0.08);
}

.main-content {
  padding: 3rem 0 7rem;
}

.article-shell,
.page .main-content > article,
.single .main-content > article {
  position: relative;
}

.article-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  margin-bottom: 3rem;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at top right, rgba(141, 120, 255, 0.2), transparent 32%),
    radial-gradient(circle at bottom left, rgba(201, 168, 76, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(21, 17, 39, 0.92), rgba(11, 9, 21, 0.94));
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 24px;
  pointer-events: none;
}

.article-hero-copy,
.article-hero-media {
  position: relative;
  z-index: 1;
}

.card-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1rem;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.24);
  border-radius: 999px;
  box-shadow: none;
  color: var(--gold-2);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card-kicker::before,
.section-kicker::before {
  content: "✦";
  font-size: 0.8em;
}

.entry-meta,
.post-card-meta {
  gap: 0.75rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.84rem;
}

.entry-meta-link,
.entry-meta a {
  color: var(--gold);
}

.entry-meta-sep {
  color: rgba(201, 168, 76, 0.36);
}

.article-title {
  margin: 0 0 1rem;
  color: var(--white);
  font-family: var(--font-sans-jp);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.article-deck {
  max-width: 40rem;
  margin-bottom: 0;
  color: var(--fog);
  font-family: var(--font-italic);
  font-size: 1.12rem;
  line-height: 1.9;
}

.article-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 76, 0.16);
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(5, 4, 11, 0.4);
}

.article-layout {
  display: block;
}

.article-main {
  width: min(100%, 860px);
  margin: 0 auto;
}

.article-toc,
.article-share-band,
.article-cta-band,
.promo-offer-shell,
.hub-hero,
.hub-map,
.hub-stream,
.hub-intro,
.hub-inline-block,
.hub-spotlight-shell,
.article-referral-spotlight {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(141, 120, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 15, 33, 0.92), rgba(11, 9, 21, 0.96));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.promo-offer-shell,
.article-referral-spotlight {
  padding: clamp(26px, 4vw, 38px);
}

.promo-offer-section {
  margin: 0 0 2rem;
}

.promo-offer-section.is-bottom {
  margin: 4rem 0 0;
}

.promo-offer-copy {
  gap: 0.85rem;
}

.promo-offer-kicker {
  color: var(--gold-2);
  font-family: var(--font-heading);
  letter-spacing: 0.16em;
}

.promo-offer-title,
.article-cta-copy h2,
.article-share-copy h2,
.article-toc-head h2,
.hub-spotlight-head h2,
.hub-map h2,
.hub-stream-head h2 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-sans-jp);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.45;
}

.promo-offer-lead,
.article-cta-copy p,
.article-share-copy p,
.hub-spotlight-head p,
.hub-map-copy p,
.hub-stream-head p,
.hub-inline-head p {
  color: var(--fog);
  font-family: var(--font-italic);
  font-size: 1rem;
  line-height: 1.9;
}

.promo-offer-grid,
.hub-route-grid,
.related-posts-grid {
  display: grid;
  gap: 22px;
}

.promo-offer-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 1.8rem;
}

.promo-offer-card,
.hub-route-card,
.post-card-grid {
  background:
    linear-gradient(180deg, rgba(28, 23, 50, 0.92), rgba(17, 14, 31, 0.96));
  border: 1px solid rgba(201, 168, 76, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(4, 3, 10, 0.18);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.promo-offer-card:hover,
.hub-route-card:hover,
.post-card-grid:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.34);
  box-shadow: 0 26px 44px rgba(4, 3, 10, 0.28);
}

.promo-offer-card {
  padding: 24px;
}

.promo-offer-card-kicker,
.hub-route-kicker,
.promo-offer-code-label,
.referral-code-label {
  color: var(--gold-2);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.promo-offer-card-title,
.hub-route-card h2,
.hub-route-card h3,
.post-card-title {
  color: var(--white);
  font-family: var(--font-sans-jp);
  font-size: 1.18rem;
  line-height: 1.45;
}

.promo-offer-card-text,
.hub-route-card p,
.post-card-excerpt,
.promo-offer-no-link,
.cta-note,
.referral-code-note {
  color: var(--fog);
}

.promo-offer-code-box,
.referral-code-box {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  background: rgba(10, 8, 18, 0.55);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 18px;
}

.promo-offer-code-value,
.referral-code-value {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 14px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  word-break: break-all;
}

.referral-code-row {
  display: grid;
  gap: 0.8rem;
}

.promo-offer-link,
.referral-copy-button,
.btn,
.btn-cta,
.article-cta-band .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 52px;
  padding: 0.95rem 1.4rem;
  background: linear-gradient(135deg, #d6b76a, #b89231);
  color: #120f20;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(201, 168, 76, 0.22);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.promo-offer-link:hover,
.referral-copy-button:hover,
.btn:hover,
.btn-cta:hover,
.article-cta-band .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(201, 168, 76, 0.3);
}

.btn-cta {
  padding: 0.55rem 0.55rem 0.55rem 1.3rem;
  background: linear-gradient(135deg, rgba(216, 187, 100, 0.95), rgba(177, 138, 43, 0.95));
}

.btn-cta .circle-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(12, 10, 23, 0.92);
  color: var(--gold-2);
}

.article-toc,
.article-share-band,
.article-cta-band {
  margin: 3.2rem 0;
  padding: clamp(26px, 4vw, 42px);
}

.article-toc::before,
.article-share-band::before,
.article-cta-band::before {
  content: "✦";
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(201, 168, 76, 0.24);
  font-size: 1.1rem;
}

.article-toc-head p {
  margin-top: 0.55rem;
  color: var(--fog);
  font-family: var(--font-italic);
}

.article-toc-list {
  gap: 1rem;
  margin-top: 1.4rem;
  padding-left: 0;
  list-style: none;
  counter-reset: toc;
}

.article-toc-list > li {
  counter-increment: toc;
  position: relative;
  margin: 0;
  padding: 0 0 0 2.5rem;
}

.article-toc-list > li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.05rem;
  color: rgba(201, 168, 76, 0.92);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.article-toc-list a {
  color: var(--mist);
  border-bottom: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
}

.article-toc-list a:hover {
  color: var(--gold-2);
  transform: translateX(2px);
}

.entry-content {
  background: transparent;
  color: var(--text);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content li,
.entry-content td,
.entry-content th {
  color: var(--text);
  font-family: var(--font-sans-jp);
}

.entry-content p {
  margin-bottom: 1.8rem;
  font-size: 1.03rem;
  line-height: 2.05;
}

.entry-content strong,
.entry-content b {
  color: var(--white);
  font-weight: 700;
}

.entry-content em {
  padding: 0 0.14em;
  color: var(--gold-2);
  background: linear-gradient(transparent 58%, rgba(201, 168, 76, 0.18) 58%);
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
  color: var(--white);
  border: 0;
}

.entry-content h2 {
  position: relative;
  margin: 5rem 0 2rem;
  padding: 0 0 0.9rem 0;
  font-family: var(--font-sans-jp);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.5;
}

.entry-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(220px, 38%);
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.9), rgba(201, 168, 76, 0));
}

.entry-content h3 {
  margin: 3.2rem 0 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(201, 168, 76, 0.7);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entry-content h4 {
  margin: 2.4rem 0 1rem;
  font-family: var(--font-sans-jp);
  font-size: 1.12rem;
}

.entry-content ul:not(.aff-checklist-list),
.entry-content ol:not(.aff-checklist-list) {
  margin: 1.3rem 0 2rem;
}

.entry-content ul:not(.aff-checklist-list) li {
  padding-left: 1.55rem;
}

.entry-content ul:not(.aff-checklist-list) li::before {
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border: 0;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.08);
}

.entry-content ul:not(.aff-checklist-list) li::after {
  left: 0.2rem;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.28), rgba(201, 168, 76, 0));
}

.entry-content ol:not(.aff-checklist-list) {
  padding-left: 1.6rem;
}

.entry-content a,
.entry-content a.aff-autolink {
  color: var(--gold-2);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(201, 168, 76, 0.42);
  text-underline-offset: 0.2em;
}

.entry-content a:hover,
.entry-content a.aff-autolink:hover {
  color: var(--white);
  text-decoration-color: rgba(237, 212, 138, 0.72);
}

.entry-content blockquote {
  margin: 2.4rem 0;
  padding: 1.6rem 1.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(201, 168, 76, 0.6);
  border-radius: 0 18px 18px 0;
  color: var(--fog);
  font-family: var(--font-italic);
  font-size: 1.02rem;
}

.entry-content code {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-2);
  border-radius: 8px;
}

.entry-content pre {
  background: rgba(5, 4, 10, 0.92);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.entry-content img,
.entry-content figure img {
  border: 1px solid rgba(201, 168, 76, 0.16);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(4, 3, 10, 0.24);
}

.entry-content figcaption {
  color: var(--muted);
  font-family: var(--font-ui);
}

.entry-content hr {
  background: linear-gradient(90deg, rgba(201, 168, 76, 0), rgba(201, 168, 76, 0.72), rgba(201, 168, 76, 0));
}

.entry-content table {
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(16, 13, 30, 0.96);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(4, 3, 10, 0.16);
}

.entry-content th {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-2);
  border-color: rgba(201, 168, 76, 0.12);
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}

.entry-content td {
  border-color: rgba(201, 168, 76, 0.08);
}

.aff-block,
.aff-point,
.aff-info,
.aff-warn,
.aff-cta,
.aff-checklist,
.aff-faq,
.aff-related-guides,
.aff-step-content {
  background:
    radial-gradient(circle at top right, rgba(141, 120, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(22, 18, 40, 0.94), rgba(12, 10, 22, 0.96));
  border-color: rgba(201, 168, 76, 0.16) !important;
  box-shadow: 0 18px 34px rgba(4, 3, 10, 0.18);
}

.aff-point .aff-head,
.aff-info .aff-head,
.aff-warn .aff-head,
.aff-cta .aff-head,
.aff-checklist .aff-head,
.aff-faq .aff-head {
  background: linear-gradient(135deg, rgba(76, 58, 162, 0.36), rgba(17, 14, 31, 0.2));
  color: var(--gold-2);
  border-color: rgba(201, 168, 76, 0.16);
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}

.aff-point .aff-body,
.aff-info .aff-body,
.aff-warn .aff-body,
.aff-cta .aff-body,
.aff-checklist .aff-body,
.aff-faq .aff-body,
.aff-step .aff-body,
.aff-faq-answer {
  color: var(--text);
}

.aff-checklist-list li {
  color: var(--mist);
}

.aff-step-badge {
  background: linear-gradient(135deg, #d6b76a, #b89231);
  color: #120f20;
}

.aff-step-kicker {
  color: var(--gold-2);
  letter-spacing: 0.14em;
}

.aff-step-title,
.aff-related-guides-title {
  color: var(--white);
}

.aff-faq-item {
  border-color: rgba(201, 168, 76, 0.12);
}

.aff-faq-question {
  color: var(--white);
}

.article-share-band {
  overflow: hidden;
}

.share-bg-svg {
  position: absolute;
  inset: auto -20px -10px auto;
  width: 320px;
  height: auto;
  color: rgba(201, 168, 76, 0.16);
}

.article-share-actions {
  position: relative;
  z-index: 1;
  gap: 14px;
}

.share-chip {
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.18);
  color: var(--mist);
  padding: 0.9rem 1.1rem;
  box-shadow: none;
  font-family: var(--font-ui);
}

.share-chip:hover {
  color: var(--gold-2);
  background: rgba(201, 168, 76, 0.08);
  box-shadow: none;
}

.related-posts {
  margin-top: 4rem;
}

.related-posts-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(201, 168, 76, 0.14);
}

.post-card-image,
.post-card-image img,
.post-card-image-fallback {
  height: 220px;
}

.post-card-image {
  border-bottom: 1px solid rgba(201, 168, 76, 0.14);
}

.post-card-image img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.post-card-image-fallback {
  background:
    radial-gradient(circle at top right, rgba(141, 120, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(201, 168, 76, 0.18), rgba(22, 18, 40, 0.96));
}

.post-card-content {
  padding: 1.4rem;
}

.post-card-title a {
  color: var(--white);
}

.read-more-link {
  color: var(--gold-2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  font-family: var(--font-heading);
}

.post-card-footer {
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.hub-hero,
.hub-map,
.hub-stream,
.hub-intro,
.hub-inline-block,
.home-hub-spotlight {
  margin-top: 2rem;
}

.hub-hero {
  background:
    radial-gradient(circle at top right, rgba(141, 120, 255, 0.18), transparent 30%),
    radial-gradient(circle at 18% 12%, rgba(201, 168, 76, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(20, 16, 36, 0.94), rgba(11, 9, 21, 0.96));
}

.hub-lead {
  color: var(--fog);
  font-family: var(--font-italic);
}

.hub-map-step,
.hub-empty {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 18px;
}

.hub-map-step span {
  background: linear-gradient(135deg, #d6b76a, #b89231);
  color: #120f20;
  border: 0;
}

.hub-map-step strong,
.hub-inline-head h2,
.hub-inline-head h3 {
  color: var(--white);
}

.hub-map-step p,
.hub-empty {
  color: var(--fog);
}

.entry-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.16);
}

.tags a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 999px;
  color: var(--mist);
  box-shadow: none;
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  background: transparent;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
}

.site-info,
.site-footer a {
  color: var(--fog);
  font-family: var(--font-ui);
}

.back-to-top {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(19, 15, 34, 0.92);
  color: var(--gold-2);
  box-shadow: 0 16px 36px rgba(4, 3, 10, 0.28);
}

.back-to-top:hover {
  background: rgba(31, 24, 54, 0.96);
  box-shadow: 0 20px 40px rgba(4, 3, 10, 0.32);
}

@media (max-width: 960px) {
  .site-tagline {
    display: none;
  }

  .article-hero {
    grid-template-columns: 1fr;
  }

  .article-main {
    width: 100%;
  }

  .main-nav-panel {
    padding: 28px 22px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .site-wrapper {
    padding: 0 16px;
  }

  .main-content {
    padding: 2rem 0 5rem;
  }

  .article-hero,
  .article-toc,
  .article-share-band,
  .article-cta-band,
  .promo-offer-shell,
  .hub-hero,
  .hub-map,
  .hub-stream,
  .hub-intro,
  .hub-inline-block,
  .hub-spotlight-shell {
    border-radius: 22px;
  }

  .article-cta-band {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .article-share-actions {
    flex-direction: column;
  }

  .share-chip {
    justify-content: center;
  }

  .post-card-image,
  .post-card-image img,
  .post-card-image-fallback {
    height: 200px;
  }
}

@media (max-width: 520px) {
  .site-header {
    height: 64px;
  }

  .header-container {
    min-height: 64px;
  }

  .site-logo,
  .site-logo-text {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .article-title {
    font-size: 1.85rem;
  }

  .article-deck,
  .promo-offer-lead,
  .article-cta-copy p,
  .article-share-copy p {
    font-size: 0.95rem;
  }

  .main-nav a {
    font-size: 1.15rem;
  }
}

/* Contrast audit fixes */
.aff-block,
.aff-checklist,
.aff-meritdemerit,
.aff-faq,
.aff-voice,
.aff-quiz,
.aff-diagnosis,
.aff-detail,
.aff-keypoints .aff-body,
.aff-data-row,
.aff-check-item,
.aff-faq-item,
.aff-voice-item,
.aff-quiz-answer-box,
.aff-diagnosis-node,
.aff-detail-summary,
.aff-detail-body,
.article-referral-action .referral-code-box,
.hub-route-card,
.hub-route-card.spotlight,
.hub-map-step,
.hub-empty {
  background:
    radial-gradient(circle at top right, rgba(141, 120, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(23, 19, 40, 0.96), rgba(12, 10, 22, 0.98)) !important;
  border-color: rgba(201, 168, 76, 0.16) !important;
}

.aff-block,
.aff-block p,
.aff-block li,
.aff-block dt,
.aff-block dd,
.aff-block span,
.aff-block strong,
.aff-block em,
.aff-block label,
.aff-body,
.aff-body p,
.aff-body li,
.aff-data-value,
.aff-experience .aff-body,
.aff-voice-text,
.aff-voice-note,
.aff-keypoints-item-body,
.aff-faq-answer,
.aff-detail-preview,
.aff-detail-body,
.aff-diagnosis-intro,
.aff-diagnosis-choice-text,
.aff-diagnosis-result-body,
.aff-merit-item,
.aff-demerit-item,
.hub-lead,
.hub-map-copy p,
.hub-stream-head p,
.hub-inline-head p,
.hub-route-card p,
.hub-map-step p,
.hub-empty,
.post-card-excerpt,
.cta-note,
.referral-code-note {
  color: var(--fog) !important;
}

.aff-head,
.aff-point .aff-head,
.aff-info .aff-head,
.aff-warn .aff-head,
.aff-checklist .aff-head,
.aff-meritdemerit > .aff-head,
.aff-faq .aff-head,
.aff-voice .aff-head,
.aff-quiz-head,
.aff-diagnosis .aff-head,
.aff-detail .aff-head,
.aff-data .aff-head {
  background: linear-gradient(135deg, rgba(81, 61, 175, 0.46), rgba(28, 22, 49, 0.92)) !important;
  border-color: rgba(201, 168, 76, 0.16) !important;
  color: var(--gold-2) !important;
}

.aff-head span,
.aff-checklist .aff-head span,
.aff-meritdemerit > .aff-head span,
.aff-step-kicker,
.aff-diagnosis-step,
.aff-diagnosis-result-kicker,
.aff-meritdemerit-title span,
.aff-detail-preview,
.aff-route-kicker {
  color: var(--gold-2) !important;
}

.aff-step::before,
.aff-faq-item,
.aff-keypoints-item,
.aff-merit-item:not(:last-child),
.aff-demerit-item:not(:last-child),
.aff-detail-body,
.aff-detail .aff-head,
.aff-detail-shell,
.aff-quiz-details,
.post-card-footer {
  border-color: rgba(201, 168, 76, 0.14) !important;
}

.aff-step-title,
.aff-keypoints-item-title,
.aff-detail-title,
.aff-diagnosis-question,
.aff-diagnosis-result-title,
.aff-quiz-question,
.aff-quiz-answer-title,
.aff-meritdemerit-title,
.aff-data-label,
.hub-route-card h2,
.hub-route-card h3,
.hub-map-step strong,
.post-card-title,
.post-card-title a,
.entry-content table td strong,
.entry-content table th {
  color: var(--white) !important;
}

.aff-check-toggle,
.aff-option,
.aff-diagnosis-choice,
.aff-diagnosis-reset,
.aff-detail-summary,
.aff-detail-body,
.aff-quiz-summary,
.aff-data-label,
.aff-data-value {
  color: var(--mist) !important;
}

.aff-check-mark,
.aff-keypoints-index,
.aff-option,
.aff-diagnosis-choice,
.aff-diagnosis-reset,
.aff-detail-summary,
.aff-detail-body,
.aff-data-label,
.aff-data-value {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(201, 168, 76, 0.16) !important;
}

.aff-check-text,
.aff-option,
.aff-option.is-active,
.aff-option.is-correct,
.aff-option.is-incorrect,
.aff-diagnosis-choice,
.aff-diagnosis-reset,
.aff-detail-title,
.aff-detail-summary:hover,
.aff-data-label,
.aff-data-value {
  color: var(--mist) !important;
}

.aff-check-toggle[aria-pressed="true"] .aff-check-text {
  color: rgba(239, 232, 211, 0.55) !important;
  text-decoration-color: rgba(239, 232, 211, 0.3) !important;
}

.aff-check-toggle[aria-pressed="true"] .aff-check-mark,
.aff-option.is-correct,
.aff-option.is-incorrect,
.aff-diagnosis-reset:hover {
  background: rgba(201, 168, 76, 0.14) !important;
}

.aff-check-item:has([aria-pressed="true"]) {
  background: rgba(201, 168, 76, 0.08) !important;
  border-color: rgba(201, 168, 76, 0.24) !important;
}

.aff-info {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(22, 18, 40, 0.98) 0,
      rgba(22, 18, 40, 0.98) 14px,
      rgba(30, 25, 52, 0.98) 14px,
      rgba(30, 25, 52, 0.98) 28px
    ) !important;
}

.aff-warn,
.aff-experience,
.aff-voice {
  background:
    radial-gradient(circle at top right, rgba(201, 168, 76, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(23, 19, 40, 0.96), rgba(12, 10, 22, 0.98)) !important;
}

.aff-faq-question {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--white) !important;
}

.aff-faq-question::after,
.aff-detail-summary::after {
  border-color: rgba(237, 212, 138, 0.72) !important;
}

.aff-faq-question::before,
.aff-faq-answer::before,
.aff-voice-badge,
.aff-keypoints-index,
.aff-opt-badge,
.aff-diagnosis-choice-label,
.aff-step-badge,
.hub-map-step span {
  background: linear-gradient(135deg, #d6b76a, #b89231) !important;
  color: #120f20 !important;
  border-color: rgba(201, 168, 76, 0.16) !important;
  box-shadow: none !important;
}

.aff-faq-answer {
  padding-top: 1rem;
}

.aff-detail-title::before {
  background: var(--gold) !important;
}

.aff-merit-panel,
.aff-demerit-panel {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(201, 168, 76, 0.14) !important;
}

.aff-merit-title .aff-icon-wrap,
.aff-demerit-title .aff-icon-wrap {
  border-color: rgba(201, 168, 76, 0.18) !important;
}

.aff-merit-title .aff-icon,
.aff-demerit-title .aff-icon,
.pulse-good,
.pulse-bad {
  color: var(--gold-2) !important;
  stroke: rgba(237, 212, 138, 0.7) !important;
}

.aff-merit-item::before {
  background: var(--gold) !important;
  border-color: rgba(201, 168, 76, 0.22) !important;
}

.aff-demerit-item::before {
  background: var(--violet-2) !important;
}

.aff-cta,
.article-cta-band,
.promo-offer-shell {
  background:
    radial-gradient(circle at top right, rgba(141, 120, 255, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(37, 29, 66, 0.98), rgba(11, 9, 21, 0.98)) !important;
}

.aff-cta .btn,
.aff-cta .btn:hover,
.promo-offer-link,
.promo-offer-link:hover,
.referral-copy-button,
.referral-copy-button:hover,
.btn,
.btn:hover,
.btn-cta,
.btn-cta:hover,
.article-cta-band .btn,
.article-cta-band .btn:hover {
  background: linear-gradient(135deg, #d6b76a, #b89231) !important;
  color: #120f20 !important;
  border-color: rgba(201, 168, 76, 0.18) !important;
}

.entry-content table,
.entry-content table tbody,
.entry-content table tr,
.entry-content table td,
.entry-content table th {
  background-color: transparent;
}

.entry-content table td {
  color: var(--mist) !important;
}

.entry-content table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.share-chip-x,
.share-chip-facebook,
.share-chip-line,
.share-chip-copy {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--mist) !important;
}

.site-logo .custom-logo-link,
.site-logo a,
.main-nav a,
.footer-nav a,
.site-info,
.site-footer a {
  color: var(--mist);
}

/* Secondary contrast cleanup */
.entry-content ul:not(.aff-checklist-list),
.entry-content ol:not(.aff-checklist-list) {
  color: var(--mist) !important;
}

.entry-content ul:not(.aff-checklist-list) li,
.entry-content ol:not(.aff-checklist-list) li,
.entry-content ul:not(.aff-checklist-list) li > *,
.entry-content ol:not(.aff-checklist-list) li > * {
  color: var(--mist) !important;
}

.entry-content ul:not(.aff-checklist-list) li::before {
  border-color: rgba(201, 168, 76, 0.26) !important;
  background: linear-gradient(135deg, #d6b76a, #b89231) !important;
}

.entry-content ul:not(.aff-checklist-list) li::after {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.28), rgba(201, 168, 76, 0)) !important;
}

.entry-content ol:not(.aff-checklist-list) li::marker {
  color: var(--gold-2);
}

.aff-meritdemerit,
.aff-meritdemerit .aff-body,
.aff-meritdemerit-grid,
.aff-merit-panel,
.aff-demerit-panel,
.aff-meritdemerit-list {
  background:
    radial-gradient(circle at top right, rgba(141, 120, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(18, 15, 33, 0.96), rgba(11, 9, 21, 0.98)) !important;
}

.aff-meritdemerit-title,
.aff-merit-title,
.aff-demerit-title {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--white) !important;
  border-bottom-color: rgba(201, 168, 76, 0.14) !important;
}

.aff-meritdemerit-title span,
.aff-merit-title span,
.aff-demerit-title span {
  color: var(--gold-2) !important;
}

.aff-merit-item,
.aff-demerit-item,
.aff-merit-item *,
.aff-demerit-item * {
  color: var(--mist) !important;
}

.aff-merit-item:not(:last-child),
.aff-demerit-item:not(:last-child) {
  border-bottom-color: rgba(201, 168, 76, 0.12) !important;
}

.aff-merit-title .aff-icon-wrap {
  background: linear-gradient(135deg, #d6b76a, #b89231) !important;
  border-color: rgba(201, 168, 76, 0.16) !important;
}

.aff-demerit-title .aff-icon-wrap {
  background: linear-gradient(135deg, rgba(98, 78, 204, 0.95), rgba(54, 42, 117, 0.95)) !important;
  border-color: rgba(141, 120, 255, 0.28) !important;
}

.aff-merit-title .aff-icon {
  color: #120f20 !important;
  fill: currentColor !important;
}

.aff-demerit-title .aff-icon {
  color: var(--mist) !important;
  fill: currentColor !important;
}

.thumb-up-icon,
.thumb-down-icon {
  color: inherit !important;
  fill: currentColor !important;
}

.pulse-good {
  stroke: rgba(214, 183, 106, 0.8) !important;
}

.pulse-bad {
  stroke: rgba(141, 120, 255, 0.82) !important;
}

.aff-merit-item::before {
  background: linear-gradient(135deg, #d6b76a, #b89231) !important;
  border-color: rgba(201, 168, 76, 0.18) !important;
}

.aff-demerit-item::before {
  background: var(--violet-2) !important;
  border: 1px solid rgba(141, 120, 255, 0.35) !important;
}

.aff-keypoints .aff-body,
.aff-detail-summary,
.aff-detail-body,
.aff-quiz-summary,
.aff-diagnosis-node,
.aff-data-row,
.aff-data-label,
.aff-data-value {
  color: var(--mist) !important;
}
