/* Via Dobrogeana — stiluri pentru părțile generate de WordPress */

/* Bara de administrare peste header-ul sticky */
body.admin-bar .vd-header { top: 32px !important; }
@media (max-width: 782px) { body.admin-bar .vd-header { top: 46px !important; } }
@media (max-width: 600px) { body.admin-bar .vd-header { top: 0 !important; } }

main#vd-main { display: block; }

/* Text din editor (articole, pagini simple, Informații legale) */
.vd-prose { font-size: clamp(16px, 1.55vw, 18px); line-height: 1.7; color: rgb(64,57,46); }
.vd-prose > * { margin: 0 0 1.1em; }
.vd-prose > *:last-child { margin-bottom: 0; }
.vd-prose h2, .vd-prose h3, .vd-prose h4 { font-family: 'Alegreya Sans', sans-serif; font-weight: 900; color: rgb(32,27,20); line-height: 1.08; margin: 1.6em 0 0.5em; text-wrap: balance; }
.vd-prose h2 { font-size: clamp(28px, 3.2vw, 38px); }
.vd-prose h3 { font-size: clamp(22px, 2.4vw, 27px); }
.vd-prose h4 { font-size: 20px; }
.vd-prose a { color: rgb(0,122,255); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.vd-prose strong { color: rgb(32,27,20); }
.vd-prose ul, .vd-prose ol { padding-left: 1.3em; }
.vd-prose li { margin: 0.35em 0; }
.vd-prose li::marker { color: rgb(0,122,255); font-weight: 800; }
.vd-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid rgb(255,225,0); font-family: 'Alegreya Sans', sans-serif; font-weight: 700; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.35; color: rgb(32,27,20); }
.vd-prose blockquote p { margin: 0 0 0.4em; }
.vd-prose blockquote cite { display: block; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-style: normal; color: rgb(110,101,87); }
.vd-prose img, .vd-prose video, .vd-prose iframe { max-width: 100%; height: auto; border-radius: 18px; }
.vd-prose figure { margin: 1.8em 0; }
.vd-prose figcaption, .vd-prose .wp-element-caption { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgb(110,101,87); margin-top: 8px; text-align: center; }
.vd-prose .alignwide { margin-left: calc(-1 * min(120px, 8vw)); margin-right: calc(-1 * min(120px, 8vw)); max-width: none; }
.vd-prose .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.vd-prose .alignfull img { border-radius: 0; }
.vd-prose .alignleft { float: left; margin: 0.3em 1.4em 1em 0; max-width: 50%; }
.vd-prose .alignright { float: right; margin: 0.3em 0 1em 1.4em; max-width: 50%; }
.vd-prose .aligncenter { margin-left: auto; margin-right: auto; }
.vd-prose .wp-block-gallery { gap: 12px; }
.vd-prose .wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16/9; height: auto; }
.vd-prose hr { border: none; border-top: 1px solid rgba(32,27,20,0.12); margin: 2.2em 0; }
.vd-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vd-prose th, .vd-prose td { border-bottom: 1px solid rgba(32,27,20,0.12); padding: 10px 8px; text-align: left; }
.vd-prose .wp-block-button__link { background: rgb(0,122,255); color: #fff; font-weight: 800; border-radius: 999px; padding: 13px 26px; text-decoration: none; }
.vd-prose::after { content: ""; display: table; clear: both; }

/* Paginare */
.vd-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid rgba(32,27,20,0.18); font-weight: 800; font-size: 15px; color: rgb(32,27,20); }
.vd-pagination .page-numbers.current { background: rgb(32,27,20); border-color: rgb(32,27,20); color: rgb(255,253,248); }
.vd-pagination .page-numbers.dots { border: none; }

/* Formular de căutare */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form .search-field { border: 2px solid rgba(32,27,20,0.15); border-radius: 999px; padding: 12px 18px; font-size: 16px; font-family: inherit; min-width: min(280px, 70vw); background: #fff; }
.search-form .search-submit { background: rgb(32,27,20); color: rgb(255,253,248); border: none; border-radius: 999px; padding: 12px 22px; font-weight: 800; font-size: 15px; cursor: pointer; }

/* Accesibilitate */
.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 !important; width: 1px; word-wrap: normal !important; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgb(255,225,0); outline-offset: 2px; }

/* Atributul style-hover din design → efect simplu de hover */
[style-hover]:hover { opacity: 0.75; }
