/* Choe Magasin — interactive AI-leadership toolbox ("AI på arbejde").
   Namespaced under .choe-ait-app, mirroring the pattern used by the
   leadership toolbox (.choe-toolbox-app) so both can share a page. */

.choe-ait-app {
    --ait-ivory: #f4f2ec;
    --ait-paper: #fffdf8;
    --ait-forest: #27352e;
    --ait-sage: #a8b5a2;
    --ait-mist: #ccd5d3;
    --ait-sand: #e9e3d8;
    --ait-clay: #a77d65;
    --ait-ink: #252825;
    --ait-muted: #657363;
    background: var(--ait-ivory);
    color: var(--ait-ink);
    font: 16px/1.55 'Work Sans', system-ui, -apple-system, sans-serif;
    border-radius: 24px;
    overflow: hidden;
}

.choe-ait-app .ait-header {
    padding: 40px 28px;
    background: linear-gradient(135deg, var(--ait-forest), #405348);
    color: white;
}
.choe-ait-app .ait-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #d8cbb9;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 12px;
}
.choe-ait-app .ait-header h2 {
    font: 700 clamp(28px, 4.5vw, 44px)/1.05 'Fraunces', Georgia, serif;
    margin: 0 0 14px;
    max-width: 850px;
    color: white;
}
.choe-ait-app .ait-header p {
    max-width: 760px;
    font-size: 16px;
    margin: 0;
    color: rgba(255,255,255,0.85);
}

.choe-ait-app .ait-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
}
.choe-ait-app .ait-nav {
    position: sticky;
    top: 20px;
    align-self: start;
    background: var(--ait-paper);
    border: 1px solid #d8ddd5;
    border-radius: 18px;
    padding: 14px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.choe-ait-app .ait-nav button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    text-align: left;
    border-radius: 10px;
    color: var(--ait-forest);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
}
.choe-ait-app .ait-nav button:hover,
.choe-ait-app .ait-nav button[aria-current="true"] {
    background: var(--ait-mist);
    font-weight: 700;
}

.choe-ait-app .ait-main { min-width: 0; }
.choe-ait-app .ait-tool {
    display: none;
    background: var(--ait-paper);
    border: 1px solid #d8ddd5;
    border-radius: 24px;
    padding: clamp(20px, 4vw, 40px);
    box-shadow: 0 16px 40px rgba(39,53,46,0.05);
}
.choe-ait-app .ait-tool.active { display: block; }
.choe-ait-app .ait-tool-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ait-clay);
    font-weight: 800;
    font-size: 11px;
}
.choe-ait-app .ait-tool h3 {
    font: 700 clamp(24px, 4vw, 38px)/1.08 'Fraunces', Georgia, serif;
    color: var(--ait-forest);
    margin: 8px 0 10px;
}
.choe-ait-app .ait-intro { font-size: 16px; color: var(--ait-muted); max-width: 720px; margin: 0; }
.choe-ait-app .ait-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.choe-ait-app .ait-card { background: var(--ait-ivory); border: 1px solid #d5dbd2; border-radius: 14px; padding: 16px; }
.choe-ait-app label { display: block; font-weight: 700; margin: 0 0 6px; color: var(--ait-forest); font-size: 14px; }
.choe-ait-app textarea {
    width: 100%;
    border: 1px solid #b8c2b5;
    border-radius: 10px;
    background: white;
    padding: 10px;
    font: inherit;
    font-size: 14.5px;
    color: var(--ait-ink);
    min-height: 88px;
    resize: vertical;
}
.choe-ait-app .ait-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.choe-ait-app .ait-actions button {
    border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 750; cursor: pointer;
    background: var(--ait-forest); color: white; font-size: 14px;
}
.choe-ait-app .ait-actions .ait-secondary { background: var(--ait-sand); color: var(--ait-forest); }
.choe-ait-app .ait-hidden { display: none; }
.choe-ait-app .ait-progress { height: 8px; background: #dde3db; border-radius: 10px; overflow: hidden; margin: 14px 0; }
.choe-ait-app .ait-progress i { display: block; height: 100%; background: var(--ait-clay); width: 0; transition: width 0.3s ease; }
.choe-ait-app .ait-saved-note { font-size: 12px; color: var(--ait-muted); margin-top: 8px; }

.choe-ait-app .ait-plan { padding: 0 28px 28px; }
.choe-ait-app .ait-plan-bar { display: flex; justify-content: flex-end; }
.choe-ait-app .ait-plan-bar button {
    border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 750; cursor: pointer;
    background: var(--ait-clay); color: white; font-size: 14.5px;
}
.choe-ait-app .ait-plan-result {
    margin-top: 16px; border-left: 5px solid var(--ait-clay); background: var(--ait-forest); color: white;
    padding: 22px; border-radius: 0 16px 16px 0; white-space: pre-wrap; font-size: 14.5px;
}

.choe-ait-app .ait-compact-footer {
    padding: 0 28px 24px;
    font-size: 14px;
    color: var(--ait-muted);
}
.choe-ait-app .ait-compact-footer a { color: var(--ait-clay); font-weight: 700; text-decoration: underline; }

.choe-ait-app .ait-footer { padding: 20px 28px 28px; color: var(--ait-muted); font-size: 13px; }

@media (max-width: 850px) {
    .choe-ait-app .ait-layout { grid-template-columns: 1fr; }
    .choe-ait-app .ait-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
    .choe-ait-app .ait-nav button { min-width: 200px; }
    .choe-ait-app .ait-grid { grid-template-columns: 1fr; }
}
@media print {
    .choe-ait-app .ait-nav, .choe-ait-app .ait-actions, .choe-ait-app .ait-header p, .choe-ait-app .ait-plan-bar { display: none; }
    .choe-ait-app .ait-layout { display: block; padding: 0; }
    .choe-ait-app .ait-tool { display: none !important; border: 0; box-shadow: none; }
    .choe-ait-app .ait-tool.active { display: block !important; }
    .choe-ait-app .ait-header { background: white; color: var(--ait-forest); }
}
