/* Parent guides (guides/*.html) */
.article { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.article h2 { margin-top: 1.6em; font-size: clamp(1.35rem, 3vw, 1.7rem); }
.article h3 { margin-top: 1.2em; }
.article p, .article li { line-height: 1.65; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.byline { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.lead { font-size: 1.2rem; }
.callout { background: #fff1dd; border-left: 6px solid var(--primary); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
.callout.green { background: #eaf6ef; border-left-color: var(--green); }
.article table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; background: var(--surface); border-radius: 14px; overflow: hidden; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line); vertical-align: top; }
.article th { background: #fff4e3; }
.article .ml { font-weight: 700; }
.big-ml { font-size: 1.5em; }

.say-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 12px 0 22px; }
.say-card {
  font: inherit; color: inherit; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center;
  background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow);
}
.say-card:hover { border-color: var(--primary); }
.say-card .emoji { font-size: 2rem; grid-row: span 2; }
.say-card .ml { font-size: 1.25rem; color: var(--primary); line-height: 1.2; overflow-wrap: break-word; }
.say-card .en { grid-column: 2; font-size: .92rem; color: var(--muted); line-height: 1.3; }
.say-card .tr { font-style: italic; }
.say-card .spk { grid-row: span 2; grid-column: 3; grid-row-start: 1; font-size: 1.2rem; }

.guide-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 14px 0; }
.guide-cards a { text-decoration: none; color: var(--ink); display: block; }
.guide-cards .icon { font-size: 2.4rem; }
.guide-cards h3 { margin: 6px 0; color: var(--primary); font-size: 1.15rem; }
.guide-cards p { margin: 0; color: var(--muted); font-size: .98rem; }
.guide-cards a:hover .card { border-color: var(--primary); }

/* Alphabet pages (alphabet/*.html) */
.say { font: inherit; color: inherit; cursor: pointer; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 2px 10px; }
.say:hover { border-color: var(--primary); }
.say.letter { font-size: 2.2rem; font-weight: 700; color: var(--primary); min-width: 64px; line-height: 1.25; }
.say.word { font-size: 1.15rem; font-weight: 700; }
.letter-table td { vertical-align: middle; }
.letter-table .hint { color: var(--muted); font-size: .95rem; }
.letter-table .tr { font-weight: 700; }
.letter-table .practise a { display: inline-block; margin: 2px 6px 2px 0; white-space: nowrap; }
.chart-group { margin: 18px 0 26px; }
.chart-group h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.chart-group h2 a { font-size: 1rem; font-weight: 700; }
.chart { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.chart .say { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 16px; box-shadow: var(--shadow); }
.chart .say .ml { font-size: 2rem; color: var(--primary); line-height: 1.2; }
.chart .say small { color: var(--muted); }
.group-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
@media (max-width: 640px) {
  .letter-table th:nth-child(4), .letter-table td:nth-child(4) { display: none; }
  .say.letter { font-size: 1.8rem; min-width: 52px; }
}
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .chart .say { box-shadow: none; }
}

/* Numbers guide */
.num-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 10px 0 20px; }
.num-card { font: inherit; color: inherit; cursor: pointer; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center;
  background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.num-card:hover { border-color: var(--primary); }
.num-card b { grid-row: span 2; font-size: 1.5rem; color: var(--purple); min-width: 2ch; text-align: right; }
.num-card .ml { color: var(--primary); font-size: 1.05rem; line-height: 1.25; overflow-wrap: break-word; }
.num-card small { color: var(--muted); font-size: .8rem; }
.say-inline { font: inherit; color: var(--primary); cursor: pointer; background: none; border: 0; padding: 0; font-size: 1.2rem; }
