/* Article blocks (app/services/articles.py): the comparison of two options and the key-figure tiles. Shared by the
   shop's article page and the admin's "as it reads" preview, so it carries its own colours. */
.abcmp,.abfigs{--ab-ink:#1B2420;--ab-ink2:#3C4740;--ab-muted:#636D67;--ab-line:#DCE0DB;--ab-win:#E4F2E3;
  --ab-mark:#2E6B3F;--ab-fill:#4fb848;--ab-off:#B9C0BA;--ab-bg:#fff}
.abcmp{margin:0 0 26px;padding-top:26px;max-width:none;container-type:inline-size;--ab-grey:#EEF0ED}
/* the comparison as one table, criterion | ours | theirs (owner, 2026-11-24, marketing/dizainas/palyginimas-3/a.html):
   each criterion once; our column on a watercolour stroke (cmp-col.webp: the approved stroke with a strip taken out of
   its middle, so its straight left edge stays and its own ragged right edge ends before the other column), grey: the
   same brown with zero saturation (owner, 2026-11-24). The stroke's solid paint is 22–78 % across and 16–80 % down its
   image; the box below lays that over our column, which is 30–65 % of the table. */
.c3wrap{position:relative;isolation:isolate;margin-bottom:44px}
.abcmp.ours .c3wrap::after{content:"";position:absolute;z-index:-1;top:calc(-25% + 6px);bottom:calc(-31.25% - 13px);
  left:calc(16.25% - 20px);width:calc(62.5% + 22px);background:url(/static/img/akvarele/cmp-col.webp) center/100% 100% no-repeat;
  pointer-events:none}
.c3{width:100%;border-collapse:collapse;table-layout:fixed}
.c3 col{width:35%}
.c3 col.c3k{width:30%}
/* both headings sit on the bottom line: the names share it, and a two-line name on the other side lines up with our
   tag and our name (owner, 2026-11-24: "you have 2 rows on each column header - why they dont match as 2 rows?") */
.c3 thead th{text-align:left;font-weight:400;font-size:17px;line-height:1.35;color:var(--ab-ink);padding:2px 12px 12px;vertical-align:bottom}
.c3 thead .ab-name{font-weight:500}
.c3 thead .ab-tag+.ab-name{display:block;margin-top:4px}
/* the heading row on a faint dark band over the page and the stroke, so it reads as the heading (owner, 2026-11-24) */
.c3 thead tr>*{background:rgba(31,42,36,.05);padding-top:12px}
.c3 tbody th{text-align:left;font-weight:400;font-size:13.5px;line-height:1.35;color:var(--ab-muted);padding:11px 12px 11px 0;vertical-align:top}
.c3 tbody td{font-size:18px;line-height:1.3;color:var(--ab-ink2);padding:9px 12px;vertical-align:top}
.c3 tbody td.w{color:var(--ab-ink)}
.c3 td.nw{white-space:nowrap}   /* a short value never breaks ("Rw 44–48 / dB") */
.c3 tbody tr{border-top:1px solid var(--ab-line)}
.c3 tbody tr:last-child{border-bottom:1px solid var(--ab-line)}
.c3 .c-1{padding-left:18px}
/* the tick in front of the value, inline like a character (owner, 2026-11-24) */
.c3 td .ab-ic{vertical-align:-2px;margin-right:6px}
.ab-name{font-weight:500}
.ab-tag{display:inline-block;vertical-align:2px;font-size:12px;line-height:1;padding:4px 8px;border-radius:999px;
  background:var(--ab-fill);color:#fff;font-weight:500}
.abcmp.br-fermacell .ab-tag{background:#E8740C}      /* the brand's own colour on its tag: fermacell orange (owner) */
.ab-n{font-size:10px;margin-left:2px;color:var(--ab-muted)}
.ab-ic{width:18px;height:18px;flex:none;color:var(--ab-fill)}   /* a plain green tick (owner, 2026-11-23: "no need for circles") */
.ab-eq{font-size:11.5px;padding:2px 6px;border-radius:999px;background:var(--ab-grey);color:var(--ab-muted);margin-left:6px}
.ab-notes{margin-top:12px;font-size:12.5px;line-height:1.45;color:var(--ab-muted)}
.ab-nh{margin-bottom:4px;color:var(--ab-ink2)}
.ab-notes ol{margin:0;padding-left:20px}
.ab-notes li{margin:2px 0}
/* phone: the same three columns, smaller; a long value wraps, a short one stays whole */
@container (max-width:560px){
  .c3 thead th{font-size:14.5px;padding:4px 6px 10px}
  .c3 tbody th{font-size:12.5px;padding:9px 6px 9px 0}
  .c3 tbody td{font-size:14.5px;padding:8px 6px}
  .c3 .c-1{padding-left:10px}
  .c3 td .ab-ic{width:15px;height:15px;margin-right:4px}
}
/* a fermacell article's strokes are grey: the same brown with zero saturation (owner, 2026-11-24); a STEICO article keeps
   the light brown of wood fibre ("since its steico, not fermacell - lets use steico wood wool color") */
.br-fermacell .abfigs::before,.abcmp.br-fermacell .c3wrap::after{filter:grayscale(1)}
/* key figures on one watercolour stroke per row (owner, 2026-11-23, design 1b): the figures share the row equally with
   thin dividers ("equal amount of weight visually"); the stroke overshoots the figures above and below ("maybe we
   should overshoot with bg, top and bottom") and stays inside the article column. On a phone the figures stack on a
   tall stroke painted for it (not the wide one squeezed). Four figures sit 2 × 2. tools/fit_figures.py checks both. */
.abfigs{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));
  margin:84px 0 88px;padding:34px 8%;max-width:none}
.abfigs::before{content:"";position:absolute;inset:-44% -1%;z-index:-1;background:var(--wash) center/100% 100% no-repeat;pointer-events:none}
.abfigs.n1{--n:1}.abfigs.n2{--n:2}.abfigs.n4{--n:2;row-gap:22px}
.abfigs.n4::before{inset:-30% -1%}
.ab-fig{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;padding:2px 8px}   /* numbers in one line even when a label wraps (owner) */
.abfigs:not(.n4) .ab-fig+.ab-fig,.abfigs.n4 .ab-fig:nth-child(even){box-shadow:inset 1px 0 0 var(--ab-div)}
.ab-figv{display:block;white-space:nowrap;font-size:28px;line-height:1.08;font-weight:500;color:#1F3A2B;letter-spacing:-.01em}
.ab-figl{display:block;margin-top:6px;font-size:13px;line-height:1.3;color:var(--ab-ink2);text-wrap:balance;max-width:30ch;margin-inline:auto}   /* a label explains the value in up to two even lines (owner, 2026-11-24) */
.abfigs{--ab-div:rgba(31,58,43,.18)}
.abfigs.deep{--ab-div:rgba(255,255,255,.22)}
.abfigs.deep .ab-figv{color:#fff}
.abfigs.deep .ab-figl{color:rgba(255,255,255,.9)}
@media (max-width:560px){
  .abfigs{grid-template-columns:1fr;padding:8px 12%;margin:130px 0 134px;row-gap:0}
  .abfigs::before,.abfigs.n4::before{inset:-54% -2%;background-image:var(--wash-tall)}
  .ab-fig{padding:14px 0}
  .ab-figl{max-width:180px}                         /* a long label wraps inside the stroke */
  /* a short centred line between stacked figures, 24 px (owner, 2026-11-23: "very narrow (20-30 pixels)") */
  .abfigs .ab-fig,.abfigs:not(.n4) .ab-fig+.ab-fig,.abfigs.n4 .ab-fig:nth-child(even){box-shadow:none;position:relative}
  .abfigs .ab-fig+.ab-fig::before{content:"";position:absolute;top:0;left:50%;width:24px;height:1px;margin-left:-12px;background:var(--ab-div)}
}
@media (max-width:560px){.abfigs{grid-template-columns:minmax(0,300px);justify-content:center;gap:26px}}
