/* ai.revelations.consulting/palamedes: page styles on top of ai.css and pipeline.css. */
.dd-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.dd-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.dd-hero-media { min-width: 0; }
.dd-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #163D15; border-radius: 14px; border: 1px solid #2E5A2C; object-fit: cover; }
.dd-media-note { margin: 8px 0 0; font-size: .8rem; color: var(--sage); }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.dd-stat { font-size: 1.15rem; line-height: 1.45; }
.dd-stat b { font-family: var(--serif); font-size: 1.6rem; color: var(--forest); display: block; }
.dd-stat span { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.lede-dark a, .dd-fine a, .dd-link { color: #7A5A10; font-weight: 600; }

/* Workflow videos */
.dd-clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.dd-clip h3 { margin: 14px 0 6px; font-size: 1.08rem; }
.dd-clip details { font-size: .9rem; color: var(--muted); }
.dd-clip summary { cursor: pointer; font-weight: 600; color: #7A5A10; }
.dd-clip ol { margin: 8px 0 0; padding-left: 1.2em; }
.dd-clip li { margin: 0 0 4px; }

/* With Seconded: policy rules on the left light up the parts of the flow they govern. */
.dd-contract { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; margin-top: 28px; align-items: start; }
.dd-policy { background: var(--forest); border-radius: 14px; padding: 18px; display: grid; gap: 8px; }
.dd-policy-h { margin: 0 0 4px; font: 600 .78rem ui-monospace, Menlo, monospace; color: var(--sage); letter-spacing: .04em; }
.dd-rule { text-align: left; font: .92rem/1.4 var(--sans); color: var(--cream); background: var(--forest-2); border: 1px solid #2E5A2C; border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.dd-rule code { font: 600 .82rem ui-monospace, Menlo, monospace; color: var(--gold); margin-right: 4px; }
.dd-rule:hover, .dd-rule[aria-pressed="true"] { border-color: var(--gold); background: #1E4A1C; }
.dd-rule:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.dd-break { border-style: dashed; color: #F5B7A8; }
.dd-break[aria-pressed="true"] { border-color: #F5B7A8; background: #3A1F1A; }
.dd-flow { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.1fr) 28px minmax(0, 1fr); align-items: stretch; }
.dd-lane { display: grid; gap: 10px; align-content: start; }
.dd-lane-h { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dd-arrow { position: relative; }
.dd-arrow::before { content: ""; position: absolute; left: 4px; right: 6px; top: 50%; border-top: 2px solid rgba(14, 43, 13, .35); }
.dd-arrow::after { content: ""; position: absolute; right: 4px; top: calc(50% - 5px); border: 5px solid transparent; border-left-color: rgba(14, 43, 13, .5); }
.dd-node { background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.dd-node b { font-family: var(--serif); font-size: 1rem; }
.dd-node span, .dd-node em { font-size: .84rem; color: var(--muted); font-style: normal; }
.dd-node .key { justify-self: start; font: 600 .74rem ui-monospace, Menlo, monospace; color: #7A5A10; border: 1px solid rgba(122, 90, 16, .45); border-radius: 999px; padding: 1px 8px; }
.dd-model { color: #2F6B3A !important; font-weight: 600; }
.dd-gate { border-style: dashed; border-color: rgba(122, 90, 16, .6); }
.dd-person { background: var(--forest); border-color: var(--forest); }
.dd-person b { color: var(--cream); }
.dd-person span { color: var(--sage); }
.dd-flow.is-active .dd-node { opacity: .45; }
.dd-flow.is-active .dd-node.is-on { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .25); }
.dd-flow.is-self .dd-gate.is-on { border-color: #A6362A; border-style: solid; background: #F6E1DC; box-shadow: 0 0 0 3px rgba(166, 54, 42, .18); }
.dd-flow.is-self .dd-gate .dd-gate-msg { color: #A6362A; font-weight: 600; }
.dd-flow.is-self .dd-k-rev { color: #A6362A; border-color: rgba(166, 54, 42, .5); }
.dd-flow.is-self .dd-out { opacity: .3; text-decoration: line-through; }
.dd-fine { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }

/* FDE lanes */
.dd-lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.dd-card { background: var(--cream-2); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; padding: 18px; }
.dd-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.dd-card p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Proof + form */
.dd-quote { margin: 8px 0 0; padding: 18px 22px; border-left: 3px solid var(--gold); background: var(--forest-2); border-radius: 0 12px 12px 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; color: var(--cream); max-width: 62rem; }
.form .check { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--cream); margin-top: 12px; }
.form .check input { width: auto; }
.form-title { margin: 0 0 4px; font-size: 1.15rem; color: var(--cream); font-family: var(--serif); }
.dd-access { align-items: start; }

@media (max-width: 980px) {
  .dd-clips { grid-template-columns: 1fr; max-width: 560px; }
  .dd-lanes { grid-template-columns: 1fr 1fr; }
  .dd-contract { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 16px; }
  .dd-flow { grid-template-columns: 1fr; gap: 6px; }
  .dd-arrow { height: 22px; }
  .dd-arrow::before { left: 50%; right: auto; top: 2px; bottom: 6px; border-top: 0; border-left: 2px solid rgba(14, 43, 13, .35); }
  .dd-arrow::after { right: auto; left: calc(50% - 4px); top: auto; bottom: -4px; border-left-color: transparent; border-top-color: rgba(14, 43, 13, .5); }
  .dd-lanes { grid-template-columns: 1fr; }
  .dd-video.is-vertical { aspect-ratio: 9 / 16; max-height: 78vh; }
}
@media (prefers-reduced-motion: reduce) { .dd-node, .dd-rule { transition: none; } }
