/*
Theme Name: Zzero
Theme URI: https://tropicalessays.com
Author: Zzero
Description: Fast, mobile-first, SEO- and AI-search-friendly theme for academic writing service sites. Rebuilt from the original Zzero theme (base by Davison Pro). Keeps the price calculator hooks, /order, /dashboard and /pricing links intact.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zzero
*/

:root {
	--zz-primary: #2563eb;
	--zz-accent: #fec137;
	--zz-dark: #0f1d3f;
	--zz-text: #1f2a44;
	--zz-muted: #5b6784;
	--zz-line: #e4e8f1;
	--zz-bg: #ffffff;
	--zz-alt: #f5f7fc;
	--zz-radius: 14px;
	--zz-shadow: 0 8px 30px rgba(15, 29, 63, .10);
	--zz-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--zz-header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--zz-header-h) + 16px); }
body { margin: 0; font-family: var(--zz-font); font-size: 17px; line-height: 1.65; color: var(--zz-text); background: var(--zz-bg); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--zz-primary); text-underline-offset: 3px; }
a:hover { color: var(--zz-dark); }
h1, h2, h3, h4 { color: var(--zz-dark); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw + .5rem, 3.2rem); }
h2 { font-size: clamp(1.55rem, 2.4vw + .6rem, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--zz-primary); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--zz-dark); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow, .narrow { max-width: 820px; }
.center { text-align: center; }
.icon { flex: none; vertical-align: -.2em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--zz-font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; min-height: 44px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--zz-primary); color: #fff; }
.btn-primary:hover { background: var(--zz-dark); color: #fff; }
.btn-accent { background: var(--zz-accent); color: var(--zz-dark); box-shadow: 0 4px 14px rgba(254, 193, 55, .35); }
.btn-accent:hover { color: var(--zz-dark); filter: brightness(.96); }
.btn-ghost { background: transparent; color: var(--zz-dark); border-color: var(--zz-line); }
.btn-ghost:hover { border-color: var(--zz-primary); color: var(--zz-primary); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { padding: .5em 1em; font-size: .9rem; min-height: 38px; }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn-row { display: inline-flex; gap: 12px; flex-wrap: wrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--zz-line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--zz-header-h); }
.header-brand { margin-right: auto; }
.brand, .custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; font-weight: 800; font-size: 1.35rem; color: var(--zz-dark); }
.brand-img, .custom-logo { max-height: 44px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 20px; }
.primary-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a { display: block; padding: 10px 12px; color: var(--zz-dark); font-weight: 600; font-size: .98rem; text-decoration: none; border-radius: 8px; }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a { color: var(--zz-primary); background: var(--zz-alt); }
.primary-nav .menu-item { position: relative; }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff; border: 1px solid var(--zz-line); border-radius: 12px; box-shadow: var(--zz-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.primary-nav .menu-item:hover > .sub-menu, .primary-nav .menu-item:focus-within > .sub-menu, .primary-nav .sub-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.sub-toggle { display: none; }
.header-actions { display: flex; gap: 10px; }
.header-order-mobile, .nav-toggle { display: none; }

@media (max-width: 960px) {
	.header-order-mobile { display: inline-flex; }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--zz-line); border-radius: 10px; cursor: pointer; }
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--zz-dark); border-radius: 2px; position: relative; transition: .2s; }
	.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle-bars::before { top: -6px; }
	.nav-toggle-bars::after { top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
	.primary-nav { position: fixed; inset: var(--zz-header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
	.primary-nav.is-open { transform: none; visibility: visible; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .menu a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--zz-line); border-radius: 0; }
	.primary-nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
	.primary-nav .menu-item-has-children > a { flex: 1; }
	.sub-toggle { display: block; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
	.sub-toggle::after { content: ""; position: absolute; left: 16px; top: 15px; width: 8px; height: 8px; border-right: 2px solid var(--zz-dark); border-bottom: 2px solid var(--zz-dark); transform: rotate(45deg); transition: .2s; }
	.sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); top: 19px; }
	.primary-nav .sub-menu { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; display: none; }
	.primary-nav .sub-menu.is-open { display: block; }
	.header-actions { flex-direction: column; margin-top: 18px; }
	.header-actions .btn { width: 100%; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 400px) { .header-order-mobile { display: none; } }

/* Hero */
.hero { background: linear-gradient(135deg, var(--zz-dark) 0%, #17306b 100%); color: #dbe4ff; padding: 56px 0 64px; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-lead { font-size: 1.15rem; color: #c9d5f7; max-width: 560px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--zz-accent); margin-bottom: 8px; }
.tick-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 8px; }
.tick-list li { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 500; }
.tick-list .icon { color: var(--zz-accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; justify-content: start; margin: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: .85rem; color: #aebce6; }
.hero-stats dd { margin: 0; font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-compact { padding: 40px 0 48px; }
.hero-compact h1 { font-size: clamp(1.8rem, 3.5vw + .4rem, 2.6rem); }
.hero .breadcrumbs, .hero .breadcrumbs a { color: #aebce6; }
@media (max-width: 960px) {
	.hero { padding: 36px 0 44px; }
	.hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.hero-stats { gap: 16px; }
	.hero-stats dd { font-size: 1.3rem; }
}

/* Calculator (hooks used by /static/js/scripts.js) */
.calc-short { background: #fff; color: var(--zz-text); border-radius: 18px; padding: 24px; box-shadow: var(--zz-shadow); border-top: 5px solid var(--zz-accent); }
.calc-short label { display: block; font-size: .85rem; font-weight: 700; color: var(--zz-muted); margin-bottom: 6px; }
.orderform-title { font-size: 1.25rem; font-weight: 800; color: var(--zz-dark); margin-bottom: 14px; }
.order-m-group { margin-bottom: 14px; }
.styled-select { position: relative; }
.styled-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--zz-muted); border-bottom: 2px solid var(--zz-muted); transform: rotate(45deg); pointer-events: none; }
.styled-select select, .styled-pages-input { width: 100%; min-height: 48px; padding: 10px 40px 10px 14px; font: 500 1rem var(--zz-font); color: var(--zz-text); background: #fff; border: 1.5px solid var(--zz-line); border-radius: 10px; appearance: none; -webkit-appearance: none; }
.styled-select select:focus, .styled-pages-input:focus { border-color: var(--zz-primary); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.new-line-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.new-line-flex > .order-m-group { margin-bottom: 14px; }
.pages-control__head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.pageskol-title { font-size: .75rem; color: var(--zz-muted); }
.pageskol { display: flex; align-items: stretch; }
.styled-pages-button { display: contents; }
.pageskol .decrease { order: 0; border-radius: 10px 0 0 10px; }
.pageskol .styled-pages-input { order: 1; border-radius: 0; text-align: center; padding: 10px 6px; min-width: 0; border-left: 0; border-right: 0; }
.pageskol .increase { order: 2; border-radius: 0 10px 10px 0; }
.pageskol .buttonspin { flex: none; width: 46px; min-height: 48px; border: 1.5px solid var(--zz-line); background: var(--zz-alt); color: var(--zz-dark); font: 700 1.25rem var(--zz-font); cursor: pointer; }
.pageskol .buttonspin:hover:not(:disabled) { background: var(--zz-primary); border-color: var(--zz-primary); color: #fff; }
.pageskol .buttonspin:disabled, .pageskol .buttonspin[disabled] { opacity: .45; cursor: not-allowed; }
.pageskol .increase::before { content: "+"; }
.pageskol .decrease::before { content: "\2212"; }
.total-price { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 0; font-weight: 600; }
.total-price-value { font-size: 1.8rem; font-weight: 800; color: var(--zz-dark); }
.order-m-group--submit input, .order-submit-line .btn { width: 100%; }
@media (max-width: 480px) { .new-line-flex { grid-template-columns: 1fr; } .calc-short { padding: 18px; } }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--zz-alt); }
.section-title { text-align: center; margin-bottom: .4em; }
.section-lead { text-align: center; color: var(--zz-muted); max-width: 680px; margin: 0 auto 32px; }
.section-title + .feature-grid, .section-title + .guarantee-grid, .section-title + .steps, .section-title + .card-grid, .section-title + .faq-list { margin-top: 32px; }
@media (max-width: 720px) { .section { padding: 44px 0; } }

.service-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0; margin: 0; }
.service-chips a { display: block; padding: 12px 22px; background: #fff; border: 1.5px solid var(--zz-line); border-radius: 999px; font-weight: 700; color: var(--zz-dark); text-decoration: none; }
.service-chips a:hover { border-color: var(--zz-primary); color: var(--zz-primary); }

.feature-grid, .guarantee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature, .guarantee { background: #fff; border: 1px solid var(--zz-line); border-radius: var(--zz-radius); padding: 26px; }
.feature p, .guarantee p { color: var(--zz-muted); margin: 0 0 .5em; font-size: .98rem; }
.feature-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(37, 99, 235, .1); color: var(--zz-primary); margin-bottom: 14px; }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 960px) { .feature-grid, .guarantee-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid, .guarantee-grid { grid-template-columns: 1fr; } }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 32px auto 24px; }
.price-card { text-align: center; background: #fff; border: 1.5px solid var(--zz-line); border-radius: var(--zz-radius); padding: 28px 16px; }
.price-label { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--zz-muted); font-size: .85rem; margin: 0; }
.price-from { margin: 8px 0 0; color: var(--zz-muted); }
.price-amount { margin: 0; font-size: 2.6rem; font-weight: 800; color: var(--zz-dark); }
.price-amount span { font-size: 1rem; font-weight: 600; color: var(--zz-muted); }
.included-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 0 0 28px; }
.included-list li { display: flex; gap: 8px; align-items: center; }
.included-list .icon { color: #16a34a; }
@media (max-width: 620px) { .price-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border-radius: var(--zz-radius); padding: 28px; border: 1px solid var(--zz-line); }
.step p { color: var(--zz-muted); margin: 0; }
.step-num { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--zz-accent); color: var(--zz-dark); font-weight: 800; margin-bottom: 12px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--zz-line); border-radius: 12px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--zz-dark); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--zz-primary); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 20px 18px; color: var(--zz-muted); }
.faq-answer > :last-child { margin-bottom: 0; }

/* CTA */
.cta-band { background: var(--zz-dark); color: #c9d5f7; padding: 56px 0; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.inline-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--zz-alt); border: 1px solid var(--zz-line); border-left: 5px solid var(--zz-accent); border-radius: var(--zz-radius); padding: 20px 24px; margin: 32px 0; }
.inline-cta p { margin: 0; font-weight: 700; color: var(--zz-dark); }

/* Page heads, breadcrumbs, chips */
.page-head { background: var(--zz-alt); border-bottom: 1px solid var(--zz-line); padding: 32px 0 36px; }
.page-head h1 { font-size: clamp(1.8rem, 3.5vw + .4rem, 2.8rem); margin-bottom: .3em; max-width: 900px; }
.page-head-desc { color: var(--zz-muted); max-width: 760px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 14px; font-size: .88rem; color: var(--zz-muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.breadcrumbs a { color: var(--zz-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--zz-primary); }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(37, 99, 235, .1); color: var(--zz-primary); font-size: .8rem; font-weight: 700; text-decoration: none; margin-bottom: 10px; }
.chip.is-active, a.chip:hover { background: var(--zz-primary); color: #fff; }
.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.chip-row .chip { margin: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--zz-line); border-radius: var(--zz-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--zz-shadow); transform: translateY(-3px); }
.card-media { display: block; aspect-ratio: 16 / 9; background: var(--zz-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.15rem; margin-bottom: .4em; }
.card-title a { color: var(--zz-dark); text-decoration: none; }
.card-title a:hover { color: var(--zz-primary); }
.card-excerpt { color: var(--zz-muted); font-size: .95rem; flex: 1; }
.card-meta { font-size: .82rem; color: var(--zz-muted); margin: 0; display: flex; gap: 6px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--zz-line); border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--zz-dark); }
.page-numbers.current, .page-numbers:hover { background: var(--zz-primary); border-color: var(--zz-primary); color: #fff; }

/* Article */
.article-meta { color: var(--zz-muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-top: 40px; padding-bottom: 56px; align-items: start; }
.article-figure { margin: 0 0 28px; border-radius: var(--zz-radius); overflow: hidden; }
.article-figure img { width: 100%; display: block; }
.side-sticky { position: sticky; top: calc(var(--zz-header-h) + 20px); display: grid; gap: 20px; max-height: calc(100vh - var(--zz-header-h) - 40px); overflow-y: auto; }
.toc { background: var(--zz-alt); border: 1px solid var(--zz-line); border-radius: var(--zz-radius); padding: 18px 20px; font-size: .93rem; }
.toc-title { font-weight: 800; color: var(--zz-dark); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--zz-text); text-decoration: none; display: block; padding-left: 10px; border-left: 3px solid transparent; }
.toc a:hover, .toc a.is-current { color: var(--zz-primary); border-left-color: var(--zz-primary); }
.toc .toc-l3 { padding-left: 14px; font-size: .9em; }
.toc-inline { margin-bottom: 24px; display: none; }
.takeaways { background: #fffaf0; border: 1px solid #fde8b0; border-left: 5px solid var(--zz-accent); border-radius: 12px; padding: 18px 22px; margin: 0 0 24px; }
.takeaways-title { font-weight: 800; color: var(--zz-dark); margin: 0 0 6px; }
.takeaways > :last-child { margin-bottom: 0; }
@media (max-width: 1020px) {
	.article-layout { grid-template-columns: 1fr; gap: 32px; }
	.toc-inline { display: block; }
	.toc-side { display: none; }
	.side-sticky { position: static; max-height: none; }
}

/* Content typography */
.entry-content { font-size: 1.06rem; overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; font-size: 1.3rem; }
.entry-content img { border-radius: 10px; }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 22px; border-left: 4px solid var(--zz-primary); background: var(--zz-alt); border-radius: 0 10px 10px 0; font-style: italic; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content pre, .entry-content code { font-size: .92em; background: #f1f4fb; border-radius: 6px; }
.entry-content code { padding: .1em .4em; }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: .88rem; color: var(--zz-muted); text-align: center; margin-top: 6px; }
.alignwide { max-width: 100%; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; border: 1px solid var(--zz-line); border-radius: 10px; }
.table-scroll table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .96rem; }
.table-scroll th, .table-scroll td { padding: 12px 14px; border-bottom: 1px solid var(--zz-line); text-align: left; }
.table-scroll th { background: var(--zz-alt); color: var(--zz-dark); }
.table-scroll tr:last-child td { border-bottom: 0; }
.tag-row a { display: inline-block; margin: 0 8px 8px 0; padding: 4px 12px; border: 1px solid var(--zz-line); border-radius: 999px; font-size: .85rem; text-decoration: none; color: var(--zz-muted); }
.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--zz-alt); border-radius: var(--zz-radius); margin: 28px 0; }
.author-box img { border-radius: 50%; }
.author-box p { margin: 0; color: var(--zz-muted); font-size: .95rem; }
.author-name { font-weight: 800; }
.author-name a { color: var(--zz-dark); text-decoration: none; }
.page-links { margin: 24px 0; }

/* Search & 404 & comments */
.searchform { display: flex; gap: 10px; max-width: 560px; margin: 16px 0; }
.center .searchform, .notfound .searchform { margin-left: auto; margin-right: auto; }
.searchform input[type="search"] { flex: 1; min-width: 0; min-height: 46px; padding: 10px 16px; border: 1.5px solid var(--zz-line); border-radius: 999px; font: 1rem var(--zz-font); }
.notfound-code { font-size: 5rem; font-weight: 800; color: var(--zz-primary); line-height: 1; margin-bottom: 8px; }
.comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--zz-line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--zz-line); border-radius: 10px; font: 1rem var(--zz-font); }
.comment-form .submit { background: var(--zz-primary); color: #fff; border: 0; padding: 12px 26px; border-radius: 999px; font-weight: 700; cursor: pointer; }

/* Footer */
.site-footer { background: #0a1430; color: #aebce6; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-menu, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #aebce6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 22px; }
.footer-disclaimer { font-size: .85rem; max-width: 900px; }
.footer-copy { margin: 0; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
	.site-header, .site-footer, .cta-band, .article-side, .inline-cta { display: none !important; }
}

/* ===== v1.1: writers, samples, pricing, mobile hardening ===== */
.h-sm { font-size: 1.3rem; }
.note { color: var(--zz-muted); font-size: .88rem; max-width: 760px; margin: 24px auto 0; }
.card-spec { font-size: .8rem; font-weight: 600; color: var(--zz-primary); margin: 0 0 6px; }

/* Filter chips: horizontal scroll on small screens instead of wrapping into a wall */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.filter-row .chip { margin: 0; }
@media (max-width: 720px) {
	.filter-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-right: -20px; padding-right: 20px; padding-bottom: 4px; }
	.filter-row::-webkit-scrollbar { display: none; }
	.filter-row .chip { white-space: nowrap; flex: none; padding: 8px 14px; }
}

/* Writers */
.writer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.writer-card { background: #fff; border: 1px solid var(--zz-line); border-radius: var(--zz-radius); padding: 22px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: box-shadow .2s, transform .2s; }
.writer-card:hover { box-shadow: var(--zz-shadow); transform: translateY(-3px); }
.writer-avatar, .profile-photo { display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--zz-alt); flex: none; margin-bottom: 12px; }
.writer-avatar img, .profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.writer-initial { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--zz-primary), var(--zz-dark)); }
.writer-name { font-size: 1.1rem; margin-bottom: .2em; }
.writer-name a { color: var(--zz-dark); text-decoration: none; }
.writer-name a:hover { color: var(--zz-primary); }
.writer-degree { margin: 0 0 4px; font-size: .85rem; font-weight: 700; color: var(--zz-primary); }
.writer-headline { margin: 0 0 10px; font-size: .9rem; color: var(--zz-muted); }
.writer-subjects { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0 0 10px; }
.writer-subjects li { font-size: .75rem; padding: 3px 10px; background: var(--zz-alt); border-radius: 999px; color: var(--zz-text); }
.writer-stats { display: flex; gap: 14px; justify-content: center; font-size: .85rem; color: var(--zz-muted); margin: 0 0 12px; }
.writer-stats strong { color: var(--zz-dark); }
.writer-actions { display: flex; gap: 8px; margin: auto 0 0; width: 100%; justify-content: center; flex-wrap: wrap; }
.writer-actions .btn { flex: 1 1 auto; }
@media (max-width: 1100px) { .writer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .writer-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .writer-card { padding: 18px 12px; } .writer-avatar { width: 80px; height: 80px; } }
@media (max-width: 420px) { .writer-actions .btn { padding: .5em .6em; font-size: .85rem; } }

.profile-head { display: flex; gap: 28px; align-items: flex-start; }
.profile-photo { width: 150px; height: 150px; margin: 0; border: 4px solid #fff; box-shadow: var(--zz-shadow); }
.profile-info { flex: 1; min-width: 0; }
.profile-headline { font-size: 1.1rem; color: var(--zz-muted); margin-bottom: 14px; }
.profile-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 0; margin: 0 0 14px; }
.profile-facts li { display: flex; flex-direction: column; }
.profile-facts span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--zz-muted); }
.profile-facts strong { color: var(--zz-dark); font-size: 1.05rem; }
.profile-actions { margin: 18px 0 0; }
@media (max-width: 640px) {
	.profile-head { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
	.profile-facts, .profile-info .chip-row { justify-content: center; }
	.profile-photo { width: 120px; height: 120px; }
	.profile-actions .btn { width: 100%; }
}

/* Sample spec box */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--zz-line); border: 1px solid var(--zz-line); border-radius: 12px; overflow: hidden; margin: 0 0 24px; }
.spec-grid div { background: #fff; padding: 12px 14px; }
.spec-grid dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--zz-muted); }
.spec-grid dd { margin: 2px 0 0; font-weight: 700; color: var(--zz-dark); overflow-wrap: anywhere; }
@media (max-width: 720px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }

/* Pricing */
.pricing-top { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: start; }
.pricing-calc .calc-short { border: 1px solid var(--zz-line); border-top: 5px solid var(--zz-accent); }
.price-grid-stack { grid-template-columns: repeat(3, 1fr); margin: 14px 0 18px; max-width: none; gap: 12px; }
.price-grid-stack .price-card { padding: 18px 8px; }
.price-grid-stack .price-amount { font-size: 1.9rem; }
.included-left { justify-content: flex-start; margin: 0; }
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
.price-table table { min-width: 560px; }
.price-table th[scope="row"] { background: var(--zz-alt); position: sticky; left: 0; white-space: nowrap; }
.price-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
@media (max-width: 1100px) { .feature-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .pricing-top { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 620px) { .feature-grid-4 { grid-template-columns: 1fr; } .price-grid-stack .price-amount { font-size: 1.5rem; } }

/* Mobile hardening for every template */
html, body { max-width: 100%; overflow-x: clip; }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="vimeo"] { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.entry-content a, .card-title, h1, h2, h3 { overflow-wrap: anywhere; }
.wp-block-image img, .wp-caption { max-width: 100%; height: auto; }
.alignleft, .alignright { max-width: 50%; }
@media (max-width: 600px) {
	body { font-size: 16px; }
	.alignleft, .alignright { float: none; display: block; margin: 1em auto; max-width: 100%; }
	.page-head { padding: 24px 0 28px; }
	.inline-cta .btn, .cta-actions .btn, .hero-actions .btn { flex: 1 1 100%; }
	.cta-band { padding: 40px 0; }
	.author-box { flex-direction: column; }
	.searchform { flex-direction: column; }
	.searchform .btn { width: 100%; }
	.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { font-size: 16px; }
}
@media (max-width: 360px) { .container { padding: 0 14px; } .hero-stats { grid-template-columns: 1fr 1fr; } }
