@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap");

/* Shared styles for conwaymarket */
:root {
  --brand: #0a5c63;
  --brand-dark: #07444a;
  --accent: #f4b400;
  --text: #1f2933;
  --muted: #5b6b74;
  --bg: #f7fafb;
  --bg-alt: #eef5f6;
  --surface: #ffffff;
  --border: #d5e3e6;
  --maxw: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #dbe5ea;
    --muted: #9eb1bb;
    --bg: #0f1418;
    --bg-alt: #151d23;
    --surface: #1b242b;
    --border: #27333c;
  }
}

[data-theme="dark"] {
  --text: #dbe5ea;
  --muted: #9eb1bb;
  --bg: #0f1418;
  --bg-alt: #151d23;
  --surface: #1b242b;
  --border: #27333c;
}

[data-theme="light"] {
  --text: #1d262a;
  --muted: #5b6b74;
  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --surface: #ffffff;
  --border: #e6ecef;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86));
  backdrop-filter: blur(8px);
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid color-mix(in oklab, var(--brand) 18%, var(--border));
  border-radius: 16px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.84));
  box-shadow: 0 12px 24px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.75);
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--brand); text-decoration: none; }
.brand img { width: 150px; height: auto; }
.brand .title { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 30px; letter-spacing: 1px; text-transform: uppercase; }
.theme-toggle {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #102a2e;
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0,0,0,.18);
}
.theme-toggle:hover { filter: brightness(1.06); text-decoration: none; }

.hero {
  position: relative;
  background: var(--bg-alt);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(0,0,0,.45), rgba(0,0,0,.25)),
    url("https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  opacity: .35;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  margin: 0 0 10px 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  letter-spacing: 0.4px;
  line-height: 1;
  text-transform: uppercase;
}
.hero p { margin: 0; color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #fff;
  margin-bottom: 12px;
}
.crumbs-modern {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.9));
  border: 1px solid color-mix(in oklab, var(--brand) 28%, var(--border));
  box-shadow: 0 8px 18px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.65);
  margin-bottom: 12px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.crumbs-modern a, .crumbs-modern .current {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
}
.crumbs-modern a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.crumbs-modern .current { color: var(--brand); background: color-mix(in oklab, var(--bg-alt) 70%, #fff); }
.crumbs-modern .sep { color: var(--brand); padding: 0 2px; }

.ad-slot { border: 2px dashed #c8d6dc; background: color-mix(in srgb, var(--surface) 86%, var(--bg-alt)); color: #7a8a93; display: flex; align-items: center; justify-content: center; text-align: center; margin: 18px 0; border-radius: 10px; max-width: 100%; overflow: hidden; }
.ad-slot ins,
.ad-slot a,
.ad-slot iframe,
.ad-slot img {
  display: block;
  max-width: 100% !important;
}
.ad-slot iframe,
.ad-slot img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}
.ad-slot a { height: 100%; }
.ad-slot:has(img),
.ad-slot:has(iframe),
.ad-slot:has(video),
.ad-slot:has(object),
.ad-slot:has(embed) {
  border-color: transparent;
}
.ad-728x90 { width: min(100%, 728px); height: auto; aspect-ratio: 728 / 90; margin-left: auto; margin-right: auto; }
.ad-160x600 { width: min(100%, 160px); height: auto; aspect-ratio: 160 / 600; }
.ad-300x250 { width: min(100%, 300px); height: auto; aspect-ratio: 300 / 250; margin-left: auto; margin-right: auto; }
.ad-300x300 { width: min(100%, 300px); height: auto; aspect-ratio: 1 / 1; margin-left: auto; margin-right: auto; }
.ad-label { font-weight: 700; }
#ad-728x90 {
  border: none !important;
  background-image: url("../images/ad-728x90.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
#ad-300x300 {
  border: none !important;
  background-image: url("../images/ad-300x300.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
#ad-160x600 {
  border: none !important;
  background-image: url("../images/ad-160x600.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
#ad-300x250 {
  border: none !important;
  background-image: url("../images/ad-300x250.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .visual-grid { grid-template-columns: 1fr; } }
/* Force one card per row on small mobile screens */
@media (max-width: 640px) {
  .visual-grid {
    grid-template-columns: 1fr !important;
    width: 100%;
  }
  .visual-item img {
    height: 160px;
  }
}
@media (max-width: 740px) {
  .hero { padding: 24px 0; }
  .header-row { gap: 8px; padding: 8px 10px; border-radius: 14px; }
  .theme-toggle { width: 100%; text-align: center; }
  .blog-thumb { height: 160px; }
  .visual-item img { height: 180px; }
  .card { padding: 18px; }
  section.block { padding: 22px 0; }
  .visual-item p { font-size: 13px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.4rem, 8vw, 2rem); }
  .blog-thumb { height: 140px; }
  .visual-item img { height: 160px; }
  .footer-links { gap: 16px; }
}

section.block { padding: 26px 0; border-bottom: 1px solid var(--border); }
section.block h2 {
  margin: 0 0 8px 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
section.block p.lead { margin: 0 0 14px 0; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px 20px; box-shadow: 0 1px 2px rgba(16,24,40,0.03); }
.card h3 {
  margin: 0 0 10px 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.15;
  text-transform: uppercase;
}
.card p { margin: 0 0 14px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.feed-rotator .item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 75%, transparent);
}
.feed-rotator .item:last-child { border-bottom: none; }
.feed-rotator .item a { font-weight: 600; }

.article-content p { margin: 0 0 18px; font-size: 20px; line-height: 1.72; color: #2c3136; }
.article-content h3 {
  margin: 28px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 600;
}
.related-list { margin-top: 12px; padding-left: 18px; }
.card-stack-wrap { padding-top: 18px; padding-bottom: 28px; }
.is-hidden { display: none; }

.blog-listing-modern .lead { margin-bottom: 18px; }
.blog-grid { gap: 22px; }
.blog-card-modern {
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 90%, #ffffff), var(--surface));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.blog-card-modern::after {
  content: "";
  position: absolute;
  inset: auto -30% -30% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 35%, transparent), transparent 70%);
  pointer-events: none;
}
.blog-card-modern:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border));
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.14);
}
.blog-card-modern .tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.blog-card-modern h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  text-transform: none;
  line-height: 1.2;
}
.blog-card-modern p {
  margin: 0;
  color: var(--muted);
}
.blog-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--brand) 24%, var(--border));
  margin: 0 0 12px;
}
.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.visual-item {
  border: 1px solid color-mix(in oklab, var(--brand) 24%, var(--border));
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in oklab, var(--surface) 90%, #fff);
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
}
.visual-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.visual-item p {
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
}
.rss-unique .grid { gap: 22px; }
.rss-unique .grid > div { display: flex; }
.rss-unique .grid > div > .card { height: 100%; display: flex; flex-direction: column; }
.rss-unique .card {
  border-radius: 18px;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 80%, #fff), color-mix(in oklab, var(--bg-alt) 80%, #fff));
  border: 1px dashed color-mix(in oklab, var(--accent) 30%, var(--border));
  position: relative;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 70%, transparent), 0 8px 18px rgba(17, 24, 39, 0.08);
}
.rss-unique .feed-rotator { margin-top: 6px; flex: 1; display: block; }
.rss-item { display: block; padding: 10px 0; border-bottom: 1px solid color-mix(in oklab, var(--border) 75%, transparent); }
.rss-item:last-child { border-bottom: none; }
.rss-item h4 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.rss-item p { margin: 0 0 6px; color: var(--muted); }
.rss-item .meta { font-size: 12px; color: var(--muted); }
.rss-unique .card h3 {
  text-transform: none;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  margin-bottom: 10px;
  position: relative;
  padding-left: 8px;
}
.rss-unique .card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.rss-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 18px;
  line-height: 1;
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 6px 8px;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
}
.guides-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.guides-main { min-width: 0; }
.guides-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guides-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.guides-sidebar .ad-slot {
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
}
.sidebar-search {
  width: 100%;
  max-width: 300px;
  border: 1px solid color-mix(in oklab, var(--border) 70%, var(--accent));
  border-radius: 12px;
  padding: 12px;
  background: color-mix(in oklab, var(--surface) 86%, var(--bg-alt));
}
.sidebar-search label {
  display: block;
  font-size: 13px;
  letter-spacing: .03em;
  margin-bottom: 8px;
  color: var(--muted);
}
.sidebar-search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #1f2937;
  font-size: 15px;
}
.sidebar-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent);
}
.blog-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.load-more-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.load-more-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.load-more-btn:disabled { opacity: .6; cursor: not-allowed; }

/* About section modern cards */
.about-modern .grid { gap: 22px; }
.about-card-modern {
  border-radius: 18px;
  padding: 24px 22px;
  background:
    linear-gradient(160deg, color-mix(in oklab, var(--surface) 85%, #ffffff), color-mix(in oklab, var(--surface) 95%, var(--bg-alt)));
  border: 1px solid color-mix(in oklab, var(--border) 75%, var(--accent));
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.about-card-modern::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  right: -45px;
  top: -55px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 30%, transparent), transparent 72%);
  pointer-events: none;
}
.about-card-modern:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border));
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
}
.about-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 8px 18px color-mix(in oklab, var(--brand) 35%, transparent);
}
.about-card-modern h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  text-transform: none;
}
.guide-list-modern {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-width: 860px;
}
.guide-list-modern li {
  position: relative;
  margin: 0 0 10px;
  padding: 12px 14px 12px 44px;
  border: 1px solid color-mix(in oklab, var(--border) 70%, var(--accent));
  border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 85%, #fff), color-mix(in oklab, var(--bg-alt) 75%, #fff));
  line-height: 1.5;
}
.guide-list-modern li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 11px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 6px 12px color-mix(in oklab, var(--brand) 35%, transparent);
}

footer.site-footer {
  background: color-mix(in oklab, var(--bg) 75%, #000);
  border-top: 1px solid var(--border);
  padding: 28px 0 22px;
  color: var(--muted);
  font-size: 14px;
}
footer.site-footer .container { text-align: center; }
.footer-brand {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: 1px;
  font-weight: 600;
  color: #fff3e6;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5), 0 0 16px rgba(255, 179, 71, 0.15);
}
.footer-subtitle {
  margin: 0;
  color: #d9c3e8;
  font-size: 15px;
}
.footer-links {
  margin: 14px 0 10px;
  display: flex;
  justify-content: center;
  gap: 34px;
}
.footer-links a {
  color: #ffe5cc;
  font-size: 31px;
  text-decoration: none;
}
.footer-links a:hover { color: #ffd166; }
.footer-copy {
  margin: 0;
  color: #d7bfd4;
  font-size: 14px;
}

/* Screenshot-inspired skins */
body.home-dark {
  --bg: #2b124c;
  --bg-alt: #522258;
  --surface: #3b185f;
  --border: #7a3b8f;
  --text: #fff5f5;
  --muted: #f8d9c2;
  --brand: #ffb347;
  --brand-dark: #ff7b54;
  background-image: radial-gradient(circle at top, #7b2cbf 0%, #522258 45%, #2b124c 100%);
}
body.home-dark .crumbs-modern {
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  border-color: #9a6bb3;
  box-shadow: 0 10px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.16);
}
body.home-dark .crumbs-modern a,
body.home-dark .crumbs-modern .current { color: #fff0dd; }
body.home-dark .crumbs-modern .current { background: rgba(0,0,0,.22); }
body.home-dark .crumbs-modern .sep { color: #ffd7a8; }
body.home-dark header.site-header {
  background: rgba(43, 18, 76, 0.92);
  border-bottom: 1px solid #7a3b8f;
}
body.home-dark .header-row {
  background: #ffffff;
  border-color: transparent;
  box-shadow: none;
}
body.home-dark .brand,
body.home-dark .brand:hover { color: #f7f9ff; }
body.home-dark .theme-toggle { color: #ffd166; border-color: #a35dc2; }
body.home-dark .theme-toggle {
  color: #2d1248;
  background: linear-gradient(90deg, #ffd166, #ffb347);
  box-shadow: 0 10px 20px rgba(0,0,0,.28);
}
body.home-dark .theme-toggle:hover {
  color: #1f0f33;
  filter: brightness(1.05);
}
body.home-dark .hero { background: transparent; border-bottom: 1px solid #7a3b8f; }
body.home-dark .hero h1 { color: #fff7e6; text-shadow: 0 0 20px rgba(255, 179, 71, 0.2); }
body.home-dark .hero::before { opacity: .22; }
body.home-dark .card { background: #43206c; border-color: #a35dc2; }
body.home-dark .card h3 a { color: #ffd166; }
body.home-dark .card p { color: #ffe7d2; }
body.home-dark .meta { color: #ffd7b3; }
body.home-dark .article-content p { color: #ffeede; }
body.home-dark .article-content a { color: #ffd166; }
body.home-dark .article-content a:hover { color: #fff4b1; }
body.home-dark .ad-slot { border-color: #c06c84; color: #ffe8d6; background: #522258; }
body.home-dark footer.site-footer { background: #2b124c; border-top-color: #7a3b8f; }
body.home-dark .blog-card-modern {
  background: linear-gradient(180deg, #4a226f, #3b185f);
  border-color: #9657b5;
}
body.home-dark .blog-card-modern p { color: #ffe2c9; }
body.home-dark .rss-unique .card {
  background: linear-gradient(180deg, #4a226f, #3b185f);
  border-color: #a463c4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 10px 20px rgba(0,0,0,0.25);
}
body.home-dark .rss-badge {
  background: #2b124c;
  color: #ffd166;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
body.home-dark .sidebar-search {
  background: linear-gradient(180deg, #4a226f, #3b185f);
  border-color: #9657b5;
}
body.home-dark .sidebar-search label { color: #ffe2c9; }
body.home-dark .sidebar-search input {
  background: #2e154a;
  border-color: #8f58b4;
  color: #fff4e2;
}
body.home-dark .about-card-modern {
  background: linear-gradient(180deg, #4a226f, #3b185f);
  border-color: #9657b5;
}
body.home-dark .about-card-modern p { color: #ffe2c9; }
body.home-dark .guide-list-modern li {
  background: linear-gradient(180deg, #4a226f, #3b185f);
  border-color: #9657b5;
  color: #ffe9d2;
}

body.article-light {
  --bg: #fffaf4;
  --bg-alt: #ffeede;
  --surface: #ffffff;
  --border: #f3d4b6;
  --text: #2f1b46;
  --muted: #7b5e76;
}
body.article-light .hero {
  background: linear-gradient(180deg, #7b2cbf 0%, #ff7b54 100%);
  color: #fff;
}
body.article-light .hero p,
body.article-light .meta { color: #efe3d6; }
body.article-light .hero h1 { color: #fff; text-transform: none; font-family: "Playfair Display", Georgia, serif; font-style: italic; }
body.article-light .article-content {
  max-width: 860px;
  margin: -24px auto 0;
  border-top: 4px solid #d14d3b;
}

/* Continuous ticker */
.ticker-wrap { width: 100%; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 85%, var(--bg-alt)); }
.ticker-wrap .container { max-width: 100%; padding-left: 0; padding-right: 0; }
.ticker { width: 100%; overflow: hidden; position: relative; padding: 10px 16px; }
.ticker__track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 35s linear infinite;
}
.ticker__item {
  display: inline-block;
  margin-right: 36px;
  color: var(--text);
  opacity: 0.92;
}
.ticker__item a { color: var(--brand); font-weight: 600; }
.ticker__item::before {
  content: '•';
  color: var(--accent);
  margin: 0 12px 0 4px;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Dark tune */
body.home-dark .ticker-wrap { background: #3a1b63; border-bottom-color: #7a3b8f; }
body.home-dark .ticker__item { color: #ffeede; }
body.home-dark .ticker__item a { color: #ffd166; }

/* Article detail redesign */
.article-page .hero { padding: 16px 0; }
.article-page .hero h1 { font-size: clamp(1.1rem, 2vw, 1.5rem); text-transform: none; letter-spacing: 0; }
.article-page .hero p { margin-top: 4px; font-size: 13px; }
.article-breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.article-breadcrumb a { color: #ffd9a8; text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-top-ad { margin-top: 6px; margin-bottom: 14px; }
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.article-main { min-width: 0; }
.article-head { margin-bottom: 14px; }
.article-eyebrow { margin: 0 0 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #ffb996; }
.article-title {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-style: normal;
  color: #fff7eb;
  line-height: 1;
}
.article-meta { margin: 0; font-size: 13px; color: #e9cbb8; }
.article-feature {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #8f58b4;
  display: block;
  margin: 0 0 16px;
}
.article-content {
  background: #2f124e;
  border: 1px solid #8f58b4;
  border-radius: 12px;
  padding: 22px 20px;
}
.article-content blockquote {
  margin: 14px 0;
  padding: 10px 12px;
  border-left: 3px solid #ffb347;
  background: rgba(255,255,255,0.03);
  color: #ffeede;
  font-style: italic;
}
.article-side { display: grid; gap: 12px; }
.side-box {
  background: #2f124e;
  border: 1px solid #8f58b4;
  border-radius: 10px;
  padding: 12px;
}
.side-box h4 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ffd9a8;
}
.side-list { margin: 0; padding-left: 16px; }
.side-list li { margin-bottom: 6px; }
.side-list a { color: #ffe9cf; text-decoration: none; }
.side-list a:hover { text-decoration: underline; }
.side-newsletter input,
.side-newsletter button {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #8f58b4;
  padding: 9px 10px;
  margin-top: 8px;
}
.side-newsletter input { background: #24103d; color: #fff; }
.side-newsletter button {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.side-rss .rss-item h4 { font-size: 14px; }
.side-rss .rss-item p { font-size: 13px; }

@media (max-width: 980px) {
  .article-shell { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .header-row { align-items: flex-start; }
  .brand .title { font-size: 24px; line-height: 1.05; }
  .hero { padding: 22px 0; }
  .hero h1 { font-size: clamp(1.6rem, 9vw, 2.4rem); line-height: 1.08; }
  .guides-sidebar { width: 100%; }
  .sidebar-search { max-width: 100%; }
  .article-shell { gap: 14px; }
  .article-content { padding: 16px 14px; }
  .article-content p { font-size: 17px; line-height: 1.6; }
  .rss-unique .grid { grid-template-columns: 1fr; }
  .footer-links { gap: 18px; }
  .footer-links a { font-size: 14px; }
}

@media (max-width: 980px) {
  .guides-layout { grid-template-columns: 1fr; }
  .guides-sidebar .ad-slot { margin-left: auto; margin-right: auto; }
}
@media (max-width: 700px) {
  .guides-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .brand .title { font-size: 20px; }
  .theme-toggle { font-size: 12px; padding: 6px 8px; }
  .article-content p { font-size: 16px; }
  .footer-links a { font-size: 13px; }
}

