/* The Library's approved stylesheet stays unchanged. These styles add only
   the shared header switch and the separate API Playground. */
.view-switch { display: flex; align-items: center; gap: 20px; }
.view-switch button {
  min-height: 44px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; color: #c4c2bd; background: transparent; font-size: 14px;
}
.view-switch button:hover { color: var(--warm-white); }
.view-switch button[aria-pressed="true"] { color: var(--warm-white); border-bottom-color: var(--orange); }
/* These are programmatic reading/focus destinations, not controls. Do not
   draw the global orange focus ring around an entire page on view switches. */
#main-content:focus, #playground-main:focus, #library-panel:focus, #playground-panel:focus { outline: none; }
.pg-intro { padding: 40px 0 24px; border-bottom: 1px solid var(--divider); }
.pg-intro h1 { font-size: clamp(36px, 3.5vw, 56px); }
.pg-endpoint {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px;
  align-items: baseline; width: 100%; padding: 16px 12px; min-height: 56px;
  border: 0; border-bottom: 1px solid #d7d3cb; border-left: 2px solid transparent;
  border-radius: 0; background: transparent; color: var(--charcoal); text-align: left;
}
.pg-endpoint:hover { background: #e6e2da; }
.pg-endpoint[aria-pressed="true"] { background: var(--paper); border-left-color: var(--orange); }
.pg-method { font-family: var(--mono); font-size: 12px; font-weight: 650; color: #34634c; }
.pg-nav-path { font-size: 12px; overflow-wrap: anywhere; }
#playground-panel { padding: 32px 0 48px; scroll-margin-top: 104px; }
.pg-heading h2 { font-size: 30px; }
.pg-path-line { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; }
.pg-path-line > code { font-size: 16px; overflow-wrap: anywhere; min-width: 0; }
.pg-form { padding: 24px 0; border-top: 1px solid var(--line); }
.pg-form input { display: block; max-width: 480px; font-family: var(--mono); font-size: 14px; }
.pg-form > .small { font-size: 13px; }
.pg-request-preview { padding: 16px; background: #eeece6; border: 1px solid var(--line); font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.pg-send { margin: 0; }
.pg-send:disabled { background: #e5e2db; border-color: #d5d1c8; color: var(--text-secondary); cursor: not-allowed; }
.pg-secondary { min-height: 44px; padding: 10px 20px; background: transparent; color: var(--charcoal); border: 1px solid #b6b1a7; border-radius: 2px; font-size: 14px; }
.pg-secondary:disabled { color: var(--text-secondary); border-color: var(--line); cursor: not-allowed; }
.pg-panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--line); }
.pg-panel-heading h3 { margin: 0; font-size: 16px; font-weight: 550; }
.pg-text-button { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--charcoal); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.pg-text-button:hover:enabled { color: #b74200; }
.pg-text-button:disabled { color: var(--text-secondary); text-decoration: none; cursor: not-allowed; }
.pg-code { max-width: 100%; max-height: 560px; overflow: auto; margin: 0; padding: 20px; border: 1px solid var(--line); border-top: 0; background: #eeece6; font-family: var(--mono); font-size: 13px; line-height: 1.85; tab-size: 2; }
.pg-code code { display: block; white-space: pre; }
.pg-response { min-width: 0; margin-top: 24px; }
.pg-response[aria-busy="true"] .pg-panel-heading { border-bottom-color: var(--orange); }
.pg-response-meta { font-family: var(--mono); font-size: 12px; color: var(--text-secondary); overflow-wrap: anywhere; }
.pg-response-meta:empty { display: none; }
.pg-feedback { min-height: 24px; font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .site-header .header-game { display: none; } .view-switch { margin-left: auto; } }
@media (max-width: 760px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; height: 120px; padding-top: 8px; padding-bottom: 8px; }
  .site-header .wordmark { grid-column: 1; grid-row: 1; }
  .site-header .nav-toggle { grid-column: 2; grid-row: 1; }
  .view-switch { grid-column: 1 / -1; grid-row: 2; margin-left: 0; gap: 24px; }
  html { scroll-padding-top: 144px; }
  #library-panel, #playground-panel { scroll-margin-top: 144px; }
  .pg-intro { padding-top: 32px; }
  .pg-code { padding: 16px; font-size: 12px; }
}
