/* Documentation-first refinements layered over the original visual system. */
html { scroll-padding-top: 88px; }
.mobile-nav { display: none; }
.hero { padding: 56px 0 52px; }
.hero h1 { font-size: clamp(34px, 3.8vw, 52px); letter-spacing: -.055em; margin: 13px 0 15px; }
.hero-copy { font-size: 16px; max-width: 760px; line-height: 1.6; }
.notice { margin-top: 26px; max-width: none; background: #fff8e7; border-color: #ead8a7; color: #5d5238; }
.notice strong { color: #775c19; }
.notice code { font-size: 12px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: #7a887f; font-size: 12px; }
.doc-meta span + span::before { content: '·'; margin-right: 20px; color: #a2afa5; }
.section { padding: 54px 0 62px; }
.section h2 { font-size: clamp(25px, 2.5vw, 34px); margin: 12px 0 13px; }
.section>p { font-size: 15px; line-height: 1.65; }
.status-first { padding-top: 48px; }
.status-first>p:first-of-type { color: #3e5246; }
.status-grid { margin-top: 22px; }
.status-card { padding: 20px; }
.status-dot { margin-bottom: 10px; }
.inline-warning { display: inline-block; margin-top: 12px; padding: 7px 11px; border: 1px solid #e9d79e; border-radius: 5px; background: #fff8e7; color: #70591c; font-size: 12px; font-weight: 700; }
.endpoint-list { margin-top: 17px; }
.endpoint-list>div { padding: 13px 17px; }
.endpoint-list b { font-size: 12px; }
.code-heading { margin-top: 22px; }
.error-list { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-top: 22px; background: white; }
.error-list>div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 17px; border-top: 1px solid var(--line); }
.error-list>div:first-child { border-top: 0; }
.error-list code { width: fit-content; font-weight: 700; }
.error-list span { font-size: 13px; color: #5b6f61; }
.closing { margin-top: 40px; }
.nav-draft { color: #8c6b20; background: #fff2cb; padding: 2px 4px; border-radius: 3px; letter-spacing: .05em; }
.layout { grid-template-columns: 286px minmax(0, 1fr); }
.sidebar { padding: 30px 19px 24px 24px; }
.api-tree { margin: 5px 0 3px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0; }
.api-tree details + details { border-top: 1px solid #edf1ed; }
.api-tree summary { cursor: pointer; list-style-position: outside; margin-left: 13px; padding: 8px 0 8px 3px; color: #344b3b; font-size: 12px; font-weight: 800; line-height: 1.3; }
.api-tree details[open] summary { color: #176d55; }
.api-tree summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sidebar .api-tree a { display: flex; align-items: center; gap: 9px; min-width: 0; margin: 1px 0 1px 13px; padding: 6px 8px; border: 0; border-radius: 5px; color: #4e6255; font-size: 12px; line-height: 1.3; }
.sidebar .api-tree a:hover, .sidebar .api-tree a.active { color: #145d43; background: #e9f4e9; }
.nav-method { flex: none; width: 35px; color: #22658a; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.02em; }
.nav-method.post { color: #14714b; }
.endpoint-list b a { text-decoration: underline; text-decoration-color: #bdd9c2; text-underline-offset: 3px; }
.endpoint-list b a:hover { color: var(--green); }
.api-detail h2 { overflow-wrap: anywhere; font-size: clamp(21px, 2.1vw, 29px); }
.section h2 code.heading-method { font: 800 .53em/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #166443; background: #e4f4e8; border: 0; border-radius: 4px; padding: 6px 7px; vertical-align: middle; letter-spacing: 0; white-space: nowrap; }
.section h2 code.heading-method.get { color: #205e8c; background: #e5f1fa; }
.endpoint-summary { color: #334f40 !important; font-weight: 600; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 23px; }
.field-grid>div { display: flex; flex-direction: column; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 15px; }
.field-grid b { font-size: 12px; }
.field-grid span { font-size: 12px; color: #607166; line-height: 1.55; }
.field-grid code { width: fit-content; overflow-wrap: anywhere; }
.task-section { padding-top: 44px; }
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.task-grid a { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 17px 19px; border: 1px solid var(--line); border-radius: 9px; background: white; transition: border-color .15s, background .15s; }
.task-grid a:hover { border-color: #96c9a5; background: #f4faf3; }
.task-grid b { font: 800 15px/1.3 Manrope, sans-serif; }
.task-grid span { color: #65776b; font-size: 12px; }
.task-grid code { width: fit-content; max-width: 100%; overflow-wrap: anywhere; margin-top: 4px; color: #1c7251; font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-top: 22px; background: white; }
.resource-grid>div { display: flex; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); }
.resource-grid>div:nth-child(-n+2) { border-top: 0; }
.resource-grid>div:nth-child(2n) { border-left: 1px solid var(--line); }
.resource-grid b { min-width: 73px; color: #284d37; font-size: 12px; }
.resource-grid span { color: #66766b; font-size: 12px; line-height: 1.45; }
.roadmap-list { list-style: none; padding: 0; margin: 26px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: white; }
.roadmap-list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 17px 20px; border-top: 1px solid var(--line); }
.roadmap-list li:first-child { border-top: 0; }
.roadmap-list li > span { color: #247257; font: 800 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.roadmap-list h3 { margin: 0 0 4px; font: 800 15px/1.3 Manrope, sans-serif; letter-spacing: -.03em; }
.roadmap-list p { margin: 0; color: #63756a; font-size: 12px; line-height: 1.55; }
.inline-link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
body:not(.reference-page) .api-detail { display: none; }
.reference-page main { padding-top: 42px; }
.reference-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: #738478; font-size: 12px; font-weight: 700; }
.reference-hero a { color: var(--green); }
.reference-hero a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-toc { position: sticky; top: 72px; z-index: 9; min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--line); background: rgba(251,252,248,.97); backdrop-filter: blur(12px); }
.page-toc-menu { position: relative; width: min(100%, 340px); }
.page-toc-menu summary { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 6px 11px; border: 1px solid #cdded0; border-radius: 7px; background: white; cursor: pointer; list-style: none; }
.page-toc-menu summary::-webkit-details-marker { display: none; }
.page-toc-menu summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.page-toc-label { flex: none; color: #74867a; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.page-toc-current { min-width: 0; overflow: hidden; color: #244b35; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.page-toc-chevron { flex: none; width: 7px; height: 7px; margin-left: auto; border-right: 2px solid #617968; border-bottom: 2px solid #617968; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.page-toc-menu[open] .page-toc-chevron { transform: rotate(225deg) translateY(-1px); }
.page-toc-links { position: absolute; top: calc(100% + 5px); left: 0; display: grid; gap: 2px; width: 100%; max-height: min(390px, calc(100vh - 165px)); padding: 6px; overflow-y: auto; border: 1px solid #cdded0; border-radius: 8px; background: white; box-shadow: 0 12px 30px rgba(16,35,30,.13); }
.page-toc-menu:not([open]) .page-toc-links { display: none; }
.page-toc-links a { padding: 8px 9px; border-radius: 5px; color: #4f6758; font-size: 12px; font-weight: 700; }
.page-toc-links a:hover, .page-toc-links a:focus-visible, .page-toc-links a[aria-current="location"] { color: #145d43; background: #e9f4e9; }
.reference-page .api-detail { padding-top: 36px; border-bottom: 0; }
.reference-page .api-detail, .reference-page .reference-block { scroll-margin-top: 50px; }
.reference-page .reference-block:target h3 { color: var(--green); }
.reference-pager { display: flex; justify-content: space-between; gap: 18px; margin: 10px 0 24px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; font-weight: 700; color: var(--green); }
.reference-pager a:hover { text-decoration: underline; text-underline-offset: 3px; }
.reference-note { color: #86948a; font-size: 12px; }
.reference-block { margin-top: 31px; }
.reference-block h3 { font: 800 18px/1.3 Manrope, sans-serif; letter-spacing: -.03em; margin: 0 0 12px; color: #203b2c; }
.reference-block .code-heading { margin-top: 10px; }
.reference-block pre { margin-bottom: 0; }
.field-note { margin: -3px 0 12px; color: #728277; font-size: 12px; line-height: 1.5; }
.parameter-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: white; }
.parameter-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.request-table { min-width: 710px; }
.response-table { min-width: 480px; }
.status-table { min-width: 480px; }
.parameter-table th { color: #5e7465; background: #f2f7f0; font-size: 11px; letter-spacing: .03em; }
.parameter-table th, .parameter-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.parameter-table tr:last-child td { border-bottom: 0; }
.parameter-table td:nth-child(2) { white-space: nowrap; }
.parameter-table td:nth-child(3) { color: #49614f; font-weight: 700; }
.response-table td:nth-child(2) { color: #49614f; font-weight: 700; }
.response-table td:nth-child(3) { color: inherit; font-weight: 400; overflow-wrap: anywhere; }
.value-set { display: grid; gap: 6px; margin-top: 7px; }
.value-set-label { width: fit-content; border-radius: 4px; padding: 2px 6px; font-size: 10px; font-weight: 800; letter-spacing: .01em; }
.value-set-label.closed { color: #215d42; background: #e3f3e7; }
.value-set-label.extensible { color: #49677b; background: #e7f1f7; }
.value-set-values { display: flex; flex-wrap: wrap; gap: 4px; }
.parameter-table .value-set-values code { display: inline-block; padding: 2px 5px; border: 1px solid #d8e5d9; border-radius: 4px; background: #f6faf6; color: #365d44; font-size: 10px; font-weight: 600; white-space: nowrap; }
.status-table td:first-child { white-space: nowrap; width: 185px; }
.reference-behavior { border-top: 1px solid var(--line); padding-top: 26px; }
.reference-behavior p { color: #5a6d63; font-size: 14px; line-height: 1.65; }
pre .syntax-key { color: #9ed5ff; }
pre .syntax-string { color: #f5cb8d; }
pre .syntax-number { color: #bfe99d; }
pre .syntax-literal { color: #dfb9f7; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .mobile-nav { display: flex; flex-wrap: wrap; gap: 7px; padding: 18px 0 0; }
  .mobile-nav a { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 5px 9px; font-size: 12px; font-weight: 700; color: #395b48; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .roadmap-list li { grid-template-columns: 1fr; gap: 5px; padding: 15px; }
  .page-toc { top: 64px; }
  .page-toc-menu { width: 100%; }
  .task-grid, .resource-grid { grid-template-columns: 1fr; }
  .resource-grid>div { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .resource-grid>div:first-child { border-top: 0 !important; }
  .hero { padding: 36px 0 42px; }
  .hero h1 { font-size: 35px; }
  .hero-copy { font-size: 15px; }
  .notice { padding: 14px; }
  .doc-meta { display: block; }
  .doc-meta span { display: block; }
  .doc-meta span + span::before { display: none; }
  .section { padding: 45px 0 52px; }
  .error-list>div { grid-template-columns: 1fr; gap: 5px; }
  .code-heading span:last-child { display: block; font-size: 10px; text-align: right; }
}
