/* Work Notes — sitewide blue knowledge-base theme. */
:root {
  --kb-bg: #ffffff;
  --kb-panel: #f7faff;
  --kb-panel-strong: #eef4ff;
  --kb-border: #d8e4f8;
  --kb-border-strong: #b9c9e8;
  --kb-blue: #0d47a1;
  --kb-blue-2: #215bb2;
  --kb-blue-soft: #5c82c4;
  --kb-text: #183153;
  --kb-text-soft: #476288;
  --kb-text-muted: #6d84a5;
  --kb-white: #ffffff;
  --kb-answer-highlight: #ffffcc;
  --kb-answer-highlight-border: #e6d97a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kb-bg);
  color: var(--kb-text);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  padding: 18px 20px 40px;
}

a {
  color: var(--kb-blue);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.site-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.site-main,
.kb-page,
.note-page,
.static-page {
  min-width: 0;
}

.site-header {
  margin: 0 0 22px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  flex-shrink: 0;
}

.site-header-search {
  max-width: 760px;
  min-width: 0;
  flex: 1;
}

.site-title {
  display: inline-block;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--kb-blue);
}

.site-logo-link {
  display: inline-block;
}

.site-logo {
  max-width: 60px;
  height: auto;
  display: block;
}

.site-title:hover { text-decoration: none; }

.site-note-count,
.site-established {
  margin: 4px 0 0;
  color: var(--kb-text-soft);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
}

.site-header-search {
  max-width: 760px;
  min-width: 0;
}

/* Homepage: hide global site header; homepage owns nav/search/title/fact */
.page-kind-home .site-header {
  display: none;
}

/* Homepage layout: one content grid. Left area contains two note columns; right area is sidebar. */
.kb-home { display: block; }

.homepage-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "hero-left hero-right sidebar"
    "notes-col1 notes-col2 sidebar";
  column-gap: 36px;
  row-gap: 18px;
  align-items: start;
}

.homepage-hero-left,
.homepage-hero-right,
.homepage-notes-col1,
.homepage-notes-col2,
.homepage-sidebar { min-width: 0; }

.homepage-hero-right { grid-area: hero-right; }
.homepage-notes-col1 { grid-area: notes-col1; }
.homepage-notes-col2 { grid-area: notes-col2; }
.homepage-sidebar { grid-area: sidebar; }

.homepage-search {
  margin: 0 0 14px;
  max-width: 100%;
}

.homepage-logo {
  max-width: 60px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.homepage-hero-left {
  grid-area: hero-left;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}

.homepage-topic-block {
  margin-top: 0;
}

.topic-label {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--kb-text-soft);
}

.homepage-topic-title {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--kb-blue);
}

.topic-amazon-link {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.topic-amazon-link a {
  color: var(--kb-blue);
  text-decoration: none;
}

.topic-amazon-link a:hover { text-decoration: underline; }

.today-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.today-note-link {
  display: block;
  padding: 8px 4px;
  color: var(--kb-text);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--kb-border);
}

.today-note-link:hover {
  color: var(--kb-blue);
  text-decoration: underline;
}

.featured-fact {
  margin: 0;
  padding: 14px 18px;
  border-left: 4px solid var(--kb-blue);
  background: var(--kb-panel);
}

.fact-heading,
.popular-heading {
  margin: 0 0 8px;
  color: var(--kb-text-soft);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-text {
  margin: 0;
  color: var(--kb-text);
  font-size: 15px;
  line-height: 1.65;
}

.most-popular {
  margin-top: 0;
}

.popular-list {
  margin: 0;
  padding: 0 0 0 1.4em;
}

.popular-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--kb-border);
}

.popular-list li:last-child { border-bottom: none; }

.popular-list a {
  color: var(--kb-text);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
}

.popular-list a:hover {
  color: var(--kb-blue);
  text-decoration: underline;
}

@media (max-width: 880px) {
  .homepage-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero-left"
      "hero-right"
      "notes-col1"
      "notes-col2"
      "sidebar";
    row-gap: 18px;
  }
}

.button-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--kb-border-strong);
  border-radius: 999px;
  background: var(--kb-panel);
  color: var(--kb-blue);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
}

.button-like:hover {
  background: var(--kb-blue);
  color: var(--kb-white);
  text-decoration: none;
}

.page-intro {
  margin: 0 0 28px;
  padding: 24px 28px;
  border: 1px solid var(--kb-border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--kb-white), var(--kb-panel));
}

.page-intro h1,
.note-header h1 {
  margin: 0;
  color: var(--kb-blue);
  font-size: 41px;
  line-height: 1.15;
  font-weight: 800;
}

.page-eyebrow,
.section-kicker,
.seasonal-topic-header .section-kicker {
  margin: 0;
  white-space: nowrap;
}
.note-pager-label,
.home-section h2,
.more-notes h2,
.taxonomy-intro h2 {
  margin: 0 0 8px;
  color: var(--kb-text-muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-description {
  max-width: 72ch;
  margin: 12px 0 0;
  color: var(--kb-text-soft);
  font-size: 17px;
  line-height: 1.65;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

.section-heading h2,
.more-notes h2,

.home-section,
.more-notes,
.amazon-search,
.note-answer,
.taxonomy-index,
.taxonomy-header {
  margin: 0 0 30px;
}

.tag-pill-list,
.taxonomy-directory,
.related-note-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--kb-border);
  background: var(--kb-panel);
  color: var(--kb-blue);
  font-size: 14px;
  font-weight: 700;
}

.tag-pill-list li a {
  color: inherit;
}

.tag-pill-list li span {
  color: var(--kb-text-soft);
  font-size: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--kb-text-muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--kb-text-soft);
}

.note-page,
.static-page,
.taxonomy-page,
.generic-list-page {
  margin: 0 0 20px;
}

.note-header {
  margin: 0 0 24px;
}

.note-meta-row,
.kb-report-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--kb-blue);
  color: var(--kb-white);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.meta-pill:hover {
  color: var(--kb-white);
  text-decoration: none;
}

.meta-pill-light {
  background: var(--kb-panel);
  border: 1px solid var(--kb-border);
  color: var(--kb-blue);
}

.meta-pill-tag {
  background: var(--kb-panel);
  border: 1px solid var(--kb-border-strong);
  color: var(--kb-blue);
}

.meta-pill-tag:hover {
  background: var(--kb-blue);
  color: var(--kb-white);
}

.note-answer {
  margin: 0 0 30px;
  padding: 24px 36px;
  border: none;
  border-left: 6px solid var(--kb-blue);
  background: var(--kb-white);
}

.answer-body {
  max-width: 44em;
  color: var(--kb-text);
  font-size: 20px;
  line-height: 1.8;
}

.answer-body p,
.answer-body ul,
.answer-body ol,
.answer-body blockquote {
  margin: 0 0 1.1em;
}

.answer-body p:last-child { margin-bottom: 0; }
.answer-body ul,
.answer-body ol { padding-left: 1.3em; }
.answer-body li { margin-bottom: 0.45em; }
.answer-body strong { color: var(--kb-blue); }
.answer-body hr {
  border: 0;
  border-top: 1px solid var(--kb-border);
  margin: 28px 0;
}

.note-list {
  display: grid;
  gap: 12px;
}

.kb-report-row {
  padding: 16px 18px;
  border: 1px solid var(--kb-border);
  border-radius: 14px;
  background: var(--kb-white);
}

.kb-report-question {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.kb-report-question a {
  color: var(--kb-text);
}

.kb-report-meta-row {
  margin: 12px 0 0;
}

.more-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  
}

.more-notes-column {
  min-width: 0;
}

.more-notes-column h2 {
  margin: 0 0 12px;
}

.related-note-list {
  display: grid;
  gap: 12px;
}

.related-note-list li {
  padding: 14px 16px;
  border: 1px solid var(--kb-border);
  border-radius: 12px;
  background: var(--kb-white);
}

.related-note-list a {
  color: var(--kb-text);
  font-weight: 600;
}

.amazon-search {
  margin: 0 0 30px;
}

.amazon-search form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.amazon-search input {
  flex: 1 1 300px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--kb-border-strong);
  border-radius: 10px;
  background: var(--kb-white);
  color: var(--kb-text);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
}

.amazon-search button {
  padding: 12px 16px;
  border: 1px solid var(--kb-blue);
  border-radius: 10px;
  background: var(--kb-blue);
  color: var(--kb-white);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.amazon-disclaimer-inline {
  width: 100%;
  margin: 6px 0 0;
  color: var(--kb-text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.note-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--kb-border);
}

.note-pager-item {
  padding: 16px;
  border: 1px solid var(--kb-border);
  border-radius: 14px;
  background: var(--kb-panel);
  min-width: 0;
}

.note-pager-next { text-align: right; }

.note-pager-label {
  display: block;
  margin-bottom: 8px;
}

.note-pager a {
  color: var(--kb-text);
  font-weight: 700;
}

.note-pager-empty,
.kb-pagination-empty,
.kb-page-info {
  color: var(--kb-text-muted);
}

.kb-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--kb-border);
  border-radius: 16px;
  background: var(--kb-panel);
  font-size: 14px;
  font-weight: 700;
}

.kb-pagination a {
  color: var(--kb-blue);
}

.taxonomy-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.taxonomy-directory li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--kb-border);
  border-radius: 12px;
  background: var(--kb-white);
}

.taxonomy-directory span {
  color: var(--kb-text-soft);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  margin: 42px 0 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--kb-blue);
}

.site-footer-inner {
  display: grid;
  gap: 10px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.site-footer a {
  color: var(--kb-white);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 700;
}

.site-footer a:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

.site-footer-disclaimer {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

@media (max-width: 880px) {
  

  .page-intro h1,
  .note-header h1 { font-size: 34px; }
}

@media (max-width: 700px) {
  body {
    padding: 8px 14px 28px;
    font-size: 16px;
  }

  .site-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .site-header-search { max-width: none; width: 100%; }
  .today-note-grid { grid-template-columns: 1fr; }

  .site-title { font-size: 22px; }

  .page-intro,
  .amazon-search,
  .site-footer,
  .kb-pagination,
  .kb-report-row,
  .note-pager-item { padding: 16px; }

  .note-answer {
    padding: 18px 16px;
    border-left-width: 3px;
  }

  .breadcrumb { font-size: 13px; line-height: 1.4; margin-bottom: 8px; }
  .note-meta-row { margin-bottom: 4px; }
  .note-header h1 { margin: 0 0 8px; }
  .note-header { margin-bottom: 12px; }
  .note-meta-row { margin-bottom: 4px!important; }
  .page-intro h1,
  .note-header h1 {
    font-size: 30px;
  }

  

  .section-heading {
    align-items: flex-start;
  }

  .note-pager-next {
    text-align: left;
  }

  .kb-pagination {
    flex-wrap: wrap;
  }

  .answer-body {
    font-size: 18px;
    line-height: 1.75;
  }
}

/* ── Homepage: Today's Topic ──────────────────────────────────── */

.today-note-link {
  display: block;
  padding: 8px 4px;
  color: var(--kb-text);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--kb-border);
}

.today-note-link:hover {
  color: var(--kb-blue);
  text-decoration: underline;
}
