/*
 * Integrity Flash article standard (docs/article-standard.md), measured from issue 147.
 * Installed by scripts/fix/fix-01-theme.ps1 into the child theme. To roll back: run that
 * script with -Rollback (removes this file, the template override and the functions.php block).
 *
 * Scope: article-body rules apply only to .mki-article-content.ifa-std. The template override adds
 * ifa-std to every article EXCEPT issue 147 (the hand-built reference), so 147 is never affected.
 * Imported articles, stripped of their inline/widget overrides by fix-10-typography, fall back to
 * this standard.
 */

/* 2. page frame: issue H1 kept for screen readers / SEO, hidden visually (brief item 1) */
.ifa-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. article title: two-line rule */
.mki-article-header h2.section-title.mki-title-long { font-size: 44px; line-height: 1.02; }
@media (max-width: 767px) {
	.mki-article-header h2.section-title { font-size: clamp(34px, 7vw, 54px); }
	.mki-article-header h2.section-title.mki-title-long { font-size: clamp(30px, 6.2vw, 44px); }
}

/* 4. body text: exactly what the developers' issues 151/152 render with, i.e. the site defaults
      (Montserrat 400, 16px, line height 1.72, #172029, 0.9em after each paragraph; links black 600
      underlined from the Customizer's Additional CSS). Nothing else is overridden, so the kit stays
      the single source (owner's rule, 2026-09-26: fonts and spacing must match 151/152 everywhere). */
.mki-article-content.ifa-std .elementor-widget-text-editor { font-family: "Montserrat", sans-serif; }

/* 5. headings inside the article */
.mki-article-content.ifa-std .elementor-widget-text-editor h2,
.mki-article-content.ifa-std .elementor-widget-text-editor h3,
.mki-article-content.ifa-std .elementor-widget-heading h2.elementor-heading-title,
.mki-article-content.ifa-std .elementor-widget-heading h3.elementor-heading-title {
	font-family: "Saira Condensed", sans-serif; font-size: 27px; font-weight: 600;
	line-height: 1.1; color: #285D7D;
}
.mki-article-content.ifa-std .elementor-widget-text-editor h2,
.mki-article-content.ifa-std .elementor-widget-text-editor h3 { margin: 30px 0 10px; }
.mki-article-content.ifa-std .elementor-widget-text-editor h4,
.mki-article-content.ifa-std .elementor-widget-heading h4.elementor-heading-title {
	font-family: "Saira Condensed", sans-serif; font-size: 22px; font-weight: 600;
	line-height: 1.15; color: #172029;
}

/* 6. figures: image as the developers had it on 151/152 (full column width, no frame, no rounding,
      no height cap), caption bound underneath and styled like their caption blocks: Montserrat 600,
      16px, #172029, 20px below the image (their widget gap) and 0.9em after (their paragraph margin). */
.mki-article-content.ifa-std .elementor-widget-image figure.wp-caption { margin: 0; }
.mki-article-content.ifa-std .elementor-widget-image img { display: block; max-width: 100%; height: auto; }
/*    Caption = issue 147's caption line (owner, 2026-09-28): green rule on the left, Montserrat bold 18px, the
      figure number in blue and the source in grey. */
.mki-article-content.ifa-std .elementor-widget-image .widget-image-caption {
	margin: 10px 0 14.4px; padding: 0 0 0 10px; border-left: 2px solid #B8E250;
	font-family: "Montserrat", sans-serif; font-size: 18px; font-weight: 700; font-style: normal; line-height: 1.35;
	color: #111111; text-align: left;
}
.mki-article-content.ifa-std .widget-image-caption .fno { color: #285D7D; font-weight: 600; }
.mki-article-content.ifa-std .widget-image-caption .src,
.mki-article-content.ifa-std .widget-image-caption .src a { color: #8B95A2; font-weight: 700; }
.mki-article-content.ifa-std .widget-image-caption a { color: inherit; }

/* 9. tables */
.mki-article-content.ifa-std .elementor-widget-text-editor table {
	width: 100%; border-collapse: collapse; font-family: "Inter", Arial, sans-serif; font-size: 13px;
}
.mki-article-content.ifa-std .elementor-widget-text-editor th {
	background: #285D7D; color: #fff; font-size: 12.5px; font-weight: 600; text-transform: uppercase;
	padding: 9px 11px; text-align: left; border-bottom: 1px solid #D5DDE2;
}
.mki-article-content.ifa-std .elementor-widget-text-editor td {
	padding: 8px 11px; border-bottom: 1px solid #E2E3E0; line-height: 1.5; vertical-align: top;
}

/* 10. vertical rhythm between blocks: not overridden; the kit default (20px) is what 151/152 use */

/* 11. lightbox: never larger than the screen, never above 1200px wide (brief item 11) */
.elementor-lightbox .elementor-lightbox-image,
.elementor-lightbox .swiper-zoom-container > img {
	max-width: min(90vw, 1200px) !important; max-height: 90vh !important;
	width: auto !important; height: auto !important; object-fit: contain;
}

/* 12. articles without Elementor data (plain HTML bodies, cleaned by fix-12-classic): same standard */
.mki-article-content.ifa-std > p,
.mki-article-content.ifa-std > ul,
.mki-article-content.ifa-std > ol { font-family: "Montserrat", sans-serif; color: #172029; margin: 0 0 0.9em; }
.mki-article-content.ifa-std > h2,
.mki-article-content.ifa-std > h3 {
	font-family: "Saira Condensed", sans-serif; font-size: 27px; font-weight: 600;
	line-height: 1.1; color: #285D7D; margin: 30px 0 10px;
}
.mki-article-content.ifa-std > p img,
.mki-article-content.ifa-std > figure img,
.mki-article-content.ifa-std > img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.mki-article-content.ifa-std figcaption {
	margin: 10px 0 14.4px; padding: 0 0 0 10px; border-left: 2px solid #B8E250;
	font-family: "Montserrat", sans-serif; font-size: 18px; font-weight: 700; font-style: normal; line-height: 1.35;
	color: #111111; text-align: left;
}
/*    picture + caption pairs made real figures by fix-45 (plain-HTML articles and text widgets) */
.mki-article-content.ifa-std figure.ifa-fig { margin: 0 0 0.9em; }
.mki-article-content.ifa-std figure.ifa-fig img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.mki-article-content.ifa-std figure.ifa-fig figcaption strong,
.mki-article-content.ifa-std figure.ifa-fig figcaption b { font-weight: 700; }
.mki-article-content.ifa-std figcaption .src,
.mki-article-content.ifa-std figcaption .src a { color: #8B95A2; }
/* 12b. text | figures row in plain-HTML articles (fix-30; Elementor articles get the same row as containers,
   fix-29): legacy showed the figures in a column beside the text (brief items 4 + 9). Stacks on phones. */
.mki-article-content.ifa-std div.ifa-row:not(.e-con) { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 0.9em; }
.mki-article-content.ifa-std div.ifa-row:not(.e-con) > .ifa-col { flex: 1 1 0; min-width: 0; }
@media (max-width: 767px) {
	.mki-article-content.ifa-std div.ifa-row:not(.e-con) { flex-direction: column; }
	.mki-article-content.ifa-std div.ifa-row:not(.e-con) > .ifa-col { width: 100%; }
}
.mki-article-content.ifa-std .ifa-col > p,
.mki-article-content.ifa-std .ifa-col > ul,
.mki-article-content.ifa-std .ifa-col > ol { font-family: "Montserrat", sans-serif; color: #172029; margin: 0 0 0.9em; }
.mki-article-content.ifa-std .ifa-col > h2,
.mki-article-content.ifa-std .ifa-col > h3 {
	font-family: "Saira Condensed", sans-serif; font-size: 27px; font-weight: 600;
	line-height: 1.1; color: #285D7D; margin: 30px 0 10px;
}
.mki-article-content.ifa-std .ifa-col > p img,
.mki-article-content.ifa-std .ifa-col > figure img,
.mki-article-content.ifa-std .ifa-col > img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.mki-article-content.ifa-std .ifa-col > figure { margin: 0 0 16px; }
/* 13. header: COE Trainer as a distinct secondary (outlined) button, menu kept on one line (brief item 13) */
.elementor-nav-menu--main > .elementor-nav-menu { flex-wrap: nowrap; }
.elementor-location-header .elementor-widget-nav-menu { flex-shrink: 0; max-width: none; }
.elementor-location-header .elementor-widget-nav-menu .elementor-widget-container { width: max-content; }
.elementor-nav-menu--main .menu-item.trainer {
	background: transparent !important; padding: 0 !important; margin-left: 10px; align-self: center;
}
.elementor-nav-menu--main .menu-item.trainer > a.elementor-item {
	color: #B8E250 !important; border: 1px solid #B8E250; border-radius: 3px;
	padding: 5px 12px !important; line-height: 1.2; white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
.elementor-nav-menu--main .menu-item.trainer > a.elementor-item:hover,
.elementor-nav-menu--main .menu-item.trainer > a.elementor-item:focus-visible {
	background: #B8E250; color: #0A0E13 !important;
}
.elementor-nav-menu--dropdown .menu-item.trainer { background: transparent !important; }
.elementor-nav-menu--dropdown .menu-item.trainer > a { color: #B8E250 !important; }

/* 14. search results: centred under the search box (brief item 12) */
#issue_search_result { max-width: 980px; margin-left: auto; margin-right: auto; }
/* 15. issue covers: one frame shape everywhere, US Letter portrait 791:1024 (docs/cover-art-spec.md),
       anchored to the top so the masthead always shows even if a cover is a little off-ratio (item 19) */
.mki-ew-issue-image { aspect-ratio: 791 / 1024; overflow: hidden; background: #0C1820; }
.mki-ew-issue-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mki-integrity-archive .acard .cover img,
.mki-latest-list .mki-latest-thumb img { object-position: top center; }