/* ============================================================
   Bolasco Company Compliance — shared styles for blog pages
   Mirrors the design tokens used on the homepage.
   ============================================================ */

:root {
  --navy:   #22386A;
  --mid:    #2E4A72;
  --gold:   #EDCF8C;
  --gold-ink:#B89238;
  --light:  #F4F7FB;
  --white:  #FFFFFF;
  --text:   #1A2B4A;
  --muted:  #5A6A82;
  --border: #D6E0EE;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

/* ─── NAV ─── */
nav {
  background: var(--navy);
  padding: 0 max(5%, calc((100% - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(237,207,140,0.45);
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-svg { height: 54px; width: auto; display: block; }
.nav-menu { list-style: none; display: flex; gap: 2rem; }
.nav-menu a { color: #EEF2F8; text-decoration: none; font-size: 1.02rem; letter-spacing: 0.03em; transition: color 0.2s; }
.nav-menu a:hover { color: var(--gold); }
.nav-menu a.active { color: var(--gold); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%; background: #EEF2F8;
  border-radius: 2px; transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── ARTICLE ─── */
.article-head {
  background: var(--navy);
  color: var(--white);
  padding: 64px max(5%, calc((100% - 820px) / 2)) 56px;
}
.article-cat {
  display: inline-block; color: var(--gold);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.article-head h1 {
  font-family: var(--font-display); font-weight: normal;
  font-size: 2.5rem; line-height: 1.18; margin-bottom: 1.1rem; max-width: 18ch;
}
.article-meta {
  font-size: 0.9rem; color: #C7D3E4;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center;
}
.article-meta .dot { color: rgba(255,255,255,0.4); }

.article-wrap {
  max-width: 740px; margin: 0 auto; padding: 56px 5% 24px;
}
.article-body { font-size: 1.07rem; line-height: 1.75; color: #25324d; }
.article-body > * + * { margin-top: 1.25rem; }
.article-body h2 {
  font-family: var(--font-display); font-weight: normal; color: var(--navy);
  font-size: 1.7rem; line-height: 1.3; margin-top: 2.4rem;
}
.article-body h3 {
  color: var(--navy); font-size: 1.18rem; margin-top: 1.9rem;
}
.article-body p { margin-top: 1.25rem; }
.article-body a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { margin-top: 1.1rem; padding-left: 1.4rem; }
.article-body li { margin-top: 0.5rem; }
.article-body blockquote {
  margin: 1.8rem 0; padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 4px solid var(--gold); color: var(--muted);
  font-family: var(--font-display); font-size: 1.15rem; font-style: italic;
}
.article-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 1.8rem 0; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2.4rem 0; }
.article-body .lead { font-size: 1.2rem; color: var(--muted); line-height: 1.6; }

.article-disclaimer {
  margin-top: 2.6rem; padding: 1.1rem 1.3rem; background: var(--light);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.86rem; color: var(--muted); line-height: 1.6;
}

.article-back {
  display: inline-block; margin: 0; color: var(--gold-ink);
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
}
.article-back:hover { text-decoration: underline; }
.article-backwrap { max-width: 740px; margin: 0 auto; padding: 0 5% 8px; }

/* ─── NEWSLETTER CTA ─── */
.news-cta {
  background: var(--light); border-top: 1px solid var(--border);
  margin-top: 48px; padding: 56px max(5%, calc((100% - 740px) / 2));
}
.news-cta h2 {
  font-family: var(--font-display); font-weight: normal; color: var(--navy);
  font-size: 1.7rem; margin-bottom: 0.6rem;
}
.news-cta p { color: var(--muted); margin-bottom: 1.3rem; max-width: 56ch; }
.news-form { display: flex; gap: 0.6rem; flex-wrap: wrap; max-width: 480px; }
.news-form input[type=email] {
  flex: 1 1 240px; padding: 0.85rem 1rem; font-size: 0.98rem;
  border: 1px solid var(--border); border-radius: 5px; font-family: inherit;
}
.news-form button {
  background: var(--gold); color: var(--navy); border: none; cursor: pointer;
  padding: 0.85rem 1.6rem; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.03em; border-radius: 5px; font-family: inherit;
}
.news-form button:hover { opacity: 0.88; }
.news-consent { font-size: 0.78rem; color: var(--muted); margin-top: 0.9rem; max-width: 56ch; }
.news-consent a { color: var(--gold-ink); }

/* ─── SHARE ROW ─── */
.share-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.share-row .share-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 0.2rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  padding: 0.42rem 0.85rem; border-radius: 5px; text-decoration: none;
  border: 1px solid var(--border); background: var(--white); color: var(--navy);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.share-btn svg { width: 15px; height: 15px; display: block; }
.share-btn:hover { border-color: var(--gold); color: var(--gold-ink); }
.share-btn.copied { border-color: #2E7D52; color: #2E7D52; }

/* Share row on the navy masthead */
.article-head .share-label { color: #C7D3E4; }
.article-head .share-btn { background: transparent; color: #EEF2F8; border-color: rgba(255,255,255,0.35); }
.article-head .share-btn:hover { border-color: var(--gold); color: var(--gold); }
.article-head .share-row { margin-top: 1.6rem; }

/* Share row at the foot of the article */
.share-foot { max-width: 740px; margin: 2.4rem auto 0; padding: 1.6rem 5% 0; border-top: 1px solid var(--border); }

/* ─── BLOG INDEX ─── */
.blog-index-head {
  background: var(--navy); color: var(--white);
  padding: 60px max(5%, calc((100% - 820px) / 2)) 52px;
}
.blog-index-head .article-cat { margin-bottom: 0.8rem; }
.blog-index-head h1 { font-family: var(--font-display); font-weight: normal; font-size: 2.4rem; margin-bottom: 0.8rem; }
.blog-index-head p { color: #C7D3E4; max-width: 60ch; line-height: 1.6; }
.blog-list { max-width: 820px; margin: 0 auto; padding: 48px 5% 24px; display: grid; gap: 1.4rem; }
.post-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: 8px; padding: 1.6rem 1.8rem;
  background: var(--white); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { border-color: var(--gold); box-shadow: 0 10px 28px rgba(34,56,106,0.10); transform: translateY(-2px); }
.post-card .post-cat { color: var(--gold-ink); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.post-card h2 { font-family: var(--font-display); font-weight: normal; color: var(--navy); font-size: 1.45rem; margin: 0.45rem 0 0.5rem; line-height: 1.25; }
.post-card .post-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.6rem; }
.post-card p { color: #3a4761; line-height: 1.6; margin-bottom: 0.8rem; }
.post-card .post-more { color: var(--gold-ink); font-weight: 700; font-size: 0.92rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.55);
  padding: 40px 5%; font-size: 0.8rem;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { color: var(--white); font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.4rem; }
footer a { color: rgba(255,255,255,0.55); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .logo-svg { height: 46px; }
  .nav-menu {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.12);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  .nav-menu.open { max-height: 320px; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 1rem 5%; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1.1rem; }
}
@media (max-width: 600px) {
  .article-head { padding: 48px 5% 40px; }
  .article-head h1 { font-size: 1.85rem; }
  .article-body { font-size: 1.02rem; }
  .article-body h2 { font-size: 1.45rem; }
}

/* ─── POLICY MODAL (injected by site.js) ─── */
.bcc-policy-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(20,28,50,0.6); display: flex; align-items: center; justify-content: center; padding: 5vh 1rem; }
.bcc-policy-overlay[hidden] { display: none; }
.bcc-policy-modal { position: relative; background: #FFFFFF; color: #2A2F3A; max-width: 760px; width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); overflow: hidden; font-family: Arial, 'Helvetica Neue', sans-serif; }
.bcc-policy-close { position: absolute; top: 10px; right: 14px; z-index: 2; background: none; border: none; font-size: 1.9rem; line-height: 1; color: #22386A; cursor: pointer; padding: 0.2rem 0.4rem; }
.bcc-policy-close:hover { color: #B89238; }
.bcc-policy-body { overflow-y: auto; max-height: 90vh; padding: 2.2rem 2.4rem; }
.bcc-policy-h1 { color: #22386A; font-size: 1.6rem; margin: 0 0 0.2rem; }
.bcc-policy-sub { color: #22386A; font-weight: bold; margin: 0 0 1.2rem; }
.bcc-policy-content h3 { color: #22386A; font-size: 1.02rem; margin: 1.4rem 0 0.4rem; border-bottom: 1px solid #EDCF8C; padding-bottom: 0.25rem; }
.bcc-policy-content p { font-size: 0.9rem; line-height: 1.6; margin: 0 0 0.7rem; }
.bcc-policy-content a { color: #B89238; }
.bcc-policy-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 0.8rem; font-size: 0.82rem; }
.bcc-policy-table th, .bcc-policy-table td { border: 1px solid #DDE3EC; padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; }
.bcc-policy-table th { background: #22386A; color: #FFFFFF; font-weight: 600; }
@media (max-width: 600px) { .bcc-policy-body { padding: 1.8rem 1.3rem; } }

/* ─── COOKIE BANNER (injected by site.js) ─── */
.bcc-cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #22386A; color: #EEF2F8; border-top: 2px solid #EDCF8C; box-shadow: 0 -4px 20px rgba(0,0,0,0.25); font-family: Arial, 'Helvetica Neue', sans-serif; }
.bcc-cookie-banner[hidden] { display: none; }
.bcc-cookie-inner { max-width: 1280px; margin: 0 auto; padding: 1.1rem 5%; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.bcc-cookie-text { flex: 1 1 360px; font-size: 0.88rem; line-height: 1.6; margin: 0; }
.bcc-cookie-text a { color: #EDCF8C; text-decoration: underline; }
.bcc-cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }
.bcc-btn { border: none; cursor: pointer; font-size: 0.88rem; font-weight: 600; padding: 0.6rem 1.4rem; border-radius: 5px; font-family: inherit; }
.bcc-btn-primary { background: #EDCF8C; color: #22386A; }
.bcc-btn-secondary { background: transparent; color: #EEF2F8; border: 1px solid rgba(255,255,255,0.5); }
.bcc-btn-secondary:hover { border-color: #EDCF8C; color: #EDCF8C; }
@media (max-width: 600px) { .bcc-cookie-btns { width: 100%; } .bcc-btn { flex: 1 1 0; } }
