/* Editorial layer — blog listing + article pages.
   Scoped to .iif-ed-* and the post/listing shells so nothing here can reach a Divi page. */

:root {
  --ed-ink: #1b3a4b;
  --ed-muted: #5d7784;
  --ed-rule: #e3e0d6;
  --ed-accent: #2ea3f2;
  --ed-paper: #faf8f2;
}

/* ---------- article header ---------- */
.iif-ed-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 0 0 22px; padding: 0 0 18px;
  border-bottom: 1px solid var(--ed-rule);
  font-size: 14px; line-height: 1.4; color: var(--ed-muted);
}
.iif-ed-cat {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--ed-accent); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
}
.iif-ed-cat:hover { background: var(--ed-ink); color: #fff; }
.iif-ed-dot { color: var(--ed-rule); }

/* A long line of body copy is the single biggest readability cost on an article page.
   The Divi column stays as-is; only the prose is measured. */
#left-area .entry-content > p,
#left-area .entry-content > ul,
#left-area .entry-content > ol,
#left-area .entry-content > h2,
#left-area .entry-content > h3,
#left-area .entry-content > blockquote { max-width: 68ch; }
#left-area .entry-content > p { line-height: 1.75; margin-bottom: 1.35em; }
#left-area .entry-content > h2 { margin-top: 1.9em; line-height: 1.25; }
#left-area .entry-content > h3 { margin-top: 1.6em; }
#left-area .entry-content img { border-radius: 6px; }

/* ---------- article footer: prev / next / related ---------- */
.iif-ed-foot { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--ed-rule); }
.iif-ed-nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.iif-ed-nav a {
  flex: 1 1 260px; max-width: 48%; text-decoration: none; color: var(--ed-ink);
  border: 1px solid var(--ed-rule); border-radius: 8px; padding: 14px 18px; background: #fff;
}
.iif-ed-nav a:hover { border-color: var(--ed-accent); }
.iif-ed-nav span {
  display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ed-muted); margin-bottom: 5px;
}
.iif-ed-nav strong { font-weight: 600; line-height: 1.35; }
.iif-ed-nav .iif-ed-next { text-align: right; margin-left: auto; }

.iif-ed-rel { margin-top: 40px; }
.iif-ed-rel h2 { font-size: 20px; margin: 0 0 18px; }
.iif-ed-rel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
                 grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.iif-ed-rel a { display: block; text-decoration: none; color: var(--ed-ink); }
.iif-ed-rel img { width: 100%; aspect-ratio: 16/10; object-fit: cover;
                  border-radius: 6px; margin-bottom: 9px; display: block; }
.iif-ed-rel strong { font-weight: 600; font-size: 15px; line-height: 1.35; display: block; }
.iif-ed-rel a:hover strong { color: var(--ed-accent); }

/* ---------- sidebar ---------- */
#sidebar .iif-ed-widget { margin-bottom: 34px; }
#sidebar .iif-ed-widget h2 {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ed-muted);
  margin: 0 0 14px; padding-bottom: 9px; border-bottom: 1px solid var(--ed-rule);
}
#sidebar .iif-ed-widget ul { list-style: none; margin: 0; padding: 0; }
#sidebar .iif-ed-widget li { margin-bottom: 13px; line-height: 1.4; }
#sidebar .iif-ed-widget a { text-decoration: none; color: var(--ed-ink); font-size: 15px; }
#sidebar .iif-ed-widget a:hover { color: var(--ed-accent); }
#sidebar .iif-ed-widget time { display: block; font-size: 12px; color: var(--ed-muted);
                               margin-top: 2px; }
.iif-ed-cta { background: var(--ed-ink); color: #fff; border-radius: 8px; padding: 22px; }
.iif-ed-cta h2 { color: #fff; border: 0; letter-spacing: .06em; margin-bottom: 8px; }
.iif-ed-cta p { font-size: 14px; line-height: 1.55; margin: 0 0 16px; color: #d8e4ea; }
.iif-ed-cta a {
  display: inline-block; background: #fff; color: var(--ed-ink) !important;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.iif-ed-cta a:hover { background: var(--ed-accent); color: #fff !important; }

/* ---------- listing cards ---------- */
.blog-grid .post-card .iif-ed-cardmeta {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ed-muted); margin: 0 0 6px;
}
.blog-grid .post-card .iif-ed-more {
  display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ed-accent);
  text-decoration: none;
}
.blog-grid .post-card .iif-ed-more:hover { color: var(--ed-ink); }
.blog-grid .post-card .iif-ed-more::after { content: " →"; }

@media (max-width: 767px) {
  .iif-ed-nav a { max-width: 100%; }
  .iif-ed-nav .iif-ed-next { text-align: left; }
}

/* Divi's #left-area li rule re-adds a marker, so the related grid needs it removed
   explicitly rather than only on the ul. */
.iif-ed-rel ul li, #left-area .iif-ed-rel ul li {
  list-style: none; padding-left: 0; margin-left: 0;
}
.iif-ed-rel ul li::marker { content: none; }
.iif-ed-rel ul li::before { display: none; content: none; }

/* Keep the CTA button on one line — it wrapped to "GET IN / TOUCH" at sidebar width. */
.iif-ed-cta a { white-space: nowrap; padding: 10px 16px; font-size: 12px; }

/* Divi sizes every <p> inside .post-content, so the card date needs the same depth to win. */
.blog-grid .post-card .post-content .post-content-inner p.iif-ed-cardmeta {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; line-height: 1.3;
  color: var(--ed-muted); margin: 0 0 8px;
}
/* Justified text in a ~340px card opens rivers between words. Left-aligned reads better at
   this measure; the live site justifies and it is the worse of the two. */
/* The per-page stylesheet (resource-blog.css) sets justify at the SAME specificity and
   loads later, so it won a tie. :not() adds the weight of its argument and settles it. */
.blog-grid .post-card .post-content .post-content-inner p:not(.iif-ed-cardmeta) {
  text-align: left;
}

/* ---------- footer contact column ---------- */
/* The address and the phone number are two <p>s inside one text module. Divi's paragraph
   padding left them far enough apart that the phone read as detached from the block, and
   the icons sat below their own text baseline. */
.i-0-tb_footer .m-text p { padding-bottom: .45em; }
.i-0-tb_footer .m-text p:last-child { padding-bottom: 0; }
.i-0-tb_footer .m-text p img { vertical-align: middle; margin-right: 8px; }
.i-0-tb_footer .m-text p a { text-decoration: none; color: inherit; }
.i-0-tb_footer .m-text p a:hover { text-decoration: underline; }

/* Way back to the index, replacing the route the category pill used to provide. */
.iif-ed-all { margin: 30px 0 0; text-align: center; }
.iif-ed-all a {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ed-accent); text-decoration: none;
  border: 1px solid var(--ed-rule); border-radius: 999px; padding: 10px 24px;
}
.iif-ed-all a:hover { border-color: var(--ed-accent); background: var(--ed-accent); color: #fff; }
.iif-ed-all a::before { content: "← "; }

/* ---------- enquiry form ---------- */
.iif-form { margin: 8px 0 26px; max-width: 520px; }
.iif-form_row { margin: 0 0 16px; }
.iif-form label {
  display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ed-ink);
}
.iif-form label span { color: #c0392b; margin-left: 2px; }
.iif-form input, .iif-form textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 15px; color: var(--ed-ink);
  background: #fff; border: 1px solid #cfd8dd; border-radius: 6px; box-sizing: border-box;
}
.iif-form input:focus, .iif-form textarea:focus {
  outline: none; border-color: var(--ed-accent); box-shadow: 0 0 0 3px rgba(46,163,242,.18);
}
.iif-form textarea { resize: vertical; min-height: 110px; }
/* The honeypot must be reachable by nothing a human uses, but not display:none —
   some bots skip hidden inputs, which would defeat the point. */
.iif-form_hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.iif-form_send {
  display: inline-block; padding: 13px 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ed-ink); color: #fff; font: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.iif-form_send:hover { background: var(--ed-accent); }
.iif-form_send[disabled] { opacity: .55; cursor: default; }
.iif-form_note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; min-height: 1px; }
.iif-form_note.is-ok { color: #1e7d44; }
.iif-form_note.is-err { color: #c0392b; }
@media (max-width: 767px) { .iif-form { max-width: 100%; } }

/* Divi styles `label` inside a text module as an inline element with its own width, which
   made every input start at a different x. Same depth as its rule, plus float/width reset. */
.iif-form .iif-form_row label,
#left-area .iif-form .iif-form_row label,
.m-text .iif-form .iif-form_row label {
  display: block; float: none; width: auto; margin: 0 0 6px; padding: 0;
  font-size: 14px; font-weight: 600; line-height: 1.3;
}
.iif-form .iif-form_row input,
.iif-form .iif-form_row textarea,
.m-text .iif-form .iif-form_row input,
.m-text .iif-form .iif-form_row textarea { display: block; width: 100%; float: none; }
.iif-form .iif-form_row { display: block; overflow: visible; }
