:root {
  --tnword-burgundy: #6f1d2f;
  --tnword-gold: #d8a441;
  --tnword-cream: #fffaf2;
  --tnword-ink: #1b1614;
  --tnword-sage: #64785f;
  --tnword-soft: #fbefe1;
  --tnword-muted: rgba(27, 22, 20, 0.72);
  --tnword-white: #ffffff;
  --tnword-card: #ffffff;
  --tnword-hero-dark: #4e1421;
  --tnword-hero-brown: #3a1d18;
  --tnword-button-hover: #521426;
  --tnword-gold-hover: #e6b85c;
  --tnword-header-bg: #fffaf2;
  --tnword-header-text: #1b1614;
  --tnword-footer-bg: #6f1d2f;
  --tnword-footer-text: #ffffff;
  --tnword-buzz-category: #fff3d6;
  --tnword-shadow: 0 24px 80px rgba(27, 22, 20, 0.12);
  --tnword-radius: 24px;
  --tnword-max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--tnword-cream);
  color: var(--tnword-ink);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

body.admin-bar .site-header { top: 32px; }

img { max-width: 100%; height: auto; }

a { color: var(--tnword-burgundy); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--tnword-gold); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--tnword-burgundy);
  color: #fff;
  z-index: 10000;
}
.skip-link:focus { left: 1rem; }

.container, .wrap {
  width: min(var(--tnword-max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 242, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(111, 29, 47, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.site-branding { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.custom-logo { max-height: 54px; width: auto; }
.site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  color: var(--tnword-burgundy);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.site-description {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: rgba(27, 22, 20, 0.72);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(111, 29, 47, 0.16);
  background: rgba(255,255,255,0.86);
  color: var(--tnword-burgundy);
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(27,22,20,0.07);
}

.primary-menu {
  margin-left: auto;
}
.primary-menu ul, .footer-menu ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.primary-menu li { position: relative; }
.primary-menu a, .footer-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.76rem;
  color: var(--tnword-ink);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.15;
  white-space: nowrap;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a,
.footer-menu a:hover {
  background: rgba(216, 164, 65, 0.16);
  color: var(--tnword-burgundy);
}
.primary-menu .tnword-menu-cta > a {
  background: var(--tnword-gold);
  color: var(--tnword-ink);
  box-shadow: 0 12px 28px rgba(216,164,65,0.24);
}
.primary-menu .tnword-menu-cta > a:hover,
.primary-menu .tnword-menu-cta.current-menu-item > a {
  background: #e6b85c;
  color: var(--tnword-ink);
}
.primary-menu .menu-item-has-children > a::after {
  content: "▾";
  margin-left: 0.35rem;
  font-size: 0.68rem;
  color: var(--tnword-gold);
}
.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  display: grid;
  min-width: 245px;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 250, 242, 0.99);
  border: 1px solid rgba(111,29,47,0.12);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(27,22,20,0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-menu .sub-menu a {
  justify-content: flex-start;
  width: 100%;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  white-space: normal;
}


.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.22rem 0.34rem;
  border: 1px solid rgba(111,29,47,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  flex: 0 0 auto;
  max-width: 190px;
}
.language-label {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: var(--tnword-burgundy);
  font-size: 0.95rem;
}
.language-options ul, .language-menu, .wpml-language-list {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 150px;
  overflow: hidden;
}
.language-options li { margin: 0; }
.language-options a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0.22rem 0.38rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: var(--tnword-ink);
  font-size: 0.76rem;
  line-height: 1;
}
.language-options a:hover,
.language-options .current-lang > a {
  background: rgba(216,164,65,0.18);
  color: var(--tnword-burgundy);
}
.language-options img {
  width: 15px;
  height: auto;
  display: inline-block;
}
.language-setup-note {
  display: inline-block;
  max-width: 130px;
  font-size: 0.7rem;
  color: var(--tnword-muted);
  line-height: 1.15;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.promo-banner {
  background: linear-gradient(135deg, var(--tnword-burgundy), #4d1625);
  color: white;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(216, 164, 65, 0.42), transparent 38%);
  pointer-events: none;
}
.promo-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.promo-label {
  display: inline-block;
  color: var(--tnword-ink);
  background: var(--tnword-gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  margin-right: 0.5rem;
}
.promo-copy { margin: 0; font-weight: 800; }
.promo-code {
  border: 1px dashed rgba(255,255,255,0.65);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  margin-left: 0.4rem;
}

.btn, .wp-block-button__link, button[type="submit"], input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 0.88rem 1.25rem;
  background: var(--tnword-burgundy);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(111,29,47,0.18);
}
.btn:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  background: #521426;
  color: #fff !important;
  transform: translateY(-1px);
}
.btn-secondary { background: var(--tnword-gold); color: var(--tnword-ink) !important; }
.btn-secondary:hover { background: #b87922; color: #fff !important; }
.btn-outline {
  background: transparent;
  color: var(--tnword-burgundy) !important;
  border: 1px solid rgba(111,29,47,0.24);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(111,29,47,0.08); color: var(--tnword-burgundy) !important; }


.btn-disabled,
.btn-disabled:hover,
.resource-status-coming_soon .btn-disabled,
.guide-status-coming_soon .btn-disabled {
  background: rgba(111,29,47,0.10);
  color: var(--tnword-burgundy) !important;
  border: 1px solid rgba(111,29,47,0.22);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Home hero button visibility fixes */
.hero-actions .btn-ebook {
  background: #ffffff;
  color: var(--tnword-burgundy) !important;
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: 0 14px 32px rgba(255,255,255,0.18);
}
.hero-actions .btn-ebook:hover,
.hero-actions .btn-ebook:focus {
  background: #fffaf2;
  color: var(--tnword-ink) !important;
}
.hero-actions .btn-hero-outline {
  background: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: none;
}
.hero-actions .btn-hero-outline:hover,
.hero-actions .btn-hero-outline:focus {
  background: rgba(255,255,255,0.12);
  color: #ffffff !important;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, rgba(111,29,47,0.95), rgba(71,22,35,0.86)), var(--tnword-burgundy);
  color: #fff;
}
.hero.has-image {
  background-size: cover;
  background-position: center;
}
.hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(80,20,34,0.94), rgba(80,20,34,0.58), rgba(80,20,34,0.28));
}
.hero::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -180px;
  bottom: -180px;
  border-radius: 999px;
  background: rgba(216, 164, 65, 0.18);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(270px, 0.7fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  padding: clamp(64px, 8vw, 110px) 0;
}
.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 900;
  font-size: 0.76rem;
  color: var(--tnword-gold);
  margin-bottom: 1rem;
}
.hero h1, .page-hero h1, .section-title, h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  margin: 0 0 1.1rem;
}
.hero p {
  max-width: 680px;
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  color: rgba(255,255,255,0.9);
  margin: 0 0 1.5rem;
}

.hero .hero-series {
  color: var(--tnword-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  margin-top: -0.65rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--tnword-radius);
  padding: 20px;
  box-shadow: var(--tnword-shadow);
  backdrop-filter: blur(18px);
}
.cover-frame {
  background: rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 12px;
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255,255,255,0.85);
}
.cover-frame img { border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-alt { background: rgba(255,255,255,0.55); }
.section-title { font-size: clamp(2rem, 4.3vw, 4rem); color: var(--tnword-burgundy); margin: 0 0 1rem; }
.section-lead { max-width: 760px; font-size: 1.12rem; color: rgba(27,22,20,0.76); margin: 0 0 2rem; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff;
  border: 1px solid rgba(111,29,47,0.08);
  border-radius: var(--tnword-radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 18px 50px rgba(27,22,20,0.08);
}
.card h3 { margin-top: 0; color: var(--tnword-burgundy); font-size: 1.45rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(216,164,65,0.18);
  color: var(--tnword-burgundy);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.page-hero {
  background: linear-gradient(135deg, rgba(111,29,47,0.95), rgba(27,22,20,0.88));
  color: #fff;
  padding: clamp(64px, 7vw, 110px) 0;
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); margin: 0; max-width: 980px; }
.page-hero p { max-width: 780px; color: rgba(255,255,255,0.86); font-size: 1.14rem; }

.content-area {
  padding: clamp(44px, 6vw, 80px) 0;
}
.entry-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.06rem;
}
.entry-content h2 { color: var(--tnword-burgundy); font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 2rem; }
.entry-content h3 { color: var(--tnword-burgundy); }
.entry-content .alignwide { max-width: var(--tnword-max); margin-left: calc((860px - var(--tnword-max)) / 2); margin-right: calc((860px - var(--tnword-max)) / 2); }

.form-wrap {
  background: #fff;
  border: 1px solid rgba(111,29,47,0.10);
  border-radius: var(--tnword-radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 20px 60px rgba(27,22,20,0.10);
}
.inquiry-form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field label { font-weight: 800; color: var(--tnword-burgundy); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid rgba(111,29,47,0.22);
  border-radius: 14px;
  padding: 0.88rem 1rem;
  font: inherit;
  background: #fffdfa;
  color: var(--tnword-ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 3px solid rgba(216,164,65,0.25);
  border-color: var(--tnword-gold);
}
.form-note { font-size: 0.9rem; color: rgba(27,22,20,0.72); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.notice {
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(93,114,92,0.13);
  border: 1px solid rgba(93,114,92,0.25);
  color: #2f4730;
  font-weight: 700;
}
.notice-error { background: rgba(165,38,38,0.11); border-color: rgba(165,38,38,0.28); color: #8a1f1f; }

.retailer-grid, .review-grid, .guide-grid, .milestone-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.retailer-card, .review-card, .guide-card, .milestone-card {
  background: #fff;
  border-radius: var(--tnword-radius);
  border: 1px solid rgba(111,29,47,0.08);
  padding: 24px;
  text-align: center;
  box-shadow: 0 16px 46px rgba(27,22,20,0.08);
}
.retailer-logo {
  min-height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.retailer-logo img { max-height: 88px; width: auto; object-fit: contain; }
.guide-thumb { min-height: 120px; display: grid; place-items: center; margin-bottom: 16px; }
.guide-thumb img { max-height: 150px; width: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 10px 28px rgba(27,22,20,0.12); }
.retailer-placeholder {
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px dashed rgba(111,29,47,0.28);
  border-radius: 16px;
  color: var(--tnword-burgundy);
  font-weight: 900;
}
.guide-card { text-align: left; }
.guide-card .btn { margin-top: 1rem; }
.review-card { text-align: left; }
.review-card blockquote { margin: 0; font-size: 1.05rem; }
.review-meta { margin-top: 1rem; font-weight: 900; color: var(--tnword-burgundy); }
.milestone-card { text-align: left; padding: 0; overflow: hidden; }
.milestone-image { display: block; background: var(--tnword-soft); border-bottom: 1px solid rgba(111,29,47,0.08); }
.milestone-image img { display: block; width: 100%; height: auto; }
.milestone-body { padding: 24px; }
.milestone-body h3 { margin-top: 0; color: var(--tnword-burgundy); }
.milestone-meta { color: rgba(27,22,20,0.68); font-size: 0.9rem; font-weight: 800; }
.milestone-card .btn { margin-top: 1rem; }
.auto-section { margin-top: clamp(44px, 6vw, 76px); }
.auto-section h2 { color: var(--tnword-burgundy); font-size: clamp(1.8rem, 3vw, 2.6rem); }

.resource-list { display: grid; gap: 16px; margin: 24px 0; }
.resource-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(111,29,47,0.08);
}
.resource-item strong { color: var(--tnword-burgundy); }

.site-footer {
  background: var(--tnword-burgundy);
  color: rgba(255,255,255,0.86);
  padding: 52px 0 28px;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.footer-title { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; margin: 0 0 0.75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 30px; padding-top: 22px; font-size: 0.9rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 0; }
  .site-header { position: sticky; }
  .header-inner { flex-wrap: wrap; gap: 14px; padding: 12px 0; }
  .site-branding { flex: 1 1 auto; min-width: 0; }
  .menu-toggle { display: inline-flex; }
  .primary-menu {
    display: none;
    width: 100%;
    margin-left: 0;
    padding: 12px;
    background: rgba(255,250,242,0.98);
    border: 1px solid rgba(111,29,47,0.10);
    border-radius: 22px;
    box-shadow: 0 22px 52px rgba(27,22,20,0.10);
  }
  .primary-menu.is-open { display: block; }
  .primary-menu ul, .primary-menu-list { flex-direction: column; align-items: stretch; gap: 6px; }
  .primary-menu a { width: 100%; justify-content: flex-start; border-radius: 15px; padding: 0.8rem 0.95rem; }
  .primary-menu .tnword-menu-cta > a { justify-content: center; }
  .primary-menu .sub-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    display: grid;
    min-width: 0;
    width: 100%;
    margin: 3px 0 0 0;
    padding: 6px 0 6px 14px;
    background: transparent;
    border: 0;
    border-left: 2px solid rgba(216,164,65,0.32);
    border-radius: 0;
    box-shadow: none;
  }
  .primary-menu .sub-menu a { font-size: 0.9rem; padding: 0.65rem 0.8rem; }
  .language-switcher { width: auto; margin-left: auto; justify-content: center; }
  .language-options ul, .language-menu, .wpml-language-list { flex-wrap: nowrap; justify-content: flex-end; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid, .retailer-grid, .review-grid, .guide-grid, .milestone-grid, .resource-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .promo-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .container, .wrap { width: min(100% - 28px, var(--tnword-max)); }
  .hero h1 { font-size: clamp(2.6rem, 16vw, 4.1rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .language-switcher { align-items: center; border-radius: 999px; flex-direction: row; max-width: 100%; }
  .language-options ul, .language-menu, .wpml-language-list { justify-content: flex-start; }
  .btn { width: 100%; }
}
.theme-credit { font-size: 0.9rem; color: rgba(255,255,255,0.68); }


.tnword-author-feature {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  margin: 2.75rem 0;
  padding: clamp(22px, 4vw, 40px);
  background: #fff;
  border: 1px solid rgba(111,29,47,0.10);
  border-radius: var(--tnword-radius);
  box-shadow: 0 18px 48px rgba(27,22,20,0.08);
}
.tnword-author-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(111,29,47,0.10);
}
.tnword-author-copy h2 {
  margin-top: 0;
  color: var(--tnword-burgundy);
}
.tnword-author-copy p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .tnword-author-feature { grid-template-columns: 1fr; }
  .tnword-author-photo img { max-width: 220px; margin: 0 auto; }
}

.tnword-character-development {
  margin: 2.25rem 0;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  border: 1px solid rgba(27,22,20,0.10);
  border-radius: 24px;
  box-shadow: 0 16px 44px rgba(27,22,20,0.08);
}
.tnword-character-development img {
  display: block;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(27,22,20,0.08);
}
.tnword-character-development figcaption {
  max-width: 780px;
  margin: 1rem auto 0;
  color: var(--tnword-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

/* Version 1.2.0 additions: resources, book buzz, guide storefront, compact language switcher, optional notify forms */
.resource-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}
.resource-filter-row span,
.tag-row span,
.guide-status-badge,
.resource-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--tnword-soft);
  color: var(--tnword-burgundy);
  border: 1px solid rgba(111,29,47,0.10);
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.resource-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(111,29,47,0.08);
  border-radius: var(--tnword-radius);
  padding: 22px;
  box-shadow: 0 16px 46px rgba(27,22,20,0.08);
}
.resource-visual {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--tnword-soft);
  color: var(--tnword-burgundy);
  font-size: 2rem;
  overflow: hidden;
}
.resource-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.resource-body h3 { margin-top: 8px; color: var(--tnword-burgundy); }
.resource-body .btn { margin-top: 1rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.resource-type { margin: 0; background: rgba(216,164,65,0.12); color: var(--tnword-ink); }
.resource-status-coming_soon { opacity: 0.95; }

.notify-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(111,29,47,0.06);
  border: 1px solid rgba(111,29,47,0.12);
}
.notify-form label span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--tnword-burgundy);
}
.notify-form input[type="text"],
.notify-form input[type="email"] {
  width: 100%;
  border: 1px solid rgba(111,29,47,0.18);
  border-radius: 12px;
  min-height: 42px;
  padding: 10px 12px;
  background: #fff;
}
.notify-form button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--tnword-burgundy);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.notify-optin { font-size: 0.85rem; color: var(--tnword-muted); line-height: 1.45; }
.compact-notice { margin: 0; padding: 8px 10px; font-size: 0.85rem; }

.guide-status-badge { margin: 0 0 10px; }
.guide-price { color: var(--tnword-burgundy); }


.retailer-section { margin-top: 34px; }
.retailer-section:first-child { margin-top: 0; }
.retailer-section h2 { color: var(--tnword-burgundy); font-size: clamp(1.7rem, 3vw, 2.4rem); }

.home-book-buzz .buzz-card .milestone-grid {
  grid-template-columns: 1fr;
}
.home-book-buzz .buzz-card .milestone-card:nth-child(n+2) { display: none; }
.home-book-buzz .buzz-card { overflow: hidden; }

@media (max-width: 1100px) {
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { grid-template-columns: 1fr; }
  .resource-visual { width: 100%; height: 120px; }
}

/* Version 1.2.1 refinements: private QR utility, combined inquiry page, extra-compact language switcher */
.language-switcher.language-switcher-compact {
  position: relative;
  width: auto;
  min-width: 58px;
  max-width: 76px;
  height: 34px;
  padding: 0 7px;
  gap: 2px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(111,29,47,0.12);
  box-shadow: 0 8px 18px rgba(27,22,20,0.06);
}
.language-switcher .language-label {
  width: 17px;
  height: 17px;
  font-size: 0.78rem;
  flex: 0 0 auto;
}
.language-switcher .language-options {
  position: relative;
  min-width: 30px;
}
.language-switcher .language-options ul,
.language-switcher .language-menu,
.language-switcher .wpml-language-list,
.language-switcher .polylang-language-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: stretch;
  width: 42px;
  max-width: 42px;
  overflow: visible;
}
.language-switcher .language-options li {
  display: none;
  width: 100%;
}
.language-switcher .language-options li.current-lang,
.language-switcher:hover .language-options li,
.language-switcher:focus-within .language-options li {
  display: block;
}
.language-switcher .language-options li.current-lang a::after {
  content: "▾";
  margin-left: 3px;
  font-size: 0.52rem;
  line-height: 1;
  opacity: 0.65;
}
.language-switcher .language-options a {
  min-width: 31px;
  justify-content: center;
  padding: 0.18rem 0.32rem;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.language-switcher:hover .language-options ul,
.language-switcher:hover .language-menu,
.language-switcher:hover .wpml-language-list,
.language-switcher:hover .polylang-language-list,
.language-switcher:focus-within .language-options ul,
.language-switcher:focus-within .language-menu,
.language-switcher:focus-within .wpml-language-list,
.language-switcher:focus-within .polylang-language-list {
  position: absolute;
  right: -7px;
  top: 23px;
  z-index: 120;
  width: 70px;
  max-width: 70px;
  padding: 8px;
  background: rgba(255, 250, 242, 0.99);
  border: 1px solid rgba(111,29,47,0.12);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(27,22,20,0.14);
}
.language-switcher:hover .language-options a,
.language-switcher:focus-within .language-options a {
  min-width: 100%;
  padding: 0.42rem 0.38rem;
  border-radius: 10px;
}
.language-setup-note {
  max-width: 56px;
  font-size: 0.62rem;
  line-height: 1.05;
}

.inquiry-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 34px;
}
.inquiry-card {
  background: #fff;
  border: 1px solid rgba(111,29,47,0.10);
  border-radius: var(--tnword-radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 16px 44px rgba(27,22,20,0.08);
}
.inquiry-card h2 {
  margin: 0.75rem 0 0.55rem;
  color: var(--tnword-burgundy);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.inquiry-card p {
  margin: 0;
  color: var(--tnword-muted);
}
.inquiry-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--tnword-soft);
  font-size: 1.35rem;
}

@media (max-width: 900px) {
  .language-switcher.language-switcher-compact {
    margin-left: 0;
    min-width: 54px;
    max-width: 70px;
    height: 32px;
    order: 3;
  }
  .inquiry-cards { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .language-switcher.language-switcher-compact {
    max-width: 66px;
    padding: 0 6px;
  }
  .language-switcher .language-label { width: 15px; height: 15px; font-size: 0.72rem; }
  .language-switcher .language-options a { font-size: 0.64rem; }
}

/* Version 1.2.3: dynamic book details for Where to Buy/media resources */
.tnword-book-details {
  display: grid;
  gap: 10px;
  width: min(720px, 100%);
  margin: 22px 0 32px;
  padding: 22px 24px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(111,29,47,0.10);
  border-radius: var(--tnword-radius);
  box-shadow: 0 16px 44px rgba(27,22,20,0.07);
}
.tnword-book-details li {
  margin: 0;
  padding: 0;
  color: var(--tnword-ink);
  font-size: 1rem;
  line-height: 1.55;
}
.tnword-book-details strong {
  color: var(--tnword-burgundy);
}

/* Version 1.2.8: customizable colors, retailer logos, thumbnail resources, review submissions */
body { background: var(--tnword-cream); color: var(--tnword-ink); }
.site-header { background: color-mix(in srgb, var(--tnword-header-bg) 96%, transparent); }
.site-title, .language-label { color: var(--tnword-burgundy); }
.primary-menu a, .footer-menu a, .language-options a { color: var(--tnword-header-text); }
.hero {
  background: linear-gradient(135deg, var(--tnword-hero-dark), var(--tnword-burgundy) 52%, var(--tnword-hero-brown));
}
.page-hero { background: linear-gradient(135deg, var(--tnword-burgundy), var(--tnword-hero-brown)); }
.btn:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--tnword-button-hover); }
.btn-secondary:hover, .primary-menu .tnword-menu-cta > a:hover, .primary-menu .tnword-menu-cta.current-menu-item > a { background: var(--tnword-gold-hover); }
.card, .retailer-card, .review-card, .guide-card, .milestone-card, .resource-card, .form-wrap { background: var(--tnword-card); }
.site-footer { background: var(--tnword-footer-bg); color: color-mix(in srgb, var(--tnword-footer-text) 86%, transparent); }
.site-footer a, .footer-title { color: var(--tnword-footer-text); }
.book-credit { line-height: 1.55; }
.book-credit strong + br + strong { color: var(--tnword-gold); }

.retailer-card { display: grid; align-content: start; }
.retailer-logo { min-height: 104px; padding: 12px; background: var(--tnword-soft); border-radius: 18px; }
.retailer-logo img { max-width: 220px; max-height: 84px; width: auto; height: auto; object-fit: contain; }

.resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  min-height: 100%;
  border-radius: 22px;
}
.resource-card.resource-featured { border-color: color-mix(in srgb, var(--tnword-gold) 60%, transparent); box-shadow: 0 20px 58px rgba(27,22,20,0.14); }
.resource-visual {
  width: 100%;
  height: 190px;
  border-radius: 0;
  border-bottom: 1px solid rgba(111,29,47,0.08);
  background: var(--tnword-soft);
  font-size: 3rem;
}
.resource-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}
.resource-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}
.resource-body h3 { margin: 10px 0 8px; font-size: 1.17rem; line-height: 1.22; }
.resource-body p { font-size: 0.95rem; }
.resource-body .btn { margin-top: auto; align-self: flex-start; }
.resource-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.resource-status-badge { margin: 0; background: var(--tnword-burgundy); color: #fff; }
.resource-status-coming_soon .resource-status-badge { background: var(--tnword-buzz-category); color: var(--tnword-ink); }
.resource-filter-row span { cursor: default; }

.milestone-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.milestone-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--tnword-card);
}
.milestone-image { aspect-ratio: 4 / 3; display: block; overflow: hidden; }
.milestone-image img { width: 100%; height: 100%; object-fit: cover; }
.milestone-meta {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--tnword-buzz-category);
  color: var(--tnword-ink);
}

.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.review-card { position: relative; }
.review-featured { border-color: color-mix(in srgb, var(--tnword-gold) 62%, transparent); box-shadow: 0 22px 62px rgba(27,22,20,0.13); }
.review-featured::before {
  content: "Featured";
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--tnword-buzz-category);
  color: var(--tnword-ink);
  font-weight: 900;
  font-size: 0.78rem;
}
.review-stars { color: var(--tnword-gold); font-size: 1.1rem; letter-spacing: 0.04em; margin-bottom: 12px; }
.review-proof { margin: -6px -6px 16px; border-radius: 18px; overflow: hidden; background: var(--tnword-soft); }
.review-proof img { display: block; width: 100%; height: auto; }
.review-source-link { display: inline-block; margin-top: 12px; font-weight: 900; }
.review-submit-form { display: grid; gap: 16px; }
.review-retailer-links { max-width: 860px; margin-inline: auto; text-align: center; }
.review-link-buttons { justify-content: center; }

@media (max-width: 1100px) {
  .resource-grid, .milestone-grid, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .resource-grid, .milestone-grid, .review-grid { grid-template-columns: 1fr; }
  .resource-visual { height: 170px; }
}


/* Version 1.3.0: final homepage conversation section, clearer resource catalog, and polished public copy */
.site-header { background: color-mix(in srgb, var(--tnword-header-bg) 96%, transparent); }
.primary-menu a, .footer-menu a, .language-options a { color: var(--tnword-header-text); }
.site-footer { background: var(--tnword-footer-bg); color: color-mix(in srgb, var(--tnword-footer-text) 86%, transparent); }
.cover-placeholder { text-align: center; color: rgba(255,255,255,0.92); font-family: Georgia, "Times New Roman", serif; }
.cover-placeholder strong { display: block; color: #fff; font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: 1.02; }
.cover-placeholder span { display: block; margin-top: 0.75rem; color: var(--tnword-gold); font-size: 1.1rem; font-weight: 700; }
.kicker-dark { color: var(--tnword-burgundy); }
.conversation-section { background: linear-gradient(180deg, var(--tnword-cream), color-mix(in srgb, var(--tnword-soft) 72%, white)); }
.conversation-intro { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.conversation-intro .section-lead { margin-left: auto; margin-right: auto; font-size: clamp(1.15rem, 2vw, 1.42rem); }
.conversation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.conversation-card {
  position: relative;
  min-height: 260px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 26px;
  background: var(--tnword-card);
  border: 1px solid rgba(111,29,47,0.10);
  box-shadow: 0 18px 50px rgba(27,22,20,0.08);
  overflow: hidden;
}
.conversation-card::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -64px;
  width: 148px;
  height: 148px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tnword-gold) 18%, transparent);
}
.conversation-number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--tnword-burgundy);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(111,29,47,0.20);
}
.conversation-card h3 { margin: 0 0 0.7rem; color: var(--tnword-burgundy); font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.conversation-card p { position: relative; z-index: 2; margin: 0; color: var(--tnword-muted); }
.explore-section .section-title, .explore-section .section-lead { text-align: center; margin-left: auto; margin-right: auto; }
.nav-card a { font-weight: 900; }
.resource-filter-row { align-items: center; }
.resource-filter-row button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--tnword-soft);
  color: var(--tnword-burgundy);
  border: 1px solid rgba(111,29,47,0.12);
  padding: 8px 13px;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}
.resource-filter-row button:hover,
.resource-filter-row button.is-active {
  background: var(--tnword-burgundy);
  color: #fff;
}
.resource-card.is-hidden { display: none; }
.resource-card { transition: transform .18s ease, box-shadow .18s ease; }
.resource-card:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(27,22,20,0.12); }
.resource-visual span { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3.6rem; }
.resource-status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 11px; font-size: 0.78rem; font-weight: 900; }
.review-empty { text-align: center; }
@media (max-width: 1050px) {
  .conversation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .conversation-grid { grid-template-columns: 1fr; }
  .conversation-card { min-height: 0; }
}

/* Version 1.3.1: clearer resource downloads and coloring-sheet cards */
.resource-card .btn::after { content: ''; }
.resource-type { text-transform: none; }
.resource-status-free .resource-status-badge { background: color-mix(in srgb, var(--tnword-gold) 28%, #fff); color: var(--tnword-ink); }
