/* ==========================================================================
   Unboxkey — article.css (blog articles; load after site.css)
   Layout   .article-hero (.breadcrumbs, .article-kicker, h1, .article-meta, .lede)
            .article-layout > .article-aside (.toc) + article.article-body.prose
   Blocks   .callout (--warn | --ok) · .error-quote (verbatim message + source)
            .fix-list (numbered fixes) · .offer (Our service card) · .sources · .related
   ========================================================================== */

.article-hero { padding-block: 24px 8px; }
@media (min-width: 900px) { .article-hero { padding-block: 32px 12px; } }
.article-hero .container { display: grid; gap: 16px; }
.article-head { display: grid; gap: 14px; max-width: 800px; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 8px; }
.article-head h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--grey); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; }
.article-head .lede { font-size: clamp(18px, 1.8vw, 20px); }

.article-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); padding-block: 16px clamp(48px, 7vw, 80px); align-items: start; }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 740px) 300px; justify-content: space-between; gap: 56px; padding-top: 24px; }
  .article-aside { order: 2; position: sticky; top: calc(var(--header-h) + 24px); }
}
.article-aside { display: grid; gap: 16px; }

/* Table of contents */
.toc { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); }
.toc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none;
  font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.toc[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.toc ol { list-style: none; margin: 0; padding: 0 10px 12px; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; padding: 7px 8px; border-radius: 8px;
  font-size: 14.5px; line-height: 1.4; color: var(--ink-2); text-decoration: none;
}
.toc a::before { content: counter(toc); font-weight: 700; color: var(--grey); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--soft); color: var(--ink); }
.toc a[aria-current="true"] { background: var(--yellow-tint); color: var(--ink); }

/* Body */
.article-body { min-width: 0; }
.article-body > h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.article-body img, .article-body figure img { border-radius: var(--r-card); border: 1px solid var(--rule); }
.article-body figcaption { margin-top: 8px; font-size: 14px; color: var(--grey); }
.article-body .table-wrap { margin-block: 1.2em; }
.article-body .table { font-size: 15px; }

.callout { display: grid; gap: 4px; padding: 16px 18px; background: var(--info-tint); border-left: 4px solid var(--info); border-radius: var(--r-ctl); font-size: 16px; line-height: 1.55; }
.callout > strong:first-child { color: var(--ink); }
.callout--warn { background: var(--warn-tint); border-left-color: var(--warn); }
.callout--ok { background: var(--ok-tint); border-left-color: var(--ok); }

.error-quote { margin: 1.4em 0; padding: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); overflow: hidden; }
.error-quote blockquote {
  margin: 0; padding: 18px 20px; font-family: var(--f-body); font-size: 17px; line-height: 1.5; color: var(--ink);
  border-left: 4px solid var(--red); background: #fffaf9;
}
.error-quote figcaption { padding: 10px 20px; font-size: 13.5px; color: var(--grey); border-top: 1px solid var(--rule); }
.error-quote figcaption a { color: var(--grey); }

.fix-list { list-style: none; padding: 0 !important; counter-reset: fix; display: grid; gap: 12px; }
.fix-list > li { counter-increment: fix; position: relative; padding: 16px 18px 16px 58px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); margin: 0 !important; }
.fix-list > li::before {
  content: counter(fix); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 14px/1 var(--f-head);
}
.fix-list > li > strong:first-child { display: block; color: var(--ink); margin-bottom: 2px; }

/* Our service offer card */
.offer {
  display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin: 2em 0;
  padding: clamp(18px, 3vw, 28px); background: var(--white); border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-md);
}
@media (min-width: 640px) { .offer { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.offer .tile-card { margin: 0; }
.offer-body { display: grid; gap: 10px; }
.offer-title { font-family: var(--f-head); font-weight: 800; font-stretch: 106%; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); margin: 0 !important; }
.offer-text { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0 !important; }
.offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 0 !important; }
.offer-price .price { font-size: 28px; }
.offer-price small { font-size: 14px; color: var(--grey); }
.offer-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--grey); margin: 0 !important; padding: 0 !important; list-style: none; }
.offer-facts li { margin: 0 !important; }
.offer-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.offer-ctas .btn { text-decoration: none; }
@media (max-width: 479px) { .offer-ctas .btn { flex: 1 1 100%; } }
.offer-ctas .btn-primary, .offer-ctas .btn-primary:hover { color: #fff; }
.offer-ctas .btn-secondary, .offer-ctas .btn-secondary:hover { color: var(--ink); }
.offer-note { font-size: 13.5px; color: var(--grey); margin: 0 !important; }

/* FAQ inside an article */
.article-body .accordion { margin-top: 1em; }
.article-body .acc-q { font-size: 17px; }
.article-body .acc-a { font-size: 16.5px; }

/* Sources */
.sources { list-style: decimal; font-size: 14.5px; line-height: 1.5; padding-left: 1.3em !important; color: var(--ink-2); }
.sources li + li { margin-top: .5em; }
.sources a { word-break: break-word; }
.sources .checked { color: var(--grey); }

/* Related articles */
.related { border-top: 1px solid var(--rule); padding-block: clamp(32px, 5vw, 56px); }
.related-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
@media (min-width: 720px) { .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related-card {
  display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card);
  text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .2s, transform .2s var(--ease);
}
.related-card:hover { border-color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-card h3 { font-size: 17px; line-height: 1.3; }
.related-card p { font-size: 14.5px; color: var(--grey); line-height: 1.5; }
.related-card span { font-size: 13px; font-weight: 600; color: var(--red); }

@media print { .article-aside, .offer-ctas, .related { display: none !important; } }
