/* coe.css — VA Entitlement & COE Decoder, scoped under .coe2 */
.coe2 {
  --navy: #0A2540;
  --navy-deep: #061829;
  --navy-mid: #143256;
  --navy-light: #1E4470;
  --gold: #FFB800;
  --gold-soft: #FFC733;
  --blue: #2B7FFF;
  --blue-bright: #4A96FF;
  --white: #FFFFFF;
  --gray-400: #94A3B8;
  --green: #10B981;
  --green-soft: #34D399;
  --red: #C8102E;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--white);
  background: radial-gradient(circle at 15% 0%, rgba(43,127,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 100%, rgba(255,184,0,0.08) 0%, transparent 45%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 12px;
  padding: 28px 24px 24px;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.coe2 *, .coe2 *::before, .coe2 *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Layout */
.coe2-head { margin-bottom: 20px; }
.coe2-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.coe2-subtitle { font-size: 12px; color: rgba(255,255,255,0.5); }

.coe2-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 768px) { .coe2-body { grid-template-columns: 1fr; } }

.coe2-inputs { min-width: 0; }
.coe2-results { position: sticky; top: 20px; min-width: 0; }

/* Inputs */
.coe2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media (max-width: 480px) { .coe2-row { grid-template-columns: 1fr; } }
.coe2-field { margin-bottom: 10px; }
.coe2-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.coe2-input { width: 100%; padding: 8px 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: var(--white); font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.15s; }
.coe2-input:focus { border-color: var(--blue); }
.coe2-hint { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 2px; }
select.coe2-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
select.coe2-input option { background: var(--navy-deep); color: var(--white); }

/* Seg toggles */
.coe2-seg { display: flex; gap: 0; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; overflow: hidden; }
.coe2-seg label { flex: 1; text-align: center; padding: 7px 4px; font-size: 11px; font-weight: 600; cursor: pointer; transition: background 0.15s; border-right: 1px solid rgba(255,255,255,0.08); }
.coe2-seg label:last-child { border-right: none; }
.coe2-seg input { display: none; }
.coe2-seg label:has(input:checked) { background: var(--gold); color: var(--navy); }

/* Results panel */
.coe2-res { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 20px 18px; }

.coe2-hero-status { font-family: 'Source Serif 4', Georgia, serif; font-size: 22px; font-weight: 700; margin-bottom: 2px; }
.coe2-hero-sub { font-size: 12px; color: rgba(255,255,255,0.65); margin-bottom: 16px; line-height: 1.5; }

.coe2-section { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); margin: 16px 0 6px; }
.coe2-section:first-child { margin-top: 0; }

.coe2-ledger-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.coe2-ledger-row:last-child { border-bottom: none; }
.coe2-ledger-total { font-weight: 700; border-top: 2px solid rgba(255,255,255,0.12); padding-top: 6px; border-bottom: none; }

/* Status badges */
.coe2-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.coe2-badge-green { background: rgba(16,185,129,0.15); color: var(--green-soft); border: 1px solid rgba(16,185,129,0.3); }
.coe2-badge-gold { background: rgba(255,184,0,0.15); color: var(--gold-soft); border: 1px solid rgba(255,184,0,0.3); }
.coe2-badge-red { background: rgba(200,16,46,0.15); color: #f87171; border: 1px solid rgba(200,16,46,0.3); }

/* Math expanders */
.coe2-math { margin: 2px 0; }
.coe2-math summary { font-size: 10px; color: var(--blue-bright); cursor: pointer; list-style: none; }
.coe2-math summary::-webkit-details-marker { display: none; }
.coe2-math summary::before { content: '+ '; }
.coe2-math[open] summary::before { content: '\2212 '; }
.coe2-math-body { font-size: 11px; color: rgba(255,255,255,0.45); padding: 4px 0 4px 12px; line-height: 1.6; }

/* Restoration box */
.coe2-restore { background: rgba(255,184,0,0.06); border: 1px solid rgba(255,184,0,0.15); border-radius: 8px; padding: 12px 14px; margin: 8px 0; }
.coe2-restore-title { font-size: 11px; font-weight: 700; color: var(--gold-soft); margin-bottom: 4px; }
.coe2-restore-text { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.5; }

/* Copy button */
.coe2-copy { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: var(--white); font-size: 11px; font-weight: 600; cursor: pointer; transition: background 0.15s; font-family: inherit; }
.coe2-copy:hover { background: rgba(255,255,255,0.1); }

.coe2-disclaimer { font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 14px; line-height: 1.5; }

/* CTA card */
.coe2-cta-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 16px; margin-top: 16px; }
.coe2-cta-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.coe2-cta-text { font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.coe2-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 480px) { .coe2-form { grid-template-columns: 1fr; } }
.coe2-form-input { width: 100%; padding: 8px 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: var(--white); font-size: 13px; font-family: inherit; outline: none; }
.coe2-form-input:focus { border-color: var(--blue); }
.coe2-form-submit { grid-column: 1 / -1; padding: 12px; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%); color: var(--navy); border: none; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; letter-spacing: 0.02em; transition: transform 0.1s; }
.coe2-form-submit:hover { transform: scale(0.98); }
.coe2-form-msg { grid-column: 1 / -1; font-size: 11px; text-align: center; min-height: 16px; }

/* === tool-theme-resets === */
#coe2-tool #coe2-results a { color: #4A96FF !important; text-decoration: none !important; }
#coe2-tool #coe2-results a:hover { text-decoration: underline !important; }
#coe2-tool div[class*="bullet-section"] { background: transparent !important; padding: 0 !important; margin: 0 !important; border: none !important; border-radius: 0 !important; }
#coe2-tool ul, #coe2-tool li { background-color: transparent !important; }
#coe2-tool summary::after { content: none; display: none; }
#coe2-tool summary { display: block; justify-content: normal; }
#coe2-tool details { background: transparent; border: none; overflow: visible; border-radius: 0; }
#coe2-tool details > summary { background: transparent; }
#coe2-tool details > :not(summary) { background: transparent; }
#coe2-tool input:not([type="checkbox"]):not([type="radio"]) { background: rgba(255,255,255,0.06) !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.12) !important; }
#coe2-tool input::placeholder { color: rgba(255,255,255,0.55); opacity: 1; }
/* alpha lifts — hint/disclaimer text below 0.55 raised to 0.55 */
#coe2-tool .coe2-subtitle { color: rgba(255,255,255,0.55) !important; }
#coe2-tool .coe2-label { color: rgba(255,255,255,0.55) !important; }
#coe2-tool .coe2-hint { color: rgba(255,255,255,0.55) !important; }
#coe2-tool .coe2-math-body { color: rgba(255,255,255,0.55) !important; }
#coe2-tool .coe2-disclaimer { color: rgba(255,255,255,0.55) !important; }
