/* Rowan Copy Docs (docs.php) */
:root { --ink: #14233f; --muted: #50648a; --line: #e2e8f1; --bg: #f7f8fb; --soft: #fbe9d6; --accent: #e08a3c; --accent-ink: #9a521a; --navy-50: #f3f5f9; --ok: #1f7a4a; --ok-soft: #e5f4ec; --warn: #8a5a00; --warn-soft: #fff6e0; --err: #b42318; --err-soft: #fdecea; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; color: var(--ink); font: 16px/1.65 Inter, system-ui, sans-serif; }
a { color: var(--accent-ink); }
[hidden] { display: none !important; }
.dc-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 24px; background: var(--ink); color: #fff; }
.dc-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 1.15rem Fraunces, Georgia, serif; white-space: nowrap; }
.dc-brand em { font-style: normal; color: var(--accent); }
.dc-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.1); color: var(--accent); }
.dc-menu { display: none; background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 4px 8px; }
.dc-search { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.dc-search input { width: 100%; padding: 9px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.dc-search input::placeholder { color: #b6c3d8; }
.dc-search input:focus { outline: 2px solid var(--accent); background: #fff; color: var(--ink); }
#dc-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(20,35,63,.2); max-height: 70vh; overflow: auto; }
#dc-results a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
#dc-results a small { display: block; color: var(--muted); }
#dc-results li[aria-selected="true"] a, #dc-results a:hover { background: var(--navy-50); }
#dc-results .dc-none { padding: 10px 12px; color: var(--muted); }
.dc-cta { padding: 8px 14px; border-radius: 10px; background: var(--accent); color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.dc-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); max-width: 1240px; margin: 0 auto; }
.dc-side { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow-y: auto; padding: 24px 16px 40px 24px; border-right: 1px solid var(--line); }
.dc-group { margin: 18px 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dc-group:first-child { margin-top: 0; }
.dc-side a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; }
.dc-side a:hover { background: var(--navy-50); }
.dc-side a[aria-current] { background: var(--soft); color: var(--accent-ink); font-weight: 600; }
.dc-main { padding: 36px 48px 60px; min-width: 0; }
.dc-crumb { margin: 0 0 4px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.dc-article { max-width: 760px; }
.dc-article h1 { font: 600 2.3rem/1.15 Fraunces, Georgia, serif; margin: 0 0 12px; }
.dc-article h2 { font: 600 1.45rem/1.25 Fraunces, Georgia, serif; margin: 36px 0 10px; padding-top: 8px; }
.dc-article h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.dc-article .dc-lead { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.dc-article code { background: var(--navy-50); border-radius: 6px; padding: 1px 6px; font-size: .9em; overflow-wrap: anywhere; }
.dc-article table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .93rem; display: block; overflow-x: auto; }
.dc-article th, .dc-article td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dc-article th { background: var(--navy-50); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.dc-article kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; font-size: .85em; background: #fff; }
.dc-article .ui { font-weight: 600; }
.dc-steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 18px; }
.dc-steps > li { counter-increment: s; position: relative; padding: 0 0 12px 44px; }
.dc-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--accent-ink); font-weight: 700; font-size: .9rem; }
.dc-callout { display: flex; gap: 10px; margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: var(--ok-soft); font-size: .95rem; }
.dc-callout strong { flex: none; }
.dc-callout > div > :first-child { margin-top: 0; } .dc-callout > div > :last-child { margin-bottom: 0; }
.dc-note { background: var(--navy-50); }
.dc-warn { background: var(--warn-soft); }
.dc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.dc-cards a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.dc-cards a:hover { border-color: var(--accent); transform: translateY(-2px); }
.dc-cards strong { display: block; margin-bottom: 2px; }
.dc-cards span { color: var(--muted); font-size: .9rem; }
.dc-pager { display: flex; justify-content: space-between; gap: 12px; max-width: 760px; margin: 48px 0 0; }
.dc-pager a { flex: 1; max-width: 48%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.dc-pager a small { display: block; color: var(--muted); font-weight: 400; }
.dc-next { text-align: right; margin-left: auto; }
.dc-foot { max-width: 760px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) {
  .dc-top { padding: 0 12px; gap: 10px; }
  .dc-menu { display: block; }
  .dc-brand { font-size: 1rem; } .dc-brand em { display: none; }
  .dc-cta { display: none; }
  .dc-shell { grid-template-columns: minmax(0, 1fr); }
  .dc-side { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 15; max-height: none; background: #fff; border: 0; }
  body.dc-open .dc-side { display: block; }
  .dc-main { padding: 24px 16px 48px; }
  .dc-article h1 { font-size: 1.8rem; }
  .dc-pager a { max-width: none; }
}
