/*
Theme Name: Shouters Planet
Theme URI: https://shoutersplanet.com/
Author: Shouters Planet
Author URI: https://shoutersplanet.com/
Description: The editorial theme of Shouters Planet — Blogging & SEO, Cyber Security, Android & Mobile and Make Money Online guides. An exact WordPress port of the shoutersplanet.blogspot.com theme (v10), built with Google Gemini.
Version: 1.4.23
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shouters-planet
Tags: blog, news, two-columns, custom-menu, featured-images, threaded-comments
*/

      :root {
        --paper: #ffffff;
        --soft: #f4f6f9;
        --navy-deep: #0a1f3d;
        --ink: #131c2e;
        --navy: #0e2a52;
        --red: #c8102e;
        --muted: #5b6577;
        --line: #e2e7ef;
        --line-dark: #c9d2e0;
        --whatsapp: #1fa855;
        --telegram: #1d88be;
        --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
        --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      }
      * { box-sizing: border-box; }
      html { scroll-behavior: smooth; }
      body {
        margin: 0;
        background: var(--paper);
        color: var(--ink);
        font-family: var(--sans);
        font-size: 16px;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
      }
      img { display: block; max-width: 100%; height: auto; }
      a { color: var(--navy); text-decoration: none; }
      a:hover { color: var(--red); }
      button { font-family: var(--sans); cursor: pointer; min-height: 2.25rem; }
      .wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
      .serif { font-family: var(--serif); }
      .quickedit { display: none !important; }

      /* ---------- Reading progress ---------- */
      #progressBar {
        position: fixed; top: 0; left: 0; height: 3px; width: 0;
        background: var(--red); z-index: 200;
      }

      /* ---------- Utility bar ---------- */
      .utility { background: var(--navy-deep); color: #cdd8ea; font-size: 12.5px; }
      .utility .wrap {
        display: flex; align-items: center; justify-content: space-between;
        gap: 16px; min-height: 36px; padding-top: 4px; padding-bottom: 4px;
      }
      .utility nav { display: flex; gap: 22px; flex-wrap: wrap; }
      .utility a { color: #cdd8ea; padding: 6px 0; }
      .utility a:hover { color: #ffffff; text-decoration: underline; }

      /* ---------- Masthead ---------- */
      .masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
      .masthead .wrap {
        display: flex; align-items: center; justify-content: space-between;
        gap: 20px; padding-top: 20px; padding-bottom: 20px;
      }
      .wordmark {
        font-family: var(--serif); font-weight: 900;
        font-size: clamp(30px, 5vw, 44px); line-height: 1;
        letter-spacing: -0.01em; color: var(--navy); display: inline-block;
      }
      .wordmark:hover { color: var(--navy); }
      .wordmark .planet { color: var(--red); }
      .tagline {
        margin-top: 6px; font-size: 12px; font-weight: 600;
        letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
      }
      .mast-actions { display: flex; gap: 10px; flex: none; align-items: center; }
      .icon-btn {
        width: 44px; height: 44px; min-height: 44px; border-radius: 50%;
        border: 1px solid var(--line-dark); background: var(--paper);
        color: var(--navy); display: inline-flex; align-items: center;
        justify-content: center; padding: 0;
      }
      .icon-btn:hover { border-color: var(--navy); color: var(--red); }
      .icon-btn svg { width: 20px; height: 20px; }
      .sub-pill-btn {
        display: inline-flex; align-items: center; gap: 7px;
        border: 1px solid var(--navy); background: var(--navy);
        color: #fff !important; font-size: 13px; font-weight: 700;
        padding: 0 16px; height: 42px; border-radius: 999px;
        transition: background .15s ease;
      }
      .sub-pill-btn:hover { background: var(--red); border-color: var(--red); color: #fff !important; }
      .sub-pill-btn svg { width: 15px; height: 15px; }

      /* ---------- Main nav ---------- */
      .mainnav {
        position: sticky; top: 0; z-index: 100;
        background: transparent;
      }
      .mainnav .wrap { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding-top: 12px; }
      /* Desktop: menu button collapses/expands the nav bar (on mobile .open shows it) */
      @media (min-width: 641px) {
        .mainnav.open { display: none; }
      }
      .mainnav a {
        font-size: 14px; font-weight: 700; color: var(--navy);
        padding: 10px 9px; border: 1px solid transparent; border-radius: 8px;
        background: var(--soft);
        margin-bottom: 0; display: inline-flex; align-items: center; gap: 5px;
        transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
      }
      .nav-icon { flex: none; display: inline-flex; align-items: center; }
      .nav-icon svg { width: 15px; height: 15px; }
      .mainnav a.nav-icon-only { padding: 10px 11px; }
      .mainnav a.nav-icon-only .nav-icon svg { width: 18px; height: 18px; }
      .mainnav a:hover { color: var(--red); background: #e9edf4; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(14,42,82,0.10); }
      .mainnav a.active { color: var(--red); background: rgba(200,16,46,0.10); border-color: rgba(200,16,46,0.30); }
      .mainnav a.active:hover { background: rgba(200,16,46,0.14); }

      /* ---------- Nav buttons: Explore Topics pastel backgrounds, navy text (v1.4.9, desktop only) ---------- */
      @media (min-width: 641px) {
        .mainnav a.nav-home, .mainnav a.nav-red { background: #fdecec; }
        .mainnav a.nav-blue { background: #e8f0fe; }
        .mainnav a.nav-purple { background: #f1eafe; }
        .mainnav a.nav-green { background: #e9f7ee; }
        .mainnav a.nav-orange { background: #fdf0e7; }
        .mainnav a.nav-teal { background: #e6f7f4; }
        .mainnav a.nav-home:hover, .mainnav a.nav-home.active,
        .mainnav a.nav-red:hover, .mainnav a.nav-red.active { background: #fad5d5; }
        .mainnav a.nav-blue:hover, .mainnav a.nav-blue.active { background: #d3e2fd; }
        .mainnav a.nav-purple:hover, .mainnav a.nav-purple.active { background: #e2d4fb; }
        .mainnav a.nav-green:hover, .mainnav a.nav-green.active { background: #d2efdb; }
        .mainnav a.nav-orange:hover, .mainnav a.nav-orange.active { background: #fbe0cd; }
        .mainnav a.nav-teal:hover, .mainnav a.nav-teal.active { background: #c9efe9; }
        .mainnav a:hover, .mainnav a.active { color: var(--navy); }
        .mainnav a.nav-home.active { border-color: #c8102e; }
        .mainnav a.nav-red.active { border-color: #dc2626; }
        .mainnav a.nav-blue.active { border-color: #2563eb; }
        .mainnav a.nav-purple.active { border-color: #7c3aed; }
        .mainnav a.nav-green.active { border-color: #16a34a; }
        .mainnav a.nav-orange.active { border-color: #ea580c; }
        .mainnav a.nav-teal.active { border-color: #0d9488; }
      }

      /* ---------- Search drawer ---------- */
      .search-drawer { display: none; background: var(--soft); border-bottom: 1px solid var(--line); }
      .search-drawer.open { display: block; }
      .search-drawer .wrap { padding-top: 16px; padding-bottom: 16px; }
      .search-drawer label {
        display: block; font-size: 12px; font-weight: 700;
        letter-spacing: 0.1em; text-transform: uppercase;
        color: var(--muted); margin-bottom: 8px;
      }
      .search-row { display: flex; gap: 10px; }
      .search-row input {
        flex: 1; font-family: var(--sans); font-size: 16px;
        padding: 12px 14px; border: 1px solid var(--line-dark);
        border-radius: 6px; background: var(--paper); color: var(--ink); min-height: 48px;
      }
      .search-row input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
      .search-row button {
        background: var(--navy); color: #fff; border: 0;
        padding: 0 22px; border-radius: 6px; font-weight: 700;
      }
      .search-row button:hover { background: var(--red); }

      /* ---------- Zero-CLS AdSense Slots & Auto-Collapse ---------- */
      #ads-wrapper, .adspost1, .middle-ads, .adspost2 {
        max-width: 100%;
        overflow: hidden;
        text-align: center;
        margin: 0 auto;
        padding: 0;
        min-height: 0;
      }
      #ads-wrapper:has(ins.adsbygoogle[data-ad-status="filled"]),
      .adspost1:has(ins.adsbygoogle[data-ad-status="filled"]),
      .middle-ads:has(ins.adsbygoogle[data-ad-status="filled"]),
      .adspost2:has(ins.adsbygoogle[data-ad-status="filled"]) {
        margin: 18px auto;
      }
      ins.adsbygoogle[data-ad-status="unfilled"],
      ins.adsbygoogle:empty {
        display: none !important;
      }
      .sp-ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]),
      .adspost1:has(ins.adsbygoogle[data-ad-status="unfilled"]),
      .adspost2:has(ins.adsbygoogle[data-ad-status="unfilled"]),
      .middle-ads:has(ins.adsbygoogle[data-ad-status="unfilled"]),
      #ads-wrapper:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
      }
      #ads-wrapper ins.adsbygoogle,
      .adspost1 ins.adsbygoogle,
      .middle-ads ins.adsbygoogle,
      .adspost2 ins.adsbygoogle {
        max-width: 100% !important;
      }

      main.wrap { margin-top: 8px; padding-top: 22px; }

      /* ---------- Featured story ---------- */
      .featured {
        display: grid; grid-template-columns: 1.25fr 1fr;
        border: 1px solid var(--line); border-radius: 8px;
        overflow: hidden; background: var(--paper);
      }
      .featured-media { position: relative; min-height: 280px; background: var(--soft); align-self: center; aspect-ratio: 16/9; }
      .featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
      .badge-featured {
        position: absolute; top: 16px; left: 16px; background: var(--red);
        color: #fff; font-size: 11.5px; font-weight: 800;
        letter-spacing: 0.12em; text-transform: uppercase;
        padding: 6px 12px; border-radius: 4px; z-index: 2;
      }
      .featured-body { padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
      .cat-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
      .featured-body h1, .featured-body h2 {
        font-family: var(--serif); font-weight: 700;
        font-size: clamp(26px, 3.6vw, 38px); line-height: 1.18;
        color: var(--navy); margin: 0;
      }
      .featured-body h2 a { color: inherit; }
      .featured-body h2 a:hover { color: var(--red); }
      .featured-body p { margin: 0; color: var(--ink); font-size: 16px; }
      .meta { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
      .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); flex: none; }
      .read-link { font-weight: 800; color: var(--navy); font-size: 15px; }
      .read-link:hover { color: var(--red); }

      /* ---------- Section headings ---------- */
      /* ---------- Homepage intro ---------- */
      .home-intro { margin: 0 0 20px; background: linear-gradient(180deg, var(--paper) 0%, #f6f8fb 100%); border: 1px solid var(--line); border-radius: 8px; padding: 34px 30px 32px; text-align: center; }
      .home-intro h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; color: var(--navy); margin: 0; }
      .home-intro h1::after { content: ""; display: block; width: 72px; height: 4px; background: var(--red); border-radius: 2px; margin: 16px auto 14px; }
      .home-intro p { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 0 auto; max-width: 860px; }
      .home-intro .sp-intro-short { display: none; }

      .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 52px 0 22px; }
      .section-head h2 {
        font-family: var(--serif); font-weight: 700;
        font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15;
        color: var(--navy); margin: 0; padding-bottom: 8px;
        border-bottom: 3px solid var(--red);
      }
      .section-head .head-link { color: var(--red); font-weight: 700; font-size: 14px; white-space: nowrap; padding-bottom: 8px; }
      .section-head .head-link:hover { text-decoration: underline; }

      /* ---------- Filter chips ---------- */
      .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
      .chip {
        border: 1px solid var(--line-dark); background: var(--paper);
        color: var(--navy); border-radius: 999px; padding: 8px 16px;
        font-size: 13.5px; font-weight: 700; min-height: 38px;
        display: inline-flex; align-items: center;
      }
      .chip:hover { border-color: var(--navy); color: var(--red); }
      .chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

      /* ---------- Post grid ---------- */
      .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
      .card {
        border: 1px solid var(--line); border-radius: 8px;
        overflow: hidden; background: var(--paper);
        display: flex; flex-direction: column; transition: box-shadow .18s ease;
      }
      .card:hover { box-shadow: 0 10px 28px rgba(14,42,82,0.10); }
      .card-media { aspect-ratio: 16/9; overflow: hidden; background: var(--soft); }
      .card-media img { width: 100%; height: 100%; object-fit: cover; }
      .card-body { padding: 18px 18px 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
      .card-body h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.28; color: var(--navy); margin: 0; }
      .card-body h3 a { color: inherit; }
      .card-body h3 a:hover { color: var(--red); }
      .card-body p { margin: 0; font-size: 14.5px; color: var(--ink); }
      .card-foot { margin: 16px 18px 0; padding: 12px 0 16px; border-top: 1px solid var(--line); }

      /* ---------- Topics strip ---------- */
      .topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
      .topic { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); transition: box-shadow .15s ease, transform .15s ease; }
      .topic:hover { box-shadow: 0 8px 22px rgba(14,42,82,0.10); transform: translateY(-2px); }
      .topic-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 0; }
      .topic-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
      .topic h3 { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--navy); margin: 0; }
      .topic p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); flex: 1; }
      .topic-explore { margin-top: 10px; font-size: 14px; font-weight: 700; }
      .topic-blue { background: #e8f0fe; border-color: #d3e2fd; }
      .topic-blue h3, .topic-blue .topic-explore { color: #1d4ed8; }
      .topic-blue .topic-icon { background: #2563eb; }
      .topic-purple { background: #f1eafe; border-color: #e2d4fb; }
      .topic-purple h3, .topic-purple .topic-explore { color: #6d28d9; }
      .topic-purple .topic-icon { background: #7c3aed; }
      .topic-red { background: #fdecec; border-color: #fad5d5; }
      .topic-red h3, .topic-red .topic-explore { color: #b91c1c; }
      .topic-red .topic-icon { background: #dc2626; }
      .topic-green { background: #e9f7ee; border-color: #d2efdb; }
      .topic-green h3, .topic-green .topic-explore { color: #15803d; }
      .topic-green .topic-icon { background: #16a34a; }
      .topic-orange { background: #fdf0e7; border-color: #fbe0cd; }
      .topic-orange h3, .topic-orange .topic-explore { color: #c2410c; }
      .topic-orange .topic-icon { background: #ea580c; }
      .topic-teal { background: #e6f7f4; border-color: #c9efe9; }
      .topic-teal h3, .topic-teal .topic-explore { color: #0f766e; }
      .topic-teal .topic-icon { background: #0d9488; }

      /* ---------- Man Behind This Blog + Editorial Email Subscription Grid ---------- */
      .editorial-split {
        display: flex;
        flex-direction: column;
        gap: 28px;
        margin-top: 52px;
      }
      .mbtb-card {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--paper);
        padding: 28px;
        display: flex;
        gap: 32px;
        align-items: stretch;
      }
      .mbtb-main {
        flex: 1;
        min-width: 0;
        display: flex;
        gap: 24px;
        align-items: flex-start;
      }
      .mbtb-features {
        flex: none;
        width: 330px;
        border-left: 1px solid var(--line);
        padding-left: 32px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 22px;
      }
      .mbtb-feature {
        display: flex;
        gap: 14px;
        align-items: flex-start;
      }
      .mbtb-feature-icon {
        flex: none;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #e8f0fb;
        color: var(--navy);
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      .mbtb-feature strong {
        display: block;
        font-size: 15.5px;
        font-weight: 800;
        color: var(--navy);
        margin-bottom: 2px;
      }
      .mbtb-feature-desc {
        display: block;
        font-size: 13.5px;
        line-height: 1.5;
        color: var(--muted);
      }
      .mbtb-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--navy);
        color: #ffffff !important;
        font-size: 14px;
        font-weight: 700;
        height: 42px;
        padding: 0 18px;
        border-radius: 999px;
        transition: background .15s ease;
      }
      .mbtb-btn:hover { background: var(--navy-deep); color: #ffffff !important; }
      .mbtb-photo-wrap {
        flex: none;
        width: 142px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid var(--line-dark);
        background: var(--soft);
      }
      .mbtb-photo-wrap img {
        width: 100%;
        height: 185px;
        object-fit: cover;
        display: block;
        border-radius: 0;
      }
      .mbtb-content {
        flex: 1;
        min-width: 0;
      }
      .mbtb-kicker {
        font-size: 11.5px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--red);
        margin-bottom: 6px;
        display: block;
      }
      .mbtb-content h3 {
        font-family: var(--serif);
        font-weight: 700;
        font-size: 24px;
        line-height: 1.2;
        color: var(--navy);
        margin: 0 0 10px;
      }
      .mbtb-content p {
        font-size: 14.75px;
        line-height: 1.65;
        color: var(--ink);
        margin: 0 0 14px;
      }
      .mbtb-links {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
      }
      .mbtb-more {
        font-size: 14px;
        font-weight: 800;
        color: var(--navy);
        border-bottom: 2px solid var(--red);
        padding-bottom: 2px;
      }
      .mbtb-more:hover { color: var(--red); }

      /* ---------- Editorial Email Subscription Card ---------- */
      .sp-sub-card {
        border: 1px solid var(--line);
        border-top: 4px solid var(--red);
        border-radius: 8px;
        background: var(--soft);
        padding: 28px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
      .sp-sub-card.post-inline-sub {
        margin-top: 28px;
      }
      .sp-sub-head {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
      }
      .sp-sub-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--navy);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: none;
      }
      .sp-sub-kicker {
        font-size: 11.5px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--red);
        display: block;
      }
      .sp-sub-card h3 {
        font-family: var(--serif);
        font-weight: 700;
        font-size: 23px;
        line-height: 1.22;
        color: var(--navy);
        margin: 0;
      }
      .sp-sub-desc {
        font-size: 14.5px;
        line-height: 1.6;
        color: var(--ink);
        margin: 8px 0 18px;
      }
      .sp-sub-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }
      .sp-sub-form.row-form {
        flex-direction: row;
        flex-wrap: wrap;
      }
      .sp-sub-form.row-form .sp-sub-input {
        flex: 1;
        min-width: 220px;
      }
      .sp-sub-form.row-form .sp-sub-btn {
        width: auto;
        padding: 12px 24px;
      }
      .sp-sub-input {
        width: 100%;
        font-family: var(--sans);
        font-size: 15px;
        padding: 12px 14px;
        border: 1px solid var(--line-dark);
        border-radius: 6px;
        background: var(--paper);
        color: var(--ink);
        min-height: 46px;
      }
      .sp-sub-input:focus {
        outline: 2px solid var(--navy);
        outline-offset: 1px;
      }
      .sp-sub-btn {
        width: 100%;
        min-height: 46px;
        border: 0;
        border-radius: 6px;
        background: var(--navy);
        color: #ffffff;
        font-size: 14.5px;
        font-weight: 800;
        letter-spacing: 0.02em;
        padding: 12px 18px;
        transition: background .15s ease;
      }
      .sp-sub-btn:hover { background: var(--red); }
      .sp-sub-btn:disabled { opacity: 0.65; cursor: not-allowed; }
      .sp-sub-privacy {
        margin-top: 10px;
        font-size: 12.5px;
        color: var(--muted);
        display: flex;
        align-items: center;
        gap: 6px;
      }
      .sp-sub-privacy svg { color: var(--red); flex: none; }
      .sp-sub-alert {
        margin-top: 8px;
        font-size: 13px;
        font-weight: 700;
        min-height: 18px;
      }

      /* ---------- WhatsApp & Telegram Share Bar ---------- */
      .sp-share-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;
        padding: 16px 18px;
        margin: 26px 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--soft);
      }
      .sp-share-label {
        font-size: 12.5px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--navy);
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .sp-share-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
      }
      .sp-share-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 16px;
        border-radius: 6px;
        font-size: 13.5px;
        font-weight: 700;
        color: #ffffff !important;
        border: 0;
        cursor: pointer;
        transition: transform .1s ease, opacity .15s ease;
        text-decoration: none !important;
      }
      .sp-share-btn:hover { opacity: 0.92; color: #ffffff !important; }
      .sp-share-btn:active { transform: scale(0.98); }
      .sp-share-btn svg { width: 17px; height: 17px; flex: none; }
      .sp-share-btn.wa { background: var(--whatsapp); }
      .sp-share-btn.tg { background: var(--telegram); }
      .sp-share-btn.fb { background: #3b5998; }
      .sp-share-btn.tw { background: #131c2e; }

      /* ---------- Single post ---------- */
      .article { width: 100%; margin: 0; }
      .breadcrumb { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
      .breadcrumb a { color: var(--muted); font-weight: 600; }
      .breadcrumb a:hover { color: var(--red); }
      .breadcrumb .sep { color: var(--line-dark); }
      .breadcrumb .current { color: var(--navy); font-weight: 700; }
      .article h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; color: var(--navy); margin: 10px 0 14px; }
      .byline { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; flex-wrap: wrap; }
      .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
      .avatar img { width: 100%; height: 100%; object-fit: cover; }
      .byline .who { line-height: 1.35; }
      .byline .who strong { color: var(--navy); font-size: 15px; }
      .byline .who span { display: block; font-size: 13px; color: var(--muted); }
      .byline .when { margin-left: auto; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
      .article-body { font-size: 17.5px; line-height: 1.75; color: var(--ink); }
      .article-body p { margin: 0 0 22px; }
      .article-body h2 { font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1.25; color: var(--navy); margin: 36px 0 14px; }
      .article-body h3 { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--navy); margin: 28px 0 12px; }
      .article-body ol, .article-body ul { margin: 0 0 22px; padding-left: 24px; }
      .article-body li { margin-bottom: 10px; }
      .article-body strong { color: var(--navy); }
      .article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
      .article-body table th { background: var(--navy); color: #fff; padding: 10px 12px; text-align: left; }
      .article-body table td { border: 1px solid var(--line); padding: 10px 12px; }
      .callout { background: var(--soft); border-radius: 8px; padding: 20px 22px; margin: 0 0 24px; font-size: 16px; line-height: 1.65; }
      .callout strong { display: block; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
      .callout p { margin: 0; font-size: 16px; }
      blockquote { margin: 30px 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--red); }
      blockquote p { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--navy); margin: 0; font-weight: 600; }
      .tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 34px 0 26px; }
      .tag { border: 1px solid var(--line-dark); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--navy); display: inline-block; }
      .tag:hover { border-color: var(--navy); color: var(--red); }
      .author-card { display: flex; gap: 20px; border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--paper); align-items: flex-start; }
      .author-card .author-photo { width: 88px; height: 110px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid var(--line-dark); }
      .author-card h3 { font-family: var(--serif); font-size: 21px; color: var(--navy); margin: 0 0 4px; }
      .author-card .role { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin: 0 0 8px; }
      .author-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.62; }

      /* ---------- Related Posts on Single Post ---------- */
      .related-wrap { max-width: 1180px; margin: 48px auto 0; }

      /* ---------- Numbered Pagination ---------- */
      .blog-pager { margin-top: 38px; text-align: center; }
      .blog-pager a, .sp-num-pager a, .sp-num-pager span {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 40px; height: 40px; padding: 0 14px; border-radius: 6px;
        border: 1px solid var(--line-dark); background: var(--paper);
        color: var(--navy); font-weight: 700; font-size: 14px; margin: 0 3px;
      }
      .blog-pager a:hover, .sp-num-pager a:hover, .sp-num-pager span.current {
        background: var(--navy); border-color: var(--navy); color: #fff;
      }
      .sp-num-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }

      /* ---------- 404 Error Page ---------- */
      .sp404-wrap { max-width: 680px; margin: 28px auto; text-align: center; }
      .sp404-card { border: 1px solid var(--line); border-radius: 8px; padding: 36px 26px; background: var(--paper); }
      .sp404-num { font-family: var(--serif); font-size: 84px; font-weight: 900; line-height: 1; color: var(--red); }
      .sp404-card h1 { font-family: var(--serif); font-size: 28px; color: var(--navy); margin: 12px 0 8px; }
      .sp404-card p { color: var(--muted); margin: 0 0 20px; }

      /* ---------- Comments ---------- */
      #comments { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
      #comments h4 { font-family: var(--serif); font-size: 22px; color: var(--navy); margin: 0 0 16px; }

      /* ---------- Footer ---------- */
      footer { background: var(--navy-deep); color: #cdd8ea; margin-top: 40px; }
      .footer-grid { display: grid; grid-template-columns: 1.3fr 0.85fr 0.85fr 1.2fr; gap: 32px; padding: 44px 0 36px; }
      .footer-word { font-family: var(--serif); font-weight: 900; font-size: 30px; color: #ffffff; line-height: 1; }
      .footer-word .planet { color: #ff5b74; }
      .footer-tagline { margin-top: 8px; font-size: 13.5px; letter-spacing: 0.04em; color: #9ab0cf; }
      footer p { font-size: 14.5px; line-height: 1.65; margin: 14px 0 0; max-width: 420px; }
      footer h3 { font-family: var(--serif); font-size: 17px; color: #ffffff; margin: 2px 0 14px; }
      footer ul { list-style: none; margin: 0; padding: 0; }
      footer li { margin-bottom: 6px; }
      footer ul a { color: #cdd8ea; font-size: 14.5px; padding: 4px 0; display: inline-block; }
      footer ul a:hover { color: #ffffff; text-decoration: underline; }
      .footer-sub-input {
        width: 100%; padding: 10px 12px; border-radius: 6px;
        border: 1px solid rgba(205,216,234,0.3); background: rgba(255,255,255,0.08);
        color: #fff; font-family: var(--sans); font-size: 14px; margin-bottom: 8px;
      }
      .footer-sub-input::placeholder { color: #9ab0cf; }
      .footer-sub-btn {
        width: 100%; padding: 10px 14px; border-radius: 6px; border: 0;
        background: var(--red); color: #fff; font-weight: 700; font-size: 14px;
        font-family: var(--sans); cursor: pointer;
      }
      .footer-sub-btn:hover { background: #e01b3b; }
      footer .sp-sub-alert { font-size: 13px; line-height: 1.5; margin-top: 8px; }
      .footer-bottom {
        border-top: 1px solid rgba(205,216,234,0.22);
        padding: 16px 0; font-size: 13px;
        display: flex; justify-content: space-between; align-items: center;
        gap: 14px; flex-wrap: wrap;
      }
      .footer-contact-btn {
        display: inline-flex; align-items: center; gap: 8px;
        background: var(--red); color: #ffffff !important;
        font-size: 13px; font-weight: 700;
        padding: 8px 16px; border-radius: 6px;
        text-decoration: none !important;
        transition: background .15s ease;
      }
      .footer-contact-btn:hover {
        background: #e01b3b;
        color: #ffffff !important;
      }
      .footer-contact-btn svg {
        width: 15px; height: 15px; flex: none;
      }

      /* ---------- Responsive ---------- */
      @media (max-width: 1023px) {
        .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .topics { grid-template-columns: repeat(2, 1fr); }
        .featured, .editorial-split { grid-template-columns: 1fr; }
        .featured-media { min-height: 0; aspect-ratio: 16/9; }
        .footer-grid { grid-template-columns: repeat(2, 1fr); }
      }
      @media (max-width: 900px) {
        .mbtb-card { flex-direction: column; gap: 24px; }
        .mbtb-features {
          width: auto;
          border-left: 0;
          border-top: 1px solid var(--line);
          padding: 24px 0 0;
        }
      }

      @media (max-width: 640px) {
        .post-grid, .topics, .footer-grid { grid-template-columns: 1fr; }
        .utility .date { display: none; }
        .utility .wrap { justify-content: center; }
        .mainnav { background: var(--paper); }
        .mainnav .wrap { display: none; padding-bottom: 10px; }
        .mainnav.open .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
        .mainnav a { padding: 12px 6px; background: transparent; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); margin-bottom: 0; }
        .mainnav a:hover { transform: none; box-shadow: none; background: transparent; }
        .mainnav a.active { border-bottom: 1px solid var(--line); background: rgba(200,16,46,0.10); }
        .featured-body { padding: 22px; }
        .byline .when { margin-left: 0; }
        .author-card, .mbtb-card { flex-direction: column; gap: 16px; }
        .mbtb-main { flex-direction: column; gap: 16px; }
        .home-intro { padding: 24px 20px; text-align: left; background: var(--paper); }
        .home-intro h1 { text-align: left; font-size: 28px; line-height: 1.25; }
        .home-intro h1::after { margin: 14px 0 12px; }
        .home-intro h1 .sp-planet { color: var(--red); }
        .home-intro p { text-align: left; margin: 0; max-width: none; font-size: 16px; }
        .home-intro .sp-intro-long { display: none; }
        .home-intro .sp-intro-short { display: block; }
        .mbtb-photo-wrap { width: 120px; }
        .mbtb-photo-wrap img { height: 150px; }
        .section-head { margin-top: 40px; }
        .sub-pill-btn span { display: none; }
        .sub-pill-btn { padding: 0 12px; }
        .masthead .wrap { gap: 10px; }
        .wordmark { font-size: clamp(26px, 5vw, 44px); }
        .article-body table { display: block; overflow-x: auto; }
        .sp-sub-form.row-form { flex-direction: column; }
        .sp-sub-form.row-form .sp-sub-btn { width: 100%; }
      }

      /* ---------- Single Post 2-Column Layout with Sticky Sidebar ---------- */
      main.wrap:has(.sp-single-layout) {
        max-width: 1420px;
        padding-left: 28px;
        padding-right: 28px;
      }
      .sp-single-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 32px;
        align-items: start;
      }
      /* ---------- Related Posts slider (v1.4.13) ---------- */
      .related-head .related-nav { display: flex; gap: 8px; padding-bottom: 8px; }
      .related-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-dark); background: var(--paper); color: var(--navy); font-size: 17px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease, border-color .15s ease; }
      .related-arrow:hover { background: var(--red); border-color: var(--red); color: #fff; }
      .related-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 10px; }
      .related-track::-webkit-scrollbar { display: none; }
      .related-track .card { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; min-width: 0; }
      .related-track .card-body { padding: 14px 14px 0; gap: 7px; }
      .related-track .card-body h3 { font-size: 17px; }
      .related-track .card-body p { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
      .related-track .card-foot { margin: 12px 14px 0; padding: 10px 0 12px; }
      .related-track .card-foot .meta { font-size: 12.5px; }
      .related-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
      .related-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #cbd5e1; cursor: pointer; }
      .related-dots button.active { width: 22px; border-radius: 4px; background: var(--red); }
      @media (max-width: 640px) {
        .related-track { gap: 14px; }
        .related-track .card { flex-basis: 82%; }
      }
      .sp-sticky-sidebar {
        position: sticky;
        top: 84px;
      }
      .sp-popular-widget {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--paper);
        padding: 22px;
        box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
      }
      .sp-popular-widget h3 {
        font-family: var(--serif);
        font-size: 18px;
        font-weight: 700;
        color: var(--navy);
        margin: 0 0 16px;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--red);
      }
      .sp-popular-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
      }
      .sp-popular-item {
        display: flex;
        gap: 12px;
        align-items: flex-start;
      }
      .sp-popular-thumb {
        width: 72px;
        height: 52px;
        border-radius: 6px;
        overflow: hidden;
        background: var(--soft);
        flex: none;
      }
      .sp-popular-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .sp-popular-title {
        font-family: var(--serif);
        font-size: 13.5px;
        font-weight: 700;
        line-height: 1.35;
        color: var(--navy);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .sp-popular-title:hover { color: var(--red); }
      /* ---------- Table of Contents (v1.4.11, doctoolkit-style) ---------- */
      /* The old Rank Math TOC block stays in the content only as an anchor source; the custom TOC replaces it visually. */
      .article-body .wp-block-rank-math-toc-block,
      .article-body .rank-math-toc-block { display: none !important; }
      .article-body h2, .article-body h3 { scroll-margin-top: 84px; }
      .sp-toc {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--paper);
        padding: 18px 20px;
        box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
      }
      .sp-toc summary {
        font-family: var(--sans);
        font-weight: 800;
        font-size: 16px;
        color: var(--navy);
        cursor: pointer;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
      }
      .sp-toc summary::-webkit-details-marker { display: none; }
      .sp-toc summary::after { content: '\25BE'; color: var(--red); font-size: 13px; }
      .sp-toc[open] summary::after { content: '\25B4'; }
      .sp-toc-list { list-style: none; margin: 14px 0 0; padding: 0; }
      .sp-toc-list li { margin: 0; }
      .sp-toc-list a {
        display: block;
        padding: 7px 10px;
        border-radius: 8px;
        color: var(--muted);
        text-decoration: none;
        font-size: 14.5px;
        line-height: 1.45;
        border-left: 3px solid transparent;
      }
      .sp-toc-list a:hover { color: var(--red); background: #fdecec; }
      .sp-toc-list a.sp-active { color: var(--red); background: #fdecec; border-left-color: var(--red); font-weight: 700; }
      .sp-toc-list li.sp-toc-h3 a { padding-left: 24px; font-size: 13.5px; }
      /* Sidebar list scrolls internally when it is too tall for the viewport. */
      .sp-toc-widget .sp-toc-list { max-height: calc(100vh - 180px); overflow-y: auto; }
      .sp-toc-mobile { display: none; }

      @media (max-width: 1023px) {
        .sp-single-layout {
          grid-template-columns: minmax(0, 1fr);
        }
        .sp-sticky-sidebar {
          position: static;
        }
        .sp-toc-widget { display: none; }
        .sp-toc-mobile { display: block; margin: 0 0 24px; }
      }
    
/* ---------- WordPress additions (not in the Blogger theme) ---------- */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 18px 14px 0; }
.alignright { float: right; margin: 0 0 14px 18px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; }
/* ---------- Comments (redesigned v1.4.13: compact cards) ---------- */
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list > li { margin-bottom: 14px; }
.comment-list .comment-body { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.comment-list .comment-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: transparent; color: inherit; margin: 0; padding: 0; }
.comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 15px; }
.comment-list .comment-author img { border-radius: 50%; width: 40px; height: 40px; }
.comment-list .comment-author .says { display: none; }
.comment-list .comment-metadata { font-size: 12.5px; color: var(--muted); margin: 0; }
.comment-list .comment-metadata a { color: var(--muted); }
.comment-list .comment-content { margin-top: 10px; }
.comment-list .comment-content p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; }
.comment-list .comment-content p:last-child { margin-bottom: 0; }
.comment-list .reply { margin-top: 10px; }
.comment-list .comment-reply-link { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; }
.comment-list .comment-reply-link:hover { text-decoration: underline; }
.comment-list .children { list-style: none; padding-left: 20px; margin: 14px 0 0; }
.comment-list .children .comment-body { background: var(--paper); }
#respond { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; box-shadow: 0 4px 20px -2px rgba(15,23,42,0.06); }
#respond .comment-reply-title { font-size: 20px; }
.comment-form { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.comment-form > * { grid-column: 1 / -1; }
.comment-form .comment-form-author { grid-column: 1; }
.comment-form .comment-form-email { grid-column: 2; }
.comment-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font-family: var(--sans); font-size: 14.5px; padding: 11px 12px; border: 1px solid var(--line-dark); border-radius: 8px; background: var(--paper); color: var(--ink); margin-bottom: 12px; }
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14,42,82,0.12); }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form .comment-form-cookies-consent input { margin-top: 2px; flex: none; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; color: var(--muted); margin: 0; }
.comment-form .form-submit { margin: 6px 0 0; }
.comment-form .sp-sub-btn { width: auto; min-width: 170px; border-radius: 8px; background: var(--red); }
.comment-form .sp-sub-btn:hover { background: var(--navy); }
@media (max-width: 640px) {
  .comment-form { grid-template-columns: 1fr; }
  .comment-form .comment-form-author, .comment-form .comment-form-email { grid-column: 1 / -1; }
  #respond { padding: 16px; }
  .comment-list .comment-body { padding: 14px; }
}
.gallery { display: grid; gap: 12px; }
