/*
 * Story text. Loaded on the site and inside the WordPress editor, so both look the same.
 * .story is the text on the site. .is-root-container is the writing area in the editor.
 */
:where(.story, .is-root-container) { color: #1a2733; font-family: Literata, Georgia, serif; font-size: calc(1.1875rem * var(--text, 1)); line-height: 1.75; }
.story > * { margin-block: 0; } .story > * + * { margin-top: 1.35em; }
:where(.story, .is-root-container) p { text-wrap: pretty; } :where(.story, .is-root-container) :where(strong, b) { font-weight: 650; }
.single-post .story > p:first-child { font-size: 1.16em; line-height: 1.65; color: #10233a; }

:where(.story, .is-root-container) :is(h2, h3, h4) { color: #10233a; font-family: 'Schibsted Grotesk', Arial, sans-serif; font-weight: 700; line-height: 1.25; letter-spacing: 0; text-wrap: balance; }
:where(.story, .is-root-container) h2 { font-size: clamp(1.6rem, 2.400vw, 2.0625rem); } :where(.story, .is-root-container) h3 { font-size: 1.4rem; } :where(.story, .is-root-container) h4 { font-size: 1.1875rem; }
.story > h2:not(:first-child) { margin-top: 2em; } .story > h3:not(:first-child) { margin-top: 1.7em; } .story > :is(h2, h3, h4) + * { margin-top: .7em; } .story :is(h2, h3) { scroll-margin-top: 100px; }

.story :where(p, li, td, dd, figcaption) a:not(.wp-element-button, .also a), .is-root-container :where(p, li, td) a { color: #10233a; font-weight: 600; text-decoration: underline; text-decoration-color: #ffc815; text-decoration-thickness: 3px; text-underline-offset: 5px; } .story :where(p, li, td, dd) a:not(.wp-element-button):hover { background: #ffc815; }
:where(.story, .is-root-container) :where(ul, ol):not([class*="gallery"]) { padding-left: 1.35em; } :where(.story, .is-root-container) li + li { margin-top: .5em; } :where(.story, .is-root-container) li::marker { color: #ad4a00; font-family: 'Schibsted Grotesk', Arial, sans-serif; font-weight: 700; }

.story .wp-block-image { margin-inline: 0; } .story .wp-block-image img { width: 100%; border-radius: 16px; } .single-post .story .wp-block-image img { cursor: zoom-in; } .story .wp-block-gallery img { border-radius: 12px; } .story figcaption, .is-root-container figcaption { margin: .7rem 0 0; color: #53626f; font: 400 .9688rem/1.45 'Hanken Grotesk', Arial, sans-serif; text-align: left; }
.story .wp-block-quote, .is-root-container .wp-block-quote, .story > blockquote { margin-inline: 0; padding: 0; border: 0; color: #10233a; font-size: 1.5em; line-height: 1.45; } .story cite, .is-root-container cite { display: block; margin-top: .75rem; color: #53626f; font: 400 1rem 'Hanken Grotesk', Arial, sans-serif; }
.story .wp-block-pullquote, .is-root-container .wp-block-pullquote { margin-inline: 0; padding: 2rem 2.200rem; border: 0; border-radius: 18px; background: #10233a; color: #fff; text-align: left; font: 650 1.600rem/1.35 'Schibsted Grotesk', Arial, sans-serif; } .wp-block-pullquote p { margin: 0; font-size: inherit !important; line-height: inherit !important; } .story .wp-block-pullquote cite { color: #cfdce6; }

/* Tables scroll sideways on small screens */
.story .wp-block-table, .story > table { margin-inline: 0; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px #d5e0e7; } .story table, .is-root-container table { width: 100%; border-collapse: collapse; font: 400 1.0625rem/1.45 'Hanken Grotesk', Arial, sans-serif; font-variant-numeric: tabular-nums; } .story .wp-block-table table { table-layout: auto; } .story :is(th, td), .is-root-container table :is(th, td) { min-width: 8.500rem; padding: .95rem 1.2rem; border: 0; border-bottom: 1px solid #d5e0e7; overflow-wrap: normal; text-align: left; vertical-align: top; } .story tbody tr:last-child td { border-bottom: 0; } .story th, .is-root-container table th { background: #10233a; color: #fff; font-weight: 700; } .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: #f5f9fb; } .story tbody td:first-child { color: #10233a; font-weight: 650; }

.story .wp-block-button__link, .is-root-container .wp-block-button__link { padding: .95rem 1.500rem; border-radius: 9px; background-color: #10233a; color: #fff; font: 700 1.0625rem/1.2 'Hanken Grotesk', Arial, sans-serif; text-decoration: none; } .story .wp-block-button__link:hover { background-color: #0a1829; color: #ffc815; }
.story .wp-block-details, .is-root-container .wp-block-details { margin-top: .75rem; padding: 0; border-radius: 14px; background: #eaf2f7; } .story h2 + .wp-block-details { margin-top: 1rem; } .story .wp-block-details summary, .is-root-container .wp-block-details summary { padding: 1.1rem 1.3rem; border-radius: 14px; color: #10233a; font: 650 1.1875rem/1.4 'Schibsted Grotesk', Arial, sans-serif; cursor: pointer; } .story .wp-block-details > :not(summary) { margin: 0; padding: 0 1.3rem 1.2rem; }
.story .wp-block-separator, .is-root-container .wp-block-separator { width: 100%; max-width: 100%; height: 3px; margin-block: 2.500rem; border: 0; opacity: 1; background: repeating-linear-gradient(90deg, #ffc815 0 22px, transparent 22px 38px); }

/* Ready-made sections (Patterns > AeroCab article sections) */
.aj-box { padding: 1.600rem 1.800rem; border-radius: 18px; } .aj-box > * { margin-block: 0; } .aj-box > * + * { margin-top: .75rem; } .aj-box-tip { background: #fff4cf; } .aj-box-note { background: #eaf2f7; } .aj-box-book { background: #ffc815; color: #0a1829; } .story .aj-box ul, .is-root-container .aj-box ul { margin-bottom: 0; }
.aj-compare { gap: 1rem; } .aj-compare .wp-block-column { padding: 1.500rem 1.600rem; border-radius: 18px; background: #eaf2f7; } .aj-compare .wp-block-column > * { margin-block: 0; } .aj-compare .wp-block-column > * + * { margin-top: .75rem; }

/* Link to another story, placed in the middle by the theme */
.story > .also { margin-block: 2.500rem; } .also > a { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 1.4rem; padding: .8rem; border-radius: 18px; background: #10233a; color: #fff; text-decoration: none; font-family: 'Hanken Grotesk', Arial, sans-serif; line-height: 1.35; } .also .ph { height: 118px; border-radius: 12px; } .also small { display: block; margin-bottom: .3rem; color: #ffc815; font-size: 1rem; } .also b { font: 650 1.25rem/1.32 'Schibsted Grotesk', Arial, sans-serif; } .also > a:hover b { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 640px) {
	:where(.story, .is-root-container) { font-size: calc(1.125rem * var(--text, 1)); line-height: 1.7; } .story .wp-block-pullquote { padding: 1.400rem; font-size: 1.300rem; } .aj-box { padding: 1.25rem; } .also > a { grid-template-columns: 96px 1fr; gap: 1rem; } .also .ph { height: 96px; } .also b { font-size: 1.0625rem; }
}

/* ---- Photos and videos ---- */
.story img:not([src]), .story .wp-block-video:empty, .story .wp-block-gallery:empty { display: none; }
.story :is(.wp-block-video, .wp-block-embed, .wp-block-gallery) { margin-inline: 0; }
.story .wp-block-video video { display: block; width: 100%; max-height: 80vh; border-radius: 16px; background: #0a1829; }
.story :is(.wp-block-embed-youtube, .wp-block-embed-vimeo) .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #0a1829; }
.story .wp-block-embed .wp-block-embed__wrapper::before { display: none; }
.story :is(.wp-block-embed-youtube, .wp-block-embed-vimeo) iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story .wp-embed-aspect-9-16 .wp-block-embed__wrapper { aspect-ratio: 9 / 16; max-width: 360px; margin-inline: auto; }
.story > iframe, .story > p > iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
.story .wp-block-gallery.has-nested-images { gap: 12px; } .story .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 12px; }
.story .wp-block-media-text { gap: 1.5rem; } .story .wp-block-media-text .wp-block-media-text__content { padding: 0; } .story .wp-block-media-text__content > * { margin-block: 0; } .story .wp-block-media-text__content > * + * { margin-top: .8rem; } .story .wp-block-media-text__media :is(img, video) { display: block; width: 100%; border-radius: 16px; } .single-post .story .wp-block-media-text__media img { cursor: zoom-in; }
@media (max-width: 600px) { .story .wp-block-gallery.has-nested-images { gap: 8px; } .story .wp-block-media-text { gap: 1rem; } }
