/*
 * Foxy Flavored Cookie. Sizes and colours measured from the Beaver Builder site on 2026-10-30
 * (chapter 9 layout, the newest). Rules: Goover everywhere the old site used it; no animations.
 */

/* Fonts ------------------------------------------------------------------ */

/* The artist's own font, unchanged. "block" so a missing font shows as a bug, never as a lookalike. */
@font-face {
	font-family: "Goover";
	src: url("../fonts/FfcGoober-Regular.ttf") format("truetype");
	font-display: block;
}

/* Font Awesome Free brands (SIL OFL 1.1, icons CC BY 4.0), copied from Beaver Builder's bundle. */
@font-face {
	font-family: "FFC Brands";
	src: url("../fonts/fa-brands-400.woff2") format("woff2");
	font-display: block;
}

:root {
	--chapter: #6d85db;           /* set per page in <head> */
	--ink: #592c31;               /* headings */
	--notes-text: #6b6d74;        /* was #81838a (3.6:1, below the 4.5:1 minimum); now 4.9:1 */
	--notes-bg: #fafafb;
	--rule: #e5e5e8;
	--patreon: #ff5e5e;           /* white on this is 3:1; darker #d93a3a pending the artist */
	--patreon-deep: #e85555;
	--patreon-edge: #ff0000;
	--font-display: "Goover", "Comic Sans MS", cursive;
	--font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* was Inter; see setup.php */
	--brown-deep: #3a1b1f;
	--brown-soft: #7a4a50;
	--wash: #f7f5f6;
	--discord: #5865f2;
	--discord-edge: #3c45a5;
	--shadow-sm: 0 3px 10px rgba(58, 27, 31, 0.07);
	--shadow-md: 0 10px 30px rgba(58, 27, 31, 0.10);
	--shadow-lg: 0 24px 60px rgba(58, 27, 31, 0.16);
	--rail: 290px;
	--rail-panel: rgba(30, 40, 90, 0.2);   /* darkens the rail colour behind small white text to 4.5:1 */                /* fits the original Patreon pill; was 25% (342 px on a laptop) */
}

/* No animations anywhere, including plugin widgets (Martin, 2026-10-30). */
*,
*::before,
*::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

/* Base -------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #fff;
	color: var(--notes-text);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.45;
}

/* The old site set Goover on these globally; keep it so lettering matches everywhere. */
h1, h2, h3, h4, h5, span, li {
	font-family: var(--font-display);
}

h1, h2, h3, h4, h5 {
	color: var(--ink);
	font-weight: 400;
	text-wrap: balance;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ink);
}

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 2000;
	padding: 10px 16px;
	background: #fff;
	color: var(--ink);
	font-weight: 600;
}

.skip-link:focus {
	top: 8px;
}

/* Brand icons ------------------------------------------------------------- */

.ffc-icon {
	display: inline-block;
	width: 1.25em;
	font-family: "FFC Brands";
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	-webkit-font-smoothing: antialiased;
}

.ffc-icon-twitter::before { content: "\f099"; }
.ffc-icon-instagram::before { content: "\f16d"; }
.ffc-icon-tiktok::before { content: "\e07b"; }
.ffc-icon-discord::before { content: "\f392"; }
.ffc-icon-patreon::before { content: "\f3d9"; }
.ffc-icon-reddit::before { content: "\f281"; }
.ffc-icon-tumblr::before { content: "\f173"; }

/* Layout: a rail fixed to the screen beside the page (design revision 2) ------ */

.site {
	display: grid;
	grid-template-columns: var(--rail) minmax(0, 1fr);
	min-height: 100vh;
	background: linear-gradient(to right, var(--chapter) var(--rail), #fff 0);
}

.rail {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
	height: 100vh;
	padding: 22px 18px 20px;
	overflow-y: auto;
	background: var(--chapter);
	color: #fff;
}

.rail :focus-visible,
.topbar :focus-visible,
.menu-sheet :focus-visible {
	outline-color: #fff;
}

.rail-logo img {
	display: block;
	width: 100%;
	max-width: 240px;
	height: auto;
	margin: 0 auto;
}

.rail-newest.no-thumb {
	grid-template-columns: 1fr;
}

.rail-newest {
	display: grid;
	grid-template-columns: 54px 1fr;
	gap: 12px;
	align-items: center;
	padding: 9px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 16px rgba(30, 40, 90, 0.22);
	color: var(--ink);
	text-decoration: none;
}

.rail-newest img {
	width: 54px;
	height: 62px;
	border-radius: 9px;
	object-fit: cover;
	object-position: top;
}

.rail-newest-label {
	display: block;
	color: #d6363b;
	font-size: 15px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rail-newest-title {
	display: block;
	font-size: 19px;
	line-height: 1.1;
}

/* "Continue reading": the reader's last archive page, filled in by site.js. */
.place-card {
	display: grid;
	grid-template-columns: 54px 1fr;
	gap: 12px;
	align-items: center;
	padding: 9px;
	border-radius: 16px;
	background: var(--rail-panel);
	color: #fff;
	text-decoration: none;
}

.rail .place-card {
	margin-top: -8px;
}

.place-card.no-thumb {
	grid-template-columns: 1fr;
}

.place-card.no-thumb img {
	display: none;
}

.place-card img {
	width: 54px;
	height: 62px;
	border-radius: 9px;
	object-fit: cover;
	object-position: top;
	background: rgba(255, 255, 255, 0.3);
}

.place-label {
	display: block;
	font-size: 15px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.place-title {
	display: block;
	font-size: 19px;
	line-height: 1.1;
}

.rail-first {
	align-self: center;
	margin-top: -8px;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--rail-panel);
	color: #fff;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-underline-offset: 3px;
}

.rail-nav ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rail-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 5px 10px;
	border-radius: 14px;
	color: #fff;
	text-decoration: none;
}

.rail-nav span {
	font-size: 24px;
	line-height: 1.3;
}

.rail-nav-icon {
	width: 50px;
	height: 50px;
	object-fit: contain;
}

.rail-nav a[aria-current="page"] {
	background: var(--rail-panel);
}

.rail-chapter {
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--rail-panel);
	color: #fff;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.rail-chapter strong {
	display: block;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 400;
}

/* A dark chapter (10): panels lighten instead of darken, and its accent marks the labels. */
.ffc-chapter-dark {
	--rail-panel: rgba(231, 185, 192, 0.16);
	--rail-panel: color-mix(in srgb, var(--chapter-accent) 16%, transparent);
}

.ffc-chapter-dark .rail-schedule,
.ffc-chapter-dark .menu-schedule,
.ffc-chapter-dark .rail-chapter strong,
.ffc-chapter-dark .place-label {
	color: var(--chapter-accent);
}

.rail-foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: auto;
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: block;
	color: #fff;
	font-size: 22px;
	text-decoration: none;
}

.social-links .ffc-icon {
	width: 28px;
}

/* The update day, under the logo. The panel behind it keeps white text readable on light chapters. */
.rail-schedule,
.menu-schedule {
	align-self: center;
	width: fit-content;
	margin: -8px auto 0;
	padding: 2px 12px;
	border-radius: 999px;
	background: var(--rail-panel);
	font-family: var(--font-display);
	font-size: 17px;
	letter-spacing: 0.02em;
	text-align: center;
}

.menu-schedule {
	margin: -4px 0 0;
}

/* Shorter screens: tighten the rail so everything still fits without scrolling. */
@media (max-height: 860px) {
	.rail {
		gap: 12px;
		padding: 16px;
	}

	.rail-logo img {
		max-width: 200px;
	}

	.rail-newest {
		padding: 7px;
	}

	.rail-newest img,
	.place-card img {
		height: 52px;
	}

	.place-card {
		padding: 7px;
	}

	.rail-nav a {
		padding: 2px 10px;
	}

	.rail-nav-icon {
		width: 42px;
		height: 42px;
	}

	.rail-chapter {
		padding: 7px 12px;
	}

	.rail-foot {
		gap: 10px;
	}
}

/* With "Continue reading" showing, short laptops (1280 x 720) drop the current-chapter box. */
@media (max-height: 760px) {
	.rail.has-place .rail-chapter {
		display: none;
	}
}

@media (max-height: 700px) {
	.rail-chapter,
	.rail-schedule {
		display: none;
	}
}

.topbar,
.menu-sheet,
.menu-toggle {
	display: none;
}

/* Buttons: the original Patreon pill's language (flat colour, solid 4 px bottom edge). */

/* The original "Join the Patreon" pill, unchanged. */
.patreon-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 20px;
	border-radius: 50px;
	background: var(--patreon);
	box-shadow: 0 4px 0 0 var(--patreon-edge);
	color: #fff;
	font-family: var(--font-display);
	font-size: 20px;
	line-height: 24px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.patreon-button .ffc-icon {
	width: 26px;
	font-size: 26px;
}

.btn,
.button-chapter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px 13px;
	border: 0;
	border-radius: 50px;
	font-family: var(--font-display);
	font-size: 21px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.btn-primary,
.button-chapter {
	background: var(--ink);
	box-shadow: 0 4px 0 var(--brown-deep);
	color: #fff;
}

.btn-soft {
	background: var(--wash);
	box-shadow: 0 4px 0 #e5dcdf;
	color: var(--ink);
}

.btn-discord {
	background: var(--discord);
	box-shadow: 0 4px 0 var(--discord-edge);
	color: #fff;
}

.btn-discord .ffc-icon {
	font-size: 22px;
}

.btn-arrow {
	font-family: var(--font-body);
	font-weight: 800;
}

.text-link {
	color: var(--ink);
	font-family: var(--font-body);
	font-weight: 700;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* Main column ------------------------------------------------------------- */

.site-main {
	min-width: 0;
	padding-bottom: 80px;
	background: #fff;
}

/* Comic page (design approved 2026-10-30) ----------------------------------- */
/* A quiet reading room: the page on white paper, compact controls above it, the artist's own
   buttons under it, then Baker Notes beside the community cards, and the comments. The chapter
   colour (--chapter) is the accent; tints fall back to a neutral wash where color-mix is missing. */

.comic-main {
	--chapter-tint: #f4f1f6;
	--chapter-tint: color-mix(in srgb, var(--chapter) 16%, #fff);
	--chapter-chip: color-mix(in srgb, var(--chapter) 30%, #fff);
	color: #4a4146;
}

/* A dark chapter's tints come from its accent; 16% of near-black is only a grey. */
.ffc-chapter-dark .comic-main {
	--chapter-tint: color-mix(in srgb, var(--chapter-accent) 26%, #fff);
	--chapter-chip: color-mix(in srgb, var(--chapter-accent) 50%, #fff);
}

.comic {
	max-width: 1074px;
	margin: 0 auto;
	padding: 26px 48px 0;
}

.reader-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}

.reader-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0 0 8px;
}

.chapter-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 13px 3px 10px;
	border-radius: 999px;
	background: var(--chapter-tint);
	background: var(--chapter-chip, var(--chapter-tint));
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 17px;
	text-decoration: none;
}

/* The chapter chip opens a menu of chapters (their first pages) and this chapter's page list. */
.chapter-jump {
	position: relative;
}

.chapter-jump > summary {
	list-style: none;
	cursor: pointer;
}

.chapter-jump > summary::-webkit-details-marker {
	display: none;
}

.chapter-jump > summary::after {
	content: "▾";
	font-size: 14px;
}

.chapter-jump-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 30;
	width: min(330px, calc(100vw - 32px));
	max-height: min(70vh, 480px);
	overflow-y: auto;
	padding: 8px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--shadow-lg);
}

.chapter-jump-menu ul {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.chapter-jump-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 10px;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 18px;
	text-decoration: none;
}

.chapter-jump-menu li a::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--c);
}

.chapter-jump-menu a:hover,
.chapter-jump-menu a[aria-current] {
	background: var(--wash);
}

.chapter-jump-menu .chapter-jump-all {
	border-bottom: 1px solid var(--rule);
	border-radius: 10px 10px 0 0;
	font: 800 14px/1.4 var(--font-body);
}

.chapter-chip::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--chapter);
	box-shadow: 0 0 0 2px #fff;
}

.reader-progress {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--notes-text);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
}

.progress-track {
	width: 92px;
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: #ece7ea;
}

.progress-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--ink);
	background: color-mix(in srgb, var(--chapter) 78%, var(--ink));
}

.comic-title {
	margin: 0;
	font-size: 34px;
	line-height: 1.12;
}

.comic-num {
	color: var(--brown-soft);
}

.reader-side {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	align-items: flex-end;
	gap: 12px;
}

.reader-info {
	margin: 0;
	color: var(--notes-text);
	font-size: 14px;
	font-weight: 700;
}

.reader-info span {
	font-family: var(--font-body);
}

.comic-nav {
	display: flex;
	gap: 8px;
	padding-bottom: 6px;
}

/* Small pill buttons: soft for First / Latest, brown for Previous / Next. */
.rn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 15px 8px;
	border-radius: 999px;
	background: var(--wash);
	box-shadow: 0 4px 0 #e5dcdf;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 17px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.rn-step {
	background: var(--ink);
	box-shadow: 0 4px 0 var(--brown-deep);
	color: #fff;
}

.rn[aria-disabled="true"] {
	background: var(--wash);
	box-shadow: none;
	color: #a2969a;
}

.rn b {
	font-family: var(--font-body);
	font-weight: 800;
}

/* The page on white paper. The link around it turns to the next page. */
.comic-figure {
	margin: 0;
	padding: 14px;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--shadow-md);
}

.comic-turn {
	display: block;
}

.comic-image {
	display: block;
	width: 100%;
	margin: 0 auto;
	border-radius: 6px;
}

/* The line keeps the "Reading mode" button's height before the script shows it, so nothing moves. */
.reader-hint {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	min-height: 30px;
	margin: 12px 4px 0;
	color: var(--notes-text);
	font-size: 14px;
}

.reader-hint span {
	font-family: var(--font-body);
}

.reader-hint kbd {
	display: inline-block;
	min-width: 22px;
	padding: 1px 6px;
	border-radius: 6px;
	background: var(--wash);
	box-shadow: 0 2px 0 #e5dcdf;
	font: 800 13px/1.4 var(--font-body);
	text-align: center;
}

.hint-tap {
	display: none;
}

.reading-open {
	margin-left: 12px;
	padding: 5px 13px;
	border: 0;
	border-radius: 999px;
	background: var(--wash);
	color: var(--ink);
	font: 800 14px/1.4 var(--font-body);
	cursor: pointer;
}

/* Reading mode: the page alone on a dark screen, tinted by the chapter colour. */
.is-reading,
.is-reading body {
	overflow: hidden;
}

.reader-mode {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	background: #141116;
	background: color-mix(in srgb, var(--chapter) 10%, #141116);
	color: #f3eef0;
}

.reader-mode-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
}

.reader-mode-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-family: var(--font-display);
	font-size: 19px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.reader-mode-count {
	color: #bdb2b8;
	font: 700 14px/1.3 var(--font-body);
	white-space: nowrap;
}

.reader-mode-close {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.reader-mode-page {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	padding: 0 max(0px, env(safe-area-inset-right, 0px)) 0 max(0px, env(safe-area-inset-left, 0px));
}

.reader-mode-page a {
	display: block;
}

/* The whole page fits the screen; pinch to zoom into panels. */
.reader-mode-image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 140px);
	max-height: calc(100dvh - 140px);
	margin: 0 auto;
}

.reader-mode-steps {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.reader-mode-steps a,
.reader-mode-steps span {
	display: grid;
	flex: 0 1 260px;
	place-items: center;
	min-height: 50px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-family: var(--font-display);
	font-size: 21px;
	text-decoration: none;
}

.reader-mode-steps span {
	opacity: 0.35;
}

.reader-mode :focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.scene-description {
	max-width: 760px;
	margin: 22px auto 0;
	font-size: 16px;
	line-height: 1.6;
}

.scene-description summary {
	cursor: pointer;
	color: var(--ink);
	font-weight: 700;
}

/* The artist's own buttons, right where the eye lands after the last panel. */
.art-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
	margin-top: 26px;
}

.art-nav.is-last {
	grid-template-columns: 1fr auto;
}

.art-back img,
.art-next img {
	display: block;
	width: 250px;
}

.art-next {
	justify-self: end;
}

.art-ends {
	display: flex;
	gap: 14px;
}

.art-ends a {
	display: block;
	width: 124px;
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.art-ends img {
	display: block;
	width: 100%;
}

.art-ends a[aria-current="page"] {
	opacity: 0.45;
	box-shadow: none;
}

.pill-ends {
	display: none;
}

/* End of a chapter: the next one introduces itself in its own colour. */
.chapter-next {
	display: grid;
	grid-template-columns: 112px 1fr auto;
	gap: 24px;
	align-items: center;
	margin-top: 30px;
	padding: 18px 26px 18px 18px;
	border-radius: 22px;
	background: var(--wash);
	background: color-mix(in srgb, var(--next) 16%, #fff);
	box-shadow: var(--shadow-sm);
	color: #4a4146;
	text-decoration: none;
}

.chapter-next img {
	width: 112px;
	height: 140px;
	border-radius: 12px;
	object-fit: cover;
	object-position: top;
	box-shadow: var(--shadow-sm);
}

.chapter-next-text,
.chapter-next-text span {
	display: block;
}

.chapter-next-eyebrow {
	margin-bottom: 4px;
	color: var(--brown-soft);
	font: 800 14px/1.3 var(--font-body);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.chapter-next-title {
	color: var(--ink);
	font-size: 34px;
	line-height: 1.1;
}

.chapter-next-count {
	margin-top: 4px;
	font: 400 16px/1.4 var(--font-body);
}

/* Newest page: the reader is caught up, the best moment to invite them in. */
.caught-up {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px 30px;
	align-items: center;
	margin-top: 30px;
	padding: 26px 30px;
	border-radius: 22px;
	background: var(--chapter-tint);
	box-shadow: var(--shadow-sm);
}

.caught-up h2 {
	margin: 0;
	font-size: 36px;
	line-height: 1.1;
}

.caught-up p {
	margin: 6px 0 0;
	font-size: 17px;
}

.caught-up .community-avatars {
	margin: 14px 0 0 !important;
}

.caught-up .community-avatars img {
	border-color: var(--chapter-tint);
}

.caught-up-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
}

/* After the page: Baker Notes and comments on the left, community and support on the right. */
.comic-after {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	grid-template-rows: auto 1fr;
	grid-template-areas: "notes side" "comments side";
	gap: 40px 36px;
	align-items: start;
	margin-top: 56px;
}

.baker-notes {
	grid-area: notes;
	padding: 28px 32px 30px;
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--shadow-md);
}

.baker-notes-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}

.baker-notes-badge {
	width: 92px;
}

.baker-notes h2 {
	margin: 0;
	font-size: 34px;
	line-height: 1.1;
}

.baker-notes-head p {
	margin: 2px 0 0;
	color: var(--notes-text);
	font-size: 14px;
	font-weight: 700;
}

.baker-notes-text {
	font-size: 17px;
	line-height: 1.7;
}

.baker-notes-text p {
	margin: 0 0 14px;
}

.baker-notes-text p:last-child {
	margin-bottom: 0;
}

.baker-notes-text .notes-greeting {
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1.3;
}

.ask {
	margin-top: 22px;
	padding: 18px 22px 20px;
	border-radius: 16px;
	background: var(--chapter-tint);
}

.ask-label {
	margin: 0;
	color: var(--brown-soft);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ask-question {
	margin: 4px 0 14px;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 27px;
	line-height: 1.15;
}

.ask .btn {
	padding: 11px 20px 10px;
	font-size: 18px;
}

.comic-side {
	grid-area: side;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.side-card {
	padding: 20px 22px 22px;
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.side-card h2 {
	margin: 0;
	font-size: 24px;
	line-height: 1.15;
}

.side-card p {
	margin: 6px 0 14px;
	font-size: 15px;
	line-height: 1.5;
}

.side-card .btn,
.side-card .patreon-button {
	width: 100%;
	justify-content: center;
}

.side-card .btn {
	padding: 12px 16px 11px;
	font-size: 18px;
}

.side-card .patreon-button {
	font-size: 18px;
}

.side-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.side-card .community-avatars {
	margin: 12px 0 0 !important;
}

.side-card .community-avatars img,
.side-card .community-avatars span {
	width: 34px;
	height: 34px;
}

.side-card .community-avatars span {
	width: auto;
	font-size: 12px;
}

.share {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

.share a,
.share button {
	display: grid;
	flex: 1;
	place-items: center;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: var(--wash);
	box-shadow: 0 3px 0 #e5dcdf;
	color: var(--ink);
	font-size: 18px;
	text-decoration: none;
	cursor: pointer;
}

.share .ffc-icon {
	width: auto;
}

.share .share-copy {
	flex: 2.4;
	font: 800 15px/1 var(--font-body);
}

/* Comments: wpDiscuz, restyled to match the site. */
.comic-comments {
	grid-area: comments;
	min-width: 0;
}

.comic-comments h2 {
	margin: 0 0 16px;
	font-size: 34px;
	line-height: 1.1;
}

/* wpDiscuz's floating comment bubble sits bottom-left by default, on top of the sidebar's Patreon pill. */
#wpd-bubble-wrapper {
	right: 24px !important;
	left: auto !important;
}

/* wpDiscuz's trimmed icon set lacks the Login arrow; Beaver Builder's full set used to supply it. */
.comic-comments .fa-sign-in-alt::before {
	content: "\f2f6";
}

.comic-comments #wpdcom {
	max-width: none;
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
}

.comic-comments #wpdcom .wpd-form-wrap {
	padding: 14px 16px 16px;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.comic-comments #wpdcom .wpd-form-head {
	padding: 0 0 10px;
	border-bottom: 0;
}

.comic-comments #wpdcom .wpd-auth .wpd-login a,
.comic-comments #wpdcom .wpd-comment .wpd-reply-to a {
	color: var(--ink);
	font-weight: 700;
}

.comic-comments #wpdcom .wpd-prim-button {
	padding: 11px 20px 10px;
	border-radius: 999px;
	background-color: var(--ink);
	box-shadow: 0 4px 0 var(--brown-deep);
	color: #fff;
	font-family: var(--font-display);
	font-size: 18px;
	letter-spacing: 0;
	text-transform: none;
}

/* The count is in the heading above; keep wpDiscuz's sort and filters. */
.comic-comments #wpdcom .wpd-thread-head .wpd-thread-info {
	display: none;
}

.comic-comments #wpdcom .wpd-thread-head {
	border-bottom: 1px solid var(--rule);
}

.comic-comments #wpdcom .wpd-thread-filter .wpdf-active {
	border-bottom-color: var(--ink);
	color: var(--ink);
}

/* Readers in brown; the artist's own replies (administrator) in red so they stand out. */
.comic-comments #wpdcom .wpd-comment .wpd-comment-author,
.comic-comments #wpdcom .wpd-comment .wpd-comment-author a {
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 800;
}

.comic-comments #wpdcom .wpd-blog-administrator .wpd-comment-author,
.comic-comments #wpdcom .wpd-blog-administrator .wpd-comment-author a {
	color: #d93a3a;
}

.comic-comments #wpdcom .wpd-comment-text {
	color: #4a4146;
	font-size: 16px;
	line-height: 1.6;
}

/* wpDiscuz's light grey dates, "Reply" and sort labels are below 4.5:1; use the notes grey. */
.comic-comments #wpdcom .wpd-comment .wpd-comment-date,
.comic-comments #wpdcom .wpd-comment .wpd-comment-last-edited,
.comic-comments #wpdcom .wpd-comment .wpd-reply-button,
.comic-comments #wpdcom .wpd-comment .wpd-reply-button span,
.comic-comments #wpdcom .wpd-comment .wpd-reply-to,
.comic-comments #wpdcom .wpd-comment .wpd-vote-result,
.comic-comments #wpdcom .wpd-thread-filter .wpdiscuz-sort-button {
	color: var(--notes-text);
}

/* Pages ------------------------------------------------------------------- */

.page-main {
	padding: 59px 40px 80px;
}

.page-title {
	margin: 0 0 40px;
	font-size: 48px;
	line-height: 67.2px;
	text-align: center;
}

.page-content {
	max-width: 760px;
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.6;
}

/* Archive and chapter pages (measured from the PowerPack grid) -------------- */

.listing-main {
	padding: 40px 40px 80px;
}

.listing-head {
	text-align: center;
}

.listing-head .page-title {
	margin-bottom: 8px;
}

.listing-intro {
	max-width: 640px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
}

.listing-intro p {
	margin: 0 0 8px;
}

.chapter-kicker {
	margin: 0 0 4px;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 20px;
}

.listing-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 20px 0 0;
}

.listing-count {
	font-family: var(--font-body);
	font-size: 15px;
}

.chapter-chips ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 25px;
	max-width: 820px;
	margin: 35px auto 0;
	padding: 0;
	list-style: none;
}

.chip {
	display: block;
	padding: 10px 20px;
	border-radius: 50px;
	background: var(--chip, #fff);
	box-shadow: 0 4px 2px 2px rgba(109, 133, 219, 0.1);
	color: #fff;
	font-family: var(--font-display);
	font-size: 24px;
	line-height: 34.8px;
	text-decoration: none;
}

.chip-all {
	color: #5467a8;
}

.chip[aria-current="page"] {
	box-shadow: 0 0 0 3px var(--ink);
}

.comic-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
	gap: 20px 11px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.comic-card a {
	display: block;
	height: 100%;
	padding: 10px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 2px 2px rgba(109, 133, 219, 0.05);
	text-align: center;
	text-decoration: none;
}

.comic-card img {
	display: block;
	width: 100%;
}

.comic-card-title {
	margin: 15px 10px 10px;
	color: #1b1b1b;
	font-size: 15px;
	line-height: 21px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 30px;
}

.pagination .page-numbers {
	display: block;
	min-width: 36px;
	padding: 6px 10px;
	border: 1px solid var(--rule);
	color: #1b1b1b;
	font-size: 15px;
	text-align: center;
	text-decoration: none;
}

.pagination .current {
	background: #eee;
}

.chapter-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
	font-size: 16px;
}

.chapter-pager-next {
	margin-left: auto;
}

/* Home (design revision 2; hero option B, 2026-10-31) ---------------------------- */

.home-main {
	padding-bottom: 96px;
	color: #4a4146;
	font-size: 17px;
	line-height: 1.6;
}

.home-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 48px;
}

.home-hero {
	padding: 48px 0 0;
	container-type: inline-size;
}

.home-title {
	max-width: 760px;
	margin: 0 0 22px;
	font-size: 33px;
	line-height: 1.15;
}

/* The newest page as a wide banner, cut in the gutter under its first panel row (two rows on
   phones; see ffc_banner_crop). A page with no gutter in range fades out at a fixed height. */
.hero-banner {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--shadow-lg);
}

.hero-banner img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / var(--cut-wide);
	object-fit: cover;
	object-position: 50% 0;
}

.hero-banner::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: none;
	height: 32%;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff 80%);
}

.hero-banner.fade-wide::after {
	display: block;
}

.hero-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 28px;
	margin-top: 22px;
}

.hero-label {
	display: flex;
	flex-wrap: wrap;
	gap: 0 7px;
	margin: 0;
	color: var(--brown-soft);
	font-family: var(--font-display);
	font-size: 16px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.new-dot {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #d93a3a; /* white on the Patreon red is 3:1; this red is 4.6:1 on white */
}

.new-dot::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentColor;
}

.hero-page {
	margin: 4px 0 0;
	font-size: 32px;
	line-height: 1.1;
}

.hero-row .home-actions {
	margin: 0;
}

/* The community: one slim band under the hero. */
.home-strip {
	padding-top: 56px;
	container-type: inline-size;
}

.strip-card {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	overflow: hidden;
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--shadow-md);
}

.strip-card p {
	margin: 0;
}

.strip-discord {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 14px;
	padding: 22px 26px;
	background: linear-gradient(135deg, #f3f4ff, #fff 75%);
}

.strip-discord .community-top {
	align-self: stretch;
}

.strip-discord .community-avatars {
	margin: 0 !important;
}

.strip-discord .btn {
	padding: 11px 20px 10px;
	font-size: 18px;
}

.strip-comment {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 22px 28px;
	border-left: 1px solid #efe9eb;
}

.strip-comment .comment-text {
	margin: 8px 0 10px;
}

/* A narrow main column: Discord above the comment. */
@container (max-width: 980px) {
	.strip-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.strip-comment {
		border-top: 1px solid #efe9eb;
		border-left: 0;
	}
}

.community-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
}

.community-top h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
}

.community-top .ffc-icon {
	color: var(--discord);
	font-size: 26px;
}

.community-online {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: auto;
	color: #1d7a45;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 800;
}

.community-online::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #23a55a;
}

.community-avatars {
	display: flex;
	align-items: center;
	margin: 16px 0 18px !important;
	padding-left: 8px;
}

.community-avatars img,
.community-avatars span {
	width: 40px;
	height: 40px;
	margin-left: -9px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--wash);
	object-fit: cover;
}

.community-avatars span {
	display: grid;
	place-items: center;
	width: auto;
	min-width: 52px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--discord);
	color: #fff;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 800;
}

.comment-label {
	color: var(--notes-text);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.comment-text {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 16px;
	font-style: italic;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.comment-by {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
}

.comment-by strong {
	color: var(--ink);
	font-family: var(--font-body);
}

.home-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 22px;
	margin: 18px 0 0;
}

.home-section {
	padding-top: 88px;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 30px;
}

.section-head h2 {
	margin: 0;
	font-size: 44px;
}

.newhere {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 60px;
	align-items: center;
}

.newhere h2 {
	margin: 0;
	font-size: 50px;
	line-height: 1.1;
}

.newhere-pitch p {
	max-width: 52ch;
	margin: 18px 0 0;
	font-size: 18px;
}

.newhere-art {
	border-radius: 22px;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	transform: rotate(-1deg);
}

.newhere-art img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 30% 40%;
}

.facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.facts li {
	padding: 6px 14px 5px;
	border-radius: 999px;
	background: var(--wash);
	color: var(--ink);
	font-size: 17px;
}

.chapter-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chapter-card {
	position: relative;
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 16px;
	align-items: center;
	height: 100%;
	padding: 14px 14px 14px 20px;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--shadow-md);
	color: var(--ink);
	text-decoration: none;
	overflow: hidden;
}

.chapter-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 7px;
	background: var(--c);
}

.chapter-card img {
	width: 92px;
	height: 92px;
	border-radius: 12px;
	object-fit: cover;
	object-position: top;
}

.chapter-num {
	display: inline-block;
	padding: 1px 10px 0;
	border-radius: 999px;
	background: var(--c);
	color: var(--c-ink, var(--ink));
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* The next chapter before its first page: a dark teaser, not a link. A lone last card spans the row. */
.chapter-card.is-soon {
	grid-template-columns: 1fr;
	min-height: 120px;
	background: var(--c);
	color: #fff;
}

.chapter-card.is-soon::before {
	background: var(--c-ink, #fff);
}

.chapter-card.is-soon .chapter-num {
	background: var(--c-ink, #fff);
	color: var(--c);
}

.chapter-card.is-soon h3 {
	color: #fff;
}

.chapter-card.is-soon .chapter-count {
	color: var(--c-ink, #fff);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (min-width: 901px) {
	.chapter-cards > li:last-child:nth-child(3n + 1) {
		grid-column: 1 / -1;
	}
}

.chapter-card h3 {
	margin: 6px 0 0;
	font-size: 23px;
	line-height: 1.1;
}

.chapter-count {
	display: block;
	margin-top: 2px;
	color: var(--notes-text);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
}

.cast-row,
.recent-row {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cast-row {
	text-align: center;
}

.cast-row a,
.recent-row a {
	display: block;
	color: var(--ink);
	text-decoration: none;
}

.cast-row img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 10px 14px rgba(58, 27, 31, 0.14));
}

.cast-row strong,
.recent-row strong {
	display: block;
	margin-top: 8px;
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.15;
}

.cast-row span,
.recent-row span {
	color: var(--notes-text);
	font-family: var(--font-body);
	font-size: 14px;
}

.recent-row img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 14px;
	box-shadow: var(--shadow-md);
	object-fit: cover;
	object-position: top;
}

.recent-row strong {
	margin-top: 10px;
	font-size: 17px;
}

.recent-row span {
	font-size: 13px;
	font-weight: 700;
}

.support {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.support-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 24px;
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--shadow-md);
}

.support-card h3 {
	margin: 0;
	font-size: 28px;
}

.support-card p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.5;
}

.support-card .btn,
.support-card .patreon-button {
	margin-top: auto;
}

.support-shop {
	display: flex;
	align-items: center;
	gap: 16px;
}

.support-shop img {
	width: 104px;
	height: auto;
	border-radius: 12px;
}

/* Cast (measured from the Beaver Builder page) --------------------------------- */

.cast-main {
	padding: 35px 20px 60px;
	background: #ebebeb;
}

.cast-title {
	margin: 0 0 40px;
	color: #454659;
	font-size: 62px;
	line-height: 89.9px;
	text-align: center;
}

/* Classic themes wrap group blocks in an inner container; the grid goes on whichever holds the members. */
.cast-content .cast-list > .wp-block-group__inner-container,
.cast-content .cast-list:not(:has(> .wp-block-group__inner-container)) {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 276px));
	justify-content: space-evenly;
	gap: 60px 40px;
}

.cast-member {
	text-align: center;
	font-size: 14px;
	line-height: 20.3px;
	color: #5f6168; /* was #6b6d74 on #ebebeb (4.3:1); now 5.2:1 */
}

.cast-member .wp-block-image {
	margin: 0 0 40px;
}

.cast-member img {
	display: block;
	width: 276px;
	height: auto;
	margin: 0 auto;
}

.cast-member .cast-nickname {
	margin: 0;
}

.cast-member .cast-name {
	margin: 15px 0 20px;
	font-size: 30px;
	line-height: 1.3;
	scroll-margin-top: 20px;
}

.cast-member p {
	margin: 0;
}

/* Shop (WooCommerce's own CSS loads here; this adds the site's look) ----------- */

.shop-main {
	padding: 59px 40px 80px;
}

.shop-main .woocommerce-products-header__title,
.shop-main .product_title {
	margin: 0 0 30px;
	font-size: 48px;
	line-height: 1.4;
	text-align: center;
}

.shop-main .product_title {
	font-size: 40px;
	text-align: left;
}

.woocommerce .shop-main ul.products li.product,
.shop-main ul.products li.product {
	padding: 10px 10px 16px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 2px 2px rgba(109, 133, 219, 0.05);
	text-align: center;
}

.shop-main ul.products li.product .woocommerce-loop-product__title {
	color: var(--ink);
	font-size: 22px;
}

.shop-main .price,
.shop-main ul.products li.product .price {
	color: var(--ink) !important;
	font-family: var(--font-body);
	font-weight: 600;
}

.woocommerce .shop-main a.button,
.woocommerce .shop-main button.button,
.woocommerce-page .page-content a.button,
.woocommerce-page .page-content button.button,
.woocommerce .shop-main button.single_add_to_cart_button {
	padding: 12px 24px;
	border-radius: 50px;
	background: var(--ink);
	color: #fff;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
}

.shop-main .woocommerce-product-details__short-description,
.shop-main .woocommerce-Tabs-panel {
	font-size: 16px;
	line-height: 1.6;
}

.woocommerce-cart .page-content,
.woocommerce-checkout .page-content,
.woocommerce-account .page-content {
	max-width: 1000px;
	font-size: 16px;
}

/* Legacy Beaver Builder pages render their own layout. */
.legacy-page {
	display: block;
}

/* Footer: website brown ------------------------------------------------------ */

.site-footer {
	padding: 40px 0 34px;
	background: var(--ink);
	color: #f4e9eb;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 48px;
}

.footer-logo img {
	display: block;
	width: 150px;
	height: auto;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 26px;
	font-family: var(--font-display);
	font-size: 20px;
}

.footer-nav a {
	color: #f4e9eb;
	text-decoration: none;
}

.site-footer .social-links a {
	color: #f4e9eb;
}

.footer-legal {
	width: 100%;
	margin: 6px 0 0;
	color: #d9c3c7;
	font-size: 13px;
	text-align: center;
}

.site-footer :focus-visible {
	outline-color: #fff;
}

/* Phones and small tablets: slim bar, full-screen menu ------------------------- */

@media (max-width: 900px) {
	.site {
		display: block;
		background: #fff;
	}

	.rail {
		display: none;
	}

	.topbar {
		position: sticky;
		top: 0;
		z-index: 900;
		display: flex;
		align-items: center;
		gap: 10px;
		height: calc(60px + env(safe-area-inset-top, 0px));
		padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
		background: var(--chapter);
		box-shadow: 0 4px 14px rgba(30, 40, 90, 0.2);
	}

	.topbar-logo img {
		display: block;
		width: 112px;
		height: auto;
	}

	.topbar-newest {
		margin-left: auto;
		padding: 8px 14px 7px;
		border-radius: 999px;
		background: #fff;
		color: var(--ink);
		font-family: var(--font-display);
		font-size: 17px;
		text-decoration: none;
	}

	.menu-toggle {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.2);
		cursor: pointer;
	}

	.menu-toggle-bars,
	.menu-toggle-bars::before,
	.menu-toggle-bars::after {
		display: block;
		width: 22px;
		height: 3px;
		border-radius: 2px;
		background: #fff;
	}

	.menu-toggle-bars {
		position: relative;
	}

	.menu-toggle-bars::before,
	.menu-toggle-bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.menu-toggle-bars::before { top: -7px; }
	.menu-toggle-bars::after { top: 7px; }

	.menu-open {
		overflow: hidden;
	}

	.menu-open .menu-sheet {
		position: fixed;
		inset: 0;
		z-index: 1000;
		display: flex;
		flex-direction: column;
		gap: 18px;
		padding: max(14px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(26px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
		overflow-y: auto;
		background: var(--chapter);
		color: #fff;
	}

	.menu-sheet-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.menu-close {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 12px;
		background: var(--rail-panel);
		color: #fff;
		font-size: 30px;
		line-height: 1;
		cursor: pointer;
	}

	.menu-first-latest {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}

	.menu-first-latest img {
		display: block;
		width: 100%;
		height: auto;
	}

	.menu-sheet nav ul {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.menu-sheet nav a {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
		padding: 14px 8px 12px;
		border-radius: 20px;
		background: var(--rail-panel);
		color: #fff;
		text-decoration: none;
	}

	.menu-sheet nav span {
		font-size: 23px;
	}

	.menu-sheet-icon {
		width: 72px;
		height: 72px;
		object-fit: contain;
	}

	.menu-foot {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 16px;
		margin-top: auto;
	}

	.home-wrap,
	.footer-inner {
		padding: 0 18px;
	}

	.home-hero {
		padding-top: 22px;
	}

	.newhere {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.home-title {
		margin-bottom: 18px;
		font-size: 25px;
	}

	.hero-banner {
		padding: 6px;
		border-radius: 16px;
	}

	.hero-banner img {
		aspect-ratio: 1 / var(--cut-tall);
		border-radius: 10px;
	}

	.hero-banner.fade-wide::after {
		display: none;
	}

	.hero-banner.fade-tall::after {
		display: block;
	}

	.hero-row {
		margin-top: 18px;
	}

	.hero-page {
		font-size: 27px;
	}

	.home-strip {
		padding-top: 40px;
	}

	.strip-discord,
	.strip-comment {
		padding: 20px;
	}

	.strip-discord .community-online {
		margin-left: 0;
	}

	.home-section {
		padding-top: 64px;
	}

	.section-head h2,
	.newhere h2 {
		font-size: 36px;
	}

	.chapter-cards {
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: 80%;
		overflow-x: auto;
		padding: 6px 4px 18px;
	}

	.cast-row {
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: 38%;
		overflow-x: auto;
	}

	.recent-row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Phones ------------------------------------------------------------------ */

@media (max-width: 900px) {
	.comic-after {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-template-areas: "notes" "side" "comments";
	}

	.caught-up {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.comic {
		padding: 14px 0 0;
	}

	/* On phones wpDiscuz pins its bubble bottom-left, over the comic and the BACK button.
	   The comments are reachable from "Answer in the comments" and by scrolling. */
	#wpd-bubble-wrapper {
		display: none !important;
	}

	.reader-head {
		display: block;
		margin: 0 16px 12px;
	}

	.reader-meta {
		gap: 4px 10px;
		margin-bottom: 6px;
	}

	.chapter-chip {
		font-size: 15px;
	}

	.reader-progress {
		font-size: 13px;
	}

	.progress-track,
	.reader-side {
		display: none;
	}

	.comic-title {
		font-size: 26px;
	}

	.comic-figure {
		padding: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.comic-image {
		border-radius: 0;
	}

	.reader-hint {
		justify-content: center;
		margin: 8px 16px 0;
		font-size: 13px;
	}

	.hint-keys {
		display: none;
	}

	.hint-tap {
		display: inline;
	}

	.scene-description {
		margin: 18px 16px 0;
	}

	.art-nav,
	.art-nav.is-last {
		grid-template-columns: 1fr 1fr;
		gap: 10px 12px;
		margin: 14px 12px 0;
	}

	.art-back img,
	.art-next img {
		width: 100%;
	}

	.art-ends {
		display: none;
	}

	.pill-ends {
		display: flex;
		grid-column: 1 / -1;
		gap: 10px;
	}

	.pill-ends .rn {
		flex: 1;
	}

	.chapter-next {
		grid-template-columns: 84px 1fr;
		gap: 14px 16px;
		margin: 22px 12px 0;
		padding: 14px;
	}

	.chapter-next img {
		width: 84px;
		height: 108px;
	}

	.chapter-next-title {
		font-size: 26px;
	}

	.chapter-next .btn {
		grid-column: 1 / -1;
	}

	.caught-up {
		margin: 22px 12px 0;
		padding: 22px 20px;
	}

	.caught-up h2 {
		font-size: 30px;
	}

	.comic-after {
		gap: 22px;
		margin: 34px 12px 0;
	}

	.baker-notes {
		padding: 20px 18px 22px;
	}

	.baker-notes-badge {
		width: 72px;
	}

	.baker-notes h2 {
		font-size: 30px;
	}

	.ask-question {
		font-size: 24px;
	}

	.side-card {
		padding: 16px 18px 18px;
	}

	.side-share {
		display: flex;
		align-items: center;
		gap: 14px;
	}

	.side-share h2 {
		flex-shrink: 0;
		font-size: 20px;
	}

	.side-share .share {
		flex: 1;
		margin: 0;
	}

	.comic-comments {
		padding: 0 4px;
	}

	.page-main,
	.listing-main {
		padding: 27px 20px 60px;
	}

	.chapter-chips ul {
		gap: 20px 25px;
	}

	.chip {
		font-size: 18px;
		line-height: 26.1px;
	}

	.comic-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.comic-card-title {
		font-size: 18px;
		line-height: 1.3;
	}

	.cast-title {
		font-size: 48px;
		line-height: 1.4;
	}

	.cast-content .cast-list > .wp-block-group__inner-container,
	.cast-content .cast-list:not(:has(> .wp-block-group__inner-container)) {
		grid-template-columns: minmax(0, 340px);
		justify-content: center;
	}

}
