/*
 * Learn and Applications — the knowledge base and the environment pages.
 *
 * The record card, the labelled block pair and the chip rail are shared
 * primitives (assets/css/components.css); the product grids these pages render
 * are styled by assets/css/shop.css, which functions.php enqueues alongside
 * this sheet.
 */

.aq-page.aq-learn .aq-rail,
.aq-page.aq-applications .aq-rail { margin-bottom: 22px; }
.aq-page.aq-learn .aq-rail--sub { margin-top: -6px; }
.aq-page.aq-learn .aq-rail--sub .aq-chip { background: #fff; font-weight: 600; }

/* The byline sits inside the dark hero, so it needs light type. */
.aq-page.aq-learn .aq-hero-meta { margin-top: 22px; color: #9FB4C6; }
.aq-page.aq-learn .aq-hero-meta li { color: #C3D2DF; }
.aq-page.aq-learn .aq-hero-meta b { color: #8FA6B8; font-weight: 700; }

/* Key takeaways: the skimmable summary above the article. */
.aq-takeaways {
  padding: 22px 24px;
  border: 1px solid var(--aq-border);
  border-left: 3px solid var(--aq-blue);
  border-radius: var(--aq-radius);
  background: var(--aq-alt);
  margin-bottom: 34px;
}
.aq-takeaways h2 {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aq-muted);
}
.aq-takeaways ul { margin: 0; padding-left: 20px; }
.aq-takeaways li { font-size: 15px; line-height: 1.7; color: var(--aq-ink); }
.aq-takeaways li + li { margin-top: 8px; }

.aq-page.aq-learn .aq-article-body,
.aq-page.aq-learn .aq-record-body { max-width: 78ch; }

/*
 * The record's own image, printed under the hero and above the first paragraph.
 * It keeps the article's measure so a desktop reader sees the picture aligned
 * with the column of text; the prose font size is restated here because 78ch
 * below resolves against this element's own size. On a phone it takes the full
 * column and keeps the attachment's ratio — width and height attributes come
 * from wp_get_attachment_image(), so the space is reserved before it loads.
 * The name is its own: the archive's lead card already owns .aq-article-media
 * as the link around its thumbnail (editorial.css), and this sheet is enqueued
 * on the archive too.
 */
.aq-record-figure {
  max-width: 78ch;
  font-size: 15.5px;
  margin: 0 0 34px;
}
.aq-record-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--aq-radius);
  background: var(--aq-alt);
}
.aq-record-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--aq-muted);
}

.aq-article-tags {
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--aq-border);
  font-size: 13px;
  color: var(--aq-muted);
}
.aq-article-tags a { color: var(--aq-blue); }

/* Application pages ------------------------------------------------------ */

.aq-page.aq-applications .aq-record-pair { margin: 0; }
.aq-page.aq-applications .aq-section-head + .aq-facts { margin-top: 4px; }

@media (max-width: 680px) {
  .aq-takeaways { padding: 18px; margin-bottom: 26px; }
  .aq-record-figure { margin-bottom: 26px; }
}

/* ==========================================================================
 * Knowledge — one article (V1.0 editorial single)
 *
 * Everything below is scoped to `.aq-learn--single`, a class only
 * single-knowledge.php prints, so the Knowledge archive, the knowledge_type and
 * applications taxonomies and the Applications page — which load this same sheet
 * — keep the styles they had. The rules above this block are unchanged.
 *
 * Measure: shell 1160, article 720, contents 236, gutter 48. The two column
 * templates are stated once here and reused by the hero, the breadcrumb row and
 * the body, so the first heading and the first paragraph start on the same
 * vertical line at every width without a single hand-written left margin.
 * ======================================================================= */

.aq-page.aq-learn.aq-learn--single .aq-kg-shell { max-width: 1160px; }

.aq-page.aq-learn.aq-learn--single .aq-kg-align,
.aq-page.aq-learn.aq-learn--single .aq-kg-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) 236px;
  column-gap: 48px;
  justify-content: center;
}

.aq-page.aq-learn.aq-learn--single .aq-kg-grid { align-items: start; }
/* An article too short for a contents list keeps one centred column and leaves
   the second one out of the layout entirely, rather than reserving empty space. */
.aq-page.aq-learn.aq-learn--single .aq-kg-grid--single { grid-template-columns: minmax(0, 720px); }
.aq-page.aq-learn.aq-learn--single .aq-kg-main,
.aq-page.aq-learn.aq-learn--single .aq-kg-hero { min-width: 0; }

/* Hero (the dark band is the site's own; only its measure changes) --------- */

.aq-page.aq-learn.aq-learn--single .aq-hero h1 { max-width: 30ch; }
.aq-page.aq-learn.aq-learn--single .aq-kg-hero .aq-hero-lede { margin: 18px 0 0; max-width: 62ch; }

/* The record's own image: full column, its own ratio, never cropped -------- */

.aq-page.aq-learn.aq-learn--single .aq-record-figure { max-width: none; margin: 0 0 32px; font-size: 16.5px; }
.aq-page.aq-learn.aq-learn--single .aq-record-figure img { border-radius: var(--aq-radius); }
.aq-page.aq-learn.aq-learn--single .aq-record-figure figcaption { margin-top: 10px; text-align: center; }

/* On-page contents ------------------------------------------------------- */

.aq-page.aq-learn.aq-learn--single .aq-ktoc {
  position: sticky;
  top: 104px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 16px 0 0;
  border-top: 1px solid var(--aq-border);
}

.aq-page.aq-learn.aq-learn--single .aq-ktoc-title {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aq-muted);
}

.aq-page.aq-learn.aq-learn--single .aq-ktoc-list { list-style: none; margin: 0; padding: 0; }
.aq-page.aq-learn.aq-learn--single .aq-ktoc-list li { margin: 0; }

.aq-page.aq-learn.aq-learn--single .aq-ktoc-list a {
  display: block;
  padding: 5px 8px 5px 12px;
  border-left: 2px solid transparent;
  color: var(--aq-body);
  font-size: 13.5px;
  line-height: 1.5;
  text-decoration: none;
}
.aq-page.aq-learn.aq-learn--single .aq-ktoc-list a:hover { color: var(--aq-blue); border-left-color: var(--aq-border-strong); }
.aq-page.aq-learn.aq-learn--single .aq-ktoc-list a[aria-current="location"] {
  color: var(--aq-blue);
  border-left-color: var(--aq-blue);
  font-weight: 600;
}

/* The same list, folded, above the body on a narrow screen (disclosure) ---- */

.aq-page.aq-learn.aq-learn--single .aq-ktoc-inline {
  margin: 0 0 28px;
  border: 1px solid var(--aq-border);
  border-radius: var(--aq-radius);
  background: #fff;
}

.aq-page.aq-learn.aq-learn--single .aq-ktoc-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--aq-ink);
  text-align: left;
  cursor: pointer;
}
.aq-page.aq-learn.aq-learn--single .aq-ktoc-toggle:focus-visible { outline: 2px solid var(--aq-blue); outline-offset: -2px; border-radius: var(--aq-radius); }
.aq-page.aq-learn.aq-learn--single .aq-ktoc-inline[data-state="open"] .aq-ktoc-toggle { border-bottom: 1px solid var(--aq-border); }
.aq-page.aq-learn.aq-learn--single .aq-ktoc-toggle-label { flex: 1 1 auto; }
.aq-page.aq-learn.aq-learn--single .aq-ktoc-toggle-count { font-size: 12.5px; font-weight: 600; color: var(--aq-muted); }
.aq-page.aq-learn.aq-learn--single .aq-ktoc-panel { padding: 6px 8px; }
.aq-page.aq-learn.aq-learn--single .aq-ktoc-panel .aq-ktoc-list a { padding-left: 10px; }

/* Reading typography ------------------------------------------------------
 * The article body owns its own vertical rhythm: every block carries its bottom
 * margin and the flow rule that used to add a top margin is switched off here,
 * so a paragraph keeps one 18px gap whether it sits directly in the body or one
 * wrapper deep (an imported article often wraps its text in its own div). */

.aq-page.aq-learn.aq-learn--single .aq-article-body {
  max-width: none;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--aq-body);
}
.aq-page.aq-learn.aq-learn--single .aq-article-body > * + * { margin-top: 0; }
.aq-page.aq-learn.aq-learn--single .aq-article-body > *:last-child { margin-bottom: 0; }

.aq-page.aq-learn.aq-learn--single .aq-article-body h2 {
  margin: 44px 0 16px;
  padding: 0;
  border: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--aq-ink);
}
.aq-page.aq-learn.aq-learn--single .aq-article-body h3 {
  margin: 32px 0 10px;
  font-size: 19.5px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--aq-ink);
}
.aq-page.aq-learn.aq-learn--single .aq-article-body h4 {
  margin: 26px 0 8px;
  font-size: 16.5px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--aq-ink);
}
.aq-page.aq-learn.aq-learn--single .aq-article-body :is(h2, h3, h4) { scroll-margin-top: 96px; }

.aq-page.aq-learn.aq-learn--single .aq-article-body p { margin: 0 0 18px; }
.aq-page.aq-learn.aq-learn--single .aq-article-body p:last-child { margin-bottom: 0; }
.aq-page.aq-learn.aq-learn--single .aq-article-body strong { color: var(--aq-ink); }

.aq-page.aq-learn.aq-learn--single .aq-article-body ul,
.aq-page.aq-learn.aq-learn--single .aq-article-body ol { margin: 0 0 18px; padding-left: 24px; }
.aq-page.aq-learn.aq-learn--single .aq-article-body ul ul,
.aq-page.aq-learn.aq-learn--single .aq-article-body ol ol,
.aq-page.aq-learn.aq-learn--single .aq-article-body ul ol,
.aq-page.aq-learn.aq-learn--single .aq-article-body ol ul { margin-bottom: 0; padding-left: 20px; }
.aq-page.aq-learn.aq-learn--single .aq-article-body li { margin: 0; }
.aq-page.aq-learn.aq-learn--single .aq-article-body li + li { margin-top: 8px; }
.aq-page.aq-learn.aq-learn--single .aq-article-body li > p { margin-bottom: 8px; }

.aq-page.aq-learn.aq-learn--single .aq-article-body a {
  color: var(--aq-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body a:focus-visible {
  outline: 2px solid var(--aq-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* The article's own lead paragraph, when the editor wrapped one in .aq-intro */
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-intro {
  margin: 0 0 26px;
  padding: 16px 22px;
  border-left: 3px solid var(--aq-blue);
  border-radius: 0 var(--aq-radius) var(--aq-radius) 0;
  background: var(--aq-alt);
  font-size: 17px;
  line-height: 1.7;
  color: var(--aq-ink);
}
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-intro p { margin-bottom: 0; }

/* A. Engineering data table ---------------------------------------------- */

.aq-page.aq-learn.aq-learn--single .aq-article-body table {
  width: 100%;
  margin: 0 0 28px;
  border-collapse: collapse;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-table-wrap {
  margin: 0 0 28px;
  overflow-x: auto;
  border: 1px solid var(--aq-border);
  border-radius: var(--aq-radius);
  background: #fff;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-table-wrap table { margin: 0; min-width: 560px; }
.aq-page.aq-learn.aq-learn--single .aq-article-body th,
.aq-page.aq-learn.aq-learn--single .aq-article-body td {
  padding: 12px 14px;
  border: 1px solid var(--aq-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body th {
  background: var(--aq-alt);
  color: var(--aq-ink);
  font-weight: 700;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-table-wrap tbody tr:nth-child(even) { background: var(--aq-alt); }
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-table-wrap tr:last-child td { border-bottom: 0; }

/* B. Technical figure ---------------------------------------------------- */

.aq-page.aq-learn.aq-learn--single .aq-article-body figure,
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-image {
  margin: 32px 0;
  text-align: center;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body figure img,
.aq-page.aq-learn.aq-learn--single .aq-article-body > img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--aq-radius);
}
.aq-page.aq-learn.aq-learn--single .aq-article-body figcaption,
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-caption {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--aq-muted);
  text-align: center;
}

/* C. Engineering note (and the block quote the import already uses) ------- */

.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-note,
.aq-page.aq-learn.aq-learn--single .aq-article-body blockquote {
  margin: 0 0 24px;
  padding: 18px 22px;
  border: 0;
  border-left: 3px solid var(--aq-blue);
  border-radius: 0 var(--aq-radius) var(--aq-radius) 0;
  background: var(--aq-alt);
  color: var(--aq-body);
  font-size: 16px;
  line-height: 1.7;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-note p:last-child,
.aq-page.aq-learn.aq-learn--single .aq-article-body blockquote p:last-child { margin-bottom: 0; }

/* D. Section divider — only where one is written ------------------------- */

.aq-page.aq-learn.aq-learn--single .aq-article-body hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--aq-border);
}

/* Back to top: fixed, stacked above the WhatsApp disc, shown by the runtime */

.aq-page.aq-learn.aq-learn--single .aq-ktotop { position: fixed; right: 16px; bottom: 84px; z-index: 45; }
.aq-page.aq-learn.aq-learn--single .aq-ktotop-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--aq-border);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(9, 22, 33, 0.14);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--aq-body);
  cursor: pointer;
}
.aq-page.aq-learn.aq-learn--single .aq-ktotop-btn:hover { border-color: var(--aq-blue); color: var(--aq-blue); }
.aq-page.aq-learn.aq-learn--single .aq-ktotop-btn:focus-visible { outline: 2px solid var(--aq-blue); outline-offset: 2px; }

/* Breakpoints ------------------------------------------------------------ */

@media (min-width: 768px) {
  .aq-page.aq-learn.aq-learn--single .aq-ktotop { right: 20px; bottom: 88px; }
}
@media (min-width: 1024px) {
  .aq-page.aq-learn.aq-learn--single .aq-ktotop { right: 24px; bottom: 92px; }
}

/* The contents list is a sidebar only while there is room for both columns. */
@media (min-width: 1080px) {
  .aq-page.aq-learn.aq-learn--single .aq-ktoc-inline { display: none; }
}
@media (max-width: 1079px) {
  .aq-page.aq-learn.aq-learn--single .aq-kg-align,
  .aq-page.aq-learn.aq-learn--single .aq-kg-grid,
  .aq-page.aq-learn.aq-learn--single .aq-kg-grid--single { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .aq-page.aq-learn.aq-learn--single .aq-ktoc { display: none; }
}

@media (max-width: 767px) {
  .aq-page.aq-learn.aq-learn--single .aq-article-body { font-size: 16px; line-height: 1.75; }
  .aq-page.aq-learn.aq-learn--single .aq-article-body h2 { font-size: 22px; margin: 34px 0 14px; }
  .aq-page.aq-learn.aq-learn--single .aq-article-body h3 { font-size: 18px; margin: 28px 0 10px; }
  .aq-page.aq-learn.aq-learn--single .aq-article-body p { margin-bottom: 16px; }
  .aq-page.aq-learn.aq-learn--single .aq-hero h1 { font-size: 29px; }
  .aq-page.aq-learn.aq-learn--single .aq-ktoc-inline { margin-bottom: 24px; }
  .aq-page.aq-learn.aq-learn--single .aq-record-figure { margin-bottom: 26px; }
}

/* E. Product cards written inside an article body -------------------------
 * An imported article may name the products it discusses itself, as a row of
 * cards inside the text. That row is a content component, not article-specific
 * decoration, so it is styled here rather than in a <style> block in the body:
 * the same six lines serve any article that uses it. */

.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 32px;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-product {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--aq-border);
  border-radius: var(--aq-radius);
  background: #fff;
  color: var(--aq-ink);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-product:hover {
  border-color: var(--aq-blue);
  background: var(--aq-alt);
}
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-product:focus-visible {
  outline: 2px solid var(--aq-blue);
  outline-offset: 2px;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-product small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--aq-muted);
}

@media (max-width: 767px) {
  .aq-page.aq-learn.aq-learn--single .aq-article-body .aq-products { grid-template-columns: minmax(0, 1fr); }
}

/* Section links, figure notes and the article footer ---------------------
 * A heading carries one small control that copies that section's address; it
 * stays out of the way until the heading is hovered or focused, and on a touch
 * screen it stays visible at low contrast because there is no hover to reveal
 * it. Nothing here animates on its own. */

.aq-page.aq-learn.aq-learn--single .aq-anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.aq-page.aq-learn.aq-learn--single .aq-anchor-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--aq-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--aq-dur-fast) ease, color var(--aq-dur-fast) ease;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body h2:hover .aq-anchor-btn,
.aq-page.aq-learn.aq-learn--single .aq-article-body h2:focus-within .aq-anchor-btn { opacity: 1; }
.aq-page.aq-learn.aq-learn--single .aq-anchor-btn:hover { color: var(--aq-blue); border-color: var(--aq-border); }
.aq-page.aq-learn.aq-learn--single .aq-anchor-btn:focus-visible { opacity: 1; outline: 2px solid var(--aq-blue); outline-offset: 2px; }
.aq-page.aq-learn.aq-learn--single .aq-anchor-status { font-size: 11px; font-weight: 600; color: var(--aq-green); }
.aq-page.aq-learn.aq-learn--single .aq-anchor-status:empty { display: none; }

@media (hover: none) {
  .aq-page.aq-learn.aq-learn--single .aq-anchor-btn { opacity: 0.45; }
}

/* A figure the editor marked as an illustration, and the link to the file's
   own size for a chart that is worth reading at full width. */

.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-figure-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--aq-muted);
  text-align: center;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-figure-open { margin: 8px 0 0; font-size: 12.5px; text-align: center; }
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-figure-open a {
  color: var(--aq-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--aq-border-strong);
  padding-bottom: 1px;
}
.aq-page.aq-learn.aq-learn--single .aq-article-body .aq-figure-open a:hover { border-bottom-color: var(--aq-blue); }

.aq-page.aq-learn.aq-learn--single .aq-article-foot {
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--aq-border);
  font-size: 13px;
  line-height: 1.6;
  color: var(--aq-muted);
}
.aq-page.aq-learn.aq-learn--single .aq-article-foot a { color: var(--aq-blue); }

.aq-page.aq-learn.aq-learn--single .aq-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Printing: the reader wants the article, not the site around it. The site
   chrome is named directly rather than through :has(), because a print engine
   is the one context where an unsupported selector silently prints the header
   and the footer down the page. These rules never paint anything on screen. */

@media print {
  .aq-header,
  .aq-footer,
  .aq-wa-float,
  .aq-learn--single .aq-ktoc,
  .aq-learn--single .aq-ktoc-inline,
  .aq-learn--single .aq-ktotop,
  .aq-learn--single .aq-anchor,
  .aq-learn--single .aq-print,
  .aq-learn--single .aq-article-foot,
  .aq-learn--single .aq-band { display: none !important; }

  .aq-learn--single .aq-kg-grid,
  .aq-learn--single .aq-kg-align { display: block !important; }
  .aq-learn--single .aq-hero { background: none !important; color: #000 !important; padding: 0 0 12px !important; margin: 0 !important; }
  .aq-learn--single .aq-hero h1,
  .aq-learn--single .aq-kicker,
  .aq-learn--single .aq-hero-lede,
  .aq-learn--single .aq-hero-meta li,
  .aq-learn--single .aq-hero-meta b { color: #000 !important; }
  .aq-learn--single .aq-article-body,
  .aq-learn--single .aq-article-body p,
  .aq-learn--single .aq-article-body li { color: #000 !important; }
  .aq-learn--single .aq-article-body a { color: #000 !important; text-decoration: underline; }
  .aq-learn--single .aq-article-body figure,
  .aq-learn--single .aq-article-body .aq-note,
  .aq-learn--single .aq-article-body .aq-table-wrap { break-inside: avoid; }
}

/* The print entry: a quiet control beside the correction line, and a light
   "Return to screen" note that only the printed sheet ever shows. */

.aq-page.aq-learn.aq-learn--single .aq-print {
  margin: 0 0 0 10px;
  padding: 5px 12px;
  border: 1px solid var(--aq-border-strong);
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--aq-body);
  cursor: pointer;
}
.aq-page.aq-learn.aq-learn--single .aq-print:hover { border-color: var(--aq-blue); color: var(--aq-blue); }
.aq-page.aq-learn.aq-learn--single .aq-print:focus-visible { outline: 2px solid var(--aq-blue); outline-offset: 2px; }

/* ==========================================================================
 * Learn archive and knowledge type pages — components/knowledge-archive.php
 *
 * One list serves /learn/ and every type page, so everything here is scoped to
 * `.aq-learn--archive` (printed by that one component) and never touches the
 * article template, the Applications pages or the document library.
 *
 * The hero is deliberately short: on a list page the first row of articles is
 * what the reader came for, so the band above it carries a kicker, a heading, one
 * sentence and nothing else — the counts moved down beside the list.
 * ======================================================================= */

.aq-page.aq-learn--archive .aq-hero--learn { padding: 24px 0 28px; }
.aq-page.aq-learn--archive .aq-hero--learn h1 {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.aq-page.aq-learn--archive .aq-hero--learn .aq-hero-lede {
  margin: 12px 0 0;
  max-width: 66ch;
  font-size: 15.5px;
  line-height: 1.6;
}

.aq-page.aq-learn--archive .aq-rail { margin-bottom: 26px; }

/* The list's own header: what is being shown, and how many. */
.aq-page.aq-learn--archive .aq-ka-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.aq-page.aq-learn--archive .aq-ka-heading {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aq-ink);
}
.aq-page.aq-learn--archive .aq-kcount {
  margin: 0;
  font-size: 13px;
  color: var(--aq-muted);
  font-variant-numeric: tabular-nums;
}

/* Three across on a desktop, two on a tablet, one on a phone. */
.aq-page.aq-learn--archive .aq-records--knowledge {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* The card: a picture band, one type, a title clamped to three lines, the
   written summary, and one action that stays level across the row. */
.aq-page.aq-learn--archive .aq-kcard {
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.aq-page.aq-learn--archive .aq-kcard-media {
  display: block;
  /* One band, one shape, whatever the file behind it is: 1200 x 630, the shape
     every featured picture on this list is uploaded in. A band of its own ratio
     per card would make one row of pictures three different sizes, and the row
     is read before anything else on the page. */
  aspect-ratio: 1200 / 630;
  padding: 10px;
  background: var(--aq-alt);
  border-bottom: 1px solid var(--aq-border);
  overflow: hidden;
}
.aq-page.aq-learn--archive .aq-kcard-media img {
  display: block;
  width: 100%;
  height: 100%;
  /* Filled, not fitted: the pictures on this list are photographs, so the band
     takes the frame and the picture fills it. A file that is not 1200 x 630 is
     trimmed at the top and bottom rather than letterboxed inside a white panel,
     which is what made one card's picture look larger than its neighbours. */
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
}
/* An article with no picture still gets the same band, drawn as a frame rather
   than left as a hole, so a row of cards keeps one baseline. */
.aq-page.aq-learn--archive .aq-kcard-ph {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px dashed var(--aq-line);
  border-radius: 4px;
  background: #fff;
}

.aq-page.aq-learn--archive .aq-kcard .aq-record-type { margin: 16px 20px 0; }
.aq-page.aq-learn--archive .aq-kcard .aq-record-title {
  margin: 8px 20px 0;
  font-size: 16.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aq-page.aq-learn--archive .aq-kcard .aq-record-text {
  margin: 8px 20px 0;
  font-size: 13.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aq-page.aq-learn--archive .aq-kcard .aq-record-actions {
  margin: auto 0 0;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--aq-border);
  font-size: 12.5px;
}
.aq-page.aq-learn--archive .aq-kcard-date { color: var(--aq-muted); }
.aq-page.aq-learn--archive .aq-kcard-more {
  margin-left: auto;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--aq-blue);
  text-decoration: none;
}
.aq-page.aq-learn--archive .aq-kcard-more:hover { text-decoration: underline; }

/* The closing links: one line, then one sentence, in place of a second card
   grid and a closing band that said the same thing again. */
.aq-page.aq-learn--archive .aq-klinks {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--aq-border);
  font-size: 13.5px;
}
.aq-page.aq-learn--archive .aq-klinks-label { font-weight: 700; color: var(--aq-ink); }
.aq-page.aq-learn--archive .aq-klinks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.aq-page.aq-learn--archive .aq-klinks a { color: var(--aq-blue); }
.aq-page.aq-learn--archive .aq-klinks a:hover { text-decoration: underline; }

.aq-page.aq-learn--archive .aq-ksupport {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--aq-muted);
}
.aq-page.aq-learn--archive .aq-ksupport a { font-weight: 600; color: var(--aq-blue); }
.aq-page.aq-learn--archive .aq-ksupport a.aq-ksupport-quiet {
  color: var(--aq-body);
  font-weight: 600;
  text-decoration: underline;
}
.aq-page.aq-learn--archive .aq-ksupport-sep { color: var(--aq-line); }

@media (max-width: 1079px) {
  .aq-page.aq-learn--archive .aq-records--knowledge { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .aq-page.aq-learn--archive .aq-hero--learn { padding: 20px 0 22px; }
  .aq-page.aq-learn--archive .aq-hero--learn h1 { font-size: 26px; max-width: none; }
  .aq-page.aq-learn--archive .aq-records--knowledge { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .aq-page.aq-learn--archive .aq-kcard .aq-record-type { margin: 14px 16px 0; }
  .aq-page.aq-learn--archive .aq-kcard .aq-record-title { margin: 6px 16px 0; }
  .aq-page.aq-learn--archive .aq-kcard .aq-record-text { margin: 6px 16px 0; }
  .aq-page.aq-learn--archive .aq-kcard .aq-record-actions { padding: 12px 16px 14px; }
}
