/* ==========================================================================
   Persona.ly UA Glossary — site styles

   Mobile first. Three breakpoints only:
     40em  (640px)   large phones / small tablets
     60em  (960px)   notebook gets its sidebar
     75em  (1200px)  full desktop spacing

   Naming: BEM-ish. Blocks are page components (.notebook, .sticky-note, .entry-list);
   content from the editor is styled under .entry-content by block and block style.
   Every colour, font and size comes from the tokens below.
   ========================================================================== */

:root {
	/* Colour */
	--ink: #191536;
	--ink-2: #161626;
	--text: #343242;
	--muted: #6f6d7c;
	--line: #ebebeb;
	--bg: #f5f5f5;
	--paper: #fff;
	--margin-red: #e38282;
	--cyan: #00d4f8;
	--cyan-soft: #e2f7fd;
	--green: #30d8a3;
	--coral: #fc6c5e;
	--blue: #158dff;
	--purple: #7e6fe9;
	--sticky: #fbe03d;
	--sticky-2: #ffe755;
	--sticky-ink: #6b6348;
	--sticky-hover: #f5e574;
	--orange: #ffb21d;
	--red: #e13232;
	--night: #222242;
	--night-2: #3d3d67;
	--night-text: #b7bbdd;

	/* Type */
	--font-body: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-hand: "Covered By Your Grace", "Comic Sans MS", cursive;
	--step--1: 0.875rem;
	--step-0: 1rem;
	--step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--step-2: clamp(1.5rem, 1.3rem + 0.9vw, 1.75rem);
	--step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
	--step-4: clamp(2.25rem, 1.7rem + 2.4vw, 3.125rem);

	/* Space */
	--gutter: 16px;
	--radius: 10px;
	--shadow: 0 10px 30px rgb(0 0 0 / 15%);
	--content: 46rem;
	--page: 1240px;
	--side: 300px;
	--rings: 36px;
	--bullet-col: 44px;
	--bullet-gap: 16px;
}

@media (min-width: 40em) {
	:root { --gutter: 24px; --rings: 58px; --bullet-col: 64px; --bullet-gap: 20px; }
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	overflow-x: clip;
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.63;
	color: var(--text);
	background: var(--bg);
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1.25em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 12px 18px; background: var(--ink); color: #fff; }
.skip-link:focus { left: 12px; top: 12px; }

.button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 10px 18px;
	border: 0; border-radius: 4px;
	font: 700 var(--step--1)/1 var(--font-body);
	text-decoration: none; cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.button--green { background: var(--green); color: #fff; }
.button--green:hover { background: #22c490; color: #fff; }

.burger, .burger::before, .burger::after {
	display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
[aria-expanded="true"] > .burger { background: transparent; }
[aria-expanded="true"] > .burger::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] > .burger::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- header */
/* Matches the persona.ly Blog header: 82px bar, 180px logo, 16px links, icon dropdowns.
   Phones/tablets (up to 1024px, as on the Blog): burger + full-height white panel. */

.site-header { position: sticky; top: 0; z-index: 200; }
/* The frosted background lives on a pseudo-element: a backdrop-filter on the header itself
   would trap the fixed-position mobile menu panel inside the 82px header. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgb(245 245 245 / 94%);
	backdrop-filter: saturate(1.4) blur(8px);
	-webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.site-header.is-scrolled::before { background: rgb(255 255 255 / 97%); box-shadow: 0 1px 0 var(--line); }
.site-header__inner {
	display: flex; align-items: center; gap: 10px;
	max-width: 1180px; height: 82px; margin: 0 auto; padding: 0 20px;
}
.site-logo { flex: none; }
.site-logo img { width: 180px; height: 37px; }

.site-nav-toggle {
	margin-left: auto; width: 46px; height: 42px; padding: 9px 10px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
}
.site-nav-toggle .burger, .site-nav-toggle .burger::before, .site-nav-toggle .burger::after { width: 24px; height: 2px; border-radius: 1px; }
.site-nav-toggle .burger::before { top: -7px; }
.site-nav-toggle .burger::after { top: 7px; }
.site-nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.site-nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel */
.site-nav {
	position: fixed; top: 82px; left: 0; right: 0; bottom: 0;
	display: none; flex-direction: column; align-items: flex-start;
	padding: 20px 16px 40px; background: #fff; overflow-y: auto; overscroll-behavior: contain;
}
.admin-bar .site-nav { top: calc(82px + var(--wp-admin--admin-bar--height, 0px)); }
.site-nav.is-open { display: flex; }
.site-nav__list { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; list-style: none; margin: 0; padding: 0; }
.site-nav__item { width: 100%; }
.site-nav__link {
	display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 0 5px;
	border: 0; background: none; cursor: pointer; text-decoration: none;
	font: 500 18px/24px var(--font-body); color: var(--ink-2);
}
/* Bold look via text-shadow, so links don't change width (the Blog's font-weight jump) */
.site-nav__link[aria-current], .site-nav__item.is-current > .site-nav__link {
	color: var(--ink-2); text-shadow: 0 0 0.6px currentColor, 0 0 0.6px currentColor;
}
.site-nav__link:hover, .site-nav__link:focus-visible {
	color: #f05749; text-shadow: 0 0 0.6px currentColor, 0 0 0.6px currentColor;
}
.site-nav__toggle::after {
	content: ""; width: 12px; height: 12px; flex: none;
	background: url(../img/nav/menu_toggle.svg) center / contain no-repeat;
	transition: transform 0.2s ease;
}
.site-nav__toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

.site-nav__dropdown { display: none; list-style: none; margin: 14px 0 4px; padding: 0 0 0 26px; border-left: 1px solid #dcdce3; }
.site-nav__toggle[aria-expanded="true"] + .site-nav__dropdown { display: block; }
.site-nav__sub a { display: flex; align-items: center; min-height: 42px; color: var(--ink-2); text-decoration: none; }
.site-nav__sub a:hover, .site-nav__sub a[aria-current] { color: #f05749; }
.site-nav__icon, .site-nav__sub-desc { display: none; }
.site-nav__sub-title { font: 500 16px/21px var(--font-body); }

.site-nav__item.hiring .site-nav__link {
	padding: 4px 8px; font-weight: 600; background: url(../img/nav/hiring.svg) center / 100% 100% no-repeat;
}
.site-nav__cta { margin-top: 26px; min-height: 45px; padding: 10px 15px 11px 16px; font-size: 14px; font-weight: 500; border-radius: 4px; }

@media (min-width: 64.0625em) {
	.site-nav-toggle { display: none; }
	.site-nav {
		position: static; display: flex; flex-direction: row; align-items: center; flex: 1;
		padding: 0; background: none; overflow: visible;
	}
	.site-nav__list { flex-direction: row; align-items: center; gap: 0; width: auto; }
	.site-nav__item { position: relative; width: auto; margin-right: 13px; }
	.site-nav__link { min-height: 40px; padding: 8px; font-size: 16px; }
	.site-nav__item.hiring .site-nav__link { padding: 8px; }
	.site-nav__cta { margin: 0 0 0 9px; } /* 22px after "We're hiring!", as on the Blog */

	.site-nav__dropdown {
		position: absolute; top: 58px; left: 50%; transform: translateX(-50%);
		width: 344px; margin: 0; padding: 0; border: 0;
		background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / 15%);
	}
	/* invisible bridge so the pointer can travel from the button into the menu */
	.site-nav__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
	.site-nav__sub { margin-bottom: 3px; }
	.site-nav__sub:last-child { margin-bottom: 0; }
	.site-nav__sub a { min-height: 78px; padding: 14px 14px 14px 0; border-radius: 5px; color: var(--ink-2); }
	.site-nav__sub a:hover, .site-nav__sub a[aria-current] { background: #eff5f6; color: var(--ink-2); }
	.site-nav__icon { display: block; flex: none; width: 80px; padding-left: 15px; }
	.site-nav__icon img { width: 50px; height: 50px; }
	.site-nav__sub-text { display: flex; flex-direction: column; min-width: 0; }
	.site-nav__sub-title { margin-bottom: 3px; font-size: 18px; }
	.site-nav__sub-desc { display: block; font-size: 12px; line-height: 18px; color: #58586d; }
}
@media (min-width: 64.0625em) {
	.site-nav__link, .site-nav__cta { white-space: nowrap; }
}
/* Same steps as the Blog: smaller link text on narrower desktops */
@media (min-width: 64.0625em) and (max-width: 73.75em) { /* 1025–1180px */
	.site-nav__link { font-size: 14px; }
}
@media (min-width: 64.0625em) and (max-width: 70em) { /* 1025–1120px */
	.site-nav__link { font-size: 12px; line-height: 18px; }
	.site-nav__item { margin-right: 8px; }
	.site-logo img { width: 150px; height: auto; }
}
@media (min-width: 75em) {
	.site-header__inner { padding: 0 6px; }
}
@media (max-width: 64em) {
	.site-nav__cta { font-size: 16px; }
}

/* ---------------------------------------------------------------- hero */

.hero {
	position: relative;
	display: grid; gap: 8px; align-items: center;
	max-width: 1180px; margin: 0 auto; padding: 24px var(--gutter) 8px;
	text-align: center;
}
.hero__title {
	margin: 0 0 12px;
	font: 500 var(--step-4)/1.1 var(--font-body);
	letter-spacing: -0.5px;
}
.hero__title a { color: var(--ink-2); text-decoration: none; }
.hero__accent { color: var(--green); font-weight: 700; }
.hero__intro { max-width: 30rem; margin: 0 auto; font-size: var(--step--1); line-height: 1.9; color: var(--text); }
.hero__art { display: none; }

/* Inner pages: a compact hero so the article starts above the fold on phones */
.hero:not(.hero--home) { padding-top: 16px; }
.hero:not(.hero--home) .hero__title { font-size: var(--step-3); margin-bottom: 4px; }
.hero:not(.hero--home) .hero__intro { display: none; }

@media (min-width: 40em) {
	.hero--home .hero__art { display: block; justify-self: center; }
	.hero--home .hero__art img { max-height: 260px; width: auto; }
}

@media (min-width: 60em) {
	.hero { grid-template-columns: 1fr 1fr; text-align: left; padding: 40px var(--gutter) 0; }
	.hero::before {
		content: ""; position: absolute; z-index: -1; left: -10%; top: -40px; width: 60%; height: 120%;
		background: url(../img/hero-bg.svg) left center / contain no-repeat; opacity: 0.6;
	}
	.hero__intro { margin: 0; }
	.hero__art { display: block; justify-self: end; }
	.hero__art img { max-height: 395px; width: auto; }
	.hero:not(.hero--home) .hero__title { font-size: var(--step-4); }
	.hero:not(.hero--home) .hero__intro { display: block; }
	.hero:not(.hero--home) { padding-bottom: 0; }
	.hero:not(.hero--home) .hero__art img { max-height: 300px; }
}

/* ---------------------------------------------------------------- notebook */

/* A sheet of ruled paper with spiral rings. Rings run down the left edge on wide
   screens and across the top on phones. The sticky note sits in the right margin. */
.notebook {
	/* Ruled lines as a 40px tile. A repeating-linear-gradient drops some 1px lines
	   on tall pages because of sub-pixel rounding; a tiled image does not. */
	--ruled: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
	position: relative;
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
	max-width: var(--page);
	margin: 24px var(--gutter) 64px;
	padding: 56px var(--gutter) 48px;
	background: var(--ruled) 0 0 / 100% 40px repeat-y, var(--paper);
	border-radius: var(--radius);
	box-shadow: 0 2px 0 rgb(0 0 0 / 3%);
}
/* phone: two pairs of rings at the top corners, as on the old glossary */
.notebook::before, .notebook::after {
	content: ""; position: absolute; top: -16px; left: 29px; width: 40px; height: 42px;
	background: url(../img/mobile-spiral.svg) left top / 20px 42px repeat-x;
	pointer-events: none;
}
.notebook::after { left: auto; right: 29px; }

.notebook__main { min-width: 0; }
.notebook__side { order: -1; }

@media (min-width: 60em) {
	.notebook {
		grid-template-columns: minmax(0, 1fr) var(--side);
		gap: 48px;
		margin: 40px auto 96px;
		padding: 64px 40px 80px calc(var(--rings) + 56px);
		width: calc(100% - 2 * var(--gutter));
		background:
			linear-gradient(to right, transparent calc(100% - var(--side) + 126px), var(--margin-red) 0 calc(100% - var(--side) + 127px), transparent 0),
			var(--ruled) 0 0 / 100% 40px repeat-y,
			var(--paper);
	}
	.notebook::after { display: none; }
	.notebook::before {
		top: 24px; bottom: 24px; left: calc(-1 * var(--rings) / 2); right: auto; width: calc(var(--rings) + 30px); height: auto;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='80' viewBox='0 0 88 80'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='1' x2='0' y1='0' y2='0'%3E%3Cstop offset='0' stop-color='%23898996'/%3E%3Cstop offset='.52' stop-color='%23EDEDF5'/%3E%3Cstop offset='1' stop-color='%23898996'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='57' cy='41' r='11' fill='%23191932'/%3E%3Crect y='35' width='58' height='4' rx='2' fill='url(%23g)'/%3E%3Crect y='43' width='58' height='4' rx='2' fill='url(%23g)'/%3E%3C/svg%3E") left top / 88px 80px repeat-y;
	}
	.notebook__side { order: 0; }
}

.notebook__heading {
	margin: 0 0 32px;
	font: 400 var(--step-3)/1.2 var(--font-hand);
	letter-spacing: 0.4px;
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}

/* ---------------------------------------------------------------- sticky note (sidebar) */

.sticky-note {
	position: relative; z-index: 2;
	width: 100%; max-width: 420px; margin: 0 auto;
	padding: 28px 20px 16px;
	background: var(--sticky);
	color: var(--sticky-ink);
	box-shadow: 0 12px 18px -12px rgb(0 0 0 / 35%);
}
.sticky-note::before {
	content: ""; position: absolute; top: -10px; left: 26px; width: 27px; height: 63px;
	background: url(../img/attach.svg) center / contain no-repeat;
}
.sticky-note__title {
	margin: 0 0 20px; text-align: center; transform: rotate(-3deg);
	font: 400 var(--step-3)/1.2 var(--font-hand); letter-spacing: 0.4px;
}
.sticky-note__title a { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.search-form { position: relative; }
/* Light-yellow writing field, shared by the search and the sticky-note email form */
.search-form__field, .lead--note .lead-form__email, .lead--inline .lead-form__email {
	display: block; width: 100%; max-width: none; height: 46px; margin: 0; padding: 4px 18px 0;
	border: 0; border-radius: 6px; appearance: none; -webkit-appearance: none;
	background: #ffef7d; box-shadow: 0 10px 8px -8px rgb(25 25 50 / 22%);
	font: 400 1.125rem/1 var(--font-hand); color: var(--sticky-ink);
	transition: background-color 0.15s ease;
}
.search-form__field::placeholder, .lead--note .lead-form__email::placeholder, .lead--inline .lead-form__email::placeholder { color: var(--sticky-ink); opacity: 0.85; }
.search-form__field:focus, .search-form__field:focus-visible,
.lead--note .lead-form__email:focus, .lead--note .lead-form__email:focus-visible,
.lead--inline .lead-form__email:focus, .lead--inline .lead-form__email:focus-visible {
	outline: none; background: #fff6b3; /* focus shows as a lighter field, no border */
}
.search-form__field::-webkit-search-decoration, .search-form__field::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form__results {
	list-style: none; margin: 8px 0 0; padding: 6px 0;
	background: #ffef7d; border-radius: var(--radius);
}
.search-form__results a {
	display: block; padding: 6px 18px;
	font: 400 1rem/1.5 var(--font-hand); color: var(--sticky-ink); text-decoration: none;
}
.search-form__results a:hover, .search-form__results [aria-selected="true"] a { background: var(--sticky-hover); }
.search-form__results small { display: block; font: 400 12px/1.4 var(--font-body); opacity: 0.8; }

.sticky-note__toggle {
	display: flex; align-items: center; gap: 16px; width: calc(100% + 40px); min-height: 52px;
	margin: 16px -20px 0; padding: 0 22px;
	border: 0; background: var(--sticky-2); cursor: pointer;
	font: 400 1.125rem/1.2 var(--font-hand); color: var(--text);
}
.glossary-nav { display: none; padding-top: 12px; }
.glossary-nav.is-open { display: block; }
.glossary-nav__list, .glossary-nav__articles { list-style: none; margin: 0; padding: 0; }
.glossary-nav__cat > a {
	display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 4px 0;
	font: 400 1.3rem/1.2 var(--font-hand); color: var(--text); text-decoration: none;
}
.glossary-nav__cat > a:hover span, .glossary-nav__cat.is-current > a span { text-decoration: underline; }
.glossary-nav__icon { width: 36px; height: 36px; object-fit: contain; flex: none; }
.glossary-nav__articles { margin: 4px 0 12px; }
.glossary-nav__articles a {
	position: relative; display: block; padding: 5px 0 5px 20px;
	font: 400 1rem/1.35 var(--font-hand); letter-spacing: 0.36px;
	color: var(--sticky-ink); opacity: 0.75; text-decoration: none;
}
.glossary-nav__articles a::before {
	content: ""; position: absolute; left: 6px; top: 0.9em; width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
.glossary-nav__articles a:hover, .glossary-nav__articles a[aria-current] { opacity: 1; }
.glossary-nav__articles a[aria-current] { text-decoration: underline; }
.sticky-note__curl { display: none; }

@media (min-width: 60em) {
	.notebook__side { position: relative; }
	.sticky-note {
		max-width: 293px; margin: 0 auto; padding-bottom: 36px;
		box-shadow: 0 14px 16px -14px rgb(0 0 0 / 35%);
	}
	.sticky-note::before { top: -4px; left: 30px; }
	.sticky-note__toggle { display: none; }
	.glossary-nav { display: block; }
	.sticky-note__curl {
		display: block; position: absolute; left: 0; bottom: -1px; width: 100%; height: 40px;
		background: linear-gradient(170deg, transparent 55%, rgb(0 0 0 / 7%) 56%, transparent 80%);
		pointer-events: none;
	}
}

/* Items under the menu (desktop only): post-its, images, links, lead form */
.side-items { display: none; }
@media (min-width: 60em) {
	.side-items { display: grid; gap: 64px; justify-items: center; margin-top: 72px; }
	.side-item { position: relative; width: 100%; max-width: 280px; transform: rotate(var(--tilt, 0deg)); }
	.side-item__link { color: inherit; text-decoration: none; display: block; }

	/* Post-it note: square paper, tape on top, curled bottom corner */
	.postit {
		--paper: #fff27a; --shade: #e8d64f;
		min-height: 220px; padding: 40px 26px 30px;
		background: linear-gradient(160deg, var(--paper) 0 70%, var(--shade) 100%);
		box-shadow: 0 18px 14px -14px rgb(0 0 0 / 35%);
		clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
	}
	.postit::before {
		content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px;
		transform: translateX(-50%) rotate(-3deg);
		background: rgb(255 255 255 / 55%); box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
	}
	.postit::after {
		content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px;
		background: linear-gradient(135deg, var(--shade) 0 50%, rgb(0 0 0 / 12%) 50% 100%);
	}
	.postit__text { margin: 0; font: 400 1.45rem/1.35 var(--font-hand); letter-spacing: 0.3px; color: #343242; }
	.postit--pink { --paper: #ffc9dd; --shade: #f3a9c4; }
	.postit--blue { --paper: #c7ecfb; --shade: #9fd9f1; }
	.postit--green { --paper: #c9f2de; --shade: #9fe0c1; }
	.postit--orange { --paper: #ffd8a8; --shade: #f5bb73; }
	.postit .side-item__link:hover .postit__text { text-decoration: underline; }

	/* Images */
	.side-image { margin: 0; }
	.side-image img { width: 100%; height: auto; }
	.side-image figcaption { margin-top: 10px; text-align: center; font: 400 1.2rem/1.3 var(--font-hand); color: #2e5acc; }
	.side-image--polaroid {
		padding: 12px 12px 16px;
		background: #fff; box-shadow: 0 16px 16px -14px rgb(0 0 0 / 40%);
	}
	.side-image--polaroid::before, .side-image--polaroid::after {
		content: ""; position: absolute; top: -31px; right: -21px; width: 92px; height: 98px;
		background: url(../img/left-img-holder.svg) center no-repeat;
	}
	.side-image--polaroid::before { background-image: url(../img/right-img-holder.svg); left: -28px; top: -20px; right: auto; }
	.side-image--polaroid figcaption { color: var(--ink); }
	.side-image--tape { padding: 8px; background: #fff; box-shadow: 0 10px 14px -12px rgb(0 0 0 / 35%); }
	.side-image--tape::before {
		content: ""; position: absolute; z-index: 1; top: -14px; left: 50%; width: 100px; height: 28px;
		transform: translateX(-50%) rotate(2deg); background: rgb(126 111 233 / 35%);
	}
	.side-image--none { transform: none; }

	/* Link card: an index card with an arrow */
	.side-link {
		display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
		padding: 18px 20px; background: #fff; text-decoration: none;
		border-top: 4px solid var(--purple);
		background-image: repeating-linear-gradient(to bottom, transparent 0 27px, #e7eefb 27px 28px);
		box-shadow: 0 14px 14px -12px rgb(0 0 0 / 30%);
	}
	.side-link__label { font: 400 1.35rem/1.2 var(--font-hand); color: var(--ink); }
	.side-link__text { grid-column: 1; font-size: 13px; line-height: 1.5; color: var(--muted); }
	.side-link__arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 1.4rem; color: var(--purple); transition: transform 0.2s ease; }
	.side-link:hover .side-link__arrow { transform: translateX(4px); }
	.side-link:hover .side-link__label { text-decoration: underline; }
}

/* ---------------------------------------------------------------- breadcrumbs, heads */

.breadcrumbs { margin: 0 0 24px; font-size: 13px; line-height: 1.5; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

.article-head__cat { display: flex; align-items: center; gap: 20px; }
/* Icon sits in the same column as the article bullets below, title lines up with their titles */
.category-head {
	display: grid; grid-template-columns: var(--bullet-col) minmax(0, 1fr); column-gap: var(--bullet-gap);
	align-items: center; margin-bottom: 40px;
}
.category-head__icon-wrap { grid-column: 1; grid-row: 1; display: flex; justify-content: center; }
.category-head__icon { width: 100%; max-width: 64px; height: auto; object-fit: contain; }
.category-head__title { grid-column: 2; grid-row: 1; }
.category-head__subtitle { grid-column: 2; grid-row: 2; }
.category-head__title {
	margin: 0; font: 400 var(--step-4)/1.1 var(--font-hand); letter-spacing: 0.53px;
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px;
}
.category-head__subtitle { margin: 12px 0 0; font: 400 1.125rem/1.5 var(--font-hand); letter-spacing: 0.4px; color: var(--ink); opacity: 0.7; }


.article-head { margin-bottom: 32px; }
.article-head__cat {
	gap: 14px; margin-bottom: 24px;
	font: 400 var(--step-3)/1.1 var(--font-hand); color: var(--ink); text-decoration: underline;
	text-decoration-thickness: 2px; text-underline-offset: 7px;
}
.article-head__cat:hover { color: var(--ink); text-decoration-color: var(--cyan); }
.article-head__cat-icon { width: 52px; height: 52px; object-fit: contain; }

/* The tape strip: coral by default, blue and purple variants */
.article-head__title, .entry-content h2:not([class*="is-style-"]):not(.keep-reading__title):not(.is-style-takeaways *),
.entry-content .is-style-tape, .entry-content .is-style-tape-blue, .entry-content .is-style-tape-purple {
	--tape: var(--coral);
	position: relative; z-index: 0; isolation: isolate;
	display: table; max-width: 100%;
	margin: 56px 0 32px; padding: 10px 22px 8px;
	background: transparent;
	font: 400 var(--step-3)/1.2 var(--font-hand); letter-spacing: 0.4px; color: #fff;
}
.article-head__title { margin-top: 0; margin-bottom: 12px; }
.article-head__title::after, .entry-content h2:not([class*="is-style-"]):not(.keep-reading__title):not(.is-style-takeaways *)::after,
.entry-content .is-style-tape::after, .entry-content .is-style-tape-blue::after, .entry-content .is-style-tape-purple::after {
	content: ""; position: absolute; z-index: -2; right: 0; bottom: -3px; width: 80%; height: 80%;
	background: #8c8989; filter: blur(10px); transform: rotate(3deg);
}
.article-head__title > span { position: relative; }
.article-head__title::before, .entry-content .is-style-tape::before, .entry-content .is-style-tape-blue::before,
.entry-content .is-style-tape-purple::before, .entry-content h2:not([class*="is-style-"]):not(.keep-reading__title):not(.is-style-takeaways *)::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tape);
}
.entry-content .is-style-tape-blue { --tape: var(--blue); }
.entry-content .is-style-tape-purple { --tape: var(--purple); }

.article-meta { display: flex; flex-wrap: wrap; row-gap: 2px; margin: 20px 0 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.article-meta span { white-space: nowrap; }
.article-meta span:not(:last-child)::after { content: "·"; margin: 0 10px; }

/* ---------------------------------------------------------------- entry lists */

.entry-list { list-style: none; margin: 0; padding: 0; }
.entry-list__item { display: flex; align-items: flex-start; gap: var(--bullet-gap); padding: 10px 0; }
.entry-list__icon { width: 48px; height: 48px; object-fit: contain; flex: none; margin-top: 4px; }
.entry-list__bullet {
	flex: none; width: var(--bullet-col); height: 34px; margin-top: 2px;
	object-fit: contain; object-position: center;
}
.entry-list__title {
	font: 400 1.5rem/1.3 var(--font-hand); letter-spacing: 0.38px; color: var(--ink-2); text-decoration: none;
}
.entry-list__title:hover { color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 2px; }
.entry-list__summary { margin: 4px 0 0; font-size: var(--step--1); line-height: 1.6; color: var(--text); opacity: 0.8; }
.entry-list--categories .entry-list__item { gap: 24px; padding: 16px 0; }
.entry-list--categories .entry-list__title { font-size: var(--step-3); }
.entry-list--categories .entry-list__summary { font: 400 1rem/1.5 var(--font-hand); letter-spacing: 0.3px; opacity: 0.7; }
@media (min-width: 40em) {
	.entry-list--categories .entry-list__icon { width: 77px; height: 60px; }
	.entry-list__title { font-size: 1.625rem; }
}

/* ---------------------------------------------------------------- article content */

.entry-content { max-width: var(--content); }
.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content h3 {
	margin: 40px 0 16px;
	font: 400 var(--step-2)/1.3 var(--font-hand); letter-spacing: 0.33px; color: var(--ink);
}
/* The handwritten font has no bold: bold pasted into headings would only be smeared fake bold. */
.entry-content :is(h1, h2, h3) :is(strong, b), .article-head__title :is(strong, b) { font-weight: inherit; }
.entry-content h4 { margin: 32px 0 12px; font: 600 1.125rem/1.4 var(--font-body); }
.entry-content ul:not([class*="entry-list"]), .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content li::marker { color: var(--purple); }
.entry-content strong { color: var(--ink); }
.entry-content a:not(.wp-element-button) { color: var(--blue); text-decoration-thickness: 1px; }
.entry-content .gl-term-link { color: inherit; text-decoration: underline dotted var(--cyan) 2px; text-underline-offset: 3px; }
.entry-content .gl-term-link:hover { color: var(--ink); text-decoration-style: solid; }
.entry-content hr { border: 0; border-top: 2px dashed var(--line); margin: 48px 0; }

/* Images */
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content .wp-block-image img { border-radius: 2px; }
.entry-content .wp-element-caption, .entry-content figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.entry-content .is-style-polaroid { position: relative; margin: 72px auto 56px; max-width: 640px; }
.entry-content .is-style-polaroid img { position: relative; z-index: 1; border: 10px solid #fff; box-shadow: 0 14px 18px -12px rgb(0 0 0 / 45%); }
.entry-content .is-style-polaroid::before, .entry-content .is-style-polaroid::after {
	content: ""; position: absolute; z-index: 2; top: -35px; right: -21px; width: 92px; height: 98px;
	background: url(../img/left-img-holder.svg) center no-repeat;
}
.entry-content .is-style-polaroid::before { background-image: url(../img/right-img-holder.svg); left: -28px; right: auto; top: -20px; }
.entry-content .is-style-framed { position: relative; margin: 48px auto; padding: 0 12%; }
.entry-content .is-style-framed::before, .entry-content .is-style-framed::after {
	content: ""; position: absolute; top: 0; width: 12%; height: 100%; background: left center / contain no-repeat;
}
.entry-content .is-style-framed::before { left: 0; background-image: url(../img/image-bg-left.svg); }
.entry-content .is-style-framed::after { right: 0; background-image: url(../img/image-bg-right.svg); background-position: right center; }
@media (max-width: 39.99em) {
	.entry-content .is-style-polaroid::before, .entry-content .is-style-polaroid::after { transform: scale(0.7); }
	.entry-content .is-style-framed { padding: 0; }
	.entry-content .is-style-framed::before, .entry-content .is-style-framed::after { display: none; }
}

/* Notes (the old info boxes) */
.entry-content .is-style-note, .entry-content .is-style-note-blue, .entry-content .is-style-note-warning, .entry-content .is-style-note-example {
	--note: var(--orange); --note-bg: rgb(255 178 29 / 22%); --note-icon: url(../img/note-info.svg);
	position: relative; margin: 40px 0; padding: 20px;
	background: var(--note-bg); border: 2px solid var(--note);
	font-size: var(--step--1); line-height: 1.85;
}
.entry-content .is-style-note-blue { --note: var(--cyan); --note-bg: rgb(0 212 248 / 14%); --note-icon: url(../img/note-blue.svg); }
.entry-content .is-style-note-warning { --note: var(--red); --note-bg: rgb(225 50 50 / 14%); --note-icon: url(../img/note-warning.svg); }
.entry-content .is-style-note-example { --note: var(--purple); --note-bg: rgb(126 111 233 / 12%); --note-icon: url(../img/note-blue.svg); }
.entry-content [class*="is-style-note"] > *, .entry-content [class*="is-style-note"] > .wp-block-group__inner-container > * { margin-top: 0; margin-bottom: 12px; }
/* Boxed blocks: whatever comes first (heading, paragraph, list) sits at the box's own padding. */
.entry-content :is([class*="is-style-note"], .is-style-definition, .is-style-takeaways, .wp-block-group.has-background) > :first-child,
.entry-content :is([class*="is-style-note"], .is-style-definition, .is-style-takeaways, .wp-block-group.has-background) > .wp-block-group__inner-container > :first-child { margin-top: 0; }
.entry-content :is([class*="is-style-note"], .is-style-definition, .is-style-takeaways, .wp-block-group.has-background) > :last-child,
.entry-content :is([class*="is-style-note"], .is-style-definition, .is-style-takeaways, .wp-block-group.has-background) > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.entry-content [class*="is-style-note"] .note-title { font: 400 1.25rem/1.3 var(--font-hand); color: var(--ink); }
@media (min-width: 40em) {
	.entry-content [class*="is-style-note"] { padding-left: 96px; min-height: 96px; }
	.entry-content [class*="is-style-note"].no-icon { padding-left: 20px; min-height: 0; }
	.entry-content [class*="is-style-note"]::before {
		content: ""; position: absolute; left: 18px; top: 16px; width: 56px; height: 58px;
		background: var(--note-icon) center / contain no-repeat;
	}
	.entry-content [class*="is-style-note"].no-icon::before { display: none; }
}

/* AEO: quick definition — the answer, first */
.entry-content .is-style-definition {
	position: relative; margin: 32px 0 40px; padding: 44px 24px 20px;
	background: var(--cyan-soft); border-left: 5px solid var(--cyan);
	font-size: 1.0625rem; line-height: 1.7; color: var(--ink);
}
.entry-content .is-style-definition::before {
	content: "Quick definition"; position: absolute; top: 12px; left: 24px;
	font: 400 1.2rem/1 var(--font-hand); letter-spacing: 0.4px; color: #0a8ea6;
}
.entry-content .is-style-definition > *, .entry-content .is-style-definition > .wp-block-group__inner-container > * { margin-bottom: 12px; }
.entry-content .is-style-definition .note-title { display: none; }

/* AEO: key takeaways */
.entry-content .is-style-takeaways {
	margin: 48px 0; padding: 24px;
	background: rgb(48 216 163 / 12%); border: 2px dashed var(--green); border-radius: 4px;
}
.entry-content .is-style-takeaways h2, .entry-content .is-style-takeaways h3 {
	display: block; margin: 0 0 12px; padding: 0; background: none;
	font: 400 var(--step-2)/1.2 var(--font-hand); color: var(--ink);
}
.entry-content .is-style-takeaways h2::before, .entry-content .is-style-takeaways h2::after { display: none; }
.entry-content .is-style-takeaways ul { list-style: none; padding-left: 0; }
.entry-content .is-style-takeaways li { position: relative; padding-left: 32px; }
.entry-content .is-style-takeaways li::before {
	content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330d8a3' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* AEO: FAQ */
.entry-content .is-style-faq { margin: 56px 0 32px; }
.entry-content .wp-block-details { border-bottom: 2px dashed var(--line); padding: 4px 0; margin: 0; }
.entry-content .wp-block-details:first-of-type { border-top: 2px dashed var(--line); }
.entry-content .wp-block-details summary {
	position: relative; display: block; cursor: pointer; list-style: none;
	padding: 16px 44px 16px 0;
	font: 400 1.35rem/1.35 var(--font-hand); letter-spacing: 0.3px; color: var(--ink);
}
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after {
	content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 30px; height: 30px; border-radius: 50%; background: var(--sticky);
	font: 600 20px/30px var(--font-body); text-align: center; color: var(--ink);
}
.entry-content .wp-block-details[open] summary::after { content: "–"; }
.entry-content .wp-block-details > :not(summary) { margin: 0 0 16px; }

/* Quotes: expert quote card (default). Photo is optional. */
.entry-content .wp-block-quote:not(.is-style-handwritten) {
	display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center;
	margin: 32px 0; padding: 28px 32px;
	background: #f2fbf8; border: 0; border-left: 4px solid #2fd6a5; border-radius: 0 14px 14px 0;
	font-size: 14px; line-height: 1.6; font-style: normal; color: var(--ink); quotes: none;
	overflow-wrap: break-word;
}
.entry-content .wp-block-quote:not(.is-style-handwritten) > * { grid-column: 1 / -1; }
.entry-content .wp-block-quote:not(.is-style-handwritten) p { margin: 0 0 20px; font-size: 14px; font-style: normal; color: var(--ink); }
.entry-content .wp-block-quote:not(.is-style-handwritten) p:last-of-type { margin-bottom: 20px; }
.entry-content .wp-block-quote:not(.is-style-handwritten) em { font-style: normal; }
.entry-content .wp-block-quote .is-style-avatar { grid-column: 1; margin: 0; }
.entry-content .wp-block-quote .is-style-avatar img {
	width: 72px; height: 72px; min-width: 72px; border-radius: 50%; object-fit: cover; background: #dce3ea; border: 0;
}
.entry-content .wp-block-quote:not(.is-style-handwritten) cite {
	grid-column: 1 / -1; display: block; font-style: normal; font-size: 14px; line-height: 1.4; color: var(--ink);
}
.entry-content .wp-block-quote .is-style-avatar + cite { grid-column: 2; }
.entry-content .wp-block-quote:not(.is-style-handwritten) cite strong { font-size: 15px; }
.entry-content .wp-block-quote:not(.is-style-handwritten) cite a { color: var(--ink); }
.entry-content .wp-block-quote:not(:has(cite)) p:last-of-type { margin-bottom: 0; }
@media (max-width: 39.99em) {
	.entry-content .wp-block-quote:not(.is-style-handwritten) { padding: 22px 20px; }
}

/* Alternative: the notebook's handwritten quote */
.entry-content .is-style-handwritten {
	position: relative; margin: 48px 0 64px; padding: 16px 56px; border: 0;
	font: 400 1.5rem/1.45 var(--font-hand); color: var(--ink); text-align: center;
}
.entry-content .is-style-handwritten::before, .entry-content .is-style-handwritten::after {
	content: ""; position: absolute; top: 20px; left: 0; width: 36px; height: 67px;
	background: url(../img/quote-left.svg) top / contain no-repeat;
}
.entry-content .is-style-handwritten::after { top: 0; left: auto; right: 0; width: 49px; height: 60px; background-image: url(../img/quote-right.svg); }
.entry-content .is-style-handwritten p { margin-bottom: 0.5em; }
.entry-content .is-style-handwritten cite { display: block; font: 400 13px var(--font-body); color: var(--muted); }

/* Tables: scroll sideways on phones instead of breaking the page */
.entry-content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 32px 0; }
.entry-content table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--step--1); line-height: 1.5; background: #fff; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--ink); color: #fff; font-weight: 600; }
.entry-content tbody tr:nth-child(even) { background: #fafafa; }

/* Embeds */
.entry-content .video-embed { max-width: 420px; margin: 40px auto; }
.entry-content .wp-block-embed iframe { width: 100%; }

/* Table of contents */
.toc {
	margin: 32px 0 40px; padding: 16px 20px 8px;
	background: #fffbe0; border: 2px solid var(--sticky);
}
.toc summary {
	cursor: pointer; list-style: none;
	font: 400 1.35rem/1.2 var(--font-hand); color: var(--ink);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: " ▾"; font-size: 0.8em; color: var(--sticky-ink); }
.toc:not([open]) summary::after { content: " ▸"; }
.toc ol { margin: 12px 0 8px; padding-left: 1.4em; font-size: var(--step--1); line-height: 1.5; counter-reset: none; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--blue); text-decoration: underline; }

/* ---------------------------------------------------------------- after the article */

.author-box {
	max-width: var(--content); margin: 56px 0 0; padding: 20px 0;
	border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line);
}
.author-box__name { margin: 0 0 4px; font: 400 1.35rem/1.3 var(--font-hand); color: var(--ink); }
.author-box__bio { margin: 0; font-size: var(--step--1); color: var(--muted); }

.keep-reading { margin-top: 56px; }
.keep-reading__title {
	margin: 0 0 24px; font: 400 var(--step-3)/1.2 var(--font-hand); color: var(--ink);
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.related-label { margin: 28px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.related-list { margin: 0; padding-left: 1.2em; }
.related-list li { margin-bottom: 6px; }
.related-list a { font: 400 1.2rem/1.3 var(--font-hand); color: var(--ink); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager__link {
	display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 64px;
	border: 1px solid var(--ink); border-radius: 5px; color: var(--ink); text-decoration: none;
}
.pager__link--next { text-align: right; }
.pager__link--empty { border: 0; }
.pager__link:hover { background: var(--ink); color: #fff; }
.pager__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; opacity: 0.7; }
.pager__label::before { content: "← "; }
.pager__link--next .pager__label::before { content: ""; }
.pager__link--next .pager__label::after { content: " →"; }
.pager__title { font: 400 1.15rem/1.25 var(--font-hand); }

/* ---------------------------------------------------------------- footer */

.site-footer { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) 24px; color: var(--ink-2); }
.cta-banner {
	position: relative; overflow: hidden;
	margin: 0 0 64px; padding: 32px 24px;
	background: var(--night) url(../img/Fill-15.svg) right -40px bottom -60px / 200px no-repeat;
	border-radius: var(--radius); color: #f4f7fa;
}
.lead--banner .lead__title { margin: 0 0 8px; font: 600 var(--step-2)/1.3 var(--font-body); color: #f4f7fa; }
.lead--banner .lead__text { margin: 0; color: var(--night-text); opacity: 0.85; }

/* Sidebar note and in-article variants: yellow sticky with a pin */
.lead--note, .lead--inline {
	position: relative; padding: 28px 20px 20px; background: var(--sticky); color: var(--sticky-ink);
}
.lead--note::before, .lead--inline::before {
	content: ""; position: absolute; left: -30px; top: -34px; width: 92px; height: 98px;
	background: url(../img/right-img-holder.svg) center no-repeat;
}
.lead--note .lead__title, .lead--inline .lead__title { margin: 0 0 6px; font: 400 1.5rem/1.2 var(--font-hand); color: var(--text); }
.lead--note .lead__text, .lead--inline .lead__text { margin: 0 0 12px; font-size: var(--step--1); line-height: 1.5; }
.lead--note .lead-form, .lead--inline .lead-form { margin-top: 0; }
.lead--note .lead-form, .lead--inline .lead-form { gap: 14px; }
.lead--note .lead-form__email[aria-invalid="true"], .lead--inline .lead-form__email[aria-invalid="true"] { box-shadow: inset 0 -2px 0 var(--red); }
.lead--note .lead-form__submit, .lead--inline .lead-form__submit { width: 100%; min-width: 0; }
.lead--note .lead-form__error, .lead--inline .lead-form__error { color: var(--red); }
.lead--note .lead-form__thanks, .lead--inline .lead-form__thanks { color: #1a8a64; margin-top: 8px; }
.entry-content .inline-cta { margin: 56px 0; max-width: 420px; transform: rotate(-1deg); }
.side-cta { display: none; }
@media (min-width: 60em) {
	.entry-content .inline-cta { display: none; }
	.side-cta { display: block; max-width: 293px; margin: 96px auto 0; transform: rotate(1deg); }
}
.lead-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lead-form__email {
	flex: 1 1 240px; max-width: 320px; height: 52px; padding: 0 20px;
	border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: var(--night-2); color: #fff;
	font: 400 15px var(--font-body);
}
.lead-form__email::placeholder { color: #b7bbdd; }
.lead-form__email[aria-invalid="true"] { border-bottom-color: #cb5258; }
.lead-form__submit { height: 52px; min-width: 180px; text-transform: uppercase; font-weight: 500; font-size: var(--step-0); }
.lead-form__error { flex-basis: 100%; margin: 0; color: #ff8a8f; font-size: var(--step--1); }
.lead-form__thanks { margin: 24px 0 0; font-weight: 600; color: var(--green); }
@media (min-width: 60em) { .cta-banner { padding: 40px; background-size: 257px; background-position: right 40px bottom -40px; } }

.footer-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding: 0 0 40px; }
@media (min-width: 60em) { .footer-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 6% 48px; } }
.footer-col__title { margin: 0 0 14px; font: 700 var(--step-0)/1.3 var(--font-body); color: var(--ink-2); }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu a {
	display: inline-flex; align-items: center; gap: 10px; min-height: 36px;
	font-size: var(--step--1); font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.footer-menu a:hover { color: var(--cyan); }
.footer-menu--social img { width: 24px; height: 24px; }

.footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
	padding-top: 20px; border-top: 1px solid var(--line);
	font-size: var(--step--1); font-weight: 500;
}
.footer-bottom a { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.footer-bottom a:hover { color: var(--cyan); }
.footer-bottom .footer-menu { display: flex; gap: 24px; }
.footer-bottom__copy { margin: 0; }
@media (min-width: 60em) { .footer-bottom .footer-menu { margin-left: auto; } }

.back-to-top {
	position: fixed; right: 16px; bottom: 16px; z-index: 40;
	display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: var(--shadow);
}
.back-to-top[hidden] { display: none; }
@media (min-width: 60em) { .back-to-top { width: 64px; height: 64px; right: 24px; bottom: 24px; } }

@media print {
	.site-header, .site-footer, .notebook__side, .back-to-top, .toc, .keep-reading, .pager { display: none !important; }
	.notebook { display: block; margin: 0; padding: 0; background: none; box-shadow: none; }
	.notebook::before { display: none; }
}
