/* Letter pages, first screen (2026-11-06): printed, handwritten and Cyrillic capital and small letter side by side,
   with the worksheet link beside the listen button. Linked only on the 30 /slovo/ pages by ops/letter-forms.py. */
.abc-letter-first{align-items:start}
.abc-letter-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0 0}
.abc-letter-actions .button{min-height:48px}
.abc-glyphs-box{min-width:0;max-width:100%}
.abc-glyphs{border-collapse:separate;border-spacing:8px;margin:0;background:#fff;border:3px solid var(--sv-ink);border-top:10px solid var(--c);border-radius:16px;box-shadow:6px 6px 0 var(--sv-ink)}
.abc-glyphs caption{caption-side:top;text-align:left;font-weight:700;font-size:16px;line-height:1.4;color:var(--sv-ink);padding:0 0 8px}
.abc-glyphs thead th{font-size:15px;font-weight:700;color:var(--sv-soft);text-align:center;padding:0 4px;line-height:1.3}
.abc-glyphs thead td{padding:0;border:0;background:none}
.abc-glyphs tbody th{font-size:16px;font-weight:700;color:var(--sv-ink);text-align:left;padding:0 6px 0 4px;white-space:nowrap}
/* The cell keeps its height while the handwriting font loads after the first paint, so nothing below it moves. */
main .abc-glyphs tbody td{width:96px;height:80px;padding:0 6px;text-align:center;vertical-align:middle;background:#f5f8fd;border:1px solid var(--sv-grid);border-radius:10px;color:var(--sv-ink);font:800 56px/80px var(--abc-letter)!important;white-space:nowrap;overflow:hidden}
main .abc-glyphs tbody td.cursive{font-family:"Playwrite HR",cursive!important;font-weight:400!important;font-size:40px!important}
main .abc-glyphs.two td{font-size:44px!important}
main .abc-glyphs.two td.cursive{font-size:30px!important}
.abc-glyphs-note{margin:12px 0 0;font-size:16px;line-height:1.5;color:var(--sv-soft);max-width:22rem}
#radni-list{scroll-margin-top:96px}
/* Phones: the forms come right after the heading and the two buttons follow, so a searcher sees the letters first. */
@media(max-width:760px){
 .abc-letter-head.abc-letter-first{display:flex;flex-direction:column;align-items:flex-start;gap:0}
 .abc-letter-first>div:first-child{display:contents}
 .abc-letter-first .eyebrow{order:1}.abc-letter-first h1{order:2}.abc-letter-first .abc-glyphs-box{order:3;margin-top:4px}
 .abc-letter-first .abc-letter-actions{order:4}.abc-letter-first .lead{order:5;margin:16px 0 0}
 .abc-glyphs{border-spacing:6px}
 main .abc-glyphs tbody td{width:84px;height:64px;font-size:46px!important;line-height:64px!important}
 main .abc-glyphs tbody td.cursive{font-size:34px!important}
 main .abc-glyphs.two td{font-size:38px!important}
 main .abc-glyphs.two td.cursive{font-size:26px!important}
}
@media(max-width:360px){
 .abc-glyphs{border-spacing:4px}
 .abc-glyphs tbody th{font-size:15px;padding:0 2px}
 main .abc-glyphs tbody td{width:72px;height:60px;font-size:42px!important;line-height:60px!important}
 main .abc-glyphs tbody td.cursive{font-size:30px!important}
 main .abc-glyphs.two td{font-size:32px!important}
 main .abc-glyphs.two td.cursive{font-size:22px!important}
}
