/* ORRANET Studio: public pages (creator page, product, course, checkout, purchase, lesson player).
   Loads AFTER creator.css and reuses its tokens, buttons, fields, alerts and logo. */
body.pub { background:
  radial-gradient(700px 360px at 100% -4%, rgba(37, 211, 102, .13), transparent 70%),
  radial-gradient(560px 320px at -4% 0%, rgba(18, 140, 126, .10), transparent 70%),
  var(--bg); background-attachment: fixed; }
body.pub.has-cta { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

/* ---------- header ---------- */
.pub-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.pub-header-in { max-width: 1120px; margin: 0 auto; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.pub-header .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.pub-header .brand-mark svg { width: 19px; height: 19px; }
.pub-header .brand-name { font-size: 1.15rem; }
.pub-header-nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pub-pill { min-width: 0; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-dark); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.pub-pill:hover { border-color: var(--brand); background: var(--brand-tint); }
.pub-cta { display: none; padding: 9px 16px; border-radius: 999px; background: var(--brand-dark); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s; }
.pub-cta:hover { background: var(--brand); }
@media (min-width: 520px) { .pub-cta { display: inline-block; } }

.pub-main { max-width: 1120px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); }
.sec-title { margin: 36px 0 14px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.pub-foot { border-top: 1px solid var(--border); background: var(--surface); }
.pub-foot-in { max-width: 1120px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); text-align: center; }
.pub-foot .brand { margin-bottom: 10px; }
.pub-foot .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.pub-foot .brand-mark svg { width: 18px; height: 18px; }
.pub-foot .brand-name { font-size: 1.05rem; }
.pub-foot p { margin: 0 0 6px; color: var(--text-muted); font-size: 14px; }
.pub-foot a { color: var(--text-muted); }
.pub-foot-tag a { color: var(--brand-dark); font-weight: 600; }
.pub-foot-links { display: flex; justify-content: center; gap: 10px; }

/* ---------- not found / status ---------- */
.pub-center { max-width: 460px; margin: 56px auto; padding: 36px 26px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-md); }
.pub-center h1 { margin-bottom: 10px; font-size: 1.5rem; }
.pub-center-icon { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px; background: var(--brand-tint); color: var(--brand-dark); font-size: 1.7rem; font-weight: 800; }
.pub-center-icon.tone-success { background: #effbf3; color: #115c33; }
.pub-center-icon.tone-error { background: #fdf2f1; color: #8f2a22; }

/* ---------- creator page: hero ---------- */
.hero { margin-bottom: 8px; }
.hero-cover { height: 132px; border-radius: 26px; background:
  radial-gradient(240px 160px at 88% 20%, rgba(37, 211, 102, .55), transparent 70%),
  radial-gradient(260px 180px at 8% 110%, rgba(255,255,255,.14), transparent 70%),
  linear-gradient(120deg, var(--brand-dark), var(--brand)); }
.hero-card { position: relative; margin: -52px 14px 0; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-md); }
.hero .avatar { flex: 0 0 auto; width: 88px; height: 88px; margin-top: -54px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-dark);
  font-size: 2.2rem; font-weight: 800; box-shadow: 0 0 0 5px var(--surface), 0 8px 20px -6px rgba(13, 27, 25, .25); }
.hero .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-text { min-width: 0; }
.hero-text h1 { font-size: 1.7rem; }
.hero-headline { margin: 6px 0 0; color: var(--text-muted); font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-actions .btn { min-height: 42px; padding: 0 20px; font-size: 14px; }
.bio { max-width: 64ch; margin: 18px 16px 0; color: #2c3d3a; line-height: 1.65; }
.jump { display: flex; gap: 8px; margin: 20px 14px 0; }
.jump a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dark); font-size: 14px; font-weight: 600; text-decoration: none; }
.jump a:hover { border-color: var(--brand); background: var(--brand-tint); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pcard { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; color: inherit; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.pcard-media { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--brand-tint), #d7ede8); color: var(--brand-dark); font-size: 2.6rem; font-weight: 800; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; min-width: 0; flex: 1; }
.pcard-body strong { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-type { display: inline-block; align-self: flex-start; padding: 3px 11px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.pcard-short { color: var(--text-muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-price { margin-top: auto; padding-top: 8px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-dark); }

/* ---------- portfolio ---------- */
.pf-sub { margin: -6px 0 16px; }
.pf-public { columns: 2; column-gap: 10px; }
.pf-tile { position: relative; display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; overflow: hidden; break-inside: avoid; border-radius: 18px; background: #dfe9e6; color: inherit; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.pf-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pf-tile img { width: 100%; height: auto; display: block; }
.pf-tile.no-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.pf-play { position: absolute; inset: 0; display: grid; place-items: center; }
.pf-play span { width: 54px; height: 54px; display: grid; place-items: center; padding-left: 4px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--brand-dark); font-size: 19px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.4); }
.pf-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(8, 20, 18, .78)); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.3; text-align: left;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
dialog.pf-dialog { width: min(96vw, 920px); max-height: 94vh; padding: 0; border: 0; border-radius: 22px; background: #0b1412; color: #fff; overflow: hidden; }
dialog.pf-dialog::backdrop { background: rgba(8, 20, 18, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pf-stage { display: flex; align-items: center; justify-content: center; max-height: 80vh; background: #000; }
.pf-stage img { max-width: 100%; max-height: 80vh; display: block; }
.pf-stage .video-frame { width: 100%; margin: 0; border-radius: 0; }
.pf-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 14px; }
.pf-dialog-bar button { min-height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: #fff; color: #0b1412; font-weight: 700; cursor: pointer; }

/* ---------- product + course page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.p-media { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: 26px; background: linear-gradient(135deg, var(--brand-tint), #cfe8e2); color: var(--brand-dark); box-shadow: var(--shadow-md); }
.p-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-initial { font-size: 4.5rem; font-weight: 800; }
.p-head h1 { margin-bottom: 8px; font-size: 1.75rem; }
.p-head .pcard-type { margin-bottom: 10px; }
.p-short { margin-bottom: 16px; font-size: 1.02rem; }
.buy-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow-md); }
.price-big { margin: 0 0 14px; font-size: 2.3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--brand-dark); }
.buy-card .btn { display: none; min-height: 54px; font-size: 1.02rem; }
.trust { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-muted); }
.trust li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; }
.trust li::before { content: "\2713"; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-size: 12px; font-weight: 800; }
.buy-card .btn + .trust { margin-top: 12px; }
.p-desc h2 { margin-bottom: 10px; font-size: 1.2rem; }
.p-desc p { max-width: 68ch; color: #2c3d3a; line-height: 1.7; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -14px rgba(13, 27, 25, .2); }
.price-sm { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand-dark); }
.sticky-cta .btn { flex: 0 1 230px; }

.outline-title { margin: 30px 0 12px; }
.outline-module { margin-bottom: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.outline-module summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; font-weight: 700; cursor: pointer; list-style: none; min-height: 52px; }
.outline-module summary::-webkit-details-marker { display: none; }
.outline-module summary::after { content: "+"; flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--text-muted); font-weight: 700; }
.outline-module[open] summary::after { content: "\2212"; }
.outline-module summary small { margin-left: auto; font-weight: 500; color: var(--text-muted); font-size: 13px; }
.outline-lesson { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); }
.o-name { min-width: 0; font-weight: 500; }
.o-name small, .l-name small { display: block; color: var(--text-muted); font-size: 13px; font-weight: 400; }

/* ---------- checkout + purchase ---------- */
.checkout { max-width: 540px; margin: 0 auto; }
.checkout h1 { margin: 8px 0 18px; font-size: 1.6rem; }
.summary { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); }
.summary .thumb { flex: 0 0 60px; width: 60px; height: 60px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: var(--brand-tint); color: var(--brand-dark); font-weight: 800; font-size: 1.3rem; }
.summary .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.summary-text { display: flex; flex-direction: column; min-width: 0; }
.totals { margin: 0 0 18px; padding: 6px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); }
.trow { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; }
.trow + .trow { border-top: 1px solid var(--border); }
.trow dt, .trow dd { margin: 0; }
.trow.total { font-weight: 800; font-size: 1.15rem; color: var(--brand-dark); }
.checkout form { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-sm); }
.checkout form .btn-block { min-height: 54px; }
.dl-title { margin: 26px 0 10px; }
.checkout .file-list li { align-items: center; }

/* ---------- lesson player ---------- */
.learn { max-width: 1120px; margin: 0 auto; }
.learn-top { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-sm); }
.learn-top h1 { margin: 0 0 14px; font-size: 1.4rem; }
.progress { height: 10px; border-radius: 999px; background: #e3ebe8; overflow: hidden; }
.progress-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); transition: width .4s ease; }
.learn-top .muted { margin: 10px 0 0; }
.learn-top .alert { margin: 14px 0 0; }
.learn-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.learn-main { min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-sm); }
.lesson-title { margin: 2px 0 14px; font-size: 1.35rem; }
.lesson-text { margin: 18px 0; max-width: 68ch; line-height: 1.7; overflow-wrap: anywhere; }
.lesson-actions { margin: 20px 0 12px; }
.lesson-actions .btn { width: 100%; }
.lesson-nav { display: flex; justify-content: space-between; gap: 10px; }
.lesson-nav .btn { flex: 1 1 0; max-width: 200px; }
.learn-list { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); }
.l-module + .l-module { border-top: 1px solid var(--border); }
.l-module summary { padding: 16px 18px; font-weight: 700; cursor: pointer; background: #fafbfa; min-height: 52px; }
.l-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 18px; color: inherit; text-decoration: none; min-height: 54px; transition: background .15s; }
.l-item:hover { background: var(--bg); }
.l-item.is-current { background: var(--brand-tint); }
.l-name { min-width: 0; font-weight: 600; }
.tick { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center; border: 2px solid var(--border-strong); border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; }
.tick.is-done { background: var(--brand); border-color: var(--brand); }

/* ---------- service page: time picker ---------- */
.trust li.plan { color: var(--brand-dark); font-weight: 600; }
.book { margin-top: 34px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-sm); scroll-margin-top: 90px; }
.book h2 { margin-bottom: 6px; }
.date-strip { display: flex; align-items: stretch; gap: 8px; margin: 14px 0 4px; }
.date-chips { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 2px; scroll-snap-type: x proximity; scrollbar-width: none; }
.date-chips::-webkit-scrollbar { display: none; }
.date-chip { flex: 0 0 64px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 0; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dark); text-decoration: none; transition: border-color .15s, background .15s; }
.date-chip .dw { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.date-chip .dd { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.date-chip .dm { font-size: 12px; color: var(--text-muted); }
.date-chip:hover { border-color: var(--brand); }
.date-chip.is-selected { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; box-shadow: 0 8px 18px -8px rgba(7, 94, 84, .6); }
.date-chip.is-selected .dw, .date-chip.is-selected .dm { color: rgba(255,255,255,.8); }
.date-chip.is-off { opacity: .4; background: var(--bg); border-style: dashed; }
.date-nav { flex: 0 0 40px; display: grid; place-items: center; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dark); font-size: 1.5rem; text-decoration: none; }
.date-nav.is-off { opacity: .3; }
.slots-title { margin: 18px 0 10px; font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 6px 4px; border-radius: 14px; border: 1px solid var(--brand); background: #fff; color: var(--brand-dark); font-weight: 700; font-size: 15px; text-decoration: none; transition: background .15s, color .15s; }
.slot:hover { background: var(--brand-dark); color: #fff; }
.slot.is-static { border-color: var(--border-strong); color: var(--text-dark); }
.slot.is-static:hover { background: #fff; color: var(--text-dark); }
.slot small { font-size: 11px; font-weight: 500; opacity: .75; }
@media (min-width: 560px) { .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); } .date-chip { flex-basis: 72px; } }
@media (min-width: 900px) { .slots { grid-template-columns: repeat(5, minmax(0, 1fr)); } .book { padding: 26px; } }

/* ---------- booking checkout + booking page ---------- */
.kv { margin: 0 0 14px; padding: 4px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; }
.kv > div + div { border-top: 1px solid var(--border); }
.kv dt { flex: 0 0 auto; color: var(--text-muted); font-weight: 600; }
.kv dd { margin: 0; min-width: 0; text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.kv small { color: var(--text-muted); font-weight: 400; }
.kv small.block { display: block; margin-top: 2px; }
.checkout h1 .badge { vertical-align: middle; margin-left: 8px; }

/* ---------- legal pages ---------- */
.legal { max-width: 800px; margin: 8px auto 0; padding: 28px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow-sm); }
.legal-kicker { margin: 0 0 6px; color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.legal h1 { font-size: 2rem; margin-bottom: 4px; }
.legal h2 { margin: 30px 0 10px; font-size: 1.15rem; scroll-margin-top: 90px; }
.legal p, .legal li { line-height: 1.7; color: #2c3d3a; overflow-wrap: anywhere; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--brand-dark); font-weight: 600; }
.legal-short { margin: 20px 0; padding: 18px 20px; border-radius: 18px; background: var(--brand-tint); border: 1px solid #cfe6e1; }
.legal-short ul { margin: 8px 0 0; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 6px; }
.legal-toc a { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dark); font-size: 13px; font-weight: 600; text-decoration: none; }
.legal-toc a:hover { border-color: var(--brand); background: var(--brand-tint); }
@media (min-width: 760px) { .legal { padding: 40px 48px; } }

@media (min-width: 560px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-public { columns: 3; }
  .hero-cover { height: 160px; }
}
@media (min-width: 760px) {
  .hero-card { flex-direction: row; align-items: center; gap: 22px; padding: 20px 26px; }
  .hero .avatar { width: 112px; height: 112px; margin-top: -64px; font-size: 2.8rem; }
  .hero-text { flex: 1; }
  .hero-text h1 { font-size: 2rem; }
  .hero-actions { flex: 0 0 auto; flex-wrap: nowrap; }
}
@media (min-width: 900px) {
  .pub-main { padding-top: 28px; padding-bottom: 64px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .pf-public { columns: 4; column-gap: 14px; }
  .pf-tile { margin-bottom: 14px; }
  .hero-cover { height: 190px; }
  .product { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "media head" "desc head"; align-items: start; gap: 28px 40px; }
  .p-media { grid-area: media; }
  .p-head { grid-area: head; position: sticky; top: 86px; }
  .p-desc { grid-area: desc; }
  .p-head h1 { font-size: 2rem; }
  .buy-card .btn { display: inline-flex; margin-bottom: 4px; }
  .sticky-cta { display: none; }
  body.pub.has-cta { padding-bottom: 0; }
  .learn-body { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 24px; }
  .learn-main { padding: 26px; }
  .learn-list { position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .lesson-actions .btn { width: auto; }
}
@media (max-width: 380px) {
  .pub-main { padding-left: 12px; padding-right: 12px; }
  .hero-card { margin-left: 8px; margin-right: 8px; padding: 16px; }
  .p-head h1 { font-size: 1.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}
