.playground-surfacing-page { --playground-paper: #f1f0ea; }
.playground-surfacing-page .playground-main { padding-top: 16px; }
.playground-surfacing-page .path { margin: 0 0 14px; color: var(--muted); font-size: .84rem; }
.playground-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); gap: 26px; align-items: end; margin-bottom: 18px; }
.playground-intro h1 { max-width: 18ch; margin-bottom: 10px; font-size: clamp(1.7rem, 4vw, 2.55rem); line-height: 1.08; letter-spacing: -.035em; }
.playground-lead { max-width: 66ch; margin: 0; color: var(--muted); font-size: 1rem; }
.playground-scope { margin: 0; padding: 13px 15px; border-left: 3px solid #ad8229; background: var(--amber-soft); color: #514623; font-size: .88rem; line-height: 1.5; }
.surfacing-tool { padding: clamp(18px, 3vw, 30px); }
.surfacing-tool-heading, .surfacing-result-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.surfacing-tool-heading h2 { margin-bottom: 5px; font-size: 1.28rem; }
.surfacing-tool-heading p:not(.eyebrow) { max-width: 62ch; margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.example-button { flex: 0 0 auto; }
.surfacing-form { margin-top: 20px; }
.surfacing-input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.playground-surfacing-page .field { gap: 6px; font-size: .86rem; }
.playground-surfacing-page .field > span { color: var(--muted); font-size: .75rem; font-weight: 500; line-height: 1.35; }
.playground-surfacing-page .field input, .playground-surfacing-page .field select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid #abb8ae; border-radius: 5px; background: #fffefa; color: var(--ink); }
.playground-surfacing-page .field input:focus-visible, .playground-surfacing-page .field select:focus-visible { outline: 3px solid #b9d2bf; outline-offset: 2px; border-color: var(--green-dark); }
.surfacing-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; margin-top: 8px; }
.surfacing-form-actions p { margin: 0; color: var(--muted); font-size: .82rem; }
.playground-surfacing-page .button { min-height: 42px; padding: 9px 13px; border: 1px solid transparent; border-radius: 5px; font-size: .86rem; font-weight: 750; }
.playground-surfacing-page .button-primary { color: #fff; background: var(--green); }
.playground-surfacing-page .button-primary:hover { background: var(--green-dark); }
.playground-surfacing-page .button-secondary { color: var(--green-dark); border-color: #adc3b2; background: var(--green-soft); }
.playground-surfacing-page .button-secondary:hover { border-color: var(--green); }
.playground-surfacing-page .button-quiet { padding-inline: 8px; color: var(--green-dark); border-color: #d8ded8; background: transparent; }
.playground-surfacing-page .button:focus-visible { outline: 3px solid #b9d2bf; outline-offset: 2px; }
.surfacing-results { margin-top: 17px; padding: 16px; border-top: 2px solid var(--green); background: #f5f8f4; }
.surfacing-result-heading { align-items: end; margin-bottom: 11px; }
.surfacing-result-heading h3 { margin: 0; font-size: 1.08rem; }
.surfacing-result-heading > p { max-width: 58ch; margin: 0; color: var(--muted); font-size: .78rem; text-align: right; }
.surfacing-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.surfacing-result { min-width: 0; padding: 12px; border: 1px solid #d8e0d8; background: var(--surface); }
.surfacing-result-primary { border-color: #94b79e; }
.surfacing-result > span { display: block; min-height: 2.6em; color: var(--muted); font-size: .76rem; font-weight: 700; line-height: 1.35; }
.surfacing-result > strong { display: block; margin-top: 6px; font-size: clamp(1rem, 2vw, 1.32rem); line-height: 1.2; overflow-wrap: anywhere; }
.surfacing-result > small { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.surfacing-result-note { margin: 12px 0 0; color: #5d542f; font-size: .78rem; }
.surfacing-copy-row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 10px; }
.surfacing-copy-row .copy-status { min-height: 18px; margin: 0; }
#copy-fallback { width: 100%; margin-top: 8px; padding: 9px; border: 1px solid var(--line); background: var(--surface); font: .8rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.table-section, .method-section, .boundary-section, .faq-section, .source-section { margin-top: 18px; padding: clamp(18px, 3vw, 30px); }
.playground-surfacing-page .content-section h2 { margin-bottom: 8px; font-size: 1.28rem; }
.playground-surfacing-page .content-section > p { max-width: 78ch; line-height: 1.58; }
.surfacing-table { max-width: 100%; margin: 15px 0 10px; overflow-x: auto; border: 1px solid var(--line); background: #fffefa; }
.surfacing-table table { width: 100%; border-collapse: collapse; font-size: .84rem; text-align: left; }
.surfacing-table caption { padding: 10px 12px; color: var(--muted); text-align: left; font-size: .78rem; }
.surfacing-table th, .surfacing-table td { padding: 10px 11px; border-top: 1px solid var(--line); vertical-align: top; }
.surfacing-table thead th { color: var(--green-dark); background: var(--green-soft); font-size: .76rem; }
.surfacing-table tbody th { min-width: 150px; color: var(--ink); font-weight: 750; }
.surfacing-table tbody tr:nth-child(even) { background: #fafbf8; }
.table-volume { min-width: 160px; font-variant-numeric: tabular-nums; font-weight: 750; }
.table-footnote, .table-source { font-size: .82rem !important; }
.table-source { margin: 8px 0 0; }
.method-section { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 18px 25px; align-items: start; }
.method-copy { grid-column: 1 / -1; }
.method-copy > p:not(.eyebrow) { max-width: 70ch; color: var(--muted); }
.formula-list, .boundary-list { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 20px; }
.formula-list li, .boundary-list li { padding-left: 2px; line-height: 1.5; }
.method-figure { align-self: center; margin: 0; }
.method-figure img { display: block; width: 100%; height: auto; }
.method-figure figcaption { margin-top: 7px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.worked-example { padding: 13px 15px; border-left: 3px solid var(--green); background: #f5faf7; }
.worked-example h3 { margin-bottom: 8px; }
.worked-example p { margin: 0 0 8px; font-size: .88rem; line-height: 1.55; }
.worked-example p:last-child { margin-bottom: 0; }
.boundary-list { margin-bottom: 17px; }
.boundary-list li { padding-bottom: 8px; border-bottom: 1px solid #e6e9e4; }
.playground-surfacing-page .related-guide { margin-bottom: 0; line-height: 1.5; }
.faq-section details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.faq-section details:last-child { border-bottom: 0; }
.faq-section summary { color: var(--ink); font-weight: 750; cursor: pointer; }
.faq-section details p { max-width: 76ch; margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.source-section ul { display: grid; gap: 10px; padding-left: 20px; }
.source-section li { line-height: 1.5; }
.playground-surfacing-page .workflow-links { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 0; }
.playground-surfacing-page .workflow-links a { min-width: 0; }
.playground-surfacing-page .workflow-links span { line-height: 1.45; }

@media (max-width: 720px) {
  .playground-intro { grid-template-columns: 1fr; gap: 12px; }
  .playground-intro h1 { max-width: 22ch; }
  .surfacing-tool-heading { flex-direction: column; }
  .example-button { width: 100%; }
  .surfacing-result-grid { grid-template-columns: 1fr; }
  .surfacing-result > span { min-height: 0; }
  .surfacing-result-heading { flex-direction: column; align-items: flex-start; }
  .surfacing-result-heading > p { text-align: left; }
  .method-section { grid-template-columns: 1fr; }
  .method-copy { grid-column: auto; }
  .playground-surfacing-page .workflow-links { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .playground-surfacing-page .playground-main { width: min(100% - 16px, 1120px); padding-top: 8px; }
  .playground-surfacing-page .playground-intro h1 { font-size: clamp(1.58rem, 8.2vw, 2rem); line-height: 1.12; }
  .playground-surfacing-page .playground-lead { font-size: .92rem; }
  .playground-scope { padding: 10px 11px; font-size: .81rem; }
  .surfacing-tool, .table-section, .method-section, .boundary-section, .faq-section, .source-section { padding: 15px 13px; }
  .surfacing-input-grid { grid-template-columns: 1fr; gap: 12px; }
  .surfacing-form-actions { align-items: flex-start; }
  .surfacing-form-actions p { padding-top: 8px; }
  .surfacing-table { overflow: visible; border: 0; background: transparent; }
  .surfacing-table table, .surfacing-table tbody { display: block; width: 100%; }
  .surfacing-table caption { padding: 8px 0; }
  .surfacing-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .surfacing-table tbody { display: grid; gap: 9px; }
  .surfacing-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: #fffefa; }
  .surfacing-table tbody th { grid-column: 1 / -1; min-width: 0; padding: 10px 11px 7px; border-top: 0; color: var(--green-dark); background: var(--green-soft); }
  .surfacing-table td { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 8px 10px; overflow-wrap: anywhere; font-size: .8rem; }
  .surfacing-table td::before { content: attr(data-label); color: var(--muted); font-size: .68rem; font-weight: 700; line-height: 1.25; }
  .surfacing-table .table-volume { grid-column: 1 / -1; min-width: 0; }
  .surfacing-result { padding: 11px; }
  .surfacing-copy-row { justify-content: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .playground-surfacing-page *, .playground-surfacing-page *::before, .playground-surfacing-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
