/* /nabidka/ - proposal document, same tokens as ep.css (DESIGN.md §9) */
.doc-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.doc-head .wrap { min-height: 64px; display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-block: 14px; }
.doc-head .logo { display: block; height: 28px; width: auto; }
@media (min-width: 1280px) { .doc-head .logo { height: 32px; } }
.doc-head .dl { color: var(--ink-2); font-size: 14px; line-height: 20px; }
.doc-head .to { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.doc { padding-block: 40px 72px; }
.doc .wrap { display: block; }
@media (min-width: 1280px) {
  .doc .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
}
.rail { display: none; }
@media (min-width: 1280px) {
  .rail { display: block; position: sticky; top: 24px; font-size: 14px; line-height: 20px; }
  .rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .rail li a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; padding: 6px 0 6px 14px; color: var(--ink-2); margin-left: -1px; border-left: 2px solid transparent; }
  .rail li a:hover { color: var(--navy); text-decoration: none; border-left-color: var(--line); }
  .rail li a .no { font: 800 14px/20px var(--ff-head); color: var(--blue-ink); font-variant-numeric: lining-nums; }
}
.toc-inline { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.toc-inline li { border-bottom: 1px solid var(--line); }
.toc-inline a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 8px 0; color: var(--ink); }
.toc-inline a:hover { color: var(--navy); }
.toc-inline .no { font: 800 15px/22px var(--ff-head); color: var(--blue-ink); font-variant-numeric: lining-nums; }
@media (min-width: 1280px) { .toc-inline { display: none; } }

.read { max-width: 880px; }
.read > * { max-width: 720px; }
.read > .wide { max-width: 880px; }
:where(.read) :where(p, li) { font-size: 18px; line-height: 29px; }
:where(.read) :where(p) { margin: 0 0 16px; }
.doc h1 { font-size: 30px; line-height: 38px; margin: 0 0 16px; }
@media (min-width: 1280px) { .doc h1 { font-size: 40px; line-height: 48px; } }
.dated { color: var(--ink-2); font-size: 15px !important; line-height: 22px !important; }
.keyfacts { margin: 24px 0 32px; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); max-width: 720px; }
@media (min-width: 768px) { .keyfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; } }
.keyfacts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.keyfacts dt { font: 700 12px/16px var(--ff-head); letter-spacing: .5px; text-transform: uppercase; color: var(--ink-2); }
.keyfacts dd { margin: 4px 0 0; font-weight: 600; font-size: 17px; line-height: 24px; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.example { margin: 8px 0 0; }
.example .intro { margin-bottom: 12px; }
.example .panel { margin-top: 12px; }

.sec { margin-top: 64px; scroll-margin-top: 24px; }
.sec > h2 { font-size: 22px; line-height: 30px; margin: 0 0 20px; position: relative; }
@media (min-width: 1280px) { .sec > h2 { font-size: 26px; line-height: 34px; } }
.sec > h2 .no { display: inline-block; font-family: var(--ff-head); font-weight: 800; color: var(--blue-ink); margin-right: 10px; }
.tbl.price .piece { display: table-cell; }
.tbl.price .cov { display: table-cell; }
@media (max-width: 767.98px) {
  .tbl.price thead tr, .tbl.price tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; border-bottom: 1px solid var(--line); }
  .tbl.price thead th:nth-child(2) { display: none; }
  .tbl.price thead th { padding: 10px 8px; }
  .tbl.price td { border: 0; padding: 0 8px; }
  .tbl.price td.piece { grid-column: 1; grid-row: 1; padding-top: 12px; display: block; }
  .tbl.price td.cov { grid-column: 1; grid-row: 2; padding-bottom: 12px; display: block; }
  .tbl.price td.num { grid-column: 2; grid-row: 1 / span 2; padding-top: 12px; }
  .tbl.price tr.total { border-top: 2px solid var(--navy); border-bottom: 0; }
  .tbl.price tr.total td { border: 0; padding-block: 12px; }
  .tbl.price tr.total td:nth-child(2) { display: none; }
}
@media (min-width: 768px) {
  .sec.num { padding-left: 48px; }
  .sec.num > h2 .no { position: absolute; left: -48px; top: 0; margin: 0; }
}
.sec h3 { font-size: 18px; line-height: 26px; margin: 32px 0 12px; color: var(--navy); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; margin: 8px 0 16px; }
.tbl th { text-align: left; background: var(--soft); padding: 10px 12px; font: 700 12px/16px var(--ff-head); text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); vertical-align: bottom; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl .num, .tbl th.num { text-align: right; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.tbl td.num { font-weight: 600; color: var(--navy); }
.tbl tr.total td { border-top: 2px solid var(--navy); border-bottom: 0; font-weight: 700; color: var(--navy); }
.tbl .piece { font-weight: 600; color: var(--navy); display: block; }
.tbl .cov { color: var(--ink-2); font-size: 15px; line-height: 22px; display: block; }
.tbl.cover td:first-child { font-weight: 600; color: var(--navy); }
.tbl.cover a { font-weight: 600; white-space: nowrap; }
@media (max-width: 767.98px) {
  .tbl.cover thead { display: none; }
  .tbl.cover tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .tbl.cover td { display: block; border: 0; padding: 2px 0; }
  .tbl.stack2 thead th:nth-child(2) { display: none; }
  .tbl.stack2 td:first-child { padding-left: 0; }
  .tbl.etapa3 thead { display: none; }
  .tbl.etapa3 tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); padding: 12px 0; gap: 4px 12px; }
  .tbl.etapa3 td { border: 0; padding: 0; }
  .tbl.etapa3 td:nth-child(3) { grid-column: 1 / -1; color: var(--ink-2); font-size: 15px; line-height: 22px; }
  .tbl.etapa3 td:nth-child(3):empty { display: none; }
  .tbl td, .tbl th { padding-inline: 8px; }
}
.tbl.etapa3 td:first-child { font-weight: 600; color: var(--navy); }
.tbl.etapa3 td:nth-child(3) { color: var(--ink-2); font-size: 15px; line-height: 22px; }
.note { color: var(--ink-2); font-size: 16px !important; line-height: 24px !important; }

/* schematic */
.schema { margin: 24px 0 8px; }
.schema svg { display: block; width: 100%; height: auto; }
.schema .s-d { display: none; }
@media (min-width: 768px) { .schema .s-d { display: block; } .schema .s-m { display: none; } }
.schema text { font-family: var(--ff-head); font-weight: 700; font-size: 12px; letter-spacing: .5px; fill: var(--navy); text-transform: uppercase; }
.schema .hub text { fill: #fff; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.schema .box { fill: #fff; stroke: var(--navy); stroke-width: 1; }
.schema .box.opt { stroke: var(--blue-ink); stroke-dasharray: 6 4; }
.schema .box.later { stroke: var(--grey); stroke-dasharray: 1.5 3; }
.schema .opt text { fill: var(--blue-deep); }
.schema .later text { fill: var(--ink-2); }
.schema .ln { stroke: var(--navy); stroke-width: 1.5; fill: none; }
.schema .ln.opt { stroke: var(--blue-ink); stroke-dasharray: 6 4; }
.schema .ln.later { stroke: var(--grey); stroke-dasharray: 1.5 3; }
.s-key { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px !important; line-height: 20px; color: var(--ink-2); }
.s-key li { display: flex; align-items: center; gap: 8px; font-size: 14px !important; line-height: 20px !important; }
.s-key i { width: 28px; height: 0; border-top: 2px solid var(--navy); display: inline-block; }
.s-key i.opt { border-top: 2px dashed var(--blue-ink); }
.s-key i.later { border-top: 2px dotted var(--grey); }

/* week chart */
.weeks { margin: 24px 0 8px; position: relative; }
.weeks .hd, .weeks .wr { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .weeks .hd, .weeks .wr { grid-template-columns: 260px minmax(0, 1fr); column-gap: 16px; } }
.weeks .cols8 { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); position: relative; }
.weeks .hd .cols8 span { font: 700 12px/16px var(--ff-head); color: var(--ink-2); text-align: center; letter-spacing: .5px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-variant-numeric: lining-nums; }
.weeks .hd .lb { display: none; }
@media (min-width: 768px) { .weeks .hd .lb { display: block; } }
.weeks .wr { padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.weeks .wr .lb { font-size: 15px; line-height: 21px; color: var(--ink); margin-bottom: 6px; }
@media (min-width: 768px) { .weeks .wr .lb { margin: 0; } }
.weeks .bar { height: 12px; background: var(--blue); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); margin-inline: 2px; }
.weeks .gridlines { position: absolute; inset: 0; pointer-events: none; }
.weeks .ms { position: relative; }
.weeks .mk { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--navy); margin-left: -1px; }
.weeks .mlabels { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .weeks .mlabels { grid-template-columns: 260px minmax(0, 1fr); column-gap: 16px; } }
.weeks .mlabels .cols8 { height: 44px; }
.weeks .mlabels .ml { position: absolute; top: 6px; font: 700 12px/16px var(--ff-head); letter-spacing: .5px; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.weeks .mlabels .ml.r { transform: translateX(-100%); text-align: right; }
.weeks .track { position: relative; }
.weeks .body { position: relative; }
.weeks .mk-layer { display: none; position: absolute; top: 0; bottom: 0; right: 0; pointer-events: none; }
@media (min-width: 768px) { .weeks .mk-layer { display: block; left: 276px; } }
.weeks .mlabels .cols8 { height: 52px; }
.weeks .mlabels .ml.r { top: 28px; }
@media (max-width: 1279.98px) {
  .weeks .mlabels .cols8 { display: block; height: auto; padding-top: 8px; }
  .weeks .mlabels .ml, .weeks .mlabels .ml.r { position: static; transform: none; display: flex; gap: 8px; align-items: center; white-space: normal; margin-top: 4px; text-align: left; }
  .weeks .mlabels .ml::before { content: ""; width: 2px; height: 14px; background: var(--navy); flex: none; }
}
.weeks .track .mk { top: -10px; bottom: -11px; }

/* references */
.refs { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--line); }
.refs li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px !important; line-height: 24px !important; }
@media (min-width: 768px) { .refs li { grid-template-columns: 200px minmax(0, 1fr); } }
.refs a { font-weight: 600; }
.refs strong { color: var(--navy); }

/* close */
.close { border-top: 1px solid var(--line); background: var(--soft); }
.close .wrap { padding-block: 40px; display: grid; gap: 16px 40px; }
@media (min-width: 1280px) { .close .wrap { grid-template-columns: 220px minmax(0, 720px); } }
.weeks .mk-layer .mk:last-child { margin-left: -2px; }
.close h2 { margin: 0; }
.close p { margin: 0 0 12px; font-size: 18px; line-height: 29px; max-width: 720px; }
.close .contact { font-size: 18px; line-height: 29px; display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.close .contact a { font-weight: 600; }
.close .who2 { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--ink); }
.close .ln { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--grey); }
.close .ln:hover { color: #0a66c2; }
.close .ln svg { width: 18px; height: 18px; }
