/* My library on a phone, by topic (libtopic-studies.js, 16 October 2026). Built on the shop's phone library (library-studies.css):
   the same lines, colours and type; only the topic grouping and the View button are new. */

/* Every design: a line has the shop's words, then View and the round green Download. */
.lt-line{grid-template-columns:minmax(0,1fr) auto}
.lt-acts{display:flex;align-items:center;gap:8px}
.lt-view{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 14px;border:1px solid var(--line-strong);border-radius:999px;font:600 15px/1 var(--sans);color:var(--forest);background:#fff;cursor:pointer}
.lt-view .icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lt-view:active{transform:scale(.97)}
.lt-view:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.lt .ls-get{text-decoration:none}
@media(max-width:340px){.lt-view{padding:0 11px}.lt-acts{gap:6px}}

/* Topic folders: a closed row per topic, its count under the name; one opens at a time. */
.lt-folders{margin-top:2px}
.lt-topic{border-top:1px solid var(--line)}
.lt-topic:first-child{border-top:0}
.lt-topic-head{display:grid;grid-template-columns:minmax(0,1fr) 20px;align-items:center;column-gap:12px;width:100%;min-height:60px;padding:12px 0;border:0;text-align:left;color:inherit;background:none;cursor:pointer;scroll-margin-top:84px}
.lt-topic-copy{display:grid;gap:2px;min-width:0}
.lt-topic-copy b{font:600 17px/1.3 var(--sans);letter-spacing:-.01em;color:var(--ink)}
.lt-topic-copy small{font-size:14px;line-height:1.4;color:var(--muted)}
.lt-topic-copy em{font-style:normal;font-weight:600;color:var(--green-hover)}
.lt-topic-head>.icon{width:20px;height:20px;fill:none;stroke:var(--forest);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s}
.lt-topic.is-open>.lt-topic-head>.icon{transform:rotate(180deg)}
.lt-topic-body{padding:0 0 6px 12px;border-left:2px solid var(--line)}
.lt-topic-body .lt-line:first-child{border-top:0}

/* Topic headings: the sheets under a plain heading per topic, all showing. */
.lt-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:22px 0 4px;font:600 19px/1.25 var(--serif);letter-spacing:-.015em;color:var(--ink)}
.lt-headings>.lt-heading:first-child{margin-top:4px}
.lt-heading small{flex:none;font:400 14px/1.4 var(--sans);letter-spacing:0;color:var(--muted)}

/* Topic menu: the shop's own menu (dropdowns.js draws it), full width, then the picked topic's sheets. */
.lt-menu{margin:4px 0 6px}
.lt-menu select{width:100%;min-height:48px;font-size:16px}
.lt-menu .dd-button{width:100%}
/* As in the shop's line: a sheet not downloaded yet has a filled green Download. */
.lt-line.is-new .lt-dl{border-color:var(--green);background:var(--green);color:#fff}

/* ---------- Round 2: four ways that replace the whole list (16 October 2026) ---------- */
.lt2-on>.ls{display:none}
.lt2{margin-top:6px}
.lt2 .lt-line:first-child{border-top:0}
.lt2-lines>.lt-line:first-child{border-top:1px solid var(--line)}
.lt2-cover{display:block;flex:none;width:34px;overflow:hidden;border:1px solid var(--line-strong);border-radius:3px;background:#fff}
.lt2-cover .pg-cover{font-size:3.4px}
.lt2-cover .pg-foot span{visibility:hidden}
.lt2-num{margin-right:8px;font-variant-numeric:tabular-nums;color:var(--quiet);font-weight:600}
.lt2-rest{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;margin-top:20px;padding:14px 16px;border-radius:12px;background:var(--mint)}
.lt2-rest-copy{display:grid;gap:1px;min-width:0}
.lt2-rest-copy b{font:600 16px/1.3 var(--sans);color:var(--ink)}
.lt2-rest-copy small{font-size:14px;line-height:1.4;color:var(--muted)}
.lt2-rest .price{font:600 17px/1 var(--sans);color:var(--ink)}
@media(max-width:360px){.lt2-rest{grid-template-columns:minmax(0,1fr) auto}.lt2-rest-copy{grid-column:1/-1}}

/* Step by step: rows that go one level in; a back button and the level's name. */
.lt2-list{border-top:1px solid var(--line)}
.lt2-row{display:grid;grid-template-columns:auto minmax(0,1fr) 20px;align-items:center;column-gap:14px;width:100%;min-height:64px;padding:12px 0;border:0;border-bottom:1px solid var(--line);text-align:left;color:inherit;background:none;cursor:pointer}
.lt2-row:not(:has(.lt2-cover)){grid-template-columns:minmax(0,1fr) 20px}
.lt2-row .lt2-cover{width:40px}
.lt2-copy{display:grid;gap:2px;min-width:0}
.lt2-copy b{font:600 17px/1.3 var(--sans);letter-spacing:-.01em;color:var(--ink)}
.lt2-copy small{font-size:14px;line-height:1.4;color:var(--muted)}
.lt2-copy em{font-style:normal;font-weight:600;color:var(--green-hover)}
.lt2-row>.icon{width:20px;height:20px;color:var(--forest)}
.lt2-back{display:inline-flex;align-items:center;gap:2px;min-height:44px;margin:0 0 2px -6px;padding:0 6px;border:0;font:600 16px/1 var(--sans);color:var(--green-hover);background:none;cursor:pointer}
.lt2-back .icon{width:20px;height:20px}
.lt2-title{margin:2px 0 2px;font:600 26px/1.15 var(--serif);letter-spacing:-.02em;color:var(--ink)}
.lt2-sub{margin:0 0 12px;font-size:15px;color:var(--muted)}

/* The switch between subjects (course outline, index). */
.lt2-seg{display:flex;gap:4px;margin-bottom:16px;padding:4px;border-radius:12px;background:var(--soft);border:1px solid var(--line)}
.lt2-seg button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:0 10px;border:0;border-radius:9px;font:600 15px/1.2 var(--sans);color:var(--muted);background:none;cursor:pointer}
.lt2-seg button small{font-weight:400;font-size:13px;color:inherit;opacity:.8}
.lt2-seg button[aria-selected="true"]{color:var(--ink);background:#fff;box-shadow:0 1px 2px rgba(0,58,28,.12)}

/* Course outline: "Carry on reading", then numbered modules with progress. */
.lt2-carry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:18px;padding:16px;border-radius:14px;background:var(--forest);color:#fff}
.lt2-carry-copy{display:grid;gap:2px;min-width:0}
.lt2-carry-copy small{font-size:13px;font-weight:600;color:var(--mint-deep)}
.lt2-carry-copy b{font:600 19px/1.25 var(--serif);letter-spacing:-.015em}
.lt2-carry-copy span{font-size:14px;color:rgba(255,255,255,.75)}
.lt2-carry .lt-view{border-color:#fff;background:#fff}
.lt2-outline{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.lt2-module{border-bottom:1px solid var(--line)}
.lt2-module-head{display:grid;grid-template-columns:32px minmax(0,1fr) 20px;align-items:center;column-gap:12px;width:100%;padding:14px 0;border:0;text-align:left;color:inherit;background:none;cursor:pointer;scroll-margin-top:84px}
.lt2-n{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font:600 15px/1 var(--sans);color:var(--forest);background:var(--mint);font-variant-numeric:tabular-nums}
.lt2-progress{display:block;height:5px;margin-top:6px;border-radius:3px;background:var(--line);overflow:hidden}
.lt2-progress i{display:block;height:100%;border-radius:3px;background:var(--green)}
.lt2-module-head>.icon{width:20px;height:20px;color:var(--forest);transition:transform .16s}
.lt2-module.is-open>.lt2-module-head>.icon{transform:rotate(180deg)}
.lt2-module-body{padding:0 0 8px 44px}
.lt2-module-body .lt-line:first-child{border-top:1px solid var(--line)}

/* Search and filter. */
.lt2-search{display:flex;align-items:center;gap:10px;min-height:50px;padding:0 14px;border:1px solid var(--line-strong);border-radius:12px;background:#fff}
.lt2-search:focus-within{border-color:var(--green);box-shadow:0 0 0 3px var(--mint)}
.lt2-search .icon{width:20px;height:20px;color:var(--muted)}
.lt2-search input{flex:1;min-width:0;height:48px;border:0;outline:0;font:400 16px/1 var(--sans);color:var(--ink);background:none}
.lt2-filters{display:grid;gap:10px;margin:12px 0 4px}
.lt2-chips{display:flex;gap:8px;flex-wrap:wrap}
.lt2-chip{min-height:40px;padding:0 16px;border:1px solid var(--line-strong);border-radius:999px;font:600 15px/1 var(--sans);color:var(--ink);background:#fff;cursor:pointer}
.lt2-chip[aria-pressed="true"]{border-color:var(--forest);color:#fff;background:var(--forest)}
.lt2-topicmenu:empty{display:none}
.lt2-topicmenu select,.lt2-topicmenu .dd-button{width:100%}
.lt2-count{margin:10px 0 2px;font-size:14px;color:var(--muted)}
.lt2-hit{grid-template-columns:auto minmax(0,1fr) auto;column-gap:12px}
.lt2-none{margin:16px 0;font-size:16px;line-height:1.5;color:var(--muted)}

/* Index: a heading per topic that stays at the top; a strip of topic numbers on the right. */
.lt2-index{padding-right:26px}
.lt2-sec+.lt2-sec{margin-top:6px}
.lt2-sticky{position:sticky;top:var(--header,64px);z-index:2;display:flex;align-items:center;gap:10px;margin:0;padding:10px 0;font:600 17px/1.25 var(--serif);letter-spacing:-.01em;color:var(--ink);background:#fff;border-bottom:1px solid var(--line)}
.lt2-sticky .lt2-n{width:26px;height:26px;font-size:13px}
.lt2-sticky small{margin-left:auto;font:400 14px/1.3 var(--sans);color:var(--muted)}
.lt2-sec .lt-line:first-of-type{border-top:0}
.lt2-rail{position:fixed;right:2px;top:50%;z-index:5;display:flex;flex-direction:column;padding:4px 0;border-radius:12px;background:rgba(255,255,255,.92);transform:translateY(-50%);opacity:0;pointer-events:none;transition:opacity .15s;touch-action:none}
.lt2-rail.is-on{opacity:1;pointer-events:auto}
.lt2-rail button{width:24px;height:26px;padding:0;border:0;font:600 12px/1 var(--sans);color:var(--green-hover);background:none;cursor:pointer}
.lt2-bubble{position:fixed;left:50%;top:45%;z-index:6;padding:10px 18px;border-radius:12px;font:600 18px/1.2 var(--serif);color:#fff;background:var(--forest);transform:translate(-50%,-50%);opacity:0;pointer-events:none;transition:opacity .12s}
.lt2-bubble.is-on{opacity:1}

/* ---------- Round 3: minimal, small buttons, everything reachable (16 October 2026) ----------
   The owner: "it gotta be minimal, the buttons shown in this is also huge". A sheet is one quiet row: the whole row opens the
   reader (at least 56px tall), and the one other button is drawn at 32px with a 44px area to press. Text stays at 15px and up. */
.lt3-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.lt3-dot{display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;background:var(--green);vertical-align:middle}

/* The subject: the shop's menu, drawn as the heading. */
.lt3-head{margin:2px 0 12px}
.lt3-subject{margin:0;font:600 24px/1.2 var(--serif);letter-spacing:-.02em;color:var(--ink)}
.lt3-pick .dd-button{min-width:0;height:auto;min-height:44px;padding:0 4px 0 0;gap:6px;justify-content:flex-start;border:0;border-radius:6px;background:none;font:600 24px/1.2 var(--serif);letter-spacing:-.02em;color:var(--ink)}
.lt3-pick .dd-chevron{width:20px;height:20px}
.lt3-pick select{font:600 22px/1.2 var(--serif);border:0;background:none;color:var(--ink)}
.lt3-meta{margin:0;font-size:15px;line-height:1.4;color:var(--muted)}
.lt3-meta em{font-style:normal;font-weight:600;color:var(--green-hover)}

/* A sheet's row. */
.lt3-row{position:relative;display:flex;align-items:center;gap:12px;min-height:56px;border-top:1px solid var(--line)}
.lt3-rows>.lt3-row:first-child,.lt3-box>.lt3-row:first-child,.lt3-ch-body>.lt3-row:first-child{border-top:0}
.lt3-open{flex:1;display:flex;align-items:center;gap:10px;min-width:0;padding:9px 0;border:0;font:inherit;text-align:left;color:inherit;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lt3-open::after{content:"";position:absolute;inset:0;border-radius:8px}
.lt3-open:active::after{background:rgba(0,58,28,.05)}
.lt3-open:focus-visible{outline:0}
.lt3-open:focus-visible::after{outline:2px solid var(--green);outline-offset:-2px}
.lt3-copy{display:grid;gap:1px;min-width:0}
.lt3-copy b{font:600 16px/1.3 var(--sans);color:var(--ink)}
.lt3-copy small{font-size:14px;line-height:1.35;color:var(--muted)}
.lt3-copy em{font-style:normal;font-weight:600;color:var(--green-hover)}
.lt3-dl{position:relative;z-index:1;flex:none;display:grid;place-items:center;width:32px;height:32px;margin-right:2px;border:1px solid var(--line-strong);border-radius:50%;color:var(--forest);background:#fff;text-decoration:none}
.lt3-dl::before{content:"";position:absolute;inset:-6px}
.lt3-dl .icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.lt3-row.is-new .lt3-dl{border-color:var(--green);color:#fff;background:var(--green)}
.lt3-dl:focus-visible{outline:2px solid var(--green);outline-offset:2px}

/* What a subject still lacks. */
.lt3-rest{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding:12px 14px;border-radius:12px;background:var(--mint)}
.lt3-rest-copy{display:grid;gap:1px;min-width:0}
.lt3-rest-copy b{font:600 16px/1.3 var(--sans);color:var(--ink)}
.lt3-rest-copy small{font-size:14px;line-height:1.35;color:var(--muted)}
.lt3-btn{position:relative;flex:none;height:36px;padding:0 14px;border:1px solid var(--forest);border-radius:999px;font:600 15px/1 var(--sans);color:var(--forest);background:#fff;cursor:pointer}
.lt3-btn::before{content:"";position:absolute;inset:-4px 0}
.lt3-btn.is-primary{color:#fff;background:var(--forest)}
.lt3-btn:focus-visible,.lt3-chip:focus-visible,.lt3-text:focus-visible,.lt3-more:focus-visible,.lt3-ch-head:focus-visible{outline:2px solid var(--green);outline-offset:2px}

/* Topic chips: a row that scrolls sideways under the heading. */
.lt3-chips{display:flex;gap:6px;margin:0 -16px 6px;padding:2px 16px 10px;overflow-x:auto;scrollbar-width:none;scroll-padding:0 16px}
.lt3-chips::-webkit-scrollbar{display:none}
.lt3-chip{position:relative;flex:none;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 13px;border:1px solid var(--line-strong);border-radius:999px;font:600 15px/1 var(--sans);color:var(--ink);background:#fff;cursor:pointer;white-space:nowrap}
.lt3-chip::before{content:"";position:absolute;inset:-5px 0}
.lt3-chip small{font-weight:400;font-size:14px;color:var(--muted)}
.lt3-chip[aria-pressed="true"]{border-color:var(--forest);color:#fff;background:var(--forest)}
.lt3-chip[aria-pressed="true"] small{color:rgba(255,255,255,.8)}
.lt3-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:18px 0 0;padding-bottom:6px;border-bottom:1px solid var(--line);font:600 17px/1.3 var(--serif);letter-spacing:-.01em;color:var(--ink)}
.lt3-h small{flex:none;font:400 14px/1.3 var(--sans);letter-spacing:0;color:var(--muted)}
.lt3-chips+.lt3-h{margin-top:6px}

/* Contents: numbered topics that open in place; rows with no buttons. */
.lt3-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 2px}
.lt3-tools p{margin:0;font-size:14px;line-height:1.4;color:var(--muted)}
.lt3-text{flex:none;min-height:44px;padding:0;border:0;font:600 15px/1 var(--sans);color:var(--green-hover);background:none;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.lt3-toc{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.lt3-ch{border-bottom:1px solid var(--line)}
.lt3-ch-head{display:grid;grid-template-columns:24px minmax(0,1fr) auto 18px;align-items:center;column-gap:10px;width:100%;min-height:54px;padding:8px 0;border:0;border-radius:6px;text-align:left;color:inherit;background:none;cursor:pointer;scroll-margin-top:84px}
.lt3-ch-n{font:600 15px/1 var(--sans);color:var(--quiet);font-variant-numeric:tabular-nums}
.lt3-ch-head b{font:600 17px/1.3 var(--sans);letter-spacing:-.01em;color:var(--ink)}
.lt3-ch-head small{display:flex;align-items:center;gap:7px;font-size:15px;color:var(--muted);font-variant-numeric:tabular-nums}
.lt3-ch-head>.icon{width:18px;height:18px;fill:none;stroke:var(--forest);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s}
.lt3-ch.is-open>.lt3-ch-head>.icon{transform:rotate(180deg)}
.lt3-ch-body{padding:0 0 6px 34px}
.lt3-row.is-plain{min-height:48px;border-top-color:var(--line)}
.lt3-row.is-plain .lt3-open{padding:8px 0}
.lt3-row.is-plain .lt3-copy{flex:1;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.lt3-row.is-plain .lt3-copy b{font-weight:500}
.lt3-pp{flex:none;font-size:14px;color:var(--quiet)}
.lt3-row.is-plain .lt3-dot{margin-left:-16px;margin-right:-2px}
@media(prefers-reduced-motion:reduce){.lt3-ch-head>.icon{transition:none}}

/* Grouped lists: a heading per topic, its sheets in one quiet box. */
.lt3-group{margin-top:22px}
.lt3-head+.lt3-group{margin-top:8px}
.lt3-gh{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 2px 8px;font:600 17px/1.3 var(--serif);letter-spacing:-.01em;color:var(--ink)}
.lt3-gh small{flex:none;font:400 14px/1.3 var(--sans);letter-spacing:0;color:var(--muted)}
.lt3-box{padding:0 12px 0 14px;border:1px solid var(--line);border-radius:14px;background:#fff}
.lt3-more{display:flex;align-items:center;width:100%;min-height:48px;padding:0;border:0;border-top:1px solid var(--line);font:600 15px/1 var(--sans);color:var(--green-hover);background:none;cursor:pointer}

/* ---------- Round 4: the shop's own library, a subject's sheets in topics (16 October 2026) ----------
   Everything is the shop's subject card (library-studies.css); new here are the topic rows and a sheet's two small buttons. */
.lt4-line{grid-template-columns:minmax(0,1fr) auto}
.lt4-acts{display:flex;align-items:center;gap:8px}
.lt4-view{position:relative;display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 12px 0 10px;border:1px solid var(--line-strong);border-radius:999px;font:600 15px/1 var(--sans);color:var(--forest);background:#fff;cursor:pointer}
.lt4-dl{position:relative;display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line-strong);border-radius:50%;color:var(--forest);background:#fff;text-decoration:none}
.lt4-view::before,.lt4-dl::before{content:"";position:absolute;inset:-4px}
.lt4-view .icon,.lt4-dl .icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lt4-line.is-new .lt4-dl{border-color:var(--green);color:#fff;background:var(--green)}
.lt4-view:active,.lt4-dl:active{transform:scale(.95)}
.lt4-view:focus-visible,.lt4-dl:focus-visible,.lt4-head:focus-visible,.lt4-back:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:340px){.lt4-view{padding:0 10px 0 8px}.lt4-acts{gap:6px}}

/* A topic row: a small subject card's words, no cover. */
.lt4-topic{border-top:1px solid var(--line)}
.lt4-head{display:grid;grid-template-columns:minmax(0,1fr) 20px;column-gap:12px;align-items:center;width:100%;padding:14px 0;border:0;border-radius:6px;text-align:left;color:inherit;background:none;cursor:pointer}
.lt4-copy b{font:600 17px/1.25 var(--sans)!important;letter-spacing:-.01em!important}
.lt4-copy .ls-pips{margin-top:4px}
.lt4-copy em{margin-top:3px!important}
.lt4-head>.icon{width:20px;height:20px;fill:none;stroke:var(--forest);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s}
.lt4-topic.is-open>.lt4-head>.icon{transform:rotate(180deg)}
.lt4-sheets{padding-bottom:6px}
.lt4-sheets>.lt4-line:first-child{border-top:1px solid var(--line)}

/* Topic by topic was here: deleted at the owner's word on 16 October 2026 (copy in tmp/libtopic-round4e-before/). */

/* A card per topic: the subject's name above its topic cards, as the shop's grade heading. */
.lt4-subject{margin-top:22px}
.lt4-subject:first-child{margin-top:22px}   /* the same 22px under the tabs as the shop's own library (the owner: "this tabs needs some padding below") */
.lt4-cards .ls-subject-copy b{font:600 19px/1.2 var(--serif)!important}
.lt4-body .lt4-line:first-child{border-top:1px solid var(--line)}
@media(prefers-reduced-motion:reduce){.lt4-head>.icon{transition:none}}
/* Topics in the card, no bars: the name and one line under it. */
.lt4-copy.is-plain{gap:2px}
.lt4-copy.is-plain>span{font-size:14px}
.lt4-copy.is-plain em{display:inline;margin:0!important;font-size:14px}
.lt4-incard .lt4-head:has(.is-plain){padding:12px 0}
.ls-subject-head[data-lt4p] .ls-subject-copy>em{margin-top:2px}
.lt4-copy.is-plain em{white-space:nowrap}
/* No bars, sunken: an open topic's sheets on the shop's soft grey, edge to edge of the card, under a darker line, as an open
   topic in the shop's Maths list (topics-studies.css). */
html.lt4-sunk .lt4-incard .lt4-sheets{margin:0 -16px 0 -18px;padding:0 16px 4px 18px;border-top:1px solid var(--line-strong);background:var(--soft)}
html.lt4-sunk .lt4-incard .lt4-sheets>.lt4-line:first-child{border-top:0}
html.lt4-sunk .lt4-incard .lt4-topic.is-open+.lt4-topic{border-top-color:var(--line-strong)}
@media(max-width:360px){html.lt4-sunk .lt4-incard .lt4-sheets{margin:0 -12px 0 -14px;padding:0 12px 4px 14px}}
/* A card per topic, sunken: an open card's sheets on the shop's soft grey, edge to edge inside the card, under a darker line. */
html.lt4-sunk .lt4-cards .lt4-body{padding-top:0;border-top:1px solid var(--line-strong);border-radius:0 0 13px 13px;background:var(--soft)}
html.lt4-sunk .lt4-cards .lt4-body>.lt4-line:first-child{border-top:0}

/* Button sets on A card per topic · No bars (the owner: "Demo different view and download button sets"). */
/* Words: View and Download written, the same height; Download filled green until it has been downloaded. */
.lt4-b-words .lt4-view{padding:0 14px}
.lt4-b-words .lt4-dl-word{width:auto;padding:0 14px;border-radius:999px;font:600 15px/1 var(--sans)}
/* Icons: two round buttons, the eye and the arrow. */
.lt4-b-icons .lt4-round{width:36px;padding:0;justify-content:center}
.lt4-b-icons .lt4-round .icon{width:18px;height:18px}
/* Joined: one outlined pill, View on the left, the arrow on the right behind a thin line. */
.lt4-join{display:inline-flex;align-items:stretch;height:36px;border:1px solid var(--line-strong);border-radius:999px;background:#fff;overflow:hidden}
.lt4-join .lt4-view{height:100%;border:0;border-radius:0;padding:0 10px 0 12px}
.lt4-join .lt4-dl{width:40px;height:100%;border:0;border-left:1px solid var(--line-strong);border-radius:0}
.lt4-line.is-new .lt4-join .lt4-dl{border-left-color:var(--green)}
.lt4-join .lt4-view::before,.lt4-join .lt4-dl::before{inset:-4px 0}
/* Links: two underlined words, no boxes; 44px tall to press. */
.lt4-b-links{gap:4px}
.lt4-link{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 8px;border:0;font:600 15px/1 var(--sans);color:var(--forest);background:none;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:4px;cursor:pointer}
.lt4-link-dl{color:var(--green-hover)}
.lt4-line.is-new .lt4-link-dl{text-decoration-color:var(--green)}
.lt4-link:focus-visible{outline:2px solid var(--green);outline-offset:0;border-radius:6px}
.lt4-b-links{margin-right:-8px}
.lt4-view-word{padding:0 15px}

/* ---------- Laptop, round 1 (16 October 2026): A card per topic · No bars, carried over from the phone ----------
   Measured at 1366 by 657. The shop's own subject card (library-studies.css), the phone's sheet lines, two to a row. */
@media(min-width:601px){
 .lt2-k-pc-grid,.lt2-k-pc-split,.lt2-k-pc-rows{margin-top:0}
 .lt4-subject{margin-top:28px}
 .lt4-subject:first-child{margin-top:26px}
 .lt4-subject h2{font-size:24px}
 .lt4-pccard .ls-subject-head{padding:14px 18px 14px 16px;column-gap:16px}
 .lt4-pccard .ls-subject-copy b{font:600 19px/1.2 var(--serif)!important}
 .lt4-pccard .ls-subject-head:hover b{color:var(--green-hover)}
 .lt4-pccard.is-open{border-color:var(--forest)}
 /* Two sheets to a row; each keeps its own line under it. */
 .lt4-two{display:grid;grid-template-columns:1fr 1fr;column-gap:36px}
 .lt4-two>.lt4-line{border-top:1px solid var(--line)}
 /* Cards in a grid: three across; the open card's sheets fill the page's width under its row. */
 .lt4-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
 .lt4-grid-open{grid-column:1/-1;padding:4px 22px 12px;border:1px solid var(--forest);border-radius:14px;background:#fff}
 .lt4-grid-open .lt4-body{padding:0}
 .lt4-grid-open .lt4-two>.lt4-line:nth-child(-n+2){border-top:0}
 /* Topics beside sheets: the cards on the left, the chosen topic's sheets on the right, kept in view. */
 .lt4-split{display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);gap:32px;align-items:start}
 .lt4-split .ls-subjects{gap:10px}
 .lt4-split .lt4-pccard .ls-stack{transform:scale(.86);transform-origin:left center}
 .lt4-split-pane{position:sticky;top:calc(var(--header,76px) + 16px);margin-top:26px;max-height:calc(100vh - var(--header,76px) - 32px);overflow:auto;padding:18px 24px 10px;border:1px solid var(--line-strong);border-radius:14px;background:#fff}
 .lt4-split-pane h2{margin:0;font:600 24px/1.2 var(--serif);letter-spacing:-.02em;color:var(--ink)}
 .lt4-split-pane>p{margin:4px 0 8px;font-size:15px;color:var(--muted)}
 .lt4-split-pane>p em{font-style:normal;font-weight:600;color:var(--green-hover)}
 .lt4-split-sheets>.lt4-line{border-top:1px solid var(--line)}
 /* Wide cards: the phone's cards at the page's width, the open one's sheets two to a row. */
 .lt4-wide .lt4-body{padding:0 22px 10px 22px}
 .lt4-wide .lt4-two>.lt4-line:nth-child(-n+2){border-top:1px solid var(--line)}
}
@media(min-width:601px) and (max-width:1099px){.lt4-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lt4-split{grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:20px}}
@media(min-width:601px){.lt4-split .is-open>.ls-subject-head>.icon{transform:none}}

/* Cards in a grid: three ways to tie the open sheets to their card (16 October 2026). */
@media(min-width:601px){
 /* Pointer: a notch on the panel's top edge, under the middle of the open card. */
 .lt2-k-pc-grid-notch .lt4-grid-open{position:relative;overflow:visible}
 .lt2-k-pc-grid-notch .lt4-grid-open::before{content:"";position:absolute;top:-8px;left:calc((100% - (var(--cols) - 1) * 14px) / var(--cols) * (var(--col) + .5) + var(--col) * 14px - 8px);width:14px;height:14px;border-top:1px solid var(--forest);border-left:1px solid var(--forest);background:#fff;transform:rotate(45deg)}
 /* Joined: the open card runs down into the panel, so the two read as one outlined shape. */
 .lt2-k-pc-grid-tab .lt4-pccard.is-open{position:relative;z-index:2;padding-bottom:15px;margin-bottom:-15px;border-bottom:0;border-radius:14px 14px 0 0}
 .lt2-k-pc-grid-tab .lt4-grid-open[style*="--col:0"]{border-top-left-radius:0}
 .lt2-k-pc-grid-tab .lt4-grid-open[style*="--col:2"]{border-top-right-radius:0}
 /* Same shade: the open card and its sheets share the shop's soft grey; the other cards stay white. */
 .lt2-k-pc-grid-tint .lt4-pccard.is-open{border-color:var(--line-strong);background:var(--soft)}
 .lt2-k-pc-grid-tint .lt4-grid-open{border-color:var(--line-strong);background:var(--soft)}
}
@media(min-width:601px) and (max-width:1099px){.lt2-k-pc-grid-tab .lt4-grid-open[style*="--col:1"]{border-top-right-radius:0}.lt2-k-pc-grid-tab .lt4-grid-open[style*="--col:2"]{border-top-right-radius:14px}}
