/* WordPress additions: admin bar, plain pages/posts, editor content, plugin forms.
   Uses the design's variables from styles.css. */

/* Logged-in admin bar: keep the fixed top bar below it */
.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .topbar { top: 0; } }

/* Hero on plain pages, posts and the blog */
.hero.hero--plain { padding-bottom: 88px; }
.hero--plain .hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Content from the editor ---------- */
.entry-content { max-width: 820px; font-size: 18px; line-height: 1.7; color: var(--text); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: #fff; margin-top: 2em; line-height: 1.25; }
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 23px; font-family: var(--font); font-weight: 600; }
.entry-content h4 { font-size: 19px; font-weight: 600; }
.entry-content a:not(.btn):not(.wp-block-button__link) { color: #fff; border-bottom: 2px solid var(--orange); }
.entry-content a:not(.btn):not(.wp-block-button__link):hover { color: var(--orange); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul > li { position: relative; padding-left: 22px; }
.entry-content ul > li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; background: var(--orange); }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .4em; }
.entry-content strong, .entry-content b { color: #fff; font-weight: 600; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--orange); color: #fff; font-size: 21px; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; border-radius: var(--radius); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-element-caption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content code, .entry-content pre { font-family: var(--mono); font-size: 15px; }
.entry-content pre { padding: 18px; background: rgba(255,255,255,.06); border-radius: var(--radius); overflow: auto; }
.entry-content .alignwide { max-width: none; }
.entry-content .alignleft { float: left; margin: .3em 1.6em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.6em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-button__link { background: var(--orange); color: var(--navy); font-weight: 700; border-radius: var(--radius); }
.wp-block-button__link:hover { background: #fff; color: var(--navy); }
.entry-back { margin-top: 56px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Pagination */
.cops-pagination { margin-top: 56px; }
/* WordPress names the pagination wrapper .nav-links – the same class as the header menu, whose
   mobile styles (absolute position under the top bar, full-width items) must not apply here. */
.cops-pagination .nav-links {
  display: flex; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 0; background: none; border: 0; font-size: 16px;
}
.cops-pagination .nav-links > a, .cops-pagination .nav-links > span { width: auto; padding: 0 12px; color: #fff !important; }
.cops-pagination .nav-links > a::after { display: none; }
.cops-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); color: #fff; font-weight: 600; }
.cops-pagination .page-numbers.current, .cops-pagination a.page-numbers:hover { border-color: var(--orange); background: rgba(245,130,32,.12); }
.cops-pagination .page-numbers.dots { border-color: transparent; min-width: 24px; padding: 0 4px; }
@media (max-width: 620px) { .cops-pagination { margin-top: 40px; } .cops-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; } }

/* ---------- Forms (Contact Form 7, WPForms, Gravity Forms, search …) ---------- */
.entry-content input[type="text"], .entry-content input[type="email"], .entry-content input[type="tel"],
.entry-content input[type="url"], .entry-content input[type="number"], .entry-content input[type="search"],
.entry-content input[type="date"], .entry-content select, .entry-content textarea,
.signup--plugin input[type="text"], .signup--plugin input[type="email"] {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 400 16px var(--font); color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
}
.entry-content textarea { min-height: 140px; }
.entry-content input:focus, .entry-content select:focus, .entry-content textarea:focus, .signup--plugin input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.entry-content ::placeholder, .signup--plugin ::placeholder { color: rgba(255,255,255,.5); }
.entry-content label { display: block; font-size: 15px; color: var(--text); }
.entry-content input[type="submit"], .entry-content button[type="submit"], .entry-content .wpforms-submit, .entry-content .gform_button,
.signup--plugin input[type="submit"], .signup--plugin button[type="submit"], .signup--plugin button {
  display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border: 0; border-radius: var(--radius);
  background: var(--orange); color: var(--navy); font: 700 15px var(--font); cursor: pointer; transition: background-color .2s, color .2s;
}
.entry-content input[type="submit"]:hover, .entry-content button[type="submit"]:hover, .signup--plugin input[type="submit"]:hover, .signup--plugin button:hover { background: #fff; color: var(--navy); }
.search-form { display: flex; gap: 8px; }

/* Newsletter form from a plugin, laid out like the design's sign-up row */
.signup--plugin form, .signup--plugin .wpcf7-form, .signup--plugin .wpforms-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 0; }
.signup--plugin p { margin: 0; flex: 1 1 200px; }
.signup--plugin p:last-of-type { flex: 0 0 auto; }
.signup--plugin br { display: none; }
.signup--plugin input[type="email"], .signup--plugin input[type="text"] { height: 44px; min-height: 44px; font-size: 15px; }
.signup--plugin input[type="submit"], .signup--plugin button { height: 44px; }
.signup--plugin .wpcf7-response-output, .signup--plugin .wpcf7-not-valid-tip { flex-basis: 100%; margin: 4px 0 0 !important; font-size: 13px; color: rgba(255,255,255,.8); }
.signup--plugin .wpcf7-spinner { display: none; }
.hero--plain .eyebrow { text-transform: uppercase; }
.hero--plain + .section .card-grid { margin-top: 0; }
.hero--plain + .section { padding-top: 96px; }

/* ---------- Single post: details + image on the left, text on the right ---------- */
.post-section { padding-top: 96px; }
.post-panel {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px;
  padding: 56px; border-bottom: 2px solid var(--orange); border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, #021931 0%, rgba(2,25,49,0) 50%), #002f5e;
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.7);
}
.post-side { display: flex; flex-direction: column; gap: 28px; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.post-image { margin: 0; border-radius: var(--radius); overflow: hidden; }
.post-image img { width: 100%; height: auto; display: block; }
.post-meta { list-style: none; margin: 0; padding: 0; }
.post-meta li { padding: 16px 0; border-top: 1px solid rgba(128,151,174,.6); font-size: 16px; color: #fff; }
.post-meta li:last-child { border-bottom: 1px solid rgba(128,151,174,.6); }
.post-meta-label { display: block; margin-bottom: 4px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-meta a { color: var(--orange); }
.post-meta a:hover { color: #fff; }
.post-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 15px; font-weight: 600; color: var(--orange); }
.post-back svg { width: 16px; height: 16px; transition: transform .2s ease; }
.post-back:hover svg { transform: translateX(-3px); }
.post-body.entry-content { max-width: none; }
.post-body > :first-child { margin-top: 0; }
@media (max-width: 1080px) { .post-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; padding: 40px; } }
@media (max-width: 760px) {
  .post-section { padding-top: 56px; }
  .post-panel { grid-template-columns: 1fr; gap: 36px; padding: 28px 20px; }
  .post-side { position: static; }
}

/* ---------- Content written with Avada (Fusion Builder) ---------- */
.cops-gallery { columns: var(--cols, 3); column-gap: 12px; margin: 2em 0; }
.entry-content .cops-gallery-item { display: block; margin: 0 0 12px; break-inside: avoid; border: 0; border-radius: var(--radius); overflow: hidden; }
.cops-gallery-item img { width: 100%; height: auto; display: block; border-radius: 0; transition: transform .4s ease; }
.cops-gallery-item:hover img { transform: scale(1.03); }
.cops-imageframe { margin: 1.6em 0; }
.cops-sep { height: 20px; }
.cops-btn-row { margin: 1.6em 0; }
.cops-btn-row--center { text-align: center; }
.cops-btn-row--right { text-align: right; }
.cops-btn-row .btn { display: inline-flex; }
.cops-form-fallback { padding: 16px 20px; border: 1px dashed rgba(255,255,255,.35); border-radius: var(--radius); }
.cops-modal { width: min(640px, calc(100vw - 32px)); padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: #0a2a4f; color: #fff; }
.cops-modal::backdrop { background: rgba(2,25,49,.75); }
.cops-modal h3 { font-size: 24px; margin-bottom: 16px; }
.cops-modal-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.entry-content h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 760px) { .cops-gallery { columns: 2; } }

/* ---------- Events ---------- */
.ev-cards--page { margin-top: 56px; }
.ev-card-date { flex-wrap: wrap; padding-right: 32px; }
.ev-empty { margin-top: 40px; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--text); }
.ev-news { margin-top: 72px; padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; border: 1px dashed rgba(255,255,255,.3); border-radius: var(--radius); }
.ev-news p { max-width: 620px; font-size: 18px; line-height: 1.6; color: #fff; }
.ev-news .signup--plugin { width: 100%; max-width: 560px; }
.post-register { align-self: flex-start; }
.post-register svg { width: 16px; height: 16px; }
.post-panel--event .post-side { gap: 24px; }
@media (max-width: 760px) { .ev-news { padding: 28px 20px; margin-top: 48px; } }

/* ---------- Contact form pop-up ---------- */
.cops-contact { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; }
.cops-contact-intro { margin: -4px 0 20px; color: var(--text); font-size: 16px; line-height: 1.55; }
.cops-contact-form { min-height: 200px; }
.cops-contact-form iframe { width: 100% !important; border: 0; display: block; }
@media (max-width: 640px) { .cops-contact { padding: 28px 18px; } }

/* Newsletter box on the Events page / under events */
.ev-news .signup--box { width: 100%; max-width: 520px; text-align: left; }
.ev-news .signup--box .signup-row { width: 100%; }

/* ---------- Contact Form 7 in the pop-ups ---------- */
.cops-contact--plugin .cops-contact-form { min-height: 0; }
.cops-modal .wpcf7 form > p, .cops-modal .wpcf7 .cops-cf7-row { margin: 0 0 16px; }
.cops-modal .wpcf7 label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 500; color: var(--text); }
.cops-modal .wpcf7 .wpcf7-list-item label { margin-bottom: 0; }
.cops-modal .wpcf7 fieldset.hidden-fields-container { display: none; }
.cops-modal .wpcf7 label .wpcf7-form-control-wrap { margin-top: 6px; }
.cops-modal .wpcf7 br { display: none; }
.cops-modal .wpcf7-form-control-wrap { display: block; }
.cops-modal .wpcf7 input[type="text"], .cops-modal .wpcf7 input[type="email"], .cops-modal .wpcf7 input[type="tel"],
.cops-modal .wpcf7 input[type="url"], .cops-modal .wpcf7 input[type="number"], .cops-modal .wpcf7 input[type="date"],
.cops-modal .wpcf7 select, .cops-modal .wpcf7 textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 400 16px var(--font); color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
}
.cops-modal .wpcf7 select option { color: #021931; }
.cops-modal .wpcf7 textarea { min-height: 120px; height: 140px; resize: vertical; }
.cops-modal .wpcf7 input:focus, .cops-modal .wpcf7 select:focus, .cops-modal .wpcf7 textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.cops-modal .wpcf7 ::placeholder { color: rgba(255,255,255,.5); }
.cops-modal .wpcf7-checkbox, .cops-modal .wpcf7-radio, .cops-modal .wpcf7-acceptance { display: block; margin-bottom: 16px; }
.cops-modal .wpcf7-list-item { display: block; margin: 0 0 6px; }
.cops-modal .wpcf7-list-item label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.5; cursor: pointer; }
.cops-modal .wpcf7 input[type="checkbox"], .cops-modal .wpcf7 input[type="radio"] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); }
.cops-modal .wpcf7 a { color: var(--orange); }
.cops-modal .wpcf7 a:hover { color: #fff; }
.cops-modal .wpcf7 input[type="submit"], .cops-modal .wpcf7 button[type="submit"] {
  display: inline-flex; align-items: center; height: 48px; padding: 0 28px; border: 0; border-radius: var(--radius);
  background: var(--orange); color: var(--navy); font: 700 15px var(--font); cursor: pointer; transition: background-color .2s, color .2s;
}
.cops-modal .wpcf7 input[type="submit"]:hover, .cops-modal .wpcf7 button[type="submit"]:hover { background: #fff; }
.cops-modal .wpcf7 input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.cops-modal .wpcf7-spinner { vertical-align: middle; margin: 0 0 0 12px; background-color: rgba(255,255,255,.5); }
.cops-modal .wpcf7-not-valid { border-color: #ff8a7a !important; }
.cops-modal .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: #ff8a7a; }
.cops-modal .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; color: #fff; }
.cops-modal .wpcf7 form.sent .wpcf7-response-output { border-color: #46c08a; background: rgba(70,192,138,.12); }
.cops-modal .wpcf7 form.invalid .wpcf7-response-output, .cops-modal .wpcf7 form.unaccepted .wpcf7-response-output,
.cops-modal .wpcf7 form.failed .wpcf7-response-output, .cops-modal .wpcf7 form.spam .wpcf7-response-output { border-color: var(--orange); background: rgba(245,130,32,.1); }
.cops-modal .wpcf7 form.init .wpcf7-response-output { display: none; }
