﻿/* Shared product reading layout; Students tabs remain specific to their own markup. */
:is(.students-page, .product-reading-page) main > .wrap { max-width: 1320px; }
:is(.students-page, .product-reading-page) .detail-hero { padding: 24px 0 40px; margin-bottom: 44px; grid-template-columns: 1fr 180px; }
:is(.students-page, .product-reading-page) .detail-hero img { width: 174px; height: 174px; }
:is(.students-page, .product-reading-page) .detail-hero h1 { margin: 0 0 22px; letter-spacing: -.04em; }
:is(.students-page, .product-reading-page) :is(.students-card, .reading-card) { margin-bottom: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: clip; }
:is(.students-page, .product-reading-page) .students-tab-bar { display: flex; position: relative; isolation: isolate; width: min(440px, calc(100% - 48px)); margin: 24px auto 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
:is(.students-page, .product-reading-page) .students-tab-bar::before { content: ""; position: absolute; z-index: -1; left: 5px; top: 5px; bottom: 5px; width: calc((100% - 10px) / 2); border-radius: 999px; background: var(--button-bg); box-shadow: 0 3px 9px #00000012; pointer-events: none; transform: translateX(0); transition: transform 480ms cubic-bezier(.34, 1.56, .64, 1); }
:is(.students-page, .product-reading-page) .students-tab-bar:has(.students-tab:last-child[aria-selected="true"])::before { transform: translateX(100%); }
:is(.students-page, .product-reading-page) .students-tab { flex: 1; min-width: 0; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.5; transition: color 180ms ease; }
:is(.students-page, .product-reading-page) .students-tab:hover { color: var(--ink); }
:is(.students-page, .product-reading-page) .students-tab[aria-selected="true"] { color: var(--button-ink); }
:is(.students-page, .product-reading-page) .students-tab:focus-visible { outline-offset: -3px; }
:is(.students-page, .product-reading-page) :is(.students-tab-panel, .reading-card-body) { padding: 30px 24px; min-width: 0; }
:is(.students-page, .product-reading-page) :is(.students-tab-panel, .reading-card-body):focus-visible { outline: 2px solid var(--focus); outline-offset: -6px; border-radius: 12px; }
:is(.students-page, .product-reading-page) :is(.students-card, .reading-card) .detail-layout { margin-bottom: 0; grid-template-columns: 228px minmax(0, 1fr); gap: 36px; }
:is(.students-page, .product-reading-page) .detail-layout { grid-template-columns: 252px minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); margin-bottom: 64px; }
:is(.students-page, .product-reading-page) .detail-sidebar { top: 116px; }
:is(.students-page, .product-reading-page) .toc { padding: 22px 16px; border-radius: 16px; }
:is(.students-page, .product-reading-page) .toc h2 { padding-inline: 10px; margin-bottom: 20px; font-size: 13px; }
:is(.students-page, .product-reading-page) .toc > ol { gap: 20px; counter-reset: chapters; }
:is(.students-page, .product-reading-page) .toc > ol > li { counter-increment: chapters; }
:is(.students-page, .product-reading-page) .toc > ol > li > a { display: flex; gap: 10px; align-items: baseline; font-size: 13px; font-weight: 700; color: var(--ink); padding: 7px 10px; }
:is(.students-page, .product-reading-page) .toc > ol > li > a::before { content: "0" counter(chapters); font-size: 10px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
:is(.students-page, .product-reading-page) .toc ol ol { display: grid; margin: 6px 0 0 20px; padding-left: 12px; border-left: 1px solid var(--line); gap: 3px; }
:is(.students-page, .product-reading-page) .toc ol ol a { font-size: 12px; line-height: 1.75; padding: 7px 10px; }
:is(.students-page, .product-reading-page) .toc a.is-active { background: var(--warm-bg); color: var(--warm-ink); box-shadow: inset 2px 0 var(--warm-ink); }
:is(.students-page, .product-reading-page) .sidebar-shop { margin-top: 20px; padding: 24px 20px; }
:is(.students-page, .product-reading-page) .detail-content { padding: 0; border: 0; border-radius: 0; background: transparent; }
:is(.students-page, .product-reading-page) .reading-label { margin-bottom: 30px; padding: 0 0 18px; }
:is(.students-page, .product-reading-page) .prose { font-size: 15px; line-height: 1.95; color: var(--body-ink); counter-reset: chapter; }
:is(.students-page, .product-reading-page) :is(.students-chapter, .reading-chapter) { counter-increment: chapter; }
:is(.students-page, .product-reading-page) :is(.students-chapter, .reading-chapter) + :is(.students-chapter, .reading-chapter) { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }
:is(.students-page, .product-reading-page) :is(.students-chapter, .reading-chapter) h2 { display: flex; align-items: baseline; gap: 15px; margin: 0 0 28px; padding: 0; border: 0; font-size: clamp(23px, 2.3vw, 28px); font-weight: 700; line-height: 1.5; letter-spacing: -.035em; }
:is(.students-page, .product-reading-page) :is(.students-chapter, .reading-chapter) h2::before { content: "0" counter(chapter); flex-shrink: 0; font-size: 13px; font-weight: 500; color: var(--warm-ink); letter-spacing: .04em; }
:is(.students-page, .product-reading-page) .students-title-comma { display: none; }
:is(.students-page, .product-reading-page) .students-opening-notice { margin: 0 0 16px; padding: 16px 20px; border: 1px solid var(--warm-line); border-radius: 10px; background: var(--warm-bg); color: var(--warm-ink); font-size: 14px; font-weight: 600; }
:is(.students-page, .product-reading-page) .students-subsection { margin-top: 34px; }
:is(.students-page, .product-reading-page) .students-subsection + .students-subsection { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
:is(.students-page, .product-reading-page) .students-subsection h3 { margin: 0 0 18px; font-size: 19px; font-weight: 700; line-height: 1.65; color: var(--ink); }
:is(.students-page, .product-reading-page) .students-subsection > :last-child { margin-bottom: 0; }
:is(.students-page, .product-reading-page) .prose p, :is(.students-page, .product-reading-page) .prose .paragraph { margin: 16px 0; }
:is(.students-page, .product-reading-page) .prose p:empty { display: none; }
:is(.students-page, .product-reading-page) .prose blockquote { margin: 20px 0; padding: 16px 20px; background: var(--soft); border-left: 2px solid var(--line-strong); border-radius: 0 10px 10px 0; color: var(--body-ink); font-size: 14px; line-height: 1.9; }
:is(.students-page, .product-reading-page) .prose blockquote p { margin: 10px 0 0; }
:is(.students-page, .product-reading-page) .prose blockquote strong { color: var(--ink); }
:is(.students-page, .product-reading-page) .prose .callout { margin: 24px 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
:is(.students-page, .product-reading-page) .prose .callout > div > :last-child { margin-bottom: 0; }
:is(.students-page, .product-reading-page) .prose .callout blockquote { background: var(--surface); }
:is(.students-page, .product-reading-page) .prose ol { margin: 18px 0; padding-left: 28px; }
:is(.students-page, .product-reading-page) .prose ol > li { padding-left: 8px; }
:is(.students-page, .product-reading-page) .prose li::marker { font-weight: 700; color: var(--warm-ink); }
:is(.students-page, .product-reading-page) .students-flow > ol { list-style: none; padding: 0; margin: 0; }
:is(.students-page, .product-reading-page) .students-flow > ol > li { position: relative; margin-left: 14px; padding: 0 0 26px 34px; border-left: 1px solid var(--line); min-height: 54px; }
:is(.students-page, .product-reading-page) .students-flow > ol > li::before { content: attr(data-step); position: absolute; top: 0; left: -14px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--warm-line); border-radius: 50%; background: var(--warm-bg); color: var(--warm-ink); font-size: 12px; font-weight: 700; line-height: 1; }
:is(.students-page, .product-reading-page) .students-flow > ol:last-child > li { padding-bottom: 0; border-left-color: transparent; }
:is(.students-page, .product-reading-page) .students-accounts > ol { margin: 18px 0; padding: 20px 22px 20px 45px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
:is(.students-page, .product-reading-page) .students-accounts > ol > li { padding-left: 5px; color: var(--ink); font-weight: 600; }
:is(.students-page, .product-reading-page) .students-accounts > ol > li > p, :is(.students-page, .product-reading-page) .students-accounts > ol > li > blockquote { color: var(--body-ink); font-weight: 400; }
:is(.students-page, .product-reading-page) .students-exclusions > ul { margin: 16px 0; padding-left: 23px; }
:is(.students-page, .product-reading-page) .students-exclusions > blockquote { border-left-color: var(--warm-line); background: var(--warm-bg); }
:is(.students-page, .product-reading-page) .tutorial-image { display: flex; justify-content: center; margin: 24px 0 28px !important; padding: 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
:is(.students-page, .product-reading-page) .image-zoom { max-width: 100% !important; width: min(100%, var(--image-width, 560px)); padding: 8px; border-radius: 8px; }
:is(.students-page, .product-reading-page) .image-zoom img { width: 100%; max-height: none; }
:is(.students-page, .product-reading-page) .prose blockquote .tutorial-image { padding: 12px; background: var(--surface); }
:is(.students-page, .product-reading-page) .students-subsection, :is(.students-page, .product-reading-page) :is(.students-chapter, .reading-chapter) h2 { scroll-margin-top: 120px; }
:is(.students-page, .product-reading-page) .detail-end { margin-top: 40px; padding-top: 28px; }
:is(.students-page, .product-reading-page) .students-ready-copy :is(.students-chapter, .reading-chapter) > ul { padding-left: 22px; margin: 20px 0 0; }
:is(.students-page, .product-reading-page) .students-ready-copy li > p:first-child { margin-top: 0; }
:is(.students-page, .product-reading-page) .students-ready-copy li + li { margin-top: 22px; }
:is(.students-page, .product-reading-page) .students-ready-copy blockquote > p:first-child { margin-top: 0; }
:is(.students-page, .product-reading-page) .students-ready-copy .students-ready-services { margin-top: 20px; padding-left: 22px; }
:is(.students-page, .product-reading-page) .students-ready-copy .students-ready-services > li { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
:is(.students-page, .product-reading-page) .students-ready-copy .students-ready-services > li > p { margin-bottom: 0; }
:is(.students-page, .product-reading-page) .students-ready-copy .students-ready-services blockquote { margin-bottom: 0; }
@media (max-width: 560px) {
  :is(.students-page, .product-reading-page) .students-ready-copy .students-ready-services { padding-left: 14px; }
  :is(.students-page, .product-reading-page) .students-ready-copy .students-ready-services > li { padding: 14px; }
}
@media (max-width: 1000px) {
  :is(.students-page, .product-reading-page) :is(.students-card, .reading-card) .detail-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  :is(.students-page, .product-reading-page) .detail-layout { grid-template-columns: 218px minmax(0, 1fr); gap: 30px; }
  :is(.students-page, .product-reading-page) .toc { padding-inline: 12px; }
}
@media (max-width: 760px) {
  :is(.students-page, .product-reading-page) .students-tab-bar { width: min(440px, calc(100% - 32px)); margin-top: 20px; }
  :is(.students-page, .product-reading-page) :is(.students-tab-panel, .reading-card-body) { padding: 24px 18px; }
  :is(.students-page, .product-reading-page) .detail-hero { grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; padding: 16px 0 28px; margin-bottom: 28px; }
  :is(.students-page, .product-reading-page) .detail-hero h1 { font-size: 28px; margin-bottom: 18px; }
  :is(.students-page, .product-reading-page) .detail-hero img { width: 110px; height: 110px; }
  :is(.students-page, .product-reading-page) .detail-hero .tags { margin-top: 18px; }
  :is(.students-page, .product-reading-page) .detail-layout { display: block; }
  :is(.students-page, .product-reading-page) .detail-sidebar { display: block; position: static; max-height: none; overflow: visible; margin-bottom: 34px; }
  :is(.students-page, .product-reading-page) .toc { padding: 22px; }
  :is(.students-page, .product-reading-page) .toc a { border: 0; background: transparent; }
  :is(.students-page, .product-reading-page) .toc a.is-active { background: var(--warm-bg); }
  :is(.students-page, .product-reading-page) .toc > ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  :is(.students-page, .product-reading-page) .toc > ol > li > a { padding: 0; gap: 6px; }
  :is(.students-page, .product-reading-page) .toc ol ol { margin-left: 0; padding-left: 8px; }
  :is(.students-page, .product-reading-page) .toc ol ol a { padding: 6px; }
  :is(.students-page, .product-reading-page) .sidebar-shop { display: none; }
  :is(.students-page, .product-reading-page) .prose { font-size: 15px; }
  :is(.students-page, .product-reading-page) :is(.students-chapter, .reading-chapter) + :is(.students-chapter, .reading-chapter) { margin-top: 44px; padding-top: 30px; }
  :is(.students-page, .product-reading-page) .students-subsection + .students-subsection { margin-top: 28px; padding-top: 24px; }
  :is(.students-page, .product-reading-page) .students-subsection, :is(.students-page, .product-reading-page) :is(.students-chapter, .reading-chapter) h2 { scroll-margin-top: 98px; }
}
@media (max-width: 560px) {
  :is(.students-page, .product-reading-page) .students-tab-bar { width: calc(100% - 24px); margin-top: 16px; }
  :is(.students-page, .product-reading-page) .students-tab { padding: 10px 8px; font-size: 14px; min-height: 44px; }
  :is(.students-page, .product-reading-page) :is(.students-tab-panel, .reading-card-body) { padding: 22px 14px; }
  :is(.students-page, .product-reading-page) :is(.students-card, .reading-card) .toc { padding: 18px 14px; }
  :is(.students-page, .product-reading-page) .detail-hero { grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; }
  :is(.students-page, .product-reading-page) .detail-hero h1 { font-size: 25px; }
  :is(.students-page, .product-reading-page) .detail-hero img { width: 84px; height: 84px; }
  :is(.students-page, .product-reading-page) .detail-hero .btn { font-size: 12px; padding: 10px 18px; gap: 12px; min-height: 44px; }
  :is(.students-page, .product-reading-page) .toc > ol { grid-template-columns: 1fr; gap: 20px; }
  :is(.students-page, .product-reading-page) .toc ol ol { margin-left: 21px; margin-top: 8px; padding-left: 12px; }
  :is(.students-page, .product-reading-page) .toc ol ol a { padding: 5px 8px; }
  :is(.students-page, .product-reading-page) .students-opening-notice { padding: 14px 16px; }
  :is(.students-page, .product-reading-page) .prose blockquote { padding: 14px 16px; }
  :is(.students-page, .product-reading-page) .prose .callout { padding: 18px 16px; }
  :is(.students-page, .product-reading-page) .students-accounts > ol { padding: 18px 16px 18px 36px; }
  :is(.students-page, .product-reading-page) .tutorial-image { padding: 12px; }
}

/* Recharge page: retain the original copy while using the shared reading layout. */
.product-reading-page .reading-chapter h2 { display: block; }
.product-reading-page .reading-chapter h2::before { display: inline-block; margin-right: 15px; }
.product-reading-page .reading-service-highlight { margin: 24px 0 32px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); font-size: 19px; line-height: 1.7; letter-spacing: 0; }
.product-reading-page .prose > .notice { margin-top: 0; font-size: 14px; line-height: 1.9; }
.product-reading-page .reading-chapter > .bulleted-list { list-style: none; padding: 0; margin: 0; }
.product-reading-page .reading-chapter > .bulleted-list > li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.product-reading-page .reading-chapter > .bulleted-list:last-of-type > li { border-bottom: 0; padding-bottom: 0; }
.product-reading-page .reading-chapter > .bulleted-list:first-of-type > li { padding-top: 0; }
.product-reading-page .prose .redemption { padding: 18px 20px; background: var(--soft); border-style: solid; font-size: 15px; line-height: 1.8; }
@media (max-width: 560px) {
  .product-reading-page .reading-service-highlight { font-size: 17px; padding: 16px; }
  .product-reading-page .prose .redemption { padding: 15px; font-size: 14px; }
}
