/*
Theme Name: eSIM Data Connectivity Guide
Theme URI: https://esimdataconnectivity.link
Author: Christian Heafield
Author URI: https://esimdataconnectivity.link
Description: An editorial, light-mode theme for the eSIM Data Connectivity Guide — country-specific eSIM plan comparisons, installation tutorials, and mobile data speed tests for international travelers.
Style ID: 7de401
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: esim-data-connectivity
Tags: blog, editorial, light, two-columns, custom-menu
*/

/* ============================================================
   Design tokens (light editorial)
   ============================================================ */
:root {
  --bg: #f8f7f6;
  --bg-alt: #efeceb;
  --bg-deep: #e5e1e0;
  --text: #261d1d;
  --text-muted: #7b6c6b;
  --accent: #a83a2e;
  --border: #e4dedd;

  --font-head: "Nunito", "Segoe UI", Arial, sans-serif;
  --font-body: "Quicksand", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1200px;
}

/* Dark theme (toggle) */
[class~="7de401"].is-dark {
  --bg: #1a1716;
  --bg-alt: #242020;
  --bg-deep: #131010;
  --text: #efeceb;
  --text-muted: #a89e9d;
  --accent: #d05a47;
  --border: #3a3433;
}

/* ============================================================
   Reset & base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

[class~="7de401"] {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

[class~="7de401"] img {
  max-width: 100%;
  height: auto;
  display: block;
}

[class~="7de401"] a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

[class~="7de401"] a:hover {
  color: var(--accent);
}

[class~="7de401"] h1,
[class~="7de401"] h2,
[class~="7de401"] h3,
[class~="7de401"] h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.6em;
}

[class~="7de401"] p {
  margin: 0 0 1.2em;
}

[class~="7de401"] ul,
[class~="7de401"] ol {
  margin: 0 0 1.2em;
  padding-left: 1.5em;
}

[class~="7de401"] blockquote {
  margin: 1.6em 0;
  padding: 0.5em 1.4em;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 1.12em;
}

[class~="7de401"] .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 !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================================
   Layout helpers
   ============================================================ */
[class~="7de401-container"] {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

[class~="7de401-section"] {
  padding-top: 56px;
  padding-bottom: 56px;
}

[class~="7de401-section-title"] {
  font-size: 1.75rem;
  margin-bottom: 0.3em;
}

[class~="7de401-section-kicker"] {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6em;
}

[class~="7de401-rule"] {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

[class~="7de401-section-head"] {
  margin-bottom: 32px;
}

/* ============================================================
   Buttons
   ============================================================ */
[class~="7de401-btn"] {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

[class~="7de401-btn--accent"] {
  background: var(--accent);
  color: #fff;
}

[class~="7de401-btn--accent"]:hover {
  background: #8f3027;
  color: #fff;
}

[class~="7de401-btn--ghost"] {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

[class~="7de401-btn--ghost"]:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   Header (module 01)
   ============================================================ */
[class~="7de401-header"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 246, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

[class~="7de401"].is-dark [class~="7de401-header"] {
  background: rgba(26, 23, 22, 0.92);
}

[class~="7de401-header__inner"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 66px;
}

[class~="7de401-logo"] {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

[class~="7de401-logo"] span {
  color: var(--accent);
}

[class~="7de401-logo"]:hover {
  color: var(--text);
}

[class~="7de401-nav"] {
  display: flex;
  align-items: center;
  gap: 4px;
}

[class~="7de401-nav"] ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

[class~="7de401-nav"] li {
  margin: 0;
}

[class~="7de401-nav"] a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

[class~="7de401-nav"] a:hover,
[class~="7de401-nav"] .current-menu-item > a,
[class~="7de401-nav"] .current_page_item > a {
  color: var(--text);
  background: var(--bg-alt);
}

[class~="7de401-header__actions"] {
  display: flex;
  align-items: center;
  gap: 10px;
}

[class~="7de401-iconbtn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease;
}

[class~="7de401-iconbtn"]:hover {
  color: var(--accent);
  border-color: var(--accent);
}

[class~="7de401-nav-toggle"] {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 42px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
}

[class~="7de401-searchbar"] {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px 18px;
}

[class~="7de401-searchbar"].is-open {
  display: block;
}

[class~="7de401-searchbar"] form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}

[class~="7de401-searchbar"] input[type="search"] {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

[class~="7de401-searchbar"] input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
}

/* ============================================================
   Typographic card (style D + metadata)
   ============================================================ */
[class~="7de401-card"] {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

[class~="7de401-card__title"] {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

[class~="7de401-card__title"] a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size 0.3s ease, color 0.2s ease;
}

[class~="7de401-card__title"] a:hover {
  background-size: 100% 2px;
  color: var(--text);
}

[class~="7de401-meta"] {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.8rem;
}

[class~="7de401-meta__avatar"] {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--bg-deep);
  border: 1px solid var(--border);
}

[class~="7de401-meta__avatar"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[class~="7de401-meta__author"] {
  color: var(--text);
  font-weight: 700;
}

[class~="7de401-meta__author"]:hover {
  color: var(--accent);
}

[class~="7de401-meta__dot"] {
  color: var(--border);
}

/* ============================================================
   Sidebar widgets
   ============================================================ */
[class~="7de401-widget"] {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

[class~="7de401-widget__title"] {
  font-size: 1.02rem;
  margin-bottom: 1em;
  padding-bottom: 0.6em;
  border-bottom: 1px solid var(--border);
}

[class~="7de401-widget"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

[class~="7de401-widget"] li {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

[class~="7de401-widget"] li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

[class~="7de401-widget"] a {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}

[class~="7de401-widget"] a:hover {
  color: var(--accent);
}

/* ============================================================
   Single post (editorial long-form, drop-cap)
   ============================================================ */
[class~="7de401-article"] {
  max-width: 760px;
  margin: 0 auto;
}

[class~="7de401-article__title"] {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 0.5em;
}

[class~="7de401-article__hero"] {
  margin: 0 0 2em;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

[class~="7de401-article__hero"] img {
  width: 100%;
  object-fit: cover;
  max-height: 440px;
}

[class~="7de401-article__meta"] {
  margin-bottom: 2em;
  padding-bottom: 1.4em;
  border-bottom: 1px solid var(--border);
}

[class~="7de401-entry-content"] {
  font-size: 1.1rem;
  color: #3a2f2f;
}

[class~="7de401"].is-dark [class~="7de401-entry-content"] {
  color: #e2dcda;
}

[class~="7de401-entry-content"] p {
  margin-bottom: 1.5em;
}

[class~="7de401-entry-content"] > p:first-of-type::first-letter {
  font-family: var(--font-head);
  font-size: 3.4em;
  font-weight: 800;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.12em 0 0;
  color: var(--accent);
}

[class~="7de401-entry-content"] h2 {
  font-size: 1.55rem;
  margin-top: 1.6em;
}

[class~="7de401-entry-content"] h3 {
  font-size: 1.3rem;
  margin-top: 1.4em;
}

[class~="7de401-article__footer-meta"] {
  margin-top: 2.4em;
  padding-top: 1.4em;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

[class~="7de401-chip"] {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

[class~="7de401-chip"]:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   Pagination
   ============================================================ */
[class~="7de401-pagination"] {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

[class~="7de401-pagination"] .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

[class~="7de401-pagination"] .page-numbers.current,
[class~="7de401-pagination"] .page-numbers:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   404
   ============================================================ */
[class~="7de401-404"] {
  text-align: center;
  padding: 100px 24px;
}

[class~="7de401-404__code"] {
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.2em;
}

/* ============================================================
   Footer (module 07)
   ============================================================ */
[class~="7de401-footer"] {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

[class~="7de401-footer__grid"] {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

[class~="7de401-footer__mission"] {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 40ch;
}

[class~="7de401-footer__title"] {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 1.1em;
}

[class~="7de401-footer__list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

[class~="7de401-footer__list"] li {
  margin: 0 0 10px;
}

[class~="7de401-footer__list"] a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

[class~="7de401-footer__list"] a:hover {
  color: var(--accent);
}

[class~="7de401-footer__social"] {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

[class~="7de401-footer__social"] a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

[class~="7de401-footer__social"] a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

[class~="7de401-footer__email"] {
  margin-top: 16px;
  font-size: 0.88rem;
}

[class~="7de401-footer__email"] a {
  color: var(--text-muted);
}

[class~="7de401-footer__email"] a:hover {
  color: var(--accent);
}

[class~="7de401-footer__bottom"] {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

[class~="7de401-footer__bottom-inner"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

[class~="7de401-footer__bottom"] p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

[class~="7de401-footer__legal"] {
  display: flex;
  gap: 18px;
}

[class~="7de401-footer__legal"] a {
  color: var(--text-muted);
  font-size: 0.82rem;
}

[class~="7de401-footer__legal"] a:hover {
  color: var(--accent);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  [class~="7de401-nav"] {
    display: none;
  }

  [class~="7de401-nav"].is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }

  [class~="7de401-nav"].is-open ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  [class~="7de401-nav-toggle"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  [class~="7de401-card__title"] {
    font-size: 1.2rem;
  }

  [class~="7de401-article__title"] {
    font-size: 1.8rem;
  }
}

@media (max-width: 860px) {
  [class~="7de401-footer__grid"] {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  [class~="7de401-container"] {
    padding-left: 16px;
    padding-right: 16px;
  }

  [class~="7de401-section"] {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  [class~="7de401-footer__grid"] {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  [class~="7de401-footer__bottom-inner"] {
    flex-direction: column;
    align-items: flex-start;
  }
}
