header.shell .topline { position: relative; }
.cm-header-controls { position: absolute; inset: 0 0 0 auto; display: flex; align-items: center; gap: 3px; }
.cm-header-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; background: transparent; color: inherit; padding: 4px; min-width: 27px; min-height: 28px; font: inherit; cursor: pointer; }
.cm-header-controls button:hover { color: #245b16; }
.cm-header-controls svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cm-header-controls .cm-language { font-weight: 700; }
.cm-header-dialog { width: min(400px, calc(100% - 32px)); border: 1px solid #151515; padding: 24px; color: #151515; background: white; }
.cm-header-dialog::backdrop { background: #0008; }
.cm-header-dialog h2 { margin: 0 44px 10px 0; font-size: 23px; }
.cm-header-dialog p { margin: 0 0 14px; }
.cm-header-dialog button { font: inherit; cursor: pointer; }
.cm-header-dialog .cm-header-dismiss { position: absolute; top: 12px; right: 12px; margin: 0; }
.cm-header-dialog .cm-header-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #151515; border-radius: 50%; background: #fff; color: #151515; }
.cm-header-dialog .cm-header-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cm-header-dialog .cm-language-option { margin-right: 8px; padding: 5px 10px; background: white; border: 1px solid; }
.cm-header-dialog .cm-language-option[aria-pressed=true] { background: #c5ff00; }
.cm-header-dialog .cm-google-option { min-height: 44px; padding: 8px 12px; border: 1px solid #151515; border-radius: 4px; background: #fff; color: #151515; }
.cm-header-dialog.cm-account-dialog { box-sizing: border-box; width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0 0 24px; overflow: auto; text-align: center; }
.cm-account-brand { padding: 25px 58px; background: #c5ff00; }
.cm-account-brand img { display: block; width: min(200px, 100%); height: auto; margin: auto; }
.cm-account-dialog h2 { margin: 24px 12px 18px; font-size: clamp(24px, 5vw, 34px); }
.cm-account-panel { margin: 0 14px; padding: clamp(18px, 5vw, 32px); border: 1px solid #ddd; }
.cm-account-email input { box-sizing: border-box; width: 100%; min-height: 54px; padding: 12px 16px; border: 1px solid #151515; border-radius: 5px; font: inherit; font-size: 16px; }
.cm-account-email .cm-email-continue { min-height: 46px; margin-top: 16px; padding: 8px 24px; border: 0; background: #151515; color: white; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cm-account-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.cm-account-divider::before, .cm-account-divider::after { content: ''; flex: 1; height: 1px; background: #ddd; }
.cm-account-panel .cm-google-option { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-color: #c6c9cd; }
.cm-account-dialog p { margin: 16px 26px 0; color: #555; }
@media (max-width: 620px) {
  .cm-header-controls { gap: 0; }
  .cm-header-controls .cm-control-label { display: none; }
}
.cm-header-controls .cm-signed-in svg,
.cm-header-controls .cm-signed-in .cm-control-label,
.cm-header-controls .cm-account-initials[hidden] { display: none; }
.cm-account-initials { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 3px; border-radius: 50%; background: #c5ff00; color: #151515; font-weight: 700; }
.cm-account-sign-out { margin-top: 16px; min-height: 44px; padding: 8px 18px; border: 1px solid #151515; background: #fff; color: #151515; }

.cm-sticky-masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper, #fff);
}

.cm-sticky-masthead .cm-section-navigation {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.cm-sticky-masthead .cm-section-navigation > a {
  flex: 0 0 auto;
  margin-inline: 0;
  padding-inline: 0;
  white-space: nowrap;
}

.cm-sticky-masthead .cm-section-navigation:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

/* Preserve the document position when the sticky header shrinks. */
.cm-sticky-masthead.cm-masthead-compact {
  margin-block-end: var(--cm-masthead-height-difference, 0px);
}

.cm-masthead-compact header.shell > :not(.cm-masthead-row, .masthead, .cm-section-navigation) {
  display: none;
}

.cm-masthead-compact header.shell .masthead {
  padding: 8px 0;
  font-size: 16px;
  line-height: 1;
}

.cm-masthead-compact .masthead .wordmark-image {
  display: block;
  width: clamp(144px, 19vw, 220px);
  margin-inline: auto;
}

.cm-masthead-compact .cm-section-navigation {
  padding-block: 6px;
}

.cm-masthead-row { position: relative; }
.cm-menu-toggle, .cm-menu-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.cm-menu-toggle { position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); }
.cm-menu-toggle svg, .cm-menu-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.cm-site-menu {
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  width: min(420px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0 20px 24px;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper, #fff);
  color: var(--ink, #151515);
}
.cm-site-menu::backdrop { background: #0008; }
body:has(.cm-site-menu[open]) { overflow: hidden; }
.cm-menu-heading {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  border-bottom: 1px solid #ddd;
  background: var(--paper, #fff);
}
.cm-menu-heading form { margin: 0; }
.cm-menu-heading img { width: 148px; height: auto; }
.cm-site-menu .cm-menu-links { display: block; padding: 10px 0; border: 0; }
.cm-menu-links > a, .cm-menu-section > a, .cm-menu-newsletter {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  margin: 0;
  font: inherit;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: start;
  text-transform: uppercase;
}
.cm-menu-newsletter {
  width: 100%;
  border: 0;
  border-block: 2px solid var(--accent, #c5ff00);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
@media (max-width: 620px) {
  .cm-site-menu { width: 100%; }
}
@media (max-width: 389px) {
  .cm-menu-toggle { inset-inline-start: -10px; }
  .cm-masthead-row .masthead .wordmark-image { max-width: calc(100% - 72px); }
}

header.shell .cm-featured-stories {
  flex-wrap: nowrap;
  gap: clamp(18px, 3vw, 40px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
  scrollbar-width: thin;
}
header.shell .cm-featured-stories > a {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.cm-top-stories-label {
  flex: 0 0 auto;
  color: var(--ink, #151515);
  font-weight: 800;
  white-space: nowrap;
}

.cm-menu-section { display: flex; }
.cm-menu-section > a { flex: 1; }
.cm-menu-section-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.cm-menu-section-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.cm-menu-section-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.cm-menu-sublinks { margin: 0; padding: 0 12px 8px 26px; list-style: none; }
.cm-menu-sublinks a { display: block; margin: 0; padding: 10px 0; text-transform: none; }

.cm-menu-account {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #ddd;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}

.cm-menu-account:hover { color: #245b16; }
.cm-menu-account > svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cm-menu-account.cm-signed-in > svg,
.cm-menu-account .cm-account-initials[hidden] { display: none; }

.cm-translation-host { display: flex; justify-content: flex-end; }
.cm-translation-host .cm-header-controls { position: static; }
