/* ArtBizAdvisor Core — structural styles for dynamic blocks. Theme presets are used when present. */
:root {
	--abz-accent: var(--wp--preset--color--accent, #0e5a57);
	--abz-accent-dark: var(--wp--preset--color--accent-dark, #0a403e);
	--abz-accent-soft: var(--wp--preset--color--accent-soft, #dcebe8);
	--abz-ink: var(--wp--preset--color--contrast, #1f2321);
	--abz-muted: var(--wp--preset--color--muted, #5b625e);
	--abz-line: var(--wp--preset--color--border, #e3ddd2);
	--abz-bg: var(--wp--preset--color--base, #faf7f2);
	--abz-surface: var(--wp--preset--color--surface, #f1ede5);
	--abz-head: var(--wp--preset--font-family--heading, Georgia, "Times New Roman", serif);
	--abz-radius: 4px;
	--abz-gap: clamp(1rem, 2vw, 1.75rem);
}
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* ---------- Cards ---------- */
.abz-card { position: relative; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.abz-card__media { display: block; position: relative; aspect-ratio: 8 / 5; overflow: hidden; background: var(--abz-surface); border-radius: var(--abz-radius); }
.abz-card__media img, .abz-thumb-fallback { display: block; width: 100%; height: 100%; object-fit: cover; }
.abz-thumb-fallback { background: linear-gradient(135deg, var(--abz-accent-soft), var(--abz-surface)); }
.abz-card__media img { transition: transform .5s ease; }
.abz-card:hover .abz-card__media img { transform: scale(1.03); }
.abz-card__body { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.abz-card__cat { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--abz-accent); text-decoration: none; }
.abz-card__cat:hover, .abz-card__cat:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.abz-card__title { margin: 0; font-family: var(--abz-head); font-size: clamp(1.1rem, 1.05rem + .4vw, 1.375rem); line-height: 1.25; font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
.abz-card__title a { color: var(--abz-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.abz-card__title a:hover, .abz-card__title a:focus-visible { background-size: 100% 1px; }
.abz-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.abz-card__cat { position: relative; z-index: 2; }
.abz-card__excerpt { margin: 0; color: var(--abz-muted); font-size: .95rem; line-height: 1.55; }
.abz-card__meta { margin: .15rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .8125rem; color: var(--abz-muted); }
.abz-card--hero .abz-card__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.12; }
.abz-card--hero .abz-card__media { aspect-ratio: 16 / 10; }
.abz-card--hero .abz-card__excerpt { font-size: 1.05rem; max-width: 60ch; }
.abz-card--list, .abz-card--compact { display: grid; grid-template-columns: 7.5rem 1fr; align-items: start; gap: 1rem; }
.abz-card--list .abz-card__title, .abz-card--compact .abz-card__title { font-size: 1.05rem; }
.abz-card--list .abz-card__media, .abz-card--compact .abz-card__media { aspect-ratio: 8 / 5; }
.abz-card--compact { grid-template-columns: 2rem 1fr; }
.abz-card--compact .abz-card__media { display: none; }
.abz-card__rank { font-family: var(--abz-head); font-size: 1.6rem; line-height: 1; color: var(--abz-accent); grid-column: 1; }
.abz-card--compact { grid-template-columns: 2.25rem 1fr; }
.abz-card--compact .abz-card__body { display: contents; }
.abz-card--compact .abz-card__rank { grid-column: 1; grid-row: 1 / span 3; }
.abz-card--compact .abz-card__cat, .abz-card--compact .abz-card__title, .abz-card--compact .abz-card__meta { grid-column: 2; }

/* ---------- Grids ---------- */
.abz-grid__heading { font-family: var(--abz-head); font-size: 1.5rem; margin: 0 0 1rem; }
.abz-grid__items { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem) var(--abz-gap); grid-template-columns: 1fr; }
@media (min-width: 600px) { .abz-grid--grid .abz-grid__items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
	.abz-grid--cols-3.abz-grid--grid .abz-grid__items { grid-template-columns: repeat(3, 1fr); }
	.abz-grid--cols-4.abz-grid--grid .abz-grid__items { grid-template-columns: repeat(4, 1fr); }
}
.abz-grid--list .abz-grid__items, .abz-grid--compact .abz-grid__items { gap: 1.1rem; }
.abz-grid--compact .abz-card--compact { padding-block: .35rem; border-bottom: 1px solid var(--abz-line); }
.abz-grid__ad { grid-column: 1 / -1; }

/* ---------- Hero ---------- */
.abz-hero { display: grid; gap: var(--abz-gap); }
.abz-hero__side { display: grid; gap: 1.1rem; align-content: start; }
.abz-hero__side .abz-card { padding-bottom: 1.1rem; border-bottom: 1px solid var(--abz-line); }
.abz-hero__side .abz-card:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 900px) { .abz-hero { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(1.75rem, 3vw, 3rem); } .abz-hero__side { padding-left: clamp(1.25rem, 2.5vw, 2.25rem); border-left: 1px solid var(--abz-line); } }

/* ---------- Category sections ---------- */
.abz-section__head { display: grid; gap: .35rem .75rem; grid-template-columns: 1fr auto; align-items: end; padding-bottom: .75rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--abz-ink); }
.abz-section__title { margin: 0; font-family: var(--abz-head); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; }
.abz-section__title a { color: var(--abz-ink); text-decoration: none; }
.abz-section__title a::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .5rem; background: var(--abz-accent); vertical-align: .05em; }
.abz-section__desc { grid-column: 1 / -1; grid-row: 2; margin: 0; color: var(--abz-muted); max-width: 70ch; }
.abz-section__more { font-size: .9rem; font-weight: 600; color: var(--abz-accent); text-decoration: none; white-space: nowrap; }
.abz-section__more:hover, .abz-section__more:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.abz-section__body { display: grid; gap: var(--abz-gap); }
.abz-section__list { display: grid; gap: 1.1rem; align-content: start; }
@media (min-width: 900px) { .abz-section__body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.75rem, 3vw, 3rem); } }

/* ---------- Archive header ---------- */
.abz-archive-header { padding-block: clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--abz-line); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.abz-archive-header__kicker { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--abz-accent); }
.abz-archive-header__title { margin: 0; font-family: var(--abz-head); font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem); line-height: 1.08; text-wrap: balance; }
.abz-archive-header__desc { margin: .9rem 0 0; max-width: 62ch; font-size: 1.1rem; color: var(--abz-muted); }
.abz-archive-header__page { margin: .6rem 0 0; font-size: .85rem; color: var(--abz-muted); }
.abz-empty { padding: 2rem 0; max-width: 40rem; }
.abz-empty__title { font-family: var(--abz-head); font-size: 1.5rem; margin: 0 0 .5rem; }
.abz-empty__cats { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.abz-empty__cats a { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--abz-line); border-radius: 99px; text-decoration: none; color: var(--abz-ink); }
.abz-empty__cats a:hover, .abz-empty__cats a:focus-visible { border-color: var(--abz-accent); color: var(--abz-accent); }

/* ---------- Pagination ---------- */
.abz-pagination { margin-top: clamp(2rem, 4vw, 3rem); }
.abz-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.abz-pagination a, .abz-pagination span { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; padding: 0 .85rem; border: 1px solid var(--abz-line); border-radius: var(--abz-radius); text-decoration: none; color: var(--abz-ink); font-weight: 600; }
.abz-pagination a:hover, .abz-pagination a:focus-visible { border-color: var(--abz-accent); color: var(--abz-accent); }
.abz-pagination .current { background: var(--abz-ink); border-color: var(--abz-ink); color: var(--abz-bg); }
.abz-pagination .dots { border: 0; }

/* ---------- Breadcrumbs ---------- */
.abz-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--abz-muted); }
.abz-breadcrumbs li + li::before { content: "/"; margin-right: .25rem; opacity: .55; }
.abz-breadcrumbs a { color: var(--abz-muted); text-decoration: none; }
.abz-breadcrumbs a:hover, .abz-breadcrumbs a:focus-visible { color: var(--abz-accent); text-decoration: underline; }
.abz-breadcrumbs [aria-current] { color: var(--abz-ink); }
.abz-breadcrumbs li:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 32ch; }

/* ---------- Article parts ---------- */
.abz-subtitle { font-family: var(--abz-head); font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); line-height: 1.4; color: var(--abz-muted); margin: 0; text-wrap: pretty; }
.abz-article-image { margin: 0; }
.abz-article-image__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--abz-radius); background: var(--abz-surface); }
.abz-article-image__cap { margin-top: .6rem; font-size: .85rem; color: var(--abz-muted); }
.abz-article-image__credit { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.abz-article-image__credit:hover, .abz-article-image__credit:focus-visible { color: var(--abz-accent); }
.abz-article-image__cap > .abz-article-image__credit:not(:first-child)::before { content: "· "; text-decoration: none; display: inline-block; }
.abz-reading-time, .abz-updated { font-size: inherit; }

.abz-toc { border: 1px solid var(--abz-line); background: var(--abz-surface); border-radius: var(--abz-radius); padding: 1rem 1.25rem; margin-block: 1.5rem; font-size: .95rem; }
.abz-toc summary { cursor: pointer; font-weight: 700; font-family: var(--abz-head); font-size: 1.1rem; padding-block: .25rem; }
.abz-toc__list { margin: .75rem 0 0; padding: 0 0 0 1.25rem; display: grid; gap: .4rem; }
.abz-toc__item--h3 { margin-left: 1.1rem; list-style: circle; font-size: .92em; }
.abz-toc a { color: var(--abz-ink); text-decoration: none; }
.abz-toc a:hover, .abz-toc a:focus-visible { color: var(--abz-accent); text-decoration: underline; text-underline-offset: 3px; }

.abz-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-block: 1rem; border-block: 1px solid var(--abz-line); }
.abz-share__label { font-weight: 700; font-size: .9rem; }
.abz-share__list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.abz-share__link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--abz-line); border-radius: 99px; background: transparent; color: var(--abz-ink); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.abz-share__link:hover, .abz-share__link:focus-visible { background: var(--abz-accent); border-color: var(--abz-accent); color: #fff; }

.abz-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100000; pointer-events: none; }
.abz-progress__bar { height: 100%; background: var(--abz-accent); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
body.admin-bar .abz-progress { top: 32px; }
@media (max-width: 782px) { body.admin-bar .abz-progress { top: 46px; } }

/* ---------- Ads ---------- */
.abz-ad { display: block; margin-block: 1.5rem; text-align: center; }
.abz-ad__label { display: block; margin-bottom: .35rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--abz-muted); }
.abz-ad__slot { display: flex; align-items: center; justify-content: center; min-height: var(--abz-ad-h-m, 0); max-width: 100%; overflow: hidden; background: transparent; }
@media (min-width: 768px) { .abz-ad__slot { min-height: var(--abz-ad-h-d, 0); } }
.abz-ad--placeholder .abz-ad__slot { border: 1px dashed var(--abz-muted); background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(0, 0, 0, .03) 10px 20px); color: var(--abz-muted); font-size: .85rem; }
.abz-ad--in_article, .abz-ad--article_end { border-block: 1px solid var(--abz-line); padding-block: .75rem; }
.abz-ad--sidebar { margin-top: 0; }
.abz-ad.is-collapsed { display: none; }
@media (max-width: 767px) { .abz-ad--vis-desktop { display: none; } }
@media (min-width: 768px) { .abz-ad--vis-mobile { display: none; } }
.abz-grid__ad .abz-ad { background: var(--abz-surface); border-radius: var(--abz-radius); padding: .75rem; margin: 0; }

/* ---------- Buttons / forms ---------- */
.abz-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1.25rem; border: 2px solid var(--abz-ink); border-radius: var(--abz-radius); background: var(--abz-ink); color: var(--abz-bg); font: inherit; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.abz-btn:hover, .abz-btn:focus-visible { background: var(--abz-accent); border-color: var(--abz-accent); color: #fff; }
.abz-btn--primary { background: var(--abz-accent); border-color: var(--abz-accent); color: #fff; }
.abz-btn--primary:hover, .abz-btn--primary:focus-visible { background: var(--abz-accent-dark); border-color: var(--abz-accent-dark); }
.abz-btn--link, .abz-link-btn { background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 0 .25rem; font: inherit; cursor: pointer; min-height: 2.75rem; }
.abz-btn--link:hover, .abz-link-btn:hover { color: var(--abz-accent); background: none; }
.abz-btn[disabled] { opacity: .6; cursor: progress; }
.abz-form { display: grid; gap: 1.15rem; max-width: 46rem; }
.abz-field { display: grid; gap: .35rem; }
.abz-field label { font-weight: 600; }
.abz-field input[type=text], .abz-field input[type=email], .abz-field input[type=tel], .abz-field input[type=url], .abz-field select, .abz-field textarea { width: 100%; min-height: 2.9rem; padding: .6rem .8rem; border: 1px solid #8b8f8c; border-radius: var(--abz-radius); background: #fff; color: var(--abz-ink); font: inherit; }
.abz-field input, .abz-field select, .abz-field textarea { box-sizing: border-box; max-width: 100%; }
.abz-form .abz-btn { justify-self: start; }
.abz-field textarea { resize: vertical; min-height: 7rem; }
.abz-field input:focus-visible, .abz-field select:focus-visible, .abz-field textarea:focus-visible, .abz-btn:focus-visible, .abz-share__link:focus-visible { outline: 3px solid var(--abz-accent); outline-offset: 2px; }
.abz-field [aria-invalid=true] { border-color: #a4262c; box-shadow: 0 0 0 1px #a4262c; }
.abz-hint { margin: 0; font-size: .85rem; color: var(--abz-muted); }
.abz-hint:empty { display: none; }
.abz-error { margin: 0; font-size: .9rem; font-weight: 600; color: #a4262c; }
.abz-req { color: #a4262c; }
.abz-check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400 !important; }
.abz-check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--abz-accent); }
.abz-legal-note { margin: 0; font-size: .9rem; color: var(--abz-muted); }
.abz-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.abz-notice { padding: .9rem 1.1rem; border-radius: var(--abz-radius); border: 1px solid var(--abz-line); background: var(--abz-surface); margin-bottom: 1.25rem; max-width: 46rem; }
.abz-notice--ok { border-color: #1e6b3a; background: #e8f4ec; color: #14461f; }
.abz-notice--err { border-color: #a4262c; background: #fbeaea; color: #6f1519; }
.abz-notice ul { margin: 0; padding-left: 1.1rem; }
.abz-placeholder { background: #fff3bf; color: #5c4400; padding: 0 .25em; border-radius: 2px; font-weight: 600; }

/* ---------- Consent ---------- */
.abz-consent { position: fixed; inset: auto 0 0 0; z-index: 99999; background: var(--abz-bg); border-top: 1px solid var(--abz-line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .08); padding: 1rem; }
.abz-consent[hidden] { display: none; }
.abz-consent__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: .9rem 2rem; align-items: center; }
@media (min-width: 860px) { .abz-consent__inner { grid-template-columns: 1fr auto; } }
.abz-consent__title { font-family: var(--abz-head); font-size: 1.15rem; font-weight: 700; margin: 0 0 .25rem; }
.abz-consent p { margin: 0; font-size: .92rem; }
.abz-consent__actions, .abz-consent-dialog__actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.abz-consent-dialog { max-width: min(36rem, calc(100vw - 2rem)); border: 1px solid var(--abz-line); border-radius: 8px; padding: 1.5rem; background: var(--abz-bg); color: var(--abz-ink); }
.abz-consent-dialog::backdrop { background: rgba(20, 24, 22, .55); }
.abz-consent-dialog h2 { margin: 0 0 1rem; font-family: var(--abz-head); }
.abz-consent-dialog__group { border: 0; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 1rem; }
.abz-consent-dialog__row p { margin: .25rem 0 0 1.75rem; font-size: .9rem; color: var(--abz-muted); }
.abz-consent-dialog__row input { width: 1.1rem; height: 1.1rem; accent-color: var(--abz-accent); margin-right: .5rem; vertical-align: -.15rem; }
.abz-social { display: flex; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
	.abz-card__media img, .abz-card__title a, .abz-btn, .abz-share__link { transition: none; }
	.abz-card:hover .abz-card__media img { transform: none; }
}
@media print { .abz-ad, .abz-consent, .abz-progress, .abz-share { display: none !important; } }

/* ---------- Logo ---------- */
.abz-logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; color: inherit; }
.abz-logo svg { display: block; height: 2.15rem; width: auto; }
.abz-logo--text { font-family: var(--abz-head); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--abz-ink); }
.abz-footer .abz-logo svg { height: 2.4rem; }
@media (max-width: 599px) { .abz-header .abz-logo svg { height: 1.6rem; } }

/* ---------- Weather widget ---------- */
.abz-weather { position: relative; }
.abz-weather > summary { display: flex; align-items: center; gap: .4rem; box-sizing: border-box; min-height: 2.75rem; padding: 0 .9rem 0 .7rem; border: 1px solid var(--abz-line); border-radius: 999px; background: var(--abz-surface); color: var(--abz-ink); font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; list-style: none; transition: border-color .2s, background-color .2s; }
.abz-weather > summary::-webkit-details-marker { display: none; }
.abz-weather > summary::marker { content: ""; }
.abz-weather > summary:hover, .abz-weather[open] > summary { border-color: var(--abz-accent); background: #fff; }
.abz-weather__svg { width: 22px; height: 22px; flex: none; color: var(--abz-accent); }
.abz-weather__city { font-weight: 500; color: var(--abz-muted); }
.abz-weather__panel { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 1100; box-sizing: border-box; width: min(20rem, calc(100vw - 2rem)); padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--abz-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(30, 34, 32, .14); color: var(--abz-ink); text-align: left; }
.abz-weather__now { margin: 0 0 .5rem; font-size: .95rem; }
.abz-weather__days { list-style: none; margin: 0; padding: 0; display: grid; }
.abz-weather__days li { display: grid; grid-template-columns: 4.2rem 2rem 1fr; align-items: center; gap: .25rem; padding: .45rem 0; border-top: 1px solid var(--abz-line); font-size: .9rem; }
.abz-weather__day { font-weight: 600; }
.abz-weather__range { text-align: right; font-variant-numeric: tabular-nums; }
.abz-weather__credit { margin: .6rem 0 0; font-size: .75rem; color: var(--abz-muted); }
.abz-weather__credit a { color: inherit; }
@media (max-width: 599px) {
	.abz-weather > summary { min-width: 3.9rem; padding: 0 .55rem; justify-content: center; gap: .25rem; }
	.abz-weather__city { display: none; }
	.abz-weather__panel { position: fixed; left: 1rem; right: 1rem; top: 4rem; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .abz-weather > summary { transition: none; } }
@media print { .abz-weather { display: none; } }
