/* =========================================================
   WordPress-specific additions on top of the static design
   (Contact Form 7 states, single-article typography, content
   pages). The original design system stays untouched in
   style.css / home.css.
   ========================================================= */

/* ---------- Contact Form 7 ---------- */
.contact-form .wpcf7-form-control-wrap { display: block; }

/* CF7 outputs rows="10" on textareas; pin back to the design height. */
.contact-form .field textarea { height: 120px; }

/* The card image is wrapped in a link in WP; the decorative gradient
   overlay must not swallow the click. */
.article-media::after { pointer-events: none; }

/* The footer logo links home; inline-block keeps the image's own
   margin-bottom exact (an inline anchor would add a descender gap). */
.footer-brand .footer-logo-link { display: inline-block; }

/* ---------- Plain pages: solid masthead ----------
   page.php pages (credits, privacy, accessibility) have no dark hero behind
   the fixed header - keep the navy masthead at every scroll position there. */
body.page-template-default .site-header {
  background: rgba(10, 17, 30, .94);
  border-bottom-color: rgba(201, 160, 99, .18);
  box-shadow: 0 12px 32px -14px rgba(10, 17, 30, .5);
}

/* ---------- Accessible Poetry - brand styling (navy + gold) ----------
   Overrides the plugin's blue defaults and its inline position <style>;
   !important mirrors the plugin's own rules, same as on nirscop.co.il. */
/* Floating toggle: mirrors the WhatsApp float (bottom 26px) on the left side. */
html body #acwp-toolbar-btn-wrap {
  top: auto !important;
  bottom: 26px !important;
  left: 26px !important;
  right: auto !important;
}
html body #acwp-toolbar-btn {
  background: linear-gradient(160deg, #1d3255, #12203a) !important;
  border: 3px solid rgba(201, 160, 99, .75) !important;
  color: var(--gold-light) !important;
  box-shadow: 0 10px 26px -8px rgba(10, 17, 30, .55) !important;
}
html body #acwp-toolbar-btn:hover,
html body #acwp-toolbar-btn:focus {
  background: linear-gradient(178deg, #eed29a 0%, #d6ae6e 38%, #c9a063 62%, #a67c40 100%) !important;
  border-color: var(--card) !important;
  color: #14202f !important;
}
/* Panel: opens above the toggle; navy header, gold accents, paper body. */
html .acwp-toolbar { top: auto !important; bottom: -100vh !important; left: 26px !important; right: auto !important; }
html .acwp-toolbar.acwp-toolbar-show { top: auto !important; bottom: 96px !important; }
html #acwp-toolbar .acwp-heading {
  background: linear-gradient(160deg, #1d3255, #12203a) !important;
  color: var(--gold-light) !important;
}
html #acwp-toolbar #acwp-toolbar-module { background-color: var(--card) !important; }
html #acwp-toolbar input:checked + .acwp-switch,
html #acwp-toolbar.acwp-style-columns .acwp-toggler input:checked + .acwp-switch {
  background-color: var(--gold) !important;
}
html #acwp-toolbar .acwp-toggler:hover .acwp-indicator-label,
html #acwp-toolbar input:focus + .acwp-switch {
  outline-color: var(--gold-deep);
}

@media (max-width: 720px) {
  html body #acwp-toolbar-btn-wrap { bottom: 18px !important; left: 18px !important; }
  html .acwp-toolbar { left: 18px !important; }
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 200; /* above the fixed header (z-index 100-130) */
  padding: 10px 20px;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 22px rgba(10, 17, 30, .35);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; outline-offset: -3px; }

.contact-form .wpcf7-submit { width: 100%; }

.contact-form .wpcf7-not-valid {
  border-color: #b3453f !important;
  background: #fdf6f5;
}

.contact-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: .82rem;
  color: #b3453f;
}

.contact-form .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--ink-2);
}

.contact-form form.invalid .wpcf7-response-output,
.contact-form form.failed .wpcf7-response-output,
.contact-form form.aborted .wpcf7-response-output {
  border-color: #b3453f;
  color: #b3453f;
}

/* On success the theme shows its own WhatsApp follow-up note. */
.contact-form form.sent .wpcf7-response-output { display: none; }

.contact-form .wpcf7-spinner { margin: 8px auto 0; display: block; }

/* ---------- Single article ---------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  font-size: .88rem;
  color: var(--on-dark-2);
}

.article-meta .article-tag { position: static; }

.article-content { font-weight: 300; color: var(--ink-2); }

.article-content p { margin: 0 0 1.1em; }

.article-content h2,
.article-content h3 {
  color: var(--ink);
  font-weight: 600;
  margin: 1.6em 0 .6em;
  line-height: 1.35;
}

.article-content h2 { font-size: 1.45rem; }
.article-content h3 { font-size: 1.15rem; }

.article-content ul,
.article-content ol {
  margin: 0 0 1.2em;
  padding-inline-start: 1.3em;
}

.article-content li { margin-bottom: .5em; }

.article-content a { color: var(--gold-text); }

.article-content blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-inline-start: 3px solid var(--gold);
  background: var(--card);
  border-radius: var(--radius);
  color: var(--ink);
}

.article-cta { margin-top: 28px; }

/* ---------- Plain content pages (credits, legal) ---------- */
.page-plain h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.page-plain .page-intro { color: var(--ink-2); margin-top: 12px; }

.page-plain .article-content { margin-top: 26px; }

.page-plain .article-content ul { list-style: none; padding: 0; }

.page-plain .article-content ul li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .92rem;
}

/* ---------- Contact page map link ---------- */
.map-link-row { margin-top: 14px; text-align: center; }
.map-link-row .card-link { justify-content: center; }

/* ---------- 404 ---------- */
.error-404 .btn-row { justify-content: flex-start; margin-top: 26px; }
