/* Readable, print-friendly companion to the interactive journal catalog. */
.ebook-shell { max-width: 1160px; }
.ebook { color: #193052; font-size: 1.03rem; line-height: 1.75; }
.ebook * { box-sizing: border-box; }
.ebook p { max-width: 78ch; margin: .72rem 0 1rem; }
.ebook a { color: #075aa5; text-underline-offset: .18em; overflow-wrap: anywhere; }
.ebook a:hover { color: #073778; }
.ebook strong { color: #132d55; }
.ebook-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(2rem, 5vw, 4.6rem); margin: 1.2rem 0 2rem;
  border: 1px solid #b4d8f5; border-radius: 32px;
  background: radial-gradient(circle at 90% 0%, #8ad9f9 0, transparent 38%),
              linear-gradient(125deg, #071f53 0%, #105d9b 54%, #18a6a8 100%);
  box-shadow: 0 26px 65px #113c7d2d, inset 0 2px 0 #ffffff9c;
  color: white;
}
.ebook-hero::after {
  content: "✦"; position: absolute; z-index: -1; right: 3%; top: 0;
  font-size: clamp(10rem, 28vw, 23rem); line-height: 1; color: #ffffff15;
  transform: rotate(-12deg);
}
.ebook-hero :is(h1, strong, a) { color: white; }
.ebook-hero h1 { max-width: 21ch; margin: .4rem 0 .9rem; font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.1; letter-spacing: -.03em; }
.ebook-hero p { max-width: 68ch; color: #e4f7ff; font-size: 1.1rem; }
.ebook-hero :is(.section-kicker, .eyebrow, .ebook-eyebrow) { color: #bdf7f4; font-weight: 800; letter-spacing: .13em; }
.ebook-hero-actions, .ebook-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.5rem; }
.ebook :is(.ebook-hero-actions, .ebook-actions) a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1rem; border-radius: 13px; border: 1px solid #ffffff80; background: #ffffffed; box-shadow: 0 8px 20px #00194545; color: #093a79; font-weight: 800; text-decoration: none; }
.ebook :is(.ebook-hero-actions, .ebook-actions) a:hover { transform: translateY(-2px); background: white; color: #062b66; }
.ebook :is(.ebook-hero-actions, .ebook-actions) a + a { background: #ffffff19; color: white; }
.ebook :is(.ebook-hero-actions, .ebook-actions) a + a:hover { background: #ffffff35; color: white; }
.ebook-quicklinks { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.35rem; padding-top: 1.15rem; border-top: 1px solid #ffffff50; }
.ebook-quicklinks a { display: inline-flex; align-items: center; min-height: 42px; padding: .45rem .75rem; border: 1px solid #c7f5ff99; border-radius: 10px; background: #ffffff1a; color: #fff; font-size: .87rem; font-weight: 750; text-decoration: none; line-height: 1.3; }
.ebook-quicklinks a:hover, .ebook-quicklinks a:focus-visible { background: #ffffff32; color: #fff; outline-offset: 3px; }
.ebook-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .65rem; padding: 1.15rem; margin: 2rem 0; border: 1px solid #cfdfef; border-radius: 23px; background: #f5faff; box-shadow: 0 12px 28px #20588913; }
.ebook-toc > :is(h2, p) { grid-column: 1 / -1; margin: 0; }
.ebook-toc h2 { font-size: 1.25rem; }
.ebook-toc ol { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .5rem 1.4rem; max-width: none; margin: 0; padding-left: 1.4rem; }
.ebook-toc li { margin: 0; }
.ebook-toc a { display: flex; align-items: center; min-height: 48px; padding: .6rem .8rem; border: 1px solid #d8e8f5; border-radius: 12px; background: white; color: #164a82; font-weight: 700; text-decoration: none; line-height: 1.35; }
.ebook-toc a:hover { background: #e6f5ff; border-color: #7bc2ee; }
.ebook > section { margin: 2.6rem 0; padding: 0 0 1.6rem; border-bottom: 1px solid #dce8f3; scroll-margin-top: 100px; }
.ebook > section:last-child { border: 0; }
.ebook h2 { max-width: 34ch; margin: 0 0 1rem; font-size: clamp(1.55rem, 2.8vw, 2.2rem); line-height: 1.2; color: #0b376c; letter-spacing: -.02em; }
.ebook h3 { margin: 1.5rem 0 .5rem; font-size: 1.22rem; color: #176085; line-height: 1.3; }
.ebook h4 { margin: 1.1rem 0 .45rem; color: #234b72; }
.ebook :is(ul, ol) { padding-left: 1.45rem; max-width: 85ch; }
.ebook li { padding-left: .18rem; margin: .35rem 0; }
.ebook li::marker { color: #0c7eaa; font-weight: 800; }
.ebook :is(.ebook-callout, aside) { max-width: 88ch; margin: 1.3rem 0; padding: 1rem 1.2rem; border-left: 5px solid #1aa6bd; border-radius: 0 14px 14px 0; background: #eaf7fb; box-shadow: 0 8px 18px #1b5c7d11; }
.ebook .ebook-notice { max-width: none; border-color: #d19820; background: #fff9e9; }
.ebook-chapter { color: #0b8b9b; font-size: .78rem; font-weight: 900; letter-spacing: .14em; }
.ebook :is(.ebook-source-map, .ebook-case) { max-width: 100%; padding: 1.1rem 1.25rem; margin: 1.25rem 0; border: 1px solid #c8ddf0; border-radius: 18px; background: linear-gradient(135deg, #f8fbff, #edf7ff); box-shadow: 0 11px 25px #1a50991b; }
.ebook-source-map h3, .ebook-case h3 { margin-top: 0; }
.ebook-two-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.ebook-two-paths > * { margin: 0; padding: 1.1rem 1.25rem; border: 1px solid #c8ddf0; border-radius: 18px; background: #f8fbff; box-shadow: 0 9px 20px #1a509917; }
.ebook .ebook-example { padding: 1.1rem 1.25rem; margin: 1.4rem 0; border: 1px solid #c8ddf0; border-radius: 18px; background: linear-gradient(135deg, #f8fbff, #edf7ff); box-shadow: 0 11px 25px #1a50991b; }
.ebook .ebook-example h3 { margin-top: 0; }
.ebook-figure { max-width: 100%; margin: 1.4rem 0 1.65rem; padding: .7rem; border: 1px solid #b9d9ed; border-radius: 19px; background: linear-gradient(135deg, #f1faff, #e7efff); box-shadow: 0 14px 28px #1c4e861b, inset 0 2px #fff; }
.ebook-figure-scroll { max-width: 100%; overflow-x: auto; border-radius: 12px; scrollbar-color: #8bbfe1 #e4f2fa; }
.ebook-figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.ebook-figure figcaption { padding: .7rem .55rem .25rem; color: #496987; font-size: .87rem; line-height: 1.65; }
.ebook-figure figcaption strong { color: #144b79; }
.ebook-figure figcaption a { font-weight: 750; }
.ebook .ebook-action-links { max-width: 88ch; margin: 1.2rem 0; padding: .85rem 1rem; border: 1px solid #b8dded; border-left: 5px solid #2ca8c1; border-radius: 12px; background: linear-gradient(115deg, #edfaff, #f6f9ff); color: #34536f; box-shadow: 0 8px 17px #1a5b8c11; }
.ebook-action-links strong { color: #124879; }
.ebook-action-links a { font-weight: 750; }
.ebook-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.ebook-card { padding: 1rem 1.1rem; border: 1px solid #d4e5f4; border-radius: 18px; background: #fff; box-shadow: 0 10px 25px #255f9917; }
.ebook-card h3 { margin-top: 0; }
.ebook-table, .ebook .table-wrap, .ebook .table-scroll, .ebook-table-wrap { max-width: 100%; overflow-x: auto; margin: 1.1rem 0; border: 1px solid #d3e4f2; border-radius: 15px; }
.ebook table { width: 100%; min-width: 590px; border-collapse: collapse; font-size: .96rem; line-height: 1.5; }
.ebook th, .ebook td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid #d8e7f2; }
.ebook th { background: #dceefa; color: #123d69; }
.ebook tbody tr:nth-child(even) { background: #f6faff; }
.ebook :is(code, kbd) { padding: .08rem .3rem; border-radius: 5px; background: #eaf1f8; font-size: .93em; }
.ebook :is(blockquote) { margin: 1.2rem 0; padding: .3rem 1rem; border-left: 4px solid #d4a536; background: #fff9e9; }
.ebook-sources { columns: 2 300px; column-gap: 2rem; }
.ebook-sources li { break-inside: avoid; }
@media (max-width: 720px) {
  .ebook { font-size: 1rem; line-height: 1.65; }
  .ebook-hero { padding: 1.8rem 1.2rem; border-radius: 22px; }
  .ebook-hero h1 { font-size: clamp(1.9rem, 9vw, 3rem); }
  .ebook-hero-actions, .ebook-actions { align-items: stretch; flex-direction: column; }
  .ebook :is(.ebook-hero-actions, .ebook-actions) a { width: 100%; }
  .ebook-quicklinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ebook-quicklinks a { justify-content: center; text-align: center; font-size: .79rem; }
  .ebook-figure { padding: .45rem; }
  .ebook-figure-scroll img { min-width: 680px; }
  .ebook-figure figcaption { padding: .55rem .45rem .15rem; font-size: .82rem; }
  .ebook-figure figcaption::after { display: block; margin-top: .3rem; color: #456f92; font-weight: 700; content: "Vuốt ngang hình để đọc đủ từng bước."; }
  .ebook-toc { grid-template-columns: 1fr; padding: .8rem; }
  .ebook-toc ol { grid-template-columns: 1fr; }
  .ebook > section { margin: 2rem 0; scroll-margin-top: 72px; }
  .ebook :is(.ebook-callout, aside, .ebook-example) { padding: .9rem; }
}
@media print {
  @page { size: A4; margin: 17mm 15mm; }
  body { background: white !important; }
  .site-header, .site-footer, .floating-actions, .seo-breadcrumb, .ebook-actions, .ebook-hero-actions { display: none !important; }
  .ebook-shell, .ebook { max-width: none; margin: 0; padding: 0; color: #111; font-size: 10.5pt; line-height: 1.4; }
  .ebook-hero { margin: 0 0 5mm; padding: 6mm; background: #f1f7fd !important; color: #10284e !important; border: 1px solid #aabfd3; border-radius: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ebook-hero h1 { font-size: 23pt; line-height: 1.12; margin: 2mm 0 3mm; }
  .ebook-hero p { font-size: 9.5pt; line-height: 1.35; margin: 1mm 0 2mm; }
  .ebook-hero :is(h1, strong, p, a) { color: #10284e !important; }
  .ebook-hero::after { display: none; }
  .ebook-toc { display: block; padding: 0; margin: 0; border: 0; box-shadow: none; break-after: page; }
  .ebook-toc h2 { margin: 0 0 3mm; font-size: 12pt; }
  .ebook-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1mm 7mm; margin: 0; padding-left: 5mm; }
  .ebook-toc li { font-size: 8.5pt; line-height: 1.2; margin: 0; }
  .ebook-toc a { display: inline; min-height: 0; padding: 0; border: 0; background: transparent; }
  .ebook > section { margin: 0 0 7mm; padding: 0; border: 0; break-before: page; }
  .ebook > section h2 { font-size: 17pt; }
  .ebook h3 { font-size: 12pt; }
  .ebook :is(.ebook-card, .ebook-example, .ebook-callout, .ebook-case, .ebook-source-map, aside, table, figure) { break-inside: avoid; box-shadow: none; }
  .ebook-quicklinks { display: none; }
  .ebook-figure-scroll { overflow: visible; }
  .ebook-figure img { width: 100%; min-width: 0; }
  .ebook-figure figcaption::after { display: none; }
  .ebook a { color: #144e87; text-decoration: underline; }
  .ebook :is(.ebook-table, .table-wrap, .table-scroll, .ebook-table-wrap) { overflow: visible; }
  .ebook table { min-width: 0; font-size: 8pt; }
  .ebook th, .ebook td { padding: 2mm; }
}
