@import url("/fonts/jia-fonts.css");

:root {
  --ink:#142536; --muted:#5e7182; --navy:#102a43; --accent:#e43d4f;
  --accent-deep:#c7293c; --line:#dce5eb; --wash:#f3f7f9; --paper:#fff;
  --body-font:"Noto Sans Thai","Leelawadee UI",Tahoma,sans-serif;
  --heading-font:var(--body-font); color-scheme:light;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:7rem; }
body { margin:0; color:var(--ink); background:var(--wash); font:400 1.0625rem/1.85 var(--body-font); }
[hidden] { display:none!important; }
a { color:var(--navy); text-underline-offset:.24em; text-decoration-thickness:1px; }
a:hover { color:var(--accent-deep); }
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
button,input { font:inherit; }
.library-header { position:sticky; top:0; z-index:20; border-bottom:1px solid var(--line); background:rgba(255,255,255,.97); }
.library-nav { width:min(1180px,calc(100% - 40px)); margin:auto; min-height:82px; display:flex; align-items:center; gap:26px; }
.library-brand { display:flex; align-items:center; gap:12px; margin-right:auto; text-decoration:none; flex-shrink:0; }
.library-brand img { display:block; width:64px; height:50px; object-fit:contain; }
.library-brand span { display:grid; line-height:1.25; }
.library-brand b { font:700 1.4rem/1.2 var(--heading-font); color:var(--navy); }
.library-brand small { font-size:.75rem; color:var(--muted); margin-top:4px; }
.library-links { display:flex; align-items:center; gap:24px; }
.library-links a { font-size:.9rem; font-weight:600; text-decoration:none; white-space:nowrap; }
.library-lang { border:1px solid var(--line); padding:5px 12px; border-radius:9px; font-size:.875rem; text-decoration:none; }
.library-menu { display:none; }
.library-menu summary { padding:8px 14px; border:1px solid var(--line); border-radius:10px; list-style:none; cursor:pointer; font-weight:600; }
.library-menu summary::-webkit-details-marker { display:none; }
.library-menu nav { position:absolute; top:100%; left:0; right:0; padding:18px 24px; display:grid; gap:8px; background:white; border-bottom:1px solid var(--line); box-shadow:0 18px 30px #102a4310; }
.library-menu nav a { padding:8px 0; text-decoration:none; }
main { width:min(1180px,calc(100% - 40px)); margin:auto; padding:38px 0 80px; min-height:58vh; }
.breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:24px; font-size:.875rem; color:var(--muted); }
.breadcrumb a { text-decoration:none; }
.breadcrumb span::before { content:"/"; color:#9aa9b5; margin-right:10px; }
h1,h2,h3 { font-family:var(--heading-font); color:var(--navy); }
h1 { margin:0 0 22px; font-size:clamp(1.8rem,3.4vw,2.8rem); font-weight:700; line-height:1.4; letter-spacing:-.025em; text-wrap:balance; }
h2 { margin:0 0 18px; font-size:clamp(1.3rem,2.2vw,1.65rem); line-height:1.5; }
h3 { font-size:1.15rem; line-height:1.55; }
.library-intro { padding:18px 0 32px; max-width:900px; }
.library-intro h1 { margin-bottom:18px; }
.library-intro .library-description { margin:0; max-width:640px; color:var(--muted); }
.library-toolbar { margin-bottom:24px; padding:24px; border:1px solid var(--line); border-radius:18px; background:white; box-shadow:0 7px 24px #102a4305; }
.library-toolbar label { display:block; margin-bottom:8px; color:var(--navy); font-size:.95rem; font-weight:600; }
.library-search-row { display:flex; gap:10px; align-items:stretch; }
.library-search-row input { flex:1; min-width:0; width:100%; height:52px; border:1px solid #bacbd7; border-radius:12px; padding:10px 16px; color:var(--ink); background:#fff; outline-offset:3px; }
.library-clear { padding:8px 18px; border:1px solid var(--line); border-radius:12px; background:var(--wash); color:var(--navy); cursor:pointer; font-size:.9rem; }
.library-result { margin:10px 0 0; font-size:.875rem; color:var(--muted); }
.categories,.jump { display:flex; flex-wrap:wrap; gap:9px; padding:0; margin:20px 0 0; }
.categories a,.jump a { display:inline-flex; align-items:center; min-height:40px; padding:7px 14px; border:1px solid var(--line); border-radius:10px; background:white; color:var(--navy); text-decoration:none; font-size:.875rem; font-weight:500; }
.categories a:hover,.jump a:hover { border-color:var(--accent); color:var(--accent-deep); background:#fff7f8; }
.library-directory > section { margin:36px 0 0; scroll-margin-top:110px; }
.library-directory section h2 { display:flex; align-items:center; gap:12px; }
.library-directory section h2::before { content:""; width:4px; height:22px; border-radius:3px; background:var(--accent); flex:none; }
.library-directory ul,.library-directory .collection { list-style:none; margin:0; padding:0; columns:unset; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.library-directory li { min-width:0; margin:0; border:1px solid var(--line); border-radius:14px; background:white; transition:border-color .18s,box-shadow .18s; }
.library-directory li:hover { border-color:#a7bccb; box-shadow:0 7px 20px #102a4308; }
.library-directory li>a { display:flex; align-items:center; gap:16px; padding:17px 20px; min-height:74px; height:100%; font-size:1rem; font-weight:500; color:var(--navy); line-height:1.6; text-decoration:none; overflow-wrap:break-word; }
.library-directory li>a:hover { color:var(--accent-deep); }
.library-directory .entry-image { width:78px; height:78px; flex:0 0 78px; display:block; object-fit:contain; border-radius:9px; background:white; }
article { max-width:1000px; margin:auto; padding:clamp(24px,4vw,52px); background:var(--paper); border:1px solid var(--line); border-radius:22px; box-shadow:0 12px 40px #102a4305; overflow-wrap:break-word; }
article>h1 { max-width:850px; margin-bottom:30px; }
.article-body { max-width:780px; margin:28px auto 0; }
.article-body p { margin:.9em 0; }
.article-body div { min-width:0; }
.article-body a { overflow-wrap:anywhere; }
.article-body h2 { margin-top:2rem; }
.article-body ul,.article-body ol { padding-left:1.5em; columns:unset; }
.article-body li { margin:.5em 0; }
article img { display:block; max-width:100%; height:auto; object-fit:contain; margin:20px auto; }
article .image-link { display:block; width:fit-content; max-width:100%; margin:0 auto; }
article .image-link:focus-visible { border-radius:6px; }
article .image-link img { cursor:zoom-in; }
.article-meta { color:var(--muted); font-size:.875rem; padding-bottom:16px; border-bottom:1px solid var(--line); }
article aside { margin:22px 0; padding:16px 20px; border-left:4px solid var(--accent); background:#fff6f7; border-radius:0 10px 10px 0; font-size:.95rem; line-height:1.7; }
.actions { margin:24px 0; padding:22px; background:var(--wash); border:1px solid var(--line); border-radius:16px; }
.actions strong { display:block; margin-bottom:10px; font-size:.95rem; color:var(--muted); }
.actions p { margin:8px 0; }
.actions a { display:inline-block; padding:8px 0; font-weight:600; font-size:.95rem; }
.actions a[href^="/products/"],.actions a[href^="/quote"] { display:inline-flex; align-items:center; min-height:44px; padding:11px 18px; border-radius:11px; color:white; background:var(--accent); text-decoration:none; line-height:1.5; }
.actions a[href^="/products/"]:hover,.actions a[href^="/quote"]:hover { background:var(--accent-deep); color:white; }
.article-product-hero { display:grid; grid-template-columns:1.15fr .85fr; gap:36px; align-items:center; }
.article-product-hero h1 { margin:0 0 20px; font-size:clamp(1.65rem,2.9vw,2.25rem); }
.article-product-hero .actions { margin:0; }
.article-product-image { background:white; border:1px solid var(--line); border-radius:18px; margin:0; padding:20px; }
.article-product-image img { width:100%; height:280px; margin:0; object-fit:contain; }
.document-actions { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0; padding:0 0 24px; border-bottom:1px solid var(--line); }
.document-actions a,.document-actions summary { display:inline-flex; align-items:center; min-height:44px; padding:10px 16px; color:var(--navy); background:#edf3f7; border:1px solid #d5e2ea; border-radius:10px; text-decoration:none; font-size:.9rem; font-weight:600; line-height:1.6; overflow-wrap:anywhere; }
.document-actions a:hover { background:#e1ebf2; }
.document-actions details { width:100%; }
.document-actions details>div { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.document-actions summary { cursor:pointer; }
.table-scroll { max-width:100%; overflow:auto; margin:22px 0; border:1px solid var(--line); border-radius:10px; }
table { border-collapse:collapse; width:100%; font-size:.95rem; }
td,th { min-width:100px; padding:12px 14px; border:1px solid var(--line); text-align:left; vertical-align:top; }
th { background:var(--wash); font-weight:600; }
pre { max-width:100%; overflow:auto; padding:18px; background:var(--wash); border-radius:12px; }
.library-footer { padding:38px 0 24px; background:var(--navy); color:white; }
.library-footer-inner { width:min(1180px,calc(100% - 40px)); margin:auto; display:grid; grid-template-columns:1fr auto; gap:24px; align-items:start; }
.library-footer p { margin:0 0 8px; font-size:.875rem; color:#cfdae4; }
.library-footer strong { display:block; margin-bottom:8px; font-size:1rem; }
.library-footer-links { display:flex; flex-wrap:wrap; gap:12px 22px; }
.library-footer a { color:white; font-size:.9rem; text-decoration:none; }
.library-footer a:hover { color:#ffcbd0; }
.library-empty { padding:24px; border:1px dashed #bccbd6; border-radius:14px; background:white; color:var(--muted); }
@media(max-width:900px) {
  .library-links { gap:16px; }
  .library-nav { gap:14px; }
  .library-brand small { display:none; }
  .library-brand b { font-size:1.2rem; }
  .library-links a { font-size:.85rem; }
  .library-brand img { width:54px; height:44px; }
}
@media(max-width:700px) {
  html { scroll-padding-top:6rem; }
  body { font-size:1rem; line-height:1.85; }
  .library-nav { min-height:72px; width:calc(100% - 28px); gap:10px; }
  .library-links { display:none; }
  .library-menu { display:block; font-size:.9rem; }
  .library-lang { padding:5px 9px; font-size:.8rem; }
  main { width:calc(100% - 28px); padding:24px 0 50px; }
  h1 { font-size:1.8rem; line-height:1.5; text-wrap:pretty; }
  .library-intro { padding:8px 0 22px; }
  .library-toolbar { padding:18px; border-radius:15px; }
  .library-search-row input { height:48px; font-size:1rem; }
  .library-clear { padding:8px 12px; }
  .library-directory ul,.library-directory .collection { grid-template-columns:1fr; gap:10px; }
  .library-directory li>a { padding:15px 17px; min-height:66px; }
  .library-directory .entry-image { width:64px; height:64px; flex-basis:64px; }
  article { padding:24px 19px; border-radius:17px; }
  article>h1 { margin-bottom:22px; }
  .article-body { margin-top:22px; }
  .article-product-hero { grid-template-columns:1fr; gap:22px; }
  .article-product-image { grid-row:2; padding:14px; }
  .article-product-image img { height:220px; }
  .article-product-hero h1 { font-size:1.75rem; line-height:1.5; }
  .actions { padding:17px; margin:20px 0; }
  .actions a[href^="/products/"],.actions a[href^="/quote"] { width:100%; justify-content:center; text-align:center; }
  .document-actions { margin-block:22px; }
  .document-actions>a { width:100%; }
  .library-footer-inner { width:calc(100% - 36px); grid-template-columns:1fr; }
  .library-footer-links { gap:12px 18px; }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; } * { transition:none!important; }
}
@media print {
 body { background:white; color:black; }
 .library-header,.library-footer,.breadcrumb,.design-ui { display:none!important; }
 main { width:100%; padding:0; }
 article { max-width:none; border:0; box-shadow:none; padding:0; }
 article img { break-inside:avoid; }
}

:root{--ink:#172126;--muted:#617076;--navy:#15262b;--accent:#d5232f;--accent-deep:#a70f1d;--line:#e6e0d9;--wash:#f7f3ed;--body-font:"Sarabun",sans-serif;--heading-font:"Prompt","Sarabun",sans-serif;}

.library-directory article { max-width:none; background:transparent; border:0; padding:0; box-shadow:none; }
.archive-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-block:20px; }
.archive-card { min-width:0; padding:20px; border:1px solid var(--line); border-radius:16px; background:white; overflow-wrap:break-word; }
.archive-card img { width:100%; height:180px; margin:0 0 18px; object-fit:contain; }
.archive-card h3 { margin:12px 0; font-size:1.1rem; }
.archive-card p { color:var(--muted); font-size:.875rem; }
.archive-card a { text-decoration:none; }
.archive-card a:hover { color:var(--accent-deep); }
@media(max-width:700px) { .archive-card-grid { grid-template-columns:1fr; } }

.document-button{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:#edf3f7;color:var(--navy);text-decoration:none;font-size:.95rem;font-weight:600;}
.document-actions>a:first-child,.document-button{background:var(--accent);border-color:var(--accent);color:white;}.document-actions>a:first-child:hover,.document-button:hover{background:var(--accent-deep);color:white;}

/* Reading themes: reference artwork stays outside the reading surface. */
.library-page {
  --reading-size:1.125rem; --reading-line:1.95; --hero-text:#fff7e7;
  --hero-muted:#d9e2e7; --hero-kicker:#ebc989; --theme-border:#d9d2c8;
  font-size:1.125rem; line-height:1.9;
}
.theme-content {
  --ink:#302b27; --muted:#6d5e53; --navy:#623b29; --accent:#aa4827;
  --accent-deep:#81351e; --line:#e5d8cb; --wash:#f5eee6; --paper:#fffdf9;
  --hero-text:#35291f; --hero-muted:#685344; --hero-kicker:#9c4326;
  --theme-art:url('/reading-themes/content-hero-v1.webp');
  background:radial-gradient(ellipse at 100% 10%,#e9d1bd55,transparent 50%),#f5eee6;
}
.theme-manual {
  --ink:#24313b; --muted:#5d6871; --navy:#253f51; --accent:#a67530;
  --accent-deep:#78501b; --line:#dad7cf; --wash:#f2f1eb; --paper:#fffefa;
  --theme-art:url('/reading-themes/manuals-hero-v1.webp');
  background:radial-gradient(ellipse at 100% 15%,#ac805828,transparent 45%),#202c36;
}
.theme-lesson {
  --ink:#213638; --muted:#5b6d6e; --navy:#1a5058; --accent:#2b777e;
  --accent-deep:#17535a; --line:#d6e2df; --wash:#edf4f0; --paper:#fffef9;
  --hero-kicker:#edcf91; --hero-text:#fff7e6; --hero-muted:#d1e3e3;
  --theme-art:url('/reading-themes/lessons-hero-v1.webp');
  background:radial-gradient(ellipse at 0 5%,#1a596655,transparent 45%),#071f2b;
}
.library-page main { padding-top:24px; }
.library-page .library-header { backdrop-filter:blur(18px); }
.theme-content .library-header { background:#fffaf3ed; border-color:#e3d6c8; }
.theme-manual .library-header,.theme-lesson .library-header { background:#142733ed; border-color:#ffffff26; }
.theme-lesson .library-header { background:#071f2bed; }
.theme-manual .library-brand b,.theme-lesson .library-brand b,
.theme-manual .library-links a,.theme-lesson .library-links a,
.theme-manual .library-lang,.theme-lesson .library-lang,
.theme-manual .library-menu summary,.theme-lesson .library-menu summary { color:#fff4df; }
.theme-manual .library-brand small,.theme-lesson .library-brand small { color:#cad6db; }
.theme-manual .library-lang,.theme-lesson .library-lang,
.theme-manual .library-menu summary,.theme-lesson .library-menu summary { border-color:#ffffff42; background:#ffffff08; }
.theme-manual .library-menu nav { background:#20313e; }
.theme-lesson .library-menu nav { background:#0d3440; }
.theme-manual .library-menu nav a,.theme-lesson .library-menu nav a { color:#fff4df; }
.theme-manual .breadcrumb,.theme-lesson .breadcrumb,
.theme-manual .breadcrumb a,.theme-lesson .breadcrumb a { color:#d3dfe4; }
.library-page .library-brand small { font-size:.875rem; letter-spacing:.015em; }
.library-page .library-brand img { width:58px; height:48px; padding:6px; background:#fff; border:1px solid #ffffff6b; border-radius:13px; }
.library-page .library-links a { font-size:.9375rem; }
.library-page .library-intro,.library-page .article-heading {
  position:relative; isolation:isolate; overflow:hidden; max-width:none;
  background-color:#18303c; background-image:var(--theme-art);
  background-position:center; background-size:cover;
  padding:52px 56px 58px; border:1px solid #ffffff38; border-radius:26px;
}
.theme-content .library-intro,.theme-content .article-heading { background-color:#f2e7da; border-color:#e4d4c4; }
.library-page .library-intro { margin:0 0 28px; min-height:290px; display:flex; flex-direction:column; justify-content:center; }
.library-page .article-heading { border:0; border-radius:0; min-height:275px; display:flex; flex-direction:column; justify-content:center; }
.library-page .library-intro h1,.library-page .article-heading h1 {
  position:relative; max-width:760px; margin:12px 0 16px;
  font-size:clamp(2rem,3.7vw,3rem); line-height:1.55; letter-spacing:-.015em;
  color:var(--hero-text); text-wrap:pretty;
}
.library-page .theme-eyebrow {
  display:flex; align-items:center; gap:10px; margin:0;
  font-size:.875rem; font-weight:600; letter-spacing:.06em; color:var(--hero-kicker);
}
.library-page .theme-eyebrow::before { content:""; width:26px; height:1px; background:currentColor; }
.library-page .theme-description { max-width:620px; margin:0; color:var(--hero-muted); font-size:1.0625rem; line-height:1.85; }
.theme-manual .library-toolbar,.theme-lesson .library-toolbar {
  background:#ffffff0d; border:1px solid #ffffff36; border-radius:22px;
  box-shadow:0 12px 40px #00000010; backdrop-filter:blur(14px);
}
.theme-manual .library-toolbar label,.theme-lesson .library-toolbar label { color:#fff3dc; }
.theme-manual .library-result,.theme-lesson .library-result { color:#c5d7de; }
.theme-manual .categories a,.theme-manual .jump a,
.theme-lesson .categories a,.theme-lesson .jump a { color:#edf4f3; border-color:#ffffff33; background:#ffffff09; font-size:.9375rem; }
.theme-manual .categories a:hover,.theme-manual .jump a:hover { background:#b98a4c28; color:#ffdc9e; border-color:#d1ad72; }
.theme-lesson .categories a:hover,.theme-lesson .jump a:hover { background:#2d7d8055; color:#f6ddb0; border-color:#9ab9ac; }
.theme-content .library-toolbar { border-radius:22px; background:#fffcf7; padding:28px; box-shadow:0 10px 28px #78451b05; }
.library-page .library-search-row input { min-height:56px; border-radius:13px; font-size:1.0625rem; }
.library-page .library-clear { font-size:1rem; min-height:48px; }
.library-page .library-directory>section { margin-top:42px; }
.theme-manual.library-directory>main>section>h2,.theme-lesson.library-directory>main>section>h2 { color:#f5e9ce; }
.theme-manual.library-directory>main>section>h2::before,.theme-lesson.library-directory>main>section>h2::before { background:#d6b273; }
.library-page .library-directory li>a,.library-directory li>a { font-size:1.0625rem; line-height:1.85; padding:21px 24px; }
.library-directory li,.archive-card { border-radius:18px; }
.theme-manual.library-directory li,.theme-manual .archive-card { background:linear-gradient(145deg,#ffffff16,#ffffff07); border-color:#ffffff36; box-shadow:0 12px 24px #00000010; }
.theme-lesson.library-directory li,.theme-lesson .archive-card { background:linear-gradient(145deg,#154451,#10333f); border-color:#9dbbb83b; box-shadow:0 12px 24px #00000013; }
.theme-manual.library-directory li>a,.theme-manual .archive-card a,.theme-manual .archive-card h3,
.theme-lesson.library-directory li>a,.theme-lesson .archive-card a,.theme-lesson .archive-card h3 { color:#fff3dd; }
.theme-manual.library-directory li>a:hover,.theme-lesson.library-directory li>a:hover { color:#ffdb9b; }
.theme-manual .archive-card p,.theme-lesson .archive-card p { color:#cfdbdd; }
.theme-manual.library-directory li:hover,.theme-lesson.library-directory li:hover { border-color:#dab77e; }
.theme-content.library-directory li,.theme-content .archive-card { background:#fffdf8; border-color:#e6d8c8; box-shadow:0 7px 20px #72401806; }
.theme-content .entry-image { background:#f5eee6; }
.library-page .archive-card { padding:26px; }
.library-page .archive-card h3 { font-size:1.1875rem; line-height:1.8; }
.library-page .archive-card p { font-size:1rem; line-height:1.9; }
.library-page .archive-card img { border-radius:12px; height:190px; background:#fff; }
.library-article article { max-width:1040px; padding:0; border-radius:26px; overflow:hidden; border:1px solid var(--line); box-shadow:0 20px 55px #00000015; background:var(--paper); }
.library-article .reading-paper { padding:38px clamp(24px,5vw,70px) 62px; }
.library-article .article-body { max-width:730px; margin:0 auto; color:var(--ink); font-size:var(--reading-size); line-height:var(--reading-line); }
.library-article .article-body [style*="font-size"],.library-article .article-body [style*="font-family"] { font-size:inherit!important; font-family:inherit!important; line-height:inherit!important; }
.library-article .article-body p { margin:0 0 1.25em; }
.library-article .article-body p:empty { display:none; }
.library-article .article-body h2 { margin:2.2em 0 .8em; font-size:1.5em; line-height:1.65; }
.library-article .article-body h3 { margin:1.8em 0 .7em; font-size:1.22em; line-height:1.7; }
.library-article .article-body li { margin:.7em 0; }
.library-article .article-meta { font-size:.875rem; line-height:1.9; color:var(--muted); }
.library-article article img { border-radius:10px; margin:28px auto; }
.library-article .article-body a:not(.image-link) { text-decoration:underline; text-decoration-color:#869997; text-underline-offset:.22em; }
.library-article .article-body .document-button { text-decoration:none; }
.library-article .article-product-hero { padding:36px 42px 0; }
.library-article .document-actions { margin-top:0; padding-bottom:26px; }
.library-article .document-actions a,.library-article .document-button { font-size:1rem; border-radius:12px; background:var(--wash); border-color:var(--line); color:var(--navy); }
.library-article article aside { font-size:1rem; line-height:1.9; padding:20px 24px; background:var(--wash); }
.library-article .reader-tools { display:flex; flex-wrap:wrap; gap:9px; align-items:center; max-width:730px; margin:0 auto 28px; padding-bottom:20px; border-bottom:1px solid var(--line); font-size:.875rem; color:var(--muted); }
.reader-tools>span { margin-right:auto; }
.reader-tools button { font-size:.9375rem; font-weight:500; min-height:44px; padding:7px 13px; border-radius:10px; border:1px solid var(--line); color:var(--navy); background:var(--paper); cursor:pointer; }
.reader-tools button[aria-pressed="true"] { background:var(--navy); border-color:var(--navy); color:#fff; }
.library-page[data-reading-size="large"] { --reading-size:1.3125rem; }
.reader-toc { max-width:730px; margin:0 auto 30px; padding:17px 21px; border:1px solid var(--line); border-radius:13px; background:var(--wash); }
.reader-toc summary { font-size:1rem; font-weight:600; cursor:pointer; color:var(--navy); }
.reader-toc nav { display:grid; gap:12px; margin-top:18px; }
.reader-toc a { font-size:1rem; line-height:1.8; text-decoration:none; }
.theme-manual .library-footer { background:#172630; border-top:1px solid #ffffff20; }
.theme-lesson .library-footer { background:#061922; border-top:1px solid #ffffff20; }
.theme-content .library-footer { background:#44382e; }
.library-footer p,.library-footer a { font-size:.9375rem; line-height:1.85; }
@media(max-width:700px) {
  .library-page { --reading-size:1.0625rem; font-size:1.0625rem; }
  .library-page main { width:calc(100% - 28px); padding-top:18px; }
  .library-page .library-intro { min-height:285px; margin-bottom:22px; padding:30px 24px 38px; border-radius:21px; background-position:42% center; }
  .library-page .article-heading { min-height:245px; padding:30px 25px 36px; background-position:40% center; }
  .library-page .library-intro h1,.library-page .article-heading h1 { font-size:1.9375rem; line-height:1.6; margin:12px 0 16px; }
  .library-page .theme-description { font-size:1rem; line-height:1.9; }
  .library-page .theme-eyebrow { font-size:.875rem; letter-spacing:.025em; }
  .theme-lesson .library-intro,.theme-lesson .article-heading { background-position:35% center; }
  .theme-lesson .library-intro::before,.theme-lesson .article-heading::before {
    content:""; position:absolute; inset:0; z-index:-1;
    background:linear-gradient(90deg,#061d2cc9,#061d2c88 75%,#061d2c33);
  }
  .theme-content .library-intro::before,.theme-content .article-heading::before {
    content:""; position:absolute; inset:0; z-index:-1; background:#fff8edb8;
  }
  .library-page .library-toolbar { padding:21px 18px; border-radius:18px; }
  .library-page .library-search-row { flex-wrap:wrap; }
  .library-page .library-search-row input { flex-basis:100%; height:52px; }
  .library-page .library-clear { width:100%; }
  .library-page .categories a,.library-page .jump a { font-size:.9375rem; min-height:44px; padding:8px 12px; }
  .library-page .library-result { font-size:.9375rem; }
  .library-directory li>a { padding:19px 18px; gap:14px; font-size:1rem; line-height:1.85; }
  .library-page .archive-card { padding:23px; }
  .library-page .archive-card img { height:175px; }
  .library-article article { border-radius:20px; }
  .library-article .reading-paper { padding:26px 21px 38px; }
  .library-article .article-product-hero { padding:25px 22px 0; }
  .library-article .article-body { line-height:1.95; }
  .library-article .article-body h2 { font-size:1.35em; }
  .library-article .article-body h3 { font-size:1.18em; }
  .library-article article aside { padding:17px 18px; }
  .library-article .reader-tools { gap:8px; margin-bottom:24px; }
  .reader-tools>span { flex-basis:100%; }
  .reader-tools button { flex:1; font-size:.875rem; }
  .library-page[data-reading-size="large"] { --reading-size:1.25rem; }
  .library-page .library-brand small { display:none; }
}
@media print {
  .library-page,.library-article article,.library-page .article-heading { background:#fff!important; color:#000!important; box-shadow:none; }
  .library-page .article-heading { padding:0; min-height:0; }
  .library-page .article-heading h1 { color:#000; }
  .library-article .reading-paper { padding:20px 0; }
  .reader-tools,.reader-toc,.theme-eyebrow,.theme-description { display:none!important; }
}
