/* ==========================================================================
   WordPress integration: admin bar, Contact Form 7 markup, editor content.
   Loaded after main.css and the page stylesheet.
   ========================================================================== */

/* Admin bar: keep the sticky header and the mobile menu below it
   -------------------------------------------------------------------------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 1024px) {
  .admin-bar .nav-panel { top: calc(var(--header-h) + var(--rule) + 32px); }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .nav-panel { top: calc(var(--header-h) + var(--rule) + 46px); }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; } /* the admin bar scrolls away at this width */
}

/* WordPress core helpers */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Contact form (CF7 inside .form-panel; template in Επικοινωνία → Contact Forms)
   -------------------------------------------------------------------------- */
.cform .wpcf7-form-control-wrap { display: block; }
.cform .wpcf7-not-valid-tip { display: none; } /* errors are shown in the design's .field__error slots (contact.js) */
.cform .wpcf7-not-valid { border-bottom-color: var(--error); }
.cform .wpcf7-list-item { display: block; margin: 0; }
/* Consent checkbox: the design's .check layout on CF7's acceptance markup */
.cform .wpcf7-acceptance label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--muted-on-cream); cursor: pointer; }
.cform .wpcf7-acceptance input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy-900); }
.cform .wpcf7-acceptance a { color: var(--text-on-cream); }
.cform__foot.is-invalid .wpcf7-acceptance input { outline: 1px solid var(--error); outline-offset: 1px; }
.cform__submit:disabled { cursor: progress; }
.wpcf7 .cform .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border: 1px solid var(--line-gold-strong); font-size: 15px; color: var(--text-on-cream); }
.wpcf7 .cform.invalid .wpcf7-response-output,
.wpcf7 .cform.unaccepted .wpcf7-response-output,
.wpcf7 .cform.failed .wpcf7-response-output,
.wpcf7 .cform.aborted .wpcf7-response-output,
.wpcf7 .cform.spam .wpcf7-response-output { border-color: var(--error); color: var(--error); }
@media (max-width: 1024px) {
  .cform .wpcf7-acceptance a { padding-block: 10px; margin-block: -10px; }
}

/* Newsletter (CF7 inside the footer)
   -------------------------------------------------------------------------- */
.news-form { position: relative; }
.news-form .wpcf7-form-control-wrap { flex: 1; min-width: 0; display: flex; }
.news-form .wpcf7-form-control-wrap input { width: 100%; }
.news-form .wpcf7-not-valid-tip { display: none; }
.news-form button { transition: background-color 0.25s, color 0.25s; }
.news-form button:hover { background: var(--navy-900); color: var(--white); }
.news-form button:disabled { cursor: progress; opacity: 0.8; }
.wpcf7 .news-form .wpcf7-response-output { position: absolute; left: 0; right: 0; top: 100%; margin: 12px 0 0; padding: 0; border: 0; font-size: 15px; line-height: 1.4; color: var(--gold-500); }
.wpcf7 .news-form.invalid .wpcf7-response-output,
.wpcf7 .news-form.failed .wpcf7-response-output,
.wpcf7 .news-form.spam .wpcf7-response-output { color: #f2a19b; }

/* Plain pages (page.php): editor content on cream
   -------------------------------------------------------------------------- */
.page-body .prose { margin-top: 0; }
.page-body .prose a { color: var(--gold-700); }
.page-body .prose ul:not([class]), .page-body .prose ol:not([class]) { color: var(--muted-on-cream); padding-left: 1.2em; }
.page-body .prose h3 { font-family: var(--font-serif); font-weight: 800; font-size: 22px; margin: 1.6em 0 0.6em; }
.prose img { height: auto; }
.page-body .prose figure { margin: 2em 0; }
.page-body .prose figcaption { font-size: 15px; color: var(--muted-on-cream); margin-top: 8px; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* 404 */
.page-404__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

/* Archive pagination */
.stories .nav-links { display: flex; gap: 16px; margin-top: 40px; }
.stories .nav-links a, .stories .nav-links span { text-decoration: none; }
