/* ── Grammar pages ──────────────────────────────────────────────────────── */

.grammar-section { margin-bottom: 2.5rem; }

.grammar-section__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

/* Conjugation tables */

.conj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* When conj-grid is used inside how-it-works__steps, reset its padding/border */

.how-it-works__steps.conj-grid {
  border-top: none;
  padding: 1.25rem 1.5rem 1.5rem;
}

/* Single-column prose layout for grammar sections */

.how-it-works__steps--block {
  display: block;
  padding: 1.25rem 1.5rem 1.5rem;
}

.how-it-works__steps--block .how-it-works__intro {
  margin: 0 0 0.75rem;
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text);
}

@media (max-width: 700px) {
  .conj-grid { grid-template-columns: 1fr; }
}

.conj-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.conj-card__head {
  background: var(--navy-dark);
  color: var(--white);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.conj-card__verb  { font-family: var(--font-head); font-size: 1.05rem; }

.conj-card__gloss { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

.conj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.conj-table tr { border-bottom: 1px solid var(--border); }

.conj-table tr:last-child { border-bottom: none; }

.conj-table td { padding: 0.45rem 1rem; }

.conj-table td:first-child { color: var(--muted); width: 38%; }

.conj-table td:last-child  { font-family: var(--font-head); color: var(--navy-dark); font-weight: 600; }

.conj-note {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--light);
  font-style: italic;
  line-height: 1.5;
}

/* Compact verb card — present table + past/future footer */

.conj-card--compact .conj-card__head { background: var(--navy); }

.conj-extra {
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.conj-extra tr { border-bottom: 1px solid var(--border); }

.conj-extra tr:last-child { border-bottom: none; }

.conj-extra td { padding: 0.4rem 1rem; }

.conj-extra td:first-child { color: var(--muted); width: 38%; font-style: italic; }

.conj-extra td:last-child  { font-family: var(--font-head); color: var(--navy-dark); font-weight: 600; }

/* ── Public overview pages — culture-overview & grammar-intro ──────────── */

.pub-overview { max-width: 860px; margin: 0 auto; }

.pub-overview__hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 60%;
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
  display: block;
}

.pub-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-dim);
  margin-bottom: 0.4rem;
}

.pub-overview__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--navy-dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.pub-overview__answer {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 680px;
}

.pub-overview__lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 680px;
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.pub-section { margin-bottom: 2.75rem; }

.pub-section__title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--navy-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

.pub-section__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.pub-section__body--full { display: block; }

.pub-section__text { font-size: 0.95rem; color: var(--dark); line-height: 1.75; }

.pub-section__text p { margin: 0 0 0.75rem; }

.pub-section__text p:last-child { margin-bottom: 0; }

.pub-section__text ul { padding-left: 1.25rem; margin: 0 0 0.75rem; }

.pub-section__text li { margin-bottom: 0.35rem; }

.pub-section__text em { font-style: italic; color: var(--navy-dark); }

/* ── Photos ─────────────────────────────────────────────────────────────── */

.pub-photos { display: flex; flex-direction: column; gap: 0.75rem; }

.pub-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  height: 180px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.pub-photo--tall { height: 260px; }

/* ── Flags row ──────────────────────────────────────────────────────────── */

.pub-flags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

.pub-flag {
  height: 32px;
  width: auto;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ── Grammar example sentences ──────────────────────────────────────────── */

.pub-examples {
  background: var(--light);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.25rem;
  margin: 0.75rem 0;
}

.pub-examples li {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
  list-style: none;
  padding: 0;
}

.pub-examples li:last-child { margin-bottom: 0; }

.pub-examples .ltz { font-weight: 700; color: var(--navy-dark); }

.pub-examples .en  { color: var(--muted); font-size: 0.85rem; }

/* 2-column conj-grid override for paired verb cards */

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

/* ── In-article ad unit ─────────────────────────────────────────────────── */

.ad-unit { margin: 2.5rem 0; text-align: center; }

/* ── CTA block ──────────────────────────────────────────────────────────── */

.pub-cta {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.pub-cta__title { font-family: var(--font-head); font-size: 1.75rem; margin-bottom: 0.75rem; }

.pub-cta__body  { color: rgba(255,255,255,0.75); margin-bottom: 1.75rem; font-size: 1rem; line-height: 1.6; }

.pub-cta__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }

.pub-cta__note  { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.pub-cta .btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }

.pub-cta .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .pub-overview__hero-img { height: 180px; }
  .pub-section__body { grid-template-columns: 1fr; }
  .pub-photos { flex-direction: row; }
  .pub-photo  { height: 120px; }
  .pub-photo--tall { height: 180px; }
  .pub-cta { padding: 2rem 1.25rem; }
  .pub-cta__actions { flex-direction: column; align-items: center; }
  .pub-cta__actions .btn { width: 100%; justify-content: center; }
  .conj-grid--two { grid-template-columns: 1fr; }
}

/* ── Definition / callout box ───────────────────────────────────────────── */

.definition-box {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 2rem;
}

.definition-box__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.definition-box__text {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.75;
  margin: 0;
}

/* ── Intro H2 below the definition box ──────────────────────────────────── */

.pub-overview__grammar-h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--navy-dark);
  margin: 0 0 0.6rem;
}

/* ── Comparison table (du / Dir etc.) ───────────────────────────────────── */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0 0.5rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
  line-height: 1.5;
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--navy-dark);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) { background: var(--light); }

.comparison-table__ltz {
  font-weight: 700;
  color: var(--navy-dark);
  font-family: var(--font-head);
}

@media (max-width: 600px) {
  .comparison-table th,
  .comparison-table td { padding: 0.4rem 0.6rem; font-size: 0.82rem; }
}
