/* AR Akron Services — health inspection readiness check */
.ic { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }

/* progress */
.ic-prog { position: sticky; top: 72px; z-index: 5; background: var(--bg); padding: 14px 0 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.ic-prog p { margin: 0; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; font-weight: 600; }
.ic-track { flex: 1; height: 2px; background: var(--line); position: relative; }
.ic-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); transition: width .25s; }

/* sections + questions */
.ic-sec { margin-top: 44px; }
.ic-sec-h { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0 0 6px; display: flex; align-items: baseline; gap: 14px; }
.ic-sec-h span { font-family: var(--sans); font-size: .78rem; letter-spacing: .24em; color: var(--gold); font-weight: 600; min-width: 2.2em; }
.ic-qs { list-style: none; margin: 0; padding: 0; }
.ic-q { border-top: 1px solid var(--line); padding: 22px 0 20px; scroll-margin-top: 140px; }
.ic-q:last-child { border-bottom: 1px solid var(--line); }
.ic-q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ic-q legend { padding: 0; font-size: 1.04rem; line-height: 1.55; color: var(--text); display: grid; grid-template-columns: 2.6em 1fr; }
.ic-num { font-variant-numeric: tabular-nums; color: var(--gold); font-size: .86rem; padding-top: .18em; letter-spacing: .05em; }
.ic-opts { display: flex; flex-wrap: wrap; gap: 0; margin: 14px 0 0 2.6em; border: 1px solid var(--line); border-radius: 10px; width: max-content; max-width: calc(100% - 2.6em); overflow: hidden; }
.ic-opt { position: relative; cursor: pointer; }
.ic-opt + .ic-opt { border-left: 1px solid var(--line); }
.ic-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ic-opt span { display: block; padding: 9px 18px; font-size: .93rem; color: var(--muted); transition: background .15s, color .15s; user-select: none; }
.ic-opt:hover span { color: var(--text); background: var(--surface); }
.ic-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -2px; }
.ic-y input:checked + span { background: rgba(134, 214, 154, .12); color: #9fe0ae; }
.ic-opt.ic-n input:checked + span { background: rgba(255, 154, 143, .12); color: #ffb0a7; }
.ic-u input:checked + span { background: rgba(240, 196, 106, .12); color: #f3cf83; }
.ic-x input:checked + span { background: var(--surface-2); color: var(--text); }

/* results */
.ic-res { position: sticky; top: 96px; border-left: 1px solid var(--line); padding-left: 32px; }
.ic-label { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0; }
.ic-scoreline { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 0; }
.ic-scoreline b { font-family: var(--serif); font-weight: 400; font-size: 4.2rem; line-height: 1; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.ic-scoreline span { color: var(--muted); font-size: 1.1rem; }
.ic-meter { height: 3px; background: var(--line); margin: 16px 0 0; position: relative; }
.ic-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); transition: width .3s; }
.ic-res[data-band="low"] .ic-meter i { background: #e8806f; }
.ic-res[data-band="mid"] .ic-meter i { background: #e0b65a; }
.ic-res[data-band="ok"] .ic-meter i { background: #7fcf93; }
.ic-band { font-family: var(--serif); font-size: 1.45rem; margin: 18px 0 4px; }
.ic-res[data-band="low"] .ic-band { color: #ffb0a7; }
.ic-band-d { color: var(--muted); font-size: .94rem; margin: 0; }
.ic-stats { display: flex; gap: 28px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.ic-stats p { margin: 0; font-size: .82rem; color: var(--muted); }
.ic-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.8rem; color: var(--text); line-height: 1.2; }
.ic-closure { margin: 16px 0 0; padding: 10px 0 10px 14px; border-left: 2px solid #e8806f; color: #ffc2ba; font-size: .9rem; }
.ic-empty { color: var(--muted); font-size: .96rem; margin: 10px 0 0; }
.ic-res.is-empty .ic-full { display: none; }
.ic-res:not(.is-empty) .ic-empty { display: none; }

.ic-gaps-h { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 26px 0 0; }
.ic-gaps { list-style: none; margin: 8px 0 0; padding: 0; max-height: 46vh; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ic-gap { padding: 12px 0 12px 14px; border-bottom: 1px solid var(--line); border-left: 2px solid var(--line); }
.ic-gap.ic-w3 { border-left-color: #e8806f; }
.ic-gap.ic-w2 { border-left-color: #e0b65a; }
.ic-gap p { margin: 0; }
.ic-gap-lvl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ic-w3 .ic-gap-lvl { color: #f09a8c; }
.ic-w2 .ic-gap-lvl { color: #e8c271; }
.ic-gap-t { font-size: .95rem; line-height: 1.5; margin-top: 3px !important; }
.ic-gap-f { font-size: .88rem; color: var(--gold-soft); margin-top: 4px !important; line-height: 1.45; }
.ic-gap-f span { color: var(--muted); margin-right: 6px; }
.ic-gap-f em { font-style: normal; display: block; font-size: .8rem; }
.ic-gap-f em a { color: var(--muted); }
.ic-gap-q { font-size: .8rem; color: var(--muted); }
.ic-gap-none { color: var(--muted); font-size: .94rem; padding: 10px 0; }

.ic-cta { margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(201, 162, 74, .45); }
.ic-cta h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 6px; }
.ic-cta p { color: var(--muted); font-size: .93rem; margin: 0 0 14px; }
.ic .btn { cursor: pointer; font: inherit; font-weight: 600; width: 100%; justify-content: center; }
.ic .btn + .btn { margin-top: 10px; }
.ic-tools { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.ic-tools label { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.ic-tools input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: .95rem; }
.ic-tools input:focus { outline: none; border-color: var(--gold); }
.ic-tools-row { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.ic-link { background: none; border: 0; padding: 6px 0; font: inherit; font-size: .9rem; color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ic-link.muted { color: var(--muted); }
.ic-note { color: var(--muted); font-size: .8rem; margin: 14px 0 0; }

.ic-sheet { display: none; }
.ic-mini { display: none; }

@media (max-width: 1040px) {
  .ic { grid-template-columns: 1fr; gap: 20px; }
  .ic-res { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--gold); padding-top: 28px; margin-top: 20px; }
  .ic-gaps { max-height: none; }
  .ic-mini { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px; background: rgba(20, 20, 22, .96); border: 1px solid rgba(201, 162, 74, .5); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
    text-decoration: none; color: var(--muted); font-size: .9rem; transition: opacity .2s, transform .2s; }
  .ic-mini.off { opacity: 0; transform: translateY(20px); pointer-events: none; }
  .ic-mini b { color: var(--gold-soft); font-variant-numeric: tabular-nums; }
}
@media (max-width: 620px) {
  .ic-q legend { grid-template-columns: 2.1em 1fr; font-size: 1rem; }
  .ic-opts { margin-left: 0; max-width: 100%; width: 100%; }
  .ic-opt { flex: 1 1 0; text-align: center; }
  .ic-opt span { padding: 10px 6px; font-size: .88rem; }
  .ic-scoreline b { font-size: 3.6rem; }
  .ic-prog { top: 64px; }
}

@media print {
  .ic-mini { display: none !important; }
  @page { size: A4; margin: 16mm; }
  body { background: #fff !important; color: #111 !important; }
  body > *:not(main), main > *:not(.ic-print) { display: none !important; }
  .ic-print, .ic-sheet { display: block !important; }
  .ic-print .wrap { padding: 0; max-width: none; }
  .ic-sheet { font-family: var(--sans); color: #111; font-size: 10.5pt; line-height: 1.45; }
  .ic-sheet .ps-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #c9a24a; padding-bottom: 10px; margin-bottom: 16px; }
  .ic-sheet .ps-brand { font-family: var(--serif); font-size: 13pt; color: #8a6a1f; margin: 0; }
  .ic-sheet .ps-brand span { font-family: var(--sans); font-size: 8pt; letter-spacing: .2em; text-transform: uppercase; }
  .ic-sheet .ps-kicker { font-size: 8pt; letter-spacing: .2em; text-transform: uppercase; color: #666; margin: 10px 0 2px; }
  .ic-sheet h2 { font-size: 20pt; color: #111; margin: 0; }
  .ic-sheet .ps-date { text-align: right; color: #333; font-size: 10pt; margin: 0; }
  .ic-sheet table { width: 100%; border-collapse: collapse; }
  .ic-sheet th, .ic-sheet td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid #ddd; }
  .ic-sheet thead th { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .06em; color: #555; border-bottom: 1.5px solid #999; }
  .ic-sheet small { color: #666; }
  .ic-sheet tr { page-break-inside: avoid; }
  .ic-sheet .ps-foot { margin-top: 24px; padding-top: 10px; border-top: 1px solid #ddd; font-size: 8.5pt; color: #666; }
}
.ic-opt { display: flex; }
.ic-opt span { flex: 1; display: flex; align-items: center; justify-content: center; }

/* email gate */
.ic-lock { margin: 14px 0 0; padding: 18px 0 0; border-top: 1px dashed rgba(201, 162, 74, .5); }
.ic-lock-h { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; margin: 0; color: var(--gold-soft); }
.ic-lock-p { color: var(--muted); font-size: .92rem; margin: 6px 0 14px; }
.ic-fl { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 12px 0 6px; }
.ic-lock input[type=email], .ic-lock input[type=text] { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: .96rem; }
.ic-lock input:focus { outline: none; border-color: var(--gold); }
.ic-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ic-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin-top: 12px; font-size: .88rem; color: var(--muted); cursor: pointer; line-height: 1.45; }
.ic-check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #c9a24a; }
.ic-check a { color: var(--gold-soft); }
.ic-lock .btn { margin-top: 16px; }
.ic-lock .btn:disabled { opacity: .45; cursor: not-allowed; }
.ic-msg { font-size: .88rem; color: #ffb0a7; margin: 10px 0 0; min-height: 1px; }
.ic-msg a { color: inherit; }
.ic-done { margin: 16px 0 0; padding: 10px 0 10px 14px; border-left: 2px solid #7fcf93; color: #bfe8c9; font-size: .92rem; }
.ic-res.is-unlocked .ic-gaps { max-height: 46vh; }
@media (max-width: 1040px) { .ic-res.is-unlocked .ic-gaps { max-height: none; } }
@media (min-width: 1041px) {
  .ic-res { max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px; }
  .ic-gaps, .ic-res.is-unlocked .ic-gaps { max-height: none; overflow: visible; }
}

/* v4: risk check — situation questions with choices */
.ic-form-wrap {}
#ic-form .ic-qs { margin-top: 28px; }
.ic-choices { display: flex; flex-direction: column; gap: 0; margin: 14px 0 0 2.6em; border-left: 1px solid var(--line); }
.ic-choice { position: relative; display: block; cursor: pointer; }
.ic-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ic-choice span { display: block; padding: 9px 16px; font-size: .96rem; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; transition: color .15s, background .15s, border-color .15s; }
.ic-choice:hover span { color: var(--text); background: var(--surface); }
.ic-choice input:checked + span { color: var(--text); border-left-color: var(--gold); background: rgba(201, 162, 74, .08); }
.ic-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -2px; }
.ic-level { font-family: var(--serif); font-weight: 400; font-size: 3rem; line-height: 1.05; margin: 8px 0 0; color: var(--gold-soft); }
.ic-res[data-band="low"] .ic-level { color: #ffb0a7; }
.ic-res[data-band="mid"] .ic-level { color: #f3cf83; }
.ic-res[data-band="ok"] .ic-level { color: #9fe0ae; }
.ic-meter-risk { margin-top: 14px; }
.ic-res .ic-band-d { margin-top: 14px; }
.ic-stakes { list-style: none; margin: 8px 0 0; padding: 0; }
.ic-stakes li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.ic-stakes li span { color: var(--muted); }
.ic-stakes li b { font-family: var(--serif); font-weight: 400; color: #f0a597; white-space: nowrap; }
.ic-stakes li a { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); }
@media (max-width: 620px) { .ic-choices { margin-left: 0; } .ic-level { font-size: 2.5rem; } }
