/* ---------------------------------------------------------------------------
 * Dark mode. Switched on by the moon button in the header, which sets
 * <html data-theme="dark">. Warm, chocolate-based darks so it still feels like
 * The MonkeyPC; banana yellow stays the accent and the logo stays green.
 * ------------------------------------------------------------------------- */
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#17110a;          /* page */
  --surface:#221910;     /* cards */
  --surface-2:#2b2015;   /* panels, raised bits */
  --ink:#f4e9d8;         /* main text */
  --muted:#cbb79a;       /* secondary text */
  --line:#3d2e1e;        /* borders */
  --mint:#253520;        /* soft green tint, used sparingly */
  --leaf-dark:#8be05a;   /* links and small green text */
  --cream:#2b2015;
}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}

/* Header */
html[data-theme="dark"] .site-header{background:#1d150d;border-color:var(--line)}
html[data-theme="dark"] .site-wordmark{color:var(--ink)}
html[data-theme="dark"] .primary-nav a{color:var(--ink)}
html[data-theme="dark"] .primary-nav a:hover,
html[data-theme="dark"] .primary-nav .current-menu-item>a,
html[data-theme="dark"] .primary-nav .current_page_item>a{background:var(--surface-2);color:#fff}
html[data-theme="dark"] .primary-nav ul ul::before{background:var(--surface);border-color:var(--line);box-shadow:0 14px 34px rgba(0,0,0,.45)}
html[data-theme="dark"] .nav-toggle{background:var(--surface-2);color:var(--ink)}
html[data-theme="dark"] .header-cta{background:var(--amber);color:#402408}
html[data-theme="dark"] .header-cta:hover{background:var(--amber-dark)}
@media (max-width:1060px){html[data-theme="dark"] .primary-nav .menu{background:#1d150d;border-color:var(--line)}}

/* Hero: keep the chocolate banner, slightly lifted so it stands off the page */
html[data-theme="dark"] .hero{background:radial-gradient(90% 120% at 0% 0%,rgba(246,201,69,.14) 0%,rgba(246,201,69,0) 60%),linear-gradient(135deg,#4f2f10 0%,#3a2108 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
html[data-theme="dark"] .domain-form{background:#fffaf0}
html[data-theme="dark"] .domain-form input[type=text]{color:#402408}
html[data-theme="dark"] .domain-form select{color:#402408;border-color:#e9d8b4}
html[data-theme="dark"] .deal-card{background:var(--surface);color:var(--ink);box-shadow:0 24px 50px rgba(0,0,0,.5),inset 0 0 0 1px var(--line)}
html[data-theme="dark"] .deal-title{color:#fff}
html[data-theme="dark"] .deal-perks li::before{background:var(--amber)}
html[data-theme="dark"] .deal-perks li::after{border-color:#402408}
html[data-theme="dark"] .deal-btn{background:var(--amber);color:#402408}
html[data-theme="dark"] .deal-btn:hover{background:var(--amber-dark)}
html[data-theme="dark"] .md-btn--white{background:var(--surface-2);color:var(--ink);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
html[data-theme="dark"] .md-btn--white:hover{background:#35281b;color:#fff}

/* Cards and panels */
html[data-theme="dark"] .plan,
html[data-theme="dark"] .side-box,
html[data-theme="dark"] .md-step,
html[data-theme="dark"] .md-feature,
html[data-theme="dark"] .md-table-card,
html[data-theme="dark"] .md-contact__form,
html[data-theme="dark"] .hg-move__steps li,
html[data-theme="dark"] .monkey-says,
html[data-theme="dark"] .wp-block-group.is-style-monkey-says{background-color:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .md-panel,
html[data-theme="dark"] .hg-move{background:#1f170e;border-color:var(--line)}
html[data-theme="dark"] .promo{background:#1f2a17}
html[data-theme="dark"] .monkey-says{box-shadow:none}
html[data-theme="dark"] .monkey-says__monkey{background:#2f3d24}
html[data-theme="dark"] .monkey-says__title{color:var(--leaf-dark)}

/* Plans */
html[data-theme="dark"] .plan-features li::before{background:#2f3d24}
html[data-theme="dark"] .plan-features li::after{border-color:#8be05a}
html[data-theme="dark"] .plan-btn{background:var(--surface-2);color:var(--ink);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
html[data-theme="dark"] .plan-btn:hover{background:#35281b}
html[data-theme="dark"] .plan.is-featured{background:#3d2409;border-color:#5a3513;box-shadow:0 22px 50px rgba(0,0,0,.45)}
html[data-theme="dark"] .plan-save{background:#2f3d24;color:#8be05a}
html[data-theme="dark"] .plan-guarantee{color:#8be05a}
html[data-theme="dark"] .hg-billing{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .hg-billing__opt{color:var(--ink)}
html[data-theme="dark"] .hg-billing__opt[aria-pressed="true"]{background:var(--amber);color:#402408}
html[data-theme="dark"] .hg-billing__opt[aria-pressed="true"] .hg-billing__save{background:#402408;color:var(--amber)}

/* Tables */
html[data-theme="dark"] .md-table thead th{background:#3d2409}
html[data-theme="dark"] .md-table thead th.is-featured{background:var(--amber);color:#402408}
html[data-theme="dark"] .md-table tbody th,
html[data-theme="dark"] .md-table td.md-price{color:var(--ink)}
html[data-theme="dark"] .md-table tbody tr:nth-child(even){background:#1d150d}
html[data-theme="dark"] .md-table .md-yes{background:#2f3d24}
html[data-theme="dark"] .md-table .md-yes path{stroke:#8be05a}
html[data-theme="dark"] .md-table .md-no{color:#7d6a50}
html[data-theme="dark"] .md-compare tr.md-group th{background:#2b2015;color:var(--leaf-dark)}

/* Feature icons, step numbers, labels */
html[data-theme="dark"] .md-feature__icon,
html[data-theme="dark"] .md-step__num{background:#2f3d24;color:#8be05a}
html[data-theme="dark"] .md-feature__icon path{stroke:#8be05a}
html[data-theme="dark"] .md-kicker,
html[data-theme="dark"] .md-address,
html[data-theme="dark"] .md-contact__form label{color:var(--ink)}
html[data-theme="dark"] .hg-move__tag{background:#2f3d24;color:#8be05a}
html[data-theme="dark"] .hg-move__num{color:#402408}

/* Forms */
html[data-theme="dark"] .md-contact__form input[type=text],
html[data-theme="dark"] .md-contact__form input[type=email],
html[data-theme="dark"] .md-contact__form input[type=tel],
html[data-theme="dark"] .md-contact__form select,
html[data-theme="dark"] .md-contact__form textarea{background:#17110a;border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .md-contact__form input:focus,
html[data-theme="dark"] .md-contact__form textarea:focus{background:#1d150d;outline-color:#2f3d24}

/* Chocolate blocks (slider, start/check-up box, forum link, footer) lifted off the darker page */
html[data-theme="dark"] .hg-slider,
html[data-theme="dark"] .md-start,
html[data-theme="dark"] .forum-box{background:#2e1b07;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
html[data-theme="dark"] .forum-box:hover{background:#3a2309}
html[data-theme="dark"] .site-footer{background:#110c07;border-top:1px solid var(--line)}

/* The theme switch itself */
html[data-theme="dark"] .theme-toggle{background:var(--surface-2);color:var(--amber);border-color:var(--line)}

/* Guides */
html[data-theme="dark"] .hg-post-card__link{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .hg-post-card__link:hover{box-shadow:0 18px 36px -24px rgba(0,0,0,.8)}
html[data-theme="dark"] .hg-post-card__cat{background:var(--surface-2);color:var(--amber)}
html[data-theme="dark"] .hg-forum-box{background:#2e1b07;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
html[data-theme="dark"] .hg-article__body li::marker{color:var(--amber)}
html[data-theme="dark"] .navigation.pagination .page-numbers{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .navigation.pagination .page-numbers.current{background:var(--amber);border-color:var(--amber);color:#402408}
html[data-theme="dark"] .hg-topic{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .hg-topic.is-current{background:var(--amber);border-color:var(--amber);color:#402408}

/* 3.19.0 */
html[data-theme="dark"] .plan-specs li,
html[data-theme="dark"] .hg-mail-count,
html[data-theme="dark"] .hg-storage__track{background:var(--surface-2);border-color:var(--line)}
html[data-theme="dark"] .plan-specs strong,
html[data-theme="dark"] .hg-storage__name,
html[data-theme="dark"] .hg-storage__gb,
html[data-theme="dark"] .hg-storage__guide strong,
html[data-theme="dark"] .hg-mail-count,
html[data-theme="dark"] .hg-mail-count strong,
html[data-theme="dark"] .hg-times td strong{color:var(--ink)}
html[data-theme="dark"] .plan-specs span,
html[data-theme="dark"] .hg-mail-count span,
html[data-theme="dark"] .hg-storage__guide span{color:var(--muted)}
html[data-theme="dark"] .hg-storage__guide li{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .hg-cform select,
html[data-theme="dark"] .md-contact__form .hg-cform select,
html[data-theme="dark"] .md-contact__form .hg-cform select:focus{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f4e9d8' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:14px 9px}
html[data-theme="dark"] .hg-cform__done{background:#253520;color:var(--ink)}
html[data-theme="dark"] .md-contact__form input[type=text],
html[data-theme="dark"] .md-contact__form input[type=email],
html[data-theme="dark"] .md-contact__form select,
html[data-theme="dark"] .md-contact__form textarea{background-color:var(--bg);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .boost-art{filter:brightness(.92)}

/* 3.19.6: reading card */
html[data-theme="dark"] .hg-article,
html[data-theme="dark"] .content-card{background:var(--surface);border-color:var(--line);box-shadow:none}
html[data-theme="dark"] .mpc-guide .lead{color:var(--muted)}

/* 3.19.7: article tables and code */
html[data-theme="dark"] .hg-article__body table,
html[data-theme="dark"] .content-card table{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .hg-article__body th,html[data-theme="dark"] .hg-article__body td,
html[data-theme="dark"] .content-card th,html[data-theme="dark"] .content-card td{border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .hg-article__body thead th,
html[data-theme="dark"] .content-card thead th{background:#2f3d24;color:var(--ink)}
html[data-theme="dark"] .hg-article__body tbody tr:nth-child(even),
html[data-theme="dark"] .content-card tbody tr:nth-child(even){background:#1d150d}
html[data-theme="dark"] .hg-article__body code,
html[data-theme="dark"] .content-card code{background:#2f3d24;color:#d8f0c4}
html[data-theme="dark"] .hg-article__body .lead{color:var(--muted)}
html[data-theme="dark"] .hg-article__body h3{color:#8be05a}
html[data-theme="dark"] .hg-cat-head .hg-topic{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);color:#fff}
html[data-theme="dark"] .hg-cat-head .hg-topic.is-current{background:var(--amber);border-color:var(--amber);color:#402408}
html[data-theme="dark"] .hg-habits{background:#1f2a17}
html[data-theme="dark"] .hg-care-strip{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .hg-care-strip__icon{background:#1f2a17;color:#8be05a}
html[data-theme="dark"] .hg-safe{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .hg-safe__item{background:var(--surface-2);border-color:var(--line)}
html[data-theme="dark"] .hg-safe__icon{background:#1f2a17;color:#8be05a}
html[data-theme="dark"] .hg-article__cat.hg-back{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .hg-post-nav__link{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .hg-post-nav__next{background:#2e1b07;border-color:#2e1b07;color:#fff}
html[data-theme="dark"] .hg-usp{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .hg-usp__tag{background:#2f3d24;color:#8be05a}
html[data-theme="dark"] .hg-usp h2{color:#fff}
html[data-theme="dark"] .hg-usp h2 em{color:#8be05a}
html[data-theme="dark"] .hg-usp__table{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .hg-usp__row>span:nth-child(2){background:var(--surface-2);color:var(--muted)}
html[data-theme="dark"] .hg-usp__row>span:nth-child(3){background:#2e1b07}
html[data-theme="dark"] .hg-usp__no{background:#3d2e1e;color:#cbb79a}
html[data-theme="dark"] .hg-next{background:#2e1b07;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
html[data-theme="dark"] .about-based__facts{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .about-based__facts svg{background:#2f3d24}
html[data-theme="dark"] .about-based__facts path{stroke:#8be05a}
html[data-theme="dark"] .about-based__lead{color:#fff}

/* 3.21.0: guide icons */
html[data-theme="dark"] .hg-guide-icon{background:var(--mint);color:var(--leaf-dark)}
html[data-theme="dark"] .hg-guide-icon--safe{background:#3a2c12;color:var(--amber)}
html[data-theme="dark"] .hg-post-card__link:hover .hg-guide-icon{background:var(--amber);color:#402408}

/* 3.22.0: guide side column */
html[data-theme="dark"] .hg-toc{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .hg-toc a:hover,html[data-theme="dark"] .hg-toc a.is-current{background:#2b2015}
html[data-theme="dark"] .hg-toc-m{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .hg-toc-m summary,html[data-theme="dark"] .hg-toc-m a{color:var(--ink)}
html[data-theme="dark"] .hg-toc-m summary::after{border-color:var(--ink)}
html[data-theme="dark"] .hg-side__care{background:#1f2a14;border-color:#33441f}
html[data-theme="dark"] .about-photo{border-color:var(--line)}

/* 3.22.5: neater normal pages */
html[data-theme="dark"] .content-card .entry-content>p:first-child:has(>strong:only-child){background:var(--surface-2);border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] .content-card--page .entry-content>.hg-toc-m+p:has(>strong:only-child){background:var(--surface-2);border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] .hg-side__help{background:#1f2a14;border-color:#33441f}

/* 3.22.18: guide search, topic buttons and Start here */
html[data-theme="dark"] .hg-find{background:var(--surface-2);box-shadow:0 0 0 1px rgba(255,255,255,.12),0 14px 34px -18px rgba(0,0,0,.7)}
html[data-theme="dark"] .hg-find:focus-within{box-shadow:0 0 0 3px var(--amber)}
html[data-theme="dark"] .hg-find__input{color:var(--ink)}
html[data-theme="dark"] .hg-find__input::placeholder{color:#a08a6c}
html[data-theme="dark"] .hg-find-status{color:var(--ink)}
html[data-theme="dark"] .hg-find-none,html[data-theme="dark"] .hg-start{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .md-btn.hg-find-none__forum{background:var(--mint);color:var(--ink)}
html[data-theme="dark"] .md-btn.hg-find-none__forum:hover{background:#2f4428}
html[data-theme="dark"] .hg-start__item{background:var(--surface-2);color:var(--ink)}
html[data-theme="dark"] .hg-start__item:hover{background:#352819}

/* 4.7 */
html[data-theme="dark"] .header-plans + .header-cta{background:transparent;color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}
html[data-theme="dark"] .header-plans + .header-cta:hover{background:rgba(255,255,255,.08);color:#fff}
html[data-theme="dark"] .hg-bundle{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .hg-bundle h2,html[data-theme="dark"] .hg-bundle__more{color:#fff}
html[data-theme="dark"] .hg-bundle__text p{color:var(--muted)}
html[data-theme="dark"] .hg-mini{background:var(--surface-2);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .hg-mini.is-featured{background:#4a2e10;border-color:#6a4518;color:#fff}
html[data-theme="dark"] .hg-mini a{background:#33402a;color:#e8f4d7}
html[data-theme="dark"] .hg-mini.is-featured a{background:var(--amber);color:#402408}
html[data-theme="dark"] .deal-more a{color:var(--amber)}

/* 4.10: Founders' offer and move pages */
html[data-theme="dark"] .hg-founders{background:#2a1f12;border-color:#b8952f}
html[data-theme="dark"] .hg-founders__txt,html[data-theme="dark"] .hg-founders__code{color:var(--ink)}
html[data-theme="dark"] .hg-founders__txt strong{color:var(--amber)}
html[data-theme="dark"] .hg-founders__left{color:#8be05a}
html[data-theme="dark"] .hg-founders__left a{color:var(--ink)}
html[data-theme="dark"] .hg-founders__code code{background:#402408}
html[data-theme="dark"] .plan-founders{background:#3a2c12;color:#f3e3bf}
html[data-theme="dark"] .hg-offer-card__label,html[data-theme="dark"] .hg-offer-card__price s,html[data-theme="dark"] .hg-offer-table td s{color:#b9a27c}
html[data-theme="dark"] .hg-offer-card__price{color:var(--ink)}
html[data-theme="dark"] .hg-offer-card__price strong{color:var(--amber)}
html[data-theme="dark"] .hg-offer-small ul{color:var(--ink)}

/* 4.59: Our work page */
html[data-theme="dark"] .hg-work{background:var(--surface);border-color:var(--line);box-shadow:none}
html[data-theme="dark"] .hg-work__shot{background:#1f170e;border-color:var(--line)}
html[data-theme="dark"] .hg-work__bar{background:#2a2015;border-color:var(--line)}
html[data-theme="dark"] .hg-work__bar i{background:#4a3a28}
html[data-theme="dark"] .hg-work__bar em{background:var(--surface);border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] .hg-work__list svg{background:#24361a}

/* 5.3 (26 Nov): the domain endings list (.co.uk, .com...) was dark text on a dark list in dark mode. The box is cream, so its list is cream too. */
html[data-theme="dark"] .domain-form select{color-scheme:light}
html[data-theme="dark"] .domain-form select option{background:#fffaf0;color:#402408}
html[data-theme="dark"] .domain-form select option:checked{background:#f6edd6;color:#402408}
