/* p-article.css -- the article page standard on halal-solution.com's guides (26 Oct 2026).
   aeo-toolchain/article-kit/STANDARD.md; Dan, 17 Oct 2026: "include the on this page at the side ... in each of its
   respective designs". Loaded only by the article shell (pages_reference.article_template), after p-reference.css
   and the kit's article-kit.css, so it skins the kit in the Miniatur look: mono labels, blue-ink numbers, the 1.5px
   ink rule, white cards with an 18px radius. tools/article_kit_apply.py writes the lists and table boxes. */

.pg-article {
  --ak-ink: var(--ink); --ak-muted: var(--mute); --ak-rule: var(--line); --ak-accent: var(--blue);
  --ak-surface: var(--white); --ak-tint: var(--paper); --ak-zebra: transparent; --ak-radius: 18px;
  --ak-top: 96px; --ak-ui-font: var(--f);
}

/* ---- wide screens: the left column is "On this page" (sticky; it scrolls on its own when taller than the screen) */
@media (min-width: 1181px) {
  .art-grid { grid-template-columns: 236px minmax(0, 1fr) 236px; }
  .art-toc { max-height: calc(100vh - var(--nav) - 48px); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; padding-right: 4px; }
  .pg-article .ak-toc-m { display: none; }
}
.art-toc .art-meta-in { border-top: 0; padding-top: 0; }
/* the label stays at the top of the column while the list scrolls under it; its 1.5px ink rule fills with blue as the
   guide is read (article-kit.js sets --ak-progress on the list, 0..1) */
.art-toc .ak-toc__label { position: sticky; top: 0; z-index: 1; margin: 0; padding: 14px 0 12px; font-family: var(--mono);
  font-size: 12px; font-weight: 500; letter-spacing: .12em; line-height: 1.3; color: var(--mute);
  background: linear-gradient(var(--blue), var(--blue)) 0 0 / calc(var(--ak-progress, 0) * 100%) 2px no-repeat,
              linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 1.5px no-repeat, var(--paper); }
.pg-article .ak-toc__list { border-left: 1px solid var(--line); }
.pg-article .ak-toc__list a { gap: 10px; padding: 8px 0 8px 14px; font-size: 14.5px; line-height: 1.35; color: var(--ink-2);
  font-stretch: 94%; text-decoration: none; }
/* the folded list sits inside .art-body, whose own numbered-list style (counter, rules, padding) must not apply */
.art-body .ak-toc__list { counter-reset: ak; }
.art-body .ak-toc__list > li { padding: 0; border: 0; counter-increment: none; }
.art-body .ak-toc__list > li::before { content: none; }
.pg-article .ak-toc__list a:hover { color: var(--ink); }
.pg-article .ak-toc__list a[aria-current="true"] { color: var(--ink); border-left-color: var(--blue); font-weight: 620; }
.pg-article .ak-toc--num .ak-toc__list a::before { min-width: 1.9em; padding-top: 2px; font-family: var(--mono); font-size: 12px;
  font-weight: 500; font-stretch: 100%; line-height: 1.35; color: var(--blue-ink); opacity: 1; }
.pg-article .ak-toc__list a:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; border-radius: 4px; }
.art-toc .ak-toc__foot { margin: 14px 0 0; }
.art-toc .ak-toc__top { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-ink); text-decoration: none; }
.art-toc .ak-toc__top::after { content: ' \2191'; }
.art-toc .ak-toc__top:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* the one contact action under the list: the site's WhatsApp button (its pre-typed message names the website) */
.art-ask { margin-top: 24px; padding: 16px 16px 17px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.art-ask-k { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); }
.art-ask-t { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.art-ask .art-ask-btn { width: 100%; justify-content: center; gap: 8px; font-size: 14.5px; }
.art-ask .art-ask-btn svg { width: 17px; height: 17px; flex: none; fill: currentColor; }
.art-toc .art-back { margin-top: 16px; }

/* ---- under 1181px (where this grid already folds): no side list; a folded list before the first section ---- */
@media (max-width: 1180px) {
  .art-toc { display: none; }
  .pg-article .ak-toc-m { display: block; }
}
.pg-article .ak-toc-m { margin: 0 0 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.pg-article .ak-toc-m > summary { padding: 15px 18px; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.pg-article .ak-toc-m > summary::after { color: var(--blue-ink); }
.pg-article .ak-toc-m__count { font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--blue-ink); }
.pg-article .ak-toc-m .ak-toc__list { margin: 0 18px 14px; }
.pg-article .ak-toc-m .ak-toc__list a { font-size: 16px; }

/* ---- tables: the site's white table, boxed so it scrolls inside itself and never pushes a phone page sideways ---- */
.art-body .ak-table { margin: 26px 0; border: 1px solid var(--line); border-radius: 18px; }
.art-body .ak-table > table { margin: 0; border: 0; border-radius: 0; overflow: visible; background: none; font-size: 16px; }
.art-body .ak-table :is(th, td) { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.art-body .ak-table thead th { background: var(--paper); font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.art-body .ak-table tbody th { font-weight: 650; font-stretch: 92%; color: var(--ink); }
.art-body .ak-table td { color: var(--ink-2); }
.art-body .ak-table caption { font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--mute); }
.art-body figure .ak-table { margin: 0; }
.art-body .ak-table + p.ak-table-hint { margin: -16px 0 22px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
@media (max-width: 640px) {
  .art-body .ak-table--stack > table > tbody > tr { border-radius: 18px; }
  .art-body .ak-table--stack [data-label]::before { font-family: var(--mono); font-weight: 500; letter-spacing: .09em; color: var(--mute); }
}
