#tab-p3 {
  --p3-sage: #4f6a50;
  --p3-sage-dark: #304a38;
  --p3-moss: #71865f;
  --p3-cream: #fffdf8;
  --p3-sand: #f2e9d9;
  --p3-sky: #eaf2ef;
  --p3-sun: #e9bd62;
  --p3-clay: #b96d4d;
  --p3-line: rgba(58, 84, 62, .2);
  --p3-shadow: 0 15px 38px rgba(48, 63, 47, .1);
  color: var(--ink);
}

#tab-p3 .wrap { max-width: 960px; }
#tab-p3 .sec { scroll-margin-top: calc(var(--nav-h) + 28px); }
#tab-p3 [id^="p3-"] { scroll-margin-top: calc(var(--nav-h) + 28px); }
#tab-p3 .sec-head { align-items: center; }
#tab-p3 .sec-head .sico-ic { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; }
#tab-p3 .sec-head .sico-ic img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
#tab-p3 .sec-head h2 { text-wrap: balance; }
#tab-p3 .prose p:last-child { margin-bottom: 0; }
#tab-p3 .p3-flow::after,
#tab-p3 .p3-foundations-copy::after,
#tab-p3 .p3-workbook-intro::after { content: ""; display: table; clear: both; }

#tab-p3 .p3-hero { display: block; padding: 30px 0 12px; }
#tab-p3 .p3-hero-text { min-width: 0; }
#tab-p3 .p3-hero .plbadge { display: inline-flex; margin-bottom: 16px; }
#tab-p3 .p3-hero h1 { max-width: 780px; margin-bottom: 20px; }
#tab-p3 .p3-hero-photo,
#tab-p3 .p3-flow-photo,
#tab-p3 .p3-age-photo { background: #f5efe4; border: 1px solid var(--p3-line); box-shadow: var(--p3-shadow); overflow: hidden; }
#tab-p3 .p3-hero-photo { float: right; width: min(43%, 380px); margin: 2px 0 18px 28px; border-radius: 18px; }
#tab-p3 .p3-flow-photo { float: right; width: min(42%, 345px); margin: 3px 0 18px 28px; border-radius: 16px; }
#tab-p3 .p3-hero-photo img,
#tab-p3 .p3-flow-photo img,
#tab-p3 .p3-age-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
#tab-p3 figcaption { padding: 10px 13px 12px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

#tab-p3 .p3-contrast-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; clear: both; margin: 18px 0 2px; }
#tab-p3 .p3-contrast { border: 1px solid rgba(66, 100, 71, .18); border-radius: 14px; padding: 17px; background: rgba(79, 106, 80, .07); }
#tab-p3 .p3-contrast-warning { background: rgba(185, 109, 77, .08); border-color: rgba(185, 109, 77, .18); }
#tab-p3 .p3-contrast-title { display: block; color: var(--p3-sage-dark); margin-bottom: 8px; }
#tab-p3 .p3-contrast p { margin: 0; font-size: 14px; line-height: 1.65; }

#tab-p3 .p3-school-timing { align-items: stretch; }
#tab-p3 .p3-school-timing > .sec { height: auto; min-width: 0; }

#tab-p3 .p3-disclosure { border: 1px solid var(--p3-line); border-radius: 18px; background: rgba(255, 253, 248, .94); overflow: clip; margin: 18px 0; box-shadow: 0 8px 22px rgba(47, 68, 50, .06); }
#tab-p3 .p3-disclosure > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 18px; align-items: center; padding: 19px 56px 19px 21px; position: relative; background: linear-gradient(135deg, rgba(234, 242, 239, .78), rgba(255, 253, 248, .96)); }
#tab-p3 .p3-disclosure > summary::-webkit-details-marker { display: none; }
#tab-p3 .p3-disclosure > summary::after { content: "+"; position: absolute; right: 21px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--p3-sage-dark); color: #fff; font: 700 20px/1 var(--sans); }
#tab-p3 .p3-disclosure[open] > summary::after { content: "−"; }
#tab-p3 .p3-summary-title { display: block; color: var(--p3-sage-dark); font-family: var(--serif); font-weight: 700; font-size: clamp(18px, 2.3vw, 24px); line-height: 1.2; }
#tab-p3 .p3-summary-note { display: block; grid-column: 1; margin-top: 7px; color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 720px; }
#tab-p3 .p3-detail-body { padding: 24px; border-top: 1px solid var(--p3-line); }
#tab-p3 .p3-age-photo { float: right; width: min(43%, 355px); margin: 2px 0 18px 26px; border-radius: 16px; }
#tab-p3 .p3-age-body h3 { margin: 8px 0 15px; }
#tab-p3 .p3-age-body h4 { margin: 22px 0 8px; color: var(--p3-sage-dark); font-size: 16px; }

#tab-p3 .p3-ladder { list-style: none; padding: 0; margin: 17px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: p3-step; clear: both; }
#tab-p3 .p3-ladder li { counter-increment: p3-step; position: relative; min-width: 0; padding: 14px 13px 14px 48px; border: 1px solid var(--p3-line); border-radius: 13px; background: var(--p3-cream); line-height: 1.35; }
#tab-p3 .p3-ladder li::before { content: counter(p3-step); position: absolute; left: 12px; top: 13px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--p3-sage); font-weight: 800; font-size: 12px; }
#tab-p3 .p3-ladder li img { display: none; }
#tab-p3 .p3-ladder strong { display: block; color: var(--p3-sage-dark); font-size: 13.5px; }
#tab-p3 .p3-ladder span { display: block; margin-top: 4px; color: var(--muted); font-size: 11.75px; }
#tab-p3 .p3-context-link,
#tab-p3 .p3-route-link { display: inline-flex; align-items: center; gap: 7px; color: var(--p3-sage-dark); font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
#tab-p3 .p3-context-link:hover,
#tab-p3 .p3-route-link:hover { color: var(--ochre-dark); }
#tab-p3 .p3-warning { clear: both; margin: 24px 0 0; padding: 18px 19px 17px 21px; border: 1px solid rgba(185, 109, 77, .27); border-left: 5px solid var(--p3-clay); border-radius: 14px; background: rgba(185, 109, 77, .075); }
#tab-p3 .p3-warning h3 { font-size: 18px; color: #8c4932; margin-bottom: 8px; }
#tab-p3 .p3-warning p { font-size: 13.5px; line-height: 1.65; margin: 0; }

#tab-p3 .p3-start-intro { max-width: 810px; }
#tab-p3 .p3-card-grid { min-width: 0; }
#tab-p3 .p3-route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 22px; }
#tab-p3 .p3-route-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--p3-line); border-radius: 17px; background: var(--p3-cream); box-shadow: var(--p3-shadow); }
#tab-p3 .p3-route-card figure { background: var(--p3-sand); }
#tab-p3 .p3-route-card figure img { width: 100%; height: 160px; object-fit: cover; border-radius: 0; }
#tab-p3 .p3-route-copy { display: flex; flex: 1; flex-direction: column; padding: 18px; }
#tab-p3 .p3-age-chip,
#tab-p3 .p3-file-state { display: inline-flex; align-self: flex-start; padding: 5px 9px; border-radius: 999px; background: rgba(79, 106, 80, .11); color: var(--p3-sage-dark); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
#tab-p3 .p3-route-card h3 { font-size: 18px; line-height: 1.18; margin: 12px 0; }
#tab-p3 .p3-check-list { display: grid; gap: 9px; padding: 0; margin: 0 0 16px; list-style: none; }
#tab-p3 .p3-check-list li { position: relative; padding-left: 22px; font-size: 13px; line-height: 1.55; }
#tab-p3 .p3-check-list li::before { content: "?"; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--p3-moss); font-size: 10px; font-weight: 800; }
#tab-p3 .p3-route-answer,
#tab-p3 .p3-route-help { padding: 11px; border-radius: 11px; font-size: 12.5px; line-height: 1.55; }
#tab-p3 .p3-route-answer { background: rgba(79, 106, 80, .08); }
#tab-p3 .p3-route-help { background: rgba(233, 189, 98, .14); }
#tab-p3 .p3-route-link { margin-top: auto; padding-top: 6px; font-size: 13px; }

#tab-p3 .p3-foundations-float { float: right; width: min(45%, 390px); margin: 2px 0 21px 28px; padding: 17px; border: 1px solid var(--p3-line); border-radius: 17px; background: linear-gradient(150deg, #f7fbf7, #f4ead9); box-shadow: var(--p3-shadow); }
#tab-p3 .p3-path { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; margin: 10px 0; }
#tab-p3 .p3-path-label { grid-column: 1 / -1; justify-self: start; background: var(--p3-sage-dark) !important; color: #fff !important; font-weight: 800; }
#tab-p3 .p3-path span:not(.p3-path-label) { min-height: 54px; display: grid; place-items: center; text-align: center; padding: 7px; border-radius: 10px; background: rgba(255, 255, 255, .78); color: var(--p3-sage-dark); font-size: 10.5px; font-weight: 700; line-height: 1.25; }
#tab-p3 .p3-path span { border-radius: 8px; padding: 4px 8px; }
#tab-p3 .p3-path i { color: var(--p3-clay); font-style: normal; font-weight: 900; }
#tab-p3 .p3-foundations-float figcaption { padding: 8px 1px 0; }
#tab-p3 .p3-princip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; clear: both; margin-top: 15px; }
#tab-p3 .p3-princip { position: relative; min-width: 0; padding: 17px 16px 16px; border: 1px solid var(--p3-line); border-radius: 14px; background: var(--p3-cream); }
#tab-p3 .p3-princip > span { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px; border-radius: 9px; color: #fff; background: var(--p3-sage); font-size: 12px; font-weight: 800; }
#tab-p3 .p3-princip h4 { font-size: 15px; line-height: 1.35; margin-bottom: 7px; }
#tab-p3 .p3-princip p { font-size: 12.5px; line-height: 1.55; margin: 0; }

#tab-p3 .p3-parts { list-style: none; display: grid; gap: 7px; margin: 12px 0 16px; padding: 0; }
#tab-p3 .p3-parts li { position: relative; padding-left: 20px; }
#tab-p3 .p3-parts li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--p3-moss); }
#tab-p3 .p3-d0-note { clear: both; margin-top: 18px; padding: 14px 16px; border-radius: 13px; border: 1px dashed rgba(162, 91, 50, .42); background: rgba(233, 189, 98, .11); font-size: 13px; }
#tab-p3 .p3-practice-lead { font-size: 15px; max-width: 800px; }
#tab-p3 .p3-skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }
#tab-p3 .p3-topic { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-content: center; column-gap: 10px; min-height: 68px; padding: 10px 12px; border: 1px solid var(--p3-line); border-radius: 11px; background: rgba(234, 242, 239, .65); color: var(--p3-sage-dark); line-height: 1.3; }
#tab-p3 .p3-topic::before { content: ""; grid-row: 1 / span 2; width: 34px; height: 34px; align-self: center; border-radius: 9px; background: rgba(255,255,255,.75) url("/assets/ukazka/assets/images/v5k-orientace-prostor-cas-ikona-1.webp") center/28px 28px no-repeat; }
#tab-p3 .p3-topic:nth-child(4n + 2)::before { background-image: url("/assets/ukazka/assets/images/v5k-orientace-prostor-cas-ikona-2.webp"); }
#tab-p3 .p3-topic:nth-child(4n + 3)::before { background-image: url("/assets/ukazka/assets/images/v5k-orientace-prostor-cas-ikona-3.webp"); }
#tab-p3 .p3-topic:nth-child(4n + 4)::before { background-image: url("/assets/ukazka/assets/images/v5k-orientace-prostor-cas-ikona-4.webp"); }
#tab-p3 .p3-topic strong { grid-column: 2; font-size: 12.5px; line-height: 1.3; }
#tab-p3 .p3-topic small { grid-column: 2; margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.35; }
#tab-p3 .p3-download-card { display: grid; grid-template-columns: minmax(210px, .82fr) minmax(0, 1.18fr); gap: 0; margin: 22px 0; border: 1px solid var(--p3-line); border-radius: 17px; background: var(--p3-cream); overflow: hidden; box-shadow: var(--p3-shadow); }
#tab-p3 .p3-download-card > img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 0; }
#tab-p3 .p3-download-card > div { padding: 22px; align-self: center; }
#tab-p3 .p3-download-card h3 { font-size: 21px; line-height: 1.25; margin: 11px 0 9px; }
#tab-p3 .p3-download-card p { font-size: 13px; line-height: 1.6; }
#tab-p3 .p3-download-button { display: inline-flex; justify-content: center; padding: 11px 15px; margin-top: 5px; border-radius: 11px; background: var(--p3-sage-dark); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 6px 16px rgba(48, 74, 56, .2); }
#tab-p3 .p3-download-button:hover { background: var(--forest-dark); color: #fff; translate: 0 -1px; }
#tab-p3 .p3-howto { margin-top: 22px; }
#tab-p3 .p3-howto h3 { margin-bottom: 13px; }
#tab-p3 .p3-howto ol { display: grid; gap: 10px; padding-left: 24px; }
#tab-p3 .p3-howto li { padding-left: 5px; font-size: 13.5px; line-height: 1.65; }

#tab-p3 .p3-conclusion { padding: 23px 24px; border-radius: 17px; border: 1px solid rgba(79, 106, 80, .2); background: linear-gradient(145deg, rgba(234, 242, 239, .9), rgba(255, 253, 248, .95)); }
#tab-p3 .p3-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
#tab-p3 .p3-material { min-width: 0; padding: 17px; border: 1px solid var(--p3-line); border-radius: 14px; background: var(--p3-cream); }
#tab-p3 .p3-material h3 { font-size: 16px; line-height: 1.3; margin-bottom: 9px; }
#tab-p3 .p3-material p { font-size: 12.75px; line-height: 1.6; margin: 0; }

#tab-p3 .p3-feedback-form { max-width: 720px; padding: 21px; border-radius: 17px; border: 1px solid var(--p3-line); background: var(--p3-cream); }
#tab-p3 .p3-feedback-form fieldset { border: 0; margin-bottom: 16px; }
#tab-p3 .p3-feedback-form legend,
#tab-p3 .p3-feedback-form label { display: block; margin-bottom: 8px; color: var(--p3-sage-dark); font-size: 13px; font-weight: 800; }
#tab-p3 .p3-stars { display: flex; gap: 4px; }
#tab-p3 .p3-stars button { border: 0; background: transparent; color: #c9c2b7; cursor: pointer; font-size: 31px; line-height: 1; padding: 2px; }
#tab-p3 .p3-stars button.is-active { color: #c28c2f; }
#tab-p3 .p3-stars button:focus-visible { outline: 2px solid var(--p3-sage); outline-offset: 2px; border-radius: 5px; }
#tab-p3 .p3-rating-label,
#tab-p3 .p3-feedback-local,
#tab-p3 .p3-feedback-status { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
#tab-p3 .p3-feedback-form textarea { width: 100%; min-height: 115px; resize: vertical; border: 1px solid var(--p3-line); border-radius: 11px; background: #fff; color: var(--ink); font: 14px/1.55 var(--sans); padding: 11px; }
#tab-p3 .p3-feedback-submit { margin-top: 13px; padding: 10px 15px; border: 0; border-radius: 10px; background: var(--p3-sage-dark); color: #fff; font: 750 13px/1 var(--sans); cursor: pointer; }
#tab-p3 .p3-feedback-submit:hover { background: var(--forest-dark); }
#tab-p3 .p3-nav-foot span { font-size: 12.5px; color: var(--muted); }

/* P3 feedback round R02: align reusable components with the R11 family. */
#tab-p3 .p3-summary-note { font-family: var(--sans); font-weight: 400; }
#tab-p3 .p3-contrast-grid { align-items: stretch; }
#tab-p3 .p3-contrast { min-height: 100%; }
#tab-p3 .p3-ladder { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 10px; counter-reset: none; }
#tab-p3 .p3-ladder li { display: flex; flex-direction: column; align-items: center; min-height: 176px; padding: 16px 12px 14px; text-align: center; }
#tab-p3 .p3-ladder li::before { display: none; }
#tab-p3 .p3-ladder li img { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 10px; }
#tab-p3 .p3-ladder strong { font-size: 13px; }
#tab-p3 .p3-foundation-steps { display: grid; gap: 12px; padding-left: 22px; }
#tab-p3 .p3-foundations-infographic { float:right; width:min(32%,270px); margin:0 0 20px 28px; }
#tab-p3 .p3-foundations-infographic button { display:block; width:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
#tab-p3 .p3-foundations-infographic img { display:block; width:100%; height:auto; border-radius:16px; border:1px solid var(--p3-line); }
#tab-p3 .p3-foundations-infographic figcaption { text-align:center; }
#tab-p3 .p3-infographic-dialog { width:max-content; height:max-content; max-width:96vw; max-height:94dvh; margin:auto; padding:0; border:0; background:transparent; overflow:visible; }
#tab-p3 .p3-infographic-dialog::backdrop { background:rgba(22,16,8,.88); }
#tab-p3 .p3-infographic-dialog img { position:relative; z-index:1; display:block; width:auto; height:auto; max-width:96vw; max-height:82dvh; margin:auto; object-fit:contain; border-radius:10px; box-shadow:0 22px 60px rgba(0,0,0,.55); }
#tab-p3 .p3-infographic-close { position:fixed; z-index:2; right:22px; top:14px; display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:0; border:0; border-radius:0; color:#fff; background:transparent; font:400 34px/1 Arial,sans-serif; cursor:pointer; }
#tab-p3 .p3-infographic-close:hover { color:#fff; background:transparent; transform:none; }
#tab-p3 .p3-infographic-close:focus-visible { outline:2px solid #fff; outline-offset:3px; }
#tab-p3 .p3-infographic-download { position:relative; z-index:1; align-self:center; display:block; width:max-content; margin:16px auto 0; padding:10px 20px; border-radius:22px; color:#fff; background:var(--p3-sage-dark); font:700 14px/1.4 var(--sans); text-decoration:none; }
#tab-p3 .p3-infographic-download:hover { color:#fff; background:#424e2c; }
#tab-p3 .p3-skill-grid { grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap: 10px; }
#tab-p3 .p3-topic { display: flex; flex-direction: column; align-items: center; min-height: 165px; padding: 15px 8px; text-align: center; background:#fbfaf5; }
#tab-p3 .p3-topic::before { display: none; }
#tab-p3 .p3-topic img { width: 62px; height: 62px; object-fit: contain; margin-bottom: 10px; }
#tab-p3 .p3-topic strong, #tab-p3 .p3-topic small { display: block; }
#tab-p3 .p3-download-card { grid-template-columns: 240px minmax(0,1fr); max-width: 680px; min-height: 250px; }
#tab-p3 .p3-download-card > img { grid-row:1; min-height: 240px; height: 240px; aspect-ratio: 1 / 1; margin:20px 0 0 20px; width:240px; border-radius:14px; }
#tab-p3 .p3-download-card > div { grid-row:1; padding:34px 28px 20px; align-self:center; }
#tab-p3 .p3-download-card h3 { font-size: 23px; margin: 0 0 18px; }
#tab-p3 .p3-download-card figcaption { grid-column:1 / -1; padding:12px 20px 18px; font-size:15px; }
#tab-p3 .p3-howto ul { display: grid; gap: 10px; padding-left: 22px; }
#tab-p3 .p3-howto li { padding-left: 4px; font-size: 13.5px; line-height: 1.65; }
#tab-p3 .p3-feedback-form { max-width: 680px; padding: 0; border: 0; background: transparent; font-family:var(--sans); }
#tab-p3 .p3-feedback-form fieldset { margin: 0 0 18px; padding: 0; }
#tab-p3 .p3-stars { align-items: center; gap: 4px; flex-wrap: wrap; }
#tab-p3 .p3-stars input { position: absolute; opacity: 0; pointer-events: none; }
#tab-p3 .p3-stars label { display:flex; align-items:center; justify-content:center; width:44px; height:44px; margin:0; color:#afb69e; cursor:pointer; border-radius:7px; font:36px/1 var(--sans); }
#tab-p3 .p3-stars label:hover { background:#edf0e4; }
#tab-p3 .p3-stars label.is-filled { color:#59643b; }
#tab-p3 .p3-stars input:focus-visible + label { outline: 2px solid var(--p3-sage); outline-offset: 3px; border-radius: 4px; }
#tab-p3 .p3-rating-label { margin: 0 0 0 9px; }
#tab-p3 .p3-feedback-form textarea { min-height: 128px; }
#tab-p3 .p3-conclusion { padding:0; border:0; background:transparent; }

@media (min-width: 901px) {
  #tab-p3 #p3-proc .p3-contrast-grid { clear:none; width:calc(58% - 14px); margin-top:18px; min-height:220px; }
  #tab-p3 #p3-proc .p3-contrast { display:flex; flex-direction:column; justify-content:center; }
}

@media (max-width: 900px) {
  #tab-p3 .p3-route-grid { grid-template-columns: 1fr; }
  #tab-p3 .p3-route-card { display: grid; grid-template-columns: minmax(230px, .42fr) minmax(0, .58fr); }
  #tab-p3 .p3-route-card figure img { height: 100%; min-height: 310px; }
  #tab-p3 .p3-ladder,
  #tab-p3 .p3-princip-grid,
  #tab-p3 .p3-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  #tab-p3 .wrap { padding-inline: 18px; }
  #tab-p3 .p3-hero-photo,
  #tab-p3 .p3-flow-photo,
  #tab-p3 .p3-age-photo,
  #tab-p3 .p3-foundations-float { float: none; width: min(100%, 520px); margin: 0 auto 20px; }
  #tab-p3 .p3-contrast-grid { grid-template-columns: 1fr; }
  #tab-p3 .p3-route-card { display: block; }
  #tab-p3 .p3-route-card figure img { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  #tab-p3 .p3-ladder,
  #tab-p3 .p3-princip-grid,
  #tab-p3 .p3-material-grid { grid-template-columns: 1fr; }
  #tab-p3 .p3-skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tab-p3 .p3-download-card { grid-template-columns: 1fr; }
  #tab-p3 .p3-download-card > img { grid-row:auto; width:calc(100% - 36px); height:auto; min-height:0; max-height:330px; margin:18px 18px 0; aspect-ratio:16 / 9; }
  #tab-p3 .p3-download-card > div { grid-row:auto; padding:20px 18px 12px; }
  #tab-p3 .p3-foundations-infographic { float:none; width:min(100%,320px); margin:0 auto 20px; }
  #tab-p3 .p3-disclosure > summary { padding: 17px 51px 17px 17px; }
  #tab-p3 .p3-detail-body { padding: 19px 17px; }
  #tab-p3 .p3-school-timing { display: block; }
}

@media (max-width: 480px) {
  #tab-p3 .wrap { padding-inline: 14px; }
  #tab-p3 .sec { margin: 29px 0; }
  #tab-p3 .sec-head { align-items: flex-start; gap: 9px; }
  #tab-p3 .sec-head .sico-ic,
  #tab-p3 .sec-head .sico-ic img { width: 40px; height: 40px; flex-basis: 40px; }
  #tab-p3 .p3-hero { padding-top: 18px; }
  #tab-p3 .p3-hero h1 { font-size: 29px; line-height: 1.08; }
  #tab-p3 .prose { font-size: 15px; line-height: 1.68; }
  #tab-p3 .p3-summary-title { font-size: 17px; }
  #tab-p3 .p3-summary-note { font-size: 12.5px; }
  #tab-p3 .p3-disclosure > summary::after { right: 14px; }
  #tab-p3 .p3-ladder { grid-template-columns: 1fr; }
  #tab-p3 .p3-ladder li { padding-top: 13px; padding-bottom: 13px; }
  #tab-p3 .p3-path { grid-template-columns: 1fr; }
  #tab-p3 .p3-path i { rotate: 90deg; justify-self: center; }
  #tab-p3 .p3-skill-grid { grid-template-columns: 1fr; }
  #tab-p3 .p3-download-card > div { padding: 18px; }
  #tab-p3 .p3-download-button { width: 100%; }
  #tab-p3 .p3-conclusion,
  #tab-p3 .p3-feedback-form { padding: 17px; }
  #tab-p3 .p3-nav-foot { gap: 10px; }
  #tab-p3 .p3-nav-foot button { font-size: 12px; padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  #tab-p3 *, #tab-p3 *::before, #tab-p3 *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
