/* /dormant/: the free dormant check and guide (_build/dormant.py, src/dormant/checker.js).
   Everything is under .dc, so nothing here touches the rest of the site; buttons use the site's own .btn and .btn-line. */
.dc {
  --dc-green-tint: #e8f5ed;
  --dc-amber: #8a5300;
  --dc-amber-tint: #fff4dc;
  --dc-red-tint: #fdecea;
  --dc-yellow: #fff3c4;
}
.dc [hidden] { display: none !important; }
.dc-prose { max-width: 760px; }
.dc-title { background: linear-gradient(180deg, var(--tint), #fff 90%); padding: 30px 0 8px; }
.dc-title h1 { margin-bottom: .3em; }
.dc-free-tag { display: inline-block; background: var(--green); color: #fff; font: 800 12.5px Montserrat, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; margin: 0 0 12px; }
.dc-updated { font-size: 14px; color: var(--muted); margin: 0; }
.dc-section { padding: 22px 0; }
.dc-guide section h2 { margin-top: 1.6em; padding-top: 8px; scroll-margin-top: 90px; }
.dc-guide h3 { scroll-margin-top: 90px; }
.dc-guide ul, .dc-guide ol { padding-left: 1.3em; }
.dc-guide li { margin-bottom: .35em; }

/* callouts */
.dc-note { border-radius: 10px; padding: 16px 18px; margin: 18px 0; border-left: 5px solid var(--navy); background: var(--tint); }
.dc-note > :last-child { margin-bottom: 0; }
.dc-note h2, .dc-note h3 { font-size: 18px; margin: 0 0 .4em; }
.dc-warn { background: var(--dc-amber-tint); border-left-color: #d08c00; }
.dc-stop { background: var(--dc-red-tint); border-left-color: var(--red); }
.dc-stop h2, .dc-stop h3 { color: var(--red); }
.dc .formbox { margin: 0 0 16px; }
.dc-small-print { background: var(--dc-yellow); border-left-color: #c9a400; }
.dc-small-print ul { margin: 0; padding-left: 1.2em; }
.dc-small-print li { font-weight: 600; margin-bottom: .3em; }

/* tables, cards, outcomes, contents */
.dc-table { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 10px; }
.dc-table table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.dc-table th, .dc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dc-table tr:last-child td, .dc-table tr:last-child th { border-bottom: 0; }
.dc-table thead th { background: var(--grey-bg); color: var(--navy); font-size: 14.5px; }
.dc-table tbody th { font-weight: 700; color: var(--navy); width: 34%; }
.dc-cards, .dc-outcomes { display: grid; gap: 12px; margin-bottom: 1.2em; }
@media (min-width: 720px) { .dc-cards, .dc-outcomes { grid-template-columns: repeat(2, 1fr); } }
.dc-card, .dc-outcome { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.dc-card h3, .dc-outcome h3 { margin: 0 0 .3em; font-size: 16.5px; }
.dc-card p, .dc-outcome p { margin: 0; font-size: 15.5px; }
.dc-toc { background: var(--grey-bg); border-radius: 10px; padding: 14px 18px; margin: 0 0 1.4em; }
.dc-toc p { margin: 0 0 .3em; font: 700 15px Montserrat, Arial, sans-serif; color: var(--navy); }
.dc-toc ol { margin: 0; font-size: 15.5px; }

/* the Bizfile walkthrough */
.dc-steps { list-style: none; counter-reset: s; padding: 0 !important; }
.dc-steps > li { counter-increment: s; position: relative; padding: 0 0 16px 48px; margin: 0; }
.dc-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 15px/32px Montserrat, sans-serif; text-align: center; }
.dc-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
.dc-steps h3 { margin: 4px 0 .3em; font-size: 17px; }
.dc-steps p { margin-bottom: .5em; }

/* the checker */
.dc-checker { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 6px 24px rgba(18, 51, 91, .08); }
.dc-checker h2 { font-size: 21px; margin-bottom: .2em; }
.dc-intro { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.dc-fields { display: grid; gap: 12px; }
@media (min-width: 560px) { .dc-fields { grid-template-columns: 1fr 1fr; } }
.dc-field label { display: block; font-weight: 700; font-size: 15.5px; margin-bottom: 4px; color: var(--navy); }
.dc-field input { width: 100%; font: 17px "Open Sans", Arial, sans-serif; padding: 11px 12px; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); min-height: 48px; }
.dc-field input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(18, 51, 91, .15); }
#dc-uen { text-transform: uppercase; letter-spacing: .03em; }
#dc-uen::placeholder { text-transform: none; letter-spacing: 0; }
.dc-hint { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
.dc-uen-note { color: var(--green-dark); font-weight: 600; }
.dc .yn { display: flex; gap: 8px; margin-top: 8px; }
.dc .yn label { position: relative; flex: 0 0 86px; }
.dc .yn input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dc .yn span { display: block; text-align: center; padding: 9px 0; border: 2px solid var(--line); border-radius: 8px; font-weight: 700; cursor: pointer; background: #fff; }
.dc .yn input:focus-visible + span { outline: 3px solid #f2a900; outline-offset: 2px; }
.dc .yn input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.dc .form-error { background: var(--dc-red-tint); color: var(--red); font-weight: 600; padding: 10px 12px; border-radius: 8px; font-size: 15px; margin: 12px 0 0; }
.dc-free { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* the checker's vertical stepper: one step open, finished ones folded with a tick and their answer */
.vsteps { list-style: none; padding: 0; margin: 6px 0 0; }
.vstep { position: relative; margin: 0; scroll-margin-top: 90px; }
.vstep:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 36px; bottom: -8px; width: 2px; background: var(--line); transition: background .3s; }
.vstep.done::before { background: var(--green); }
.vstep-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 0; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.vstep-head:disabled { cursor: default; }
.vstep-num { position: relative; z-index: 1; flex: 0 0 28px; height: 28px; border-radius: 50%; background: #9aa5b1; color: #fff; font: 800 14px/28px Montserrat, Arial, sans-serif; text-align: center; transition: background .25s; }
.vstep.active .vstep-num { background: var(--navy); }
.vstep.done .vstep-num { background: var(--green); font-size: 0; }
.vstep.done .vstep-num::before { content: "✓"; font-size: 15px; }
.vstep-title { white-space: nowrap; font: 700 17px/1.3 Montserrat, Arial, sans-serif; color: var(--navy); }
.vstep:not(.active):not(.done) .vstep-title { color: var(--muted); }
.vstep.done .vstep-head:hover .vstep-title { text-decoration: underline; }
.vstep-sum { margin-left: auto; min-width: 0; max-width: 58%; font-size: 14px; font-weight: 600; color: var(--green-dark); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vstep-body { padding-left: 34px; }
.vstep-inner { padding: 0 6px; }
.vstep-inner > :first-child { margin-top: 6px; }
.vstep fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.vstep legend { padding: 0; font-weight: 600; font-size: 16.5px; line-height: 1.45; display: block; }
.vstep-actions { margin: 14px 0 16px; }
.vstep-actions .btn { min-width: 128px; }
.dc-js .vstep-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s ease, opacity .24s ease; }
.dc-js .vstep.active .vstep-body { grid-template-rows: 1fr; opacity: 1; }
.dc-js .vstep-inner { overflow: hidden; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .dc-js .vstep-body, .vstep-num, .vstep::before { transition: none; } }

/* the result */
.dc-result { margin-top: 18px; border-radius: 14px; padding: 20px 18px; border: 2px solid var(--line); background: #fff; scroll-margin-top: 90px; }
.dc-result:focus { outline: none; }
.dc-result.ok { border-color: var(--green); background: linear-gradient(180deg, var(--dc-green-tint), #fff 140px); }
.dc-result.no { border-color: #d08c00; background: linear-gradient(180deg, var(--dc-amber-tint), #fff 140px); }
.dc-result .result-kicker { font: 700 13px Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; }
.dc-result h2 { font-size: 22px; }
.dc-result.ok h2 { color: var(--green-dark); }
.dc-result.no h2 { color: var(--dc-amber); }
.dc-result h3 { margin-top: 1em; font-size: 17px; }
.dc-result .reasons, .dc-result .next { font-size: 15.5px; padding-left: 1.3em; }
.dc-result .reasons b { display: block; }
.dc-result .deadline-card { background: var(--dc-yellow); border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.dc-result .deadline-card p { margin: 0; }
.dc-result .dl-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.dc-result .dl-date { font: 800 26px/1.2 Montserrat, sans-serif; color: var(--navy); margin: 2px 0 6px !important; }
.dc-result .dl-when { font-size: 14.5px; }
.dc-result .result-actions { display: grid; gap: 10px; margin: 16px 0 10px; }
@media (min-width: 640px) { .dc-result .result-actions { display: flex; flex-wrap: wrap; } }

@media print {
  .dc-checker form, .dc-result .result-actions { display: none !important; }
}
