/* ============================================================
   admissions.css — Admissions command center.
   Reuses the College Resume design tokens (styles.css) and mirrors
   the calm, minimal PREP hub look. Loaded alongside css/styles.css.
   ============================================================ */

/* ---------------- visibility / shell ---------------- */
#admApp[hidden], #admPublic[hidden] { display: none !important; }
/* When account.js switches the page into member mode, the marketing block
   is never relevant — hide it up front to avoid a flash. */
body.member-mode[data-page="admissions"] #admPublic { display: none !important; }

.adm-shell { padding: 26px 20px 60px; min-height: 70vh; }
.prep-loading { color: var(--muted); padding: 50px 0; text-align: center; }

.adm-head { margin-bottom: 16px; }
.adm-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 4px 0 0; }

.adm-muted { color: var(--muted); font-size: .9rem; }
.adm-hint { font-weight: 400; font-size: .76rem; color: var(--muted); }
.adm-err { color: #a02020; padding: 20px 0; }
.adm-disclaimer { font-size: .78rem; color: var(--muted); margin: 0 0 14px; }

/* ---------------- shared form controls (scoped to the hub) ---------------- */
.adm-shell input, .adm-shell select, .adm-shell textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.adm-shell input:focus, .adm-shell select:focus, .adm-shell textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21,128,139,.12);
}
.adm-shell input[type="checkbox"] { width: auto; padding: 0; border: 0; box-shadow: none; accent-color: var(--teal); }

/* ---------------- tabs (mirror .prep-nav) ---------------- */
.adm-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.adm-nav button { border: 0; background: transparent; font: 600 .9rem "Inter", sans-serif; color: var(--muted); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.adm-nav button:hover { color: var(--ink); background: var(--line-soft); }
.adm-nav .an-active { background: var(--ink); color: #fff; }

.adm-subnav { display: inline-flex; gap: 4px; background: var(--line-soft); padding: 4px; border-radius: 999px; margin-bottom: 20px; }
.adm-subnav button { border: 0; background: transparent; font: 600 .84rem "Inter", sans-serif; color: var(--muted); padding: 7px 18px; border-radius: 999px; cursor: pointer; }
.adm-subnav .an-active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* ---------------- pills / buckets ---------------- */
.adm-pill { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.bk-reach { background: #ffe8e2; color: #c1432f; }
.bk-hardReach { background: #fbd7cf; color: #9c2617; }
.bk-target { background: #fdf0cf; color: #8a5a00; }
.bk-safety { background: #e6f6ec; color: #1a7a40; }
.adm-plan-ed { background: #d9efec; color: #0d5a61; }
.adm-plan-ea { background: var(--teal-soft); color: var(--teal-dark); }
.adm-plan-rd { background: var(--line-soft); color: var(--ink-soft); }

/* ---------------- panels ---------------- */
.adm-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.adm-panel h3 { margin: 0 0 12px; font-size: 1.05rem; }
.adm-panel h4 { font-size: .95rem; }

/* ---------------- dashboard ---------------- */
.adm-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.adm-card-k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: block; margin-bottom: 6px; }
.adm-card-v { font-family: "Poppins", sans-serif; font-size: 1.8rem; color: var(--ink); line-height: 1.1; }
.adm-card-sub { font-size: 1rem; color: var(--muted); font-weight: 600; }
.adm-card-note { display: block; font-size: .74rem; color: var(--muted); margin-top: 4px; }
.adm-bucket-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-progress { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.adm-progress-fill { height: 100%; background: var(--teal); border-radius: 999px; transition: width .3s ease; }

.adm-deadlines { list-style: none; margin: 0; padding: 0; }
.adm-deadlines li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.adm-deadlines li:first-child { border-top: 0; }
.adm-dl-date { flex: 0 0 auto; min-width: 110px; font-weight: 700; font-size: .84rem; color: var(--teal-dark); }
.adm-dl-col { flex: 1; font-weight: 600; color: var(--ink); font-size: .9rem; }
.adm-dl-label { font-size: .82rem; color: var(--muted); }

.adm-quick { display: flex; gap: 10px; flex-wrap: wrap; }

.adm-empty { text-align: center; background: linear-gradient(180deg, #f2fbf8, #fff); border: 1px solid #cdeae6; border-radius: 16px; padding: 30px 24px; margin-bottom: 18px; }
.adm-empty h2 { font-size: 1.3rem; margin: 0 0 8px; }
.adm-empty p { color: var(--ink-soft); margin: 0 0 16px; }

/* ---------------- profile form ---------------- */
.adm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adm-form-grid label, .adm-form > label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.adm-span2 { grid-column: 1 / -1; }
.adm-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.adm-fieldset { border: 1.5px solid var(--line); border-radius: 14px; padding: 18px; margin: 16px 0; }
.adm-fieldset legend { font-size: .82rem; font-weight: 700; padding: 0 6px; color: var(--ink); }
.adm-regions { margin-top: 14px; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.adm-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 500; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.adm-chip input { margin: 0; }
.adm-form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.adm-block-label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin: 14px 0 0; }
.adm-block-label input, .adm-block-label textarea, .adm-block-label select { width: 100%; margin-top: 6px; }
.adm-textarea { width: 100%; line-height: 1.55; resize: vertical; }
.adm-textarea-lg { min-height: 280px; }

/* ---------------- suggestions ---------------- */
.adm-suggest-head { margin-bottom: 8px; }
.adm-suggest-head h3 { margin: 0 0 4px; }
.adm-bucket { margin: 18px 0; }
.adm-bucket-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .95rem; }
.adm-suggest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.adm-suggest-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.adm-suggest-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.adm-suggest-top strong { font-size: .98rem; color: var(--ink); }
.adm-suggest-meta { margin: 0; font-size: .8rem; color: var(--muted); }
.adm-why { margin: 0; font-size: .84rem; color: var(--ink-soft); background: var(--line-soft); border-radius: 8px; padding: 8px 10px; }
.adm-suggest-card .btn { align-self: flex-start; margin-top: auto; }
.adm-suggest-card .btn.is-added { background: var(--good); color: #fff; }

/* ---------------- college list table ---------------- */
.adm-list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.adm-list-head h3 { margin: 0; }
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.adm-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.adm-table select, .adm-table input { padding: 7px 9px; font-size: .84rem; }
.adm-table td input[type="text"] { width: 100%; min-width: 120px; }
.adm-table td input[type="date"] { min-width: 140px; }
.adm-td-name { font-weight: 600; color: var(--ink); min-width: 120px; }
.adm-remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; border-radius: 8px; padding: 4px 8px; }
.adm-remove:hover { background: #fdeaea; color: #a02020; }

.adm-browse { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); }
.adm-browse h3 { margin: 0 0 4px; }
.adm-browse-bar { display: flex; gap: 10px; margin: 12px 0; }
.adm-browse-bar input { flex: 1; }
.adm-browse-list { display: grid; gap: 8px; }
.adm-browse-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.adm-browse-info strong { display: block; font-size: .92rem; color: var(--ink); }
.adm-browse-meta { font-size: .8rem; color: var(--muted); }

/* ---------------- activities ---------------- */
.adm-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.adm-actions-right { display: flex; gap: 10px; }
.adm-actions-end { justify-content: flex-end; }
.adm-opts { display: grid; gap: 10px; margin-top: 14px; }
.adm-opt { border: 1.5px solid #bfe3e6; background: #f6fcfc; border-radius: 12px; padding: 12px 14px; }
.adm-opt .adm-opt-text { width: 100%; border: 0; background: transparent; resize: vertical; min-height: 52px; font: inherit; color: var(--ink); line-height: 1.5; padding: 0; box-shadow: none; }
.adm-opt .adm-opt-text:focus { outline: none; box-shadow: none; }         /* mouse clicks stay clean */
.adm-opt .adm-opt-text:focus-visible { outline: none; box-shadow: 0 0 0 3px #8fd4c9; border-radius: 8px; } /* keyboard focus gets a visible teal ring */
.adm-opt-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.adm-count { font-size: .78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-count.over { color: #a02020; }

/* ---------------- essays ---------------- */
.adm-drafts { display: grid; gap: 8px; }
.adm-draft { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.adm-draft.is-current { border-color: var(--teal); background: #f2fbf8; }
.adm-draft-info strong { display: block; font-size: .9rem; color: var(--ink); }

.adm-feedback { display: grid; gap: 14px; margin-top: 14px; }
.adm-fb-overall { background: #0f1f38; color: #fff; border-radius: 12px; padding: 14px 16px; }
.adm-fb-eyebrow { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #8fd4c9; }
.adm-fb-overall p { margin: 4px 0 0; font-size: .95rem; color: #e7ecf3; }
.adm-fb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-fb-block { border-radius: 12px; padding: 14px 16px; }
.adm-fb-block h4 { margin: 0 0 8px; }
.adm-fb-block ul { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--ink-soft); }
.adm-fb-block li { margin: 4px 0; }
.adm-fb-strength { background: #e9f7ef; border: 1px solid #bfe6cd; }
.adm-fb-improve { background: #fff3e0; border: 1px solid #ffdca8; }
.adm-fb-lines { background: #fff; border: 1px solid var(--line); }
.adm-lineedit { border-top: 1px solid var(--line-soft); padding: 10px 0; }
.adm-lineedit:first-of-type { border-top: 0; padding-top: 0; }
.adm-le-quote { margin: 0; font-size: .88rem; color: var(--muted); text-decoration: line-through; text-decoration-color: #e0a0a0; }
.adm-le-arrow { margin: 2px 0; color: var(--teal); font-weight: 700; }
.adm-le-sugg { margin: 0; font-size: .9rem; color: var(--ink); }
.adm-fb-opening { background: #f2fbf8; border: 1px solid #bfe4dd; }
.adm-opening { margin: 0 0 10px; font-size: .95rem; line-height: 1.6; color: var(--ink); font-style: italic; }

.adm-ideas { display: grid; gap: 10px; margin-top: 14px; }
.adm-idea { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.adm-idea strong { display: block; color: var(--ink); font-size: .96rem; }
.adm-idea-angle { margin: 4px 0 0; font-size: .88rem; color: var(--ink-soft); }
.adm-idea-why { margin: 6px 0 10px; font-size: .82rem; color: var(--muted); }

/* ---------------- strategy ---------------- */
.adm-recs { margin-top: 14px; }
.adm-recs h4 { margin: 0 0 10px; }
.adm-rec { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.adm-rec-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-rec-top strong { color: var(--ink); }
.adm-timeline { list-style: none; margin: 0; padding: 0; }
.adm-timeline li { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.adm-timeline li:first-child { border-top: 0; }
.adm-tl-when { flex: 0 0 auto; min-width: 120px; font-weight: 700; font-size: .82rem; color: var(--teal-dark); }
.adm-tl-action { flex: 1; font-size: .9rem; color: var(--ink-soft); }
.adm-strategy-links .adm-actions-row { justify-content: flex-start; }

/* ---------------- AI states ---------------- */
.adm-notice { display: flex; gap: 12px; align-items: flex-start; background: #fffbea; border: 1.5px solid #ffe08a; border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.adm-notice-ic { font-size: 1.2rem; line-height: 1.3; }
.adm-notice strong { display: block; color: var(--ink); font-size: .92rem; }
.adm-notice p { margin: 2px 0 0; font-size: .86rem; color: var(--ink-soft); }
.adm-upsell { text-align: center; background: linear-gradient(180deg, #fffdf5, #fff); border: 1.5px solid #ffe08a; border-radius: 16px; padding: 26px 22px; margin-top: 14px; }
.adm-upsell-ic { font-size: 1.6rem; }
.adm-upsell h3 { margin: 8px 0 8px; font-size: 1.15rem; }
.adm-upsell p { color: var(--ink-soft); font-size: .92rem; margin: 0 auto 16px; max-width: 44ch; }

/* ---------------- brainstorm modal ---------------- */
.adm-modal { position: relative; background: #fff; border-radius: var(--r-lg); padding: 28px 30px; width: min(620px, 94vw); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.adm-modal-title { margin: 6px 0 6px; font-size: 1.3rem; }
.adm-bs-form { margin-top: 14px; }

/* ======================================================
   PUBLIC / MARKETING (signed-out visitors)
   ====================================================== */
.adm-hero { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(28px, 4vw, 48px); }
.adm-accent { color: var(--teal); }
.adm-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.adm-hero-fine { margin-top: 16px; color: var(--muted); font-size: .86rem; }
.adm-feature-grid .feature-card { align-items: flex-start; }
.adm-feature-grid .fc-ic { font-size: 1.15rem; }
.adm-cta-band { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.adm-cta-title { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.adm-cta-sub { color: #cdd6e4; margin: 0; max-width: 46ch; }

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .adm-cards { grid-template-columns: 1fr 1fr; }
  .adm-form-grid { grid-template-columns: 1fr; }
  .adm-fb-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .adm-cards { grid-template-columns: 1fr; }
  .adm-list-head { flex-direction: column; align-items: stretch; }
  .adm-cta-band { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .adm-progress-fill { transition: none; }
}
