/*
 * Announcement page template (announcement.php)
 *
 * Everything here styles plain WYSIWYG output, so no custom HTML or classes
 * are needed when writing the page. What each editor button turns into:
 *
 *   Heading 2            Section heading
 *   Heading 3 + list     A subject card (heading on top, list inside)
 *   Blockquote           Highlighted note box
 *   Horizontal line      Section divider
 *   Link to another site Gets a small arrow
 *   Bold                 Darker emphasis
 *
 * The page title and dates come from WordPress, so a Heading 1 pasted at the
 * very top of the content is hidden to avoid showing the title twice.
 */

.announcement {
  --ann-blue: #3c8aca;
  --ann-navy: #10517c;
  --ann-text: #2e384d;
  --ann-muted: #8798ad;
  --ann-bg-soft: #f4f6fc;
  --ann-border: #e3e8f2;

  width: 100%;
  display: inline-block;
  padding: 50px 20px 90px;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
  color: var(--ann-text);
}

.announcement *,
.announcement *::before,
.announcement *::after {
  box-sizing: border-box;
}

.ann-article {
  max-width: 760px;
  margin: 0 auto;
}

/* ---- Header (from the template) ---- */

.ann-header {
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--ann-border);
}

.announcement h1.ann-title {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ann-text);
}

.ann-meta {
  margin: 0;
  font-size: 15px;
  color: var(--ann-muted);
}

/* ---- Body copy ---- */

.ann-body > h1:first-child {
  display: none;
}

.ann-body p,
.ann-body li {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ann-text);
}

.ann-body p {
  margin: 0 0 16px;
}

.ann-body p:empty {
  display: none;
}

/* First paragraph reads as an intro */
.ann-body > p:first-of-type {
  font-size: 19px;
  line-height: 1.65;
}

.ann-body strong,
.ann-body b {
  font-weight: 400;
  color: #1c2433;
}

.ann-body h2 {
  margin: 48px 0 16px;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ann-text);
}

.ann-body h3 {
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ann-navy);
}

.ann-body h4 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ann-text);
}

/* ---- Links ---- */

.ann-body a {
  color: var(--ann-blue);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ann-body a:hover,
.ann-body a:focus {
  color: var(--ann-navy);
}

.ann-body a[href^="http"]:not([href*="mrcemsuccess.com"])::after {
  content: "\00a0\2197";
  text-decoration: none;
  display: inline-block;
}

/* ---- Lists ---- */

.ann-body ul,
.ann-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.ann-body li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.ann-body ul li {
  list-style: disc;
}

.ann-body ol li {
  list-style: decimal;
}

.ann-body li::marker {
  color: var(--ann-blue);
}

/* Heading 3 followed by a list = subject card */
.ann-body h3:has(+ ul),
.ann-body h3:has(+ ol) {
  padding: 14px 22px 8px;
  border: 1px solid var(--ann-border);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #fff;
}

.ann-body h3 + ul,
.ann-body h3 + ol {
  margin: 0 0 16px;
  padding: 6px 22px 10px 44px;
  border: 1px solid var(--ann-border);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
}

.ann-body h3 + ul li,
.ann-body h3 + ol li {
  margin-bottom: 4px;
}

/* ---- Blockquote = note box ---- */

.ann-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border: 0;
  border-left: 4px solid var(--ann-blue);
  border-radius: 0 10px 10px 0;
  background: var(--ann-bg-soft);
  font-style: normal;
  quotes: none;
}

.ann-body blockquote::before,
.ann-body blockquote::after {
  content: none;
}

.ann-body blockquote p {
  font-size: 17px;
  font-style: normal;
}

.ann-body blockquote p:last-child {
  margin-bottom: 0;
}

/* ---- Horizontal line = divider ---- */

.ann-body hr {
  height: 0;
  margin: 44px 0;
  border: 0;
  border-top: 1px solid var(--ann-border);
}

.ann-body hr + h2 {
  margin-top: 0;
}

/* ---- Small screens ---- */

@media (max-width: 700px) {
  .announcement {
    padding: 30px 16px 60px;
  }

  .announcement h1.ann-title {
    font-size: 28px;
  }

  .ann-body h2 {
    margin-top: 36px;
    font-size: 22px;
  }

  .ann-body > p:first-of-type {
    font-size: 18px;
  }
}
