/* A consistent reading rhythm for this project's varied source media. */
.unitree-project .page-intro { padding-bottom: 20px; }
.unitree-project .site-header, .unitree-project .site-footer, .g1-layout { width: min(1172px, calc(100% - 64px)); margin-inline: auto; }
.g1-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
.unitree-project .g1-content { width: 100%; min-width: 0; margin: 0; }
.g1-toc { position: sticky; top: 28px; align-self: start; margin-top: 43px; }
.g1-toc-disclosure summary { cursor: pointer; padding: 6px 8px 12px; font-size: 14px; font-weight: 600; }
.g1-toc-disclosure summary::marker { color: var(--link); }
.g1-toc-current { display: none; }
.g1-toc-nav { display: grid; gap: 2px; padding: 4px 6px; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; }
.g1-toc-nav a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; align-items: baseline; min-height: 42px; padding: 8px 6px; border-left: 2px solid transparent; color: var(--muted); font-size: 15px; line-height: 1.55; }
.g1-toc-nav a > span:first-child { font-size: 12px; font-variant-numeric: tabular-nums; }
.g1-toc-nav a:hover { color: var(--link); text-decoration: none; background: #f5f7f3; }
.g1-toc-nav a[aria-current="location"] { color: var(--link); border-left-color: var(--link); background: #f0f4ed; }
.g1-module { padding: 34px 0 40px; border-top: 1px solid #cdd7ce; scroll-margin-top: 24px; }
.g1-module-heading { margin-bottom: 24px; }
.g1-eyebrow { margin: 0 0 7px; color: var(--link); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.g1-module-heading h2 { margin: 0; font-size: 29px; }
.g1-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.g1-row + .g1-row { margin-top: 28px; padding-top: 28px; border-top: 1px solid #e6ebe5; }
.g1-row > .actual-media { width: 100%; min-width: 0; margin: 0; }
.g1-row .project-scene-copy { min-width: 0; }
.g1-row h3 { margin-bottom: 14px; font-size: 24px; }
.g1-row figcaption { min-height: 3.3em; margin: 10px 0 0; font-size: 16px; line-height: 1.65; }
.unitree-project .g1-media-frame { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; width: 100%; aspect-ratio: 4 / 3; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #f4f6f2; }
.g1-media-frame img, .g1-media-frame video { width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; background: transparent; }
.g1-media-frame .project-image-stack { width: 100%; height: 100%; min-height: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g1-media-frame .project-image-stack a { min-width: 0; min-height: 0; }
.g1-module-lead { max-width: 880px; margin: 0 0 24px; }
.g1-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.g1-comparison > .actual-media { min-width: 0; margin: 0; }
.g1-comparison h3 { margin-bottom: 16px; font-size: 23px; }
.g1-comparison figcaption { margin: 10px 0 0; font-size: 16px; line-height: 1.65; }
.g1-closing-plan { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e6ebe5; }
.g1-closing-plan h3 { font-size: 24px; }
.g1-closing-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; counter-reset: closing; padding: 0; margin: 20px 0; }
.g1-closing-steps li { min-width: 0; counter-increment: closing; border-left: 2px solid var(--line); padding-left: 14px; }
.g1-closing-steps li::before { content: counter(closing, decimal-leading-zero); display: block; color: var(--link); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.g1-closing-steps strong { font-weight: 500; line-height: 1.65; }
.g1-closing-plan > p { color: var(--muted); font-size: 16px; margin-bottom: 0; }
.g1-wide-media { margin: 0 0 30px; }
.g1-wide-media > a { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.g1-wide-media img { height: auto; background: transparent; }
.g1-wide-media figcaption { font-size: 16px; line-height: 1.65; }
.g1-feedback-steps { margin: 0; padding-left: 23px; }
.g1-feedback-steps li { padding-left: 3px; margin-bottom: 12px; }
.g1-feedback-steps li:last-child { margin-bottom: 0; }
.g1-feedback-steps li::marker { color: var(--link); font-size: .85em; }
.g1-feedback-steps strong { font-weight: 600; }
.g1-timing-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 0 0 28px; padding: 24px 0; border-block: 1px solid var(--line); }
.g1-timing-metrics > div { min-width: 0; }
.g1-timing-metrics dt { font-size: 16px; color: var(--muted); margin-bottom: 8px; }
.g1-timing-metrics dd { margin: 0; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.5; font-variant-numeric: tabular-nums; }
.g1-timing-metrics strong { color: var(--link); font-weight: 600; }
.g1-timing-arrow { color: var(--muted); padding-inline: 3px; }
.g1-timing-metrics .g1-timing-caption { margin-top: 6px; font-size: 16px; color: var(--muted); }
.g1-runtime-flow { margin: 0 0 28px; }
.g1-flow-panel { padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: #f8f9f6; }
.g1-flow-panel + .g1-flow-panel { margin-top: 16px; }
.g1-flow-panel h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 14px; font-size: 23px; margin-bottom: 20px; }
.g1-flow-panel h3 > span { color: var(--muted); font: 400 16px/1.65 system-ui, sans-serif; }
.g1-flow-lane, .g1-flow-reused { list-style: none; padding: 0; margin: 0; }
.g1-flow-lane { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.g1-flow-lane li, .g1-flow-reused li { display: flex; min-width: 0; position: relative; }
.g1-flow-node { display: grid; place-items: center; width: 100%; min-height: 86px; padding: 12px 9px; border: 1px solid #cbd5ca; border-radius: 5px; background: var(--paper); text-align: center; font-size: 16px; line-height: 1.5; }
.g1-flow-lane li:not(:last-child)::after, .g1-flow-reused li:not(:last-child)::after { content: '→'; position: absolute; top: 50%; right: -18px; transform: translateY(-50%); color: #6a8071; font-size: 19px; line-height: 1; }
.g1-flow-load { background: #f0f2ec; border-style: dashed; }
.g1-flow-after { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; }
.g1-flow-service { grid-column: 3; grid-row: 1; padding: 12px 9px; border: 1px solid #8aa991; border-radius: 5px; background: #eaf2e8; text-align: center; font-size: 16px; line-height: 1.5; }
.g1-flow-service strong { display: block; font-weight: 500; color: var(--link); }
.g1-flow-service-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 9px; }
.g1-flow-service-arrow { display: block; color: #6a8071; margin-block: 3px; }
.g1-flow-exchange { grid-column: 3; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 10px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.g1-flow-exchange > span:first-child { font-size: 23px; color: var(--link); }
.g1-flow-reused { display: contents; }
.g1-flow-reused li { grid-row: 3; }
.g1-flow-request { border-color: #8aa991; background: #eaf2e8; color: var(--link); font-weight: 500; }
.g1-runtime-flow figcaption { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.g1-timing-notes, .g1-timing-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.g1-timing-notes h3 { font-size: 24px; margin-bottom: 12px; }
.g1-timing-notes ul { padding-left: 21px; margin-bottom: 0; }
.g1-timing-notes li + li { margin-top: 9px; }
.g1-timing-notes p { margin-bottom: 0; }
.g1-timing-details { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.g1-timing-record-note { margin: 12px 0 24px; color: var(--muted); font-size: 16px; }
.g1-timing-table th, .g1-timing-table td { white-space: normal; }
.g1-timing-table thead th:first-child { text-align: left; }
.g1-timing-table th[scope="row"] { position: static; border-right: 0; }
.g1-timing-table td { white-space: nowrap; }
.g1-timing-table caption { line-height: 1.6; }
.unitree-project .site-footer { margin-top: 0; }

@media (max-width: 1199px) {
  .unitree-project .site-header, .unitree-project .site-footer, .g1-layout { width: min(960px, calc(100% - 64px)); }
  .g1-layout { display: block; }
  .g1-toc { top: 0; z-index: 5; margin-top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .g1-toc-disclosure summary { min-height: 48px; padding: 12px 8px; font-size: 15px; }
  .g1-toc-current { display: inline; float: right; max-width: 60%; color: var(--muted); font-weight: 400; }
  .g1-toc-nav { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); padding-bottom: 10px; }
  .g1-toc-nav a { min-height: 44px; }
  .g1-module { scroll-margin-top: 72px; }
}
@media (max-width: 800px) {
  .unitree-project .site-header, .unitree-project .site-footer, .g1-layout { width: calc(100% - 44px); }
  .g1-row { gap: 28px; }
  .g1-comparison { gap: 28px; }
  .unitree-project .g1-media-frame { padding: 12px; }
}
@media (max-width: 720px) {
  .g1-module { padding-block: 28px 32px; }
  .g1-module-heading { margin-bottom: 20px; }
  .g1-module-heading h2 { font-size: 27px; }
  .g1-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .g1-row + .g1-row { margin-top: 24px; padding-top: 24px; }
  .g1-row h3 { font-size: 23px; }
  .g1-row figcaption { min-height: 0; }
  .g1-comparison { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .g1-closing-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .g1-timing-metrics, .g1-timing-notes, .g1-timing-tables { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .g1-timing-metrics { padding-block: 20px; }
  .g1-timing-metrics dd { font-size: 29px; }
  .g1-flow-panel { padding: 18px; }
  .g1-flow-lane, .g1-flow-after { grid-template-columns: minmax(0, 1fr); }
  .g1-flow-lane { gap: 26px; }
  .g1-flow-node { min-height: 58px; padding: 12px; }
  .g1-flow-service { grid-column: 1; grid-row: 1; }
  .g1-flow-exchange { grid-column: 1; grid-row: 2; font-size: 14px; padding: 10px 0 18px; }
  .g1-flow-exchange > span:first-child { display: none; }
  .g1-flow-reused { display: grid; grid-column: 1; grid-row: 3; gap: 26px; }
  .g1-flow-reused li { grid-row: auto; }
  .g1-flow-lane li:not(:last-child)::after, .g1-flow-reused li:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -22px; transform: translateX(50%); }
}
@media (max-width: 570px) {
  .unitree-project .site-header, .unitree-project .site-footer, .g1-layout { width: calc(100% - 36px); }
}
@media print {
  .g1-layout { display: block; width: 100%; }
  .g1-toc { display: none; }
  .g1-module { break-inside: auto; }
  .g1-module-heading { break-after: avoid; }
  .g1-row { break-inside: avoid; }
}
