/* Pronunciation guides (/guias/). Builds on styles.css tokens. */
.guide { padding-bottom: 48px; line-height: 1.6; }
.guide h1 { margin-top: 10px; }
.guide h2 { margin-top: 44px; margin-bottom: 10px; }
.guide p, .guide li { font-size: 17px; }
.guide a { color: var(--blue); font-weight: 700; }

.crumbs { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); font-weight: 700; text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 700; }

.guide .kicker { margin-top: 18px; }

.tldr {
  background: var(--blue-50);
  border-radius: var(--radius);
  padding: 16px 20px 6px;
  margin: 0 0 8px;
}
.tldr h2 { font-size: 18px; margin: 0 0 6px; }
.tldr ul { padding-left: 20px; margin: 0 0 10px; }
.tldr li { margin-bottom: 6px; font-size: 16px; }

/* Two sounds side by side */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 16px 0 14px; }
.duo > div { border-radius: var(--radius); padding: 16px 18px; }
.duo > div:nth-child(1) { background: var(--blue-50); }
.duo > div:nth-child(2) { background: var(--yellow-50); }
.duo h3 { font-size: 18px; margin-bottom: 4px; }
.duo p { font-size: 16px; margin: 0 0 6px; }
.duo .eg { font-weight: 800; }

/* Step-by-step: reuses .steps and .num from styles.css */
.guide .steps { margin-top: 18px; }
.guide .steps li:nth-child(3n + 1) .num { background: var(--blue); color: #ffffff; }
.guide .steps li:nth-child(3n + 2) .num { background: var(--yellow); color: var(--ink); }
.guide .steps li:nth-child(3n + 3) .num { background: var(--red); color: #ffffff; }
.guide .steps span:not(.num) { font-size: 16px; }

.tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--yellow-50);
  color: var(--ink);
}
.tip p { margin: 0; font-size: 16px; }
.tip strong { font-weight: 800; }

/* Minimal pairs */
.table-wrap { overflow-x: auto; margin: 16px 0 0; }
.pairs { width: 100%; border-collapse: collapse; font-size: 16px; }
.pairs caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
.pairs th {
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
}
.pairs td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pairs td:nth-child(1) { font-weight: 900; color: var(--blue-dark); }
.pairs td:nth-child(2) { font-weight: 800; color: var(--ink); }
.pairs td:nth-child(3) { color: var(--muted); font-size: 15px; }
.pairs tbody tr:nth-child(even) { background: var(--gray-50); }

/* Work sentences */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; font-size: 14px; }
.practice { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.practice li {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px 12px;
}
.practice .ctx { font-size: 13px; font-weight: 800; color: var(--blue-dark); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.practice .en { font-size: 20px; line-height: 1.4; font-weight: 800; margin: 0 0 6px; }
.practice .es { font-size: 15px; color: var(--muted); margin: 0; }

mark { color: inherit; border-radius: 6px; padding: 0 3px; }
mark.a { background: var(--blue-100); }
mark.b { background: #ffe58a; }
.legend mark { font-weight: 800; padding: 2px 8px; }

/* Common mistakes */
.mistakes { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.mistakes li { position: relative; padding: 0 0 0 36px; }
.mistakes li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red-dark);
  font-weight: 900;
  line-height: 1;
}
.mistakes strong { font-weight: 800; }

/* Call to action (the .cta box from styles.css) */
.guide .cta { margin-top: 44px; }
.guide .cta .as-button { color: #ffffff; text-decoration: none; margin-top: 16px; }
.guide .cta .fine { color: var(--ink); text-align: center; }

/* FAQ */
.faq { margin-top: 14px; display: grid; gap: 10px; }
.faq details { border: 2px solid var(--line); border-radius: 16px; padding: 0 18px; }
.faq details[open] { border-color: var(--blue-100); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  padding: 14px 28px 14px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 11px;
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
}
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.faq details p { font-size: 16px; margin: 0 0 14px; }

/* Guide cards (hub and "more guides") */
.cards { display: grid; gap: 14px; margin-top: 16px; }
.card {
  display: block;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink) !important;
  font-weight: 400 !important;
}
.card:hover { border-color: var(--blue); }
.card h3 { color: var(--blue-dark); margin-bottom: 4px; }
.card p { margin: 0; font-size: 16px; color: var(--muted); }
.card .eg { display: block; margin-top: 8px; font-size: 14px; font-weight: 800; color: var(--ink); }

.guide .foot-note { margin-top: 36px; font-size: 14px; color: var(--muted); }
