/**
 * Memphis Noticias — block styles (editor + front).
 * Carries what theme.json cannot express, per the Gutenberg Build Guide:
 * drop cap, prose links, the Notice and Chips block styles, the knowns box,
 * and the ad-slot placeholders. Brand tokens are re-declared here so the
 * editor canvas resolves them without the theme stylesheet.
 */
:root {
  --mn-yellow: #FFCE00;
  --mn-ink: #231614;
  --mn-paper: #FFFFFF;
  --mn-tint: #E7E4DC;
  --mn-cream-light: #F6F5F1;
  --mn-rule: #DAD6CD;
  --mn-rule-strong: #DAD6CD;
  --mn-muted: #5E524D;
  --mn-serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --mn-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mn-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ── GB.02 drop-cap lede ── */
.mn-prose > p:first-of-type.has-drop-cap:first-letter,
.entry-content > p.has-drop-cap:first-letter,
.has-drop-cap:first-letter {
  font-family: var(--mn-serif);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.82;
  float: left;
  margin: 6px 10px 0 0;
  color: var(--mn-ink);
}

/* ── GB.05 prose links: yellow underline + hover wash ── */
.mn-prose a,
.entry-content a {
  box-shadow: inset 0 -1px 0 var(--mn-yellow);
  text-decoration: none;
  color: var(--mn-ink);
}
.mn-prose a:hover,
.entry-content a:hover { background: var(--mn-yellow); }

/* ── GB.07 Notice / Legal group style ── */
.wp-block-group.is-style-mn-notice {
  background: var(--mn-tint);
  border-left: 3px solid var(--mn-yellow);
  border-radius: 5px;
  padding: 18px 20px;
  font-family: var(--mn-sans);
  font-size: 14px;
  line-height: 1.55;
}
.wp-block-group.is-style-mn-notice > p:first-child strong,
.wp-block-group.is-style-mn-notice b {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── GB.08 mn/knowns — two coupled panels ── */
.mn-knowns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--mn-rule);
  border-radius: 6px;
  overflow: hidden;
  margin: 28px 0;
}
.mn-knowns__col {
  background: #FBFAF8;
  padding: 28px;
}
.mn-knowns__col--maybe {
  background: #F0EEE9;
  border-left: 1px solid var(--mn-rule);
}
.mn-knowns__col h4 {
  font-family: var(--mn-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mn-ink);
  margin: 0 0 12px;
  padding-top: 10px;
  border-top: 3px solid var(--mn-yellow);
}
.mn-knowns__col--maybe h4 { border-top-color: var(--mn-rule-strong); }
.mn-knowns__col ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.5;
}
.mn-knowns__col li { margin-bottom: 8px; }
@media (max-width: 700px) {
  .mn-knowns { grid-template-columns: 1fr; }
  .mn-knowns__col--maybe { border-left: 0; border-top: 1px solid var(--mn-rule); }
}

/* ── GB.15 Chips style for Post Terms ── */
.wp-block-post-terms.is-style-mn-chips a {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--mn-tint);
  font-family: var(--mn-sans);
  font-size: 13px;
  color: var(--mn-ink);
  text-decoration: none;
  box-shadow: none;
}
.wp-block-post-terms.is-style-mn-chips a:hover { background: var(--mn-yellow); }

/* ── GB.12/13 ad-slot placeholders (mirrors the theme .mn-adslot look) ── */
.mn-adslot {
  border: 1px dashed var(--mn-rule-strong);
  border-radius: 5px;
  background:
    repeating-linear-gradient(45deg,
      transparent 0 14px,
      rgba(33, 25, 24, 0.025) 14px 28px),
    var(--mn-tint);
  color: var(--mn-muted);
  font-family: var(--mn-mono);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 18px;
  margin: 28px 0;
}
.mn-adslot__tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mn-ink);
  background: var(--mn-paper);
  border: 1px solid var(--mn-rule-strong);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: var(--mn-sans);
  font-weight: 700;
}
.mn-adslot__size { font-size: 13px; color: var(--mn-ink); }
.mn-adslot--billboard   { width: 100%; aspect-ratio: 970 / 250; max-height: 250px; }
.mn-adslot--leaderboard { width: 100%; aspect-ratio: 728 / 90; max-height: 90px; }
.mn-adslot--mediumrect  { width: 300px; height: 250px; margin-left: auto; margin-right: auto; }
.mn-adslot--sidebar     { width: 100%; aspect-ratio: 4 / 5; }
.mn-adslot--inarticle   { width: 100%; aspect-ratio: 600 / 200; }
