/* Peitho uses a 1280x720 logical canvas; original tool uses 1920x1080. */
.peitho-slide { width:var(--peitho-canvas-width,1280px); height:var(--peitho-canvas-height,720px); }
.talking { box-sizing:border-box; position:relative; overflow:hidden; background:white; color:#000; font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",Meiryo,sans-serif; line-height:1.4; padding:73.333px 106.667px 53.333px; word-break:keep-all; word-break:auto-phrase; overflow-wrap:anywhere; text-wrap:balance; }
.talking * { box-sizing:border-box; }
.talking p { margin:0; }
.talking h1 { margin:0; font-size:56px; font-weight:700; line-height:1.4; }
.talking code { background:#fff176; color:inherit; font:inherit; padding:0 .05em; border-radius:0; }
.talking strong { font-weight:800; }
.title-content { position:absolute; top:50%; left:106.667px; right:106.667px; transform:translateY(-50%); }
.title h1 { font-size:74.667px; }
.subtitle { font-size:37.333px; margin-top:29.333px; }
.presenter { position:absolute; bottom:64px; left:106.667px; right:106.667px; font-size:26.667px; }
.statement { display:flex; align-items:center; justify-content:center; text-align:center; }
.statement-text { font-size:56px; font-weight:700; line-height:1.5; }
.items { display:flex; flex-direction:column; gap:34.667px; margin-top:48px; }
.point { font-size:37.333px; font-weight:700; padding-left:1em; position:relative; }
.point::before { content:"・"; position:absolute; left:0; }
.detail { font-size:24px; margin:10px 0 0 37.333px; }
.image { position:absolute; top:192px; bottom:106.667px; left:106.667px; right:106.667px; display:flex; align-items:center; justify-content:center; }
.image .slot-image { width:100%; height:100%; }
.image img { width:100%; height:100%; object-fit:contain; display:block; }
.caption { position:absolute; bottom:53.333px; left:106.667px; right:106.667px; font-size:24px; text-align:center; }
.talking[data-empty-slots~="subtitle"] .subtitle,
.talking[data-empty-slots~="presenter"] .presenter,
.talking[data-empty-slots~="point2"] .item2,
.talking[data-empty-slots~="point3"] .item3,
.talking[data-empty-slots~="detail1"] .item1 .detail,
.talking[data-empty-slots~="detail2"] .item2 .detail,
.talking[data-empty-slots~="detail3"] .item3 .detail,
.talking[data-empty-slots~="caption"] .caption { display:none; }

/* yapc2026tokyo: code layout (talking slides extension). Keep code to 9 lines x 60 columns. */
.code-block { margin-top:40px; }
.talking .code-block pre { margin:0; padding:24px 32px; background:#f5f5f5; border-left:8px solid #fff176; font-size:28px; line-height:1.4; overflow:visible; white-space:pre; tab-size:4; --peitho-lint-min-font-size:20pt; }
.talking .code-block code { background:none; font-family:"SF Mono",Menlo,Consolas,"Noto Sans Mono",monospace; padding:0; }
.talking.code[data-empty-slots~="caption"] .caption { display:none; }

/* yapc2026tokyo: table layout (talking slides extension). Keep tables to 4 rows x 4 columns. */
.table-block { margin-top:40px; display:flex; justify-content:center; }
.talking .table-block table { border-collapse:collapse; font-size:37.333px; line-height:1.3; --peitho-lint-min-font-size:20pt; }
.talking .table-block th, .talking .table-block td { padding:12px 28px; border-bottom:2px solid #ddd; text-align:center; }
.talking .table-block th { font-weight:700; border-bottom:4px solid #000; }
.talking .table-block th:first-child, .talking .table-block td:first-child { text-align:left; }
.talking .table-block td { font-variant-numeric:tabular-nums; }
.talking.table[data-empty-slots~="caption"] .caption { display:none; }

/* peitho lint floors. Supplementary text is intentionally smaller than 24pt (original tool sizes);
   anything shrunk further than the floor is a real warning: move it to the notes. */
.detail, .caption { --peitho-lint-min-font-size:18pt; }
.presenter { --peitho-lint-min-font-size:20pt; }

/* yapc2026tokyo: syntax colors for the code layout (peitho emits hl-* scope classes; GitHub light palette).
   No yellow here: yellow is reserved for the emphasis marker. */
.talking .code-block .hl-keyword,
.talking .code-block .hl-storage { color:#cf222e; }
.talking .code-block .hl-keyword.hl-operator { color:#24292f; }
.talking .code-block .hl-entity.hl-name,
.talking .code-block .hl-variable.hl-function { color:#8250df; }
.talking .code-block .hl-entity.hl-name.hl-type,
.talking .code-block .hl-support.hl-type { color:#953800; }
.talking .code-block .hl-string { color:#0a3069; }
.talking .code-block .hl-constant { color:#0550ae; }
.talking .code-block .hl-comment { color:#6e7781; font-style:italic; }