/* Current layouts. Shared tokens and components come from the PRN UI submodule. */
:root { color-scheme: dark; }
html { scroll-padding-top: 24px; }
body.current-site { max-width: none; padding: 0; margin: 0; }
.current-site > header, .current-site > main, .current-site > footer {
  width: min(1100px, calc(100% - 64px));
  margin-inline: auto;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.current-site :focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.current-site .btn:focus-visible { outline-offset: -4px; filter: brightness(1.3); }
.current-site .field-control:focus-within { background: var(--cyan); }
.current-site .field-input:focus-visible { outline-offset: -4px; }

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
.wordmark { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.wordmark span { color: var(--cyan); margin-left: 5px; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 13px; color: var(--text-muted); }
.site-header nav a { padding-block: 10px; }
.site-header nav a:last-child { color: var(--cyan); }
.hero { padding: 46px 0 38px; }
.eyebrow { font: 11px/1.6 var(--font-mono); letter-spacing: .09em; color: var(--text-muted); margin-bottom: 14px; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; margin-right: 7px; }
.hero h1 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.15; font-weight: 600; letter-spacing: -1.4px; margin: 0 0 16px; }
.highlight { color: var(--cyan); }
.intro { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-actions { gap: 14px 24px; }
.text-link { font-size: 13px; color: var(--text-muted); }
.hero-actions .text-link { color: var(--text); }
.current-site .btn { min-height: 44px; padding: 10px 17px; font-size: 13px; text-align: center; text-decoration: none; }
.current-site .btn:hover { color: var(--text); }
.current-site .btn:disabled { opacity: .55; cursor: wait; }
.current-site .btn:disabled::before { background: var(--surface); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { font-size: 20px; font-weight: 600; letter-spacing: -.35px; }
.section-heading .eyebrow { margin: 0; font-size: 10px; text-align: right; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; align-items: start; }
.current-site .demo-card { padding: 26px; margin: 0; min-width: 0; }
.card-top { display: flex; align-items: center; min-height: 18px; padding-right: 36px; margin-bottom: 22px; }
.card-top .section-label { margin: 0; color: var(--accent); font-size: 10px; }
.demo-card h3 { font-size: 25px; font-weight: 600; letter-spacing: -.5px; line-height: 1.3; margin-bottom: 12px; }
.demo-card > p { font-size: 14px; line-height: 1.75; color: var(--text-muted); margin-bottom: 22px; }
.demo-card .actions { margin-top: 20px; }
.current-site .small { color: var(--text-muted); font-size: 12px; line-height: 1.7; }
.demo-card > .small { margin: 16px 0 0; }
.small a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.identity-preview { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.identity-preview span { color: var(--text-muted); font: 9px/1.6 var(--font-mono); letter-spacing: .07em; max-width: 90px; }
.identity-preview strong { color: var(--orange); font: 25px var(--font-mono); letter-spacing: 3px; white-space: nowrap; }
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; font: 11px var(--font-mono); }
.flow span { padding: 9px 10px; border: 1px solid var(--border); background: var(--surface-deep); }
.flow b { color: var(--purple); }
#color-form { width: 100%; }
.input-row { display: flex; gap: 9px; }
.input-row .field-control { flex: 1; min-width: 0; }
.input-row button { flex-shrink: 0; white-space: nowrap; }
.current-site .field-input { font-size: 14px; line-height: 1.65; }
.text-button { color: var(--cyan); background: transparent; border: 0; padding: 10px 0; font-size: 12px; min-height: 40px; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--text); }

.mcp-connect { width: 100%; margin-top: 24px; border-top: 1px solid var(--border); }
.mcp-connect details + details { border-top: 1px solid var(--border); }
.mcp-connect summary { padding: 17px 2px; font-size: 13px; font-weight: 600; cursor: pointer; }
.mcp-connect summary::marker { color: var(--green); }
.mcp-connect summary:hover { color: var(--green); }
.mcp-connect details[open] { padding-bottom: 18px; }
.mcp-connect p, .mcp-steps { color: var(--text-muted); font-size: 13px; line-height: 1.75; }
.mcp-connect a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.mcp-connect a:hover { color: var(--cyan); }
.mcp-steps { margin: 0; padding-left: 20px; }
.mcp-steps li { padding-left: 3px; margin-bottom: 16px; }
.mcp-steps p { margin: 12px 0 0; }
.mcp-connect .field-control { margin: 10px 0 4px; }
.mcp-connect .field-input { font: 12px/1.7 var(--font-mono); }
.mcp-connect textarea { resize: vertical; min-height: 120px; }
.mcp-connect .small { margin-top: 10px; }
.mcp-connect [role=status]:empty { display: none; }
.mcp-connect .btn { margin-top: 10px; }

.current-site .board { margin: 0 0 24px; padding: 26px; }
.board .section-heading { padding-right: 35px; }
#color-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; min-height: 88px; }
.color-item { padding: 15px 12px; display: flex; align-items: center; gap: 10px; background: var(--surface-deep); border: 1px solid var(--border); min-width: 0; }
.color-item > div { min-width: 0; }
.swatch { width: 6px; height: 40px; flex-shrink: 0; }
.color-item strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.color-item small { display: block; color: var(--text-muted); font: 10px/1.65 var(--font-mono); margin-top: 4px; overflow-wrap: anywhere; }
.muted { color: var(--text-muted); grid-column: 1/-1; font-size: 13px; }
#color-board > .muted { padding: 22px 16px; border: 1px dashed var(--border); }
.current-site .build-note { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 28px; margin: 0 0 36px; }
.build-note h2 { font-size: 26px; line-height: 1.3; font-weight: 600; letter-spacing: -.5px; }
.build-note > div:last-child { padding-right: 28px; }
.build-note p:not(.eyebrow) { color: var(--text-muted); font-size: 14px; line-height: 1.75; margin-bottom: 15px; }
.build-note .text-link { color: var(--cyan); }
.build-note p.small { font-size: 12px; margin: 16px 0 0; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; border-top: 1px solid var(--border); padding: 24px 0 32px; color: var(--text-muted); font-size: 11px; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 14px 20px; }

.current-site .document { max-width: 900px; min-height: 72vh; padding: 40px 0; }
.current-site .document-panel { margin: 0; padding: 36px; }
.document-panel::after { display: none; }
.document h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 600; letter-spacing: -1px; line-height: 1.2; margin-bottom: 24px; overflow-wrap: anywhere; }
.document h2 { margin: 30px 0 12px; font-size: 22px; font-weight: 600; }
.document p, .document li { color: var(--text-muted); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.document p { margin-bottom: 20px; }
.document p.eyebrow { font-size: 11px; }
.document strong { color: var(--text); }
.document ol, .document ul { padding-left: 22px; margin-bottom: 24px; }
.document li { padding-left: 4px; margin-bottom: 12px; }
.document p a, .document li a, .document-panel > a:not(.btn) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.document .btn { margin-bottom: 8px; }
.document form { margin-top: 20px; }
.document label { display: block; max-width: 620px; color: var(--text); font-size: 13px; margin-bottom: 20px; }
.document label .field-control { margin-top: 8px; }
pre { font: 12px/1.8 var(--font-mono); background: var(--surface-deep); color: #aeb6c2; border: 1px solid var(--border); padding: 20px; margin: 20px 0; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font: .88em var(--font-mono); color: var(--text); overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .current-site > header, .current-site > main, .current-site > footer { width: calc(100% - 40px); }
  .current-site .demo-card { padding: 22px; }
  .identity-preview { gap: 12px; }
  .identity-preview span:last-child { display: none; }
  #color-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .input-row { flex-wrap: wrap; }
  .input-row .field-control { flex-basis: 180px; }
}
@media (max-width: 640px) {
  .current-site > header, .current-site > main, .current-site > footer { width: calc(100% - 32px); }
  .site-header { flex-wrap: wrap; padding: 20px 0 12px; gap: 8px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 12px; }
  .hero { padding: 30px 0; }
  .hero h1 { font-size: 34px; }
  .intro { font-size: 15px; }
  .hero-actions { gap: 16px; }
  .hero-actions .btn { flex-basis: 100%; }
  .hero-actions .text-link { font-size: 12px; }
  .section-heading { gap: 14px; align-items: flex-start; }
  .section-heading h2 { font-size: 18px; }
  .section-heading .eyebrow { font-size: 9px; max-width: 110px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .current-site .demo-card, .current-site .board { padding: 22px 20px; }
  .demo-card h3 { font-size: 24px; }
  .demo-card .actions { gap: 12px; }
  .current-site .field-input { font-size: 16px; }
  .mcp-connect .field-input { font-size: 14px; }
  #color-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board .section-heading { padding-right: 25px; }
  .board .section-heading .eyebrow { max-width: 95px; }
  .current-site .build-note { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
  .build-note > div:last-child { padding-right: 0; }
  .build-note h2 { font-size: 25px; }
  .current-site .document { padding: 24px 0; }
  .current-site .document-panel { padding: 26px 20px; }
  .document p, .document li { font-size: 14px; }
  pre { padding: 14px; font-size: 11px; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
