/* Diffie–Hellman (/diffie-hellman): the board of three columns (Alice, the public channel, Bob) and four rows, with
   paint swatches, values, the lock on private values and the newest row highlighted; the step badge and the buttons.
   Tiles, panels, callouts and buttons come from the app kit (css/app-kit, docs/app-kit.md). Loaded only on this page. */

.dh-landing-app .dh-main { display: flex; flex-direction: column; gap: var(--ak-space-3, 1rem); }

.dh-landing-app .dh-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0.5rem;
}

.dh-landing-app .dh-head {
    padding: 0.35rem 0.5rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid var(--ak-border);
}

.dh-landing-app .dh-head--public { color: var(--ak-danger); }

.dh-landing-app .dh-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 6.2rem;
    padding: 0.5rem;
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius, 10px);
    background: var(--ak-field);
    text-align: center;
    transition: opacity 0.25s, box-shadow 0.25s;
}

.dh-landing-app .dh-cell--public { background: color-mix(in srgb, var(--ak-danger) 6%, var(--ak-field)); border-style: dashed; }
.dh-landing-app .dh-cell.is-off { opacity: 0.35; }
.dh-landing-app .dh-cell.is-new { box-shadow: 0 0 0 2px var(--ak-accent); }

.dh-landing-app .dh-label { font-size: var(--ak-fs-xs, 0.78rem); color: var(--ak-muted); font-weight: 600; }
.dh-landing-app .dh-paints { display: flex; gap: 0.4rem; }

.dh-landing-app .dh-paint {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50% 50% 46% 54% / 55% 45% 55% 45%;
    background: var(--dh-c);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dh-landing-app .dh-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--ak-fs-sm, 0.85rem); overflow-wrap: anywhere; }

.dh-landing-app .dh-lock { display: inline-flex; align-items: center; gap: 0.2rem; font-size: var(--ak-fs-xs, 0.75rem); color: var(--ak-muted); }
.dh-landing-app .dh-lock svg { width: 0.9rem; height: 0.9rem; }

.dh-landing-app .dh-explain { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.dh-landing-app .dh-explain .ak-callout { margin: 0; line-height: 1.5; width: 100%; }

.dh-landing-app .dh-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ak-space-2, 0.5rem);
}

@media (max-width: 700px) {
    .dh-landing-app .dh-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0.3rem; }
    .dh-landing-app .dh-cell { min-height: 5rem; padding: 0.3rem; }
    .dh-landing-app .dh-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
