/* InstantBanners article layout + sidebar (article-side.php). Posts, help pages, buying guides, knowledge base.
   Theme tokens from style.css. Desktop 1024px+: article + 320px sidebar; below that the sidebar stacks under the text. */

/* ---------------------------------------------------------------- topic chips (help pages) */
.art-chips { margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent); }
.art-chips::-webkit-scrollbar { display: none; }
.art-chips ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0 24px 2px 0; width: max-content; }
.art-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.art-chips a:hover { border-color: var(--ink); color: var(--ink); }
.art-chips a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- grid */
.art { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 4px 0 56px; }
@media (min-width: 1024px) {
  .art { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: stretch; }
  .art__main { align-self: start; }
}
@media (min-width: 1200px) { .art { gap: 56px; } }
.art__main { min-width: 0; }

/* ---------------------------------------------------------------- article column */
.art__head { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.art__head .eyebrow a { color: inherit; }
.art__head h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; max-width: 22ch; text-wrap: balance; }
.art__sum { font-size: 19px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 14px; max-width: 60ch; }
.art__meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; font-size: 14px; color: var(--muted); }
.art__meta > span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); margin: 0 10px; vertical-align: middle; }
.art__by { color: var(--ink); font-weight: 700; }
.art__head.ibm-has { position: relative; padding-right: 190px; min-height: 150px; }
.art__fig { margin: 0 0 28px; }
.art__fig img { width: 100%; height: auto; max-height: 440px; object-fit: cover; border-radius: var(--r-card); }

.art__body { max-width: 70ch; font-size: 17px; line-height: 1.72; color: var(--ink-soft); }
.art__body > *:first-child { margin-top: 0; }
.art__body h2 { font-size: clamp(23px, 2.2vw, 28px); line-height: 1.2; margin: 1.7em 0 .55em; position: relative; scroll-margin-top: 24px; }
.art__body h3 { font-size: 20px; line-height: 1.3; margin: 1.4em 0 .45em; scroll-margin-top: 24px; }
.art__body p, .art__body ul, .art__body ol { margin: 0 0 1.05em; }
.art__body li { margin-bottom: .4em; }
.art__body li::marker { color: var(--brand); }
.art__body img { border-radius: 10px; height: auto; }
.art__body blockquote { margin: 0 0 1.2em; padding: 14px 18px; border-left: 4px solid var(--marker); background: #fff; border-radius: 0 10px 10px 0; }

/* phones / tablets: contents list above the text */
.art-tocm { margin: 0 0 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.art-tocm summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.art-tocm summary::-webkit-details-marker { display: none; }
.art-tocm summary span { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: auto; }
.art-tocm summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s var(--ease); flex-shrink: 0; }
.art-tocm[open] summary::after { transform: rotate(-135deg); }
.art-tocm ol { margin: 0; padding: 0 16px 14px 36px; font-size: 15px; }
.art-tocm li { margin: 0 0 6px; }
.art-tocm a { color: var(--ink-soft); }
@media (min-width: 1024px) { .art-tocm { display: none; } }

/* ---------------------------------------------------------------- sidebar */
.art__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.art__flow, .art__stick { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) {
  .art__side { padding-top: 4px; }
  .art__stick { position: sticky; top: 16px; }
  .admin-bar .art__stick { top: 48px; }
}
@media (max-width: 1023px) {
  .art__side { display: block; columns: 2 300px; column-gap: 16px; }
  .art__flow, .art__stick { display: contents; }
  .art__side .art-card { break-inside: avoid; margin: 0 0 16px; }
  .art-toc { display: none !important; }
}
.art-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.art-h { display: block; margin: 0 0 12px; font: 700 16px/1.25 var(--f-display); letter-spacing: -.01em; color: var(--ink); }

/* search */
.art-search .art-h { font-size: 14px; margin-bottom: 8px; }
.art-search__row { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--paper); overflow: hidden; }
.art-search__row:focus-within { border-color: var(--ink); background: #fff; }
.art-search input[type="search"] { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; padding: 0 12px; font-size: 15px; outline: none; }
.art-search button { width: 46px; height: 44px; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.art-search button:hover { background: var(--brand); }
.art-search button svg { width: 20px; height: 20px; }

/* get a price + mascot: mascot stands on the card's bottom edge, right of the text */
.art-price { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 18px 18px 0; position: relative; overflow: hidden; background: linear-gradient(160deg, #fff 55%, var(--brand-soft)); }
.art-price__txt { grid-column: 1; min-width: 0; }
.art-price__txt p { font-size: 14px; line-height: 1.45; margin: 0 0 12px; color: var(--ink-soft); }
.art-facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.35; }
.art-facts li { display: flex; gap: 8px; align-items: flex-start; }
.art-facts svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand); }
.art-price__m { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: flex; align-items: flex-end; justify-content: center; width: 116px; height: 100%; min-height: 190px; }
.art-price__m img { width: auto !important; height: auto !important; max-width: 116px; max-height: 196px; object-fit: contain; object-position: bottom; }
.art-price__btns { grid-column: 1; display: grid; gap: 8px; padding-bottom: 16px; }
.art-wa { background: var(--wa); border-color: var(--wa); color: #fff; gap: 8px; }
.art-wa:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }
.art-wa svg { width: 18px; height: 18px; }
.art-tel { font-size: 13px; color: var(--muted); text-align: center; }
.art-tel b { color: var(--ink); }

/* products: 2 x 2 mini cards */
.artp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.artp { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.artp:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); color: inherit; }
.artp__img { display: block; aspect-ratio: 1 / 1; background: var(--tint); overflow: hidden; }
.artp__img img, .artp__img svg { width: 100%; height: 100%; object-fit: cover; }
.artp__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 8px 10px 2px; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink); min-height: calc(2 * 1.3em + 10px); }
.artp__p { padding: 2px 10px 10px; margin-top: auto; font-size: 12px; color: var(--muted); }
.artp__p b { font-size: 15px; color: var(--brand-dark); }

/* launch offer */
.art-offer { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; border-color: var(--marker); background: #fffbe6; color: var(--ink); }
.art-offer:hover { color: var(--ink); box-shadow: var(--shadow-md); }
.art-offer__img { display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #fff; }
.art-offer__img img { width: 100%; height: 100%; object-fit: cover; }
.art-offer__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.art-offer__tag { align-self: flex-start; font: 700 11px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--marker); padding: 5px 7px; border-radius: 5px; margin-bottom: 3px; }
.art-offer__body > b { font: 700 15px/1.25 var(--f-display); }
.art-offer__p { font-size: 13px; color: var(--ink-soft); }
.art-offer__p b { font-size: 16px; color: var(--brand-dark); }
.art-offer__go { font-size: 13px; font-weight: 700; color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }

/* contents (sticky, current section lit by article.js) */
.art-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-left: 2px solid var(--line); max-height: calc(100vh - 360px); min-height: 120px; overflow-y: auto; scrollbar-width: thin; }
.art-toc li { counter-increment: t; }
.art-toc a { display: flex; gap: 8px; padding: 6px 8px 6px 12px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.art-toc a::before { content: counter(t, decimal-leading-zero); font: 700 11px/1.9 var(--f-mono); color: var(--muted); }
.art-toc a:hover { color: var(--ink); background: var(--paper); }
.art-toc a.is-on { border-left-color: var(--brand); color: var(--ink); font-weight: 700; background: var(--brand-soft); }
.art-toc a.is-on::before { color: var(--brand-dark); }

/* guides */
.art-guides ul { list-style: none; margin: 0; padding: 0; }
.art-guides li + li { border-top: 1px solid var(--line); }
.art-guides li a { display: block; padding: 9px 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.art-guides li a:hover { color: var(--brand-dark); }
.art-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }

[data-art-opt][hidden] { display: none !important; }
@media (max-width: 640px) {
  .art__head.ibm-has { padding-right: 120px; min-height: 0; }
  .art__body { font-size: 16.5px; }
}

/* Floating Quote + WhatsApp buttons vs the sidebar (2026-09-30). This file loads on article pages only.
   1024-1535px: the side margin is narrower than the labelled pills (WhatsApp 144px, Quote 121px + 16px edge), so
   they become the same icon-only 52px circles phones get (labels stay as aria-label). Up to 1320px the circles
   (16 + 52 + 16 = 84px from the edge) still reach the sidebar, so the article grid gets that much right-hand room:
   sidebar edge = max(24px, (100vw - 1200px) / 2 + 24px) -> extra = 60px - (100vw - 1200px) / 2, between 0 and 60px. */
@media (min-width: 1024px) and (max-width: 1535px) {
  html body .wa-float, html body .ibqc-btn { width: 52px; padding: 0; gap: 0; justify-content: center; }
  html body .wa-float .lbl, html body .ibqc-btn .lbl { display: none; }
  html body .ibqc-btn .ibqc-av { margin: 0; width: 44px; height: 44px; }
  .art { padding-right: clamp(0px, calc(60px - (100vw - 1200px) / 2), 60px); }
}
