/* Don Gelato 2027 — theme glue. Page frame only; every visual comes from tokens.css + bundle.css.
   Prefix dgt- = theme layout (was pt- in the prototype). */

html, body { margin: 0; background: var(--bg-page); }
body.dgt-locked { overflow: hidden; }
.wp-site-blocks { min-height: 100vh; overflow-x: clip; }
.wp-site-blocks > * { margin-block: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dgt-skip { position: absolute; left: 8px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--action); color: #fff; font-weight: 600; }
.dgt-skip:focus { top: 8px; }

/* Header: sticky white band, content centred on wide screens */
.dgt-header { position: sticky; top: 0; z-index: 50; background: var(--bg-surface); }
.admin-bar .dgt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dgt-header { top: 0; } }
.dgt-header .dg-header { max-width: var(--content-max); margin-inline: auto; }
.dgt-header.is-scrolled { box-shadow: var(--shadow-header); }
.dg-header__logo-link { justify-self: center; display: block; }

/* Generic pages */
.dgt-wrap { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--space-4); }
.dgt-page { padding-block: var(--space-5) var(--space-7); }
.dgt-page__title { margin: 0 0 var(--space-4); font-family: var(--font-display); font-size: clamp(28px, 6vw, 40px); line-height: 1.1; color: var(--text-heading); }
.dgt-content { max-width: 760px; font-size: 18px; line-height: 1.6; }
.dgt-content > * + * { margin-top: var(--space-4); }
.dgt-content a { color: var(--text-link); }
.dgt-anchor { scroll-margin-top: calc(var(--header-height) + 8px); }

/* OPEN link: target page is not decided yet. Visible to the owner on staging as a dashed outline. */
[data-dg-open] { cursor: not-allowed; }
.logged-in [data-dg-open] { outline: 2px dashed #c0792e; outline-offset: 2px; }

/* Contact rows used as buttons */
.dg-contact__row { cursor: pointer; border: 0; background: none; font: inherit; padding: 0; text-align: left; color: inherit; }

/* Overlay shell (.pt-overlay, .pt-scrim-fill), menu (.dr-*) and search (.sr-*) come from bundle.css.
   Only the inquiry sheet placement and the search form reset live here. */
.dgt-overlay--sheet { align-items: flex-end; justify-content: center; }
.dgt-overlay--sheet .dg-sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; }
.dgt-sheet-form { display: grid; gap: var(--space-3); }
.dgt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-top { margin: 0; }
.dgt-search-status { margin: 0; font-size: 16px; color: var(--text-subtle); text-align: center; }
.sr-cat[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.dr-search input { cursor: pointer; }

/* Small status line after "Добави" (aria-live) */
.dgt-toast { position: fixed; left: 50%; bottom: 16px; z-index: 120; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--radius-pill); background: var(--action); color: #fff; font-weight: 600; box-shadow: var(--shadow-button); }
.dgt-toast[hidden] { display: none; }
.dgt-toast a { color: #fff; }

/* Editor notice shown only to logged-in editors when a section has no data yet */
.dgt-editor-note { margin: 12px; padding: 12px 16px; border: 2px dashed #c0792e; border-radius: var(--radius-sm); background: #fffaf0; font-size: 16px; color: var(--text-ink); }

@media (min-width: 768px) {
	.dgt-wrap { padding-inline: var(--space-5); }
	.dgt-overlay--sheet { align-items: center; }
	.dgt-overlay--sheet .dg-sheet { border-radius: var(--radius-lg); }
	.dgt-overlay--sheet .dg-sheet__handle { display: none; }
}
