/* ─── PUBLIC ARTICLE STYLES ───
   Used by blog.html (the article overlay visitors see) and by the admin
   editor's live preview, so the preview is the real public layout, not a copy.
   Requires shared.css (brand variables) to be loaded first. */

/* Extra faces offered in the editor's font list. Times New Roman, Georgia
   and Arial are system fonts; Garamond falls back to EB Garamond and Calibri
   to its metric-compatible twin Carlito where the original isn't installed. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=EB+Garamond:ital,wght@0,400;0,600;1,400&family=Carlito:ital,wght@0,400;0,700;1,400;1,700&display=swap');

.blog-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,12,22,0.94); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 60px 20px 40px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.blog-modal-overlay.open { opacity: 1; pointer-events: all; }
.blog-modal {
  background: var(--navy-mid); border: 1px solid rgba(201,168,76,0.15);
  border-top: 3px solid var(--gold); max-width: 740px; width: 100%;
  padding: 52px 48px; position: relative;
}
.blog-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border: 1px solid rgba(201,168,76,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 18px; cursor: pointer;
  background: none; transition: all 0.25s;
}
.blog-modal-close:hover { border-color: var(--gold); color: var(--gold); }
.blog-modal-cat {
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.blog-modal-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px,4vw,42px); color: var(--white);
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px;
}
.blog-modal-meta {
  font-family: var(--font-body); font-size: 12px; color: var(--text-muted);
  margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(201,168,76,0.1);
}
.blog-modal-body {
  font-family: var(--font-body); font-size: 16px; line-height: 1.85; color: var(--text-on-navy);
  overflow-wrap: break-word;
}
.blog-modal-body p { margin-bottom: 18px; }
.blog-modal-body ul, .blog-modal-body ol { margin: 0 0 18px; padding-left: 24px; }
.blog-modal-body ul { list-style: disc; }
.blog-modal-body ol { list-style: decimal; }
.blog-modal-body ul ul { list-style: circle; }
.blog-modal-body ul ul ul { list-style: square; }
.blog-modal-body ol ol { list-style: lower-alpha; }
.blog-modal-body li ul, .blog-modal-body li ol { margin: 6px 0 0; }
.blog-modal-body li { margin-bottom: 6px; }
.blog-modal-body h1, .blog-modal-body h2, .blog-modal-body h3 {
  font-family: var(--font-display); font-weight: 400; color: var(--white); line-height: 1.25;
}
.blog-modal-body h1 { font-size: 34px; margin: 36px 0 16px; letter-spacing: -0.01em; }
.blog-modal-body h2 { font-size: 30px; margin: 34px 0 14px; }
.blog-modal-body h3 { font-size: 26px; margin: 32px 0 14px; }
.blog-modal-body > :first-child { margin-top: 0; }
.blog-modal-body strong { color: var(--white); font-weight: 500; }
.blog-modal-body em { color: var(--gold); font-style: italic; }
.blog-modal-body blockquote {
  margin: 28px 0; padding: 2px 0 2px 24px; border-left: 3px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.6; color: var(--parchment);
}
.blog-modal-body blockquote p:last-child { margin-bottom: 0; }
.blog-modal-body hr { border: none; border-top: 1px solid rgba(201,168,76,0.25); margin: 36px 0; }
.blog-modal-body img { display: block; max-width: 100%; height: auto; margin: 28px auto; }
/* Highlighted text (editor's highlighter) gets dark ink so it stays readable on
   a light highlight; a colour chosen in the editor is inline and still wins. */
.blog-modal-body [style*="background-color"] { color: var(--navy); padding: 0 2px; }
.blog-modal-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.blog-modal-body a:hover { color: var(--parchment); }
@media (max-width: 600px) {
  .blog-modal { padding: 36px 20px; }
  .blog-modal-body h1 { font-size: 28px; }
  .blog-modal-body h2 { font-size: 25px; }
  .blog-modal-body h3 { font-size: 22px; }
}
