/* MoCo Monitor site additions — correction strip + about page
   Loads after tokens.css + web.css. */

/* Correction strip above the footer */
.correction-strip {
  background: var(--warning-soft);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  font-size: 13px;
  color: var(--warning-soft-fg);
}
.correction-strip strong { color: var(--warning-strong); }
.correction-strip a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.correction-strip a:hover { color: var(--primary-700); }

/* About page */
.about-page { padding: 48px 0 64px; }
.about-page .wrap { max-width: 760px; }
.about-hero { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.about-hero h1 {
  font-size: 36px; font-weight: 800; letter-spacing: -0.025em;
  margin: 0 0 12px; color: var(--fg-1);
}
.about-hero .lead { font-size: 17px; line-height: 1.55; color: var(--fg-2); margin: 0; }

.about-page h2 {
  font-size: 20px; font-weight: 800; letter-spacing: -0.015em;
  margin: 40px 0 12px; color: var(--fg-1);
}
.about-page p { font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0 0 12px; }
.about-page ul, .about-page ol { font-size: 15px; line-height: 1.7; color: var(--fg-2); padding-left: 22px; margin: 0 0 12px; }
.about-page li { margin-bottom: 6px; }
.about-page strong { color: var(--fg-1); }
.about-page a { color: var(--primary); font-weight: 500; }
.about-page a:hover { text-decoration: underline; }

.about-disclosure {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 24px 0 8px;
}
.about-disclosure h2 { margin-top: 0; color: var(--primary-900); }

.about-pipeline .note {
  font-size: 13px; color: var(--fg-3); font-style: italic;
  padding: 12px 16px; background: var(--bg-subtle); border-left: 3px solid var(--border-strong);
  border-radius: 0 8px 8px 0; margin-top: 16px;
}

.about-corrections {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.faq { padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.faq:last-child { border-bottom: 0; }
.faq h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--fg-1); }
.faq p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-2); }

/* Item attribution */
.imeta-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--fg-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.imeta-sub strong { color: var(--fg-2); font-weight: 600; }

.attribution {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  padding: 12px 14px;
  margin: 12px 0 20px;
  background: var(--bg-subtle);
  border-left: 3px solid var(--primary-200);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
}
.attribution .attr-row { display: contents; }
.attribution .attr-k { color: var(--fg-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; padding-top: 2px; }
.attribution .attr-v { color: var(--fg-1); }

/* Hamburger + drawer (desktop: hidden) */
.mast-burger, .mast-drawer, .mast-drawer-scrim { display: none; }
.mast-burger {
  background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--fg-1); margin-right: 4px;
}

.mast-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(320px, 85vw); background: var(--bg); z-index: 1001;
  transform: translateX(-100%); transition: transform .22s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,.12); overflow-y: auto;
}
.mast-drawer-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
body.drawer-open .mast-drawer { transform: translateX(0); }
body.drawer-open .mast-drawer-scrim { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.drawer-head strong { font-size: 17px; font-weight: 800; color: var(--fg-1); }
.drawer-close {
  background: none; border: 0; cursor: pointer; padding: 6px;
  color: var(--fg-2); display: flex; align-items: center;
}
.drawer-search { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.drawer-search input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; background: var(--bg-subtle);
}
.drawer-nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer-nav a {
  padding: 12px 20px; font-size: 15px; font-weight: 600;
  color: var(--fg-1); text-decoration: none; border-left: 3px solid transparent;
}
.drawer-nav a:hover, .drawer-nav a:active { background: var(--bg-subtle); border-left-color: var(--primary); }
.drawer-nav hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 8px 20px; }
.drawer-nav .drawer-cta {
  margin: 8px 20px; padding: 10px 16px; background: var(--primary); color: #fff;
  text-align: center; border-radius: 8px; border-left: 0;
}
.drawer-nav .drawer-cta:hover { background: var(--primary-700); border-left: 0; }

/* Mobile polish (<900px) */
@media (max-width: 900px) {
  .mast-burger { display: inline-flex; align-items: center; }
  .mast-drawer, .mast-drawer-scrim { display: block; }
  .topnav, .mast-right, .mast-search { display: none; }
  .masthead .wrap {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px;
  }
  .mast-burger { grid-column: 1; justify-self: start; margin: 0; padding: 4px; }
  .mast-brand { grid-column: 2; justify-self: center; flex: none; }

  .search-result-header { flex-direction: column; align-items: stretch !important; }
  .search-result-header #rheader-text { font-size: 14px; }
  .search-result-header label { justify-content: flex-end; }

  .hero { padding: 32px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 28px; line-height: 1.2; }
  .hero .lead { font-size: 15px; }
  .hero-ctas { flex-wrap: wrap; gap: 8px; }
  .hero-ctas .btn { flex: 1 1 auto; min-height: 44px; }
  .phone-mock { display: none; }

  .cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { padding: 14px; min-height: auto; }

  .filter-bar .wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; white-space: nowrap; }
  .filter-chip { flex-shrink: 0; min-height: 36px; }

  .search-results .wrap { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .search-aside { display: none; }
  .search-main { min-width: 0; }
  .search-item { min-width: 0; }
  .search-item h3, .search-item .highlight, .search-item .smeta {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .search-item .smeta { flex-wrap: wrap; }
  .search-page-bar .wrap { padding-left: 16px; padding-right: 16px; }
  .search-page-input { max-width: 100%; }
  .search-page-input input { min-width: 0; flex: 1; }
  #sort { max-width: 140px; }

  .index-item { grid-template-columns: 1fr; gap: 6px; }
  .index-item > div { min-width: 0; overflow-wrap: anywhere; }
  .index-item h3, .index-item .snippet, .index-item .imeta, .index-item .imeta-sub {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .index-item .imeta { flex-wrap: wrap; }
  .index-item .imeta-sub { white-space: normal; }
  .index-item .rside { justify-self: start; font-size: 12px; color: var(--fg-3); }

  .index-list .wrap { padding-left: 16px; padding-right: 16px; }

  .page-header h1 { font-size: 22px; }
  .about-hero h1 { font-size: 26px; }
}

@media (max-width: 560px) {
  .cats-grid { grid-template-columns: 1fr; }
}
