/* Screen styles for admin content and community (Worker D): A1 Dashboard, A2/A3 Opportunities,
   A4 Moderation, A6 Option lists, A13 Announcements, A17 Landing page.
   Values copied from Sterling Connect Admin.dc.html. Every class is prefixed ac- because all
   screen files load on every page. */

.ac-screen { display: flex; flex-direction: column; gap: 20px; }
.ac-eyebrow { display: flex; align-items: center; gap: 10px; font: 600 12px/16px 'DM Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #127A00; }
.ac-eyebrow > span { width: 20px; height: 3px; background: #31FE01; flex: none; }
.ac-h1 { margin: 10px 0 6px; font: 800 36px/44px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; color: #01204E; }
.ac-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.ac-card { background: #FFFFFF; border: 1px solid #E6EAF0; border-radius: 24px; }
.ac-screen a.ac-row, .ac-screen a.ac-tile { color: inherit; text-decoration: none; }
.ac-row { cursor: pointer; }
.ac-row:hover { background: #F7F8FA; }
.ac-tile { text-align: left; border: 1px solid #E6EAF0; border-radius: 20px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.ac-tile:hover { border-color: #01204E; }
.ac-link { font: 600 14px/20px 'DM Sans', sans-serif; display: flex; align-items: center; gap: 8px; align-self: flex-start; }

/* Buttons */
.ac-btn { height: 44px; padding: 0 20px; border: none; border-radius: 999px; background: #01204E; color: #FFFFFF; font: 600 15px/20px 'DM Sans', sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.ac-btn:hover { background: #0D2F63; color: #FFFFFF; text-decoration: none; }
.ac-btn[disabled], .ac-btn.is-off { background: #DFE3EA; color: #6B7485; cursor: not-allowed; }
.ac-btn-outline { height: 44px; padding: 0 18px; border: 1.5px solid #01204E; border-radius: 999px; background: #FFFFFF; color: #01204E; font: 600 15px/20px 'DM Sans', sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.ac-btn-outline:hover { background: #F2F5FA; color: #01204E; text-decoration: none; }
.ac-btn-ghost { height: 40px; padding: 0 16px; border: none; border-radius: 999px; background: transparent; color: #01204E; font: 600 14px/18px 'DM Sans', sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ac-btn-ghost:hover { background: #F2F5FA; }
.ac-sm { height: 40px; padding: 0 16px; font-size: 14px; line-height: 18px; }
.ac-xs { height: 36px; padding: 0 14px; font-size: 13px; line-height: 18px; }
.ac-danger { color: #9E2A21; }
.ac-danger:hover { background: #FDECEA; }
.ac-underline { border: none; background: none; padding: 0; color: #01204E; font: 600 12px/16px 'DM Sans', sans-serif; text-decoration: underline; cursor: pointer; }

/* Inputs (design values) */
.ac-label { display: flex; flex-direction: column; gap: 8px; }
.ac-label > .ac-lt { font: 600 14px/20px 'DM Sans', sans-serif; color: #01204E; }
.ac-input { height: 48px; padding: 0 14px; border: 1px solid #C5CBD5; border-radius: 14px; font-size: 16px; color: #121826; outline: none; background: #FFFFFF; width: 100%; min-width: 0; font-family: 'DM Sans', sans-serif; }
.ac-input:focus, .ac-textarea:focus, .ac-select:focus { border-color: #01204E; }
.ac-textarea { padding: 12px 14px; border: 1px solid #C5CBD5; border-radius: 14px; font-size: 16px; line-height: 24px; color: #121826; resize: vertical; outline: none; width: 100%; font-family: 'DM Sans', sans-serif; background: #FFFFFF; }
.ac-select-wrap { position: relative; }
.ac-select { width: 100%; height: 48px; padding: 0 40px 0 14px; border: 1px solid #C5CBD5; border-radius: 14px; font-size: 16px; color: #121826; background: #FFFFFF; appearance: none; -webkit-appearance: none; font-family: 'DM Sans', sans-serif; }
.ac-select-wrap > .ic { position: absolute; right: 14px; top: 14px; pointer-events: none; }
.ac-flagged { border: 1.5px solid #A15C00 !important; background: #FFF8EA !important; }
.ac-flag { display: flex; gap: 6px; align-items: center; font-size: 12px; line-height: 16px; color: #7A4600; }
.ac-flag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ac-flag label { color: #01204E; font: 600 12px/16px 'DM Sans', sans-serif; text-decoration: underline; cursor: pointer; }
.ac-error { font-size: 13px; line-height: 18px; color: #C0362C; font-weight: 500; }

/* Chips: <label class="ac-chip"><input type="checkbox"><span>…</span></label> */
.ac-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-chip { position: relative; display: inline-flex; max-width: 100%; }
.ac-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ac-chip > span { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid #C5CBD5; background: #FFFFFF; color: #01204E; font: 600 13px/32px 'DM Sans', sans-serif; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ac-chip input:checked + span { background: #01204E; color: #FFFFFF; border-color: #01204E; }
.ac-chip input:focus-visible + span { outline: 3px solid #31FE01; outline-offset: 2px; }
.ac-chip.ac-chip-36 > span { height: 36px; padding: 0 14px; line-height: 34px; }
.ac-chip input:disabled + span { cursor: not-allowed; opacity: .7; }

/* Segmented control */
.ac-seg { display: flex; padding: 4px; background: #EEF0F4; border-radius: 999px; gap: 4px; align-self: flex-start; }
.ac-seg label { position: relative; display: inline-flex; }
.ac-seg input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ac-seg span { height: 36px; padding: 0 14px; border-radius: 999px; background: transparent; color: #3A4352; font: 600 13px/36px 'DM Sans', sans-serif; white-space: nowrap; }
.ac-seg input:checked + span { background: #FFFFFF; color: #01204E; box-shadow: 0 1px 3px rgba(1, 32, 78, .12); }
.ac-seg input:focus-visible + span { outline: 3px solid #31FE01; outline-offset: 2px; }

/* Switch row (design toggles) */
.ac-switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #C5CBD5; flex: none; display: inline-block; }
.ac-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.ac-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(1, 32, 78, .3); transition: left .2s; }
.ac-switch:has(input:checked) { background: #01204E; }
.ac-switch:has(input:checked) i { left: 21px; }
.ac-switch:has(input:focus-visible) { outline: 3px solid #31FE01; outline-offset: 2px; }
.ac-switch.ac-sw-40 { width: 40px; height: 24px; }
.ac-switch.ac-sw-40 i { width: 18px; height: 18px; }
.ac-switch.ac-sw-40:has(input:checked) i { left: 19px; }
.ac-toggle-row { display: flex; gap: 16px; align-items: center; cursor: pointer; }

/* Tabs (moderation) */
.ac-tabs { display: flex; gap: 24px; border-bottom: 1px solid #E6EAF0; }
.ac-tab { padding: 12px 0; border: none; background: transparent; color: #3A4352; font: 500 15px/20px 'DM Sans', sans-serif; box-shadow: none; cursor: pointer; text-align: center; text-decoration: none; }
.ac-tab:hover { color: #01204E; text-decoration: none; }
.ac-tab[aria-selected="true"] { color: #01204E; font-weight: 600; box-shadow: inset 0 -2px 0 #01204E; }

/* Opportunity list pills */
.ac-pill { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #E6EAF0; background: #FFFFFF; color: #01204E; font: 600 14px/18px 'DM Sans', sans-serif; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; }
.ac-pill:hover { text-decoration: none; color: #01204E; border-color: #01204E; }
.ac-pill.on { background: #01204E; color: #FFFFFF; border-color: #01204E; }
.ac-pill .n { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: #F2F5FA; color: #01204E; font: 700 11px/20px 'DM Sans', sans-serif; text-align: center; }
.ac-search { height: 44px; border: 1px solid #C5CBD5; border-radius: 999px; background: #FFFFFF; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.ac-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: 500 15px/20px 'DM Sans', sans-serif; color: #121826; }
.ac-search:focus-within { border-color: #01204E; }
.ac-grid-opps { display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr 1fr 1fr 90px 80px 100px; gap: 12px; }
.ac-status { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12px/16px 'DM Sans', sans-serif; width: max-content; justify-self: start; }
.ac-status > i { width: 7px; height: 7px; border-radius: 50%; }
.ac-st-draft { background: #EEF0F4; color: #3A4352; } .ac-st-draft > i { background: #6B7485; }
.ac-st-in_review { background: #FFF3DC; color: #7A4600; } .ac-st-in_review > i { background: #A15C00; }
.ac-st-published { background: #E4FFD9; color: #0E5C00; } .ac-st-published > i { background: #127A00; }
.ac-st-closed, .ac-st-archived { background: #F2F5FA; color: #6B7485; } .ac-st-closed > i, .ac-st-archived > i { background: #C5CBD5; }

/* Verification checkboxes */
.ac-check { display: flex; gap: 10px; align-items: center; cursor: pointer; position: relative; }
.ac-check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.ac-check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #01204E; background: #FFFFFF; display: flex; align-items: center; justify-content: center; color: #31FE01; font: 700 13px/13px 'DM Sans', sans-serif; flex: none; }
.ac-check input:checked + .box { background: #01204E; }
.ac-check input:checked + .box::before { content: '\2713'; }
.ac-check input:focus-visible + .box { outline: 3px solid #31FE01; outline-offset: 2px; }

/* Option lists */
.ac-tax-aside { max-width: 280px; }
.ac-tax { width: 100%; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: none; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; text-decoration: none; }
.ac-tax:hover { background: #F2F5FA; text-decoration: none; }
.ac-tax.on { background: #EEF2F8; }
.ac-term-name { display: block; border: none; background: none; padding: 0; text-align: left; cursor: pointer; font: 600 15px/22px 'DM Sans', sans-serif; }
.ac-term-name:hover { text-decoration: underline; }

/* Dialogs */
.ac-dialog { border: none; padding: 0; border-radius: 24px; width: min(560px, calc(100vw - 24px)); box-shadow: 0 16px 40px rgba(1, 32, 78, .16); color: #3A4352; }
.ac-dialog::backdrop { background: rgba(1, 32, 78, .45); }
.ac-dialog form { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.ac-x { width: 40px; height: 40px; border: 1px solid #E6EAF0; border-radius: 999px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }

/* Landing preview */
.ac-sticky { position: sticky; top: 96px; }

@media (max-width: 999px) {
  .ac-sticky { position: static; }
  .ac-tax-aside { max-width: 100%; }
}

/* ---- December design update (builder C) ---- */

/* A1 Dashboard */
.ac-quick { height: 40px; padding: 0 16px; border: 1.5px solid #01204E; border-radius: 999px; background: #FFFFFF; color: #01204E; font: 600 14px/18px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ac-quick:hover { background: #F2F5FA; color: #01204E; text-decoration: none; }
.ac-task-cta { height: 36px; padding: 0 16px; border: 1.5px solid #01204E; border-radius: 999px; background: #FFFFFF; color: #01204E; font: 600 13px/18px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; flex: none; display: inline-flex; align-items: center; text-decoration: none; }
.ac-task-cta:hover { background: #F2F5FA; color: #01204E; text-decoration: none; }
.ac-nudge { height: 32px; padding: 0 12px; border: 1px solid #01204E; border-radius: 999px; background: #FFFFFF; color: #01204E; font: 600 12px/16px 'DM Sans', sans-serif; cursor: pointer; }
.ac-nudge:hover { background: #F2F5FA; }
.ac-nudge.is-done { border-color: #E4FFD9; color: #0E5C00; cursor: default; background: #FFFFFF; }
.ac-nudge:disabled { cursor: default; }
.ac-nudge:disabled:not(.is-done):hover { background: #FFFFFF; }

/* A2 Out-of-date reports */
.ac-od-btn { height: 36px; padding: 0 14px; border: none; border-radius: 999px; background: #01204E; color: #FFFFFF; font: 600 13px/18px 'DM Sans', sans-serif; cursor: pointer; }
.ac-od-btn:hover { background: #0D2F63; }
.ac-od-ghost { height: 36px; padding: 0 14px; border: none; border-radius: 999px; background: transparent; color: #01204E; font: 600 13px/18px 'DM Sans', sans-serif; cursor: pointer; }
.ac-od-ghost:hover { background: #FFFFFF; }

/* A4 Moderation */
.ac-tabs.ac-tabs-scroll { overflow-x: auto; }
.ac-tabs-scroll .ac-tab { white-space: nowrap; }
.ac-fchip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #E6EAF0; background: #FFFFFF; color: #01204E; font: 600 13px/18px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; text-decoration: none; }
.ac-fchip:hover { text-decoration: none; color: #01204E; border-color: #01204E; }
.ac-fchip.on { background: #01204E; color: #FFFFFF; border-color: #01204E; }
.ac-qbtn { height: 38px; padding: 0 14px; border: 1.5px solid transparent; border-radius: 999px; background: #FFFFFF; color: #01204E; font: 600 13px/18px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; }
.ac-qbtn.k1 { background: #01204E; color: #FFFFFF; }
.ac-qbtn.k1:hover { background: #0D2F63; }
.ac-qbtn.k2 { border-color: #01204E; }
.ac-qbtn.k2:hover, .ac-qbtn.k0:hover { background: #F2F5FA; }
.ac-qbtn.k3 { border-color: #F3C4BF; color: #9E2A21; }
.ac-qbtn.k3:hover { background: #FDECEA; }
.ac-mseg { display: flex; padding: 3px; background: #EEF0F4; border-radius: 999px; gap: 3px; width: max-content; max-width: 100%; overflow-x: auto; }
.ac-mseg label { position: relative; display: inline-flex; }
.ac-mseg input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ac-mseg span { height: 34px; padding: 0 14px; border-radius: 999px; background: transparent; color: #01204E; font: 600 13px/34px 'DM Sans', sans-serif; white-space: nowrap; }
.ac-mseg input:checked + span { background: #FFFFFF; box-shadow: 0 1px 3px rgba(1, 32, 78, .12); }
.ac-mseg input:focus-visible + span { outline: 3px solid #31FE01; outline-offset: 2px; }
.ac-undo { border: none; background: none; padding: 0; color: #01204E; font: 600 14px/20px 'DM Sans', sans-serif; text-decoration: underline; cursor: pointer; }
.ac-sw-btn { all: unset; cursor: pointer; display: inline-flex; }
.ac-sw-btn:focus-visible { outline: 3px solid #31FE01; outline-offset: 2px; border-radius: 999px; }
.ac-sw-btn[disabled] { cursor: default; }
.ac-sw { width: 44px; height: 26px; border-radius: 999px; background: #C5CBD5; position: relative; flex: none; transition: background .2s; display: inline-block; }
.ac-sw > i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(1, 32, 78, .3); transition: left .2s; }
.ac-sw.on { background: #01204E; }
.ac-sw.on > i { left: 21px; }
.ac-rule { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #EEF0F4; cursor: pointer; }
.ac-rule:focus-visible { outline: 3px solid #31FE01; outline-offset: 2px; }
.ac-rule[disabled] { cursor: default; }
.ac-word { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; background: #F2F5FA; color: #01204E; font: 600 13px/18px 'DM Sans', sans-serif; }
.ac-word button { width: 22px; height: 22px; border: none; border-radius: 50%; background: #FFFFFF; color: #01204E; font: 700 13px/22px 'DM Sans', sans-serif; cursor: pointer; padding: 0; }
.ac-word-in { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid #C5CBD5; border-radius: 999px; font-size: 15px; color: #121826; outline: none; font-family: 'DM Sans', sans-serif; }
.ac-word-in:focus { border-color: #01204E; }
.ac-grid-spaces { display: grid; grid-template-columns: minmax(0, 2fr) 110px 90px minmax(0, 1.3fr) minmax(0, 1.5fr) 90px; gap: 12px; }

/* A5 Assessment additions (the rest of A5 uses admin_people.css) */
.ac-fmt { text-align: left; padding: 14px; border-radius: 16px; border: 2px solid #E6EAF0; background: #FFFFFF; display: flex; flex-direction: column; gap: 6px; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.ac-fmt.on { border-color: #01204E; background: #F2F5FA; }
.ac-fmt:focus-visible { outline: 3px solid #31FE01; outline-offset: 2px; }
.ac-fmt-grid.is-locked { pointer-events: none; opacity: .6; }
.ac-opt-grid { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 2fr) 80px 36px; gap: 10px; align-items: center; }
.ac-opt-in { height: 44px; padding: 0 12px; border: 1px solid #C5CBD5; border-radius: 12px; font-size: 15px; color: #121826; background: #FFFFFF; outline: none; min-width: 0; font-family: 'DM Sans', sans-serif; width: 100%; }
.ac-opt-in.strong { font: 600 15px/20px 'DM Sans', sans-serif; color: #01204E; }
.ac-opt-in:focus { border-color: #01204E; }
.ac-opt-in:disabled { background: #FFFFFF; color: inherit; }
.ac-opt-x { width: 36px; height: 36px; border: none; border-radius: 50%; background: transparent; color: #9E2A21; font: 700 18px/36px 'DM Sans', sans-serif; cursor: pointer; }
.ac-opt-x:hover { background: #FDECEA; }
.ac-pv-opt { text-align: left; padding: 14px; border-radius: 16px; border: 2px solid #E6EAF0; background: #FFFFFF; display: flex; flex-direction: column; gap: 4px; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.ac-pv-opt.on { border-color: #01204E; background: #F2F5FA; }
.ac-pv-unsure { align-self: flex-start; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #DFE3EA; background: #FFFFFF; color: #01204E; font: 600 13px/18px 'DM Sans', sans-serif; cursor: pointer; }
.ac-pv-unsure.on { border-color: #01204E; background: #F2F5FA; }
.ac-note-btn { height: 32px; padding: 0 12px; border: 1px solid #01204E; border-radius: 999px; background: #FFFFFF; color: #01204E; font: 600 12px/16px 'DM Sans', sans-serif; cursor: pointer; }
.ac-note-btn:hover { background: #F2F5FA; }
.ac-note-btn.is-done { border-color: #E4FFD9; color: #0E5C00; cursor: default; }

@media (max-width: 640px) {
  .ac-opt-grid { grid-template-columns: 36px minmax(0, 1fr) 64px 32px; }
  .ac-opt-grid > .ac-opt-desc { grid-column: 2 / -1; grid-row: 2; }
  .ac-opt-head { display: none !important; }
}
