/* PocketPHP shares the workshop's paper, ink, type and spacing tokens. */
.pocket-page { --pocket-purple: #504896; }
.pocket-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; padding: 2px 0 58px; }
.pocket-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.pocket-name { display: flex; gap: 13px; align-items: center; margin: 26px 0 22px; }
.pocket-name img { width: 44px; height: 44px; border-radius: 9px; }
.pocket-name > span { font: 700 24px/1.2 Arial, sans-serif; letter-spacing: -.03em; }
.pocket-intro h1 { font-size: clamp(36px, 4.1vw, 54px); line-height: 1.5; letter-spacing: -.055em; margin-bottom: 22px; }
.pocket-underline { position: relative; white-space: nowrap; }
.pocket-underline::after { content: ""; position: absolute; width: 100%; height: 5px; left: 0; bottom: -5px; background: var(--yellow); }
.pocket-lead { font-size: 18px; font-weight: 700; }
.pocket-description { color: var(--muted); font-size: 15px; line-height: 1.95; margin-top: 13px; }
.pocket-hero-note { font-size: 11px; color: var(--muted); margin-top: 20px; }
.pocket-workbench { position: relative; padding: 23px 25px 20px; background: var(--blue-wash); border: 1px solid var(--line); }
.workbench-label { display: flex; justify-content: space-between; align-items: center; font: 10px/1.5 var(--font-mono); letter-spacing: .09em; color: var(--muted); margin-bottom: 27px; }
.workbench-label > span:last-child { font-size: 21px; color: var(--coral); }
.pocket-code-paper { position: relative; background: var(--sheet); border: 1px solid var(--line-strong); box-shadow: 4px 5px 0 #20354b09; }
.pocket-code-paper::before { content: ""; position: absolute; width: 65px; height: 17px; background: #e9bc50b3; top: -10px; right: 33px; transform: rotate(4deg); }
.code-paper-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 11px 16px; font: 10px/1.6 var(--font-mono); color: var(--muted); }
.code-file { color: var(--ink); font-size: 12px; }
.code-file > span { color: var(--pocket-purple); margin-right: 7px; }
.pocket-code-paper pre { font: 11px/2.05 var(--font-mono); margin: 0; padding: 20px 12px 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.line-no { color: #75818a; display: inline-block; width: 27px; user-select: none; }
.syntax-tag { color: var(--coral); }
.syntax-variable { color: var(--pocket-purple); }
.syntax-string { color: var(--teal); }
.code-paper-foot { padding: 0 15px 12px; display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.code-paper-foot > span:last-child { font-size: 20px; }
.pocket-output { position: relative; border: 1px solid var(--line-strong); background: var(--sheet); width: 90%; margin: 20px 0 0 auto; padding: 14px 19px 22px; box-shadow: var(--shadow-paper); }
.output-heading { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 9px/1.7 var(--font-mono); }
.output-heading i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 5px; }
.output-title { font: 700 clamp(19px, 2.1vw, 28px)/1.35 Arial, sans-serif; margin-top: 22px; letter-spacing: -.045em; }
.pocket-output p + p { font-size: 12px; margin-top: 9px; }
.output-rule { width: 35px; height: 3px; background: var(--yellow); margin: 19px 0 10px; }
.output-note { display: block; color: var(--muted); font-size: 10px; }
.pocket-workbench figcaption { font: 9px/1.8 var(--font-mono); margin-top: 20px; color: var(--muted); }
.pocket-workbench figcaption span { font-family: var(--font-sans); margin-left: 10px; }
.pocket-index { border-block: 1px solid var(--ink); display: flex; gap: 32px; align-items: center; flex-wrap: wrap; padding: 15px 0; }
.pocket-index > .eyebrow { margin-right: auto; }
.pocket-index a { display: inline-flex; align-items: center; gap: 11px; min-height: 36px; text-decoration: none; font-size: 12px; }
.pocket-index a:hover { text-decoration: underline; }
.pocket-index a > span { color: var(--coral); font: 10px/1 var(--font-mono); }
.pocket-section { padding: 60px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.pocket-section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.pocket-section-title h2 { font-size: clamp(25px, 2.7vw, 33px); line-height: 1.6; letter-spacing: -.035em; margin-top: 12px; }
.pocket-section-title > p { color: var(--muted); font-size: 14px; line-height: 1.9; padding-bottom: 4px; }
.pocket-features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.pocket-features article { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.pocket-feature-label { display: flex; align-items: center; gap: 13px; font: 10px/1.5 var(--font-mono); letter-spacing: .08em; color: var(--muted); }
.pocket-feature-label > span:first-child { font-size: 12px; color: var(--coral); }
.pocket-features h3 { font-size: 21px; letter-spacing: -.02em; margin-top: 14px; }
.pocket-features article > p { font-size: 14px; color: var(--muted); line-height: 1.95; margin-top: 12px; }
.pocket-feature-note { font-size: 11px; color: var(--pocket-purple); margin-top: 17px; }
.pocket-memo { display: flex; align-items: flex-start; gap: 38px; background: var(--yellow-wash); border-left: 3px solid var(--yellow); padding: 23px 26px; margin-top: 8px; }
.pocket-memo > .eyebrow { white-space: nowrap; padding-top: 6px; }
.pocket-memo p { font-size: 13px; color: var(--muted); line-height: 1.9; }
.pocket-memo strong { color: var(--ink); font-size: 14px; }
.pocket-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.pocket-steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-number { display: flex; justify-content: space-between; align-items: center; font: 11px/1.5 var(--font-mono); color: var(--coral); }
.step-number > span { font-size: 20px; }
.pocket-steps h3 { font-size: 20px; margin-top: 16px; }
.pocket-steps p { color: var(--muted); font-size: 14px; line-height: 1.9; margin-top: 12px; }
.step-caption { display: block; font: 10px/1.7 var(--font-mono); letter-spacing: .08em; color: var(--muted); margin-top: 20px; }
.edition-intros { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.edition-intros > div { padding: 25px 30px; background: var(--sheet); }
.edition-intros > div:last-child { background: var(--blue-wash); }
.edition-intros h3 { font-size: 22px; margin-top: 9px; }
.edition-intros p { font-size: 13px; margin-top: 9px; color: var(--muted); }
.pocket-comparison { border-collapse: collapse; width: 100%; margin-top: 24px; font-size: 14px; table-layout: fixed; }
.pocket-comparison th, .pocket-comparison td { border-bottom: 1px solid var(--line); padding: 15px 18px; }
.pocket-comparison th:first-child { text-align: left; width: 60%; }
.pocket-comparison thead th { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--ink); }
.pocket-comparison tbody th { font-weight: 400; }
.pocket-comparison td { text-align: center; }
.pocket-comparison tr > :last-child { background: #e8edf16b; }
.edition-check { color: var(--teal); font-size: 19px; font-weight: 700; }
.pocket-fineprint { font-size: 12px; color: var(--muted); line-height: 1.9; margin-top: 21px; }
.pocket-faq-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 45px; }
.pocket-faq-layout .pocket-section-title { align-items: flex-start; }
.pocket-faqs details { border-top: 1px solid var(--line); }
.pocket-faqs details:last-child { border-bottom: 1px solid var(--line); }
.pocket-faqs summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; list-style: none; font-size: 14px; font-weight: 600; }
.pocket-faqs summary::-webkit-details-marker { display: none; }
.faq-toggle { font-size: 20px; color: var(--coral); flex-shrink: 0; }
.pocket-faqs details[open] .faq-toggle { transform: rotate(45deg); }
.pocket-faqs details > p { color: var(--muted); font-size: 14px; line-height: 1.95; padding: 0 30px 24px 0; }
.pocket-release { display: grid; grid-template-columns: .7fr 1.3fr; gap: 55px; align-items: center; background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 43px; margin-top: 56px; scroll-margin-top: 20px; }
.release-object { display: grid; justify-items: center; gap: 20px; }
.release-object img { width: 138px; height: auto; border-radius: 28px; }
.release-object > .eyebrow { font-size: 10px; text-align: center; }
.release-copy h2 { font-size: 30px; line-height: 1.6; margin-top: 12px; letter-spacing: -.035em; }
.release-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.9; color: var(--muted); margin-top: 18px; }
.release-status { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 23px; }
.release-status > span:last-child { font-size: 11px; color: var(--muted); }
.pocket-page .detail-back { display: flex; flex-wrap: wrap; gap: 15px; justify-content: space-between; }
.pocket-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
    .pocket-hero { gap: 32px; }
    .pocket-workbench { padding: 20px 16px; }
    .pocket-code-paper pre { font-size: 10px; padding-inline: 8px; }
    .line-no { width: 22px; }
    .pocket-index { gap: 20px; }
    .pocket-index > .eyebrow { width: 100%; }
}
@media (max-width: 760px) {
    .pocket-hero { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
    .pocket-intro h1 { font-size: 43px; }
    .pocket-workbench { width: 100%; max-width: 490px; justify-self: center; padding: 21px; }
    .pocket-code-paper pre { font-size: 11px; }
    .pocket-output { width: 90%; }
    .pocket-section { padding: 40px 0; }
    .pocket-section-title { display: block; margin-bottom: 25px; }
    .pocket-section-title > p { margin-top: 15px; }
    .pocket-features { column-gap: 28px; }
    .pocket-features h3 { font-size: 19px; }
    .pocket-memo { display: block; padding: 20px; }
    .pocket-memo p { margin-top: 10px; }
    .pocket-steps { grid-template-columns: 1fr; gap: 27px; }
    .step-caption { margin-top: 13px; }
    .pocket-faq-layout { grid-template-columns: 1fr; gap: 0; }
    .pocket-release { grid-template-columns: .6fr 1.4fr; gap: 28px; padding: 30px 24px; margin-top: 38px; }
    .release-object img { width: 100px; border-radius: 21px; }
    .release-copy h2 { font-size: 24px; }
}
@media (max-width: 480px) {
    .pocket-intro h1 { font-size: 38px; }
    .pocket-name { margin-top: 22px; margin-bottom: 18px; }
    .pocket-kicker { gap: 11px; }
    .pocket-kicker .eyebrow { font-size: 10px; }
    .pocket-lead { font-size: 16px; }
    .pocket-hero-note { font-size: 10px; }
    .pocket-workbench { padding: 18px 13px; }
    .pocket-code-paper pre { font-size: 9px; padding-inline: 7px; }
    .line-no { width: 20px; }
    .pocket-output { width: 94%; padding-inline: 15px; }
    .output-note { font-size: 9px; }
    .pocket-index { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 17px 0; }
    .pocket-index > .eyebrow { grid-column: 1 / -1; margin-bottom: 7px; }
    .pocket-features { grid-template-columns: 1fr; }
    .pocket-feature-note { margin-top: 13px; }
    .edition-intros { grid-template-columns: 1fr; }
    .edition-intros > div { padding: 21px; }
    .pocket-comparison { font-size: 12px; }
    .pocket-comparison th, .pocket-comparison td { padding: 13px 7px; }
    .pocket-comparison th:first-child { width: 62%; }
    .pocket-release { grid-template-columns: 1fr; gap: 25px; padding: 28px 23px; }
    .release-object { display: flex; justify-content: flex-start; gap: 15px; }
    .release-object img { width: 65px; border-radius: 13px; }
    .release-object > .eyebrow { text-align: left; }
    .pocket-page .detail-back .text-link { font-size: 12px; gap: 8px; }
}
