/* ==========================================================================
   Trash Off! child theme: main stylesheet
   --------------------------------------------------------------------------
   1.  Fonts (self-hosted, no third-party requests)
   2.  Design tokens
   3.  Base and accessibility
   4.  Shared pieces: headings, text, status badge, frames, placeholders
   5.  Header
   6.  Homepage layout: sections and columns
   7.  Homepage: How It Works cards
   8.  Homepage: Meet the Arsenal weapon cards
   9.  Homepage: Online Chaos and final call to action
   10. Section wave dividers
   11. Legal page (Privacy Policy)
   12. Footer
   13. Motion (optional, reduced-motion aware)
   14. Tablet and phone adjustments

   How the classes work: each Elementor container or widget on the homepage
   carries one or more "to-" classes (Advanced tab > CSS Classes). Styling
   lives here, so editing text or swapping images in Elementor never breaks
   the look. Homepage selectors start with ".to-site .elementor" so they only
   affect Elementor content and stay easy to override in Elementor's panel.
   ========================================================================== */


/* 1. Fonts
   ========================================================================== */

@font-face {
	font-family: "Lilita One";
	src: url("../fonts/lilita-one-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Rubik";
	src: url("../fonts/rubik-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Rubik";
	src: url("../fonts/rubik-latin-700-normal.woff2") format("woff2");
	font-weight: 500 700;
	font-style: normal;
	font-display: swap;
}


/* 2. Design tokens
   Swap colors here once they are sampled from the official game art.
   ========================================================================== */

:root {
	--to-ink: #1a1a1a;
	--to-paper: #fff4de;
	--to-white: #ffffff;
	--to-river: #1b5fbf;
	--to-orange: #ff8c1a;
	--to-green: #9bd14b;
	--to-yellow: #ffd43b;
	--to-pink: #ff6fa8;
	--to-muted: #5c5646;
	--to-stripe-a: #efe5cc;
	--to-stripe-b: #e4d8ba;

	--to-font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
	--to-font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

	--to-tilt: 1deg;              /* Lean for decorative stickers only (0 to 2deg). */
	--to-radius: 22px;
	--to-radius-sm: 14px;
	--to-shadow: 6px 6px 0 var(--to-ink);
	--to-shadow-card: 8px 8px 0 var(--to-ink);
	--to-shadow-frame: 10px 10px 0 var(--to-ink);

	--to-max: 1200px;
	--to-gutter: clamp(16px, 4vw, 48px);
	--to-section-pad: clamp(56px, 7vw, 104px);
	--to-gap-lg: clamp(32px, 4vw, 56px);
	--to-gap-md: clamp(20px, 2.5vw, 32px);
}


/* 3. Base and accessibility
   ========================================================================== */

body.to-site {
	margin: 0;
	background: var(--to-paper);
	color: var(--to-ink);
	font-family: var(--to-font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.to-site .to-main {
	display: block;
	overflow-x: clip;     /* Tilted stickers never cause sideways scrolling. */
}

.to-site .to-main:focus {
	outline: none;
}

.to-site :focus-visible {
	outline: 3px solid var(--to-river);
	outline-offset: 3px;
}

.to-skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--to-yellow);
	color: var(--to-ink);
	border: 3px solid var(--to-ink);
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
	transform: translateY(-200%);
}

.to-skip-link:focus {
	transform: none;
}

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


/* 4. Shared pieces
   ========================================================================== */

/* Display headings (Elementor Heading widgets with to-h1 / to-h2 / to-h3). */
.to-site .elementor .to-h1 .elementor-heading-title,
.to-site .elementor .to-h2 .elementor-heading-title,
.to-site .elementor .to-h3 .elementor-heading-title {
	margin: 0;
	padding: 0;
	font-family: var(--to-font-display);
	font-weight: 400;
	font-style: normal;
	letter-spacing: 0.01em;
	text-transform: none;
	color: inherit;
}

.to-site .elementor .to-h1 .elementor-heading-title {
	font-size: clamp(44px, 6vw, 88px);
	line-height: 0.98;
}

.to-site .elementor .to-h2 .elementor-heading-title {
	font-size: clamp(38px, 5.5vw, 76px);
	line-height: 1;
}

.to-site .elementor .to-h3 .elementor-heading-title {
	font-size: 26px;
	line-height: 1.05;
}

/* Second line of a headline: wrap it in <span class="to-accent">. */
.to-site .to-accent {
	display: block;
	margin-top: 0.08em;
	color: var(--to-orange);
	-webkit-text-stroke: 3px var(--to-ink);
	paint-order: stroke fill;
	text-shadow: 5px 5px 0 var(--to-ink);
}

.to-site .to-accent--paper {
	color: var(--to-paper);
}

/* Body copy (Text Editor widgets with to-text, plus to-lede for the hero). */
.to-site .elementor .to-text {
	color: inherit;
	font-family: var(--to-font-body);
	font-size: 17px;
	line-height: 1.55;
}

.to-site .elementor .to-text p {
	margin: 0 0 0.75em;
}

.to-site .elementor .to-text p:last-child {
	margin-bottom: 0;
}

.to-site .elementor .to-lede {
	font-size: clamp(18px, 1.6vw, 22px);
	max-width: 32ch;
}

.to-site .elementor .to-intro {
	font-size: 19px;
	max-width: 56ch;
}

/* Release status badge.
   A plain label, not a button: no pressable shadow, no hover state, default
   cursor. Used in the header and as a Heading widget (tag "p") with to-status. */
.to-site p.to-status,
.to-site .elementor .to-status .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	margin: 0;
	padding: 0.5em 1em 0.5em 0.85em;
	background: var(--to-yellow);
	color: var(--to-ink);
	border: 3px solid var(--to-ink);
	border-radius: 999px;
	font-family: var(--to-font-display);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: none;
	white-space: nowrap;
	cursor: default;
	transform: rotate(var(--to-tilt));
}

/* The small status dot that marks it as information, not an action. */
.to-site p.to-status::before,
.to-site .elementor .to-status .elementor-heading-title::before {
	content: "";
	flex: none;
	width: 0.6em;
	height: 0.6em;
	border-radius: 50%;
	background: var(--to-orange);
	box-shadow: 0 0 0 2px var(--to-ink);
}

.to-site .elementor .to-status--lg .elementor-heading-title {
	font-size: clamp(20px, 2.1vw, 26px);
	padding: 0.6em 1.25em 0.6em 1em;
	border-width: 4px;
	white-space: normal;
}

.to-site .elementor .to-status--tilt-left .elementor-heading-title {
	transform: rotate(calc(var(--to-tilt) * -1));
}

/* Framed screenshot (Image widget with to-frame). The frame may lean. */
.to-site .elementor .to-frame {
	position: relative;
}

.to-site .elementor .to-frame img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--to-white);
	border: 5px solid var(--to-ink);
	border-radius: var(--to-radius);
	box-shadow: var(--to-shadow-frame);
	transform: rotate(var(--to-tilt));
}

.to-site .elementor .to-frame--left img {
	transform: rotate(calc(var(--to-tilt) * -1));
}

/* Strip of sticky tape across the top of a frame (decorative). */
.to-site .elementor .to-frame--taped {
	padding-top: 14px;
}

.to-site .elementor .to-frame--taped::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
	width: 130px;
	height: 34px;
	margin-left: -65px;
	background: rgba(255, 212, 59, 0.92);
	border: 2px solid var(--to-ink);
	transform: rotate(-4deg);
	pointer-events: none;
}

/* Smaller inline images inside cards (Image widget with to-shot). */
.to-site .elementor .to-shot img {
	display: block;
	width: 100%;
	height: auto;
	border: 3px solid var(--to-ink);
	border-radius: var(--to-radius-sm);
	background: var(--to-white);
}

/* --------------------------------------------------------------------------
   Image placeholders.
   Any Image widget with to-ph shows a striped, clearly labeled box while it
   still holds Elementor's default placeholder image (or no image). Choosing a
   real image in Elementor removes the label automatically. Each placeholder
   also has a to-ph--NAME class that sets its label and shape.
   -------------------------------------------------------------------------- */

.to-site .elementor .to-ph {
	position: relative;
	--to-ph-ratio: 16 / 10;
	--to-ph-label: "Image";
}

.to-site .elementor .to-ph img[src*="/elementor/assets/images/placeholder"],
.to-site .elementor .to-ph img[src*="placeholder.png"] {
	aspect-ratio: var(--to-ph-ratio);
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: -99999px 0;   /* Hide the generic placeholder graphic. */
	background-color: var(--to-stripe-a);
	background-image: repeating-linear-gradient(135deg, var(--to-stripe-a) 0 14px, var(--to-stripe-b) 14px 28px);
}

.to-site .elementor .to-ph:has(img[src*="placeholder"])::before,
.to-site .elementor .to-ph:has(img[src*="placeholder"])::after {
	position: absolute;
	left: 50%;
	z-index: 3;
	max-width: calc(100% - 32px);
	text-align: center;
	pointer-events: none;
	transform: translateX(-50%);
}

.to-site .elementor .to-ph:has(img[src*="placeholder"])::before {
	content: "PLACEHOLDER";
	top: calc(50% - 24px);
	padding: 3px 9px;
	background: var(--to-ink);
	color: var(--to-paper);
	border-radius: 6px;
	font: 700 11px/1.3 var(--to-font-body);
	letter-spacing: 0.12em;
}

.to-site .elementor .to-ph:has(img[src*="placeholder"])::after {
	content: var(--to-ph-label);
	top: calc(50% + 4px);
	width: max-content;
	white-space: normal;
	color: var(--to-ink);
	font: 700 15px/1.3 var(--to-font-body);
}

/* The taped hero frame already uses ::before for its tape; keep the tape
   and move the PLACEHOLDER tag into the label instead. */
.to-site .elementor .to-frame--taped.to-ph:has(img[src*="placeholder"])::before {
	content: "";
	top: 0;
	padding: 0;
	background: rgba(255, 212, 59, 0.92);
	border-radius: 0;
	transform: rotate(-4deg);
	left: 50%;
	max-width: none;
}

.to-site .elementor .to-frame--taped.to-ph:has(img[src*="placeholder"])::after {
	content: "PLACEHOLDER · " var(--to-ph-label);
}

/* Labels and shapes for each placeholder. */
.to-site .elementor .to-ph--hero      { --to-ph-label: "Hero gameplay screenshot"; --to-ph-ratio: 16 / 10; }
.to-site .elementor .to-ph--snag      { --to-ph-label: "Screenshot: grabbing floating junk"; --to-ph-ratio: 4 / 3; }
.to-site .elementor .to-ph--build     { --to-ph-label: "Screenshot: stacking a fort"; --to-ph-ratio: 4 / 3; }
.to-site .elementor .to-ph--fly       { --to-ph-label: "Screenshot: a weapon hitting a fort"; --to-ph-ratio: 4 / 3; }
.to-site .elementor .to-ph--weapon    { --to-ph-label: "Weapon art"; --to-ph-ratio: 4 / 3; }
.to-site .elementor .to-ph--bean      { --to-ph-label: "Baked Bean Launcher art"; }
.to-site .elementor .to-ph--pult      { --to-ph-label: "Trash-a-Pult art"; }
.to-site .elementor .to-ph--possum    { --to-ph-label: "Possum Surprise art"; }
.to-site .elementor .to-ph--puffer    { --to-ph-label: "Rust Puffer art"; }
.to-site .elementor .to-ph--online    { --to-ph-label: "Screenshot: leaderboard or match results"; --to-ph-ratio: 16 / 10; }
.to-site .elementor .to-ph--slapknee  { --to-ph-label: "Slap Knee logo"; --to-ph-ratio: 17 / 6; }




/* 5. Header
   ========================================================================== */

.to-header {
	background: var(--to-paper);
}

.to-header__inner {
	box-sizing: border-box;
	max-width: calc(var(--to-max) + 2 * var(--to-gutter));
	margin: 0 auto;
	padding: 18px var(--to-gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}

.to-header__logo {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	color: var(--to-ink);
	text-decoration: none;
}

.to-header__logo-img {
	display: block;
	width: auto;
	height: auto;
	max-height: 72px;
	max-width: 220px;
}

.to-logo-placeholder {
	box-sizing: border-box;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 190px;
	height: 68px;
	border: 3px dashed var(--to-ink);
	border-radius: var(--to-radius-sm);
	background: repeating-linear-gradient(135deg, var(--to-stripe-a) 0 12px, var(--to-stripe-b) 12px 24px);
	line-height: 1.2;
	text-align: center;
}

.to-logo-placeholder__tag {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.to-logo-placeholder__name {
	font-size: 14px;
	font-weight: 700;
}

.to-header__end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
}

.to-header__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 4px;
	color: var(--to-ink);
	font-family: var(--to-font-display);
	font-size: 19px;
	letter-spacing: 0.02em;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--to-orange);
	text-underline-offset: 6px;
}

.to-header__nav a:hover {
	text-decoration-color: var(--to-ink);
}


/* 6. Homepage layout: sections and columns
   Every section is a full-width Elementor container with to-section plus a
   color class. Content is centered at 1200px using padding, so there are no
   nested "boxed" containers to manage.
   ========================================================================== */

.to-site .elementor .to-section {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--to-gap-lg);
	width: 100%;
	max-width: none;
	margin: 0;
	padding: var(--to-section-pad) max(var(--to-gutter), calc((100% - var(--to-max)) / 2));
}

.to-site .elementor .to-section--paper  { background: var(--to-paper); color: var(--to-ink); }
.to-site .elementor .to-section--river  { background: var(--to-river); color: var(--to-white); }
.to-site .elementor .to-section--green  { background: var(--to-green); color: var(--to-ink); }
.to-site .elementor .to-section--orange { background: var(--to-orange); color: var(--to-ink); }

.to-site .elementor .to-section--river .to-h2 .elementor-heading-title {
	text-shadow: 4px 4px 0 var(--to-ink);
}

/* Hero sits right under the header, so it starts closer to the top. */
.to-site .elementor .to-hero {
	padding-top: clamp(16px, 4vw, 48px);
}

/* Section anchors land below the top edge with a little breathing room. */
.to-site .elementor .to-section[id] {
	scroll-margin-top: 16px;
}

/* Two columns that stack on narrow screens. */
.to-site .elementor .to-split {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(40px, 5vw, 72px);
	width: 100%;
	padding: 0;
}

.to-site .elementor .to-split__main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	flex: 1 1 520px;
	width: auto;
	min-width: 0;
	padding: 0;
}

.to-site .elementor .to-split__media {
	display: flex;
	flex-direction: column;
	flex: 1 1 400px;
	width: auto;
	min-width: 0;
	padding: 0;
}

/* A plain vertical stack (heading + intro text, for example). */
.to-site .elementor .to-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	padding: 0;
}

/* Widgets inside our containers size to their content width by default. */
.to-site .elementor .to-section .elementor-widget,
.to-site .elementor .to-section .elementor-widget-container {
	max-width: 100%;
}

.to-site .elementor .to-split__main > .elementor-widget {
	width: 100%;
}


/* 7. How It Works cards
   ========================================================================== */

.to-site .elementor .to-cards {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--to-gap-md);
	width: 100%;
	padding: 0;
}

.to-site .elementor .to-step {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1 1 280px;
	width: auto;
	min-width: 0;
	padding: 22px;
	background: var(--to-paper);
	color: var(--to-ink);
	border: 4px solid var(--to-ink);
	border-radius: var(--to-radius);
	box-shadow: var(--to-shadow-card);
}

.to-site .elementor .to-step__head {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 0;
}

.to-site .elementor .to-step__head > .elementor-widget {
	width: auto;
	flex: 0 1 auto;
	min-width: 0;
}

.to-site .elementor .to-step__num .elementor-heading-title {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin: 0;
	border-radius: 50%;
	background: var(--to-yellow);
	border: 3px solid var(--to-ink);
	color: var(--to-ink);
	font-family: var(--to-font-display);
	font-weight: 400;
	font-size: 28px;
	line-height: 1;
}

.to-site .elementor .to-step .to-h3 .elementor-heading-title {
	font-size: 28px;
}


/* 8. Meet the Arsenal weapon cards
   Four across on desktop, two on tablet, compact horizontal cards on phones.
   Artwork is never cropped (object-fit: contain).
   ========================================================================== */

.to-site .elementor .to-weapons {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--to-gap-md);
	width: 100%;
	padding: 0;
}

.to-site .elementor .to-weapon {
	--to-weapon-color: var(--to-orange);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0;
	width: auto;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	background: var(--to-white);
	color: var(--to-ink);
	border: 4px solid var(--to-ink);
	border-radius: 20px;
	box-shadow: var(--to-shadow);
}

.to-site .elementor .to-weapon--orange { --to-weapon-color: var(--to-orange); }
.to-site .elementor .to-weapon--green  { --to-weapon-color: var(--to-green); }
.to-site .elementor .to-weapon--yellow { --to-weapon-color: var(--to-yellow); }
.to-site .elementor .to-weapon--pink   { --to-weapon-color: var(--to-pink); }

.to-site .elementor .to-weapon__art {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	padding: 16px;
	background: var(--to-weapon-color);
	border-bottom: 4px solid var(--to-ink);
}

.to-site .elementor .to-weapon__art img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: contain;      /* Show the complete artwork. */
}

.to-site .elementor .to-weapon__art .to-ph img[src*="placeholder"] {
	border: 3px dashed var(--to-ink);
	border-radius: 12px;
	box-sizing: border-box;
}

.to-site .elementor .to-weapon__body {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	padding: 18px 20px 22px;
}

.to-site .elementor .to-weapon__body > .elementor-widget {
	width: 100%;
}

.to-site .elementor .to-tag .elementor-heading-title {
	display: inline-block;
	margin: 0;
	padding: 2px 8px;
	background: var(--to-yellow);
	color: var(--to-ink);
	border: 2px solid var(--to-ink);
	border-radius: 6px;
	font-family: var(--to-font-body);
	font-weight: 700;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.to-site .elementor .to-weapon .to-tag {
	width: auto;
}


/* 9. Online Chaos and final call to action
   ========================================================================== */

.to-site .elementor .to-features {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	padding: 0;
	margin: 0;
	list-style: none;
}

.to-site .elementor .to-feature {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	padding: 16px 20px;
	background: var(--to-paper);
	color: var(--to-ink);
	border: 3px solid var(--to-ink);
	border-radius: 16px;
	box-shadow: 5px 5px 0 var(--to-ink);
}

.to-site .elementor .to-feature .to-h3 .elementor-heading-title {
	font-size: 22px;
}

.to-site .elementor .to-cta {
	align-items: center;
	text-align: center;
}

.to-site .elementor .to-cta > .elementor-widget {
	width: auto;
}

.to-site .elementor .to-cta .to-h2 .elementor-heading-title {
	font-size: clamp(34px, 7vw, 100px);
}

.to-site .elementor .to-credit {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: auto;
	padding: 0;
}

.to-site .elementor .to-credit > .elementor-widget {
	width: auto;
}

.to-site .elementor .to-credit .to-text {
	font-size: 18px;
	font-weight: 700;
}

.to-site .elementor .to-credit .to-logo img {
	display: block;
	width: 170px;
	max-width: 100%;
	height: auto;
}

.to-site .elementor .to-credit .to-ph img[src*="placeholder"] {
	border: 3px dashed var(--to-ink);
	border-radius: 12px;
	box-sizing: border-box;
}

.to-site .elementor .to-credit .to-ph:has(img[src*="placeholder"])::before {
	top: calc(50% - 20px);
	font-size: 10px;
}

.to-site .elementor .to-credit .to-ph:has(img[src*="placeholder"])::after {
	font-size: 13px;
	top: calc(50% + 1px);
}


/* 10. Section wave dividers
   Add to-wave to a section to draw a wavy top edge in that section's color.
   ========================================================================== */

.to-site .elementor .to-wave::before {
	content: "";
	position: absolute;
	top: -38px;
	left: 0;
	right: 0;
	z-index: 1;
	height: 40px;
	background: no-repeat 0 0 / 100% 100%;
	pointer-events: none;
}

.to-site .elementor .to-wave.to-section--river::before  { background-image: url("../img/wave-river.svg"); }
.to-site .elementor .to-wave.to-section--paper::before  { background-image: url("../img/wave-paper.svg"); }
.to-site .elementor .to-wave.to-section--green::before  { background-image: url("../img/wave-green.svg"); }
.to-site .elementor .to-wave.to-section--orange::before { background-image: url("../img/wave-orange.svg"); }


/* 11. Legal page (Privacy Policy)
   Calm reading layout. The policy text itself comes from the page editor.
   ========================================================================== */

.to-legal {
	box-sizing: border-box;
	max-width: calc(760px + 2 * var(--to-gutter));
	margin: 0 auto;
	padding: clamp(8px, 2vw, 24px) var(--to-gutter) clamp(56px, 7vw, 96px);
	font-size: 18px;
	line-height: 1.65;
}

.to-legal__back {
	margin: 0 0 20px;
}

.to-legal__back a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--to-ink);
	font-weight: 700;
	font-size: 16px;
	text-underline-offset: 4px;
}

.to-legal__header {
	margin: 0 0 32px;
}

.to-legal__title {
	display: inline-block;
	margin: 0;
	padding: 10px 22px;
	background: var(--to-yellow);
	color: var(--to-ink);
	border: 4px solid var(--to-ink);
	border-radius: 16px;
	box-shadow: var(--to-shadow);
	font-family: var(--to-font-display);
	font-weight: 400;
	font-size: clamp(36px, 5vw, 60px);
	line-height: 1.05;
	letter-spacing: 0.01em;
}

.to-legal__body {
	box-sizing: border-box;
	padding: clamp(22px, 4vw, 48px);
	background: var(--to-white);
	color: var(--to-ink);
	border: 3px solid var(--to-ink);
	border-radius: 18px;
	box-shadow: 5px 5px 0 var(--to-ink);
	overflow-wrap: anywhere;
}

.to-legal__body > :first-child { margin-top: 0; }
.to-legal__body > :last-child  { margin-bottom: 0; }

.to-legal__body h2 {
	margin: 1.6em 0 0.5em;
	font-family: var(--to-font-display);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.15;
	color: var(--to-ink);
}

.to-legal__body h3,
.to-legal__body h4 {
	margin: 1.4em 0 0.4em;
	font-family: var(--to-font-body);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	color: var(--to-ink);
}

.to-legal__body p,
.to-legal__body ul,
.to-legal__body ol {
	margin: 0 0 1em;
}

.to-legal__body ul,
.to-legal__body ol {
	padding-left: 1.4em;
}

.to-legal__body li + li {
	margin-top: 0.35em;
}

.to-legal__body a {
	color: var(--to-river);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.to-legal__body a:hover {
	color: var(--to-ink);
}

.to-legal__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.to-legal__body th,
.to-legal__body td {
	padding: 8px 10px;
	border: 2px solid var(--to-ink);
	text-align: left;
	vertical-align: top;
}


/* 12. Footer
   ========================================================================== */

.to-footer {
	background: var(--to-ink);
	color: var(--to-paper);
}

.to-footer__inner {
	box-sizing: border-box;
	max-width: calc(var(--to-max) + 2 * var(--to-gutter));
	margin: 0 auto;
	padding: 36px var(--to-gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
}

.to-footer__brand p {
	margin: 0;
}

.to-footer__credit {
	font-family: var(--to-font-display);
	font-size: 22px;
	line-height: 1.2;
}

.to-footer__copy {
	margin-top: 4px;
	font-size: 16px;
}

.to-footer__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 24px;
}

.to-footer__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--to-yellow);
	font-weight: 700;
	font-size: 16px;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.to-footer__nav a:hover {
	color: var(--to-white);
}

.to-footer :focus-visible {
	outline-color: var(--to-yellow);
}

.to-footer__admin-note {
	margin: 0;
	max-width: 46ch;
	padding: 8px 12px;
	border: 2px dashed var(--to-yellow);
	border-radius: 8px;
	font-size: 14px;
}


/* 13. Motion
   Added only by assets/js/trashoff.js, never in the Elementor editor and
   never when the visitor asks for reduced motion.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.to-motion .to-site .elementor .to-section:not(.to-hero) > * {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 0.5s ease, transform 0.5s ease;
	}

	.to-motion .to-site .elementor .to-section.is-visible > * {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
	.to-motion .to-site .elementor .to-section:not(.to-hero) > * {
		transform: translateY(8px);
		transition-duration: 0.35s;
	}
}


/* 14. Tablet and phone adjustments
   Breakpoints match Elementor's defaults (tablet 1024px, mobile 767px).
   ========================================================================== */

@media (max-width: 1024px) {
	.to-site .elementor .to-weapons {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.to-site {
		font-size: 16px;
	}

	/* Keep mobile navigation minimal: logo and status only. */
	.to-header__nav {
		display: none;
	}

	.to-header__inner {
		padding-top: 14px;
		padding-bottom: 14px;
	}

	.to-logo-placeholder {
		width: 160px;
		height: 58px;
	}

	.to-header__logo-img {
		max-height: 56px;
		max-width: 170px;
	}

	.to-site p.to-status {
		font-size: 16px;
		padding: 0.45em 0.85em 0.45em 0.7em;
	}

	.to-site .to-accent {
		-webkit-text-stroke-width: 2px;
		text-shadow: 3px 3px 0 var(--to-ink);
	}

	.to-site .elementor .to-text {
		font-size: 16px;
	}

	.to-site .elementor .to-lede {
		font-size: 18px;
	}

	.to-site .elementor .to-intro {
		font-size: 17px;
	}

	.to-site .elementor .to-frame img {
		border-width: 4px;
		box-shadow: 7px 7px 0 var(--to-ink);
	}

	.to-site .elementor .to-step {
		padding: 18px;
		box-shadow: 6px 6px 0 var(--to-ink);
	}

	.to-site .elementor .to-step .to-h3 .elementor-heading-title {
		font-size: 24px;
	}

	.to-site .elementor .to-step__num .elementor-heading-title {
		width: 46px;
		height: 46px;
		font-size: 24px;
	}

	/* Compact horizontal weapon cards: art on the left, words on the right. */
	.to-site .elementor .to-weapons {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.to-site .elementor .to-weapon {
		flex-direction: row;
		align-items: stretch;
		border-radius: 18px;
		box-shadow: 5px 5px 0 var(--to-ink);
	}

	.to-site .elementor .to-weapon__art {
		flex: 0 0 38%;
		width: 38%;
		padding: 10px;
		border-bottom: 0;
		border-right: 4px solid var(--to-ink);
	}

	.to-site .elementor .to-weapon__art img {
		aspect-ratio: 1 / 1;
	}

	.to-site .elementor .to-weapon__art .to-ph {
		--to-ph-ratio: 1 / 1;
	}

	.to-site .elementor .to-weapon__art .to-ph:has(img[src*="placeholder"])::before {
		top: 10px;
		font-size: 8px;
		letter-spacing: 0.06em;
		padding: 2px 5px;
	}

	.to-site .elementor .to-weapon__art .to-ph:has(img[src*="placeholder"])::after {
		top: 50%;
		max-width: calc(100% - 16px);
		font-size: 12px;
		line-height: 1.2;
		transform: translate(-50%, -30%);
	}

	.to-site .elementor .to-weapon__body {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		justify-content: center;
		gap: 6px;
		padding: 14px 16px;
	}

	.to-site .elementor .to-weapon .to-h3 .elementor-heading-title {
		font-size: 22px;
	}

	.to-site .elementor .to-weapon .to-tag .elementor-heading-title {
		font-size: 11px;
		padding: 1px 6px;
	}

	.to-site .elementor .to-feature .to-h3 .elementor-heading-title {
		font-size: 21px;
	}

	.to-site .elementor .to-credit .to-text {
		font-size: 17px;
	}

	.to-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.to-footer__credit {
		font-size: 20px;
	}

	.to-legal {
		font-size: 17px;
	}

	.to-legal__body h2 {
		font-size: 24px;
	}
}
