/*
 * Article text. Loaded on the site and inside the WordPress editor, so both look the same.
 * .story is the article on the site. .is-root-container is the writing area in the editor.
 */
:where(.story, .is-root-container) { color: #17191a; font-family: Literata, Georgia, serif; font-size: 1.1875rem; line-height: 1.7; }
.story > * { max-width: 680px; margin-block: 0; }
.story > * + * { margin-top: 1.4em; }
.story > :is(.alignwide, .alignfull, .wp-block-table, .wp-block-embed, .wp-block-gallery, .elementor) { max-width: 100%; }
:where(.story) > .aligncenter { margin-inline: auto; }
:where(.story, .is-root-container) p { text-wrap: pretty; }
:where(.story, .is-root-container) :where(strong, b) { font-weight: 650; }

:where(.story, .is-root-container) :is(h2, h3, h4) { color: #000; font-family: Archivo, Arial, sans-serif; font-stretch: 114%; font-weight: 720; line-height: 1.18; letter-spacing: -.015em; text-wrap: balance; }
:where(.story, .is-root-container) h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); }
:where(.story, .is-root-container) h3 { font-size: 1.35rem; }
:where(.story, .is-root-container) h4 { font-size: 1.1875rem; }
.story > h2:not(:first-child) { margin-top: 2em; scroll-margin-top: 1.5rem; }
.story > h3:not(:first-child) { margin-top: 1.7em; scroll-margin-top: 1.5rem; }
.story > :is(h2, h3, h4) + * { margin-top: .65em; }

.story :where(p, li, td, dd, figcaption, details) a:not(.wp-element-button),
.is-root-container :where(p, li, td) a { color: #000; text-decoration: none; background: linear-gradient(#ffd21f, #ffd21f) 0 100% / 100% .3em no-repeat; }
.story :where(p, li, td, dd, figcaption, details) a:not(.wp-element-button):hover { background-size: 100% 100%; }

:where(.story, .is-root-container) :where(ul, ol):not([class*="gallery"]) { padding-left: 1.35em; }
:where(.story, .is-root-container) li + li { margin-top: .45em; }
:where(.story, .is-root-container) li::marker { color: #000; font-family: Archivo, Arial, sans-serif; font-weight: 700; }

.story .wp-block-image { margin-inline: 0; }
.story img { border-radius: 4px; }
.story figcaption, .is-root-container figcaption { margin-top: .6rem; color: #566063; font: 400 .9375rem/1.45 Archivo, Arial, sans-serif; text-align: left; }

/* Quotes */
.story .wp-block-quote, .is-root-container .wp-block-quote, .story > blockquote { margin-inline: 0; padding: 0; border: 0; color: #000; font-size: 1.45rem; line-height: 1.45; }
.story .wp-block-quote cite, .is-root-container .wp-block-quote cite { display: block; margin-top: .75rem; color: #566063; font: 400 1rem Archivo, Arial, sans-serif; }
.story .wp-block-pullquote, .is-root-container .wp-block-pullquote { margin-inline: 0; padding: 1.75rem 2rem; border: 0; border-radius: 4px; background: #ffd21f; color: #000; text-align: left; font: 700 1.6rem/1.25 Archivo, Arial, sans-serif; font-stretch: 114%; }
.wp-block-pullquote p { margin: 0; font-size: inherit !important; line-height: inherit !important; }

/* Tables scroll sideways on small screens */
.story .wp-block-table, .story > table { overflow-x: auto; }
.story table, .is-root-container table { width: 100%; border-collapse: collapse; font: 400 1rem/1.45 Archivo, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.story :is(th, td), .is-root-container table :is(th, td) { min-width: 8rem; padding: .8rem 1rem; border: 0; border-bottom: 1px solid #d5dbdc; text-align: left; vertical-align: top; }
.story .wp-block-table table { table-layout: auto; }
.story :is(th, td) { overflow-wrap: normal; }
.story th, .is-root-container table th { background: #000; color: #fff; font-weight: 650; }
.story .wp-block-table thead, .is-root-container .wp-block-table thead { border: 0; }
.story tbody tr:nth-child(even), .is-root-container tbody tr:nth-child(even) { background: #f6f8f8; }

/* Buttons */
.story .wp-block-button__link, .is-root-container .wp-block-button__link { padding: .85rem 1.5rem; border-radius: 6px; background-color: #000; color: #fff; font: 650 1rem/1.2 Archivo, Arial, sans-serif; text-decoration: none; }
.story .wp-block-button__link:hover { color: #ffd21f; }

/* Questions and answers (Details block) */
.story .wp-block-details, .is-root-container .wp-block-details { margin-top: 0; padding: 1rem 0; border-bottom: 1px solid #d5dbdc; }
.story h2 + .wp-block-details { border-top: 4px solid #000; }
.story .wp-block-details summary, .is-root-container .wp-block-details summary { color: #000; font: 650 1.125rem/1.4 Archivo, Arial, sans-serif; cursor: pointer; }
.story .wp-block-details > :not(summary) { margin: .6rem 0 0; }

.story .wp-block-separator, .is-root-container .wp-block-separator { width: 100%; max-width: 100%; height: 4px; margin-block: 2.5rem; border: 0; opacity: 1; background: repeating-linear-gradient(90deg, #000 0 22px, transparent 22px 40px); }

/* Ready-made sections (Patterns > AeroCab article sections) */
.aj-box { padding: 1.5rem 1.75rem; border-radius: 4px; }
.aj-box > * { margin-block: 0; }
.aj-box > * + * { margin-top: .75rem; }
.aj-box-tip { background: #fff6cc; }
.aj-box-note { background: #eef1f1; }
.aj-box-book { background: #ffd21f; color: #000; }
.story .aj-box ul, .is-root-container .aj-box ul { margin-bottom: 0; }
.aj-compare { gap: 1.25rem; }
.aj-compare .wp-block-column { padding: 1.35rem 1.5rem; border-radius: 4px; background: #eef1f1; }
.aj-compare .wp-block-column > * { margin-block: 0; }
.aj-compare .wp-block-column > * + * { margin-top: .75rem; }

@media (max-width: 640px) {
	:where(.story, .is-root-container) { font-size: 1.125rem; line-height: 1.65; }
	.story .wp-block-pullquote { padding: 1.35rem; font-size: 1.35rem; }
	.aj-box { padding: 1.25rem; }
}
