@import url("../../assets/p6-office.css");
.imp-steps ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; margin: 1rem 0; padding: 0; list-style: none; counter-reset: none; }
.imp-steps li { display: flex; gap: .4rem; align-items: center; min-width: 0; padding: .5rem; border-radius: .7rem; background: #ebe3d3; color: #526075; font-size: .88rem; font-weight: 700; overflow-wrap: anywhere; }
.imp-steps li[data-state="current"] { background: #162b4d; color: #fff; }
.imp-steps li[data-state="done"] { background: #dce8f6; color: #162b4d; }
.imp-step-no { display: inline-grid; flex: none; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgb(255 255 255 / .7); color: #162b4d; }
.imp-step h2:focus { outline: none; }
.imp-hints { display: grid; gap: .35rem; padding-left: 1.2rem; }
.imp-inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin: .8rem 0; }
.imp-inline .p6-error { grid-column: 1 / -1; }
.imp-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .7rem; }
.imp-column { padding: .6rem; border: 1px solid #d5cbb8; border-radius: .7rem; }
.imp-column.is-ignored { border-style: dashed; }
.imp-column small { font-weight: 400; }
.imp-lines { margin: .6rem 0; }
.imp-line-list { display: grid; gap: .25rem; padding-left: 0; list-style: none; font-family: ui-monospace, monospace; font-size: .85rem; overflow-wrap: anywhere; }
.imp-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .5rem; margin: .8rem 0; }
.imp-summary dt { font-size: .85rem; color: #526075; }
.imp-summary dd { margin: 0; font-size: 1.5rem; font-weight: 800; }
.imp-summary dt, .imp-summary dd { overflow-wrap: anywhere; }
.imp-summary > div { padding: .55rem .7rem; border-radius: .7rem; background: #f4f0e7; }
.imp-check { display: flex !important; gap: .5rem; align-items: start; font-weight: 600 !important; }
.imp-check input { width: 1.4rem; height: 1.4rem; min-height: 0 !important; flex: none; margin: .1rem 0 0; }
.imp-households, .imp-sub { margin: 1rem 0; padding-top: .8rem; border-top: 1px solid #d5cbb8; }
.imp-row { display: grid; gap: .5rem; margin: .8rem 0; padding: .8rem; border: 1px solid #d5cbb8; border-radius: .8rem; }
.imp-row[data-state="error"] { border-left: .35rem solid #982f2f; }
.imp-row[data-state="pending"] { border-left: .35rem solid #bc681e; }
.imp-row h4 { margin: 0; overflow-wrap: anywhere; }
.imp-values { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .2rem .8rem; margin: 0; font-size: .92rem; }
.imp-values dt { color: #526075; }
.imp-values dd { margin: 0; overflow-wrap: anywhere; }
.imp-decision { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem; align-items: center; }
.imp-errors { margin: 0; color: #962d2d; }
.imp-warnings { margin: 0; color: #7a4512; }
.imp-candidates { margin: 0; }
.imp-paper { margin: 0; padding: .4rem .6rem; border-radius: .5rem; background: #fff1df; font-weight: 700; }
.imp-outcome li { font-size: .92rem; }
.imp-step :focus-visible, .imp-row :focus-visible { outline: 3px solid #d67a18; outline-offset: 3px; }
@media (max-width: 720px) {
  .imp-steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 375px) {
  .imp-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imp-steps li { font-size: .8rem; padding: .4rem; }
  .imp-inline, .imp-values { grid-template-columns: 1fr; }
  .imp-columns { grid-template-columns: 1fr; }
  .imp-row { padding: .65rem; }
  .imp-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .imp-steps li { background: #1d3150; color: #bdc8d8; }
  :root:not([data-theme="light"]) .imp-steps li[data-state="current"] { background: #f5f1e8; color: #162b4d; }
  :root:not([data-theme="light"]) .imp-steps li[data-state="done"] { background: #2a4469; color: #f5f1e8; }
  :root:not([data-theme="light"]) .imp-row, :root:not([data-theme="light"]) .imp-column, :root:not([data-theme="light"]) .imp-households, :root:not([data-theme="light"]) .imp-sub { border-color: #385176; }
  :root:not([data-theme="light"]) .imp-summary dt, :root:not([data-theme="light"]) .imp-values dt { color: #bdc8d8; }
  :root:not([data-theme="light"]) .imp-errors { color: #ffb4b4; }
  :root:not([data-theme="light"]) .imp-warnings { color: #ffd59e; }
  :root:not([data-theme="light"]) .imp-paper { background: #4a2b12; }
  :root:not([data-theme="light"]) .imp-summary > div { background: #0c1729; }
}
:root[data-theme="dark"] .imp-steps li { background: #1d3150; color: #bdc8d8; }
:root[data-theme="dark"] .imp-steps li[data-state="current"] { background: #f5f1e8; color: #162b4d; }
:root[data-theme="dark"] .imp-steps li[data-state="done"] { background: #2a4469; color: #f5f1e8; }
:root[data-theme="dark"] .imp-row, :root[data-theme="dark"] .imp-column, :root[data-theme="dark"] .imp-households, :root[data-theme="dark"] .imp-sub { border-color: #385176; }
:root[data-theme="dark"] .imp-summary dt, :root[data-theme="dark"] .imp-values dt { color: #bdc8d8; }
:root[data-theme="dark"] .imp-errors { color: #ffb4b4; }
:root[data-theme="dark"] .imp-warnings { color: #ffd59e; }
:root[data-theme="dark"] .imp-paper { background: #4a2b12; }
:root[data-theme="dark"] .imp-summary > div { background: #0c1729; }
.imp-reason { display: grid; gap: .25rem; }
.imp-reason span { font-size: .875rem; }
.imp-orphans { margin: 1rem 0; padding: .8rem; border: 1px solid #d9a35a; border-radius: .5rem; background: #fff6e8; }
.imp-orphans h3 { margin-top: 0; }
.imp-notice { color: #5b4a2a; }
.imp-hint { font-size: .9rem; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .imp-orphans { border-color: #9c6b2c; background: #2f2617; }
  :root:not([data-theme="light"]) .imp-notice { color: #f0dcb4; }
}
:root[data-theme="dark"] .imp-orphans { border-color: #9c6b2c; background: #2f2617; }
:root[data-theme="dark"] .imp-notice { color: #f0dcb4; }
.imp-guide .p6-card { margin-bottom: 1rem; }
.imp-guide h3 { margin: 1.1rem 0 .3rem; }
.imp-guide li { margin: .25rem 0; }
.imp-guide code { padding: .05rem .3rem; border-radius: .3rem; background: #f4f0e7; overflow-wrap: anywhere; }
.imp-toc { columns: 2 18rem; padding-left: 1.4rem; }
.imp-table-wrap { overflow-x: auto; }
.imp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.imp-table th, .imp-table td { padding: .45rem .55rem; border: 1px solid #d5cbb8; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.imp-table thead th { background: #ebe3d3; color: #162b4d; }
.imp-table tbody th { font-weight: 700; }
@media (max-width: 720px) {
  .imp-table { min-width: 40rem; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .imp-guide code { background: #0c1729; }
  :root:not([data-theme="light"]) .imp-table th, :root:not([data-theme="light"]) .imp-table td { border-color: #385176; }
  :root:not([data-theme="light"]) .imp-table thead th { background: #1d3150; color: #f5f1e8; }
}
:root[data-theme="dark"] .imp-guide code { background: #0c1729; }
:root[data-theme="dark"] .imp-table th, :root[data-theme="dark"] .imp-table td { border-color: #385176; }
:root[data-theme="dark"] .imp-table thead th { background: #1d3150; color: #f5f1e8; }

/* One-page quick guide (card eea585): look of the membership certificate (navy band, red/blue stripe, light panels). */
.imp-one-body { --imp-navy: #162b4d; --imp-red: #c8102e; --imp-blue: #0047a0; margin: 0; padding: 0 0 2rem; font-family: Roboto, Archivo, Inter, system-ui, sans-serif; }
.imp-sheet { width: min(100% - 2rem, 50rem); margin: 1rem auto; background: #fff; color: var(--imp-navy); border-radius: .9rem; overflow: hidden; box-shadow: 0 1rem 2.5rem rgb(22 43 77 / 14%); }
.imp-sheet:focus { outline: none; }
.imp-band { padding: 1.1rem 1.6rem; background: var(--imp-navy); color: #fff; }
.imp-band p { margin: 0; }
.imp-band-name { font-size: 1.35rem; font-weight: 700; }
.imp-band-sub { margin-top: .15rem !important; font-size: .9rem; color: #c9d4e6; }
.imp-stripe { height: .35rem; background: linear-gradient(90deg, var(--imp-red) 0 60%, var(--imp-blue) 60% 100%); }
.imp-body { padding: 1.2rem 1.6rem 1.4rem; }
.imp-body h1 { margin: 0; padding: 0; border: 0; font-size: 2rem; line-height: 1.15; color: var(--imp-navy); }
.imp-sub { margin: .25rem 0 1.1rem; color: #526075; }
.imp-big-steps { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.imp-big-step { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: .9rem; align-items: start; padding: .9rem 1rem; border: 1px solid #d5dde8; border-radius: .8rem; background: #f2f5f9; }
.imp-no { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--imp-red); color: #fff; font-size: 1.4rem; font-weight: 700; }
.imp-icon { width: 2.6rem; height: 2.6rem; color: var(--imp-blue); }
.imp-big-step h2 { margin: 0 0 .15rem; font-size: 1.35rem; color: var(--imp-navy); }
.imp-big-step p { margin: .2rem 0; font-size: 1.05rem; line-height: 1.45; }
.imp-big-step .imp-small { font-size: .9rem; color: #43536b; }
.imp-sheet a { color: var(--imp-blue); }
.imp-button { display: inline-block; margin: .25rem .4rem .15rem 0; padding: .5rem .9rem; border-radius: .55rem; background: var(--imp-red); color: #fff !important; font-weight: 700; text-decoration: none; }
.imp-button.secondary { background: var(--imp-navy); }
.imp-button:focus-visible, .imp-sheet a:focus-visible { outline: 3px solid #d67a18; outline-offset: 3px; }
.imp-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; align-items: start; }
.imp-box { padding: .75rem .9rem; border-radius: .7rem; border-left: .35rem solid; }
.imp-box h2 { margin: 0 0 .3rem; font-size: 1.05rem; }
.imp-box ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; line-height: 1.4; }
.imp-box p { margin: 0; font-size: .9rem; line-height: 1.4; }
.imp-box-need { background: #e9f3ec; border-color: #196743; }
.imp-box-warn { background: #fdecec; border-color: var(--imp-red); }
.imp-box-help { background: #e8f0fb; border-color: var(--imp-blue); }
.imp-more { margin: .9rem 0 0; font-size: .9rem; }
.imp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .8rem 1.6rem; background: var(--imp-navy); color: #dfe7f3; font-size: .8rem; }
@media (max-width: 720px) {
  .imp-boxes { grid-template-columns: 1fr; }
  .imp-body { padding: 1rem; }
  .imp-body h1 { font-size: 1.6rem; }
  .imp-big-step { grid-template-columns: auto minmax(0, 1fr); }
  .imp-big-step .imp-icon { display: none; }
  .imp-band, .imp-foot { padding-left: 1rem; padding-right: 1rem; }
}
@media print {
  @page { size: A4; margin: 0; }
  .imp-one-body { background: #fff; padding: 0; }
  .imp-sheet { width: 210mm; height: 296mm; margin: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
  .imp-band, .imp-stripe, .imp-foot { flex: none; }
  .imp-body { flex: 1; min-height: 0; padding: 6mm 14mm 4mm; }
  .imp-band { padding: 6mm 14mm; }
  .imp-foot { padding: 4mm 14mm; }
  .imp-body h1 { border: 0; padding: 0; font-size: 1.7rem; }
  .imp-sub { margin-bottom: .6rem; }
  .imp-big-steps { gap: .5rem; }
  .imp-big-step { padding: .5rem .9rem; }
  .imp-boxes { align-items: start; }
  .imp-big-step h2 { font-size: 1.3rem; }
  .imp-big-step p { font-size: 1rem; line-height: 1.38; }
  .imp-big-step .imp-small { font-size: .88rem; }
  .imp-no, .imp-icon { width: 2.2rem; height: 2.2rem; font-size: 1.2rem; }
  .imp-boxes { margin-top: .7rem; gap: .6rem; }
  .imp-box { padding: .5rem .7rem; }
  .imp-box ul, .imp-box p { font-size: .85rem; line-height: 1.35; }
  .imp-more { margin-top: .5rem; font-size: .8rem; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
