﻿/* ============================================================
   Application Manager Only guide — shared modern layout
   Used by ApplicationManagerOnly_Installation.html and the
   AMO_*.html detail pages. Light by default, auto dark mode.
   ============================================================ */
:root {
    --amBg: #f5f6fa;
    --amCard: #ffffff;
    --amInk: #1c2230;
    --amInkSoft: #55607a;
    --amBorder: #e2e6f0;
    --amAccent: #37426f;
    --amAccent2: #6b7bb8;
    --amGreen: #1f7a3a;
    --amAmber: #c98a1a;
    --amRed: #b03030;
    --amCode: #0f1730;
    --amShadow: 0 10px 30px -18px rgba(20, 27, 55, 0.55), 0 1px 2px rgba(0, 0, 0, 0.06);
}
@media (prefers-color-scheme: dark) {
    :root {
        --amBg: #12151f;
        --amCard: #1a1f2e;
        --amInk: #e7eaf3;
        --amInkSoft: #a4adc6;
        --amBorder: #2b3350;
        --amAccent: #8b9bd8;
        --amAccent2: #6b7bb8;
        --amCode: #0b1020;
        --amShadow: 0 12px 34px -18px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.4);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--amBg);
    color: var(--amInk);
    font-family: 'Segoe UI', Verdana, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--amAccent2); }
a:hover { color: var(--amAccent); }

/* ---------- Hero ---------- */
.amHero {
    background: linear-gradient(135deg, #37426f 0%, #232a49 60%, #171c30 100%);
    color: #fff;
    padding: 46px 24px 40px;
}
.amHeroInner { max-width: 1080px; margin: 0 auto; }
.amHeroBadge {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.amHeroBadge a { color: #fff; text-decoration: none; }
.amHeroBadge a:hover { text-decoration: underline; }
.amHero h1 { margin: 0 0 10px; font-size: 34px; font-weight: 600; line-height: 1.15; }
.amHero p { margin: 0; max-width: 720px; color: rgba(255, 255, 255, 0.88); font-size: 16px; }
.amPills { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.amPill {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 500;
}
.amPill b { font-weight: 600; }
.amStepBadge {
    display: inline-block; font-size: 12px; font-weight: 600;
    background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 4px 11px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Layout ---------- */
.amLayout {
    max-width: 1080px; margin: 0 auto; padding: 34px 24px 40px;
    display: grid; grid-template-columns: 232px 1fr; gap: 40px; align-items: start;
}
.amToc {
    position: sticky; top: 20px;
    font-size: 13.5px;
}
.amToc h4 {
    margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 11px; color: var(--amInkSoft);
}
.amToc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.amToc li { counter-increment: toc; margin: 2px 0; }
.amToc a {
    display: block; padding: 6px 10px 6px 34px; position: relative;
    border-radius: 7px; text-decoration: none; color: var(--amInkSoft);
}
.amToc a::before {
    content: counter(toc); position: absolute; left: 8px; top: 6px;
    width: 19px; height: 19px; border-radius: 50%;
    background: var(--amBorder); color: var(--amInk);
    font-size: 11px; font-weight: 600; text-align: center; line-height: 19px;
}
.amToc a:hover { background: var(--amCard); color: var(--amInk); }
/* Plain (non-numbered) TOC list, e.g. cross-page navigation */
.amToc ul.amTocPlain { list-style: none; margin: 0; padding: 0; }
.amToc ul.amTocPlain li { counter-increment: none; }
.amToc ul.amTocPlain a { padding-left: 12px; }
.amToc ul.amTocPlain a::before { content: none; }
.amToc ul.amTocPlain a.current { background: var(--amCard); color: var(--amInk); font-weight: 600; }

.amMain { min-width: 0; }

/* ---------- Sections ---------- */
.amSection { margin-bottom: 40px; scroll-margin-top: 16px; }
.amSection > h2 {
    font-size: 23px; font-weight: 600; margin: 0 0 6px;
    display: flex; align-items: center; gap: 12px;
}
.amSection > h2 .amNum {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
    background: var(--amAccent); color: #fff;
    font-size: 16px; font-weight: 700; display: inline-flex;
    align-items: center; justify-content: center;
}
.amLead { color: var(--amInkSoft); margin: 0 0 18px; }
h3 { font-size: 17px; font-weight: 600; margin: 26px 0 8px; }
h4 { font-size: 14.5px; font-weight: 600; margin: 18px 0 6px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
code {
    background: rgba(127, 137, 170, 0.16); padding: 1px 6px; border-radius: 5px;
    font-family: 'Cascadia Code', Consolas, monospace; font-size: 13px;
}

.amCard {
    background: var(--amCard); border: 1px solid var(--amBorder);
    border-radius: 14px; padding: 22px 24px; box-shadow: var(--amShadow);
    margin: 16px 0;
}

/* ---------- Environment two-up ---------- */
.amTwoUp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.amEnvCard { background: var(--amCard); border: 1px solid var(--amBorder); border-radius: 14px; padding: 20px 22px; box-shadow: var(--amShadow); }
.amEnvCard h3 { margin-top: 0; display: flex; align-items: center; gap: 9px; }
.amTag {
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px; color: #fff;
}
.amTag.azure { background: #2f6fb0; }
.amTag.cfgmgr { background: #7a5bb0; }

/* ---------- Step flow ---------- */
.amFlow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 4px; }
.amFlow span {
    background: var(--amCard); border: 1px solid var(--amBorder); border-radius: 8px;
    padding: 7px 12px; font-size: 13px; font-weight: 500; box-shadow: var(--amShadow);
}
.amFlow a { text-decoration: none; }
.amFlow .amArrow { border: none; background: none; box-shadow: none; color: var(--amAccent2); font-weight: 700; padding: 0 2px; }
.amFlow .current { border-color: var(--amAccent2); box-shadow: 0 0 0 2px rgba(107,123,184,0.25); }

/* ---------- Callouts ---------- */
.amNote { border-left: 4px solid; border-radius: 8px; padding: 12px 16px; margin: 14px 0; font-size: 14px; background: var(--amCard); }
.amNote .amNoteHead { font-weight: 700; display: block; margin-bottom: 2px; font-size: 12.5px; letter-spacing: 0.03em; text-transform: uppercase; }
.amNote.tip { border-color: var(--amGreen); }
.amNote.tip .amNoteHead { color: var(--amGreen); }
.amNote.caution { border-color: var(--amAmber); }
.amNote.caution .amNoteHead { color: var(--amAmber); }
.amNote.important { border-color: var(--amRed); }
.amNote.important .amNoteHead { color: var(--amRed); }

/* ---------- Screenshot placeholders ---------- */
.amShot {
    border: 2px dashed var(--amAccent2); border-radius: 12px;
    background: repeating-linear-gradient(135deg, rgba(107,123,184,0.06), rgba(107,123,184,0.06) 12px, rgba(107,123,184,0.12) 12px, rgba(107,123,184,0.12) 24px);
    padding: 18px 20px; margin: 16px 0; display: flex; gap: 16px; align-items: flex-start;
}
.amShotIcon { flex: 0 0 auto; font-size: 30px; line-height: 1; margin-top: 2px; }
.amShotBody { min-width: 0; }
.amShotLabel { font-weight: 700; color: var(--amAccent); letter-spacing: 0.05em; font-size: 12px; text-transform: uppercase; }
.amShotCap { margin: 4px 0 8px; }
.amShotMeta { font-size: 12.5px; color: var(--amInkSoft); }
.amShotMeta code { font-size: 12px; }

/* ---------- Real screenshots ---------- */
.amFig { margin: 16px 0; }
.amFig img {
    display: block; max-width: 100%; height: auto;
    border: 1px solid var(--amBorder); border-radius: 10px;
    box-shadow: var(--amShadow); background: var(--amCard);
    cursor: zoom-in; transition: border-color 0.15s ease;
}
.amFig img:hover { border-color: var(--amAccent2); }
.amFigGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.amFigCap { font-size: 12.5px; color: var(--amInkSoft); margin: 8px 0 0; }
.amFigCap .amFigNote { display: block; font-style: italic; opacity: 0.8; margin-top: 2px; }

/* ---------- Lightbox ---------- */
.amLightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: none; align-items: center; justify-content: center;
    background: rgba(6, 9, 18, 0.86); padding: 28px;
    cursor: zoom-out;
}
.amLightbox.open { display: flex; }
.amLightbox img {
    max-width: 96vw; max-height: 90vh; width: auto; height: auto;
    border-radius: 10px; box-shadow: 0 24px 70px -20px rgba(0,0,0,0.8);
    cursor: default;
}
.amLightboxClose {
    position: fixed; top: 18px; right: 24px;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
    color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.amLightboxClose:hover { background: rgba(255,255,255,0.24); }
.amLightboxCap {
    position: fixed; bottom: 20px; left: 0; right: 0; text-align: center;
    color: rgba(255,255,255,0.85); font-size: 13px; padding: 0 24px;
}

/* ---------- Checklist card (mirrors in-app setup) ---------- */
.amSetupCard { display: flex; gap: 16px; align-items: flex-start; background: var(--amCard); border: 1px solid var(--amBorder); border-radius: 12px; padding: 16px 18px; margin: 12px 0; box-shadow: var(--amShadow); }
.amSetupDot { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; font-weight: 700; }
.amSetupDot.g { background: var(--amGreen); } .amSetupDot.a { background: var(--amAmber); } .amSetupDot.r { background: var(--amRed); }
.amSetupCard h4 { margin: 0 0 4px; }
.amSetupCard p { margin: 0 0 6px; font-size: 14px; }
.amMini { font-size: 12.5px; color: var(--amInkSoft); }

/* ---------- Code block ---------- */
details { margin: 14px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--amAccent); }
pre {
    background: var(--amCode); color: #d8e0ff; border-radius: 10px; padding: 16px 18px;
    overflow-x: auto; font-family: 'Cascadia Code', Consolas, monospace; font-size: 12.5px; line-height: 1.5;
}

table.amTbl { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
table.amTbl th, table.amTbl td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--amBorder); vertical-align: top; }
table.amTbl th { color: var(--amInkSoft); font-weight: 600; }

.amRef { font-size: 13px; margin-top: 10px; color: var(--amInkSoft); }
.amRef a { font-weight: 600; }

/* ---------- Prev / next pager ---------- */
.amPager { display: flex; gap: 14px; margin-top: 8px; }
.amPager a {
    flex: 1 1 0; display: block; text-decoration: none;
    background: var(--amCard); border: 1px solid var(--amBorder); border-radius: 12px;
    padding: 14px 18px; box-shadow: var(--amShadow); color: var(--amInk);
}
.amPager a:hover { border-color: var(--amAccent2); }
.amPager a.next { text-align: right; }
.amPager .amPagerDir { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amInkSoft); }
.amPager .amPagerTitle { font-weight: 600; margin-top: 2px; }
.amPager .amPagerSpacer { flex: 1 1 0; }

.amFooter { border-top: 1px solid var(--amBorder); text-align: center; color: var(--amInkSoft); font-size: 13px; padding: 26px 20px 40px; }

@media (max-width: 860px) {
    .amLayout { grid-template-columns: 1fr; gap: 22px; }
    .amToc { position: static; }
    .amTwoUp { grid-template-columns: 1fr; }
    .amHero h1 { font-size: 27px; }
    .amPager { flex-direction: column; }
}
