:root {
  --bg: #f7f3ec;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --ink: #17202a;
  --muted: #5f6b76;
  --line: #ded4c7;
  --line-strong: #cdbfaa;
  --teal: #0f766e;
  --blue: #2457a7;
  --coral: #c75d4d;
  --gold: #b4822d;
  --shadow: 0 18px 42px rgba(37, 28, 18, 0.09);
  --shadow-soft: 0 10px 28px rgba(37, 28, 18, 0.055);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbf8f2 0%, var(--bg) 480px);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

p,
h1,
h2,
h3 {
  margin: 0;
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 32px), 1160px);
  margin-inline: auto;
  min-width: 0;
}

main,
section,
.grid,
.blog-showcase,
.learning-layout,
.learning-secondary,
.tool-group,
.contact-panel {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 248, 242, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  flex: 1 1 100%;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.main-nav a {
  border-radius: 999px;
  padding: 7px 9px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(23, 32, 42, 0.06);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--ink);
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 750;
}

.section {
  padding: 56px 0;
  scroll-margin-top: 118px;
}

.section.spacious {
  padding: 54px 0 64px;
}

.tools-section {
  background: linear-gradient(180deg, var(--bg), #fbf8f2);
}

.section.soft {
  background: #efe7da;
}

.blog-section {
  background: #f1e9dd;
  border-block: 1px solid var(--line);
}

.blog-page-hero {
  border-bottom: 1px solid var(--line);
  padding: 50px 0 62px;
}

.blog-page-hero .lead {
  max-width: 850px;
}

.blog-topic-grid {
  margin-top: 34px;
}

.blog-page-listing {
  border-top: 0;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  border-bottom: 1px solid var(--line);
  padding: 48px 0 58px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.hero-copy {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.hero-copy .eyebrow {
  width: fit-content;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.06);
  padding: 7px 10px;
}

.vector-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(205, 191, 170, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 242, 0.72)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.vector-panel svg {
  display: block;
  width: 100%;
  height: auto;
}

.visual-surface {
  fill: rgba(255, 255, 255, 0.58);
  stroke: var(--line);
  stroke-width: 2;
}

.visual-line,
.visual-link {
  fill: none;
  stroke: rgba(95, 107, 118, 0.28);
  stroke-width: 3;
  stroke-linecap: round;
}

.visual-link {
  stroke-width: 2.6;
}

.visual-accent,
.visual-dot {
  fill: none;
  stroke: var(--teal);
  stroke-width: 5;
  stroke-linecap: round;
}

.visual-dot {
  stroke-width: 4;
  opacity: 0.72;
}

.visual-card {
  fill: rgba(247, 243, 236, 0.88);
  stroke: rgba(205, 191, 170, 0.9);
  stroke-width: 2;
}

.visual-node {
  stroke: #fffaf2;
  stroke-width: 6;
}

.visual-node.teal {
  fill: var(--teal);
}

.visual-node.blue {
  fill: var(--blue);
}

.visual-node.coral {
  fill: var(--coral);
}

.visual-node.gold {
  fill: var(--gold);
}

.hero h1 {
  max-width: 930px;
  font-size: clamp(2rem, 5.8vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  max-width: 100%;
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  line-height: 1;
  max-width: 100%;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.icon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.07);
  color: var(--teal);
}

.icon-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-mark.compact {
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
}

.icon-mark.compact svg {
  width: 18px;
  height: 18px;
}

.section-icon {
  margin-bottom: 2px;
}

.hero-card-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.mini-card {
  position: relative;
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  max-width: 100%;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mini-card::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.mini-card:hover {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mini-card h2,
.mini-card h3 {
  font-size: 1.02rem;
  line-height: 1.16;
}

.mini-card p:not(.meta) {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.intent-band {
  padding: 28px 0;
  background: #fffaf2;
  border-bottom: 1px solid var(--line);
}

.intent-panel {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.intent-copy {
  display: grid;
  gap: 8px;
  max-width: 720px;
  min-width: 0;
}

.intent-copy h2 {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.15;
}

.intent-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  max-width: 100%;
}

.intent-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.intent-points div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.intent-points span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.intent-points strong {
  font-size: 0.95rem;
}

.intent-points small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.image-caption {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 38px;
  min-width: 0;
}

.section-heading > div {
  min-width: 0;
}

.section-heading h2 {
  max-width: 720px;
  font-size: clamp(1.55rem, 4.2vw, 2.45rem);
  line-height: 1.12;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.03rem;
}

.section-heading.wide {
  margin-bottom: 36px;
}

.section-heading.wide h2,
.section-heading.wide p:not(.eyebrow) {
  max-width: 860px;
}

.tools-heading {
  align-items: center;
}

.tools-visual {
  padding: 8px;
  max-width: 360px;
  justify-self: stretch;
}

.editorial-heading {
  align-items: end;
}

.section-action {
  width: fit-content;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.roomy,
.grid.airy {
  gap: 20px;
}

.grid.two,
.grid.three {
  grid-template-columns: 1fr;
}

.card {
  display: grid;
  gap: 14px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  max-width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.22rem;
  line-height: 1.22;
}

.card p:not(.meta) {
  color: var(--muted);
  font-size: 0.98rem;
}

.card.quiet {
  background: transparent;
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.feature {
  display: grid;
  gap: 22px;
  align-items: center;
}

.feature-copy {
  display: grid;
  gap: 14px;
}

.feature-copy h2 {
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 1.02;
}

.feature-copy p {
  color: var(--muted);
}

.proof-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.proof-list li {
  border-left: 3px solid var(--teal);
  padding-left: 12px;
  color: var(--muted);
}

.tools-stack {
  display: grid;
  gap: 64px;
}

.tools-stack.refined {
  gap: 70px;
}

.tool-group {
  display: grid;
  gap: 26px;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}

.tool-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.tool-group-head {
  display: grid;
  gap: 10px;
  max-width: 660px;
}

.tool-group-head.with-icon {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  max-width: 760px;
}

.tool-group-head.with-icon .section-icon {
  grid-row: 1 / 4;
}

.tool-group-head.with-icon .eyebrow {
  align-self: end;
}

.tool-group-head h3 {
  font-size: clamp(1.28rem, 3.4vw, 1.78rem);
  line-height: 1.14;
}

.tool-group-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
}

.tool-card {
  align-content: start;
  min-height: 218px;
}

.tool-card.highlight {
  background: linear-gradient(145deg, #fff 0%, #fff8ec 100%);
  border-color: #cbbda9;
}

.tool-featured {
  min-height: 340px;
  padding: 28px;
}

.tool-featured h3 {
  max-width: 560px;
  font-size: clamp(1.35rem, 4vw, 2.05rem);
}

.tool-featured p:not(.meta) {
  max-width: 600px;
}

.tool-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.tool-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.06);
  color: var(--teal);
  padding: 0 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.compact-grid {
  gap: 16px;
}

.compact-tool {
  min-height: 0;
  padding: 22px;
}

.learning-layout,
.learning-secondary {
  display: grid;
  gap: 16px;
}

.gist-card {
  max-width: 620px;
}

.blog-list {
  display: grid;
  gap: 14px;
}

.blog-showcase {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.blog-feature {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 360px;
  border: 1px solid #cbbda9;
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-feature:hover {
  border-color: #bcae9a;
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(37, 28, 18, 0.12);
}

.blog-feature h2,
.blog-feature h3 {
  max-width: 720px;
  margin-top: 12px;
  font-size: clamp(1.42rem, 5.8vw, 2.55rem);
  line-height: 1.05;
}

.blog-feature p:not(.meta) {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.06rem;
}

.blog-feature .tag-row {
  margin-top: 22px;
}

.blog-side-list {
  display: grid;
  gap: 16px;
}

.article-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  max-width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.article-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.article-card.compact {
  align-content: space-between;
  min-height: 172px;
}

.article-card h2,
.article-card h3 {
  font-size: 1.18rem;
  line-height: 1.22;
}

.article-card p:not(.meta) {
  margin-top: 8px;
  color: var(--muted);
}

.blog-section-footer {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  color: var(--muted);
}

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.share-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  margin-right: 2px;
}

.share-btn {
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

@media (max-width: 719px) {
  .tools-visual {
    max-width: 320px;
    justify-self: center;
  }

  .page-hero h1 {
    max-width: 15ch;
    font-size: clamp(1.72rem, 7.2vw, 2.15rem);
    line-height: 1.1;
  }

  .page-hero .lead {
    max-width: 32ch;
  }

  .hero h1 {
    max-width: 13ch;
    font-size: clamp(1.7rem, 6.4vw, 1.98rem);
    line-height: 1.08;
  }

  .lead {
    max-width: 34ch;
    font-size: 1rem;
  }

  .actions {
    align-items: stretch;
  }

  .button {
    flex: 1 1 100%;
    min-height: 46px;
  }

  .hero-card-grid {
    margin-top: 20px;
  }

  .mini-card p:not(.meta),
  .section-heading p:not(.eyebrow),
  .article-card p:not(.meta),
  .blog-feature p:not(.meta),
  .tool-group-head p:not(.eyebrow) {
    max-width: 34ch;
  }

  .share-label {
    flex-basis: 100%;
  }

  .section-heading h2,
  .feature-copy h2 {
    max-width: 16ch;
    font-size: clamp(1.45rem, 6.6vw, 1.9rem);
    line-height: 1.12;
  }

  .blog-feature h2,
  .blog-feature h3 {
    max-width: 16ch;
  }

  .article-card h2,
  .article-card h3 {
    max-width: 25ch;
    overflow-wrap: anywhere;
  }

  .blog-feature p:not(.meta),
  .article-card p:not(.meta),
  .tool-card p:not(.meta) {
    max-width: 29ch;
  }

  .intent-points {
    grid-template-columns: 1fr;
  }

  .intent-panel {
    padding: 20px;
  }

  .intent-copy p:not(.eyebrow) {
    max-width: 31ch;
  }
}

.share-btn:hover,
.share-btn.copied {
  background: #fff;
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

.contact-panel {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  padding-block: 28px;
  box-shadow: var(--shadow-soft);
}

.contact-actions {
  display: grid;
  gap: 18px;
}

.contact-share {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.page-hero {
  padding: 38px 0 28px;
}

.page-hero h1 {
  max-width: 860px;
  margin-top: 10px;
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 1.06;
}

.page-hero .lead {
  margin-top: 14px;
}

.article-shell {
  width: min(calc(100% - 32px), 840px);
  margin: 0 auto;
  padding: 34px 0 62px;
}

.article-header {
  display: grid;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 26px;
}

.article-header h1 {
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 1.06;
}

.article-content {
  color: #26323d;
  font-family: Georgia, "Times New Roman", serif;
}

.article-content p,
.article-content li {
  margin: 0 0 20px;
  font-size: 1.08rem;
  line-height: 1.85;
}

.article-content h2 {
  margin: 42px 0 16px;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 1.7rem;
  line-height: 1.18;
}

.article-content blockquote {
  margin: 28px 0;
  border-left: 4px solid var(--coral);
  padding: 14px 0 14px 18px;
  color: #3f4b56;
  font-size: 1.08rem;
  font-style: italic;
}

.article-content ol {
  padding-left: 22px;
}

.reference-box,
.note-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  margin-top: 26px;
}

.inline-note {
  max-width: 760px;
  margin-top: 0;
  padding: 26px;
}

.reference-box h2,
.note-box h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.reference-box p,
.note-box p {
  color: var(--muted);
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (min-width: 720px) {
  .container {
    width: min(calc(100% - 48px), 1160px);
  }

  .nav-bar {
    flex-wrap: nowrap;
    min-height: 68px;
    padding: 0;
  }

  .main-nav {
    flex: 0 1 auto;
    gap: 26px;
    align-items: center;
    overflow: visible;
    padding-bottom: 0;
    font-size: 0.94rem;
  }

  .main-nav a {
    padding: 8px 10px;
  }

  .section {
    scroll-margin-top: 82px;
  }

  .hero {
    padding: 78px 0 82px;
  }

  .hero-grid,
  .feature {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  }

  .hero-grid.text-only,
  .feature.text-only {
    grid-template-columns: minmax(0, 1010px);
  }

  .hero-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
  }

  .intent-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: end;
    padding: 28px;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding: 34px;
  }

  .tools-heading {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 34px;
  }

  .contact-panel .section-heading {
    margin-bottom: 0;
  }

  .contact-actions {
    justify-items: end;
    min-width: 280px;
  }

  .contact-actions .actions {
    justify-content: flex-end;
  }

  .contact-share {
    justify-content: flex-end;
    max-width: 330px;
  }

  .contact-share .share-label {
    flex-basis: 100%;
    text-align: right;
  }

  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-card {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .blog-showcase {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
    align-items: stretch;
    gap: 22px;
  }

  .blog-feature {
    min-height: 430px;
    padding: 34px;
  }

  .blog-side-list {
    gap: 20px;
  }

  .article-card.compact {
    grid-template-columns: 1fr;
    min-height: 205px;
  }

  .blog-section-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 30px;
  }

  .learning-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: stretch;
    gap: 22px;
  }

  .learning-secondary {
    gap: 20px;
  }

  .tool-featured {
    min-height: 100%;
  }

  .editorial-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1040px) {
  .section {
    padding: 86px 0;
  }

  .section.spacious {
    padding: 96px 0;
  }

  .tools-stack {
    gap: 76px;
  }

  .tool-group {
    padding-top: 56px;
  }
}

@media (min-width: 1180px) {
  .tool-group {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 56px;
  }

  .tool-group.single-tool {
    grid-template-columns: minmax(280px, 320px) minmax(0, 620px);
  }
}

/* Wero e-learning */
.wero-page .page-hero {
  border-bottom: 1px solid var(--line);
  padding: 46px 0 42px;
}

.wero-page .page-hero h1 {
  max-width: 900px;
}

.wero-shell {
  padding: 34px 0 76px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.module-stage {
  margin-top: 22px;
}

.top-status {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.panel,
.xp-banner,
.module-card,
.quiz-box,
.result-box,
.completion-box,
.scores-recap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  box-shadow: var(--shadow-soft);
}

.panel,
.quiz-box,
.result-box,
.completion-box {
  padding: 22px;
}

.xp-banner {
  padding: 22px;
  background: linear-gradient(145deg, #fff 0%, #fff8ec 100%);
}

.xp-label,
.subtle-label,
.module-num-label,
.quiz-meta,
.score-label,
.summary-title,
.scores-recap-title,
.badge-earned-lbl {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xp-value {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 850;
  line-height: 1.12;
}

.xp-bar-wrap,
.quiz-progress-track {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 32, 42, 0.09);
  margin-top: 14px;
}

.xp-bar-fill,
.quiz-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  transition: width 0.35s ease;
}

.badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.badge-chip.earned {
  border-color: rgba(15, 118, 110, 0.25);
  background: rgba(15, 118, 110, 0.07);
  color: var(--teal);
}

.badge-chip.locked {
  opacity: 0.58;
}

.modules-header {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.modules-title,
.module-title,
.quiz-title,
.result-title,
.completion-title {
  color: var(--ink);
  line-height: 1.12;
}

.modules-title {
  font-size: clamp(1.55rem, 5vw, 2.25rem);
}

.modules-subtitle,
.module-subtitle,
.module-desc,
.score-chip,
.quiz-progress-label,
.result-message,
.completion-message,
.content-box p,
.data-list li {
  color: var(--muted);
}

.modules-subtitle {
  margin-top: 6px;
}

.progress-pill,
.module-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 12px;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.module-list,
.options-list {
  display: grid;
  gap: 12px;
}

.module-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  padding: 18px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.module-card:hover.available,
.module-card:hover.completed {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.module-card.locked {
  cursor: default;
  opacity: 0.55;
}

.module-card:disabled {
  cursor: default;
}

.module-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.07);
  color: var(--teal);
  font-weight: 850;
}

.module-info {
  min-width: 0;
}

.module-name {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.module-desc,
.score-chip {
  margin-top: 4px;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.module-status {
  grid-column: 2;
}

.module-header-box {
  margin-bottom: 16px;
}

.module-title {
  margin-top: 8px;
  font-size: clamp(1.45rem, 5vw, 2.25rem);
}

.module-subtitle {
  margin-top: 8px;
}

.section-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 18px;
}

.section-counter {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.section-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.section-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(23, 32, 42, 0.16);
  cursor: pointer;
}

.section-dot.active,
.section-dot.done {
  background: var(--teal);
}

.content-box {
  padding: 24px;
}

.content-section-title {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.2;
}

.content-box p {
  margin-bottom: 12px;
}

.info-box {
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: rgba(15, 118, 110, 0.06);
  color: #33404a;
  padding: 14px 16px;
  margin: 18px 0;
}

.data-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 14px 0;
  list-style: none;
}

.data-list li {
  display: flex;
  gap: 10px;
}

.data-list li::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  margin-top: 10px;
}

.section-btn-row,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 18px;
  font: inherit;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.btn-full {
  width: 100%;
}

.quiz-progress-label {
  margin-top: 10px;
}

.question-text {
  margin: 24px 0 16px;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.35;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.option-btn:hover:not(:disabled),
.option-btn.selected {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.option-btn.correct {
  border-color: rgba(15, 118, 110, 0.38);
  background: rgba(15, 118, 110, 0.07);
}

.option-btn.wrong {
  border-color: rgba(199, 93, 77, 0.42);
  background: rgba(199, 93, 77, 0.08);
}

.option-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.feedback-box {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 14px 16px;
  margin-top: 16px;
}

.feedback-box.correct,
.feedback-box.wrong {
  display: block;
}

.feedback-title {
  color: var(--ink);
  font-weight: 850;
  margin-bottom: 4px;
}

.result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.score-circle {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.07);
  color: var(--teal);
}

.score-number {
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1;
}

.badge-earned-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  margin: 18px 0;
  text-align: center;
}

.badge-earned-icon {
  font-size: 2rem;
  line-height: 1;
}

.badge-earned-name {
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 850;
}

.xp-gained {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.06);
  color: var(--teal);
  padding: 0 11px;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.summary-item,
.score-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
}

.summary-item:last-child,
.score-row:last-child {
  border-bottom: 0;
}

.completion-box {
  text-align: center;
}

.completion-message {
  max-width: 700px;
  margin: 14px auto 24px;
}

.scores-recap {
  max-width: 760px;
  margin: 0 auto 22px;
  padding: 18px;
  text-align: left;
}

@media (max-width: 719px) {
  .wero-page .page-hero h1,
  .module-title,
  .quiz-title,
  .result-title,
  .completion-title {
    max-width: 15ch;
  }

  .wero-page .page-hero .lead {
    max-width: 32ch;
  }

  .modules-subtitle {
    max-width: 29ch;
  }

  .module-name,
  .module-desc {
    max-width: 25ch;
  }

  .module-status,
  .progress-pill,
  .badge-chip {
    max-width: 100%;
    white-space: normal;
  }

  .module-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .module-status {
    grid-column: 2;
  }

  .section-btn-row,
  .result-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .top-status {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  }

  .modules-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .module-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 20px 22px;
  }

  .module-status {
    grid-column: auto;
  }

  .panel,
  .quiz-box,
  .result-box,
  .completion-box {
    padding: 28px;
  }
}

@media (max-width: 719px) {
  .page-hero h1 {
    max-width: 15ch;
    font-size: clamp(1.72rem, 7.2vw, 2.15rem);
    line-height: 1.1;
  }

  .page-hero .lead {
    max-width: 32ch;
  }

  .article-card h2,
  .article-card h3,
  .module-name,
  .module-desc {
    max-width: 25ch;
    overflow-wrap: anywhere;
  }
}
