/* /ebooks guide books (ebook.html), on top of the state law article layout. */
#ebooks {
  color: var(--attention-ink);
}

.eb-hub-hero {
  padding-block: clamp(32px, 5vw, 68px);
  text-align: center;
}

.eb-hub-wrap {
  width: min(100% - 40px, 1160px);
  margin-inline: auto;
}

.eb-hub-hero .slp-crumbs {
  justify-content: center;
}

.eb-hub-intro {
  max-width: 62ch;
  margin: 0 auto 24px;
}

#ebooks .slp-btn {
  min-height: 36px;
  padding: 7px 16px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.eb-hub-feature {
  padding-block: clamp(24px, 3vw, 40px);
  background: #eee8fb;
  text-align: center;
}

.eb-hub-feature h2 {
  margin: 0 0 24px;
}

.eb-hub-feature h3 {
  margin: 22px 0 8px;
  color: inherit;
}

.eb-hub-feature p {
  max-width: 58ch;
  margin: 0 auto;
}

.eb-hub-feature-link {
  display: block;
  width: min(100%, 256px);
  margin-inline: auto;
  border-radius: 5px;
}

.eb-hub-library {
  padding-block: 40px 48px;
  background: var(--surface-alt);
}

#eb-shelf-h {
  margin: 0 0 24px;
  scroll-margin-top: 120px;
}

.eb-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px clamp(24px, 3.2vw, 44px);
}

.eb-hub-card {
  min-width: 0;
}

.eb-hub-cover-stage {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface, #fff);
}

.eb-tablet {
  position: relative;
  width: min(100%, 212px);
  margin-inline: auto;
  padding: 9px 6px 7px;
  border: 1px solid #4c5263;
  border-radius: 13px;
  background: linear-gradient(145deg, #353846, #181b27 64%);
  box-shadow: 0 10px 18px #252d4b29, 0 2px 4px #252d4b30;
}

.eb-tablet::before {
  content: "";
  position: absolute;
  inset: 3px auto auto calc(50% - 1.5px);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #79859b;
}

.eb-book-cover {
  --cover-paper: #f1ebff;
  --cover-ink: #251944;
  --cover-accent: #5f3a9d;
  --cover-inset: 13px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template: "imprint" auto "title" auto "art" minmax(106px, 1fr) "chapters" auto / minmax(0, 1fr);
  min-height: 270px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cover-paper);
  color: var(--cover-ink);
  text-align: start;
}

[data-cover-theme="plum"] {
  --cover-paper: #301d44;
  --cover-ink: #fff;
  --cover-accent: #def49f;
}

[data-cover-theme="lime"] {
  --cover-paper: #eaf5bb;
  --cover-ink: #223317;
  --cover-accent: #3e5725;
}

[data-cover-theme="rose"] {
  --cover-paper: #f5e5dc;
  --cover-ink: #442336;
  --cover-accent: #764153;
}

[data-cover-theme="periwinkle"] {
  --cover-paper: #21294b;
}

[data-cover-theme="lavender"] {
  --cover-paper: #e4d8fa;
}

[data-cover-theme="peach"] {
  --cover-paper: #3a241d;
}

[data-cover-theme="navy"] {
  --cover-paper: #193456;
  --cover-ink: #fff;
  --cover-accent: #cde6ff;
}

[data-cover-theme="sky"] {
  --cover-paper: #172d40;
}

[data-cover-theme="lilac"] {
  --cover-paper: #f5e5ff;
}

[data-cover-theme="mint"] {
  --cover-paper: #143531;
}

[data-cover-theme="sand"] {
  --cover-paper: #43271e;
}

[data-cover-theme="slate"] {
  --cover-paper: #374361;
  --cover-ink: #fff;
  --cover-accent: #d6e6ff;
}

.eb-hub-feature .eb-tablet {
  width: 100%;
  padding: 12px 8px 9px;
  border-radius: 17px;
}

.eb-hub-feature .eb-tablet::before {
  top: 4px;
}

.eb-hub-feature .eb-book-cover {
  --cover-inset: 16px;
  grid-template-rows: auto auto minmax(144px, 1fr) auto;
  min-height: 320px;
  border-radius: 8px;
}

.eb-book-cover[data-cover-layout="photo-led"] {
  --cover-ink: #fff;
  --cover-accent: #f1ebff;
  grid-template: "." minmax(80px, 1fr) "imprint" auto "title" auto "chapters" auto / minmax(0, 1fr);
}

.eb-book-imprint {
  grid-area: imprint;
  z-index: 1;
  display: block;
  width: 90px;
  height: auto;
  margin: 10px var(--cover-inset) 4px;
}

.eb-book-cover[data-cover-layout="inset"] .eb-book-imprint,
.eb-book-cover[data-cover-theme="lime"] .eb-book-imprint {
  justify-self: end;
}

.eb-hub-feature .eb-book-imprint {
  width: 108px;
}

.eb-book-cover-text {
  grid-area: title;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 4px var(--cover-inset) 6px;
}

.eb-hub-feature .eb-book-cover-text {
  gap: 8px;
}

.eb-book-cover[data-cover-theme="plum"] .eb-book-cover-text::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cover-accent);
}

.eb-book-chapters {
  grid-area: chapters;
  z-index: 1;
  padding: 4px var(--cover-inset) 8px;
  color: var(--cover-accent);
  font: 700 9px/1.4 "Open Sans", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eb-book-title {
  font: 700 21px/1.04 Poppins, sans-serif;
  text-wrap: balance;
}

.eb-book-title-prefix {
  display: block;
  margin-bottom: 2px;
  font-size: .58em;
  line-height: 1.14;
  letter-spacing: .025em;
}

.eb-book-cover[data-cover-theme="plum"] .eb-book-title {
  font-size: 29px;
  letter-spacing: -.035em;
}

.eb-book-cover[data-cover-theme="lime"] .eb-book-title {
  font-size: 40px;
  letter-spacing: -.045em;
}

.eb-book-cover[data-cover-theme="lime"] .eb-book-title-prefix {
  font-size: 14px;
}

.eb-book-cover[data-cover-layout="inset"] .eb-book-title {
  font: 700 22px/1.02 Georgia, serif;
}

.eb-hub-feature .eb-book-cover[data-cover-theme="plum"] .eb-book-title {
  font-size: 38px;
}

.eb-book-topics {
  color: var(--cover-ink);
  font: 400 10px/1.35 "Open Sans", sans-serif;
}

.eb-hub-feature .eb-book-topics {
  font-size: 12px;
}

.eb-book-art {
  grid-area: art;
  position: relative;
}

.eb-book-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eb-book-cover[data-cover-layout="inset"] .eb-book-art {
  margin-inline: var(--cover-inset);
  border-block-start: 2px solid var(--cover-accent);
}

.eb-book-cover[data-cover-layout="title-led"] .eb-book-art img {
  mask-image: linear-gradient(transparent, #000 20%);
}

.eb-book-cover[data-cover-layout="photo-led"] .eb-book-art {
  grid-area: 1 / 1 / -1 / -1;
  z-index: -1;
}

.eb-book-cover[data-cover-layout="photo-led"] .eb-book-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, color-mix(in srgb, var(--cover-paper) 44%, transparent) 50%, color-mix(in srgb, var(--cover-paper) 92%, transparent) 78%, var(--cover-paper) 100%);
}

[data-cover-theme="rose"] .eb-book-art img {
  object-position: center 42%;
}

[data-cover-theme="mint"] .eb-book-art img,
[data-cover-theme="sand"] .eb-book-art img {
  object-position: center 58%;
}

.eb-hub-feature .eb-book-chapters {
  padding-inline: 16px;
}

.eb-hub-link {
  display: block;
  border-radius: 8px 8px 0 0;
}

.eb-hub-link h3 {
  margin: 14px 0 8px;
  color: inherit;
}

.eb-hub-card p {
  margin: 0;
}

#ebook-financing-rental-property .ebl-cover-stage .eb-tablet {
  width: min(100%, 388px);
  transform: none;
}

#ebook-financing-rental-property .ebl-cover-stage .eb-book-cover {
  --cover-inset: clamp(14px, 2.4vw, 24px);
  aspect-ratio: 3 / 4;
  min-height: min-content;
}

#ebook-financing-rental-property .ebl-cover-stage .eb-book-art img {
  object-position: center 60%;
}

#ebook-financing-rental-property .ebl-cover-stage .eb-book-title {
  font-size: clamp(26px, 3vw, 38px);
}

#ebook-financing-rental-property .ebl-cover-stage .eb-book-topics {
  font-size: clamp(12px, 1.25vw, 15px);
}

#ebook-financing-rental-property .ebl-actions .slp-btn {
  min-height: 36px;
  padding: 7px 16px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

#ebook-financing-rental-property .ebl-card-num {
  display: none;
}

#ebook-financing-rental-property #read {
  scroll-margin-top: 96px;
}

#ebook-financing-rental-property .eb-body :is(.res-table-scroll, .rc-table-scroll) {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 900px) {
  #ebook-financing-rental-property .ebl-hero-cover { order: 0; }
  #ebook-financing-rental-property .ebl-cover-stage .eb-tablet { width: min(100%, 300px); }
}

@media (max-width: 767px), (pointer: coarse) {
  #ebook-financing-rental-property .ebl-actions .slp-btn { min-height: 44px; font-size: 14px; }
}

@media (max-width: 960px) {
  .eb-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .eb-hub-library { padding-block: 28px 36px; }
}

@media (max-width: 767px), (pointer: coarse) {
  #ebooks .slp-btn { font-size: 14px; min-height: 44px; }
}

@media (max-width: 580px) {
  .eb-hub-grid { grid-template-columns: minmax(0, 1fr); }
}

body.pr-ebook #main-content .slp p.eb-intro { margin: 0 0 24px; max-width: 62ch; font-size: 18px; line-height: 30.6px; color: var(--attention-ink, #042238); }
body.pr-ebook #main-content .slp .slp-main.pr-reading.pr-reading .eb-num { display: block; margin-bottom: 4px; font: 700 14px/20px "Open Sans", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #4f5f6e; }
body.pr-ebook #main-content .slp .slp-main.pr-reading.pr-reading p.eb-lead { margin: 0 0 18px; font-weight: 600; }
body.pr-ebook #main-content .slp .slp-main.pr-reading.pr-reading .eb-body h3 { margin: 26px 0 12px; font: 600 24px/1.35 Poppins, "Open Sans", sans-serif !important; color: var(--attention-ink, #042238); }
body.pr-ebook #main-content .slp .slp-main.pr-reading.pr-reading .eb-body h4 { margin: 20px 0 8px; font: 600 19px/1.4 Poppins, "Open Sans", sans-serif !important; }
body.pr-ebook #main-content .slp .slp-main.pr-reading.pr-reading p.eb-source { margin: 18px 0 0; font-size: 15px; line-height: 22px; color: #4f5f6e; }
body.pr-ebook .slp .eb-body img { max-width: 100%; height: auto; }

/* Save as PDF: the chapters only, one after another. */
@media print {
  body.pr-ebook header:not(.slp-hero), body.pr-ebook nav:not(.slp-art-toc), body.pr-ebook footer:not(.slp-legal),
  body.pr-ebook .slp-art-side, body.pr-ebook .eb-actions, body.pr-ebook .eb-more, body.pr-ebook .slp-crumbs,
  body.pr-ebook [class*="chat"], body.pr-ebook [class*="cookie"], body.pr-ebook [id*="chat"], body.pr-ebook [id*="cookie"] { display: none !important; }
  body.pr-ebook .slp-art-hero { background: none !important; padding: 0 0 12px !important; }
  body.pr-ebook .slp-art-body { display: block !important; padding: 0 !important; }
  body.pr-ebook .eb-chapter { break-before: page; border: 0 !important; padding: 0 !important; }
  body.pr-ebook .eb-chapter:first-child { break-before: auto; }
  body.pr-ebook .eb-chapter > h2 { background: none !important; padding: 0 0 8px !important; margin: 0 0 12px !important; }
  body.pr-ebook a { color: inherit !important; text-decoration: underline; }
}

/* /webinars, /podcast and /newsletter (learning_media.html). */
body.pr-learning .lm-body { grid-template-columns: minmax(0, 1fr); max-width: 1120px; }
.lm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.lm-item { display: flex; flex-direction: column; gap: 6px; }
.lm-video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: #0b1b2b; }
body.pr-learning #main-content .slp .slp-main.pr-reading.pr-reading p.lm-title { margin: 6px 0 0; font-size: 17px; line-height: 24px; font-weight: 600; }
body.pr-learning #main-content .slp .slp-main.pr-reading.pr-reading p.lm-text { margin: 0; font-size: 15px; line-height: 22px; color: #4f5f6e; }
.lm-step { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4f5f6e; }
body.pr-learning #main-content .slp a.lm-link { font-size: 15px; font-weight: 600; }
.lm-episodes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 20px; }
.lm-episode { display: grid; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid #e2e6ee; }
.lm-audio { width: 100%; max-width: 560px; }
.lm-form { max-width: 560px; }
.lm-label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 16px; }
.lm-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.lm-input { flex: 1 1 240px; min-height: 44px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 16px; }
.lm-input:hover { border-color: #6b48e0; }
body.pr-learning #main-content .slp .slp-main.pr-reading.pr-reading p.lm-status { margin: 8px 0 0; font-size: 15px; color: #287a4a; }
body.pr-learning #main-content .slp .slp-main.pr-reading.pr-reading p.lm-status.is-error { color: #d8293e; }
@media (prefers-reduced-motion: reduce) { .lm-video { scroll-behavior: auto; } }

/* The guide book info box has only the meta line: no rule above it. */
body.pr-ebook #main-content .slp .slp-art-facts p.slp-art-meta:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Story cover (library grid and featured book): a full photo, the logo at the top and
   the title over a dark purple fade at the bottom. */
.eb-story { position: relative; isolation: isolate; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: #2A1A6E; color: #fff; text-align: start; }
.eb-story-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.eb-story::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #1a0f4a59 0%, #1a0f4a00 22%, #1a0f4a00 46%, #1a0f4ae6 78%, #160c3f 100%); }
.eb-story-mark { position: absolute; top: 10px; left: 12px; width: 74px; height: auto; }
.eb-story-text { position: absolute; left: 12px; right: 12px; bottom: 11px; display: grid; gap: 3px; }
.eb-story-title { font: 700 19px/1.08 Poppins, sans-serif; text-wrap: balance; text-shadow: 0 1px 8px #0006; }
.eb-story-topics { color: #E6DEFF; font: 400 10px/1.35 "Open Sans", sans-serif; }
.eb-story-ch { margin-top: 3px; color: #D1F48C; font: 700 9px/1.4 "Open Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.eb-hub-feature .eb-story-mark { top: 14px; left: 16px; width: 92px; }
.eb-hub-feature .eb-story-text { left: 16px; right: 16px; bottom: 15px; gap: 5px; }
.eb-hub-feature .eb-story-title { font-size: 25px; }
.eb-hub-feature .eb-story-topics { font-size: 12px; }
.eb-hub-feature .eb-story-ch { font-size: 10px; }

/* Same text as the PDF cover: uppercase title, audience, lime edition and chapter count,
   and the thin inner frame. */
.eb-story::before { content: ""; position: absolute; inset: 6px; z-index: 2; border: 1px solid #ffffff59; border-radius: 4px; pointer-events: none; }
.eb-story-title { text-transform: uppercase; letter-spacing: .01em; font-size: 17px; }
.eb-story-for { color: #E6DEFF; font: 400 10px/1.35 "Open Sans", sans-serif; }
.eb-story-ed { margin-top: 3px; color: #D1F48C; font: 700 9px/1.4 "Open Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.eb-story-ch { margin-top: 0; }
.eb-hub-feature .eb-story::before { inset: 8px; }
.eb-hub-feature .eb-story-title { font-size: 23px; }
.eb-hub-feature .eb-story-for { font-size: 12px; }
.eb-hub-feature .eb-story-ed { font-size: 10px; }

/* Book-page cover: the same story cover, sized for the larger tablet. */
.ebl-cover-stage .eb-story::before { inset: 10px; }
.ebl-cover-stage .eb-story-mark { top: 22px; left: 24px; width: 110px; }
.ebl-cover-stage .eb-story-text { left: 24px; right: 24px; bottom: 24px; gap: 6px; }
.ebl-cover-stage .eb-story-title { font-size: 34px; }
.ebl-cover-stage .eb-story-for { font-size: 15px; }
.ebl-cover-stage .eb-story-ed, .ebl-cover-stage .eb-story-ch { font-size: 12px; }
@media (max-width: 900px) {
  .ebl-cover-stage .eb-story-mark { top: 16px; left: 16px; width: 84px; }
  .ebl-cover-stage .eb-story-text { left: 16px; right: 16px; bottom: 16px; }
  .ebl-cover-stage .eb-story-title { font-size: 24px; }
  .ebl-cover-stage .eb-story-for { font-size: 12px; }
}
#ai-guides { scroll-margin-top:90px }
