/* Thai Phrases — per-phrase pages. Root styles.css carries the identity;
   this file only adds phrase-page layout. */
.breadcrumb { font-size: 0.9rem; color: var(--ink-soft); margin: 1rem 0 0; }
.breadcrumb a { color: var(--ink-soft); }
.phrase-hero { text-align: center; padding: 1.5rem 0 0.5rem; }
.phrase-hero h1 { font-size: 1.7rem; line-height: 1.3; margin-bottom: 0.4rem; }
.phrase-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 1.2rem; text-align: center; margin: 1rem auto; max-width: 560px;
}
.phrase-th { font-size: 2.6rem; line-height: 1.35; margin: 0; }
.phrase-roman { font-size: 1.25rem; color: var(--teal); font-weight: 600; margin: 0.4rem 0 0; }
.phrase-en { font-size: 1.05rem; color: var(--ink-soft); margin: 0.3rem 0 1rem; }
.phrase-note {
  max-width: 560px; margin: 0 auto 1rem; background: #fbf7ee;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem;
}
.phrase-note h2 { font-size: 1rem; margin: 0 0 0.3rem; }
.phrase-note p { margin: 0; color: var(--ink-soft); }
.scenario-context, .practise { max-width: 560px; margin: 0 auto 1rem; text-align: center; }
.scenario-context p, .practise p { color: var(--ink-soft); }
.prev-next {
  display: flex; justify-content: space-between; gap: 1rem;
  max-width: 560px; margin: 1.2rem auto 2rem;
}
.prev-next a { color: var(--accent-dark); font-weight: 600; }
.prev-next .pn-next { margin-left: auto; text-align: right; }
.hub-group { margin-bottom: 2rem; }
.hub-group h2 { margin-bottom: 0.3rem; }
.hub-list { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.hub-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 0.5rem; padding: 0.7rem 1rem;
}
.hub-list a { font-weight: 600; color: var(--ink); text-decoration: none; }
.hub-list a:hover, .hub-list a:focus { color: var(--accent-dark); text-decoration: underline; }
.hub-th { color: var(--ink); }
.hub-roman { color: var(--teal); }
.phrase-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.show-local-overlay {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.2rem;
}
.show-local-th { font-size: clamp(3rem, 13vw, 7.5rem); font-weight: 800; line-height: 1.3; margin: 0; }
.show-local-roman { font-size: clamp(1.3rem, 5vw, 2.2rem); color: var(--teal); font-weight: 600; margin: 1rem 0 0; }
.show-local-close {
  position: absolute; top: 1rem; right: 1rem;
  min-width: 52px; min-height: 52px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 1.3rem; cursor: pointer;
}

/* Print: the hub (phrases/index.html) becomes a clean cheat sheet —
   no nav or buttons, one compact two-column list. */
@media print {
  .site-header, .site-footer, .breadcrumb, .section-intro { display: none !important; }
  body { font-size: 11pt; }
  main { max-width: none; padding: 0; }
  .phrase-hero { padding: 0 0 0.5rem; text-align: left; }
  .hub-group { margin-bottom: 1rem; break-inside: avoid; }
  .hub-list { columns: 2; column-gap: 2rem; margin-top: 0.2rem; }
  .hub-list li {
    background: none; border: none; border-bottom: 1px solid #bbb; border-radius: 0;
    margin: 0; padding: 0.22rem 0; break-inside: avoid;
  }
}
