/* Dear Nobody — internal ops document hub (repo root: dn_docs/) */

.dn-docs-body {
  margin: 0;
  min-height: 100vh;
  background: #f6f3ee;
  color: #1a1814;
  font-family: var(--font-body, "Georgia", "Times New Roman", serif);
  line-height: 1.65;
}

.dn-docs-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #1a1814;
  color: #f6f3ee;
  position: sticky;
  top: 0;
  z-index: 10;
}

.dn-docs-site-header a {
  color: #f6f3ee;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dn-docs-site-header a:hover {
  text-decoration: underline;
}

.dn-docs-site-header .dn-docs-brand {
  font-weight: 600;
  letter-spacing: 0.12em;
}

.dn-docs-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5c5348;
  text-decoration: none;
}

.dn-docs-back:hover {
  color: #1a1814;
}

/* Hub hero */
.dn-docs-hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(165deg, #1a1814 0%, #2d2820 55%, #1a1814 100%);
  color: #f6f3ee;
}

.dn-docs-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.dn-docs-hero .dn-docs-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.dn-docs-hero p {
  max-width: 36rem;
  margin: 0 auto;
  opacity: 0.88;
  font-size: 1.05rem;
}

.dn-docs-warning {
  max-width: 42rem;
  margin: -1.5rem auto 0;
  padding: 1.25rem 1.5rem;
  background: #fff8e8;
  border: 1px solid #e8d4a8;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #4a3d28;
  position: relative;
  box-shadow: 0 12px 40px rgba(26, 24, 20, 0.08);
}

/* Card grid */
.dn-docs-hub {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.dn-docs-hub h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5c5348;
  margin: 0 0 1.5rem;
  font-weight: 600;
}

.dn-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.dn-docs-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5dfd4;
  border-radius: 6px;
  padding: 1.5rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(26, 24, 20, 0.04);
}

.dn-docs-card:hover {
  border-color: #1a1814;
  box-shadow: 0 8px 28px rgba(26, 24, 20, 0.1);
}

.dn-docs-card .tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8a7f72;
  margin-bottom: 0.5rem;
}

.dn-docs-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.dn-docs-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #5c5348;
  flex: 1;
}

.dn-docs-card .card-meta {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #8a7f72;
  font-family: ui-monospace, monospace;
}

/* Single doc */
.dn-docs-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.dn-doc header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5dfd4;
}

.dn-doc h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dn-doc .doc-lede {
  margin: 0;
  color: #5c5348;
  font-size: 1.05rem;
}

.dn-doc-prose h2 {
  font-size: 1.05rem;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

.dn-doc-prose h3 {
  font-size: 0.95rem;
  margin: 1.5rem 0 0.5rem;
}

.dn-doc-prose p,
.dn-doc-prose li {
  font-size: 1rem;
}

.dn-doc-prose ul,
.dn-doc-prose ol {
  padding-left: 1.25rem;
}

.dn-doc-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.dn-doc-prose th,
.dn-doc-prose td {
  border: 1px solid #e5dfd4;
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.dn-doc-prose th {
  background: #ede8df;
  font-weight: 600;
}

.dn-doc-prose .mono-block {
  background: #fff;
  border: 1px solid #e5dfd4;
  border-radius: 4px;
  padding: 1.25rem 1.35rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre-wrap;
  margin: 1rem 0;
}

.dn-doc-prose .note {
  font-size: 0.9rem;
  color: #5c5348;
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed #e5dfd4;
}

.dn-doc-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: #1a1814;
  color: #f6f3ee;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.dn-doc-download:hover {
  background: #3d3830;
}

.dn-docs-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  color: #8a7f72;
  border-top: 1px solid #e5dfd4;
  background: #f0ebe3;
}

/* Wider reading column for guides */
.dn-docs-main--wide {
  max-width: 820px;
}

/* Hub: intro & TOC */
.dn-docs-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.dn-docs-intro h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5c5348;
  margin: 0 0 1rem;
}

.dn-docs-intro p {
  margin: 0 0 1rem;
  color: #3d3830;
}

.dn-docs-toc {
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #e5dfd4;
  border-radius: 6px;
}

.dn-docs-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5c5348;
}

.dn-docs-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.dn-docs-toc a {
  color: #1a1814;
}

.dn-docs-toc a:hover {
  color: #5c3d2e;
}

.dn-docs-section-label {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5c5348;
  font-weight: 600;
}

.dn-docs-section-label:not(:first-of-type) {
  margin-top: 2.5rem;
}

/* Doc page: teammate framing */
.dn-doc-one-liner {
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-left: 3px solid #1a1814;
  margin: 0 0 1.25rem;
  color: #3d3830;
}

.dn-callout {
  border-radius: 6px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  border: 1px solid #e5dfd4;
}

.dn-callout h4 {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.dn-callout p:last-child,
.dn-callout ul:last-child {
  margin-bottom: 0;
}

.dn-callout p:first-of-type,
.dn-callout ul:first-of-type {
  margin-top: 0;
}

.dn-callout--why {
  background: #eef5f7;
  border-color: #c5dde6;
}

.dn-callout--why h4 {
  color: #2a5a6a;
}

.dn-callout--example {
  background: #f5f1fa;
  border-color: #d4c8e4;
}

.dn-callout--example h4 {
  color: #5c4a6e;
}

.dn-callout--caution {
  background: #fdf4f2;
  border-color: #e8c9c2;
}

.dn-callout--caution h4 {
  color: #8a4a3a;
}

.dn-callout--tip {
  background: #f1f4ec;
  border-color: #cdd8c0;
}

.dn-callout--tip h4 {
  color: #4a5c3a;
}

.dn-steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  counter-reset: dnstep;
}

.dn-steps > li {
  counter-increment: dnstep;
  position: relative;
  padding: 0.85rem 0 0.85rem 2.75rem;
  border-bottom: 1px solid #e5dfd4;
}

.dn-steps > li:last-child {
  border-bottom: none;
}

.dn-steps > li::before {
  content: counter(dnstep);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.85rem;
  height: 1.85rem;
  line-height: 1.85rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: #1a1814;
  color: #f6f3ee;
  border-radius: 50%;
  font-family: ui-monospace, monospace;
}

.dn-related {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5dfd4;
}

.dn-related h4 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5c5348;
}

.dn-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dn-related li {
  margin-bottom: 0.4rem;
}

.dn-related a {
  color: #1a1814;
}

.dn-related a:hover {
  color: #5c3d2e;
}

.dn-kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  background: #ede8df;
  border-radius: 3px;
}

.dn-scenario {
  background: #fff;
  border: 1px solid #e5dfd4;
  border-radius: 6px;
  padding: 1.35rem 1.25rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(26, 24, 20, 0.04);
}

.dn-scenario h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.dn-scenario .meta {
  font-size: 0.8rem;
  color: #8a7f72;
  margin-bottom: 0.75rem;
}

.dn-glossary dt {
  font-weight: 600;
  margin-top: 1.25rem;
}

.dn-glossary dt:first-child {
  margin-top: 0;
}

.dn-glossary dd {
  margin: 0.35rem 0 0;
  color: #5c5348;
}

.dn-flow-diagram {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  background: #fff;
  border: 1px solid #e5dfd4;
  padding: 1.25rem 1.35rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
  color: #3d3830;
}

.dn-docs-hub .dn-docs-card--featured {
  border-color: #1a1814;
  background: linear-gradient(145deg, #fff 0%, #faf8f4 100%);
}

.dn-docs-card--featured .tag {
  color: #1a1814;
  font-weight: 700;
}
