/*
Theme Name:   ZRoute HQ
Theme URI:    https://zroutehq.com/
Description:  Child theme of Astra for ZRoute HQ. Holds the site's own styles and small features.
Author:       ZRoute HQ
Template:     astra
Version:      1.2.5
Text Domain:  zroutehq
*/

/* =========================================================
   1. Design tokens
   Mapped to Astra's Global Palette (Customize > Global > Colors),
   so changing a colour there updates the whole site.
   Palette slot N in Astra = --ast-global-color-(N-1).
   ========================================================= */
:root {
	--zr-accent:   var(--ast-global-color-0, #E53935); /* links, labels     */
	--zr-button:   var(--ast-global-color-1, #D61C1C); /* buttons           */
	--zr-heading:  var(--ast-global-color-2, #F4F6F8); /* headings          */
	--zr-text:     var(--ast-global-color-3, #C7CCD4); /* body text         */
	--zr-bg:       var(--ast-global-color-4, #0F1115); /* page background   */
	--zr-surface:  var(--ast-global-color-5, #171B21); /* cards, code boxes */
	--zr-border:   var(--ast-global-color-6, #303640); /* lines             */
	--zr-muted:    var(--ast-global-color-7, #8F98A3); /* dates, meta       */
	--zr-on-red:   var(--ast-global-color-8, #FFFFFF); /* text on buttons   */

	--zr-radius:    8px;
	--zr-radius-lg: 12px;
	--zr-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--zr-read-width: 720px;
}

/* =========================================================
   2. Base
   ========================================================= */
::selection { background: var(--zr-button); color: var(--zr-on-red); }

:focus-visible {
	outline: 2px solid var(--zr-accent);
	outline-offset: 2px;
}

/* =========================================================
   3. Buttons (block buttons only, never the menu toggle)
   ========================================================= */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.ast-custom-button {
	background-color: var(--zr-button);
	color: var(--zr-on-red);
	border: 0;
	border-radius: var(--zr-radius);
	font-weight: 700;
	text-decoration: none;
	transition: background-color .15s ease;
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:focus-visible,
.ast-custom-button:hover {
	background-color: var(--zr-accent);
	color: var(--zr-on-red);
}

/* Secondary: outline style */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--zr-heading);
	border: 1px solid var(--zr-border);
	border-radius: var(--zr-radius);
	font-weight: 700;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--zr-accent);
	color: var(--zr-accent);
}

/* =========================================================
   4. Reading layout for posts
   ========================================================= */
.single-post .entry-content > * {
	max-width: var(--zr-read-width);
	margin-left: auto;
	margin-right: auto;
}
.single-post .entry-content > .alignwide { max-width: 1100px; }
.single-post .entry-content > .alignfull { max-width: none; }

.entry-meta, .entry-meta a, .ast-blog-meta-container { color: var(--zr-muted); }

/* =========================================================
   5. Tables (guides are full of them)
   ========================================================= */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95em;
	line-height: 1.5;
}
.entry-content th,
.entry-content td {
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid var(--zr-border);
	text-align: left;
	vertical-align: top;
}
.entry-content thead th {
	color: var(--zr-heading);
	font-weight: 700;
	border-bottom: 2px solid var(--zr-border);
}
.entry-content tbody tr:nth-child(even) { background: var(--zr-surface); }

/* Wide tables scroll sideways on phones instead of breaking the page */
.wp-block-table { overflow-x: auto; }

/* =========================================================
   6. Components
   ========================================================= */

/* Small uppercase label, e.g. "GUIDES · 8 MIN READ" */
.zr-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--zr-accent);
}

/* Card for guides and tools */
.zr-card {
	background: var(--zr-surface);
	border: 1px solid var(--zr-border);
	border-radius: var(--zr-radius-lg);
	padding: 24px;
}
a.zr-card { display: block; color: inherit; text-decoration: none; }
a.zr-card:hover { border-color: var(--zr-accent); }

/* Gift code with copy button:
   <div class="zr-code"><span class="zr-code__value">DC70KMFT</span>
   <button type="button" class="zr-copy" data-code="DC70KMFT">Copy</button></div> */
.zr-code {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 14px 14px 16px;
	background: var(--zr-surface);
	border: 1.5px dashed #414A55;
	border-radius: var(--zr-radius-lg);
}
.zr-code__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: var(--zr-radius);
	background: rgba(229, 57, 53, .12);
	color: var(--zr-accent);
}
.zr-code__main { flex: 1; }
.zr-code__value {
	font-family: var(--zr-mono);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--zr-heading);
}
.zr-copy {
	min-height: 44px;
	padding: 0 18px;
	flex-shrink: 0;
	background: var(--zr-button);
	color: var(--zr-on-red);
	border: 0;
	border-radius: var(--zr-radius);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .15s ease;
}
.zr-copy:hover { background: var(--zr-accent); color: var(--zr-on-red); }
.zr-copy.is-copied { background: #2E7D4F; color: #FFFFFF; }
@media (max-width: 544px) {
	.zr-code { gap: 12px; padding: 12px; }
	.zr-code__icon { display: none; }
	.zr-code__value { font-size: 17px; }
	.zr-copy { padding: 0 14px; }
}

/* Grid helpers for code and tool rows */
.zr-grid { display: grid; gap: 16px; }
@media (min-width: 768px) {
	.zr-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zr-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.zr-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* =========================================================
   7. Text logo (site title)
   ========================================================= */
.site-title { margin: 0; line-height: 1; }
.site-title a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--zr-heading);
}
.site-title a:hover { color: var(--zr-heading); }
.zr-logo__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: var(--zr-radius);
	background: var(--zr-button);
	color: var(--zr-on-red);
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
}
.zr-logo__name {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1;
}
.zr-logo__hq { color: var(--zr-accent); }

@media (max-width: 544px) {
	.zr-logo__badge { width: 30px; height: 30px; font-size: 18px; }
	.zr-logo__name { font-size: 19px; }
}

/* =========================================================
   8. Codes (Codes page and homepage)
   ========================================================= */
.zr-codes__meta, .zr-section__meta { color: var(--zr-muted); font-size: 15px; margin: 0 0 16px; }
.zr-codes__list { display: grid; gap: 12px; }
.zr-code__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zr-code__rewards { color: var(--zr-text); font-size: 14px; line-height: 1.45; }
.zr-nowrap { white-space: nowrap; }
.zr-codes__expired { margin-top: 24px; }
.zr-codes__expired summary { cursor: pointer; color: var(--zr-muted); font-weight: 700; }
.zr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zr-chip {
	font-family: var(--zr-mono);
	font-size: 13px;
	padding: 4px 10px;
	border: 1px solid var(--zr-border);
	border-radius: 999px;
	color: var(--zr-muted);
	text-decoration: line-through;
}

/* =========================================================
   9. Today panel
   ========================================================= */
.zr-today {
	background: var(--zr-surface);
	border: 1px solid var(--zr-border);
	border-radius: var(--zr-radius-lg);
	padding: 24px;
}
.zr-today__title { font-size: 24px; margin: 6px 0 16px; }
.zr-today__day { padding: 12px 0; border-top: 1px solid var(--zr-border); }
.zr-today__day p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; }
.zr-today__when { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.zr-today__weekday { color: var(--zr-heading); font-weight: 800; }
.zr-today__stage { color: var(--zr-accent); font-weight: 700; font-size: 14px; }
.zr-today__save { color: var(--zr-muted); }
.zr-today__foot { margin: 16px 0 0; font-size: 14px; color: var(--zr-muted); }
/* With JavaScript, only today's block is shown. */
.zr-today.is-live .zr-today__day { display: none; }
.zr-today.is-live .zr-today__day.is-today { display: block; border-top: 0; padding-top: 0; }
.zr-today.is-live .zr-today__day.is-today p { font-size: 17px; }

/* =========================================================
   10. Homepage
   ========================================================= */
.zr-home { padding: 8px 0 64px; }
.zr-hero { padding: 32px 0 28px; max-width: 760px; }
.zr-hero__title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 10px 0 10px; }
.zr-hero__lead { font-size: 18px; color: var(--zr-muted); max-width: 620px; margin: 0; }

.zr-home__top { display: grid; gap: 40px; margin-bottom: 56px; }
.zr-home__top .zr-section__head { border-top: 0; padding-top: 0; }
/* Homepage: codes as a row of coupon cards, Today panel full width below. */
.zr-section--codes .zr-codes__list { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
	.zr-section--codes .zr-codes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.zr-section--codes .zr-codes__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.zr-section--codes .zr-code {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 18px;
	}
	.zr-section--codes .zr-code__main { flex: 1; }
	.zr-section--codes .zr-copy { width: 100%; }
}
@media (min-width: 922px) {
	.zr-today { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 32px; align-items: start; }
	.zr-today > .zr-label, .zr-today > .zr-today__title { grid-column: 1; }
	.zr-today > .zr-today__day, .zr-today > .zr-today__foot { grid-column: 2; }
	.zr-today > .zr-label { grid-row: 1; }
	.zr-today > .zr-today__title { grid-row: 2; margin-bottom: 0; }
	.zr-today.is-live > .zr-today__day.is-today { grid-row: 1 / span 2; }
	.zr-today.is-live > .zr-today__foot { grid-row: 3; }
}

.zr-section { margin-bottom: 56px; }
.zr-home__top .zr-section { margin-bottom: 0; }
.zr-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid var(--zr-border);
	margin-bottom: 16px;
}
.zr-section__head h2 { margin: 0; font-size: 28px; }
.zr-more { color: var(--zr-accent); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.zr-more:hover { color: var(--zr-heading); }

/* Guides */
.zr-guides { display: grid; gap: 32px; }
@media (min-width: 922px) { .zr-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }
.zr-guide { display: block; color: inherit; text-decoration: none; }
.zr-guide:hover .zr-guide__title { color: var(--zr-accent); }
.zr-guide__img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--zr-radius-lg); display: block; margin-bottom: 16px; }
.zr-guide__meta { color: var(--zr-muted); margin-left: 8px; }
.zr-guide__title { margin: 8px 0 0; font-size: 22px; line-height: 1.25; transition: color .15s ease; }
.zr-guide--featured .zr-guide__title { font-size: 30px; }
.zr-guide__excerpt { color: var(--zr-muted); margin: 10px 0 0; font-size: 17px; }
.zr-guide--row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--zr-border); }
.zr-guides__list .zr-guide--row:first-child { padding-top: 0; }
.zr-guide__thumb { width: 150px; height: 84px; object-fit: cover; border-radius: var(--zr-radius); flex-shrink: 0; }
@media (max-width: 544px) {
	.zr-guide__thumb { width: 104px; height: 64px; }
	.zr-guide__title { font-size: 19px; }
	.zr-guide--featured .zr-guide__title { font-size: 24px; }
}

/* Tools */
.zr-tool__name { font-size: 19px; line-height: 1.25; margin: 0 0 8px; }
.zr-tool__desc { color: var(--zr-muted); font-size: 15px; line-height: 1.45; margin: 0; }
.zr-tool:hover .zr-tool__name { color: var(--zr-accent); }

/* =========================================================
   11. Quick reference (factions)
   ========================================================= */
.zr-ref__title { font-size: 20px; margin: 0 0 14px; }
.zr-ref__chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.zr-ref__beats { color: var(--zr-muted); font-weight: 700; }
.zr-ref__note { color: var(--zr-muted); font-size: 15px; margin: 0; }
.zr-faction {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1;
}
.zr-faction--warrior  { color: #E0A13F; border-color: rgba(224,161,63,.55); background: rgba(224,161,63,.10); }
.zr-faction--assault  { color: #5AA8EC; border-color: rgba(61,146,220,.6);  background: rgba(61,146,220,.12); }
.zr-faction--tactical { color: #E0677E; border-color: rgba(201,71,95,.6);   background: rgba(201,71,95,.12); }
.zr-ref__bonus { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.zr-ref__bonus div { background: var(--zr-bg); border-radius: var(--zr-radius); padding: 10px 6px; text-align: center; }
.zr-ref__bonus b { display: block; color: var(--zr-heading); font-size: 20px; font-weight: 800; line-height: 1.2; }
.zr-ref__bonus span { color: var(--zr-muted); font-size: 13px; }

/* =========================================================
   12. Footer
   ========================================================= */
.zr-footer {
	margin-top: 64px;
	border-top: 1px solid var(--zr-border);
	background: var(--zr-bg);
	color: var(--zr-muted);
	font-size: 15px;
}
.zr-footer__inner { padding-top: 56px; padding-bottom: 32px; }
.zr-footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) {
	.zr-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.zr-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; }
	.zr-footer__grid--3 { grid-template-columns: 1.6fr 1fr 1fr; }
}
.zr-footer__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--zr-heading); text-decoration: none; margin-bottom: 18px; }
.zr-footer__logo:hover { color: var(--zr-heading); }
.zr-footer__kicker,
.zr-footer__motto {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.zr-footer__kicker { color: var(--zr-muted); margin-bottom: 10px; }
.zr-footer__motto { color: var(--zr-accent); margin-top: 14px; }
.zr-footer p { margin: 0; line-height: 1.6; }
.zr-footer__title {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--zr-heading);
}
.zr-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.zr-footer a { color: var(--zr-muted); text-decoration: none; }
.zr-footer a:hover { color: var(--zr-accent); }
.zr-footer__support {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--zr-radius);
	background: var(--zr-button);
	color: var(--zr-on-red) !important;
	font-weight: 700;
}
.zr-footer__support:hover { background: var(--zr-accent); }
.zr-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--zr-border);
	font-size: 14px;
}
.zr-footer__legal-text { max-width: 720px; }
.zr-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* =========================================================
   13. Tools page, tool cards, data badges
   ========================================================= */
@media (min-width: 768px) {
	.zr-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.zr-section__kicker { font-size: 13px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--zr-muted); }
.zr-tools-page { padding: 8px 0 32px; }
.zr-tools-page__meta { color: var(--zr-muted); font-size: 15px; margin: 14px 0 0; }

.zr-toolcard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
	background: var(--zr-surface);
	border: 1px solid var(--zr-border);
	border-radius: var(--zr-radius-lg);
	color: inherit;
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease;
}
.zr-toolcard:hover { border-color: var(--zr-accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .zr-toolcard:hover { transform: none; } }
.zr-toolcard__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.zr-toolcard__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.zr-toolcard__title { margin: 0; font-size: 22px; line-height: 1.25; }
.zr-toolcard--featured .zr-toolcard__title { font-size: clamp(24px, 2.6vw, 32px); }
.zr-toolcard__desc { margin: 0; color: var(--zr-muted); font-size: 16px; line-height: 1.55; }
.zr-toolcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.zr-toolcard__cta { color: var(--zr-accent); font-weight: 700; }
@media (min-width: 922px) {
	.zr-toolcard--featured { flex-direction: row; }
	.zr-toolcard--featured .zr-toolcard__img { width: 55%; aspect-ratio: auto; min-height: 320px; }
	.zr-toolcard--featured .zr-toolcard__body { padding: 32px; justify-content: center; }
}

.zr-data {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}
.zr-data--verified  { color: #7FD8A0; border-color: rgba(57,184,107,.5); background: rgba(57,184,107,.10); }
.zr-data--mixed     { color: #8BBCFF; border-color: rgba(47,141,255,.5); background: rgba(47,141,255,.10); }
.zr-data--community { color: #F1CC74; border-color: rgba(214,168,75,.5); background: rgba(214,168,75,.10); }
.zr-grid--3 .zr-card p { margin: 12px 0 0; color: var(--zr-muted); font-size: 16px; }

.zr-tools-page__table table { max-width: none; }
.zr-tools-page__table a { color: var(--zr-accent); font-weight: 700; text-decoration: none; }
.zr-tools-page__suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.zr-tools-page__suggest h2 { margin: 0 0 6px; font-size: 24px; }
.zr-tools-page__suggest p { margin: 0; color: var(--zr-muted); }

/* =========================================================
   14. Header dropdown (Tools menu)
   ========================================================= */
.main-header-menu .sub-menu {
	background: var(--zr-surface);
	border: 1px solid var(--zr-border);
	border-radius: var(--zr-radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
	padding: 6px 0;
	min-width: 240px;
}
.main-header-menu .sub-menu .menu-link { color: var(--zr-text); padding: 10px 18px; font-weight: 600; }
.main-header-menu .sub-menu .menu-item:hover > .menu-link,
.main-header-menu .sub-menu .current-menu-item > .menu-link { color: var(--zr-accent); background: rgba(229, 57, 53, .08); }

/* =========================================================
   15. One accent only: red for actions and labels,
   white/grey for values and highlights.
   ========================================================= */
.entry-content a:not(.wp-block-button__link) { color: var(--zr-accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:not(.wp-block-button__link):hover { color: var(--zr-heading); }
.zr-tools-page__table a { color: var(--zr-heading); }
.zr-tools-page__table a:hover { color: var(--zr-accent); }
.zr-today__stage { color: var(--zr-muted); }
.zr-guide__meta { color: var(--zr-muted); }
.zr-code__icon { background: var(--zr-bg); color: var(--zr-heading); }
.zr-toolcard__cta { color: var(--zr-heading); }
.zr-toolcard:hover .zr-toolcard__cta { color: var(--zr-accent); }
.zr-footer__motto { color: var(--zr-muted); }

/* =========================================================
   16. Header always dark (independent of palette slots)
   ========================================================= */
.site-header .ast-primary-header-bar,
.site-header .main-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-header-sticked .ast-primary-header-bar,
#ast-fixed-header .ast-primary-header-bar {
	background: var(--zr-bg) !important;
	border-bottom: 1px solid var(--zr-border);
}
.site-header .main-header-menu > .menu-item > .menu-link { color: var(--zr-text); }
.site-header .main-header-menu > .menu-item:hover > .menu-link,
.site-header .main-header-menu > .current-menu-item > .menu-link,
.site-header .main-header-menu > .current-menu-ancestor > .menu-link { color: var(--zr-heading); }
.ast-mobile-popup-drawer .ast-mobile-popup-inner { background: var(--zr-bg); }

/* =========================================================
   17. Copy buttons: quiet by default, red on hover.
   The header "Gift Codes" button stays the one filled red button.
   ========================================================= */
.zr-copy {
	background: transparent;
	color: var(--zr-heading);
	border: 1px solid var(--zr-border);
}
.zr-copy:hover,
.zr-copy:focus-visible {
	background: var(--zr-button);
	border-color: var(--zr-button);
	color: var(--zr-on-red);
}
.zr-copy.is-copied { background: #2E7D4F; border-color: #2E7D4F; color: #FFFFFF; }
.zr-code { border-style: solid; border-color: var(--zr-border); }
.zr-code:hover { border-color: #414A55; }

/* =========================================================
   18. Gift code cards: a touch of red
   ========================================================= */
.zr-code {
	position: relative;
	overflow: hidden;
	transition: border-color .15s ease;
}
.zr-code::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--zr-accent);
}
.zr-code:hover { border-color: rgba(229, 57, 53, .55); }
.zr-code__icon { background: rgba(229, 57, 53, .14); color: var(--zr-accent); }

/* =========================================================
   19. Tool icons (replace images on cards)
   ========================================================= */
.zr-tool-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--zr-radius);
	background: rgba(229, 57, 53, .14);
	color: var(--zr-accent);
	flex-shrink: 0;
}
.zr-toolcard--featured .zr-tool-icon { width: 52px; height: 52px; }
.zr-tool .zr-tool-icon { margin-bottom: 14px; }
.zr-toolcard__body > .zr-tool-icon { margin-bottom: 4px; }
/* Featured card without an image: full-width body */
.zr-toolcard--featured { flex-direction: column; }
@media (min-width: 922px) {
	.zr-toolcard--featured .zr-toolcard__body { padding: 32px 40px; }
	.zr-toolcard--featured .zr-toolcard__desc { max-width: 720px; font-size: 17px; }
}

/* =========================================================
   20. Tool cards look and feel clickable
   ========================================================= */
a.zr-tool {
	display: flex;
	flex-direction: column;
	cursor: pointer;
	transition: border-color .15s ease, transform .15s ease, background-color .15s ease;
}
.zr-tool__desc { flex: 1; }
.zr-tool__cta,
.zr-toolcard__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	color: var(--zr-accent) !important;
	font-size: 15px;
	font-weight: 700;
}
.zr-toolcard__cta { margin-top: 0; }
.zr-arrow { display: inline-block; transition: transform .15s ease; }
a.zr-tool:hover,
a.zr-tool:focus-visible,
.zr-toolcard:hover,
.zr-toolcard:focus-visible {
	border-color: var(--zr-accent);
	background-color: #1B1F26;
	transform: translateY(-3px);
}
a.zr-tool:hover .zr-arrow,
.zr-toolcard:hover .zr-arrow { transform: translateX(4px); }
a.zr-tool:hover .zr-tool__name { color: var(--zr-heading); }
@media (prefers-reduced-motion: reduce) {
	a.zr-tool:hover, .zr-toolcard:hover { transform: none; }
	a.zr-tool:hover .zr-arrow, .zr-toolcard:hover .zr-arrow { transform: none; }
}

/* =========================================================
   21. Homepage tools: bento tiles
   ========================================================= */
.zr-bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
	.zr-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zr-tile--big { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.zr-bento { grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: minmax(210px, auto); }
	.zr-tile--big { grid-column: 1; grid-row: 1 / span 2; }
}

.zr-tile {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow: hidden;
	padding: 24px;
	border: 1px solid var(--zr-border);
	border-radius: 16px;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(229, 57, 53, .13) 0%, rgba(229, 57, 53, 0) 55%),
		linear-gradient(180deg, #1A1E25 0%, var(--zr-surface) 100%);
	color: inherit;
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.zr-tile__grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: radial-gradient(90% 80% at 100% 0%, #000 0%, transparent 70%);
	mask-image: radial-gradient(90% 80% at 100% 0%, #000 0%, transparent 70%);
}
.zr-tile .zr-tool-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(229, 57, 53, .16); }
.zr-tile--big .zr-tool-icon { width: 64px; height: 64px; }
.zr-tile__text { flex: 1; }
.zr-tile__cat {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--zr-muted);
	margin-bottom: 6px;
}
.zr-tile__name { margin: 0; font-size: 20px; line-height: 1.25; }
.zr-tile--big .zr-tile__name { font-size: clamp(24px, 2.4vw, 32px); }
.zr-tile__desc { margin: 8px 0 0; color: var(--zr-muted); font-size: 15px; line-height: 1.5; }
.zr-tile--big .zr-tile__desc { font-size: 17px; max-width: 460px; }
.zr-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.zr-tile__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border-radius: 999px;
	border: 1px solid var(--zr-border);
	color: var(--zr-heading);
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.zr-tile--big .zr-tile__go { width: 50px; height: 50px; background: var(--zr-button); border-color: var(--zr-button); color: var(--zr-on-red); }

.zr-tile:hover,
.zr-tile:focus-visible {
	border-color: rgba(229, 57, 53, .6);
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -18px rgba(229, 57, 53, .45);
}
.zr-tile:hover .zr-tile__go,
.zr-tile:focus-visible .zr-tile__go {
	background: var(--zr-button);
	border-color: var(--zr-button);
	color: var(--zr-on-red);
	transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
	.zr-tile:hover, .zr-tile:hover .zr-tile__go { transform: none; }
}
@media (min-width: 1024px) { .zr-tile--wide { grid-column: span 2; } }

/* =========================================================
   22. Tool emblems
   ========================================================= */
.zr-emblem {
	display: inline-block;
	width: var(--zr-emblem, 72px);
	height: var(--zr-emblem, 72px);
	flex-shrink: 0;
	filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45));
	transition: transform .2s ease, filter .2s ease;
}
.zr-emblem img { display: block; width: 100%; height: 100%; }
.zr-tile:hover .zr-emblem,
.zr-toolcard:hover .zr-emblem {
	transform: translateY(-2px) scale(1.04);
	filter: drop-shadow(0 10px 22px rgba(229, 57, 53, .35));
}
@media (prefers-reduced-motion: reduce) {
	.zr-tile:hover .zr-emblem, .zr-toolcard:hover .zr-emblem { transform: none; }
}
@media (max-width: 699px) {
	.zr-tile .zr-emblem { --zr-emblem: 64px !important; }
}
.zr-menu-glyph { width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px; opacity: .9; }

/* =========================================================
   23. Gift code tickets
   ========================================================= */
.zr-codes__list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.zr-ticket {
	--zr-notch: 11px;
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--zr-border);
	border-radius: 16px;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(229, 57, 53, .14) 0%, rgba(229, 57, 53, 0) 55%),
		linear-gradient(180deg, #1A1E25 0%, var(--zr-surface) 100%);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.zr-ticket::before {
	content: "";
	position: absolute;
	top: -1px; left: 22px; right: 22px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--zr-accent), transparent);
	border-radius: 2px;
}
.zr-ticket__grid {
	position: absolute; inset: 0; z-index: -1; border-radius: 16px;
	background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 24px 24px;
	-webkit-mask-image: radial-gradient(80% 70% at 100% 0%, #000, transparent 70%);
	mask-image: radial-gradient(80% 70% at 100% 0%, #000, transparent 70%);
}
.zr-ticket__top { padding: 20px 20px 18px; flex: 1; }
.zr-ticket__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.zr-ticket__badge {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 10px;
	background: rgba(229, 57, 53, .14);
	box-shadow: inset 0 0 0 1px rgba(229, 57, 53, .35);
}
.zr-ticket__kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--zr-muted); }
.zr-ticket__main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.zr-ticket__num { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--zr-heading); }
.zr-ticket__label { font-size: 16px; font-weight: 700; color: var(--zr-heading); }
.zr-ticket__chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.zr-ticket__chips li {
	font-size: 12.5px; line-height: 1.2; padding: 5px 8px;
	border: 1px solid var(--zr-border); border-radius: 6px;
	background: rgba(15, 17, 21, .6); color: var(--zr-text);
}
/* Tear line with half-circle notches */
.zr-ticket__tear { position: relative; height: 0; border-top: 1.5px dashed #414A55; margin: 0 16px; }
.zr-ticket__tear::before,
.zr-ticket__tear::after {
	content: ""; position: absolute; top: calc(var(--zr-notch) * -1);
	width: calc(var(--zr-notch) * 2); height: calc(var(--zr-notch) * 2);
	border-radius: 50%; background: var(--zr-bg);
	border: 1px solid var(--zr-border);
}
.zr-ticket__tear::before { left: calc(-16px - var(--zr-notch) - 1px); clip-path: inset(0 0 0 50%); }
.zr-ticket__tear::after  { right: calc(-16px - var(--zr-notch) - 1px); clip-path: inset(0 50% 0 0); }
.zr-ticket__stub { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 20px; }
.zr-ticket .zr-code__value { font-size: 17px; }
.zr-ticket .zr-copy { min-height: 40px; padding: 0 16px; }
.zr-ticket:hover {
	border-color: rgba(229, 57, 53, .55);
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -20px rgba(229, 57, 53, .5);
}
.zr-ticket:hover .zr-copy { background: var(--zr-button); border-color: var(--zr-button); color: var(--zr-on-red); }
@media (prefers-reduced-motion: reduce) { .zr-ticket:hover { transform: none; } }
/* Homepage: 4 in a row on desktop */
@media (min-width: 1024px) {
	.zr-section--codes .zr-codes__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.zr-ticket .zr-copy { width: auto !important; flex-shrink: 0; }

/* =========================================================
   24. Today panel: stage as a live pill
   ========================================================= */
.zr-today__stage {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 10px 4px 9px;
	border: 1px solid rgba(229, 57, 53, .45);
	border-radius: 999px;
	background: rgba(229, 57, 53, .12);
	color: #FF6B61 !important;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.2;
}
.zr-today__stage::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--zr-accent);
	box-shadow: 0 0 0 0 rgba(229, 57, 53, .6);
	animation: zr-pulse 2s ease-out infinite;
}
@keyframes zr-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); }
	70%  { box-shadow: 0 0 0 7px rgba(229, 57, 53, 0); }
	100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}
@media (prefers-reduced-motion: reduce) { .zr-today__stage::before { animation: none; } }
/* Without JavaScript all days are listed: only today's pill pulses */
.zr-today:not(.is-live) .zr-today__stage::before,
.zr-today__day:not(.is-today) .zr-today__stage::before { animation: none; }


/* Newsletter (home) */
.zr-newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-top: 48px; }
.zr-newsletter h2 { margin: 6px 0 8px; }
.zr-newsletter p { margin: 0; color: var(--zr-muted); }
@media (max-width: 767px) { .zr-newsletter { grid-template-columns: 1fr; } }

/* Newsletter form: match the site (Fluent Forms overrides) */
.zr-newsletter .fluentform .ff-t-container { align-items: flex-start; gap: 12px; }
.zr-newsletter .fluentform .ff-t-cell { padding: 0 !important; }
.zr-newsletter .fluentform .ff-el-group { margin-bottom: 0; }
.zr-newsletter .fluentform .ff-el-form-control {
	height: 48px; background: var(--zr-bg); color: var(--zr-heading);
	border: 1px solid var(--zr-border); border-radius: var(--zr-radius);
}
.zr-newsletter .fluentform .ff-el-form-control:focus { border-color: var(--zr-accent); box-shadow: none; }
.zr-newsletter .fluentform .ff-el-form-control::placeholder { color: var(--zr-muted); }
.zr-newsletter .fluentform .ff-btn-submit,
.zr-newsletter .fluentform button[type="submit"] {
	height: 48px; width: 100%; margin: 0;
	background: var(--zr-button) !important; border: 0 !important; color: var(--zr-on-red) !important;
	border-radius: var(--zr-radius); font-weight: 700; font-family: inherit; font-size: inherit;
	text-transform: none; letter-spacing: normal; box-shadow: none !important;
	transition: background-color .15s ease;
}
.zr-newsletter .fluentform .ff-btn-submit:hover,
.zr-newsletter .fluentform .ff-btn-submit:focus-visible { background: var(--zr-accent) !important; color: var(--zr-on-red) !important; }
.zr-newsletter .fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--zr-accent); }
.zr-newsletter .fluentform .error { color: var(--zr-accent); font-size: 12px; margin-top: 6px; }
.zr-newsletter .fluentform .ff-el-group.ff_submit_btn_wrapper { margin: 0; }

/* =========================================================
   12. Tables: original look. Only additions: phones scroll
   sideways, short values (prices, labels) stay on one line.
   ========================================================= */
.zr-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 0 1.5em;
	border-radius: var(--zr-radius);
}
.zr-table table { margin: 0; }
.entry-content .zr-nw { white-space: nowrap; }

/* A little style: tinted header with a red line, hover on rows */
.entry-content thead th {
	background: rgba(229, 57, 53, .08);
	border-bottom: 2px solid var(--zr-accent);
	font-size: .8em;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--zr-heading);
}
.entry-content thead th:first-child { border-top-left-radius: var(--zr-radius); }
.entry-content thead th:last-child  { border-top-right-radius: var(--zr-radius); }
.entry-content tbody tr { transition: background-color .12s ease; }
.entry-content tbody tr:hover { background: rgba(229, 57, 53, .06); }
.entry-content tbody td:first-child { color: var(--zr-heading); }

/* =========================================================
   13. Related posts
   ========================================================= */
.zr-related {
	max-width: 1100px;
	margin: 48px auto 0;
	padding: 0 20px;
}
.zr-related__title { font-size: 1.4rem; margin: 0 0 16px; color: var(--zr-heading); }
.zr-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.zr-related__card {
	display: flex;
	flex-direction: column;
	background: var(--zr-surface);
	border: 1px solid var(--zr-border);
	border-radius: var(--zr-radius-lg);
	overflow: hidden;
	text-decoration: none;
	transition: border-color .15s ease;
}
.zr-related__card:hover, .zr-related__card:focus-visible { border-color: var(--zr-accent); }
.zr-related__img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.zr-related__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.zr-related__name { color: var(--zr-heading); font-weight: 700; line-height: 1.35; }
.zr-related__name { font-size: .95rem; }
@media (max-width: 921px) {
	.zr-related__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   14. Subscribe box
   Wide desktop: floating card at bottom right.
   Phone and tablet: bar at the bottom, tap to open the form.
   ========================================================= */
.zr-sub[hidden] { display: none !important; }
.zr-sub {
	position: fixed;
	z-index: 999;
	background: var(--zr-surface);
	border: 1px solid var(--zr-border);
	color: var(--zr-text);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
}
.zr-sub__close {
	position: absolute;
	top: 6px;
	right: 8px;
	background: none;
	border: 0;
	color: var(--zr-muted);
	font-size: 22px;
	line-height: 1;
	padding: 4px 6px;
	cursor: pointer;
}
.zr-sub__close:hover { color: var(--zr-heading); background: none; }
.zr-sub__title { color: var(--zr-heading); font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
.zr-sub__text { font-size: .9rem; margin: 0 0 12px; color: var(--zr-muted); }
.zr-sub .fluentform { margin: 0; }
.zr-sub .ff-el-group { margin-bottom: 10px; }
.zr-sub input[type="email"], .zr-sub input[type="text"] {
	width: 100%;
	background: var(--zr-bg);
	border: 1px solid var(--zr-border);
	color: var(--zr-heading);
	border-radius: var(--zr-radius);
	padding: 10px 12px;
}
.zr-sub .ff-btn-submit {
	width: 100%;
	background: var(--zr-button) !important;
	color: var(--zr-on-red) !important;
	border: 0;
	border-radius: var(--zr-radius);
	font-weight: 700;
	padding: 10px 14px;
}
.zr-sub .ff-btn-submit:hover { background: var(--zr-accent) !important; }

/* Wide desktop: card */
@media (min-width: 1360px) {
	.zr-sub {
		right: 24px;
		bottom: 24px;
		width: 280px;
		padding: 20px 18px 18px;
		border-radius: var(--zr-radius-lg);
	}
	.zr-sub__bar { display: none; }
}

/* Phone and tablet: bottom bar */
@media (max-width: 1359px) {
	.zr-sub {
		left: 0;
		right: 0;
		bottom: 0;
		border-width: 1px 0 0;
		padding: 0;
	}
	.zr-sub__bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		background: none;
		border: 0;
		color: var(--zr-heading);
		padding: 12px 52px 12px 16px;
		text-align: left;
		cursor: pointer;
		font-size: .95rem;
	}
	.zr-sub__bar:hover { background: none; color: var(--zr-heading); }
	.zr-sub__bar-btn {
		flex: none;
		background: var(--zr-button);
		color: var(--zr-on-red);
		border-radius: var(--zr-radius);
		padding: 8px 14px;
		font-weight: 700;
		font-size: .9rem;
	}
	.zr-sub__close { top: 50%; transform: translateY(-50%); }
	.zr-sub.is-open .zr-sub__close { top: 6px; transform: none; }
	.zr-sub__panel { display: none; padding: 4px 16px 16px; max-width: 520px; margin: 0 auto; }
	.zr-sub.is-open .zr-sub__panel { display: block; }
	.zr-sub.is-open .zr-sub__bar { display: none; }
	.zr-sub.is-open .zr-sub__panel { padding-top: 16px; }
	body:has(.zr-sub:not([hidden])) { padding-bottom: 64px; }
}

/* Tip box inside articles */
.entry-content .tip-box-post {
	background: var(--zr-surface);
	border-left: 3px solid var(--zr-accent);
	border-radius: var(--zr-radius);
	padding: 12px 16px;
	color: var(--zr-heading);
}

/* Compact code list (articles) */
.zr-clist__meta { color: var(--zr-muted); font-size: 15px; margin: 0 0 12px; }
.entry-content .zr-clist__rows { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--zr-border); border-radius: var(--zr-radius); }
.zr-clist__row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px; margin: 0; border-bottom: 1px solid var(--zr-border); }
.zr-clist__row:last-child { border-bottom: 0; }
.zr-clist__row:nth-child(even) { background: var(--zr-surface); }
.zr-clist__code { font-family: var(--zr-mono); font-weight: 700; color: var(--zr-heading); letter-spacing: .04em; }
.zr-clist__rewards { font-size: .9em; color: var(--zr-text); }
.zr-clist__row .zr-copy { min-height: 34px; padding: 0 14px; }
@media (max-width: 544px) {
	.zr-clist__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
	.zr-clist__rewards { grid-column: 1 / -1; grid-row: 2; }
}

/* Article code block: 4 newest cards, 2 per row, then "View all" */
.entry-content .zr-codes--top .zr-codes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) {
	.entry-content .zr-codes--top .zr-codes__list { grid-template-columns: 1fr; }
}
.zr-codes--top .zr-ticket__chips { padding-left: 0; margin-left: 0; }
.zr-codes__all { margin: 16px 0 0; }
.entry-content a.zr-codes__all-btn {
	display: inline-block;
	background: var(--zr-button);
	color: var(--zr-on-red);
	border-radius: var(--zr-radius);
	padding: 10px 18px;
	font-weight: 700;
	text-decoration: none;
}
.entry-content a.zr-codes__all-btn:hover { background: var(--zr-accent); color: var(--zr-on-red); }

/* Article codes: horizontal tickets (one per row) on tablet and desktop */
@media (min-width: 601px) {
	.entry-content .zr-codes--top .zr-codes__list { grid-template-columns: 1fr; gap: 14px; }
	.zr-codes--top .zr-ticket { flex-direction: row; align-items: stretch; }
	.zr-codes--top .zr-ticket__top { padding: 18px 20px; }
	.zr-codes--top .zr-ticket__head { margin-bottom: 10px; }
	.zr-codes--top .zr-ticket__chips { margin-top: 10px; }
	.zr-codes--top .zr-ticket__tear {
		height: auto;
		width: 0;
		border-top: 0;
		border-left: 1.5px dashed #414A55;
		margin: 16px 0;
	}
	.zr-codes--top .zr-ticket__tear::before,
	.zr-codes--top .zr-ticket__tear::after { left: calc(var(--zr-notch) * -1 - 1px); right: auto; }
	.zr-codes--top .zr-ticket__tear::before { top: calc(-16px - var(--zr-notch) - 1px); bottom: auto; clip-path: inset(50% 0 0 0); }
	.zr-codes--top .zr-ticket__tear::after  { top: auto; bottom: calc(-16px - var(--zr-notch) - 1px); clip-path: inset(0 0 50% 0); }
	.zr-codes--top .zr-ticket__stub {
		flex: none;
		width: 200px;
		flex-direction: column;
		justify-content: center;
		align-items: stretch;
		gap: 10px;
		padding: 16px 20px;
		text-align: center;
	}
	.zr-codes--top .zr-ticket .zr-copy { width: 100% !important; }
}

/* =========================================================
   15. "On this page" (table of contents)
   ========================================================= */
.single-post .entry-content h2[id] { scroll-margin-top: 100px; }
.zr-toc[hidden] { display: none !important; }
.zr-toc {
	background: var(--zr-bg);
	border: 1px solid var(--zr-border);
	border-radius: var(--zr-radius);
	margin: 0 0 28px;
}
.zr-toc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: 0;
	padding: 16px 18px;
	cursor: pointer;
	color: var(--zr-muted);
}
.zr-toc__head:hover, .zr-toc__head:focus-visible { background: none; color: var(--zr-heading); }
.zr-toc__title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.zr-toc__chev {
	width: 9px; height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-135deg);
	margin-top: 4px;
	transition: transform .15s ease;
}
.zr-toc.is-closed .zr-toc__chev { transform: rotate(45deg); margin-top: -4px; }
.zr-toc.is-closed .zr-toc__list { display: none; }
.entry-content .zr-toc__list, .zr-toc__list {
	list-style: none;
	margin: 0;
	padding: 0 0 10px;
	border-top: 1px solid var(--zr-border);
	overflow-y: auto;
}
.zr-toc__list li { margin: 0; }
.zr-toc__list a {
	display: block;
	padding: 9px 18px;
	border-left: 2px solid transparent;
	color: var(--zr-text);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
}
.zr-toc__list a:hover { color: var(--zr-heading); }
.zr-toc__list a.is-active {
	color: var(--zr-accent);
	font-weight: 700;
	border-left-color: var(--zr-accent);
	background: rgba(229, 57, 53, .08);
}
.single-post .entry-content > .zr-toc { max-width: var(--zr-read-width); }

/* Wide desktop: sticky box on the right, above the subscribe card */
.zr-side {
	position: fixed;
	z-index: 998;
	top: 110px;
	width: 270px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.zr-toc--side { margin: 0; }
/* Subscribe box inside the side column: normal card, not fixed */
.zr-side .zr-sub {
	position: relative;
	left: auto; right: auto; bottom: auto; top: auto;
	width: auto;
	padding: 20px 18px 18px;
	border: 1px solid var(--zr-border);
	border-radius: var(--zr-radius-lg);
	box-shadow: none;
}
.zr-side .zr-sub__bar, .zr-side .zr-sub__close { display: none; }
.zr-side .zr-sub__panel { display: block; padding: 0; }
/* Side box: about 3 titles; opens fully while the mouse is over it */
.zr-toc--side .zr-toc__list {
	position: relative;
	max-height: 132px;
	transition: max-height .2s ease;
}
.zr-toc--side:hover .zr-toc__list,
.zr-toc--side:focus-within .zr-toc__list { max-height: max(180px, calc(100vh - 480px)); }

/* Subscribe card lines up under the TOC on guide pages */



/* =========================================================
   16. Scrollbars: one look everywhere (page, tables, boxes)
   Thin, dark, rounded thumb, no arrows, no white track.
   ========================================================= */
html, * { scrollbar-width: thin; scrollbar-color: #3A414C transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3A414C; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #4A5360; background-clip: padding-box; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }

/* Subscribe form: email field on top, full-width button under it */
.zr-sub .ff-t-container { display: flex !important; flex-direction: column !important; gap: 10px; }
.zr-sub .ff-t-cell { width: 100% !important; flex: 1 1 auto !important; padding: 0 !important; margin: 0 !important; }
.zr-sub .ff-el-group { margin-bottom: 0 !important; }
.zr-sub .ff-el-group + .ff-el-group, .zr-sub .ff_submit_btn_wrapper { margin-top: 10px !important; }
.zr-sub .ff_submit_btn_wrapper, .zr-sub .ff-btn-submit { width: 100% !important; }
.zr-sub input[type="email"] { width: 100% !important; box-sizing: border-box; }
.zr-sub .ff-btn-submit { border: 0 !important; box-shadow: none !important; }
.zr-sub .ff-btn-submit:focus-visible { outline: 2px solid var(--zr-accent); outline-offset: 2px; }

/* Subscribe box: tighter spacing */
.zr-side .zr-sub { padding: 16px 16px 14px; }
.zr-sub__title { margin-bottom: 2px; }
.zr-sub__text { line-height: 1.45; margin-bottom: 10px; }
.zr-sub .fluentform form, .zr-sub .frm-fluent-form { margin: 0 !important; }
.zr-sub .ff-t-container { gap: 8px; }
.zr-sub .ff-el-group, .zr-sub .ff-el-group + .ff-el-group, .zr-sub .ff_submit_btn_wrapper { margin: 0 !important; }
.zr-sub .ff-el-group:has(.ff-btn-submit), .zr-sub .ff_submit_btn_wrapper { margin-top: 8px !important; }
.zr-sub .ff-el-input--content { margin: 0 !important; }
.zr-sub input[type="email"] { padding: 9px 12px; }
.zr-sub .ff-btn-submit { padding: 9px 14px; }

/* Subscribe: button right under the field */
.zr-sub form .ff-t-container { gap: 6px !important; margin: 0 !important; }
.zr-sub form .ff-t-cell, .zr-sub form .ff-el-group, .zr-sub form .ff_submit_btn_wrapper,
.zr-sub form .ff-el-group:has(.ff-btn-submit) { margin: 0 !important; padding: 0 !important; }
.zr-sub form .ff-btn-submit.wpf_has_custom_css:hover { background-color: var(--zr-accent) !important; color: var(--zr-on-red) !important; border-color: transparent !important; }
