/* CHUNKMAPS TEMP template - brand #28a745 */
:root {
  --brand: #28a745;
  --brand-dark: #1e7e34;
  --brand-light: #e8f7ec;
  --brand-mid: #5cb85c;
  --ink: #1a2e1f;
  --ink-muted: #4a5d50;
  --paper: #f7faf8;
  --surface: #ffffff;
  --line: #d5e5da;
  --shadow: 0 10px 30px rgba(26, 46, 31, 0.08);
  --radius: 12px;
  --max: 1280px;
  --font-display: "Source Serif 4", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Candara, "Trebuchet MS", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(40, 167, 69, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(40, 167, 69, 0.08), transparent 55%),
    linear-gradient(180deg, #f3f8f4 0%, var(--paper) 35%, #eef5f0 100%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 0;
}
.brand-link {
  display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink);
}
.brand-link img {
  width: min(220px, 48vw); height: auto;
  border-radius: 18px 8px;
}
.brand-text { display: none; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: 8px; padding: .55rem .75rem; cursor: pointer; font: inherit; color: var(--ink);
}
.nav-toggle[aria-expanded="true"] { background: var(--brand-light); border-color: var(--brand); }

.site-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .15rem;
}
.nav-item { position: relative; }
.nav-link, .nav-parent {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-parent:hover,
.nav-link.active, .nav-item.has-active > .nav-parent {
  background: var(--brand-light); color: var(--brand-dark);
}
.nav-parent .caret { font-size: .7rem; opacity: .7; transition: transform .2s ease; }
.nav-item.open > .nav-parent .caret { transform: rotate(180deg); }

.submenu {
  list-style: none; margin: 0; padding: .4rem;
  position: absolute; top: calc(100% + .35rem); left: 0; min-width: 240px;
  max-height: min(70vh, 28rem); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); display: none; z-index: 50;
}
.nav-item.open > .submenu { display: block; }
.submenu a {
  display: block; padding: .55rem .75rem; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .92rem;
}
.submenu a:hover, .submenu a.active { background: var(--brand-light); color: var(--brand-dark); }

/* Hero */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(40,167,69,0.10), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
}
.page-hero.home-hero { padding: 3rem 0 2rem; text-align: center; }
.hero-logo {
  width: min(420px, 90%); margin: 0 auto 1.25rem;
  border-radius: 28px 12px;
  box-shadow: var(--shadow);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 650; font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.2; margin: 0 0 .5rem; color: var(--ink);
}
.page-hero .subtitle {
  color: var(--brand-dark); font-weight: 600; margin: 0 0 .35rem; letter-spacing: .01em;
}
.page-hero .article-subtitle {
  max-width: none; width: 100%; margin: 0 0 .65rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem); font-weight: 600; line-height: 1.45;
  color: var(--ink-muted);
}
.page-hero .byline { margin: 0; color: var(--ink-muted); font-style: italic; }

.temp-banner {
  background: var(--ink); color: #fff; text-align: center;
  padding: .45rem 1rem; font-size: .85rem; letter-spacing: .02em;
}
.temp-banner strong { color: #9ae6b4; }

/* Content */
.main-content { padding: 2rem 0 3rem; }
.main-content > .container { width: min(100% - 2rem, var(--max)); }
.content-card {
  width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.article-body,
.article-body.wide {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--font-display); color: var(--ink); line-height: 1.25;
}
.article-body h2 { font-size: 1.55rem; margin-top: 1.8rem; }
.article-body p { margin: 0 0 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.article-body li { margin-bottom: .4rem; }
.article-body img {
  margin: 1rem auto; border-radius: 10px; border: 1px solid var(--line);
}
.article-body center { display: block; text-align: center; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.25rem 0;
  font-size: .98rem; overflow-x: auto; display: block;
}
.article-body th, .article-body td {
  border: 1px solid var(--line); padding: .75rem .9rem; text-align: left; vertical-align: top;
  background: #fff;
}
.article-body th { background: var(--brand-light); color: var(--ink); font-weight: 700; }
.article-body tr:nth-child(even) td { background: #fbfefc; }

/* Agentic challenges matrix: col2 and col3 equal width */
.table-scroll { width: 100%; overflow-x: auto; margin: 1.25rem 0; }
.article-body .table-scroll table { margin: 0; }
.article-body table.challenges-table {
  display: table;
  table-layout: fixed;
  width: 100%;
  min-width: 36rem;
}
.article-body table.challenges-table col.challenges-col-challenge { width: 24%; }
.article-body table.challenges-table col.challenges-col-equal { width: 38%; }
.article-body table.challenges-table th,
.article-body table.challenges-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.band {
  width: 100%; background: var(--brand); color: #fff;
  padding: 1rem 1.25rem; text-align: center; border-radius: 10px; margin: 1.5rem 0;
}
.band h2 { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.8rem); }

.brand-word .chunk { color: var(--brand-dark); font-weight: 800; }
.brand-word .maps { color: var(--brand-mid); font-weight: 800; }

.page-hero.home-hero h1 { font-size: clamp(1.45rem, 3.2vw, 2.35rem); }
.page-hero .lead {
  max-width: none; width: 100%; margin: .75rem auto 0;
  color: var(--ink-muted); font-size: 1.05rem; line-height: 1.55;
}

.pillar-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.pillar-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pillar-grid--three .pillar-card {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pillar-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, #fbfffc, #fff);
}
.pillar-card h3 {
  margin: 0 0 .75rem; font-size: 1.12rem; color: var(--brand-dark);
  font-family: var(--font-display);
}
.pillar-problem, .pillar-solution { margin: 0 0 .65rem; font-size: .98rem; }
.pillar-problem { color: var(--ink-muted); }
.pillar-solution { margin-bottom: 0; }

.shift-list { list-style: none; padding-left: 0; margin: 1rem 0 1.5rem; }
.shift-list li {
  padding: .55rem .9rem; margin-bottom: .45rem;
  border-left: 3px solid var(--brand); background: var(--brand-light);
  border-radius: 0 8px 8px 0;
}

.manifesto {
  text-align: center; margin: 2rem 0 .5rem; padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(40,167,69,0.12), rgba(40,167,69,0.04));
  border: 1px solid var(--line);
}
.manifesto h2 { margin: 0 0 .5rem; }
.manifesto-line {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 650; color: var(--brand-dark);
  margin: 0 0 1.25rem;
}
.manifesto .cta-row { justify-content: center; margin-bottom: 0; }

.track-nav {
  display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.25rem 0 1.75rem;
}
.track-nav a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .85rem; border-radius: 999px; font-weight: 700; font-size: .92rem;
  text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.track-nav a:hover { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }
.track-nav .track-tag {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--brand-dark); background: var(--brand-light);
  padding: .1rem .4rem; border-radius: 999px;
}

.home-section { margin: 2rem 0 1.25rem; scroll-margin-top: 5.5rem; }
.home-section > .section-kicker {
  display: inline-block; margin: 0 0 .45rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--brand-light);
  padding: .25rem .55rem; border-radius: 6px;
}
.home-section.v1-section {
  padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fcf9);
}
.home-section.v1-section h2 { margin-top: .35rem; }
.home-section.agentic-section { margin-top: 2.25rem; }
.band.band-soft {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.15rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; transition: .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand-dark); }

.next-article {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-weight: 600;
}

.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-top: 1rem;
}
.article-card {
  display: block; padding: 1rem 1.1rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fbfffc; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.article-card:hover {
  border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow);
  color: var(--brand-dark);
}
.article-card span {
  display: block; font-size: .8rem; color: var(--ink-muted); margin-bottom: .35rem;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
}
.article-card strong { font-size: 1.02rem; }

.section-kicker.inline-kicker { margin-bottom: .75rem; }
.steps-list { padding-left: 1.25rem; }
.steps-list > li { margin-bottom: 1rem; }
.map-outline {
  background: #f4faf6; border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem 1.15rem; overflow-x: auto; font-size: .92rem; line-height: 1.5;
  margin: 1rem 0 1.25rem; white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace;
}
.related-box {
  margin-top: 2rem; padding: 1.15rem 1.25rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--brand-light);
}
.related-box h3 { margin: 0 0 .65rem; font-size: 1.05rem; }
.related-box ul { margin: 0; }
.pillar-link { margin: .85rem 0 0; font-weight: 700; }
.pillar-link a { text-decoration: none; }
.pillar-link a:hover { text-decoration: underline; }

.skill-card {
  margin: 1.75rem 0 0; padding: 1.15rem 1.25rem;
  border: 2px solid var(--brand); border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfffc, #fff);
}
.skill-card .skill-kicker {
  display: inline-block; margin: 0 0 .4rem;
  font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--brand-light);
  padding: .2rem .5rem; border-radius: 6px;
}
.skill-card h3 { margin: 0 0 .45rem; font-size: 1.1rem; }
.skill-card p { margin: 0 0 .85rem; color: var(--ink-muted); }
.skill-card .cta-row { margin: 0; }

.note-callout {
  margin: 1.25rem 0; padding: .9rem 1.1rem;
  border-left: 4px solid var(--brand); border-radius: 0 8px 8px 0;
  background: var(--brand-light); color: var(--ink);
}
.note-callout strong { color: var(--brand-dark); }

.faq-list { margin: 1.25rem 0 1.75rem; }
.faq-item {
  margin: 0 0 1.1rem; padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
}
.faq-list dt {
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  margin: 0 0 .4rem; color: var(--brand-dark); line-height: 1.3;
}
.faq-list dd { margin: 0; color: var(--ink); }
.faq-list dd a { font-weight: 700; }

.example-prompt-title {
  display: block;
  margin: 1.5rem 0 .85rem;
  padding: .7rem 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #2b2b2b;
  background: #c6f36b;
  border: 1px solid #a8d84f;
  border-radius: 8px;
}
.prompt-block { margin: 0 0 1.25rem; }
.raw-prompt-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: .85rem 0 .5rem;
}
.btn-raw-prompt {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .4rem .75rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .02em; text-decoration: none;
  color: #fff; background: #111; border: 1px solid #111; border-radius: 6px;
}
.btn-raw-prompt:hover { background: #000; color: #fff; border-color: #000; }
.btn-copy-prompt {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .35rem .65rem; font: inherit; font-size: .78rem; font-weight: 700;
  color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 6px; cursor: pointer;
}
.btn-copy-prompt:hover { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }
.btn-copy-prompt:focus-visible { outline: 2px solid rgba(40,167,69,.45); outline-offset: 2px; }
.btn-copy-prompt svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-copy-prompt.is-copied {
  border-color: var(--brand-dark); background: var(--brand-light); color: var(--brand-dark);
}
.prompt-copy-status {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Contact form */
.contact-form { max-width: none; width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 700; font-size: .92rem; }
.form-group input, .form-group textarea {
  font: inherit; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.form-group input:focus, .form-group textarea:focus {
  outline: 2px solid rgba(40,167,69,.35); border-color: var(--brand);
}
.form-group .btn { align-self: flex-start; margin-top: .25rem; cursor: pointer; border: 0; }
.note { color: var(--ink-muted); font-size: .92rem; }
code { font-size: .9em; background: var(--brand-light); padding: .1em .35em; border-radius: 4px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #163221; color: #d7ebe0; padding: 2rem 0;
}
.footer-inner {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1.2fr 1fr 1fr;
}
.site-footer a { color: #b7e0c4; }
.site-footer h3 {
  margin: 0 0 .6rem; font-family: var(--font-display); color: #fff; font-size: 1.05rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .35rem; }
.copyright { margin: 0; font-size: .9rem; color: #9fbfad; }
.author-block { text-align: center; padding: 1.5rem 0 0; }
.author-block img {
  width: min(220px, 70%); margin: 0 auto .75rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); padding: .75rem 1rem 1rem;
    max-height: calc(100vh - 4.75rem); overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .submenu {
    position: static; box-shadow: none; border: 0; padding: .15rem 0 .15rem 1rem;
    display: none; background: transparent;
    max-height: min(55vh, 20rem); overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav-item.open > .submenu { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .pillar-grid--three { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .article-card:hover { transform: none; }
}
