/*
Theme Name: Emily Watson Media Premium
Theme URI: https://emilywatsonmedia.com/
Author: Emily Watson Media
Description: Premium corporate WordPress theme for Emily Watson Media — affiliate and performance marketing, creator partnerships, SEO, paid media, and owned media properties.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: emily-watson-media
*/

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ewm-forest: #0F3D2E;
  --ewm-green: #6CC04A;
  --ewm-sage: #f7fee7;
  --ewm-sage-border: #bef264;
  --ewm-ivory: #F7FAF7;
  --ewm-cream: #F7FAF7;
  --ewm-ink: #0f172a;
  --ewm-muted: #475569;
  --ewm-line: #e2e8f0;
  --ewm-white: #fff;
  --ewm-radius: 12px;
  --ewm-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.05);
  --ewm-max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ewm-white);
  color: var(--ewm-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ewm-green);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility & Screen Reader */
.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;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 0 10px 2px rgba(18, 63, 53, 0.3);
  clip: auto !important;
  clip-path: none;
  color: var(--ewm-forest);
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  height: auto;
  left: 10px;
  line-height: normal;
  padding: 14px 22px;
  text-decoration: none;
  top: 10px;
  width: auto;
  z-index: 100000;
}

.ewm-container {
  width: min(var(--ewm-max), calc(100% - 40px));
  margin: auto;
}

.ewm-serif, h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ewm-ink);
}

.ewm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #165B43;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ewm-muted {
  color: var(--ewm-muted);
}

.ewm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid var(--ewm-forest);
  background: var(--ewm-forest);
  color: #fff;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ewm-btn:hover {
  background: var(--ewm-green);
  border-color: var(--ewm-green);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(46, 125, 107, 0.2);
}

.ewm-btn--ghost {
  background: transparent;
  color: var(--ewm-forest);
}

.ewm-btn--ghost:hover {
  background: var(--ewm-forest);
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 63, 53, 0.08);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 230px;
}

.site-branding-link {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-height: 48px;
  width: auto;
}

.ewm-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.ewm-mark svg {
  width: 42px;
  height: 42px;
}

.brand-copy {
  line-height: 1;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ewm-forest);
  display: block;
}

.brand-sub {
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--ewm-muted);
  display: block;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 25px;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2c3633;
}

.header-cta {
  margin-left: 6px;
}

.mobile-cta-item {
  display: none;
}

/* Hamburger toggle button */
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  color: var(--ewm-forest);
}

.menu-toggle-box {
  width: 26px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.menu-toggle-inner,
.menu-toggle-inner::before,
.menu-toggle-inner::after {
  width: 26px;
  height: 2px;
  background-color: var(--ewm-forest);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle-inner {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle-inner::before {
  content: "";
  top: -8px;
}

.menu-toggle-inner::after {
  content: "";
  bottom: -8px;
}

.menu-toggle.is-active .menu-toggle-inner {
  background-color: transparent;
}

.menu-toggle.is-active .menu-toggle-inner::before {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-inner::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.ewm-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--ewm-ivory) 0%, var(--ewm-ivory) 52%, #e9eee9 52%, #e9eee9 100%);
}

.ewm-hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: stretch;
}

.hero-copy {
  padding: 76px 56px 72px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  color: var(--ewm-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 680px;
}

.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 620px;
  color: var(--ewm-muted);
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-channels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 700px;
  padding-top: 28px;
  border-top: 1px solid #ccd7d0;
}

.channel strong {
  display: block;
  font-size: 0.76rem;
  color: var(--ewm-forest);
}

.channel span {
  font-size: 0.7rem;
  color: #68736f;
}

.hero-media {
  position: relative;
  min-height: 620px;
  background-size: cover;
  background-position: center;
}

.hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 247, 242, 0.16), transparent 35%, rgba(18, 63, 53, 0.08));
}

.hero-overlay {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  color: #fff;
  text-align: right;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

/* Trust strip */
.ewm-trust {
  border-bottom: 1px solid var(--ewm-line);
  background: #fff;
}

.trust-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 86px;
}

.trust-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #63716c;
  white-space: nowrap;
}

.trust-items {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-pill {
  border: 1px solid var(--ewm-line);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #33413d;
  background: #fbfcfa;
}

/* Common sections */
.ewm-section {
  padding: 88px 0;
}

.ewm-section--soft {
  background: var(--ewm-cream);
}

.ewm-section--forest {
  background: var(--ewm-forest);
  color: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 46px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 6px 0 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ewm-ink);
}

.section-head p {
  margin: 0;
  color: var(--ewm-muted);
  font-size: 1.02rem;
}

/* Capabilities */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cap-card {
  border: 1px solid var(--ewm-line);
  border-radius: var(--ewm-radius);
  padding: 28px;
  background: #fff;
  min-height: 245px;
  transition: 0.22s ease;
}

.cap-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ewm-shadow);
  border-color: #c4d5ca;
}

.cap-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #e9f1ec;
  display: grid;
  place-items: center;
  color: var(--ewm-forest);
  font-weight: 800;
  margin-bottom: 30px;
}

.cap-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ewm-ink);
}

.cap-card p {
  margin: 0;
  color: var(--ewm-muted);
  font-size: 0.92rem;
}

/* Performance system */
.performance-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 72px;
  align-items: center;
}

.performance-copy h2 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 6px 0 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ewm-ink);
}

.performance-copy p {
  color: var(--ewm-muted);
  max-width: 540px;
}

.system-map {
  position: relative;
  min-height: 470px;
  border-radius: 34px;
  background: radial-gradient(circle at center, #fff 0 28%, #edf2ee 29% 47%, #f8faf8 48% 100%);
  border: 1px solid var(--ewm-line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.system-core {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--ewm-forest);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 25px;
  box-shadow: 0 20px 50px rgba(18, 63, 53, 0.18);
  z-index: 2;
}

.system-core strong {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
}

.system-node {
  position: absolute;
  padding: 11px 16px;
  background: #fff;
  border: 1px solid var(--ewm-line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(18, 63, 53, 0.06);
}

.system-node.n1 { top: 35px; left: 50%; transform: translateX(-50%); }
.system-node.n2 { right: 28px; top: 115px; }
.system-node.n3 { right: 28px; bottom: 105px; }
.system-node.n4 { bottom: 30px; left: 50%; transform: translateX(-50%); }
.system-node.n5 { left: 28px; bottom: 105px; }
.system-node.n6 { left: 28px; top: 115px; }

/* Corporate proof / About */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ewm-line);
}

.about-image {
  min-height: 500px;
  background-size: cover;
  background-position: center;
}

.about-copy {
  padding: 55px;
}

.about-copy h2 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 6px 0 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ewm-ink);
}

.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 30px 0;
}

.about-point {
  padding-top: 16px;
  border-top: 1px solid var(--ewm-line);
}

.about-point strong {
  display: block;
  color: var(--ewm-forest);
  margin-bottom: 4px;
}

.about-point span {
  font-size: 0.84rem;
  color: var(--ewm-muted);
}

/* Creator */
.creator-grid {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 56px;
  align-items: center;
}

.creator-copy h2 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 6px 0 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ewm-ink);
}

.creator-regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 18px;
  margin: 26px 0;
}

.creator-regions span:before {
  content: "•";
  color: var(--ewm-green);
  margin-right: 8px;
}

.creator-photo {
  height: 500px;
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--ewm-shadow);
}

/* Media network */
.network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.network-card {
  background: #fff;
  border: 1px solid var(--ewm-line);
  border-radius: 20px;
  overflow: hidden;
}

.network-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.network-body {
  padding: 22px;
}

.network-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ewm-ink);
  margin: 0 0 5px;
}

.network-body p {
  font-size: 0.86rem;
  color: var(--ewm-muted);
  margin: 0;
}

.network-status {
  display: inline-flex;
  margin-top: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ewm-sage);
  border: 1px solid var(--ewm-sage-border);
  color: var(--ewm-forest);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Partnership form */
.partner-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.partner-copy h2 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 6px 0 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}

.partner-copy p {
  color: #d9e4de;
  max-width: 500px;
}

.partner-meta {
  margin-top: 34px;
  display: grid;
  gap: 14px;
  font-size: 0.92rem;
  color: #e7eee9;
}

.ewm-form {
  background: #fff;
  border-radius: 24px;
  padding: 34px;
  color: var(--ewm-ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ewm-form label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #43504c;
  display: block;
  margin-bottom: 6px;
}

.ewm-form input,
.ewm-form select,
.ewm-form textarea {
  width: 100%;
  border: 1px solid #d4ddd7;
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ewm-form input:focus,
.ewm-form select:focus,
.ewm-form textarea:focus {
  border-color: var(--ewm-green);
  box-shadow: 0 0 0 3px rgba(46, 125, 107, 0.14);
}

.form-full {
  grid-column: 1 / -1;
}

.ewm-form textarea {
  min-height: 120px;
  resize: vertical;
}

.ewm-hp {
  position: absolute !important;
  left: -9999px !important;
}

.form-note {
  font-size: 0.74rem;
  color: #74807c;
  margin: 12px 0 0;
}

.ewm-alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.ewm-alert--ok {
  background: #e9f6ee;
  color: #155b3e;
  border: 1px solid #c2e5cf;
}

.ewm-alert--error {
  background: #fff0ee;
  color: #8b2e22;
  border: 1px solid #fbd2cd;
}

/* Page & Blog */
.page-hero {
  padding: 90px 0 60px;
  background: var(--ewm-ivory);
  border-bottom: 1px solid var(--ewm-line);
}

.page-hero h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.6rem);
  line-height: 1.05;
  margin: 10px 0 14px;
  color: var(--ewm-forest);
}

.page-content {
  padding: 70px 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  border: 1px solid var(--ewm-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ewm-shadow);
}

.post-card-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-card .entry {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.78rem;
  color: var(--ewm-muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-cat {
  color: var(--ewm-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-card h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.entry-excerpt {
  color: var(--ewm-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.post-read-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ewm-forest);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-read-more:hover {
  color: var(--ewm-green);
}

/* Pagination */
.post-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.post-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.post-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--ewm-line);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ewm-ink);
  background: #fff;
  transition: 0.2s ease;
}

.post-pagination .page-numbers:hover,
.post-pagination .page-numbers.current {
  background: var(--ewm-forest);
  border-color: var(--ewm-forest);
  color: #fff;
}

/* Single Article */
.single-hero {
  padding: 70px 0 45px;
}

.hero-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.86rem;
  font-weight: 700;
}

.back-link {
  color: var(--ewm-green);
}

.single-featured-image {
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
}

.single-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.single-content .ewm-container,
.static-page .ewm-container {
  max-width: 860px;
}

/* Gutenberg & Typography */
.entry-content {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #2b3834;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--ewm-forest);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.2;
}

.entry-content h2 { font-size: 2.2rem; }
.entry-content h3 { font-size: 1.7rem; }
.entry-content h4 { font-size: 1.3rem; }

.entry-content p {
  margin-bottom: 1.6em;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.6em 1.5em;
  padding: 0;
}

.entry-content li {
  margin-bottom: 0.6em;
}

.entry-content blockquote,
blockquote.wp-block-quote {
  border-left: 4px solid var(--ewm-green);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--ewm-cream);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ewm-forest);
}

.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--ewm-line);
  padding: 12px 16px;
  text-align: left;
}

.entry-content th,
.wp-block-table th {
  background: #edf2ee;
  color: var(--ewm-forest);
  font-weight: 700;
}

.entry-content pre,
.wp-block-code {
  background: #182522;
  color: #f8f7f2;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 2em 0;
}

.entry-content img {
  border-radius: 12px;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.alignwide {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100vw;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Post Navigation */
.entry-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--ewm-line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  padding: 18px 22px;
  border: 1px solid var(--ewm-line);
  border-radius: 12px;
  background: #fbfcfb;
  transition: 0.2s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
  border-color: var(--ewm-green);
  box-shadow: 0 8px 24px rgba(18, 63, 53, 0.06);
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ewm-green);
  margin-bottom: 5px;
}

.post-navigation .nav-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ewm-forest);
}

/* Footer */
.site-footer {
  background: #f7f7f3;
  border-top: 1px solid var(--ewm-line);
}

.footer-main {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 40px;
}

.footer-main h4 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  margin: 0 0 16px;
  color: #56635e;
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-brand p {
  max-width: 350px;
  color: var(--ewm-muted);
  font-size: 0.88rem;
  margin: 12px 0 16px;
}

.legal {
  font-size: 0.8rem;
  color: #69746f;
  line-height: 1.7;
}

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid var(--ewm-line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.78rem;
  color: #6e7975;
}

/* Responsive & Mobile Breakpoints */
@media (max-width: 1000px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    background: #fff;
    border-bottom: 1px solid var(--ewm-line);
    padding: 24px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  }

  .main-nav.is-open ul {
    display: grid;
    gap: 16px;
  }

  .mobile-cta-item {
    display: block;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--ewm-line);
  }

  .ewm-hero-grid,
  .performance-grid,
  .about-grid,
  .creator-grid,
  .partner-wrap {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 62px 0;
  }

  .hero-media {
    min-height: 500px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .capability-grid,
  .network-grid,
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .about-image {
    min-height: 360px;
  }
}

@media (max-width: 650px) {
  .ewm-container {
    width: min(100% - 28px, var(--ewm-max));
  }

  .header-inner {
    height: 70px;
  }

  .main-nav.is-open {
    top: 70px;
  }

  .site-branding {
    min-width: 0;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.5rem;
  }

  .ewm-hero {
    background: var(--ewm-ivory);
  }

  .ewm-hero-grid {
    display: block;
  }

  .hero-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  color: var(--ewm-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 680px;
}

  .hero-channels {
    grid-template-columns: 1fr 1fr;
  }

  .hero-media {
    min-height: 390px;
    margin: 0 -14px;
  }

  .ewm-section {
    padding: 66px 0;
  }

  .capability-grid,
  .network-grid,
  .post-grid,
  .form-grid,
  .about-list,
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .system-map {
    min-height: 420px;
  }

  .system-node {
    font-size: 0.66rem;
    padding: 9px 12px;
  }

  .system-node.n2,
  .system-node.n3 {
    right: 8px;
  }

  .system-node.n5,
  .system-node.n6 {
    left: 8px;
  }

  .about-copy {
    padding: 30px;
  }

  .creator-photo {
    height: 390px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 6px;
  }
}
