/* ==========================================================================
   Ezer Group: Threat Watch (scoped styles)
   Where: Appearance > Editor > Styles > (pencil) > Additional CSS
          or append to wp-content/themes/ezer-group/assets/css/site-refresh.css
   Everything is scoped to .ez-tw* classes, so nothing else on the site changes.
   Brand: navy #0D1F35, lime #DEF859, Raleway (inherited from the theme).
   ========================================================================== */

/* ---------- Severity badge (post meta row, cards, legend) ---------- */
.ez-tw-badge {
  display: inline-flex; align-items: center; gap: .5em;
  margin: 0 !important; padding: .4em .85em .4em .7em;
  border: 1.5px solid currentColor; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1;
}
.ez-tw-badge::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: currentColor; flex: none; }
.ez-tw-badge--critical { background: #FBEAEA; color: #7A1A12; border-color: #B42318; }
.ez-tw-badge--high     { background: #FFF3DF; color: #6B4100; border-color: #C77700; }
.ez-tw-badge--medium   { background: #FEF7C3; color: #5C4300; border-color: #B98900; }
.ez-tw-badge--low      { background: #EAF1FA; color: #0D1F35; border-color: #3E6496; }
.ez-tw-badge--critical::before { background: #B42318; }
.ez-tw-badge--high::before     { background: #C77700; }
.ez-tw-badge--medium::before   { background: #B98900; }
.ez-tw-badge--low::before      { background: #3E6496; }

/* ---------- Single advisory layout (block pattern "Threat Watch advisory") ---------- */
.ez-tw { --tw-navy: #0D1F35; --tw-lime: #DEF859; --tw-line: #E8ECF1; --tw-soft: #F3F5F8; color: #262626; }
.ez-tw > * + * { margin-top: 1.25rem; }
/* Headings, paragraphs and links inherit the theme's normal Insights post styles on purpose. */

.ez-tw-kicker { margin: 0 !important; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #5A6E82; }
.ez-tw-kicker a { color: var(--tw-navy) !important; text-decoration: none !important; }
.ez-tw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--tw-line); }
.ez-tw-dek { margin: 0 !important; font-size: 1.2rem; line-height: 1.5; color: var(--tw-navy); font-weight: 500; }
.ez-tw-byline, .ez-tw-updated, .ez-tw-ids { margin: 0 !important; font-size: 14px; color: #44556A; }
.ez-tw-byline strong, .ez-tw-updated strong, .ez-tw-ids strong { color: var(--tw-navy); }

/* At a glance box */
.ez-tw-glance { background: var(--tw-soft); border-left: 6px solid var(--tw-lime); border-radius: 12px; padding: 1.25rem 1.5rem !important; }
.ez-tw-glance h2, .ez-tw-glance .ez-tw-glance__title { margin: 0 0 .5rem !important; font-size: 14px !important; letter-spacing: .16em; text-transform: uppercase; color: var(--tw-navy); font-weight: 800; }
.ez-tw-glance ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: .35rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ez-tw-glance ul { grid-template-columns: 1fr 1fr; } }
.ez-tw-glance li { margin: 0; font-size: 15px; }
.ez-tw-glance li strong { color: var(--tw-navy); }

/* Numbered action list */
.ez-tw-steps { list-style: none; counter-reset: tw; padding-left: 0 !important; }
.ez-tw-steps > li { counter-increment: tw; position: relative; padding: .2rem 0 .2rem 3rem; margin: .9rem 0; }
.ez-tw-steps > li::before { content: counter(tw); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tw-navy); color: var(--tw-lime); font-weight: 800; font-size: 15px; display: grid; place-items: center; }

/* How Ezer can help (navy CTA box) */
/* "How Ezer can help": a light card, same feel as the site's service cards */
.ez-tw-help { background: #fff; border: 1px solid var(--tw-line); border-top: 4px solid var(--tw-navy); border-radius: 14px; padding: 1.5rem 1.75rem !important; margin-top: 2rem !important; }
.ez-tw-help h2 { margin-top: 0 !important; }
.ez-tw-help .wp-block-button__link { background: var(--tw-lime) !important; color: var(--tw-navy) !important; font-weight: 700; border-radius: 999px; padding: .75em 1.4em; text-decoration: none; }
.ez-tw-help .wp-block-button__link:hover { background: var(--tw-navy) !important; color: var(--tw-lime) !important; }

/* Sources + disclaimer */
.ez-tw-sources { font-size: 15px; padding-left: 1.1rem; }
.ez-tw-sources li { margin: .35rem 0; }
.ez-tw-disclaimer { margin-top: 2rem !important; padding-top: 1rem; border-top: 1px solid var(--tw-line); font-size: 13px; line-height: 1.55; color: #5A6E82; }

/* ---------- Threat Watch section page (/resources/threat-watch/) and Insights tabs ---------- */
.ez-tw-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 auto 1.5rem !important; max-width: var(--wp--style--global--wide-size, 1200px); }
.ez-tw-tabs .wp-block-button__link { background: #fff !important; color: #0D1F35 !important; border: 1.5px solid #0D1F35; border-radius: 999px; font-weight: 700; font-size: 14px; padding: .55em 1.2em; text-decoration: none; }
.ez-tw-tabs .is-current .wp-block-button__link, .ez-tw-tabs .wp-block-button__link[aria-current="page"] { background: #0D1F35 !important; color: #DEF859 !important; }
.ez-tw-intro { max-width: var(--wp--style--global--wide-size, 1200px); margin: 0 auto 1.5rem !important; display: grid; gap: 1rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ez-tw-intro { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.ez-tw-intro p { margin: 0; font-size: 17px; color: #262626; }
.ez-tw-legend { background: #fff; border-radius: 14px; padding: 1rem 1.25rem !important; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ez-tw-legend .ez-tw-legend__label { width: 100%; margin: 0 0 .25rem !important; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #5A6E82; }
.ez-tw-feed { font-size: 14px; }
.ez-tw-grid .wp-block-post-date { margin-top: .35rem; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5A6E82; }

@media (max-width: 600px) {
  .ez-tw-help { padding: 1.25rem !important; }
  .ez-tw-steps > li { padding-left: 2.6rem; }
}

/* Breathing room after the boxes (theme's constrained layout uses tight block gaps) */
.ez-tw .ez-tw-glance, .ez-tw .ez-tw-help { margin-bottom: 2.25rem !important; }
.ez-tw .ez-tw-meta { margin-bottom: 1.5rem !important; }
.ez-tw-legend .ez-tw-badge { font-size: 11px; letter-spacing: .1em; padding: .35em .7em .35em .6em; }
.ez-tw-legend { flex-wrap: nowrap; }
@media (max-width: 600px) { .ez-tw-legend { flex-wrap: wrap; } }
.ez-tw-intro { margin-bottom: 2.25rem !important; }

/* Severity legend: keep each pill's text on one line and let whole pills wrap, instead of squeezing letters */
.ez-tw-legend { flex-wrap: wrap; }
.ez-tw-legend .ez-tw-legend__label { width: auto; flex: none; margin: 0 .5rem 0 0 !important; }
.ez-tw-legend .ez-tw-badge { white-space: nowrap; flex: none; }
