/* ===========================================================
 * BEC · WordPress core CSS baseline
 * ---------------------------------------------------------
 * Styles for WordPress-generated markup that the page builder
 * or block editor outputs (block library, gallery shortcode,
 * captions, alignment helpers, accessibility, comments, etc.)
 *
 * Load order: bootstrap.min.css → wp-defaults.css → custom.css → templates.css
 * (wp-defaults sits BELOW the brand layer so brand wins on conflicts.)
 * =========================================================== */


/* 00 · Accessibility -------------------------------------- */
.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);
  height:1px;width:1px;margin:-1px;padding:0;
  overflow:hidden;position:absolute !important;
  word-wrap:normal !important;
}
.screen-reader-text:focus{
  background:#f1f1f1;clip:auto !important;clip-path:none;
  color:#0d1a2b;display:block;font-size:14px;font-weight:700;
  height:auto;left:5px;line-height:normal;padding:15px 23px 14px;
  text-decoration:none;top:5px;width:auto;z-index:100000;
}

.skip-link{position:absolute;top:-40px;left:6px;z-index:1000}
.skip-link:focus{top:6px}


/* 01 · Alignment helpers (block + classic editor) --------- */
.alignleft{float:left;margin:.4em 1.4em 1em 0}
.alignright{float:right;margin:.4em 0 1em 1.4em}
.aligncenter{display:block;margin-left:auto;margin-right:auto;clear:both}
.alignnone{display:block;margin:0 0 1em}

.alignwide{
  margin-left:calc(-1 * ((100vw - 100%) / 2 - 16px));
  margin-right:calc(-1 * ((100vw - 100%) / 2 - 16px));
  max-width:1280px;
}
.alignfull{
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  max-width:100vw;
}
.alignfull img,.alignwide img{width:100%;height:auto}

.has-text-align-left{text-align:left}
.has-text-align-center{text-align:center}
.has-text-align-right{text-align:right}
.has-drop-cap:not(:focus)::first-letter{
  float:left;font-size:5em;line-height:.7;font-weight:700;
  margin:.05em .12em 0 0;color:var(--bec-brand,#0f3a8a);
}


/* 02 · Captions ------------------------------------------- */
.wp-caption{max-width:100%;margin-bottom:1.5em}
.wp-caption img,
.wp-caption .wp-caption-img{display:block;width:100%;height:auto;border-radius:8px}
.wp-caption .wp-caption-text,
figure.wp-caption figcaption,
figure.wp-block-image figcaption{
  font-size:13.5px;color:#5b6b86;
  text-align:center;margin:.7em 0 0;font-style:italic;
}


/* 03 · Galleries (classic [gallery]) ---------------------- */
.gallery{display:grid;gap:8px;margin:1.5em 0;list-style:none;padding:0}
.gallery-columns-1{grid-template-columns:1fr}
.gallery-columns-2{grid-template-columns:repeat(2,1fr)}
.gallery-columns-3{grid-template-columns:repeat(3,1fr)}
.gallery-columns-4{grid-template-columns:repeat(4,1fr)}
.gallery-columns-5{grid-template-columns:repeat(5,1fr)}
.gallery-columns-6{grid-template-columns:repeat(6,1fr)}
.gallery-item{margin:0}
.gallery-item img{display:block;width:100%;height:auto;border-radius:8px}
.gallery-caption{font-size:12.5px;color:#5b6b86;margin-top:4px}
@media (max-width:600px){
  .gallery-columns-3,.gallery-columns-4,.gallery-columns-5,.gallery-columns-6{
    grid-template-columns:repeat(2,1fr);
  }
}


/* 04 · Block library --------------------------------------- *
 * Minimal coverage of the most common Gutenberg blocks so a
 * developer can drop in editor content without chrome breakage.
 * --------------------------------------------------------- */

/* Group / row / stack */
.wp-block-group{margin:1.5em 0}
.wp-block-group.has-background{padding:24px;border-radius:14px}

/* Columns */
.wp-block-columns{display:flex;flex-wrap:wrap;gap:24px;margin:1.5em 0}
.wp-block-column{flex:1 1 0;min-width:260px}

/* Image */
.wp-block-image{margin:1.5em 0}
.wp-block-image img{height:auto;max-width:100%;border-radius:8px}
.wp-block-image.is-style-rounded img{border-radius:50%}

/* Cover */
.wp-block-cover{
  position:relative;display:flex;align-items:center;justify-content:center;
  min-height:340px;padding:48px 24px;color:#fff;
  background-position:center;background-size:cover;border-radius:14px;
  overflow:hidden;
}
.wp-block-cover__background{position:absolute;inset:0;background:rgba(9,17,30,.45)}
.wp-block-cover__inner-container{position:relative;z-index:1;text-align:center;max-width:780px}

/* Buttons (block) */
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:1.4em 0}
.wp-block-button__link{
  display:inline-block;padding:.85em 1.6em;border-radius:10px;
  background:var(--bec-brand,#0f3a8a);color:#fff;text-decoration:none;
  font-weight:700;letter-spacing:.01em;
  transition:background .15s ease, transform .15s ease;
}
.wp-block-button__link:hover{transform:translateY(-1px);color:#fff}
.is-style-outline .wp-block-button__link{
  background:transparent;color:var(--bec-brand,#0f3a8a);
  border:2px solid var(--bec-brand,#0f3a8a);
}

/* Pull-quote / quote */
.wp-block-quote,blockquote{
  margin:1.4em 0;padding:18px 22px;
  border-left:4px solid var(--bec-accent,#F5B400);
  background:#f5f7fb;border-radius:0 10px 10px 0;
  font-size:1.05rem;color:#1c2b44;
}
.wp-block-quote cite,blockquote cite{
  display:block;font-style:normal;font-size:.85em;color:#5b6b86;margin-top:8px;
}
.wp-block-pullquote{
  margin:2em 0;padding:32px 24px;text-align:center;
  border-top:3px solid var(--bec-accent,#F5B400);
  border-bottom:3px solid var(--bec-accent,#F5B400);
}
.wp-block-pullquote p{font-size:1.4em;font-weight:600;line-height:1.35;margin:0}

/* Code / pre */
.wp-block-code,pre,code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:.92em;
}
.wp-block-code,pre{
  background:#0d1a2b;color:#e6ecf6;padding:16px 18px;
  border-radius:10px;overflow-x:auto;margin:1.4em 0;
}
:not(pre) > code{
  background:#eef2f8;color:#0d1a2b;padding:2px 6px;border-radius:5px;
}

/* Separator */
.wp-block-separator,hr{
  border:0;border-top:1px solid #e4e9f1;margin:2em 0;
}
.wp-block-separator.is-style-wide{border-top-width:2px}
.wp-block-separator.is-style-dots{
  background:none;border:0;text-align:center;line-height:1;height:auto;
}
.wp-block-separator.is-style-dots::before{content:"···";letter-spacing:1em;color:#5b6b86}

/* Tables */
.wp-block-table,table{width:100%;border-collapse:collapse;margin:1.4em 0}
.wp-block-table th,.wp-block-table td,
table th,table td{
  padding:12px 14px;border:1px solid #e4e9f1;
  text-align:left;vertical-align:top;
}
.wp-block-table thead th,table thead th{
  background:#f5f7fb;font-weight:700;color:#0d1a2b;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background:#f9fafd}

/* Lists (editor + theme prose) */
.wp-block-list,
.entry-content ul,
.entry-content ol{padding-left:1.4em;margin:1em 0}
.wp-block-list li,
.entry-content li{margin-bottom:.4em}

/* Embed responsive wrapper */
.wp-block-embed{margin:1.5em 0}
.wp-block-embed__wrapper{position:relative;padding-bottom:56.25%;height:0;overflow:hidden}
.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper embed,
.wp-block-embed__wrapper object{position:absolute;inset:0;width:100%;height:100%;border:0}


/* 05 · Comments (default WP comment list) ----------------- */
.comment-list{list-style:none;padding:0;margin:0}
.comment-list .comment{margin-bottom:24px;padding:18px 20px;background:#f9fafd;border:1px solid #e4e9f1;border-radius:12px}
.comment-list .children{list-style:none;padding-left:24px;margin-top:18px}
.comment-author{font-weight:700;color:#0d1a2b}
.comment-meta{font-size:13px;color:#5b6b86;margin-bottom:8px}
.comment-reply-link{font-weight:600;color:var(--bec-brand,#0f3a8a)}
.bypostauthor{border-left:3px solid var(--bec-brand,#0f3a8a)}


/* 06 · Forms (gravity forms baseline) --------------------- */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper select,
.gform_wrapper textarea{
  width:100%;padding:12px 14px;
  border:1px solid #e4e9f1;border-radius:10px;
  background:#fbfcfe;font:inherit;color:#0d1a2b;
}
.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus{
  outline:none;border-color:var(--bec-brand,#0f3a8a);
  box-shadow:0 0 0 4px rgba(15,58,138,.12);background:#fff;
}
.gform_wrapper .gfield_label{font-weight:600;color:#1c2b44;font-size:13px;margin-bottom:6px;display:block}
.gform_wrapper .gfield_required{color:#c0281f;margin-left:2px}
.gform_wrapper .gform_button{
  cursor:pointer;padding:14px 20px;
  background:var(--bec-accent,#F5B400);color:var(--bec-ink,#0d1a2b);
  border:0;border-radius:10px;font-weight:700;letter-spacing:.02em;
  transition:transform .15s ease, box-shadow .15s ease;
}
.gform_wrapper .gform_button:hover{transform:translateY(-1px);box-shadow:0 14px 30px -10px rgba(245,180,0,.7)}


/* 07 · Misc WP utility classes ---------------------------- */
.sticky{position:relative}
.post-password-form input[type="password"]{padding:10px 12px;border:1px solid #e4e9f1;border-radius:8px}
.search-form input[type="search"]{padding:10px 14px;border:1px solid #e4e9f1;border-radius:999px;width:100%;max-width:340px}

/* Editor color palette (from theme.json — extend if needed) */
.has-brand-color{color:var(--bec-brand,#0f3a8a) !important}
.has-brand-background-color{background-color:var(--bec-brand,#0f3a8a) !important}
.has-accent-color{color:var(--bec-accent,#F5B400) !important}
.has-accent-background-color{background-color:var(--bec-accent,#F5B400) !important}
.has-ink-color{color:var(--bec-ink,#0d1a2b) !important}
.has-soft-background-color{background-color:#f5f7fb !important}
.has-white-background-color{background-color:#fff !important}
