/* The free tools (/tools): the hub, each tool's page and what it prints. On top of landing.css (its tokens: --lp-blue,
   --lp-teal, --lp-ink, --lp-muted, --lp-sky, --lp-line), aw-* classes. Logical properties only, so Arabic and Urdu
   mirror by themselves. */

:root {
    --aw-green: #1a9c5b;
    --aw-amber: #c98500;
    --aw-red: #d64545;
    --aw-radius: 14px;
}

/* ---- hero, chips, crumbs ---- */
.aw-tool-hero { padding-block: 56px 64px; }
.aw-tool-hero h1 { font-size: 2.3rem; }
.aw-tool-crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: .9rem; margin-bottom: 14px; opacity: .92; }
.aw-tool-crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.aw-tool-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.aw-tool-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: .9rem; }

/* ---- the tool's band and card ---- */
.aw-tool-band { padding-block: 48px 64px; }
.aw-tool-card { background: #fff; border-radius: var(--aw-radius); box-shadow: 0 6px 24px rgba(44, 62, 80, .08); padding: 28px; margin-bottom: 24px; }
.aw-tool-card-title { font-size: 1.35rem; font-weight: 600; color: var(--lp-ink); margin: 0 0 18px; }
.aw-tool-subtitle { font-size: 1.05rem; font-weight: 600; color: var(--lp-ink); margin: 22px 0 10px; }
.aw-tool-help { color: var(--lp-muted); font-size: .92rem; font-weight: 300; margin: 8px 0 16px; }
.aw-tool-progress { color: var(--lp-muted); font-size: .9rem; margin: 0; }
.aw-tool-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 12px; }
.aw-tool-label { font-weight: 600; color: var(--lp-ink); }
.aw-tool-noscript { background: #fff; padding: 16px; border-radius: var(--aw-radius); }

.aw-tool-tip { display: flex; gap: 10px; align-items: flex-start; max-width: 860px; margin: 0 auto 20px; padding: 12px 18px; border-radius: 12px; background: #fff; border: 1px solid #cdeefb; color: var(--lp-ink); font-size: .95rem; }
.aw-tool-tip .bi { color: var(--lp-blue); font-size: 1.15rem; margin-top: 1px; }
.aw-tool-tip a, .aw-tool-export-hint a { font-weight: 600; color: #0072a6; }

/* ---- fields ---- */
.aw-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aw-field label, .aw-field legend { font-weight: 500; color: var(--lp-ink); font-size: .95rem; }
.aw-field-grow { flex: 1 1 260px; }
.aw-field-help { color: var(--lp-muted); font-size: .85rem; font-weight: 300; }
.aw-input-group { display: flex; gap: 8px; }
.aw-input-group .form-select { max-width: 110px; }
.aw-tool-card .form-control, .aw-tool-card .form-select { border-radius: 10px; border-color: #d7dee5; }
.aw-tool-card .form-control:focus, .aw-tool-card .form-select:focus { border-color: var(--lp-blue); box-shadow: 0 0 0 3px rgba(0, 174, 239, .18); }

/* ---- chips, small buttons ---- */
.aw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aw-chip { border: 1px solid #cfd8e0; background: #fff; color: var(--lp-ink); border-radius: 999px; padding: 7px 16px; font-size: .92rem; cursor: pointer; }
.aw-chip:hover { border-color: var(--lp-blue); }
.aw-chip[aria-pressed="true"] { background: var(--lp-blue); border-color: var(--lp-blue); color: #fff; }
.aw-add { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed #9fb2c2; background: transparent; color: #0072a6; border-radius: 10px; padding: 8px 14px; font-size: .92rem; cursor: pointer; }
.aw-add:hover { background: var(--lp-sky); }
.aw-add:disabled { opacity: .45; cursor: not-allowed; }
.aw-add-sm { padding: 5px 10px; font-size: .85rem; }
.aw-icon-btn { border: 0; background: transparent; color: var(--lp-muted); width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; cursor: pointer; }
.aw-icon-btn:hover { background: #fdecec; color: var(--aw-red); }
.aw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.aw-scroll:focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 2px; }
.aw-meter { display: inline-block; height: 8px; border-radius: 999px; background: #e8eef3; overflow: hidden; flex: 1 1 120px; min-width: 80px; }
.aw-meter > span { display: block; height: 100%; width: 0; background: var(--lp-gradient); border-radius: inherit; transition: width .3s ease; }
.aw-meter-lg { height: 12px; }

/* ---- actions bar, export line ---- */
.aw-tool-actions { border-top: 1px solid var(--lp-line); margin-top: 24px; padding-top: 18px; }
.aw-tool-actions-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.aw-tool-reset { margin-inline-start: auto; border: 0; background: transparent; color: var(--lp-muted); font-size: .9rem; cursor: pointer; }
.aw-tool-reset:hover { color: var(--aw-red); }
.aw-tool-export-hint { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; color: var(--lp-muted); font-size: .9rem; }
.aw-tool-export-hint .bi { color: var(--lp-blue); }

/* ---- the sign-up card with the result ---- */
.aw-tool-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; background: var(--lp-ink); color: #fff; border-radius: var(--aw-radius); padding: 24px 28px; margin-bottom: 8px; }
.aw-tool-cta.aw-in { animation: aw-rise .45s ease both; }
.aw-tool-cta-text { flex: 1 1 380px; }
.aw-tool-cta-title { font-size: 1.2rem; font-weight: 600; margin: 0 0 6px; }
.aw-tool-cta-body { margin: 0; font-weight: 300; color: rgba(255, 255, 255, .85); }
.aw-tool-cta-action { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.aw-tool-cta .lp-btn-white { font-size: 1.05rem; padding: 13px 30px; }  /* lp-btn-white sets no size of its own */
.aw-tool-cta .aw-tool-free { color: rgba(255, 255, 255, .78); }
.aw-tool-free { font-size: .85rem; font-weight: 300; color: var(--lp-muted); }
@keyframes aw-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- how it works, the band about Advancer.World ---- */
.aw-tool-prose { max-width: 860px; }
.aw-tool-prose p { font-size: 1.05rem; line-height: 1.75; font-weight: 300; color: #3d4f60; }
.aw-tool-bridge-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.aw-tool-bridge-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.aw-tool-bridge-shot { margin: 0; }
.aw-tool-bridge-shot img { width: 100%; height: auto; border-radius: var(--aw-radius); box-shadow: 0 18px 40px rgba(44, 62, 80, .18); }

/* ---- the hub and the related tools ---- */
.aw-tool-hub-group { font-size: 1.4rem; font-weight: 600; color: var(--lp-ink); margin: 36px 0 18px; }
.aw-tool-hub-group:first-child { margin-top: 0; }
.aw-tool-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.aw-tool-link { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--aw-radius); background: #fff; border: 1px solid var(--lp-line); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.aw-tool-link:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(44, 62, 80, .10); color: inherit; }
.aw-tool-link-title { font-weight: 600; font-size: 1.08rem; color: var(--lp-ink); }
.aw-tool-link-text { font-weight: 300; color: var(--lp-muted); font-size: .95rem; }
.aw-tool-link-open { margin-top: auto; color: #0072a6; font-weight: 500; font-size: .92rem; }
[dir="rtl"] .aw-tool-link-open .bi-arrow-right { display: inline-block; transform: scaleX(-1); }
.aw-tool-lang { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--lp-sky); color: #0072a6; }

/* ---- maturity grid ---- */
.aw-mm-grid { border-collapse: separate; border-spacing: 8px; min-width: 760px; width: 100%; }
.aw-mm-grid th, .aw-mm-grid td { vertical-align: top; }
.aw-mm-grid thead th { min-width: 180px; }
.aw-mm-grid tbody th { position: sticky; inset-inline-start: 0; background: #fff; z-index: 1; min-width: 170px; width: 170px; }
.aw-mm-corner { font-size: .82rem; color: var(--lp-muted); font-weight: 400; vertical-align: bottom !important; padding-bottom: 6px; }
.aw-mm-th { display: flex; gap: 6px; align-items: center; }
.aw-mm-step { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--lp-gradient); color: #fff; font-size: .8rem; font-weight: 600; display: grid; place-items: center; }
.aw-tool-card .aw-mm-stage { font-weight: 600; background: var(--lp-sky); border-color: transparent; }
.aw-tool-card .aw-mm-topic { font-weight: 600; resize: none; overflow: hidden; }
.aw-tool-card .aw-mm-cell { font-size: .9rem; resize: none; overflow: hidden; min-height: 90px; background: #fbfcfd; }
.aw-mm-add { margin-top: 8px; }

/* ---- self-assessment ---- */
.aw-asmt-area { border-top: 1px solid var(--lp-line); padding-top: 22px; margin-top: 22px; }
.aw-asmt-area-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 600; color: var(--lp-ink); margin: 0 0 12px; }
.aw-asmt-num { width: 30px; height: 30px; border-radius: 50%; background: var(--lp-gradient); color: #fff; display: inline-grid; place-items: center; font-size: .85rem; flex-shrink: 0; }
.aw-asmt-questions { list-style: none; padding: 0; margin: 0; }
.aw-asmt-questions li { padding: 12px 0; border-bottom: 1px dashed var(--lp-line); }
.aw-asmt-questions fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; }
.aw-asmt-questions legend { float: inline-start; width: 100%; font-size: .98rem; margin: 0; color: #3d4f60; }
.aw-scale { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.aw-scale-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aw-scale-option { padding: 6px 12px; border: 1px solid #cfd8e0; border-radius: 999px; font-size: .82rem; cursor: pointer; background: #fff; white-space: nowrap; }
.aw-scale-option:hover { border-color: var(--lp-blue); }
.aw-scale-input:focus-visible + .aw-scale-option { outline: 2px solid var(--lp-blue); outline-offset: 2px; }
.aw-scale-input:checked + .aw-scale-option { background: var(--lp-blue); border-color: var(--lp-blue); color: #fff; }
.aw-scale-input:checked + .aw-scale-na { background: #8795a1; border-color: #8795a1; }
.aw-asmt-bar { position: sticky; bottom: 76px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 24px; padding: 14px 18px; border-radius: 12px; background: #fff; box-shadow: 0 8px 28px rgba(44, 62, 80, .16); }
.aw-asmt-bar-progress { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; color: var(--lp-muted); font-size: .92rem; }
.aw-asmt-results:focus { outline: none; }
.aw-asmt-overall { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 18px 22px; border-radius: 12px; background: var(--lp-sky); margin-bottom: 18px; }
.aw-asmt-overall-label { color: var(--lp-muted); }
.aw-asmt-overall-band { font-size: 1.6rem; font-weight: 700; color: var(--lp-ink); }
.aw-asmt-overall-score { color: var(--lp-muted); }
.aw-asmt-scores { display: grid; gap: 10px; }
.aw-asmt-score-row { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(100px, 2fr) minmax(130px, 1fr); gap: 14px; align-items: center; }
.aw-asmt-score-name { font-weight: 500; }
.aw-asmt-score-value { font-size: .9rem; color: var(--lp-muted); }
.aw-asmt-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.aw-asmt-list { padding-inline-start: 18px; margin: 0; }
.aw-asmt-next li { margin-bottom: 10px; }
.aw-asmt-next strong { display: block; color: var(--lp-ink); }
.aw-asmt-next span { font-weight: 300; color: #3d4f60; }

/* ---- cost calculator ---- */
.aw-cost-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; }
.aw-cost-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-content: start; }
.aw-cost-form .aw-field:last-child { grid-column: 1 / -1; }
.aw-cost-result { background: var(--lp-paper); border-radius: 12px; padding: 22px; }
.aw-cost-result .aw-tool-subtitle:first-child { margin-top: 0; }
.aw-cost-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.aw-cost-big > div { background: #fff; border-radius: 10px; padding: 12px; text-align: center; }
.aw-cost-big-value { display: block; font-size: 1.45rem; font-weight: 700; color: var(--lp-ink); overflow-wrap: anywhere; }
.aw-cost-big-label { font-size: .82rem; color: var(--lp-muted); }
.aw-cost-line { display: grid; grid-template-columns: minmax(120px, 1.3fr) 2fr auto; gap: 12px; align-items: center; margin-bottom: 8px; font-size: .92rem; }
.aw-cost-line-value { color: var(--lp-muted); white-space: nowrap; }
.aw-cost-plan { border-top: 1px solid var(--lp-line); margin-top: 16px; }
.aw-cost-plan-name { font-size: 1.15rem; font-weight: 600; color: var(--lp-ink); margin: 0; }

/* ---- theory of change ---- */
.aw-toc-top { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.aw-toc-outcome { border: 1px solid var(--lp-line); border-radius: 12px; padding: 16px; margin-bottom: 16px; background: #fbfcfd; display: flex; flex-direction: column; gap: 8px; }
.aw-toc-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aw-toc-tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #e3f6ef; color: #12734a; font-size: .8rem; font-weight: 600; }
.aw-toc-tag-output { background: var(--lp-sky); color: #0072a6; }
.aw-toc-outputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 4px; }
.aw-toc-output { background: #fff; border: 1px solid var(--lp-line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.aw-toc-activities { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.aw-toc-activities li { display: flex; gap: 4px; align-items: center; }
.aw-tool-card .aw-toc-activity { resize: none; overflow: hidden; }
.aw-toc-outcome > .aw-add, .aw-toc-output > .aw-add, .aw-rep-group > .aw-add { align-self: flex-start; }
.aw-toc-diagram { border-collapse: separate; border-spacing: 14px 8px; min-width: 820px; width: 100%; }
.aw-toc-diagram th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--lp-muted); font-weight: 600; text-align: start; }
.aw-toc-diagram td { vertical-align: middle; width: 25%; position: relative; }
.aw-toc-diagram td:not(:last-child)::after { content: "→"; position: absolute; inset-inline-end: -14px; top: 50%; transform: translateY(-50%); color: #9fb2c2; }
[dir="rtl"] .aw-toc-diagram td:not(:last-child)::after { content: "←"; }
.aw-toc-boxes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.aw-toc-box { padding: 10px 12px; border-radius: 10px; font-size: .88rem; line-height: 1.4; }
.aw-toc-box-activity { background: #f3f5f7; }
.aw-toc-box-output { background: var(--lp-sky); }
.aw-toc-box-outcome { background: #e3f6ef; font-weight: 500; }
.aw-toc-box-impact { background: var(--lp-ink); color: #fff; font-weight: 600; padding: 18px 14px; }
.aw-toc-assumption { font-size: .8rem; font-style: italic; color: var(--lp-muted); margin: 6px 0 0; }
.aw-toc-narrative p { font-weight: 300; line-height: 1.7; margin-bottom: 10px; }
.aw-toc-impact-line { font-weight: 500 !important; }

/* ---- indicator bank ---- */
.aw-ind-filters { justify-content: space-between; }
.aw-ind-search { flex: 0 1 300px; }
.aw-ind-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 16px; }
.aw-ind-card { border: 1px solid var(--lp-line); border-radius: 12px; padding: 16px 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.aw-ind-card.aw-selected { border-color: var(--lp-blue); box-shadow: 0 0 0 2px rgba(0, 174, 239, .15); }
.aw-ind-card-head { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.aw-ind-name { font-size: 1rem; font-weight: 600; color: var(--lp-ink); margin: 0; }
.aw-toggle { flex-shrink: 0; display: inline-flex; gap: 4px; align-items: center; border: 1px solid #cfd8e0; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: .82rem; color: #0072a6; cursor: pointer; }
.aw-toggle[aria-pressed="true"] { background: var(--lp-blue); border-color: var(--lp-blue); color: #fff; }
.aw-ind-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-tag { font-size: .75rem; padding: 2px 9px; border-radius: 999px; background: #f0f3f6; color: #4a5b6b; }
.aw-tag-level { background: #e3f6ef; color: #12734a; }
.aw-ind-def { margin: 0; font-size: .9rem; font-weight: 300; color: #3d4f60; }
.aw-ind-source { margin: 0; font-size: .85rem; color: var(--lp-muted); }
.aw-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--lp-blue); color: #fff; font-size: .85rem; margin-inline-start: 6px; vertical-align: middle; }
.aw-ind-mine { padding-inline-start: 22px; margin: 0; }
.aw-ind-mine li { padding: 6px 0; }
.aw-ind-mine li > span { margin-inline-end: 6px; }
.aw-ind-mine li .aw-icon-btn { vertical-align: middle; }
.aw-ind-mine-meta { color: var(--lp-muted); font-size: .85rem; }

/* ---- power map ---- */
.aw-pm-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.aw-pm-add .form-select { min-width: 170px; }
.aw-pm-add-btn { height: 40px; display: inline-flex; align-items: center; }
.aw-pm-map { border: 1px solid var(--lp-line); border-radius: 12px; padding: 8px; background: #fff; }
.aw-pm-svg { width: 100%; height: auto; display: block; user-select: none; }
.aw-pm-dot { cursor: grab; touch-action: none; }
.aw-pm-dot:active { cursor: grabbing; }
.aw-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.aw-table th { font-size: .82rem; color: var(--lp-muted); font-weight: 600; text-align: start; padding: 8px; border-bottom: 1px solid var(--lp-line); }
.aw-table td { padding: 8px; border-bottom: 1px solid var(--lp-line); vertical-align: top; }
.aw-table caption { caption-side: top; color: var(--lp-muted); }
.aw-pm-group { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-bottom: 4px; }
.aw-pm-champion { background: #e3f6ef; color: #12734a; }
.aw-pm-persuadable { background: #fff2d6; color: #8a5a00; }
.aw-pm-blocker { background: #fdecec; color: #a12a2a; }
.aw-pm-ally { background: #e8f7ef; color: #2b7a55; }
.aw-pm-watch { background: #f0f3f6; color: #4a5b6b; }
.aw-pm-action { display: block; font-size: .85rem; font-weight: 300; color: #3d4f60; }

/* ---- onboarding ---- */
.aw-onb-setup { display: grid; grid-template-columns: 1fr 220px; gap: 18px 24px; margin-bottom: 18px; }
.aw-onb-setup fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; }
.aw-onb-setup legend { font-weight: 500; color: var(--lp-ink); font-size: .95rem; margin-bottom: 8px; }
.aw-option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.aw-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aw-option label { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; border: 1px solid #cfd8e0; border-radius: 12px; cursor: pointer; background: #fff; }
.aw-option label span { font-size: .85rem; font-weight: 300; color: var(--lp-muted); }
.aw-option input:checked + label { border-color: var(--lp-blue); box-shadow: 0 0 0 2px rgba(0, 174, 239, .2); background: #f5fcff; }
.aw-option input:focus-visible + label { outline: 2px solid var(--lp-blue); outline-offset: 2px; }
.aw-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; cursor: pointer; }
.aw-check input { margin-top: 4px; }
.aw-onb-phase { border-top: 1px solid var(--lp-line); padding-top: 18px; margin-top: 18px; }
.aw-onb-phase-title { display: flex; gap: 10px; align-items: center; font-size: 1.1rem; font-weight: 600; color: var(--lp-ink); margin: 0; }
.aw-onb-steps { list-style: none; padding: 0; margin: 0 0 10px; }
.aw-onb-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--lp-line); }
.aw-onb-steps input { margin-top: 5px; width: 18px; height: 18px; }
.aw-onb-steps label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.aw-onb-hint { font-size: .85rem; font-weight: 300; color: var(--lp-muted); }
.aw-onb-due { font-size: .85rem; color: #0072a6; white-space: nowrap; padding-top: 2px; }
.aw-done .aw-onb-text { text-decoration: line-through; color: var(--lp-muted); }
.aw-onb-add { display: flex; gap: 8px; max-width: 560px; }

/* ---- one-page report ---- */
.aw-rep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.aw-rep-group { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.aw-rep-group legend { font-weight: 600; color: var(--lp-ink); font-size: 1rem; margin-bottom: 4px; }
.aw-rep-line { display: flex; gap: 8px; align-items: flex-end; }
.aw-rep-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aw-rep-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aw-field-num { width: 96px; flex-shrink: 0; }
.aw-rep-preview-col { position: sticky; top: 90px; }
.aw-rep-warning { background: #fff2d6; color: #8a5a00; border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.aw-rep-page { background: #fff; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 6px; box-shadow: 0 10px 30px rgba(44, 62, 80, .15); padding: 6% 7%; font-size: .74rem; line-height: 1.45; color: #23313f; }
.aw-rep-head { border-bottom: 3px solid var(--lp-blue); padding-bottom: 8px; margin-bottom: 10px; }
.aw-rep-head h2 { font-size: 1.35em; font-weight: 700; margin: 0 0 2px; color: var(--lp-ink); }
.aw-rep-head p { margin: 0; color: var(--lp-muted); }
.aw-rep-sec { margin-bottom: 10px; }
.aw-rep-sec h3 { font-size: .82em; text-transform: uppercase; letter-spacing: .05em; color: #0072a6; font-weight: 700; margin: 0 0 4px; }
.aw-rep-sec p, .aw-rep-sec ul, .aw-rep-sec ol { margin: 0; }
.aw-rep-sec ul, .aw-rep-sec ol { padding-inline-start: 1.3em; }
.aw-rep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aw-rep-table { width: 100%; border-collapse: collapse; }
.aw-rep-table th { text-align: start; font-weight: 600; border-bottom: 1px solid #d7dee5; padding: 3px 4px; }
.aw-rep-table td { border-bottom: 1px solid #eef1f4; padding: 3px 4px; }
.aw-rep-status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-weight: 600; font-size: .92em; }
.aw-rep-ontrack { background: #e3f6ef; color: #12734a; }
.aw-rep-somedelay { background: #fff2d6; color: #8a5a00; }
.aw-rep-offtrack { background: #fdecec; color: #a12a2a; }
.aw-rep-stack { display: flex; height: 22px; border-radius: 6px; overflow: hidden; margin-bottom: 4px; }
.aw-rep-stack span { display: grid; place-items: center; color: #fff; font-weight: 600; min-width: 22px; }
.aw-rep-stack-on { background: var(--aw-green); }
.aw-rep-stack-delay { background: var(--aw-amber); }
.aw-rep-stack-off { background: var(--aw-red); }
.aw-rep-small { color: var(--lp-muted); }
.aw-rep-decision { background: #f5fcff; border-inline-start: 3px solid var(--lp-blue); padding: 6px 10px; }

/* ---- what prints: only #awPrintArea, filled by AwTool.print ---- */
#awPrintArea { display: none; }
@media print {
    body > *:not(#awPrintArea) { display: none !important; }
    #awPrintArea { display: block; color: #000; font-family: "Work Sans", Arial, sans-serif; font-size: 10.5pt; }
    @page { margin: 14mm; }
}
.aw-print-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid #00aeef; padding-bottom: 8px; margin-bottom: 14px; }
.aw-print-logo { height: 28px; }
.aw-print-title { font-size: 14pt; font-weight: 700; }
.aw-print-foot { margin-top: 18px; padding-top: 6px; border-top: 1px solid #ccc; font-size: 8.5pt; color: #555; }
.aw-print-table { width: 100%; border-collapse: collapse; font-size: 9pt; }
.aw-print-table th, .aw-print-table td { border: 1px solid #bbb; padding: 5px; vertical-align: top; text-align: start; }
.aw-print-table thead th { background: #e6f7fd; }
.aw-print-section { font-size: 12pt; margin: 16px 0 8px; }
.aw-print-block { break-inside: avoid; border-bottom: 1px solid #ddd; padding-bottom: 8px; margin-bottom: 8px; }
.aw-print-block h3 { font-size: 11pt; margin: 0 0 2px; }
.aw-print-meta { color: #555; font-size: 9pt; }
.aw-print-checks { list-style: none; padding: 0; }
.aw-print-checks li { padding: 3px 0; }
#awPrintArea .aw-meter { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#awPrintArea .aw-toc-diagram { min-width: 0; }
#awPrintArea .aw-toc-box, #awPrintArea .aw-rep-stack, #awPrintArea .aw-rep-status { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#awPrintArea svg { width: 100%; height: auto; }
#awPrintArea .aw-rep-sheet { font-size: 10pt; }
#awPrintArea .aw-cost-result, #awPrintArea .aw-asmt-overall { background: none; padding: 0; }

/* ---- smaller screens ---- */
@media (max-width: 991.98px) {
    .aw-tool-bridge-grid, .aw-cost-grid, .aw-rep-grid { grid-template-columns: 1fr; }
    .aw-rep-preview-col { position: static; }
    .aw-asmt-lists { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .aw-tool-hero h1 { font-size: 1.8rem; }
    .aw-tool-card { padding: 18px; }
    .aw-mm-grid tbody th { min-width: 118px; width: 118px; }
    .aw-mm-grid thead th { min-width: 160px; }
    .aw-asmt-questions fieldset { grid-template-columns: 1fr; }
    .aw-asmt-score-row { grid-template-columns: 1fr; gap: 4px; }
    .aw-cost-form, .aw-toc-top, .aw-onb-setup, .aw-rep-two, .aw-rep-cols { grid-template-columns: 1fr; }
    .aw-cost-line { grid-template-columns: 1fr auto; }
    .aw-cost-line .aw-meter { display: none; }
    .aw-tool-cta { padding: 20px; }
    .aw-tool-cta-action { width: 100%; }
    .aw-tool-cta-action .lp-btn { width: 100%; text-align: center; justify-content: center; }
    .aw-rep-indicator { flex-wrap: wrap; }
}
