/* Full-length Study Notes reading pages and linked guide cards. */
.guide-card h3 a{color:inherit;text-decoration:none;overflow-wrap:anywhere}
.guide-card h3 a:hover{text-decoration:underline;text-underline-offset:.16em}
.guide-card h3 a:focus-visible{outline:3px solid #507e45;outline-offset:4px;border-radius:3px}
.guide-card .read-status{font:18px/1.3 var(--compact-font);color:var(--green);margin-right:auto}
.reading-page .post-layout{grid-template-columns:minmax(0,860px) 260px;gap:55px;align-items:start}
.reading-page .post-heading{width:auto;max-width:100%}
.reading-page .post-heading h1{font-size:clamp(32px,4.2vw,58px);line-height:1.12;overflow-wrap:anywhere}
.reading-page .post-content{font-size:21px;line-height:1.7;min-width:0}
.reading-page .article-body{min-width:0;overflow-wrap:anywhere}
.reading-page .article-body>p{margin:0 0 22px}
.reading-page .article-body section{scroll-margin-top:24px;margin:34px 0}
.reading-page .post-content h2{font-size:35px;line-height:1.2;margin:30px 0 15px}
.reading-page .post-content h3{font:700 26px/1.3 var(--compact-font);margin:25px 0 12px;color:var(--ink)}
.reading-page .article-body p{margin:14px 0}
.reading-page .article-body ul,.reading-page .article-body ol,.reading-next ul{padding-left:1.4em;margin:16px 0}
.reading-page li{padding-left:4px;margin:10px 0}
.reading-page .article-body a,.reading-next a{text-underline-offset:.18em}
.reading-page .toc{position:sticky;top:24px;max-height:85vh;overflow:auto;width:auto;margin-top:30px;font-size:18px}
.reading-page .toc a{font-size:17px;line-height:1.4;white-space:normal}
.reading-page .toc h2{font-size:25px}
.reading-page .table-help{display:none}
.reading-page .table-scroll{overflow-x:auto;max-width:100%;margin:24px 0;border:1px solid var(--line);border-radius:12px;background:#fffdf7;overscroll-behavior-x:contain}
.reading-page .table-scroll:focus-visible{outline:3px solid #507e45;outline-offset:3px}
.reading-page table{width:100%;min-width:570px;border-collapse:collapse;font-size:18px;line-height:1.55}
.reading-page caption{text-align:left;padding:14px 16px;font:700 23px/1.3 var(--compact-font);color:var(--ink);background:#edf2e4}
.reading-page th,.reading-page td{text-align:left;vertical-align:top;padding:13px 15px;border-bottom:1px solid var(--line)}
.reading-page th:first-child{min-width:88px;white-space:nowrap}
.reading-page th{font-size:16px;color:var(--ink);background:#f1f3e9}
.reading-page tbody tr:last-child td{border-bottom:0}
.reading-page tbody tr:nth-child(even){background:#f6f5ec}
.reading-page td:first-child>span[lang=ja]{font-size:30px;line-height:1.35}
.reading-page .reading-next{border-top:1px solid var(--line);margin:35px 0;padding:10px 0 25px}
.reading-page .primary{display:inline-block;font-size:21px;white-space:normal}
@media(max-width:700px){
 .reading-page .post-layout{display:flex;gap:0}
 .reading-page .post-content{display:contents;font-size:18px;line-height:1.65}
 .reading-page .post-heading{order:-2}
 .reading-page .post-heading h1{font-size:32px;letter-spacing:-.025em}
 .reading-page .article-body,.reading-page .reading-next{width:100%;min-width:0}
 .reading-page .article-body{font-size:18px;line-height:1.65}
 .reading-page .toc{position:static;order:-1;width:100%;max-height:none;margin:0 0 18px;overflow:visible}
 .reading-page .post-content h2{font-size:28px;line-height:1.2}
 .reading-page .post-content h3{font-size:23px}
 .reading-page .byline{font-size:16px;gap:10px}
 .reading-page .byline img{width:34px;height:34px}
 .reading-page .table-scroll{border-radius:9px}
 .reading-page table{font-size:17px}
 .reading-page th,.reading-page td{padding:11px 12px}
 .reading-page .article-body .table-help{display:block;font-size:14px;line-height:1.5;margin:18px 0 -12px;color:var(--muted)}
 .reading-page .reading-next{font-size:18px}
 .guide-card .read-status{display:none}
}

/* Editorial word examples stay real Japanese text beside the approved story art. */
.story-visual>.word-example,.mini-story .word-example{font:18px/1.55 var(--reading-font);color:var(--muted);margin:12px 0 4px;overflow-wrap:anywhere}
.word-example [lang=ja]{font-style:normal}
.post-content .reading-note{font-size:20px;line-height:1.55;margin:12px 0 20px}
@media(max-width:700px){.story-visual>.word-example,.mini-story .word-example{font-size:16px}.post-content .reading-note{font-size:16px}}

/* Keep instructional words whole; extra table width remains inside its scroll region. */
.reading-page table{overflow-wrap:normal;word-break:normal}
.reading-page td [lang=ja],.reading-page td em{white-space:nowrap}
@media(max-width:700px){
 .post-content #srs>.landscape{position:static;float:right;margin:0 0 10px 12px}
 .post-content #srs>p{padding-right:0}
 .post-content #srs>.more-stories-details{clear:both}
}

/* Beta signup is not a public Google Play listing. Keep this CTA explicit. */
.badge.android-beta{background:var(--green);color:#fffdf7;border-radius:7px;text-decoration:none;text-align:center;font:700 16px/1.2 var(--reading-font);padding:4px 7px}
.badge.android-beta:hover{background:#315f40;color:#fffdf7}
@media(max-width:700px){.badge.android-beta{font-size:12px}}
