/* NCLEX BANK — the word pages and the word lists. Loaded after blog.css, which
   owns the page: this file only adds the blocks a word needs.

   The Kindle book (tools/word-book-link.mjs) is at the end of this file.

   ⚠️ No tables. A table in blog.css has min-width:460px and a phone cuts it off
   at the right; a list of words is read on a phone. Every block here is a grid
   that stacks. */

/* The tail of a heading that must not break in the middle (— 出る順). */
.nb{white-space:nowrap}

/* the word itself */
.w-card{background:var(--surface);border:1.5px solid var(--line);border-radius:var(--radius);padding:24px 24px 20px;margin:18px 0 22px}
.w-term{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.w-term b{font-family:var(--display);font-weight:700;font-size:clamp(30px,8vw,44px);line-height:1.15;letter-spacing:-.02em;color:var(--ink);overflow-wrap:anywhere;min-width:0}
.w-read{font-family:var(--mono);font-size:13px;color:var(--ink-soft);margin:8px 0 16px;letter-spacing:.02em}
.w-read span{white-space:nowrap}
.w-read span + span::before{content:"・";margin:0 2px}
.w-lbl{display:block;font-family:var(--mono);font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--teal);margin:0}
.w-mean{font-size:22px;font-weight:700;color:var(--teal-deep);margin:0 0 12px;line-height:1.5}
html[lang="en"] .w-mean{font-size:19px}
.w-def{font-size:14.5px;margin:0}
.w-stat{font-size:14.5px;border-top:1px dashed var(--line);margin:16px 0 0;padding-top:14px}
.w-stat b{font-size:17px;color:var(--teal-deep)}

/* the speaker */
.w-say{flex:none;width:40px;height:40px;border-radius:50%;border:1.5px solid var(--line);background:var(--paper);color:var(--teal-deep);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
.w-say svg{width:18px;height:18px;display:block}
.w-say:hover{border-color:var(--teal)}
.w-say:focus-visible,.w-tools button:focus-visible{outline:3px solid var(--amber);outline-offset:2px}
.w-say.sm{width:28px;height:28px;vertical-align:middle;margin-left:6px}
.w-say.sm svg{width:13px;height:13px}
/* A browser with no speech has nothing for the button to do. */
.nosay .w-say,.nosay .w-all{display:none}

/* what it is built from */
.w-parts{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0 0 16px}
.w-parts li{background:var(--surface);border:1.5px solid var(--line);border-radius:10px;padding:8px 16px;margin:0;text-align:center}
.w-parts b{display:block;font-family:var(--mono);font-weight:500;font-size:15px;color:var(--teal-deep)}
.w-parts span{font-size:12.5px;color:var(--ink-soft)}
.w-sub{font-size:14px;font-weight:700;color:var(--ink);margin:18px 0 2px}

/* example sentences */
.w-ex{list-style:none;margin:0 0 10px}
.w-ex li{background:var(--surface);border:1.5px solid var(--line);border-left:4px solid var(--teal);border-radius:10px;padding:14px 18px;margin:0 0 10px}
.w-ex .en{color:var(--ink);font-weight:500;line-height:1.7;margin:0}
.w-ex .tr{font-size:13.5px;line-height:1.75;margin:5px 0 0}
.w-ex .fx{font-family:var(--mono);font-size:10.5px;font-weight:400;letter-spacing:.04em;color:#8CA09A;border:1px solid var(--line);border-radius:999px;padding:1px 8px;white-space:nowrap}
.w-ex mark{background:var(--amber-soft);color:inherit;padding:0 3px;border-radius:3px;font-weight:700}
.w-src{font-family:var(--mono);font-size:11px;color:#8CA09A;letter-spacing:.03em;margin:0 0 20px}

/* which questions */
.w-bars{list-style:none;margin:0 0 20px}
.w-bars li{display:grid;grid-template-columns:minmax(0,9.5em) minmax(0,1fr) 4.2em;gap:10px;align-items:center;margin:0 0 9px;font-size:14px;line-height:1.5}
.w-bars .bar{height:10px;border-radius:5px;background:var(--line);overflow:hidden}
.w-bars .bar i{display:block;height:100%;background:var(--teal);border-radius:5px}
.w-bars .n{font-family:var(--mono);font-size:12px;text-align:right;color:var(--ink-soft);white-space:nowrap}

/* The line under the lead that says the same words are in the app. The shape
   of an example sentence (.w-ex li), so it adds no new colour to the page. */
.w-app{background:var(--surface);border:1.5px solid var(--line);border-left:4px solid var(--teal);border-radius:10px;padding:12px 18px;font-size:14.5px;line-height:1.75;margin:0 0 18px}
.w-app a{font-weight:700;white-space:nowrap}

/* A video. Until it is pressed it is our own picture of it with a button on
   it; words.js then puts YouTube's player in the same box. The button is the
   teal of every other button on the page. */
.w-video{margin:0 0 20px}
.w-frame{position:relative;aspect-ratio:16 / 9;border-radius:var(--radius);overflow:hidden;border:1.5px solid var(--line);background:var(--surface)}
.w-play,.w-play img,.w-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.w-play img{object-fit:cover}
.w-go{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(18,46,43,.28)}
.w-go svg{width:30px;height:30px;margin-left:3px}
.w-play:hover .w-go{background:var(--teal-deep)}
.w-play:focus-visible{outline:3px solid var(--amber);outline-offset:-3px}
.w-len{position:absolute;right:10px;bottom:10px;font-family:var(--mono);font-size:12px;line-height:1.5;color:#fff;background:rgba(18,46,43,.82);border-radius:6px;padding:1px 8px}
.w-video figcaption{font-size:14px;line-height:1.75;color:var(--ink-soft);margin-top:8px}
/* A run-through, in the list under the last word it reads: a row of the list
   that is a video, between the same lines as the rows. */
.w-in{margin:0;padding:18px 2px 16px;border-bottom:1px solid var(--line)}
.w-in .w-video{margin:0}
/* A word's Short, on the word's page: small, beside the line that says what
   it is, and the size of a phone held upright when it is played. */
.w-video.side{display:grid;grid-template-columns:92px minmax(0,1fr);gap:16px;align-items:center;background:var(--surface);border:1.5px solid var(--line);border-radius:var(--radius);padding:14px}
.w-video.side figcaption{margin:0}
.w-video.side .w-lbl{margin-bottom:4px}
.w-video.side .w-frame{aspect-ratio:9 / 16;border-radius:10px}
.w-video.side .w-len{display:none}
/* The lower third of a Short's picture is empty: the button goes there, off the word. */
.w-video.side:not(.on) .w-go{top:auto;bottom:9%;width:34px;height:34px;margin:0 0 0 -17px}
.w-video.side:not(.on) .w-go svg{width:17px;height:17px;margin-left:2px}
.w-video.side.on{display:block}
.w-video.side.on .w-frame{max-width:300px;margin:0 auto 12px}

/* a list of words: the lists themselves, and the related words on a word page */
.w-tools{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.w-tools button{font:inherit;font-size:13.5px;border:1.5px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 18px;color:var(--teal-deep);cursor:pointer}
.w-tools button:hover{border-color:var(--teal)}
/* beside the button, the way down to each tier of the list */
.w-tools a{font-size:13.5px;border:1.5px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 18px;color:var(--teal-deep);text-decoration:none;line-height:1.9}
.w-tools a:hover{border-color:var(--teal)}
.w-tools a span{font-family:var(--mono);font-size:11.5px;color:#8CA09A;margin-left:7px}
.w-tier{scroll-margin-top:84px}
.w-tier small{font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.02em;color:var(--ink-soft);margin-left:10px;white-space:nowrap}
.w-tools button[aria-pressed="true"]{background:var(--teal);border-color:var(--teal);color:#fff}
/* The word book's day pages (/day/<n>/): "Play all" is what the page is for,
   so it is the filled button; the word being said is marked in its row. */
.w-tools .w-all{background:var(--teal);border-color:var(--teal);color:#fff;font-weight:700}
.w-tools .w-all:hover{background:var(--teal-deep);border-color:var(--teal-deep)}
.w-row.now{background:var(--amber-soft)}
.w-row.now .w-say{border-color:var(--amber)}
.w-list{list-style:none;margin:0 0 24px;border-top:1px solid var(--line)}
.w-row{display:grid;grid-template-columns:2.1em minmax(0,1fr) auto;column-gap:10px;align-items:baseline;padding:11px 2px;border-bottom:1px solid var(--line);margin:0}
.w-list.plain .w-row{grid-template-columns:minmax(0,1fr) auto}
.w-row .no{font-family:var(--mono);font-size:12px;color:#8CA09A}
.w-row .t{font-weight:700;color:var(--ink);overflow-wrap:anywhere;line-height:1.6}
.w-row .t a{color:var(--teal-deep);text-underline-offset:3px}
.w-row .n{font-family:var(--mono);font-size:12px;color:var(--ink-soft);white-space:nowrap}
.w-row .ab{font-weight:500;color:var(--ink-soft)}
.w-row .fu{grid-column:2 / -1;font-family:var(--mono);font-size:12px;color:#8CA09A;line-height:1.5;overflow-wrap:anywhere}
.w-list.plain .w-row .fu{grid-column:1 / -1}
.w-row .g{grid-column:2 / -1;font-size:14px;color:var(--ink-soft);line-height:1.6}
.w-list.plain .w-row .g{grid-column:1 / -1}
/* Hiding the meanings turns the list into a test: tap a row to see its own. */
.w-list.hid .w-row{cursor:pointer}
.w-list.hid .w-row .g{visibility:hidden}
.w-list.hid .w-row.open .g{visibility:visible}
.w-more{font-size:14px;margin:0 0 24px}

/* from one list to the others */
.w-nav{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0 0 24px}
.w-nav li{margin:0}
.w-nav a{display:block;border:1.5px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 16px;font-size:14px;line-height:1.6;text-decoration:none;color:var(--teal-deep)}
.w-nav a:hover{border-color:var(--teal)}
.w-nav span{font-family:var(--mono);font-size:11.5px;color:#8CA09A;margin-left:7px}
[dir="rtl"] .w-nav span{margin-left:0;margin-right:7px}

/* Arabic pages. The English on them reads left to right where it stands: a
   term keeps its own order (the bracket of an abbreviation, the hyphen of a
   prefix), set against the right like the Arabic round it; a whole English
   sentence is set from the left. */
[dir="rtl"] [lang="en"]{direction:ltr;unicode-bidi:isolate}
[dir="rtl"] .w-row .t,[dir="rtl"] .w-row .fu,[dir="rtl"] .w-def{text-align:right}
[dir="rtl"] .w-read{direction:ltr;text-align:right}
[dir="rtl"] .w-ex .en{text-align:left}
[dir="rtl"] .w-app{border-left:1.5px solid var(--line);border-right:4px solid var(--teal)}
[dir="rtl"] .w-tier small{margin-left:0;margin-right:10px}
[dir="rtl"] .w-tools a span{margin-left:0;margin-right:7px}
[dir="rtl"] .w-say.sm{margin-left:0;margin-right:6px}
/* Arabic letters join: spaced out in the mono face they come apart. The small
   labels are in the page's own face there, unspaced. */
[dir="rtl"] .w-lbl,[dir="rtl"] .w-src,[dir="rtl"] .w-ex .fx,[dir="rtl"] .w-tier small{font-family:inherit;letter-spacing:0}
[dir="rtl"] .w-lbl{font-size:12.5px}
/* …but beside a term the speaker is still after it, which is to its right. */
[dir="rtl"] .w-row .t .w-say.sm{margin-left:6px;margin-right:0}
[dir="rtl"] .w-ex li{border-left:1.5px solid var(--line);border-right:4px solid var(--teal)}

/* The Kindle book, one quiet line after the app's call (16 November 2026).
   The same look as the line under the founder's message on the landing pages:
   a small cover, the title, what is in it, a text link. No button. */
.w-book{display:flex;gap:18px;align-items:center;margin:32px 0 8px;padding-top:24px;border-top:1px solid var(--line)}
.w-book img{width:76px;height:auto;flex:none;border-radius:3px;display:block;margin:0;box-shadow:0 12px 26px -14px rgba(18,46,43,.55)}
.w-book .bk-label{display:block;font-size:12px;color:var(--ink-soft);margin-bottom:2px}
.w-book .bk-title{display:block;font-family:var(--display);font-weight:700;font-size:16px;color:var(--ink);line-height:1.3}
.w-book .bk-note{font-size:13px;color:var(--ink-soft);margin:6px 0 8px;line-height:1.6}
.w-book .bk-link{font-size:13px;color:var(--teal-deep);text-decoration:none;font-weight:600;border-bottom:1.5px solid var(--line);padding-bottom:1px}
.w-book .bk-link:hover{border-color:var(--teal)}
