/* ============================================================
       RESET & SHARED BASE
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    body {
      font-size: 16px;
      line-height: 1.7;
      transition: background 0.25s, color 0.25s;
      overflow-x: hidden;
      min-width: 0;
    }
    img, svg, video { max-width: 100%; height: auto; display: block; }
    a    { text-decoration: none; }
    ul   { list-style: none; }
    button, input { font-family: inherit; }
    button:focus-visible, input:focus-visible, a:focus-visible {
      outline: 2px solid var(--p, #0077CC);
      outline-offset: 2px;
    }

    .container       { max-width: 1120px; margin: 0 auto; padding: 0 24px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
    .container--narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }

    /* ── Header ── */
    .site-header {
      position: sticky; top: 0; z-index: 200;
      min-height: 62px;
      display: flex; align-items: center;
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      padding-top: env(safe-area-inset-top);
    }
    .header-inner {
      display: flex; align-items: center; width: 100%;
      gap: 16px; min-width: 0;
    }
    .header-brand { min-width: 0; flex: 0 1 auto; }
    .header-logo  {
      font-size: 1.12rem; font-weight: 800; letter-spacing: -0.04em;
      display: flex; align-items: center; gap: 10px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .logo-mark { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; }
    .header-tagline { font-size: 0.72rem; opacity: 0.55; margin-top: 2px; }
    .site-nav  { margin-left: auto; flex: 0 0 auto; }
    .site-nav ul { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
    .site-nav a  {
      font-size: 0.88rem; font-weight: 500; padding: 8px 12px;
      border-radius: 20px; transition: background 0.2s, color 0.2s;
      display: inline-block;
    }
    .nav-toggle  {
      display: none; background: transparent; border: none;
      padding: 10px; cursor: pointer; margin-left: auto;
      min-width: 44px; min-height: 44px;
      align-items: center; justify-content: center; flex-shrink: 0;
    }
    .nav-toggle svg line { transition: stroke 0.2s; }

    /* ── Progress bar ── */
    .progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 9999; transition: width 0.1s linear; }

    /* ── Article Hero ── */
    .article-hero { padding: 48px 0 0; }
    .hero-image-wrap { margin-bottom: 40px; }
    .hero-image { width: 100%; max-height: min(480px, 70vw); object-fit: cover; border-radius: 16px; }
    .hero-image-placeholder { width: 100%; height: min(400px, 58vw); min-height: 180px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; opacity: 0.6; }
    .article-category { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 18px; }
    .article-title    { font-family: Fraunces, Georgia, serif; font-size: clamp(1.7rem, 4.6vw, 2.85rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.04em; margin-bottom: 16px; overflow-wrap: anywhere; }
    .article-subtitle { font-size: clamp(1.02rem, 2.4vw, 1.2rem); line-height: 1.55; margin-bottom: 28px; opacity: 0.7; }
    .article-meta     { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid; border-bottom: 1px solid; margin-bottom: 48px; }
    .meta-avatar      { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
    .meta-avatar-ph   { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
    .meta-info        { flex: 1; min-width: 0; }
    .meta-author      { font-weight: 700; font-size: 0.92rem; }
    .meta-date        { font-size: 0.8rem; opacity: 0.6; margin-top: 2px; }
    .meta-read        { font-size: 0.82rem; font-weight: 600; opacity: 0.55; margin-left: auto; }

    /* Share bar */
    .share-bar { display: flex; align-items: center; gap: 10px; }
    .share-btn {
      width: 40px; height: 40px; border-radius: 50%;
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 0.8rem; border: none; cursor: pointer;
      transition: opacity 0.2s, transform 0.2s;
    }
    .share-btn:hover { opacity: 0.8; transform: scale(1.1); }

    /* ── Article Body ── */
    .article-body { font-size: 1.1rem; line-height: 1.9; margin-bottom: 64px; overflow-wrap: break-word; }
    .article-body p  { margin-bottom: 22px; }
    .article-body h2 { font-family: Fraunces, Georgia, serif; font-size: clamp(1.28rem, 3vw, 1.65rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.03em; margin: 48px 0 18px; }
    .article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 36px 0 14px; }
    .article-body ul, .article-body ol { padding-left: 28px; margin-bottom: 22px; }
    .article-body li { margin-bottom: 8px; }
    .article-body blockquote {
      padding: 22px 28px; margin: 36px 0;
      font-size: clamp(1.05rem, 2.4vw, 1.25rem); font-style: italic; line-height: 1.65;
      border-radius: 8px;
    }
    .article-intro-p { font-size: clamp(1.05rem, 2.4vw, 1.2rem); line-height: 1.85; }

    /* ── Author Bio ── */
    .author-bio { display: flex; gap: 24px; align-items: flex-start; padding: 32px; border-radius: 16px; margin-bottom: 64px; }
    .bio-avatar  { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
    .bio-avatar-ph { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; flex-shrink: 0; }
    .bio-text { min-width: 0; }
    .bio-text h3 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
    .bio-text .bio-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; display: block; opacity: 0.55; }
    .bio-text p  { font-size: 0.92rem; line-height: 1.7; opacity: 0.75; }

    /* ── Related articles ── */
    .related-section { margin-bottom: 64px; }
    .section-heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; opacity: 0.55; }
    h2.section-heading {
      font-family: Fraunces, Georgia, serif;
      font-size: clamp(1.35rem, 3.2vw, 1.85rem);
      font-weight: 600;
      letter-spacing: -0.03em;
      text-transform: none;
      opacity: 1;
      color: var(--text);
      line-height: 1.2;
      margin-bottom: 16px;
    }
    .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .related-card { border-radius: 12px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; min-width: 0; }
    .related-card:hover { transform: translateY(-4px); }
    .related-img  { width: 100%; height: 160px; object-fit: cover; display: block; }
    .related-img-ph { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; opacity: 0.5; }
    .related-body { padding: 16px 18px 20px; }
    .related-cat  { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; display: block; }
    .related-title { font-size: 0.98rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
    .related-title a { }
    .related-exc  { font-size: 0.85rem; line-height: 1.55; opacity: 0.65; }

    /* ── Comments ── */
    .comments-section { margin-bottom: 64px; }
    .comment-list { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }
    .comment { display: flex; gap: 16px; }
    .comment-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; flex-shrink: 0; }
    .comment-body { flex: 1; min-width: 0; }
    .comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
    .comment-name   { font-weight: 700; font-size: 0.9rem; }
    .comment-date   { font-size: 0.78rem; opacity: 0.5; }
    .comment-text   { font-size: 0.92rem; line-height: 1.65; opacity: 0.8; }

    /* ── Newsletter ── */
    .newsletter-section { padding: 48px 36px; border-radius: 20px; margin-bottom: 64px; text-align: center; }
    .newsletter-section h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.3px; }
    .newsletter-section p  { font-size: 0.95rem; opacity: 0.7; margin-bottom: 24px; }
    .newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; width: 100%; }
    .newsletter-form input { flex: 1 1 200px; min-width: 0; padding: 12px 18px; border-radius: 30px; font-size: 16px; border: none; }
    .newsletter-form button { padding: 12px 26px; border-radius: 30px; font-size: 0.9rem; font-weight: 700; border: none; cursor: pointer; transition: opacity 0.2s, transform 0.15s; white-space: nowrap; min-height: 44px; }
    .newsletter-form button:hover { opacity: 0.88; transform: scale(1.02); }

    /* ── Footer ── */
    .site-footer { padding: 36px 0; }
    .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; }
    .footer-brand { font-weight: 700; font-size: 1rem; }
    .footer-links { display: flex; gap: 12px 18px; flex-wrap: wrap; }
    .footer-links a { opacity: 0.6; transition: opacity 0.2s; }
    .footer-links a:hover { opacity: 1; }
    .footer-copy { opacity: 0.45; font-size: 0.82rem; }

    /* ============================================================
       THEME 1 — Clean White + Blue  (News)
    ============================================================ */
    body.theme1 {
      --p:       #1b6b4a;
      --pd:      #14352c;
      --pl:      #eaf6ee;
      --text:    #121816;
      --text2:   #5b665f;
      --bg:      #ffffff;
      --bgalt:   #f3f5f1;
      --surf:    #f7f8f5;
      --border:  #d8ddd6;
      background: var(--bg); color: var(--text);
      font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    .theme1 .site-header { background: rgba(255,255,255,0.88); border-bottom: 1px solid var(--border); }
    .theme1 .site-nav.is-open { background: var(--bg); }
    .theme1 .header-logo { color: var(--pd); }
    .theme1 .site-nav a  { color: var(--text2); }
    .theme1 .site-nav a:hover { background: var(--pl); color: var(--p); }
    .theme1 .nav-toggle svg line { stroke: var(--text); }
    .theme1 .progress-bar { background: var(--p); }

    .theme1 .hero-image-placeholder { background: linear-gradient(145deg, #1d4d3d, #7dba96 55%, #f4efe6); color: #fff; font-weight: 700; letter-spacing: 0.04em; }
    .theme1 .article-category { background: var(--pl); color: var(--p); }
    .theme1 .article-title    { color: var(--text); }
    .theme1 .article-meta     { border-color: var(--border); }
    .theme1 .meta-avatar-ph   { background: var(--pl); color: var(--p); }
    .theme1 .share-btn.s-tw   { background: #000; color: #fff; }
    .theme1 .share-btn.s-fb   { background: #1877F2; color: #fff; }
    .theme1 .share-btn.s-li   { background: #0A66C2; color: #fff; }
    .theme1 .article-body blockquote { background: var(--pl); border-left: 4px solid var(--p); color: var(--pd); }
    .theme1 .article-body h2  { color: var(--text); }

    .theme1 .author-bio  { background: var(--surf); border: 1px solid var(--border); }
    .theme1 .bio-avatar-ph { background: var(--pl); color: var(--p); }

    .theme1 .related-card { background: var(--surf); border: 1px solid var(--border); }
    .theme1 .related-card:hover { box-shadow: 0 16px 40px rgba(20,53,44,0.1); }
    .theme1 .related-img-ph { background: var(--pl); }
    .theme1 .related-cat  { color: var(--p); }
    .theme1 .related-title a { color: var(--text); }
    .theme1 .related-title a:hover { color: var(--p); }

    .theme1 .comment-avatar { background: var(--pl); color: var(--p); }
    .theme1 .comment { border-bottom: 1px solid var(--border); padding-bottom: 28px; }

    .theme1 .newsletter-section { background: var(--pd); }
    .theme1 .newsletter-section h3, .theme1 .newsletter-section p { color: #fff; }
    .theme1 .newsletter-form input  { border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.15); color: #fff; }
    .theme1 .newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
    .theme1 .newsletter-form button { background: #fff; color: var(--pd); }

    .theme1 .site-footer { background: #14352c; border-top: none; }
    .theme1 .footer-brand, .theme1 .footer-links a, .theme1 .footer-copy { color: rgba(255,255,255,0.75); }

    /* ============================================================
       THEME 2 — Dark + Cyan  (Tech Blog)
    ============================================================ */






    /* ============================================================
       THEME 3 — White + Red  (Magazine)
    ============================================================ */






    /* ============================================================
       THEME 4 — Minimal White + Black  (Medium style)
    ============================================================ */






    /* ============================================================
       THEME 5 — Cream + Green  (Lifestyle Blog)
    ============================================================ */






    /* ── In-page nav anchors (offset for sticky header) ─── */
    #top, #related, #about, #benefits, #how-it-works, #faq { scroll-margin-top: 80px; }

    /* ── Privacy/Terms/Contact modals ──────────────────── */
    .vv-modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.55); align-items: center; justify-content: center; padding: 24px; }
    .vv-modal-overlay.is-open { display: flex; }
    .vv-modal-box { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 16px; max-width: 640px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 36px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); -webkit-overflow-scrolling: touch; }
    .vv-modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--surf); color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
    .vv-modal-close:hover { background: var(--border); }
    .vv-modal-box h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; color: var(--text); padding-right: 36px; }
    .vv-modal-body { font-size: 1rem; line-height: 1.8; color: var(--text2); }
    .vv-modal-body p { margin-bottom: 16px; }
    .vv-modal-body h2 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 12px; color: var(--text); }
    .vv-modal-body ul, .vv-modal-body ol { padding-left: 24px; margin-bottom: 16px; }
    .vv-modal-body li { margin-bottom: 6px; }
    .vv-modal-body a { color: var(--p); text-decoration: underline; word-break: break-word; }

    /* ── Layout pack (theme 1) ─────────────────── */
    .article-body table { width:100%; border-collapse:collapse; margin:28px 0; font-size:0.96rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .article-body th, .article-body td { padding:12px 14px; text-align:left; }
    .wp-block { margin:56px 0; }
    .wp-block-img { width:100%; max-width:100%; height:auto; display:block; border-radius: 12px; }
    .wp-points { list-style:none; padding:0; margin:24px 0; }
    .wp-points li { padding:14px 0 14px 34px; position:relative; }
    .wp-points li:before { content:''; position:absolute; left:6px; top:20px; width:10px; height:10px; border-radius:50%; background:var(--p); }
    .wp-steps { counter-reset:wpstep; list-style:none; padding:0; margin:24px 0; }
    .wp-steps li { counter-increment:wpstep; padding:16px 0 16px 52px; position:relative; }
    .wp-steps li:before { content:counter(wpstep); position:absolute; left:0; top:14px; width:32px; height:32px; border-radius:50%; background:var(--p); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; font-size:0.9rem; }
    .wp-faq-q {
      font-weight: 700;
      margin: 14px 0 0;
      padding: 16px 18px 8px;
      background: var(--surf);
      border: 1px solid var(--border);
      border-bottom: 0;
      border-radius: 14px 14px 0 0;
    }
    .wp-faq-a {
      color: var(--text2);
      margin: 0 0 12px;
      padding: 0 18px 16px;
      background: var(--surf);
      border: 1px solid var(--border);
      border-top: 0;
      border-radius: 0 0 14px 14px;
    }
    .wp-points li {
      padding: 16px 16px 16px 40px;
      position: relative;
      background: var(--surf);
      border: 1px solid var(--border);
      border-radius: 12px;
      margin-bottom: 10px;
    }
    .wp-steps li {
      counter-increment: wpstep;
      padding: 16px 16px 16px 56px;
      position: relative;
      background: var(--surf);
      border: 1px solid var(--border);
      border-radius: 12px;
      margin-bottom: 10px;
    }
    .related-card { border-radius: 16px; }
    .theme1 .related-card { border-radius: 16px; }
    .wp-block { border-top: 1px solid var(--border); padding-top: 36px; }
    .wp-advertorial { border-radius: 12px; border-left-width: 4px; }
    .article-body blockquote { border-radius: 14px; font-family: Fraunces, Georgia, serif; font-style: italic; }
    .wp-disclosure { border-top:1px solid var(--border); margin-top:40px; padding:22px 0 0; font-size:0.8rem; line-height:1.7; color:var(--text2); }
    .wp-disclosure strong { color:var(--text); }
    .wp-advertorial { background:var(--surf); border-left:3px solid var(--p); padding:14px 18px; margin:0 0 18px; font-size:0.8rem; color:var(--text2); border-radius:4px; }
    .theme1 .related-card { border:1px solid var(--border); border-radius:6px; overflow:hidden; background:var(--bg); }
    .article-body th { background:var(--pl); color:var(--p); border-bottom:2px solid var(--p); }
    .article-body td { border-bottom:1px solid var(--border); }
    .wp-block { border-top: 1px solid var(--border); padding-top: 36px; }

    /* ============================================================
       RESPONSIVE
    ============================================================ */
    @media (max-width: 1024px) {
      .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 900px) {
      .header-tagline { display: none; }
      .site-nav { display: none; }
      .site-nav.is-open {
        display: block;
        position: fixed;
        top: calc(62px + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0;
        padding: 20px 24px 32px;
        z-index: 199;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      .site-nav.is-open ul { flex-direction: column; gap: 6px; flex-wrap: nowrap; }
      .site-nav.is-open a  { font-size: 1.1rem; padding: 14px 16px; display: block; border-radius: 10px; }
      .nav-toggle { display: flex; }
    }

    @media (max-width: 768px) {
      .container, .container--narrow {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
      }
      .article-hero { padding: 28px 0 0; }
      .hero-image-wrap { margin-bottom: 24px; }
      .article-meta { margin-bottom: 32px; gap: 10px; }
      .meta-read { margin-left: 0; width: 100%; }
      .share-bar { width: 100%; }
      .article-body { margin-bottom: 40px; font-size: 1.05rem; }
      .article-body h2 { margin-top: 36px; }
      .article-body blockquote { padding: 18px 16px; margin: 28px 0; }
      .author-bio { flex-direction: column; padding: 22px; margin-bottom: 40px; gap: 16px; }
      .wp-block { margin: 40px 0; }
      .related-section, .comments-section { margin-bottom: 40px; }
      .newsletter-section { padding: 32px 18px; margin-bottom: 40px; }
      .newsletter-form { flex-direction: column; }
      .newsletter-form input,
      .newsletter-form button { width: 100%; flex: 1 1 auto; }
    }

    @media (max-width: 560px) {
      .related-grid { grid-template-columns: 1fr; }
      .footer-inner { flex-direction: column; text-align: center; }
      .footer-links { justify-content: center; }
      .comment { flex-direction: column; }
      .vv-modal-overlay { padding: 12px; align-items: stretch; }
      .vv-modal-box { padding: 28px 18px 22px; max-height: 92vh; border-radius: 12px; }
      .wp-steps li { padding-left: 46px; }
      .wp-advertorial { padding: 12px 14px; }
    }

    @media (max-width: 380px) {
      .header-logo { font-size: 1.05rem; }
      .article-title { font-size: 1.5rem; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition: none !important; animation: none !important; }
      .related-card:hover { transform: none; }
    }
