/* ipporu.com/library: the Library's tab bar (Articles, Guides, Changelog; also on /guides), the Articles front page, one page
   per article (a reading column, drawings that may run wider) and the changelog. Built by app/library.py; loaded after site.css
   and the app's Geist. White ground, stone panels, aizome the one accent; aka only where kendo puts it (a flag, a mejirushi). */
.lb { --gt: "Geist", var(--sans); --col: 720px; padding-bottom: 104px; }
.lb h1, .lb h2, .lb h3, .lbtabs { font-family: var(--gt); letter-spacing: -0.02em; }
.lbnarrow { max-width: calc(var(--col) + 48px); }
.lbstand { margin-top: 14px; max-width: 640px; font-size: 20px; line-height: 1.5; color: var(--text-2); }
.lbmeta { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 14px; color: var(--text-2); }

/* ---------- the tab bar ---------- */
.lbtabs { position: sticky; top: 64px; z-index: 20; background: color-mix(in srgb, var(--page) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.lbtabs .wrap { display: flex; align-items: stretch; }
.lbtabsin { display: flex; gap: 8px; margin-left: -14px; }
.lbtabs a { position: relative; display: flex; align-items: center; height: 52px; padding: 0 14px; font: 500 15px/1 var(--sans); letter-spacing: 0; color: var(--text-2); text-decoration: none; transition: color 150ms var(--ease-ui); }
.lbtabs a:hover { color: var(--ink); }
.lbtabs a[aria-current="page"] { color: var(--ink); }
.lbtabs a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--ink); }
/* under the tabs on /guides the hero comes up closer */
.lbg .ghero { padding-top: 56px; }

/* ---------- the front page ---------- */
.lbpage { padding-top: 40px; }
.lbhead { padding-bottom: 28px; }
.lbhead h1 { font-size: 64px; line-height: 1; font-weight: 600; }
/* the cover is a nafuda: the term set vertical in Noto Serif JP (a 10 KB subset of the characters used, OFL), the reading under it */
@font-face { font-family: "lbkanji"; font-weight: 600; font-display: swap; src: url(/site/library/kanji.woff2) format("woff2"); }
.lbcv, .lbhero { display: block; container-type: inline-size; }
.lbcover { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7cqw;
  aspect-ratio: 5 / 8; padding: 12cqw 8cqw 10cqw; border-radius: max(8px, 7cqw); background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.lbcover b { writing-mode: vertical-rl; text-orientation: upright; font: 600 min(44cqw, calc(108cqw / var(--n))) / 1 "lbkanji", "Hiragino Mincho ProN", "Yu Mincho", serif; letter-spacing: .06em; }
.lbcover > span { font: 500 max(14px, 8cqw) / 1.2 var(--sans); letter-spacing: .02em; text-align: center; color: var(--text-2); }
.lbcover.lb-stone { background: var(--stone); box-shadow: none; }
@container (max-width: 100px) { .lbcover > span { display: none; } .lbcover { justify-content: center; } }
.lbseal { position: absolute; right: 9cqw; bottom: 9cqw; width: 7cqw; height: 7cqw; min-width: 8px; min-height: 8px; border-radius: 2px; background: var(--aka); }
.lbfront a, .lblist a { text-decoration: none; color: var(--ink); }
.lbfront a:hover :is(h2, h3), .lblist a:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

.lbfront { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--hair); }
.lblead { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: end; }
.lblead .lbtx { display: block; max-width: 520px; padding-bottom: 8px; }
.lblead h2 { font-size: 48px; line-height: 1.05; font-weight: 600; }
.lblead p { margin-top: 12px; font-size: 19px; color: var(--text-2); }
.lblead .lbmeta { margin-top: 14px; }
.lbside { display: grid; gap: 0; align-content: start; padding-left: 48px; border-left: 1px solid var(--hair); }
.lbside .lbmid + .lbmid { border-top: 1px solid var(--hair); }

.lbrest { margin-top: 56px; font-size: 28px; font-weight: 600; }
.lblist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin: 16px 0 0; padding: 0; list-style: none; }
.lblist li { border-bottom: 1px solid var(--hair); }
/* every card but the lead: a small nafuda left of the words */
.lbrow, .lbmid { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px 0; }
.lbrow .lbtx, .lbmid .lbtx { display: block; }
:is(.lbrow, .lbmid) h3 { font-size: 20px; line-height: 1.25; font-weight: 600; }
:is(.lbrow, .lbmid) p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
:is(.lbrow, .lbmid) .lbmeta { margin-top: 8px; font-size: 14px; }

/* ---------- the changelog ---------- */
.lbmonths { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 20px; }
.lbmonths a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.lbmonth { margin-top: 24px; scroll-margin-top: 140px; }
.lbmonth h2 { padding: 16px 0 12px; font-size: 30px; font-weight: 600; border-bottom: 2px solid var(--ink); }
.lbchg { margin: 0; padding: 0; list-style: none; max-width: 900px; }
.lbchg li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.lbchg time { font-size: 14px; color: var(--text-2); padding-top: 2px; }
.lbchg h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.lbchg p { margin-top: 4px; color: var(--text-2); max-width: 680px; }

/* ---------- one article ---------- */
.lbart { padding-top: 40px; }
.lbcrumb a { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--text-2); text-decoration: none; }
.lbcrumb a:hover { color: var(--ink); }
.lbahead { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 48px; align-items: start; }
.lbart h1 { margin-top: 12px; font-size: 52px; line-height: 1.05; font-weight: 600; }
.lbahead .lbmeta { margin-top: 18px; }
.lbhero { margin-top: 44px; }

.lbbody { margin-top: 40px; font-size: 18px; line-height: 1.7; }
.lbbody > * + * { margin-top: 20px; }
.lbbody h2 { margin-top: 52px; font-size: 28px; line-height: 1.2; font-weight: 600; }
.lbbody > h2 + * { margin-top: 12px; }
.lbbody a { color: var(--ink); text-decoration-color: var(--aka); text-underline-offset: 3px; }
.lbbody b { font-weight: 600; }
.lbrule { margin: 0; padding: 28px 32px; border-radius: var(--r); background: var(--ink); color: var(--page); }
.lbrule p { font-family: var(--gt); font-size: 21px; line-height: 1.5; letter-spacing: -0.01em; }
.lbrule cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; color: color-mix(in srgb, var(--page) 72%, transparent); }
.lbbody > .lbq { margin-block: 40px; padding: 4px 0 4px 28px; border-left: 3px solid var(--aka); font-family: var(--gt); font-size: 28px; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.lbmore { padding: 20px 24px; border-radius: 12px; background: var(--stone); font-size: 16px; }

.lbbody > .lbfig, .lbbody > .lbbars { margin-block: 36px; }
.lbfig { margin: 0; padding: 28px; border-radius: var(--r); background: var(--stone); }
.lbfig.wide { margin-inline: calc(-1 * min(120px, (100vw - var(--col)) / 2 - 24px)); }
.lbfig figcaption, .lbbars figcaption { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.lbsvg { display: block; width: 100%; height: auto; overflow: visible; }
.lbshot img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--hair); background: var(--paper); }  /* a capture of the app: invented kendoka, the Mocanu brothers aside */
.lbsvg text { font-family: var(--sans); fill: var(--ink); }
.lbsvg .b { font-size: 15px; font-weight: 600; }
.lbsvg .m { font-size: 14px; fill: var(--text-2); }
.lbsvg .a { fill: var(--ai); font-weight: 600; }
.lbsvg .w { fill: #fff; }
.lbsvg .m.w { fill: var(--on-ai); }
.lbsvg .kj { font: 600 44px/1 "lbkanji", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; fill: var(--ink); }
.lbsvg .kj.w { fill: #fff; }
.lbsvg.ph { display: none; }
.lbsvg.br { max-width: 520px; margin-inline: auto; }
.lbsvg.sq { max-width: 400px; margin-inline: auto; }
.lbsvg.sq .m { font-size: 15px; }
.lbsvg.sq .b { font-size: 17px; }
.lbsvg.ph.sm { max-width: 420px; margin-inline: auto; }
.lbsvg.ph .kj { font-size: 32px; }

.lbbars { margin: 0; padding: 28px; border-radius: var(--r); background: var(--stone); }
.lbbars p { display: grid; grid-template-columns: 64px minmax(0, 1fr) 56px; align-items: center; gap: 16px; margin: 0; }
.lbbars p + p { margin-top: 14px; }
.lbbars b { font-family: var(--gt); font-size: 17px; }
.lbbars span:not(.lbf) { height: 14px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.lbbars .lbf { display: block; height: 100%; min-width: 4px; border-radius: 99px; background: var(--ink); }
.lbbars .lbn { font-family: var(--gt); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.lbt { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.lbt th { text-align: left; font-weight: 600; font-size: 14px; color: var(--text-2); padding: 10px 14px 10px 0; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.lbt td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.lbt td:first-child { font-weight: 500; }
.lbt tr.sum td { font-weight: 600; border-bottom: 0; border-top: 2px solid var(--ink); }
.lbt tr.sum td:last-child { font-weight: 500; }

.lbpool { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 16px; text-align: center; }
.lbpool th, .lbpool td { padding: 12px 8px; border: 1px solid var(--line-2); }
.lbpool thead th, .lbpool tbody th { font-family: var(--gt); font-weight: 600; background: var(--stone); }
.lbpool td.x { background: repeating-linear-gradient(135deg, var(--stone) 0 6px, var(--paper) 6px 12px); }
.lbpool td b { font-size: 18px; }
.lbpool td span { margin-left: 4px; font-size: 15px; color: var(--text-2); letter-spacing: .1em; }
.lbpool u { text-underline-offset: 3px; }

.lbd { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.lbd + .lbd { margin-top: 0; border-top: 0; }
.lbd summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; cursor: pointer; list-style: none; font-weight: 500; }
.lbd summary::-webkit-details-marker { display: none; }
.lbd summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-ui); }
.lbd[open] summary::after { transform: translateY(2px) rotate(225deg); }
.lbd p { padding-bottom: 18px; color: var(--text-2); font-size: 17px; }
.lbd p + p { margin-top: -6px; }

.lbdl { margin: 8px 0 0; }
.lbdl dt { margin-top: 22px; font-family: var(--gt); font-size: 20px; font-weight: 600; }
.lbdl dd { margin: 4px 0 0; }
.lbul, .lbol { padding-left: 22px; }
.lbul li + li, .lbol li + li { margin-top: 10px; }
.lbol li::marker { font-family: var(--gt); font-weight: 600; color: var(--ink); }

.lbsig { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-inline: calc(-1 * min(120px, (100vw - var(--col)) / 2 - 24px)); padding: 0; list-style: none; }
.lbsig li { display: flex; flex-direction: column; padding: 18px 18px 20px; border-radius: 14px; background: var(--stone); font-size: 15px; line-height: 1.45; }
.lbsig .fig { width: 100%; max-width: 128px; margin: 0 auto 14px; }
.lbsig b { font-family: var(--gt); font-size: 18px; }
.lbsig .lbn { margin-top: 2px; font-size: 14px; color: var(--aka-text); }
.lbsig span { margin-top: 6px; color: var(--text-2); }

/* the packing list: a heading, then rows of box and words; the cards grow with what they hold */
.lbchecks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin-inline: calc(-1 * min(120px, (100vw - var(--col)) / 2 - 24px)); }
.lbcheck { padding: 20px 20px 8px; border-radius: 14px; background: var(--stone); }
.lbcheck h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.lbcheck ul { margin: 0; padding: 0; list-style: none; }
.lbcheck li { border-top: 1px solid var(--silver); }
.lbcheck label { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 0; font-size: 15px; line-height: 1.45; cursor: pointer; }
.lbcheck input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.lbcheck label:has(input:checked) span { color: var(--text-2); text-decoration: line-through; }

.lbsrc { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--text-2); }
.lbrel { margin-top: 72px; padding-block: 48px 8px; border-top: 1px solid var(--hair); }
.lbrel h2 { font-size: 28px; font-weight: 600; }
.lbrel .lblist { grid-template-columns: minmax(0, 1fr); }
.lbrel .lbrow { grid-template-columns: 64px minmax(0, 1fr); padding: 16px 0; }
.lbjoin { margin: 32px 0 48px; color: var(--text-2); }
.lbjoin a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.lb:has(.lbrel) { padding-bottom: 0; }

@media (prefers-reduced-motion: reduce) { .lbd summary::after { transition: none; } }
@media (max-width: 1080px) {
  .lbfront { grid-template-columns: minmax(0, 1fr); }
  .lbside { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--hair); }
  .lbside .lbmid + .lbmid { border-top: 0; }
  .lbsig { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lbchecks { grid-template-columns: minmax(0, 1fr); }
  .lbfig.wide, .lbsig, .lbchecks { margin-inline: 0; }
}
@media (max-width: 760px) {
  .lblist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .lbtabs .wrap { padding: 0; }
  .lbtabsin { flex: 1; gap: 0; margin-left: 0; }
  .lbtabs a { flex: 1; justify-content: center; height: 48px; padding: 0 8px; }
  .lbtabs a[aria-current="page"]::after { left: 16px; right: 16px; }
  .lbg .ghero { padding-top: 32px; }
  .lbpage { padding-top: 32px; }
  .lbhead { padding-bottom: 24px; }
  .lbhead h1 { font-size: 44px; }
  .lbstand { font-size: 17px; }
  .lbfront { gap: 32px; padding-bottom: 40px; }
  .lblead { grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: center; }
  .lblead .lbtx { padding-bottom: 0; }
  .lblead h2 { font-size: 28px; }
  .lblead p { display: none; }
  .lbside { grid-template-columns: minmax(0, 1fr); }
  .lbside .lbmid + .lbmid { border-top: 1px solid var(--hair); }
  .lbrest { margin-top: 40px; font-size: 24px; }
  .lbrow, .lbmid { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
  :is(.lbrow, .lbmid) h3 { font-size: 18px; }
  :is(.lbrow, .lbmid) p { font-size: 14px; }
  .lbrel .lbrow { grid-template-columns: 56px minmax(0, 1fr); }
  .lbchg li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lbmonth h2 { font-size: 24px; }
  .lbart { padding-top: 20px; }
  .lbart h1 { font-size: 34px; }
  .lbahead { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lbhero { order: -1; width: 104px; margin: 16px 0 4px; }
  .lbsvg.sq { max-width: none; }
  .lbbody { font-size: 17px; }
  .lbbody h2 { margin-top: 44px; font-size: 24px; }
  .lbrule { margin-inline: -16px; border-radius: 0; padding: 24px 16px; }
  .lbrule p { font-size: 18px; }
  .lbbody > .lbq { font-size: 22px; padding-left: 18px; }
  .lbfig, .lbbars { margin-inline: -16px; padding: 20px 16px; border-radius: 0; }
  .lbfig.wide { margin-inline: -16px; }
  .lbsvg.dk { display: none; }
  .lbsvg.ph { display: block; }
  .lbsvg.sq .m { font-size: 22px; }
  .lbsvg.sq .b { font-size: 24px; }
  .lbsig { gap: 8px; }
  .lbsig li { padding: 14px 12px 16px; font-size: 14px; }
  .lbsig b { font-size: 16px; }
  .lbsig .lbn { font-size: 14px; }
  .lbchecks { margin-inline: -16px; }
  .lbcheck { border-radius: 0; padding-inline: 16px; }
  .lbt { font-size: 14px; }
  .lbt th { font-size: 14px; padding-right: 8px; }
  .lbt td { padding-right: 8px; }
  .lbpool { font-size: 14px; }
  .lbpool th, .lbpool td { padding: 10px 4px; }
}

/* ---------- the hub as an editorial home (MASTER 22): sections, the featured piece with the record beside it, three shelves ---------- */
.lbfeat { scroll-margin-top: 120px; }
.lbrec { align-self: start; padding-left: 48px; border-left: 1px solid var(--hair); }
.lbrec h3 { font-size: 20px; font-weight: 600; }
.lbnums { display: grid; gap: 10px; margin: 16px 0 20px; }
.lbnums span { color: var(--text-2); font-size: 15px; }
.lbnums b { display: block; font: 600 30px/1.1 var(--gt); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lbrec .lbbars { padding: 20px; }
.lbrec .lbbars p { grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 12px; }
.lbshelf { margin-top: 64px; scroll-margin-top: 120px; }
.lbshelf > header { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.lbshelf h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.lbshelf > header p { max-width: 520px; color: var(--text-2); text-align: right; }
.lbnews { margin-top: 40px; }
.lbnews h3 { font-size: 20px; font-weight: 600; }
.lbnews .lbchg li { padding: 16px 0; }
.lbnews .more { margin-top: 12px; }
@media (max-width: 1100px) { .lbrec { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--hair); } }
@media (max-width: 700px) {
  .lbshelf { margin-top: 48px; }
  .lbshelf > header { display: block; }
  .lbshelf > header p { margin-top: 6px; text-align: left; }
  .lbshelf h2 { font-size: 26px; }
  .lbnums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lbnums b { font-size: 22px; }
}

/* ---------- the hubs' search and chips, shared by /guides and /library (PL 11-22) ---------- */
.gfind { display: block; position: relative; margin-top: 32px; max-width: 720px; }
.gfind input { width: 100%; height: 60px; padding: 0 20px 0 56px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--paper); color: var(--ink);
  font: 400 18px/1 var(--sans); box-shadow: var(--card-edge); transition: border-color 150ms var(--ease-ui); -webkit-appearance: none; appearance: none; }
.gfind input::placeholder { color: var(--muted); }
.gfind input:focus { outline: none; border-color: var(--ink); }
.gfind svg { position: absolute; left: 20px; top: 19px; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; }
.gfind:not(.js) { display: none; }  /* the search needs site.js; without it the chips do the work */

/* the chips: who the guides are for (each with its product's mark) or the shelf, with their counts */
.gwho { position: sticky; top: 68px; z-index: 5; padding: 12px 0; background: color-mix(in srgb, var(--page) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line); }
.gwho fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.gwho label { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; transition: background 150ms var(--ease-ui), color 150ms var(--ease-ui); }
.gwho label small { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gwho label:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.gwho input { position: absolute; opacity: 0; pointer-events: none; }
.gwho label:has(input:checked) { background: var(--ink); color: var(--page); box-shadow: none; }
.gwho label:has(input:checked) small { color: color-mix(in srgb, var(--page) 70%, transparent); }
.gwho label:has(input:checked) .pm { color: var(--page); }
.searching .gwho label:has(input:checked) { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }  /* a search spans every reader */
.searching .gwho label:has(input:checked) small { color: var(--muted); }
.searching .gwho label:has(input:checked) .pm { color: var(--ink); }
.gwho label:has(input:focus-visible) { outline: 2px solid var(--aka); outline-offset: 2px; }

.gcount { min-height: 1px; margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.gnone { padding-block: 48px; color: var(--text-2); }
.gnone:not(.on) { display: none; }

/* ---------- the Articles hub as a visual index (PL 11-22): every article a tile with its cover, the featured one big beside the
   record's numbers, the shelves as chips, one search. A cover is the article's own drawing, a capture of the app on invented
   kendoka, or its striking number set big in ink ---------- */
.lbx .lbhead h1 { font-size: clamp(52px, 7vw, 96px); line-height: .95; font-weight: 650; letter-spacing: -0.05em; }
.lbx .lbstand { font-size: 19px; }
.lbx .lbfront { padding-top: 16px; border-bottom: 0; padding-bottom: 48px; }
.lbchips { position: static; margin: 0; padding: 12px 0; border-block: 1px solid var(--line); background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.lbcv3 { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: var(--stone); box-shadow: 0 0 0 1px var(--line); }
.lbcv3.dr { padding: 7% 8%; }
.lbcv3.dr svg { width: 100%; height: 100%; max-height: 100%; }
.lbcv3.sh img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 500ms var(--ease-out); }
.lbcv3.ty { align-content: center; justify-items: start; gap: 8px; padding: 0 9%; background: var(--ink); color: var(--page); box-shadow: none; }
.lbcv3.ty b { font: 700 clamp(56px, 6vw, 92px)/.95 var(--display); letter-spacing: -0.05em; }
.lbcv3.ty small { max-width: 22em; font-size: 15px; line-height: 1.4; color: color-mix(in srgb, var(--page) 72%, transparent); }
.lbcv3.ty::after { content: ""; position: absolute; right: 9%; bottom: 12%; width: 22px; height: 3px; border-radius: 2px; background: var(--aka); transform: rotate(-23.56deg); }
.lbtile { display: flex; flex-direction: column; gap: 14px; height: 100%; text-decoration: none; color: var(--ink); }
.lbtile .lbtx { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lbtile h3 { font-size: 20px; line-height: 1.25; font-weight: 600; }
.lbtile p { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.lbtile .lbmeta { margin-top: auto; padding-top: 4px; color: var(--muted); }
.lbtile.big h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; font-weight: 650; letter-spacing: -0.04em; }
.lbtile.big p { font-size: 18px; max-width: 34em; }
.lbtile.big .lbcv3 { aspect-ratio: 16 / 9; }
.lbtile.big .lbcv3.dr { padding: 5% 10%; }
.lbtile:hover :is(h2, h3), .lbtile:focus-visible :is(h2, h3) { text-decoration: underline; text-decoration-color: var(--aka); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lbtile:hover .lbcv3.sh img { transform: scale(1.03); }
.lbgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; margin: 24px 0 0; padding: 0; list-style: none; }
.lbx .lbshelf { margin-top: 56px; }
.lb:not(.searching):has(#sh-knowledge:checked) .lbshelf:not([data-s="knowledge"]), .lb:not(.searching):has(#sh-competitions:checked) .lbshelf:not([data-s="competitions"]),
.lb:not(.searching):has(#sh-product:checked) .lbshelf:not([data-s="product"]), .lb:not(.searching):not(:has(#sh-all:checked)) .lbfeat { display: none; }
.lb.searching .lbshelf:not(:has(.lbgrid > li:not([hidden]))), .lb.searching .lbnews, .lb.searching .lbrec { display: none; }
.lb.searching .lbfront { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
@media (prefers-reduced-motion: reduce) { .lbcv3.sh img { transition: none; } .lbtile:hover .lbcv3.sh img { transform: none; } }
@media (max-width: 1080px) { .lbgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .lbchips fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lbchips label { padding: 0 10px; font-size: 14px; } .lbchips label span { flex: 1; min-width: 0; }
  .lbgrid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lbgrid > li + li { border-top: 1px solid var(--line); }
  .lbgrid .lbtile { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; padding: 14px 0; align-items: start; }
  .lbgrid .lbcv3 { border-radius: 10px; }
  .lbgrid .lbcv3.ty { padding: 0 10px; }
  .lbgrid .lbcv3.ty b { font-size: 34px; }
  .lbgrid .lbcv3.ty small, .lbgrid .lbcv3.ty::after { display: none; }
  .lbgrid .lbcv3.dr { padding: 6px; }
  .lbgrid .lbtile h3 { font-size: 17px; }
  .lbgrid .lbtile p { display: none; }
  .lbtile.big p { font-size: 16px; }
}
/* the hubs' head (PL 11-22): the title beside its line and the search, so the featured row starts in the first screen */
@media (min-width: 1000px) {
  .ghero .wrap, .lbx .lbhead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 56px; align-items: end; }
  .ghero h1, .lbx .lbhead h1 { grid-row: 1 / span 2; }
  .ghero .lead, .lbx .lbstand { margin-top: 0; }
  .ghero .gfind, .lbx .lbfind { margin-top: 14px; max-width: none; }
  .lbg .ghero { padding-top: 48px; padding-bottom: 32px; }
  .lbx.lb .lbpage { padding-top: 48px; }
}
.lb [hidden], .gd [hidden] { display: none !important; }
/* a phone: the chips are even cells, two to a row (never a sideways strip); this comes after the shared chip rules so it wins */
@media (max-width: 700px) {
  .gwho fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gwho label { padding: 0 10px; font-size: 14px; }
  .gwho label span { flex: 1; min-width: 0; }
}
