/* Pawjii's original palette, rounded type, split hero and illustration families.
   This sheet is loaded only by the Pawjii shell; no remote fonts or CSS assets.
   Layers: content (auto), language disclosures (2), skip link (3). */
:root {
  color-scheme: light dark;
  --paper: #fffaf5; --ink: #51424a; --muted: #76676c;
  --peach: #ffc5ae; --peach-soft: #ffebe1; --green: #e5efdd; --yellow: #fff0c3; --line: #e7ddd6;
  --page: var(--paper); --card: #fffefa; --surface: #f5eee7; --accent: #8c4a32; --accent-soft: var(--peach-soft); --button-ink: #51424a;
  --radius: 27px; --control-radius: 16px; --shadow: 0 15px 32px rgb(93 63 54 / .10);
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #272226; --ink: #f6ece5; --muted: #d0bfc5; --line: #625157;
    --peach: #ffc5ae; --peach-soft: #4c3530; --green: #343f32; --yellow: #48402a;
    --card: #322a2e; --surface: #30282b; --accent: #ffc5ae; --shadow: 0 15px 32px rgb(20 13 17 / .3);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.7; }
a { color: inherit; text-underline-offset: .22em; }
button, input { color: inherit; font: inherit; }
summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin-top: 0; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--display); }
h1 { font-size: clamp(2.8rem, 4.6vw, 4rem); font-weight: 850; line-height: 1.17; letter-spacing: -.035em; margin-bottom: 26px; }
h2 { font-size: clamp(2rem, 3.4vw, 2.875rem); font-weight: 800; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 0; }
h3 { font-size: 1.45rem; line-height: 1.4; }
h4 { font-size: 1rem; line-height: 1.5; margin-bottom: 10px; }
p, li { overflow-wrap: anywhere; }
code, pre, [dir="ltr"] { unicode-bidi: isolate; }
code, pre { direction: ltr; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; min-width: 0; }
.skip-link { position: absolute; top: 12px; left: 20px; background: var(--card); z-index: 3; padding: 10px 16px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.pawjii-header { min-height: 80px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; direction: ltr; }
.pawjii-header > * { direction: inherit; }
html[dir="rtl"] .pawjii-header > * { direction: rtl; }
.logo { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.logo img { border-radius: 13px; width: 44px; height: 44px; }
.logo > span { font: 900 27px/1 var(--display); letter-spacing: -.7px; }
.logo small { display: block; font: 600 11px/1.5 var(--body); letter-spacing: .1px; margin-top: 6px; }
.brand-nav { display: flex; justify-content: flex-end; gap: 26px; font-size: 15px; font-weight: 600; }
.brand-nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.brand-nav a:hover { border-color: var(--peach); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; padding-block: 65px 90px; }
.eyebrow { font-size: 12px; letter-spacing: 2px; font-weight: 800; margin-bottom: 22px; color: var(--accent); }
.intro { color: var(--muted); font-size: 18px; line-height: 1.85; margin-bottom: 30px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; }
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--peach); color: var(--button-ink); padding: 15px 25px; border-radius: 20px; font-weight: 750; text-decoration: none; max-width: 100%; }
.button:hover { box-shadow: 0 0 0 2px var(--accent); }
.button:active { transform: translateY(1px); }
.text-link { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; }
.platform { font-size: 13px; margin: 19px 0 0; color: var(--muted); }
.hero-art { position: relative; min-width: 0; height: 460px; display: flex; align-items: center; justify-content: center; }
.art-wash { position: absolute; inset: 28px 2px 10px 5px; background: var(--peach-soft); border-radius: 48% 50% 44% 48%; transform: rotate(-7deg); }
.hero-pets { position: relative; width: 92%; height: 385px; object-fit: contain; }
.floating-label { position: absolute; top: 3px; right: 13px; max-width: calc(100% - 26px); background: var(--yellow); border: 1px solid var(--line); padding: 12px 20px; border-radius: 18px; transform: rotate(4deg); font-size: 14px; font-weight: 650; }
.memory-card { position: absolute; bottom: 1px; left: 0; right: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 26px; padding: 18px 21px; display: flex; align-items: center; gap: 15px; transform: rotate(-3deg); }
.memory-card > img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.memory-card small, .memory-card strong, .memory-card span { display: block; }
.memory-card small, .memory-card span { color: var(--muted); font-size: 12px; }
.memory-card strong { font-size: 18px; }
.species-band { border-block: 1px solid var(--line); padding-block: 24px; }
.species-band > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.species-band p { font-size: 14px; color: var(--muted); margin: 0; }
.species-list { display: flex; gap: 25px; justify-content: flex-end; flex-wrap: wrap; }
.species-item { text-align: center; font-size: 12px; color: var(--muted); }
.species-item img { height: 62px; width: 58px; object-fit: contain; margin: auto auto 3px; }
.care-section { padding-block: 90px; }
.section-heading { margin-bottom: 38px; }
.section-heading > p:last-child { color: var(--muted); line-height: 1.9; margin: 20px 0 0; max-width: 65ch; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { padding: 28px; border-radius: 30px; min-width: 0; }
.peach { background: var(--peach-soft); }
.green { background: var(--green); }
.yellow { background: var(--yellow); }
.feature-art { height: 205px; margin-bottom: 15px; }
.feature-art img { width: 100%; height: 100%; object-fit: contain; }
.feature h3 { margin-bottom: 12px; }
.feature p { font-size: 15px; line-height: 1.9; color: var(--muted); }
.feature-foot { font-size: 12px; font-weight: 650; display: block; padding-top: 18px; border-top: 1px solid var(--line); }
.courses-section { padding-block: 80px; background: var(--surface); }
.course-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.course-tools > p { margin: 0; font-weight: 650; }
.course-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.course-filters button, [data-course-close] { min-height: 44px; padding: 8px 15px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--paper); cursor: pointer; }
.course-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.course-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-block: 28px; }
.course-index a { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--paper); }
.course-status { color: var(--muted); }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.pawjii-course { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.pawjii-course[open] { grid-column: 1 / -1; }
.pawjii-course > summary { display: flex; align-items: center; gap: 28px; padding: 24px 30px; border-radius: var(--radius); background: var(--peach-soft); list-style: none; }
.pawjii-course:not([open]) > summary { flex-direction: column; align-items: stretch; gap: 16px; }
.pawjii-course:not([open]) > summary > img { margin-inline: auto; }
.pawjii-course:nth-child(3n + 2) > summary { background: var(--yellow); }
.pawjii-course:nth-child(3n) > summary { background: var(--green); }
.pawjii-course > summary::-webkit-details-marker { display: none; }
.pawjii-course > summary::after { content: '+'; font-size: 28px; margin-inline-start: auto; }
.pawjii-course[open] > summary::after { content: '−'; }
.pawjii-course > summary > img { width: 160px; height: 140px; flex-shrink: 0; object-fit: contain; }
.course-summary { display: grid; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.course-title { font: 800 1.5rem/1.4 var(--display); }
.course-meta, .course-access, .lesson-meta { font-size: 13px; color: var(--muted); }
.course-reading { max-width: 850px; margin-inline: auto; padding: 28px 38px; }
.lesson-list { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.lesson-list ol { display: grid; gap: 12px; padding-inline-start: 24px; }
.lesson-body { padding-block: 30px; scroll-margin-top: 24px; }
.lesson-body + .lesson-body { border-top: 1px solid var(--line); }
.lesson-body h3 { font-size: 1.7rem; }
.lesson-body h4 { margin-top: 24px; }
.lesson-steps { padding-inline-start: 27px; margin-bottom: 27px; }
.lesson-steps li { padding-inline-start: 7px; margin-bottom: 18px; line-height: 1.95; }
.lesson-steps li::marker { font-weight: 750; color: var(--accent); }
.preparation { background: var(--surface); border-radius: 17px; padding: 18px 20px; margin-bottom: 26px; }
.preparation h4 { margin-top: 0; }
.preparation p, .observation p { margin-bottom: 0; }
.observation { border-inline-start: 3px solid var(--accent); padding: 6px 18px; margin-bottom: 28px; }
.observation h4 { margin-top: 0; }
.course-safety { padding-top: 28px; color: var(--muted); }
.course-sources { color: var(--muted); font-size: .9rem; }
.course-sources summary { color: var(--ink); font-weight: 650; }
.course-sources > p { margin-top: 20px; }
.course-sources li { margin-block: 16px; }
.classroom-enhanced .pawjii-course .course-reading { display: none; }
.classroom-enhanced .pawjii-course > summary { cursor: pointer; }
.course-dialog { width: min(940px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.course-dialog::backdrop { background: rgb(39 28 33 / .56); backdrop-filter: blur(3px); }
.course-dialog-shell { min-height: 0; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; }
.course-dialog-toolbar { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 14px 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.course-dialog-toolbar > [data-dialog-context] { color: var(--muted); font-size: .9rem; font-weight: 650; }
.course-dialog-toolbar > .language-picker { position: static; }
.course-dialog-toolbar .language-panel { right: 18px; top: calc(100% + 8px); }
.course-dialog-status { margin: 0; padding: 12px 38px; color: var(--accent); background: var(--accent-soft); font-weight: 650; }
.course-dialog-content { overflow: auto; padding: 30px 38px 42px; overscroll-behavior: contain; }
.course-dialog-content > h2 { margin-bottom: 24px; }
.course-dialog-content .course-reading { padding: 0; }
.course-dialog-content .lesson-body { padding-block: 24px 0; }
.course-dialog-content .lesson-body[hidden] { display: none; }
.course-dialog-content [aria-current="step"] { color: var(--accent); font-weight: 750; }
.plus-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 75px; padding-block: 90px; }
.plus-visual { border-radius: 45px; background: var(--peach-soft); padding: 25px; }
.plus-visual img { height: 370px; width: 100%; object-fit: contain; }
.plus-copy > p:not(.eyebrow) { margin: 25px 0; font-size: 17px; color: var(--muted); line-height: 1.9; }
.future-note { border-top: 1px solid var(--line); padding-top: 23px; margin-bottom: 27px; }
.future-note p { font-size: 14px; line-height: 1.8; margin: 7px 0 0; color: var(--muted); }
.closing { border-radius: 36px; background: var(--peach-soft); padding: 58px 30px; text-align: center; margin-bottom: 50px; }
.closing > img { width: 72px; height: 72px; border-radius: 21px; margin: 0 auto 22px; }
.closing h2 { font-size: 36px; }
.closing p { color: var(--muted); margin: 20px 0; }
.availability { display: inline-block; border: 1px solid var(--line); background: var(--paper); padding: 11px 24px; border-radius: 16px; font-size: 14px; font-weight: 600; }
.website-legal { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 50px; }
.website-legal h2 { margin-block: 24px; font-size: 1.7rem; }
.footer { padding-block: 0 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }
.wordmark { font: 850 25px var(--display); color: var(--ink); }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer small { width: 100%; }
.policy-page { max-width: 820px; padding-block: 60px; }
.policy-page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.policy-page h2 { font-size: 1.6rem; margin-block: 36px 18px; }
.policy-page > nav { padding: 24px; border-radius: var(--radius); background: var(--surface); margin-block: 28px 40px; }
.policy-page > nav ol { columns: 2; column-gap: 36px; padding-inline-start: 20px; margin: 0; }
.policy-page li { break-inside: avoid; margin-bottom: 8px; }
.legal-dates { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); }
.policy-page section p { color: var(--muted); }
.policy-page a { overflow-wrap: anywhere; }
:lang(zh), :lang(ja), :lang(ko) { line-break: strict; }
html[dir="rtl"] :is(h1, h2, h3) { letter-spacing: normal; line-height: 1.5; }
@media (max-width: 1023px) {
  .wrap { width: calc(100% - 56px); }
  .pawjii-header { gap: 18px; }
  .brand-nav { gap: 16px; font-size: 13px; }
  .hero { gap: 20px; }
  .hero-art { height: 385px; }
  .memory-card { padding: 13px; right: 0; gap: 10px; }
  .memory-card strong { font-size: 15px; }
  .species-list { gap: 13px; }
  .feature { padding: 22px; }
  .feature-art { height: 165px; }
  .plus-section { gap: 40px; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 40px); }
  .pawjii-header { grid-template-columns: 1fr auto; gap: 16px; padding-block: 16px; }
  .pawjii-header > .language-picker { grid-column: 2; grid-row: 1; }
  .brand-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; padding-block: 42px 53px; gap: 30px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
  .intro { font-size: 16px; }
  .actions { justify-content: center; gap: 20px; }
  .button { padding: 13px 20px; }
  .hero-art { height: 365px; max-width: 460px; width: 100%; margin: auto; }
  .hero-pets { height: 300px; }
  .floating-label { font-size: 12px; padding: 7px 13px; }
  .memory-card { left: 5px; right: 8px; bottom: 5px; padding: 14px 15px; }
  .memory-card > img { width: 48px; height: 48px; }
  .species-band > .wrap { display: block; }
  .species-band p { text-align: center; margin-bottom: 18px; }
  .species-list { justify-content: center; gap: 14px; }
  .species-item img { height: 48px; width: 47px; }
  .care-section, .plus-section { padding-block: 65px; }
  .section-heading { margin-bottom: 30px; }
  h2 { font-size: 2rem; }
  .features, .course-index, .course-grid, .plus-section { grid-template-columns: 1fr; }
  .feature { padding: 27px; }
  .feature-art { height: 195px; }
  .feature p { font-size: 16px; }
  .courses-section { padding-block: 63px; }
  .course-tools { flex-wrap: wrap; }
  .course-filters { width: 100%; }
  .course-filters button { flex: 1 1 auto; }
  .pawjii-course > summary { flex-wrap: wrap; gap: 14px; padding: 24px; }
  .pawjii-course > summary > img { width: 120px; height: 100px; margin-inline: auto; }
  .course-summary { width: 100%; }
  .course-reading { padding: 24px; }
  .course-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .course-dialog-shell { max-height: calc(100dvh - 20px); }
  .course-dialog-toolbar { grid-template-columns: 1fr auto; }
  .course-dialog-toolbar > [data-dialog-context] { grid-column: 1 / -1; }
  .course-dialog-toolbar .language-panel { left: 10px; right: 10px; width: auto; }
  .course-dialog-status { padding-inline: 20px; }
  .course-dialog-content { padding: 24px 20px 32px; }
  .plus-visual img { height: 270px; }
  .closing { padding: 42px 23px; margin-bottom: 45px; }
  .closing h2 { font-size: 30px; }
  .footer { gap: 16px; }
  .policy-page > nav ol { columns: 1; }
}
html:is(:lang(ar), :lang(ur), :lang(hi), :lang(bn), :lang(gu), :lang(kn), :lang(ml), :lang(mr), :lang(or), :lang(pa), :lang(ta), :lang(te)) :is(h1,h2,h3,h4,.course-title) { line-height: 1.5; letter-spacing: normal; }
:is(p,li):is(:lang(hi), :lang(bn), :lang(gu), :lang(kn), :lang(ml), :lang(mr), :lang(or), :lang(pa), :lang(ta), :lang(te)) { line-height: 1.9; }
:is(h1,h2,h3,p,li):lang(ko) { word-break: keep-all; }
.logo small:lang(ko) { word-break: keep-all; }
:is(h1,h2,h3,p,li):is(:lang(de), :lang(fi), :lang(nb), :lang(hu), :lang(ru), :lang(uk)) { hyphens: auto; }
:is(h1,h2,h3):is(:lang(de), :lang(fi), :lang(nb), :lang(hu), :lang(ru), :lang(uk)) { text-wrap: balance; }
.policy-page h1:lang(ja) { font-size: clamp(1.75rem, 5vw, 2.5rem); text-wrap: balance; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
