/* ==========================================================================
   Dojo page — the shared look of the Aikido section (2026-11-05).
   Same values as Tu primera clase (primera-clase.css, .pc-*), generalised as
   .dp-*. Roberto: "elegant, simplistic, minimal … with enough flair, we are
   in Latin America" — not a blog. Pages: osensei, kobayashi, budo_education,
   aikidoseniors, aikidowomen, aikidokids. Implementers USE these classes; new
   components are added here by the orchestrator only (one writer).
   ========================================================================== */
.dp-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.dp-intro { margin-bottom: 2rem; }
.dp-intro .lede { text-align: center; }

/* Section headings: the indoor voice — Open Sans, short red rule above */
.dp-h2 {
  font-size: clamp(1.2rem, 1vw + 0.9rem, 1.45rem);
  font-weight: 600;
  color: var(--charcoal-deep, #23303c);
  margin: 0 0 1rem;
}
.dp-h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-red, #ed5565);
  margin-bottom: 0.7rem;
}
.dp-h2-term {
  font-weight: 400;
  font-style: italic;
  color: #68737e;
}

/* Antes de venir + Qué llevar: two quiet cards */
.dp-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}
@media (max-width: 767.98px) {
  .dp-pair { grid-template-columns: 1fr; }
}
.dp-card {
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: var(--radius-card, 14px);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 1px 4px rgba(130, 143, 163, 0.15);
}
.dp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dp-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.dp-list li + li { border-top: 1px solid #f0f2f5; }
.dp-ico {
  flex: 0 0 1.1rem;
  margin-top: 0.22rem;
  text-align: center;
  color: var(--brand-red, #ed5565);
}
.dp-note {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: #68737e;
}

/* Generic section rhythm */
.dp-section { margin-bottom: 2.75rem; }
.dp-section-lede {
  max-width: 65ch;
  font-size: 0.98rem;
  color: #4d5862;
  line-height: 1.7;
}

/* Etiquette photo */
.dp-figure { margin: 1.25rem 0 1.5rem; }
.dp-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: 12px;
  box-shadow: var(--shadow-soft, 0 10px 28px rgba(35, 48, 60, 0.14));
}
@media (max-width: 575.98px) {
  .dp-figure img { aspect-ratio: 4 / 3; object-position: 30% 60%; }
}
.dp-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #68737e;
  text-align: center;
}

/* Etiquette terms: term on the left, plain explanation on the right */
.dp-terms { margin: 0; }
.dp-term {
  display: grid;
  grid-template-columns: minmax(180px, 15rem) 1fr;
  gap: 0.35rem 1.5rem;
  padding: 0.95rem 0;
  border-top: 1px solid #e7eaee;
}
.dp-term:last-child { border-bottom: 1px solid #e7eaee; }
@media (max-width: 575.98px) {
  .dp-term { grid-template-columns: 1fr; }
}
.dp-term dt {
  margin: 0;
  font-weight: 600;
  color: var(--charcoal-deep, #23303c);
}
.dp-term dt { font-size: 0.98rem; }
.dp-term dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3f4a54;
}
.dp-romaji { overflow-wrap: anywhere; }
.dp-kanji {
  margin-left: 0.35rem;
  font-weight: 400;
  color: var(--brand-red, #ed5565);
}
.dp-more {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: #68737e;
}

/* Cómo es una clase: a real sequence, so a numbered list.
   Desktop: five steps across; phones: a vertical list. */
.dp-steps {
  list-style: none;
  counter-reset: pc-step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 0;
  margin: 0;
}
@media (max-width: 991.98px) {
  .dp-steps { grid-template-columns: 1fr; gap: 0; }
}
.dp-steps li {
  counter-increment: pc-step;
  position: relative;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: var(--radius-card, 14px);
  padding: 1.1rem 1rem 1rem;
}
.dp-steps li::before {
  content: counter(pc-step);
  display: block;
  font-family: "Anton", "Arial Narrow", Impact, sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--brand-red, #ed5565);
  margin-bottom: 0.5rem;
}
.dp-steps strong {
  display: block;
  color: var(--charcoal-deep, #23303c);
  margin-bottom: 0.3rem;
}
.dp-steps span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4d5862;
}
@media (max-width: 991.98px) {
  .dp-steps li {
    border: 0;
    border-radius: 0;
    background: transparent;
    border-top: 1px solid #e7eaee;
    padding: 0.9rem 0 0.9rem 3rem;
  }
  .dp-steps li:last-child { border-bottom: 1px solid #e7eaee; }
  .dp-steps li::before {
    position: absolute;
    left: 0.4rem;
    top: 0.85rem;
    margin: 0;
  }
}

/* Para padres: one soft block */
.dp-parents {
  background: #f5f6f8;
  border-radius: var(--radius-card, 14px);
  padding: 1.5rem 1.5rem 1.1rem;
}
.dp-parents p {
  max-width: 65ch;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #3f4a54;
}

/* Closing band: let the two buttons wrap cleanly on phones */
.aikido-cta-band .btn { margin: 0.25rem 0.35rem; }
.aikido-cta-band .btn .fa { margin-right: 0.3rem; }

/* ---- Interview Q&A (Mujeres, Adultos Mayores, testimonies) ------------- */
.dp-qa { display: grid; gap: 1.4rem; margin: 0 0 2rem; }
.dp-q {
  font-weight: 700; color: var(--charcoal-deep, #23303c);
  font-size: 1.05rem; line-height: 1.45; margin: 0 0 0.5rem;
}
.dp-a {
  margin: 0; padding: 0 0 0 1.1rem;
  border-left: 2px solid var(--brand-red, #ed5565);
  color: #3a4652; font-size: 1.02rem; line-height: 1.75;
}
.dp-a p { margin: 0 0 0.7rem; }
.dp-a p:last-child { margin-bottom: 0; }
.dp-voice { margin: 0 0 1.5rem; color: #5d6b78; font-size: 0.95rem; }
.dp-voice strong { color: var(--charcoal-deep, #23303c); }

/* ---- Facts strip (dates, places — only facts already in the text) ------ */
.dp-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem; margin: 0 0 2rem; padding: 0; list-style: none;
}
.dp-facts li {
  background: #fff; border: 1px solid #e7eaee; border-radius: var(--radius-card, 14px);
  padding: 0.85rem 1rem; text-align: center;
}
.dp-facts .dp-fact-value { display: block; font-size: 1.15rem; font-weight: 700; color: var(--charcoal-deep, #23303c); }
.dp-facts .dp-fact-label { display: block; font-size: 0.8rem; color: #68737e; }

/* ---- Portrait beside the text (O'Sensei, Kobayashi Shihan) ------------- */
.dp-portrait {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.75rem; align-items: start; margin: 0 0 2rem;
}
.dp-portrait figure { margin: 0; }
.dp-portrait img {
  width: 100%; height: auto; border-radius: var(--radius-card, 14px);
  box-shadow: var(--shadow-soft, 0 10px 28px rgba(35, 48, 60, 0.14));
}
.dp-portrait figcaption { margin-top: 0.5rem; font-size: 0.82rem; color: #68737e; text-align: center; }
@media (max-width: 767.98px) {
  .dp-portrait { grid-template-columns: 1fr; }
  .dp-portrait figure { max-width: 16rem; margin: 0 auto; }
}

/* ---- Tags row (keeps the old tag chips, quieter) ----------------------- */
.dp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin: -0.5rem 0 1.5rem; }
.dp-tags span {
  font-size: 0.75rem; padding: 0.1rem 0.6rem; border-radius: var(--radius-pill, 999px);
  border: 1px solid #d5dae0; color: #5d6b78; background: #fff;
}

/* ---- Reading width for interviews and in-section lists (B's request) --- */
.dp-qa, .dp-voice { max-width: 65ch; margin-left: auto; margin-right: auto; }
.dp-section > .dp-list { max-width: 65ch; margin-bottom: 1rem; }
/* Neutral soft note block (same look as .dp-parents, honest name) */
.dp-note-block { background: #fff; border: 1px solid #e7eaee; border-left: 3px solid var(--brand-red, #ed5565);
  border-radius: var(--radius-card, 14px); padding: 1.1rem 1.3rem; margin: 0 0 2rem; }

/* ---- One centred reading column (Roberto 2026-11-05: Niños and Adultos
   Mayores read left-justified while the rest looked centred; the 65ch text
   sat at the left of the 920px wrap, leaving an empty band "as if waiting
   for an image"). Every text element shares the same centred measure;
   only wide components (facts, portrait, pairs, terms) use the full wrap. */
.dp-wrap { --dp-measure: 38rem; } /* rem, not ch: ch grows with font size, so h2s overflowed the column */
.dp-wrap .dp-section > .dp-h2,
.dp-wrap .dp-section > p,
.dp-wrap .dp-section-lede,
.dp-wrap .dp-section > .dp-list,
.dp-wrap .dp-section > .dp-qa,
.dp-wrap .dp-qa,
.dp-wrap .dp-voice,
.dp-wrap .dp-parents,
.dp-wrap .dp-note-block,
.dp-wrap > .lede,
.dp-wrap .dp-intro {
  max-width: var(--dp-measure);
  margin-left: auto;
  margin-right: auto;
}
.dp-wrap .dp-qa .dp-section-lede, .dp-wrap .dp-qa .dp-voice { max-width: none; }
/* boxed notes get the measure plus their own padding */
.dp-wrap .dp-parents, .dp-wrap .dp-note-block { max-width: calc(var(--dp-measure) + 2.6rem); }
/* Wide-looking blocks join the same column, so every heading lines up with
   what follows it: term lists stack (term above its text), quotes and paired
   cards sit inside the measure. */
.dp-wrap .dp-section > .dp-terms,
.dp-wrap .dp-section > .dp-pair,
.dp-wrap .aikido-quote {
  max-width: var(--dp-measure);
  margin-left: auto;
  margin-right: auto;
}
.dp-wrap .dp-term { grid-template-columns: 1fr; }

/* ==== Nosotros pages (2026-11-05) ======================================= */
.dp-wrap > .lede {
  font-size: 1.15rem; line-height: 1.6; text-align: center;
  color: var(--charcoal-deep, #23303c); margin: 0.5rem auto 1rem;
}
.dp-wrap > p.dp-intro { text-align: center; color: #3f4a54; font-size: 1rem; line-height: 1.65; }

/* Lineage: a real sequence, so one thread joins the five teachers */
.dp-lineage {
  list-style: none; margin: 1.25rem auto 2rem; padding: 0;
  max-width: var(--dp-measure); position: relative;
}
.dp-lineage::before {
  content: ""; position: absolute; left: 2.25rem; top: 2.25rem; bottom: 2.25rem;
  width: 2px; background: linear-gradient(var(--brand-red, #ed5565), #e7eaee);
}
.dp-lineage-step {
  position: relative; display: grid; grid-template-columns: 4.5rem 1fr;
  gap: 1.1rem; align-items: center; padding: 0.7rem 0;
}
.dp-lineage-step img {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; object-position: 50% 20%;
  border: 3px solid #fff; box-shadow: 0 2px 10px rgba(35, 48, 60, 0.18); background: #fff;
}
.dp-lineage-step h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 0.2rem; }
.dp-lineage-step h3 a { color: var(--charcoal-deep, #23303c); text-decoration: none; }
.dp-lineage-step h3 a:hover, .dp-lineage-step h3 a:focus-visible { color: #c93a49; text-decoration: underline; }
.dp-lineage-step p { margin: 0; font-size: 0.93rem; line-height: 1.5; color: #5b6670; }
.dp-lineage-step:last-child img { border-color: var(--brand-red, #ed5565); }

/* Photos: quiet row, no slider */
.dp-photo-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin: 0 0 1rem;
}
.dp-photo-row img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block;
}
@media (max-width: 767.98px) { .dp-photo-row { grid-template-columns: repeat(2, 1fr); } }

/* Plain list: a short red rule instead of an icon */
.dp-list-plain li { display: block; position: relative; padding-left: 1.4rem; }
.dp-list-plain li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.7rem; height: 2px;
  background: var(--brand-red, #ed5565);
}

.aikido-cta-band > p {
  max-width: 34rem; margin: -0.4rem auto 1.2rem; color: rgba(255, 255, 255, 0.82); line-height: 1.6;
}

/* Emblem beside the text: smaller than a portrait, no frame */
.dp-portrait-emblem { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); align-items: start; }
.dp-portrait-emblem figure { padding-top: 3.2rem; }
.dp-portrait-emblem img { box-shadow: none; border-radius: 50%; }
@media (max-width: 767.98px) {
  .dp-portrait-emblem { grid-template-columns: 1fr; }
  .dp-portrait-emblem figure { max-width: 9rem; padding-top: 0; }
}

/* Quiet note: kept in full, set apart without alarm colours */
.dp-note-quiet {
  max-width: calc(var(--dp-measure) + 2.6rem); margin: 0.5rem auto 2.5rem;
  padding: 1.25rem 1.3rem 0.4rem; border-left: 3px solid #c9d0d7;
  background: #f6f7f9; border-radius: 0 10px 10px 0;
}
.dp-note-quiet h2 {
  font-size: 1rem; font-weight: 600; margin: 0 0 0.8rem; color: var(--charcoal-deep, #23303c);
}
.dp-note-quiet p { font-size: 0.9rem; line-height: 1.65; color: #4d5862; }
.dp-note-quiet .text-danger { color: inherit !important; font-weight: 600; }

/* Aikido en mí: one voice after another, in the reading column */
.dp-wrap .dp-voices { max-width: var(--dp-measure); margin: 0 auto; }
.dp-voice-card {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1.1rem;
  margin: 0; padding: 1.6rem 0; border-top: 1px solid #e7eaee;
}
.dp-voice-card:first-child { border-top: 0; padding-top: 0.5rem; }
.dp-voice-card img {
  grid-row: span 2; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  object-fit: cover; box-shadow: 0 1px 6px rgba(35, 48, 60, 0.16);
}
.dp-voice-card blockquote { margin: 0; }
.dp-voice-card blockquote p {
  font-size: 0.98rem; line-height: 1.7; color: #3f4a54; margin: 0 0 0.75rem;
}
.dp-voice-card blockquote p:first-child::before {
  content: "\201C"; color: var(--brand-red, #ed5565); font-weight: 700; margin-right: 0.1rem;
}
.dp-voice-card figcaption { font-size: 0.88rem; line-height: 1.5; color: #5b6670; }
.dp-voice-card figcaption strong { color: var(--charcoal-deep, #23303c); font-weight: 600; }
.dp-voice-role::before { content: " · "; content: " · " / ""; }
.dp-voice-since { display: block; font-size: 0.8rem; color: #8a949e; }
.aikido-quote.dp-quote-member footer {
  font-size: 0.85rem; color: #c93a49; letter-spacing: 0.02em; margin-top: 0.6rem;
}

/* ==== Instructores (2026-11-05) ========================================= */
.ins-wrap { max-width: 1080px; }
.ins-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1.1rem; margin: 0.5rem 0 2.5rem; align-items: stretch;
}
.ins-card {
  background: #fff; border: 1px solid #e7eaee; border-radius: var(--radius-card, 14px);
  overflow: hidden; box-shadow: 0 1px 4px rgba(130, 143, 163, 0.15);
}
.ins-photo {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  background: #eef0f3;
}
.ins-body { padding: 1rem 1.1rem 1.15rem; }
.ins-place { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.5rem; font-size: 0.8rem; color: #68737e; }
.ins-place img { width: 20px; height: 20px; object-fit: contain; }
.ins-card h3 { font-size: 1.08rem; font-weight: 600; margin: 0; color: var(--charcoal-deep, #23303c); }
.ins-role { margin: 0.15rem 0 0; font-size: 0.88rem; color: #3f4a54; }
.ins-rank { margin: 0.1rem 0 0.8rem; font-size: 0.82rem; font-weight: 600; color: #c93a49; }
.ins-quote {
  margin: 0; padding: 0 0 0 0.75rem; border-left: 2px solid #e7eaee;
  font-size: 0.88rem; line-height: 1.6; color: #4d5862; font-style: italic;
}
.ins-quote p { margin: 0 0 0.6rem; }
.ins-quote p:last-child { margin-bottom: 0; }
.ins-quote.is-folded { max-height: calc(1.6em * 5); overflow: hidden; position: relative; }
.ins-quote.is-folded::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.8em;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}
.ins-more {
  margin: 0.4rem 0 0 0.75rem; padding: 0; border: 0; background: none;
  font-size: 0.82rem; font-weight: 600; color: #c93a49; cursor: pointer;
}
.ins-more:hover { text-decoration: underline; }
.ins-link {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.9rem;
  font-size: 0.85rem; font-weight: 600; color: #c93a49; text-decoration: none;
  border: 1px solid #ed5565; border-radius: var(--radius-pill, 999px); padding: 0.3rem 0.85rem;
}
.ins-link:hover, .ins-link:focus-visible { background: #ed5565; color: #fff; }
.ins-wrap .dp-section { max-width: none; }

/* Nuestros maestros: the three senior teachers, larger cards */
.ins-grid-masters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.ins-grid-masters .ins-photo { aspect-ratio: 1 / 1; object-position: 50% 25%; }
.ins-grid-masters .ins-body { text-align: center; padding: 1.15rem 1.2rem 1.4rem; }
.ins-grid-masters h3 { font-size: 1.25rem; }
@media (max-width: 767.98px) {
  .ins-grid-masters { grid-template-columns: 1fr; max-width: 22rem; margin-left: auto; margin-right: auto; }
}
.mae-lineage { text-align: center; margin: -1rem 0 2.5rem; font-size: 0.95rem; }
.mae-lineage a { color: #c93a49; font-weight: 600; }

/* ==== Teacher profiles: Yabuuchi, Yamashita, Vega (2026-11-05) ========= */
.pf-quote {
  margin: 0 0 1.75rem; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid var(--brand-red, #ed5565);
}
.pf-quote p { font-size: 1.08rem; line-height: 1.65; font-style: italic; color: var(--charcoal-deep, #23303c); margin: 0; }
.pf-timeline { list-style: none; margin: 0.5rem auto 0; padding: 0; max-width: var(--dp-measure); }
.pf-timeline > li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: start;
  padding: 0.85rem 0; border-top: 1px solid #e7eaee;
}
.pf-timeline > li:first-child { border-top: 0; }
.pf-sub { margin: 0; padding-left: 1.1rem; }
.pf-sub li { font-size: 0.98rem; line-height: 1.65; color: #3f4a54; margin-bottom: 0.35rem; }
.pf-year {
  font-weight: 700; color: #c93a49; font-size: 0.95rem; line-height: 1.6; overflow-wrap: anywhere;
}
.pf-event p { margin: 0 0 0.5rem; font-size: 0.98rem; line-height: 1.65; color: #3f4a54; }
.pf-event p:last-child { margin-bottom: 0; }
.pf-event .fa { color: #c93a49; margin-right: 0.25rem; }
.pf-link { margin-top: 1rem; }
@media (max-width: 575.98px) { .pf-timeline > li { grid-template-columns: 1fr; gap: 0.2rem; } }
