/*
Theme Name: AriHub
Theme URI: https://www.arihub.com/
Author: AriHub
Author URI: https://www.arihub.com/
Description: The AriHub blog theme. A fast block theme in the arihub.com design: brand colours and type, automatic dark mode, clean article pages and a navy header and footer. No page builder, no jQuery and no outside requests.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.5.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arihub
Tags: blog, one-column, three-columns, custom-colors, custom-menu, editor-style, featured-images, full-site-editing, block-patterns, wide-blocks, accessibility-ready, translation-ready
*/

/* Dark mode follows the visitor's system setting, as on arihub.com. Only the palette changes. */
@media (prefers-color-scheme: dark) {
	:root {
		--wp--preset--color--base: #0A0F20;
		--wp--preset--color--surface: #111933;
		--wp--preset--color--surface-2: #18213F;
		--wp--preset--color--ink: #EEF1F8;
		--wp--preset--color--muted: #A3ABC4;
		--wp--preset--color--line: #253052;
		--wp--preset--color--link: #6CCBF2;
		color-scheme: dark;
	}
}

html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { text-underline-offset: 3px; }

:focus-visible { outline: 3px solid #0B6E99; outline-offset: 2px; border-radius: 6px; }
.ah-navy :focus-visible, .ah-dark-focus :focus-visible, pre:focus-visible { outline-color: #6CCBF2; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: #6CCBF2; } }

.skip-link.screen-reader-text:focus { background: #fff; color: #0E1428; border-radius: 8px; z-index: 100000; }

/* Navy bands: header, mastheads, footer, call-to-action boxes. */
.ah-navy { position: relative; isolation: isolate; overflow: hidden; }
/* The header has no glow to clip, and its language list must hang below it over the page. */
.ah-header.ah-navy { overflow: visible; z-index: 20; }
.ah-navy.ah-glow::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(640px 420px at 88% -10%, rgba(240,113,171,.20), transparent 70%), radial-gradient(560px 380px at 6% 110%, rgba(34,171,226,.16), transparent 70%); }
.ah-navy a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--on-navy); }
.ah-navy :where(h1, h2, h3, h4) { color: #fff; }
.ah-grad-text { background: var(--wp--preset--gradient--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ah-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--on-navy-muted); }
.ah-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--gradient--brand); }

/* Header */
.ah-header .ah-brand { display: block; line-height: 0; margin-right: auto; border-radius: 6px; }
.ah-header .ah-brand img { height: 38px; width: auto; display: block; }
.ah-header .ah-cta .wp-block-button__link { padding: 8px 14px; font-size: 15px; }

/* AriHub menu block (classic menu location, so multilingual plugins keep their per-language menus). */
.ah-menu { display: flex; align-items: center; }
.ah-menu__list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ah-menu__list a { display: block; padding: 8px 13px; border-radius: 9px; color: var(--wp--preset--color--on-navy-muted); text-decoration: none; font-weight: 550; font-size: 15px; }
.ah-menu__list a:hover, .ah-menu__list .current-menu-item > a, .ah-menu__list [aria-current] { color: #fff; background: rgba(255,255,255,.07); }
.ah-menu__list .sub-menu { display: none; }
.ah-menu__toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,.26); color: #fff; border-radius: 9px; padding: 7px 12px; font: 600 15px/1.2 inherit; cursor: pointer; }
@media (max-width: 860px) {
	.ah-header .ah-bar { flex-wrap: wrap; }
	.ah-menu { order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; }
	/* Pinned to the first row (logo, language), so it lines up with them whether the menu is open or closed. */
	.ah-header .ah-bar { row-gap: 0; }
	.ah-menu__toggle:not([hidden]) { display: inline-block; position: absolute; top: 0; height: 39px; padding-top: 0; padding-bottom: 0; right: max(20px, env(safe-area-inset-right)); }
	.ah-menu.is-open .ah-menu__list, .ah-menu:not(.has-js) .ah-menu__list { margin-top: 12px; }
	.ah-menu__list { flex-direction: column; padding: 8px 0 4px; }
	.ah-menu.has-js .ah-menu__list { display: none; }
	.ah-menu.has-js.is-open .ah-menu__list { display: flex; }
	.ah-header .ah-cta { display: none; }
	.ah-header .ah-bar { padding-right: 96px; }
}

/* Post cards */
.ah-cards .wp-block-post { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--medium); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.ah-cards .wp-block-post:hover { border-color: var(--wp--preset--color--mid); }
.ah-cards .wp-block-post:focus-within { border-color: var(--wp--preset--color--mid); }
.ah-cards .wp-block-post-featured-image { margin: 0; }
.ah-cards .wp-block-post-featured-image img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.ah-cards .ah-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ah-cards .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; } /* Whole card is one link; the title stays the link text. */
.ah-cards .wp-block-post { position: relative; }
.ah-cards .wp-block-post-terms a { position: relative; z-index: 1; }
.ah-cards .ah-card-body > .wp-block-post-date { margin-top: auto; }

/* Blog index: search and category buttons in the masthead */
.ah-navy .wp-block-search { max-width: 560px; margin-top: var(--wp--preset--spacing--40); }
.ah-navy .wp-block-search__input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: #fff; }
.ah-navy .wp-block-search__input::placeholder { color: var(--wp--preset--color--on-navy-muted); opacity: 1; }
.ah-chips { margin-top: var(--wp--preset--spacing--40); }
.ah-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ah-chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: var(--wp--preset--color--on-navy) !important; text-decoration: none; font-size: 14px; font-weight: 550; line-height: 1.3; }
.ah-chips a:hover { background: rgba(255,255,255,.08); }
.ah-chips a[aria-current] { background: var(--wp--preset--gradient--brand); border-color: transparent; color: var(--wp--preset--color--navy) !important; }

/* Blog index: the first post of each page is a wide featured card */
.ah-cards--list .wp-block-post-template > .wp-block-post:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
	.ah-cards--list .wp-block-post-template > .wp-block-post:first-child { display: grid; grid-template-columns: 1.25fr 1fr; }
	.ah-cards--list .wp-block-post-template > .wp-block-post:first-child .wp-block-post-featured-image { height: 100%; }
	.ah-cards--list .wp-block-post-template > .wp-block-post:first-child .wp-block-post-featured-image img { height: 100%; aspect-ratio: auto; min-height: 320px; }
	.ah-cards--list .wp-block-post-template > .wp-block-post:first-child .ah-card-body { padding: 36px 36px 32px; justify-content: center; }
	.ah-cards--list .wp-block-post-template > .wp-block-post:first-child .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large) !important; }
}
.ah-cards .wp-block-post-terms a { text-decoration: none; }
.ah-card-meta { margin-top: auto !important; gap: 0 !important; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); align-items: center; }
.ah-card-meta > * { margin: 0 !important; }
.ah-card-meta .ah-reading-time::before { margin: 0 8px; }
.ah-cards .wp-block-post-title { line-height: 1.2; margin: 2px 0 0 !important; }
.ah-cards .wp-block-post-excerpt { margin: 0 !important; }
.ah-cards .wp-block-post-excerpt__excerpt { margin: 0; }

/* Article */
.ah-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--wp--preset--color--on-navy-muted); font-size: var(--wp--preset--font-size--small); }
.ah-meta > * { margin: 0 !important; }
.ah-navy .wp-block-post-terms a { color: #fff; text-decoration: none; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px 10px; }
.ah-navy .wp-block-post-date, .ah-navy .wp-block-post-author-name { color: var(--wp--preset--color--on-navy-muted); }
.ah-article .wp-block-post-content > * + h2 { margin-top: 2.5rem; }
.ah-article .wp-block-post-content > * + h3 { margin-top: 2rem; }
.ah-article .wp-block-post-content :where(ul, ol) { padding-left: 1.25rem; }
.ah-article .wp-block-post-content :where(li + li) { margin-top: .35rem; }
.ah-article .wp-block-post-content :where(img) { border-radius: var(--wp--custom--radius--medium); }
.ah-article .wp-block-post-content :where(table) { border-collapse: collapse; width: 100%; }
.ah-article .wp-block-post-content :where(th, td) { border: 1px solid var(--wp--preset--color--line); padding: 8px 10px; text-align: left; }
.ah-article .wp-block-table { overflow-x: auto; }
.ah-reading-time::before { content: "·"; margin-right: 14px; }

/* Boxes used by the patterns */
.ah-box { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--medium); }
.ah-note { border-left: 4px solid var(--wp--preset--color--blue); }
.ah-faq details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 14px 0; }
.ah-faq summary { cursor: pointer; font-weight: 650; }

/* Footer */
.ah-footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 32px; }
.ah-footer-grid .ah-about p { margin-top: 14px; max-width: 34ch; }
.ah-footer-grid .ah-legal { grid-column: 1 / -1; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; }
@media (max-width: 960px) { .ah-footer-grid { grid-template-columns: 1fr 1fr; } .ah-footer-grid .ah-about { grid-column: 1 / -1; } }
.ah-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ah-footer a { color: var(--wp--preset--color--on-navy-muted) !important; text-decoration: none; }
.ah-footer a:hover { color: #fff !important; }
.ah-footer .ah-fh { color: #fff; font: 650 14px/1.3 var(--wp--preset--font-family--body); letter-spacing: .02em; margin: 0 0 12px; }
.ah-footer .ah-brand { display: inline-block; line-height: 0; border-radius: 6px; }
.ah-footer .ah-legal { border-top: 1px solid #26304F; }
.ah-footer .ah-foot-cta { margin-top: 20px; min-height: 0; padding: 9px 16px; border-radius: 10px; font-size: .875rem; color: #0B1226 !important; }
.ah-footer .ah-foot-cta:hover { color: #0B1226 !important; }
.ah-footer .ah-social { display: flex; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.ah-footer .ah-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #26304F; }
.ah-footer .ah-social a:hover { border-color: #4A557A; background: rgba(255, 255, 255, .05); }
.ah-flag { display: inline-block; vertical-align: -1px; margin-left: 4px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.ah-nowrap { white-space: nowrap; }
.ah-linkbutton { background: none; border: 0; padding: 0; font: inherit; color: var(--wp--preset--color--on-navy-muted); cursor: pointer; text-decoration: none; }
.ah-linkbutton:hover { color: #fff; }

/* Search form inside navy bands and the 404 page */
.wp-block-search__input { border-radius: 9px; border: 1.5px solid var(--wp--preset--color--line); padding: 10px 12px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); }
.wp-block-search__button { margin-left: 8px !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
	.ah-header, .ah-footer, .ah-related, .wp-block-query-pagination, .wp-block-post-navigation-link { display: none !important; }
	.ah-navy { background: none !important; color: #000 !important; }
	.ah-navy :where(h1, h2, h3) { color: #000 !important; }
}

/* ------------------------------------------------------------------ */
/* Single post                                                         */
/* ------------------------------------------------------------------ */

/* Reading progress */
.ah-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .ah-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .ah-progress { top: 46px; } }
.ah-progress i { display: block; height: 100%; background: linear-gradient(90deg, #22ABE2, #898EC7 50%, #F071AB); transform-origin: 0 50%; transform: scaleX(0); }

/* Hero */
.ah-post-hero .ah-post-title { font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.035em; color: #fff; }
.ah-chip { margin: 0; }
.ah-chip a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: linear-gradient(100deg, #22ABE2, #898EC7 50%, #F071AB) !important; color: #0B1226 !important; font-size: .8125rem; font-weight: 650; text-decoration: none; }
.ah-chip .wp-block-post-terms__separator { display: none; }
.ah-chip a + a { margin-left: 6px; }
.ah-lead { margin: var(--wp--preset--spacing--40) 0 0 !important; max-width: 680px; }
.ah-lead .wp-block-post-excerpt__excerpt { margin: 0; font-size: clamp(1.125rem, 2vw, 1.35rem); line-height: 1.55; color: #C9D0E6; }
.ah-byline { display: flex; align-items: center; gap: 12px; margin-top: var(--wp--preset--spacing--40); color: var(--wp--preset--color--on-navy-muted); font-size: .9375rem; line-height: 1.4; }
.ah-byline__text { display: grid; gap: 2px; }
.ah-byline b { color: #fff; font-weight: 650; }
.ah-byline__facts { display: flex; flex-wrap: wrap; column-gap: 0; }
.ah-byline__facts > * + *::before { content: "·"; margin: 0 8px; color: #6B7493; }
.ah-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, #22ABE2, #898EC7 50%, #F071AB); color: #0B1226; font: 750 .95rem/1 var(--wp--preset--font-family--display); letter-spacing: -.02em; }
.ah-avatar--lg { width: 60px; height: 60px; font-size: 1.3rem; }

/* Featured image pulled up over the hero */
.ah-post-hero:has(+ .ah-cover img) { padding-bottom: clamp(6rem, 12vw, 9rem) !important; }
.ah-cover { max-width: 1048px; margin: clamp(-8rem, -10vw, -4.5rem) auto 0 !important; padding: 0 24px; position: relative; z-index: 1; }
.ah-cover:not(:has(img)) { display: none; }
.ah-cover .wp-block-post-featured-image { margin: 0; }
.ah-cover img { border-radius: 24px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -32px rgba(11, 18, 38, .55); }

/* Article and side column */
.ah-doc { display: grid; grid-template-columns: minmax(0, 720px) 250px; gap: clamp(40px, 6vw, 80px); justify-content: center; align-items: start; }
.ah-doc:not(:has(.ah-toc, .ah-share)) { grid-template-columns: minmax(0, 720px); }
.ah-doc > * { margin-block: 0; min-width: 0; }
.ah-aside__sticky { position: sticky; top: 28px; display: grid; gap: 28px; }
.admin-bar .ah-aside__sticky { top: 60px; }
.ah-aside__sticky > * { margin: 0; }

/* Body text: the same font as arihub.com, a little larger for long reading */
.ah-prose > :where(p, ul, ol, blockquote p) { font-family: var(--wp--preset--font-family--body); font-size: clamp(1.0625rem, 1.03rem + .2vw, 1.1875rem); line-height: 1.7; }
.ah-prose > :where(p, ul, ol) { color: var(--wp--preset--color--ink); }
.ah-prose > p:first-child::first-letter { float: left; margin: .06em .12em 0 0; font: 800 4.3em/.8 var(--wp--preset--font-family--display); background: linear-gradient(135deg, #22ABE2, #898EC7 55%, #F071AB); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ah-prose > * + h2 { margin-top: 2.6em; }
.ah-prose > * + h3 { margin-top: 2em; }
.ah-prose h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); line-height: 1.12; letter-spacing: -.025em; scroll-margin-top: 24px; }
.ah-prose h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); scroll-margin-top: 24px; }
.ah-prose :where(ul, ol) { padding-left: 1.25rem; }
.ah-prose :where(li + li) { margin-top: .4rem; }
.ah-prose li::marker { color: var(--wp--preset--color--mid); }
.ah-prose :where(img) { border-radius: var(--wp--custom--radius--large); }
.ah-prose .wp-block-image figcaption, .ah-prose figure figcaption { font-size: .875rem; color: var(--wp--preset--color--muted); text-align: center; margin-top: 10px; }
.ah-prose :where(table) { border-collapse: collapse; width: 100%; font-size: 1rem; }
.ah-prose :where(th, td) { border: 1px solid var(--wp--preset--color--line); padding: 8px 10px; text-align: left; }
.ah-prose .wp-block-table { overflow-x: auto; }
.ah-prose :where(a) { text-decoration-thickness: 1px; }
.ah-prose :where(a):hover { text-decoration-thickness: 2px; }

/* Quotes: a gradient rule and the display face */
.ah-prose .wp-block-quote, .ah-prose > blockquote { margin: 2.2em 0; padding: 4px 0 4px 26px; border: 0; border-left: 4px solid transparent; border-image: linear-gradient(#22ABE2, #F071AB) 1; }
.ah-prose .wp-block-quote p { font: 650 clamp(1.4rem, 2.6vw, 1.85rem)/1.28 var(--wp--preset--font-family--display); letter-spacing: -.02em; color: var(--wp--preset--color--ink); }
.ah-prose .wp-block-quote cite { display: block; margin-top: 10px; font-size: .9375rem; font-style: normal; color: var(--wp--preset--color--muted); }
.ah-prose .wp-block-pullquote { border-color: var(--wp--preset--color--mid); }

/* Group styles: Card and Tip */
.is-style-ah-box { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 20px; padding: 24px 26px; margin-block: 2em; box-shadow: 0 14px 34px -22px rgba(11, 18, 38, .35); }
.is-style-ah-tip { border: 2px solid transparent; border-radius: 20px; padding: 20px 24px; margin-block: 2em; background: linear-gradient(var(--wp--preset--color--surface), var(--wp--preset--color--surface)) padding-box, linear-gradient(100deg, #22ABE2, #898EC7 50%, #F071AB) border-box; }
.ah-prose :where(.is-style-ah-box, .is-style-ah-tip) > :first-child { margin-top: 0; }
.ah-prose :where(.is-style-ah-box, .is-style-ah-tip) > :last-child { margin-bottom: 0; }
.ah-prose :where(.is-style-ah-box, .is-style-ah-tip) :where(p, li) { font-family: var(--wp--preset--font-family--body); font-size: 1.0625rem; line-height: 1.6; }
.ah-prose .is-style-ah-box h3 { font-size: 1.2rem; margin-bottom: .5em; }

/* "On this page": sticky list beside the post, fold-out list on phones */
.ah-toc { max-height: calc(100vh - 220px); overflow-y: auto; padding-left: 18px; background: linear-gradient(var(--wp--preset--color--line), var(--wp--preset--color--line)) left top / 2px 100% no-repeat; font-size: .9375rem; }
.ah-toc__title { margin: 0 0 8px; font: 700 .875rem/1.3 var(--wp--preset--font-family--display); color: var(--wp--preset--color--ink); }
.ah-toc ul, .ah-toc-m ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ah-toc a { position: relative; display: block; padding: 5px 0; line-height: 1.4; color: var(--wp--preset--color--muted); text-decoration: none; }
.ah-toc a:hover { color: var(--wp--preset--color--ink); text-decoration: underline; }
.ah-toc a[aria-current="true"] { color: var(--wp--preset--color--ink); font-weight: 600; }
.ah-toc a[aria-current="true"]::before { content: ""; position: absolute; left: -18px; top: 3px; bottom: 3px; width: 2px; border-radius: 2px; background: linear-gradient(#22ABE2, #F071AB); }
.ah-toc-m { display: none; margin: 0 0 28px; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; background: var(--wp--preset--color--surface); padding: 12px 18px; }
.ah-toc-m summary { cursor: pointer; font: 700 1rem/1.4 var(--wp--preset--font-family--display); color: var(--wp--preset--color--ink); padding: 4px 0; }
.ah-toc-m nav { margin-top: 6px; }
.ah-toc-m a { display: block; padding: 7px 0; color: var(--wp--preset--color--muted); text-decoration: none; border-top: 1px solid var(--wp--preset--color--line); }
.ah-toc-m a[aria-current="true"] { color: var(--wp--preset--color--ink); font-weight: 600; }

/* Copy link and RSS */
.ah-share { display: grid; gap: 10px; }
.ah-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; font: 650 .9375rem/1.2 var(--wp--preset--font-family--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.ah-btn--o { background: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--line); color: var(--wp--preset--color--ink); }
.ah-btn--o:hover { border-color: var(--wp--preset--color--mid); }
.ah-btn--p { background: linear-gradient(100deg, #22ABE2, #898EC7 50%, #F071AB); color: #0B1226; }
.ah-btn--p:hover { filter: brightness(1.06); }
.ah-share__status:empty { display: none; }
.ah-share__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* About the author */
.ah-author { display: flex; gap: 18px; align-items: flex-start; margin-top: var(--wp--preset--spacing--60); padding: 26px; border: 1px solid var(--wp--preset--color--line); border-radius: 24px; background: var(--wp--preset--color--surface); }
.ah-author p { margin: 0; }
.ah-author__name { font: 700 1.2rem/1.3 var(--wp--preset--font-family--display); color: var(--wp--preset--color--ink); }
.ah-author__bio { margin-top: 6px !important; color: var(--wp--preset--color--muted); font-size: 1rem; line-height: 1.6; }

/* Post cards (blog list, Keep reading): lift on hover */
.ah-cards .wp-block-post { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ah-cards .wp-block-post:hover, .ah-cards .wp-block-post:focus-within { transform: translateY(-4px); box-shadow: 0 24px 48px -26px rgba(76, 70, 180, .45); }
.ah-cards .wp-block-post-featured-image img { transition: transform .4s ease; }
.ah-cards .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.ah-cards .wp-block-post-featured-image { overflow: hidden; }

/* Comments */
.ah-doc__body .wp-block-comments { margin-top: var(--wp--preset--spacing--60); }
.ah-doc__body .comment-form :where(input[type="text"], input[type="email"], input[type="url"], textarea) { width: 100%; padding: 12px 14px; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); font: inherit; }
.ah-doc__body .comment-form :where(input, textarea):focus-visible { border-color: var(--wp--preset--color--mid); }
.ah-doc__body .comment-form label { font-weight: 600; font-size: .9375rem; }

@media (max-width: 1024px) {
	.ah-doc { grid-template-columns: minmax(0, 720px); }
	.ah-aside .ah-toc { display: none; }
	.ah-toc-m { display: block; }
	.ah-aside__sticky { position: static; }
	.ah-share { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
@media (max-width: 600px) {
	.ah-cover { padding: 0 16px; }
	.ah-cover img { border-radius: 16px; }
	.ah-author { flex-direction: column; padding: 22px; }
}
@media print {
	.ah-toc, .ah-toc-m, .ah-aside, .ah-progress { display: none !important; }
	.ah-doc { display: block; }
	.ah-prose > p:first-child::first-letter { color: #000; background: none; }
}

/* Language switcher */
.screen-reader-text:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ah-lang { position: relative; flex: 0 0 auto; }
.ah-lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 10px; border-radius: 9px; color: var(--wp--preset--color--on-navy-muted); font-weight: 600; font-size: .875rem; }
.ah-lang summary::-webkit-details-marker { display: none; }
.ah-lang summary:hover, .ah-lang[open] summary { color: #fff; background: rgba(255, 255, 255, .07); }
.ah-lang summary:focus-visible { outline: 2px solid #6CCBF2; outline-offset: 2px; }
.ah-lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 190px; list-style: none; margin: 0; padding: 6px; background: var(--wp--preset--color--navy-2); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.ah-lang a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--wp--preset--color--on-navy); text-decoration: none; font-size: .9375rem; }
.ah-lang a:hover { background: rgba(255, 255, 255, .08); }
.ah-lang a:focus-visible { outline: 2px solid #6CCBF2; outline-offset: -2px; }
.ah-lang a[aria-current] { color: #fff; font-weight: 650; background: rgba(255, 255, 255, .06); }
.ah-blog-note { margin-top: var(--wp--preset--spacing--30); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--on-navy-muted); }

/* Products menu in the header, the same as on the static site */
.ah-bar { position: relative; }
.ah-menu__list { position: static; }
.ah-menu__list .nav-prod { position: static; }
.prod-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 13px; border-radius: 9px; color: var(--wp--preset--color--on-navy-muted); font-weight: 550; font-size: 15px; }
.prod-menu summary::-webkit-details-marker { display: none; }
.prod-menu summary::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.prod-menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.prod-menu summary:hover, .prod-menu[open] summary { color: #fff; background: rgba(255,255,255,.07); }
.prod-menu .mega { position: absolute; left: auto; right: 0; top: calc(100% + 10px); z-index: 30; width: min(720px, calc(100vw - 40px)); background: #121B36; border: 1px solid #26304F; border-radius: 18px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.prod-menu .mega ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ah-menu__list .prod-menu .mega li a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; color: var(--wp--preset--color--on-navy); text-decoration: none; font-weight: 400; font-size: inherit; }
.ah-menu__list .prod-menu .mega li a:hover { background: rgba(255,255,255,.06); }
.prod-menu .mi { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(34,171,226,.22), rgba(240,113,171,.22)); color: #E6E9F5; }
.prod-menu .mi svg { width: 19px; height: 19px; }
.prod-menu .mt { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: center; min-width: 0; }
.prod-menu .mt b { font: 650 15px/1.2 var(--wp--preset--font-family--display); color: #fff; }
.prod-menu .mt em { font-style: normal; font: 650 11px/1 var(--wp--preset--font-family--body); padding: 4px 7px; border-radius: 99px; justify-self: start; white-space: nowrap; background: rgba(242,194,94,.14); color: #F2C25E; }
.prod-menu .mt em.s-live { background: rgba(79,209,160,.14); color: #7FE3BE; }
.prod-menu .mt em.s-idea { background: rgba(185,184,242,.16); color: #CFCEF7; }
.prod-menu .mt span { grid-column: 1 / -1; color: var(--wp--preset--color--on-navy-muted); font-size: 13.5px; line-height: 1.45; }
.prod-menu .mega-foot { display: flex; gap: 18px; flex-wrap: wrap; margin: 6px 0 0; padding: 12px 12px 4px; border-top: 1px solid #26304F; }
.ah-menu__list .prod-menu .mega-foot a { display: inline; padding: 0; color: #7FD0F2; font-size: 14px; font-weight: 650; background: none; }
.ah-menu__list .prod-menu .mega-foot a:hover { text-decoration: underline; background: none; }
@media (max-width: 860px) {
	.prod-menu .mega { position: static; width: auto; box-shadow: none; margin: 6px 0 4px; padding: 6px; }
	.prod-menu .mega ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .prod-menu summary::after { transition: none; } }
