/* =====================================================================
   AWWRT Blocks — what block markup needs to look like the old theme.
   legacy.css (the old compiled CSS) does almost everything; this file only
   covers the places where WordPress blocks wrap things differently.
   Values are copied from the old input.css, with the source rule named.
   ===================================================================== */

/* ---- 0. Base: no block spacing or link underlines the old theme did not have */
.wp-site-blocks > * { margin-block: 0; }
.wp-block-template-part { margin: 0; }
.wp-block-navigation a,
.wp-block-navigation a:hover,
.wp-block-navigation a:focus { text-decoration: none; }

/* Room for the fixed header on pages whose first section does not add it. */
.awwrt-main { padding-top: 72px; min-height: 60vh; }

/* ---- 1. Header ---------------------------------------------------- */

/* Logo is an Image block: no figure margin, no extra line box under it. */
.header-fixed .wp-block-image.awwrt-logo { margin: 0; line-height: 0; }
.header-fixed .wp-block-image.awwrt-logo a { display: block; }

/* Desktop tabs: `space-x-4` between tabs (old component-nav-links). */
/* Old tabs sat in a plain flex row, so all stretched to the active tab's height
   (its 3px underline makes it 39px). */
.awwrt-nav-desktop .wp-block-navigation__container { gap: 1rem; align-items: stretch; }
.awwrt-nav-desktop .wp-block-navigation-item { display: flex; align-items: stretch; }
.awwrt-nav-desktop .wp-block-navigation-item__content { display: block; }
/* Every tab keeps a 3px underline, transparent unless it is the current page.
   Before 24 Nov only the current tab had one, so the bar was 71px tall on pages with a
   current tab and 68px on Home (no tab is current there since App became a dropdown):
   the logo and tabs jumped 1.5px when moving between Home and Blogs. */
.header-fixed .awwrt-nav-desktop .nav-tab {
	border: 0 solid transparent;
	border-bottom-width: 3px;
}
.header-fixed .awwrt-nav-desktop .nav-tab.is-active {
	border-bottom-color: currentColor;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

/* Labels never break onto two lines ("SIGNU / P"). If the row does not fit,
   header-fit.js adds body.awwrt-header-compact and the phone menu button shows. */
.header-fixed .nav-tab,
.header-fixed .btn,
.awwrt-header-login a { white-space: nowrap; }
body.awwrt-header-compact .header-fixed .awwrt-desktop-only { display: none; }
body.awwrt-header-compact .header-fixed .awwrt-burger { display: flex; }

/* LOGIN text link = old `font-medium text-sm link-transition hover:text-[#a6b1c9]`. */
.awwrt-header-login { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.awwrt-header-login a { display: block; color: inherit; transition: color 0.4s var(--awwrt-ease, ease); }
.header-fixed .awwrt-header-login a:hover { color: #a6b1c9; }
.awwrt-header-buttons { gap: 0; }

/* ---- 1b. Dropdown tabs (App, Resources) — added 24 Nov 2026 --------
   Each is a Navigation "Submenu" block in the Main menu (Appearance → Editor →
   Navigation). WordPress builds it as a button (openSubmenusOnClick in
   patterns/header.php) and handles Esc, click-outside and the keyboard.
   ON A COMPUTER WITH A MOUSE IT OPENS ON HOVER (rules below + header-fit.js,
   which stops a mouse click from toggling it). Touch screens and the keyboard
   still open it with a tap / Enter.
   inc/menu.php gives the tab `.nav-tab.awwrt-dd-toggle`, moves the arrow INSIDE
   the button (`.awwrt-dd-arrow`, right after the word, so it can never drift from
   the text) and gives the links inside the panel `.awwrt-dd-link`. */
.awwrt-nav-desktop .wp-block-navigation-item.has-child { position: relative; align-items: stretch; }
/* Same size, weight, padding and hidden 3px underline as the link tabs (section 1). */
.awwrt-nav-desktop .wp-block-navigation-item .awwrt-dd-toggle {
	display: flex; align-items: center; gap: 6px;
	background: transparent; cursor: pointer;
	border: 0 solid transparent; border-bottom-width: 3px;
	font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 500;
	padding: 8px 12px;
}
.awwrt-nav-desktop .wp-block-navigation-item .awwrt-dd-toggle.is-active {
	border-bottom-color: currentColor; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
/* The arrow: part of the button's text line, so it moves with nothing but the word. */
.awwrt-nav-desktop .awwrt-dd-toggle .awwrt-dd-arrow {
	position: static; display: inline-flex; align-items: center;
	width: 10px; height: 10px; margin: 0; padding: 0;
	/* WordPress gives the arrow `background-color: inherit`; inside the button that
	   copied the hover highlight and painted a second square behind the arrow. */
	background: none !important; border: 0;
	pointer-events: none;
	/* same brightness as its word: it takes the tab's own opacity, nothing extra */
}
/* ONE motion: the arrow only turns (down → up), 0.25s ease-out, the same both ways.
   No fade, no scale. Turned off for people who ask for reduced motion. */
.awwrt-nav-desktop .awwrt-dd-arrow svg {
	width: 10px; height: 10px; stroke: currentColor; fill: none; display: block;
	transform: rotate(0deg);
	transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-reduced-motion: reduce) {
	.awwrt-nav-desktop .awwrt-dd-arrow svg { transition: none; }
}

/* Open: by hover (mouse), keyboard focus inside it, or a tap/Enter (aria-expanded). */
.awwrt-nav-desktop .awwrt-dd-toggle[aria-expanded="true"] .awwrt-dd-arrow svg { transform: rotate(180deg); }
.awwrt-nav-desktop .awwrt-dd-toggle[aria-expanded="true"] { opacity: 1; background-color: rgba(166, 177, 201, 0.15); }
@media (hover: hover) and (pointer: fine) {
	.awwrt-nav-desktop .has-child:hover > .awwrt-dd-toggle { opacity: 1; background-color: rgba(166, 177, 201, 0.15); }
	.awwrt-nav-desktop .has-child:hover > .awwrt-dd-toggle .awwrt-dd-arrow svg { transform: rotate(180deg); }
	.awwrt-nav-desktop .has-child:hover > .wp-block-navigation__submenu-container {
		visibility: visible !important; opacity: 1 !important;
		width: auto !important; height: auto !important; overflow: visible !important;
	}
}

/* The panel — frosted glass (24 Nov 2026, second pass: more room, see-through).
   Nested corners: panel radius 22 = row radius 12 + panel padding 10. */
.awwrt-nav-desktop .wp-block-navigation__submenu-container.wp-block-navigation-submenu {
	top: calc(100% + 12px) !important;
	left: -10px !important;
	min-width: 320px !important;
	padding: 10px !important;
	gap: 4px;
	/* see-through: a faint light wash over a thin dark tint, the page blurred behind */
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
		rgba(21, 23, 29, 0.55) !important;
	-webkit-backdrop-filter: blur(24px) saturate(1.6);
	backdrop-filter: blur(24px) saturate(1.6);
	border: 1px solid rgba(255, 255, 255, 0.10) !important;
	border-radius: 22px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.10),          /* light catching the top edge */
		0 30px 60px -20px rgba(0, 0, 0, 0.65),
		0 8px 20px -8px rgba(0, 0, 0, 0.45);
	color: #fafafa !important;
	z-index: 60;
	/* Open/close: a short fade and a 6px drop. WordPress hides the panel by shrinking it
	   to nothing (no room to animate), so its size is kept and only fade + visibility change. */
	width: auto !important; height: auto !important; overflow: visible !important;
	opacity: 0; visibility: hidden; pointer-events: none;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 0.22s !important;
}
/* shown: by tap / Enter (aria-expanded) or, with a mouse, by hover (§1b) */
.awwrt-nav-desktop .awwrt-dd-toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container.wp-block-navigation-submenu {
	opacity: 1 !important; visibility: visible !important; pointer-events: auto; transform: none;
	transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0, 0, 1), visibility 0s !important;
}
@media (hover: hover) and (pointer: fine) {
	.awwrt-nav-desktop .has-child:hover > .wp-block-navigation__submenu-container.wp-block-navigation-submenu {
		pointer-events: auto; transform: none;
		transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0, 0, 1), visibility 0s !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	.awwrt-nav-desktop .wp-block-navigation__submenu-container.wp-block-navigation-submenu { transform: none; transition: none !important; }
}
/* An invisible bridge over the 12px gap, so moving the mouse down does not lose the panel. */
.awwrt-nav-desktop .wp-block-navigation__submenu-container.wp-block-navigation-submenu::before {
	content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
/* WordPress also gives each row `background-color: inherit`, which painted the panel's
   colour a second time behind every row. Only the panel itself has a background. */
.awwrt-nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation-item { width: 100%; background: none !important; }

/* A row in the panel: label + one-line description, with room to breathe */
.awwrt-nav-desktop .awwrt-dd-link {
	display: flex !important; flex-direction: column; gap: 4px;
	width: 100%; padding: 14px 16px !important; border-radius: 12px;
	color: #fafafa; text-align: left; white-space: nowrap;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.awwrt-nav-desktop .awwrt-dd-link:hover,
.awwrt-nav-desktop .awwrt-dd-link:focus-visible {
	background-color: rgba(255, 255, 255, 0.07);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.awwrt-nav-desktop .awwrt-dd-link:focus-visible { outline: 2px solid #75b8ff; outline-offset: 2px; }
.awwrt-nav-desktop .awwrt-dd-link .wp-block-navigation-item__label {
	font-size: 15px; line-height: 1.35; font-weight: 500; color: #fff;
}
.awwrt-nav-desktop .awwrt-dd-link .wp-block-navigation-item__description {
	display: block; font-size: 13px; line-height: 1.45; font-weight: 400; color: #aab4c6;
}
/* the current page (25 Nov 2026): a white dot before the label, the other labels softer (was a blue label).
   Dot left edge = the tab's text; every label leaves room for it, so they stay lined up. */
.awwrt-nav-desktop .awwrt-dd-link { position: relative; padding-left: 28px !important; }
.awwrt-nav-desktop .awwrt-dd-link .wp-block-navigation-item__label { transition: color 0.2s ease; }
.awwrt-nav-desktop .awwrt-dd-link:not(.is-active):not(:hover):not(:focus-visible) .wp-block-navigation-item__label { color: #cfd4dd; }
.awwrt-nav-desktop .awwrt-dd-link.is-active .wp-block-navigation-item__description { color: #cfd4dd; }
.awwrt-nav-desktop .awwrt-dd-link.is-active::before {
	content: ""; position: absolute; left: 11px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: #fff;
}

/* Light version of the panel — Home's white section (24 Nov 2026).
   main.js adds `.is-light` to the header at the same moment the logo turns black
   (the crossover of the dark → white page fade), and removes it at the same point on
   the way back. Same glass, same spacing, light colours. */
.header-fixed.is-light .awwrt-nav-desktop .wp-block-navigation__submenu-container.wp-block-navigation-submenu {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.66) 100%),
		rgba(246, 247, 250, 0.4) !important;
	border-color: rgba(21, 23, 29, 0.08) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		0 30px 60px -20px rgba(21, 23, 29, 0.28),
		0 8px 20px -8px rgba(21, 23, 29, 0.16);
	color: #15171d !important;
}
.header-fixed.is-light .awwrt-nav-desktop .awwrt-dd-link .wp-block-navigation-item__label { color: #15171d; }
.header-fixed.is-light .awwrt-nav-desktop .awwrt-dd-link .wp-block-navigation-item__description { color: #5b6476; }
.header-fixed.is-light .awwrt-nav-desktop .awwrt-dd-link:hover,
.header-fixed.is-light .awwrt-nav-desktop .awwrt-dd-link:focus-visible {
	background-color: rgba(21, 23, 29, 0.05);
	box-shadow: inset 0 0 0 1px rgba(21, 23, 29, 0.06);
}
/* the current page: same dot, dark */
.header-fixed.is-light .awwrt-nav-desktop .awwrt-dd-link:not(.is-active):not(:hover):not(:focus-visible) .wp-block-navigation-item__label,
.header-fixed.is-light .awwrt-nav-desktop .awwrt-dd-link.is-active .wp-block-navigation-item__description { color: #3e4554; }
.header-fixed.is-light .awwrt-nav-desktop .awwrt-dd-link.is-active::before { background: #15171d; }
.header-fixed.is-light .awwrt-nav-desktop .awwrt-dd-link:focus-visible { outline-color: #0f7fd6; }

/* ---- 2. Phone drawer ----------------------------------------------- */

/* The old drawer was a fixed 400px, sized for exactly three tabs: a fourth tab
   pushed Signup off the bottom. Here it is as tall as its content (three tabs
   ≈ the old 400px), never taller than the screen, and scrolls if it must.
   It hides by sliding down with `translate`, a property separate from the
   `transform` main.js sets while dragging, so releasing a drag never snaps. */
.wp-block-group.mobile-drawer {
	bottom: 0;
	height: auto;
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
	translate: 0 calc(100% + 40px);
	/* Closed = hidden from the keyboard and screen readers too (the old drawer
	   was only moved off-screen, so Tab walked through its invisible links).
	   visibility switches after the slide-down, and instantly on open. */
	visibility: hidden;
	transition: translate 0.5s ease-in-out, visibility 0s linear 0.5s, background-color 0.25s ease, box-shadow 0.25s ease;
}
.wp-block-group.mobile-drawer.is-open {
	translate: none;
	visibility: visible;
	transition: translate 0.5s ease-in-out, visibility 0s, background-color 0.25s ease, box-shadow 0.25s ease;
}
.mobile-drawer > * { flex-shrink: 0; }

/* The old rows were sibling <a>s; the Navigation block puts each in an <li>. */
.mobile-drawer .drawer-nav .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}
.mobile-drawer .drawer-nav .wp-block-navigation-item { width: 100%; }
.mobile-drawer .drawer-nav .wp-block-navigation-item__content { width: 100%; }
/* old `.mobile-drawer .nav-tab + .nav-tab` hairline */
.mobile-drawer .drawer-nav .wp-block-navigation-item + .wp-block-navigation-item > .nav-tab {
	border-top: 1px solid rgba(166, 177, 201, 0.18);
}
/* Dropdown groups in the drawer (24 Nov 2026): the group name is a small heading
   (inc/menu.php swaps the toggle for p.drawer-group-label) and its links are always
   shown under it, as ordinary drawer rows. No descriptions here, to stay compact. */
.mobile-drawer .drawer-nav .wp-block-navigation-item.has-child { flex-direction: column; align-items: stretch; }
/* a row after a group already has the group's line: one line, not two */
.mobile-drawer .drawer-nav .wp-block-navigation-item.has-child + .wp-block-navigation-item > .nav-tab { border-top: 0; }
.mobile-drawer .drawer-nav .wp-block-navigation-item.has-child + .wp-block-navigation-item,
.mobile-drawer .drawer-nav .wp-block-navigation-item + .wp-block-navigation-item.has-child {
	border-top: 1px solid rgba(166, 177, 201, 0.18);
}
.mobile-drawer .drawer-group-label {
	margin: 0; padding: 16px 16px 4px;
	font-size: 12px; line-height: 1.4; font-weight: 500;
	letter-spacing: 0.06em; text-transform: uppercase; color: #8b94a7;
}
.mobile-drawer .drawer-nav .wp-block-navigation__submenu-container {
	/* `inherit`, never `visible`: the drawer hides itself when closed, and a forced
	   `visible` here kept these links reachable with Tab while it was shut. */
	position: static !important; visibility: inherit !important; opacity: 1 !important;
	width: 100% !important; height: auto !important; min-width: 0 !important; overflow: visible !important;
	display: flex; flex-direction: column; padding: 0 !important; margin: 0;
	background: transparent !important; border: 0 !important; box-shadow: none;
	color: #fff !important; /* WordPress gives dropdown lists their own (dark) text colour */
}
.mobile-drawer .drawer-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__description { display: none; }
/* Same row as the other drawer links (WordPress pads dropdown links differently). */
.mobile-drawer .drawer-nav .wp-block-navigation__submenu-container .nav-tab { padding: 0 12px 0 16px; color: inherit; }
/* the current page: the same dot as the desktop panel, on every drawer row (25 Nov 2026; was blue text and a
   blue bar). Dot lines up with the group names; every label leaves room for it. */
.mobile-drawer .drawer-nav .nav-tab { padding-left: 33px !important; padding-right: 16px !important; color: #cfd4dd; opacity: 1; transition: color 0.25s ease, background-color 0.25s ease; }
.mobile-drawer .drawer-nav .wp-block-navigation__submenu-container .nav-tab { color: #cfd4dd; }
.mobile-drawer .drawer-nav .nav-tab.is-active,
.mobile-drawer .drawer-nav .wp-block-navigation__submenu-container .nav-tab.is-active { color: #fff; }
.mobile-drawer .drawer-nav .nav-tab.is-active::before {
	left: 16px; width: 6px; height: 6px; border-radius: 50%; background-color: #fff;
}

/* old `.drawer-actions`: a column of two full-width buttons, 12px apart */
.mobile-drawer .wp-block-buttons.drawer-actions {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 12px;
}
.mobile-drawer .drawer-actions .wp-block-button { width: 100%; margin: 0; }

/* Light drawer — Home's white section (25 Nov 2026). LINKED TO THE SECTION: the header and the drawer are
   siblings, and main.js puts `.is-light` on the header at the moment the logo turns black, so the logo,
   the dropdown panels and the drawer always switch together, also while the drawer is open. */
.header-fixed.is-light ~ .wp-block-group.mobile-drawer {
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 0 1px rgba(21, 23, 29, 0.06), 0 -8px 30px rgba(21, 23, 29, 0.16);
	color: #15171d;
}
.header-fixed.is-light ~ .mobile-drawer .drawer-handle-bar { background-color: rgba(21, 23, 29, 0.22); }
.header-fixed.is-light ~ .mobile-drawer .drawer-close { color: #15171d; }
.header-fixed.is-light ~ .mobile-drawer .drawer-group-label { color: #5b6476; }
.header-fixed.is-light ~ .mobile-drawer .drawer-nav .nav-tab,
.header-fixed.is-light ~ .mobile-drawer .drawer-nav .wp-block-navigation__submenu-container .nav-tab { color: #3e4554; }
.header-fixed.is-light ~ .mobile-drawer .drawer-nav .nav-tab.is-active,
.header-fixed.is-light ~ .mobile-drawer .drawer-nav .wp-block-navigation__submenu-container .nav-tab.is-active { color: #15171d; }
.header-fixed.is-light ~ .mobile-drawer .drawer-nav .nav-tab.is-active::before { background-color: #15171d; }
.header-fixed.is-light ~ .mobile-drawer .drawer-nav .nav-tab:active { background-color: rgba(21, 23, 29, 0.06); }
.header-fixed.is-light ~ .mobile-drawer .drawer-nav .nav-tab,
.header-fixed.is-light ~ .mobile-drawer .drawer-nav .wp-block-navigation-item { border-color: rgba(21, 23, 29, 0.1) !important; }
.header-fixed.is-light ~ .mobile-drawer .drawer-divider { background-color: rgba(21, 23, 29, 0.14); }
/* buttons swap: Signup stays the strong one (dark), Login is white with a thin line */
.header-fixed.is-light ~ .mobile-drawer .wp-block-button.is-style-awwrt-dark .wp-block-button__link,
.header-fixed.is-light ~ .mobile-drawer .wp-block-button.is-style-awwrt-dark .wp-block-button__link:hover {
	background-color: #fff; color: #15171d; box-shadow: inset 0 0 0 1px rgba(21, 23, 29, 0.18);
}
.header-fixed.is-light ~ .mobile-drawer .wp-block-button.is-style-awwrt-light .wp-block-button__link,
.header-fixed.is-light ~ .mobile-drawer .wp-block-button.is-style-awwrt-light .wp-block-button__link:hover {
	background-color: #15171d; background-image: none; color: #fff; box-shadow: none;
}

/* ---- 3. Buttons (block style "AWWRT light / dark") -----------------
   Keyed to the block style so the editor shows the real button too (the page
   also gets the old .btn classes from inc/blocks.php). Values = old .btn,
   .btn--sm/--md, .pill-btn-light, .btn--dark. */
.wp-block-button[class*="is-style-awwrt-"] .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	padding: 4px 16px;
	border: 0;
	border-radius: 9999px;
}
.wp-block-button[class*="is-style-awwrt-"].awwrt-size-md .wp-block-button__link {
	font-size: 16px;
	padding: 12px 24px;
}
.wp-block-button[class*="is-style-awwrt-"].awwrt-full,
.wp-block-button[class*="is-style-awwrt-"].awwrt-full .wp-block-button__link { width: 100%; }
.wp-block-button.is-style-awwrt-light .wp-block-button__link {
	background-color: #fafafa;
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(166, 177, 201, 0.16) 100%);
	color: #15171d;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	transition: background-color 0.4s var(--awwrt-ease, ease), transform 0.3s var(--awwrt-ease, ease), box-shadow 0.3s var(--awwrt-ease, ease);
}
.wp-block-button.is-style-awwrt-light .wp-block-button__link:hover {
	background-color: #fff;
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.4);
}
/* old `.header-fixed .pill-btn-light`: pure white in the header */
.header-fixed .wp-block-button.is-style-awwrt-light .wp-block-button__link { background-color: #fff; }
.wp-block-button.is-style-awwrt-dark .wp-block-button__link {
	background-color: #000;
	color: #fff;
	box-shadow: inset 0 0 0 1px #3e4554;
	transition: box-shadow 0.4s var(--awwrt-ease, ease);
}
.wp-block-button.is-style-awwrt-dark .wp-block-button__link:hover { box-shadow: inset 0 0 0 1px #a6b1c9; }
.mobile-drawer .wp-block-button.is-style-awwrt-dark .wp-block-button__link,
.mobile-drawer .wp-block-button.is-style-awwrt-dark .wp-block-button__link:hover { box-shadow: none; }

/* ---- 3b. Guide images (block-theme image markup) -------------------
   Classic themes print an image as <div class="wp-block-image"><figure>…,
   block themes as <figure class="wp-block-image">…. The approved blog styles
   (blogs.css section "Images, hotspots and tables") target the old shape, so the
   two rules that need the <figure> are repeated here for the new shape. Without
   this a tall screenshot narrower than the column sat on the left. */
.single-blog-page .single-blog-content figure.wp-block-image {
	margin-top: 0;
}
.single-blog-page .single-blog-content figure.wp-block-image.is-resized {
	display: block;
	width: 100%;
}

/* ---- 3c. Related guides under an article (list rows) ---------------
   The related section now uses list rows (assets/css/list-row.css). Rows
   across the full 1152px page were stretched, so the section takes the
   article's box (680px reading column + 80px gap + 270px sidebar, centred —
   the same box as the breadcrumb) and its heading and rows sit in the
   reading column, on the article text's left edge. */
@media (min-width: 992px) {
	/* the article's own grid (blogs.css section 1), so the column shrinks the same way */
	.single-blog-page .single-blog-related {
		display: grid;
		grid-template-columns: minmax(0, 680px) 270px;
		justify-content: center;
		column-gap: 80px;
	}
	.single-blog-page .single-blog-related > * { grid-column: 1; }
}
@media (max-width: 991px) {
	.single-blog-page .single-blog-related {
		max-width: 680px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* ---- Picture placeholder: one grey fill everywhere ------------------
   When a post has no featured picture, or its picture fails to load, every
   picture box (featured cards, category cards, list rows, the article's own
   picture) shows the same grey fill with a faint edge — no "No image" text,
   no broken-image icon. assets/js/list-row.js marks failed pictures .is-broken. */
:root { --awwrt-placeholder: #292d36; }
.blogs-archive-page .featured-blog-image,
.blog-category-page .blog-category-post-image,
.single-blog-page .single-blog-featured-image {
	background-color: var(--awwrt-placeholder);
}
/* the article picture's grey box gets the picture's own corners; square, it showed behind them (26 Nov 2026) */
.single-blog-page .single-blog-featured-image { border-radius: var(--radius, 7px); overflow: hidden; }
.blogs-archive-page .featured-blog-no-image,
.blog-category-page .blog-category-no-image {
	background: var(--awwrt-placeholder);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
	color: transparent;
	font-size: 0;
}
.blogs-archive-page .featured-blog-image:has(> img.is-broken),
.blog-category-page .blog-category-post-image:has(> img.is-broken),
.single-blog-page .single-blog-featured-image:has(img.is-broken) {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.featured-blog-image img.is-broken,
.blog-category-post-image img.is-broken,
.single-blog-featured-image img.is-broken {
	visibility: hidden;   /* hides the broken icon and its alt text; the grey shows through */
}

/* Cards use the same hover / press as the list rows (assets/css/list-row.css,
   .awwrt-hover-card). Here: each card's own top/bottom padding (--pt/--pb), so the
   glass card sits 16px (narrow 12px) around picture + text, and the picture's
   corner radius (--r, blogs.css --radius = 7px) for the nested corners. */
.blogs-archive-page .featured-blog-card.awwrt-hover-card {
	--pt: 0px;
	--pb: 0px;
	--r: var(--radius, 7px);
}
body:not(.paged) .blog-category-page .blog-category-post-card.awwrt-hover-card {
	--pt: 16px;
	--pb: 48px;
	--r: var(--radius, 7px);
}
@media (max-width: 767px) {
	body:not(.paged) .blog-category-page .blog-category-post-card.awwrt-hover-card {
		--pt: 12px;
		--pb: 32px;
	}
}

/* Card titles (featured posts on /blogs, top cards on category pages) break a
   very long word instead of pushing the page sideways on small phones — as
   the list rows already do. Normal titles are unaffected. */
.featured-blog-title,
.blog-category-post-title {
	overflow-wrap: anywhere;
}

/* ---- 4. Footer ----------------------------------------------------- */

/* old `<hr class="divider-fade">`: core separators draw a 2px border instead */
.wp-block-separator.divider-fade {
	border: none;
	height: 1px;
	margin: 0;
	opacity: 1;
	background: linear-gradient(90deg, transparent 0%, rgba(166, 177, 201, 0.6) 50%, transparent 100%);
}
.wp-block-separator.divider-fade--sm {
	margin-bottom: 1.5rem;
	background: linear-gradient(90deg, transparent 0%, rgba(166, 177, 201, 0.35) 50%, transparent 100%);
}

/* Footer columns (25 Nov 2026): 5, or 6 while App's pages are published (inc/hidden-pages.php).
   Phones 2 a row with Connect on its own row (so the Instagram address is not cut), tablets 3, computers one row. */
.awwrt-footer .awwrt-footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.awwrt-footer .awwrt-footer-cols > * { margin: 0; }
@media (max-width: 767px) { .awwrt-footer .awwrt-footer-cols > .footer-connect { grid-column: 1 / -1; } }
@media (min-width: 768px) { .awwrt-footer .awwrt-footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 1024px) {
	.awwrt-footer .awwrt-footer-cols { display: flex; justify-content: space-between; }
	.awwrt-footer .awwrt-footer-cols > * { flex: 1 1 0; min-width: 0; }
	.awwrt-footer .awwrt-footer-cols > .footer-connect { flex: 0 0 auto; min-width: 200px; }
}

/* Every footer list link looks like the old `.footer-link`, so new links
   added in the editor need no class. */
.awwrt-footer .footer-col li { margin-bottom: 0.75rem; }
.awwrt-footer .footer-col li a {
	cursor: pointer;
	color: #a6b1c9;
	font-size: 1rem;
	line-height: 1.5rem;
	transition: color 0.4s var(--awwrt-ease, ease);
}
.awwrt-footer .footer-col li a:hover,
.awwrt-footer .footer-heading a:hover { color: #fafafa; }
.awwrt-footer .footer-heading a { color: inherit; transition: color 0.4s var(--awwrt-ease, ease); }

/* Touch screens: a taller tap area for the footer links and the logo; nothing moves (the added
   padding is taken back by an equal negative margin). */
@media (pointer: coarse) {
	.awwrt-footer .footer-col li a, .awwrt-footer .footer-heading a { display: inline-block; padding-block: 8px; margin-block: -8px; }
	.awwrt-footer .footer-connect li a { display: flex; }
	.awwrt-legal-links a { display: inline-block; padding-block: 10px; margin-block: -10px; }
	.awwrt-logo a { display: inline-block; padding: 14px 8px; margin: -14px -8px; }
}

/* Connect column: the icon follows the link (any mailto: or Instagram link). */
.awwrt-footer .footer-connect li { display: flex; }
.awwrt-footer .footer-connect li a {
	display: flex;
	align-items: center;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.awwrt-footer .footer-connect li a::before {
	content: "";
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	padding-right: 8px;
	background: no-repeat left center / 12px auto;
}
.awwrt-footer .footer-connect a[href^="mailto:"]::before { background-image: url("../images/mail.svg"); }
.awwrt-footer .footer-connect a[href*="instagram.com"]::before { background-image: url("../images/instagram.svg"); }

/* Copyright row: old `mt-3 flex items-center justify-center gap-4 flex-wrap` */
.awwrt-legal-links {
	margin-top: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.awwrt-legal-links a {
	color: #a6b1c9;
	text-decoration: underline;
	font-size: 0.875rem;
	transition: color 0.4s var(--awwrt-ease, ease);
}
.awwrt-legal-links a:hover { color: #fafafa; }

/* old `@screen md-down { .footer-link / .footer-heading / .fs-mobile-14 { 14px } }`.
   Same query as legacy.css's md-down (layout-boundary.cjs LAYOUT_DOWN). */
@media only screen and (max-width: 1023px), only screen and (max-width: 1024px) and (orientation: portrait) {
	.awwrt-footer .footer-col li a,
	.awwrt-footer .footer-heading { font-size: 14px; }
	/* old Connect rows: 14px text whose line box is 21px, not the 24px of the other columns */
	.awwrt-footer .footer-connect li a { line-height: 1.5; }
}

/* ---- 4. Landing heading block: the Home dot grid (24 Nov 2026) --------
   Pricing, Blogs and Guides open with the same heading block
   (template-parts/page-heading.php; pages/pricing.php writes the same markup).
   It always carried the theme's `.section-glow` dot grid, but that grid is
   placed 96/128px ABOVE its section (made for Home, whose hero starts lower),
   so on these pages it sat off-screen. Here it starts at the top of the page,
   exactly where Home's sits. The heading carries `data-header-over`, so the
   header is see-through over the grid until the heading scrolls up to it,
   then turns solid — the same as Home. */
.awwrt-page-heading.section-glow {
	position: relative;
	isolation: isolate;   /* keeps the grid above the page background */
}
.awwrt-page-heading.section-glow::after { top: 0 !important; }

/* ---- 5. Keyboard focus in the header and drawer (24 Nov 2026) ---------
   One focus ring everywhere: the same blue as the dropdown rows, the search
   fields and their × buttons. Before this the header tabs, Login, Signup, the
   logo and the menu button showed the browser's own ring (gold on some Macs). */
.header-fixed .awwrt-logo a:focus-visible,
.header-fixed .nav-tab:focus-visible,
.header-fixed .awwrt-header-login a:focus-visible,
.header-fixed .wp-block-button__link:focus-visible,
.header-fixed #awwrt-menu-toggle:focus-visible {
	outline: 2px solid #75b8ff;
	outline-offset: 2px;
}
/* Home's white section: the deeper blue that reads on white */
.header-fixed.is-light .awwrt-logo a:focus-visible,
.header-fixed.is-light .nav-tab:focus-visible,
.header-fixed.is-light .awwrt-header-login a:focus-visible,
.header-fixed.is-light .wp-block-button__link:focus-visible,
.header-fixed.is-light #awwrt-menu-toggle:focus-visible,
.header-fixed.is-light ~ .mobile-drawer .nav-tab:focus-visible,
.header-fixed.is-light ~ .mobile-drawer .drawer-close:focus-visible,
.header-fixed.is-light ~ .mobile-drawer .wp-block-button__link:focus-visible { outline-color: #0f7fd6; }
/* drawer rows run edge to edge, so the ring sits inside them */
.mobile-drawer .nav-tab:focus-visible,
.mobile-drawer .drawer-close:focus-visible,
.mobile-drawer .wp-block-button__link:focus-visible {
	outline: 2px solid #75b8ff;
	outline-offset: -2px;
}

/* Home, Dashboard: while the board fills itself in, legacy.css paints strips of page colour
   over the top 40px and bottom 64px of the animation area. They also covered the background
   rope (a cut plus a grey-to-dark band that vanished when the animation ended). Fade the
   board itself with a mask instead (bottom 24px: longer shows the rope through the board).
   A mask stops the plate's blur from reaching the rope, so the plate is solid while running
   and eases back to see-through when the animation ends. */
.dash-fill__view.is-running::before,
.dash-fill__view.is-running::after { content: none; }
.dash-fill__view.is-running {
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 calc(100% - 24px), transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 calc(100% - 24px), transparent 100%);
}
.dash-fill-plate { transition: background-color 0.6s ease; }
.dash-fill__view.is-running .dash-fill-plate { background-color: #15171d; }

/* Home, scrolling records strip: slide by exactly one set (template-parts/section-carousel.php).
   legacy.css slides by half the strip, which is only one set when there are two. */
.carousel-track { animation-name: awwrt-scroll-set; }
@keyframes awwrt-scroll-set {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-100% / var(--sets, 2))); }
}

/* ---- Home hero on tall screens (25 Nov 2026) --------------------------
   The hero fills the screen's height (legacy.css), but its content is only ~527px tall, so on 1440p
   and 4K screens it left up to 1,400px empty with the blurred card adrift in it. Capped at its height
   on a 1440 x 900 screen; ONLY on screens 2560px wide and up (user, 25 Nov): smaller screens are unchanged. The card sits at 56%, so it follows. */
@media (min-width: 2560px) and (orientation: landscape) {
	#hero { min-height: min(calc(100vh - 14rem), 676px); }
}
/* The Problem section right below did the same (a full screen, content centred): same cap. */
@media (min-width: 2560px) { .awwrt-problem.min-h-screen { min-height: min(100vh, 900px); } }
