/* LWYA Content Review — brand tokens from the October 2024 style guide plus
   the August 2026 evolution notes: white space and scale, magenta anchor,
   one category color per piece, Didone display type. Digital stand-ins:
   Bodoni Moda for Ruttan, Montserrat for Gotham. */

:root {
  --cream: #f7f2ee;
  --cream-deep: #f2eae6;
  --ink: #241d20;
  --ink-soft: #6b5f65;
  --magenta: #d41870;
  --magenta-deep: #a91259;
  --orange: #ff5200;
  --gold: #ffc758;
  --purple: #480e67;
  --chartreuse: #b0b432;
  --teal: #39c1cd;
  --white: #ffffff;
  --serif: 'Bodoni Moda', 'Bodoni MT', Didot, Georgia, serif;
  --sans: 'Montserrat', -apple-system, Helvetica, sans-serif;
  --shadow: 0 2px 16px rgba(36, 29, 32, 0.08);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

h1, h2, h3 { font-family: var(--serif); }

/* ---------- Gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  background: var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.gate-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  text-align: center;
}
.gate-logo {
  width: 210px;
  max-width: 75%;
  height: auto;
  mix-blend-mode: multiply; /* logo file is magenta on white; this hides the white box */
}
.gate-card h1 {
  font-size: 21px;
  margin: 8px 0 10px;
  letter-spacing: 0.02em;
}
.gate-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.gate-card form { text-align: left; }
.gate-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--magenta-deep);
  margin: 14px 0 5px;
}
.gate-card input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e8d9d2;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
}
.gate-card input:focus { outline: 2px solid var(--magenta); border-color: var(--magenta); }
.gate-card button {
  width: 100%;
  margin-top: 24px;
  padding: 13px;
  background: var(--magenta);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.gate-card button:hover { background: var(--magenta-deep); }
.gate-card button:disabled { opacity: 0.6; cursor: wait; }
.gate-error { color: #b3373c; font-size: 13px; margin-top: 12px; text-align: center; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #efe4de;
  z-index: 50;
}
.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  /* Wordmark-only crop of the lockup: the source is 570×247 with the
     "L.W.Y.A" letters in roughly the top 150px. */
  display: inline-block;
  width: 107px;
  height: 28px;
  background: url('lwya-logo.jpg') top center / 100% auto no-repeat;
  mix-blend-mode: multiply;
}
.brand-divider { width: 1px; height: 18px; background: #e0cfc8; align-self: center; }
.brand-page {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--cream-deep);
  border-radius: 999px;
  padding: 4px;
  margin-left: auto;
}
.tab {
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 7px 20px;
  border-radius: 999px;
  cursor: pointer;
}
.tab.active { background: var(--magenta); color: var(--white); }
.whoami { font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.refresh-btn {
  border: 1.5px solid #e8d9d2;
  background: var(--white);
  color: var(--magenta);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.refresh-btn:hover { border-color: var(--magenta); }
.refresh-btn:disabled { opacity: 0.6; cursor: wait; }
.whoami button {
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--magenta);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Filters ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 24px 20px 80px; }

.filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-row-dates .filter-pill { font-size: 12px; padding: 4px 13px; }
.filter-row-dates .filter-pill.active { background: var(--magenta); border-color: var(--magenta); color: var(--white); }
.filter-pill {
  border: 1.5px solid #e8d9d2;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--magenta); color: var(--magenta); }
.filter-pill.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter-pill.review-pill.active { background: var(--magenta); border-color: var(--magenta); }
.filter-count {
  display: inline-block;
  background: var(--magenta);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 0 7px;
  margin-left: 6px;
}
.filter-pill.active .filter-count { background: var(--white); color: var(--magenta); }

/* ---------- Status chips ---------- */
.chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-status-concept { background: #ece7e9; color: #6b5f65; }
.chip-status-working { background: #fbe3dc; color: #a04a1f; }
.chip-status-review { background: #fde3f0; color: var(--magenta-deep); }
.chip-status-edits { background: #fbd9d7; color: #a3282f; }
.chip-status-film { background: #fdeec9; color: #8a6414; }
.chip-status-ready { background: #dcebfd; color: #2c5583; }
.chip-status-scheduled { background: #dcefe7; color: #2c6e51; }
.chip-status-published { background: #d9eedd; color: #2c6e3f; }

/* ---------- Channel tags ---------- */
.channel-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--white);
  white-space: nowrap;
}
.ch-instagram { background: var(--magenta); }
.ch-stories { background: var(--orange); }
.ch-email { background: var(--purple); }
.ch-sms { background: var(--teal); }
.ch-site-banner { background: #c99b17; }
.ch-landing-page { background: var(--chartreuse); }
.ch-other { background: var(--ink-soft); }

.post-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.post-avatar.big { width: 76px; height: 76px; font-size: 30px; }

/* ---------- Feed grid ---------- */
.feed-profile {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 2px 4px 22px;
}
.feed-logo { height: 68px; width: auto; mix-blend-mode: multiply; }
.feed-profile-meta { font-size: 13.5px; color: var(--ink-soft); }

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.feed-tile {
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  background: var(--cream-deep);
  overflow: hidden;
  border-radius: 4px;
  font-family: var(--sans);
}
.feed-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* never crop the graphic */
  display: block;
}
.tile-text {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  text-align: left;
  padding: 16px;
}
.tile-text .channel-tag { position: static; }
.tile-text-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.tile-text-date { font-size: 12px; color: var(--ink-soft); }
.tile-channel { position: absolute; top: 8px; left: 8px; }
.tile-dot {
  position: absolute;
  top: 9px;
  right: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  padding: 0;
}
.dot-concept { background: #b0a6ab; }
.dot-working { background: #e0794b; }
.dot-review { background: var(--magenta); }
.dot-edits { background: #d3403a; }
.dot-film { background: #e8a817; }
.dot-ready { background: #3f76b6; }
.dot-scheduled { background: #3e9e77; }
.dot-published { background: #2c8a44; }
.tile-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(36, 29, 32, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.tile-play svg { width: 18px; height: 18px; margin-left: 3px; }
.tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(212, 24, 112, 0.5);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s;
}
.tile-overlay svg { width: 20px; height: 20px; }
.feed-tile:hover .tile-overlay,
.feed-tile:focus-visible .tile-overlay { opacity: 1; }
.tile-verdict {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.tile-verdict.verdict-approved { background: #3d9e58; }
.tile-verdict.verdict-edits { background: #e8a817; }
.feed-empty { padding: 40px 4px; color: var(--ink-soft); font-size: 14px; }

/* ---------- Post modal ---------- */
.post-modal {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 430px);
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,0.35);
  max-height: 88vh;
}
.post-media {
  background: #1c1517;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.post-media img,
.post-media video {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain; /* full graphic, never cropped */
  display: block;
}
.post-media-text {
  background: var(--cream);
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: 40px;
}
.post-media-text h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}
.post-media-text p { font-size: 13px; color: var(--ink-soft); }
.post-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: 88vh;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid #f2e7e1;
}
.post-head-text { min-width: 0; flex: 1; }
.post-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.post-subline {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 120px;
}
.post-comment {
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.post-comment-name { font-weight: 600; margin-right: 4px; white-space: nowrap; }
.post-comment-time { font-size: 11.5px; color: #a58e99; margin-top: 2px; white-space: nowrap; }
.post-caption { padding-bottom: 16px; border-bottom: 1px solid #f2e7e1; margin-bottom: 16px; }
.post-notes {
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.post-notes-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.no-comments { font-size: 13px; color: #a58e99; font-style: italic; }
.post-approve {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid #f2e7e1;
  background: #fcf8f6;
}
.btn-verdict {
  border: 1.5px solid #e8d9d2;
  background: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
}
.btn-approve.active,
.btn-approve:hover { background: #d9eedd; border-color: #3d9e58; color: #2c6e3f; }
.btn-edits.active,
.btn-edits:hover { background: #fdeec9; border-color: #e8a817; color: #8a6414; }
.btn-verdict:disabled { opacity: 0.6; cursor: wait; }
.verdict-state { font-size: 12px; width: 100%; }
.verdict-state.verdict-approved { color: #2c6e3f; }
.verdict-state.verdict-edits { color: #8a6414; }

.post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid #f2e7e1;
}
.post-icons { display: flex; gap: 12px; color: var(--ink); }
.post-icons svg { width: 23px; height: 23px; }
.copy-caption {
  margin-left: auto;
  border: 1px solid #e8d9d2;
  background: var(--white);
  color: var(--magenta);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.copy-caption:hover { border-color: var(--magenta); }

.comment-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 10px 16px 14px;
  border-top: 1px solid #f2e7e1;
}
.comment-form textarea {
  flex: 1;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  padding: 9px 14px;
  border: 1.5px solid #e8d9d2;
  border-radius: 20px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
}
.comment-form textarea:focus { outline: 2px solid var(--magenta); border-color: var(--magenta); }
.comment-form button {
  border: none;
  background: none;
  color: var(--magenta);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 6px;
  cursor: pointer;
}
.comment-form button:hover { color: var(--magenta-deep); }
.comment-form button:disabled { opacity: 0.5; cursor: wait; }

/* ---------- Calendar ---------- */
.cal-month { margin-bottom: 44px; }
.cal-month h2 { font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-dow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-align: center;
  padding-bottom: 4px;
}
.cal-cell {
  background: var(--white);
  border-radius: 10px;
  min-height: 96px;
  padding: 6px;
  border: 1px solid #f0e3dc;
}
.cal-cell.empty { background: transparent; border-color: transparent; }
.cal-daynum { font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-bottom: 4px; }
.cal-cell.has-posts { border-color: var(--magenta); }
.cal-post {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: none;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 4px;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
}
.cal-post:hover { background: var(--cream-deep); }
.cal-post img {
  width: 30px;
  height: 37px;
  object-fit: contain;
  background: var(--cream-deep);
  border-radius: 5px;
  flex-shrink: 0;
}
.cal-post-swatch {
  width: 8px;
  align-self: stretch;
  min-height: 26px;
  border-radius: 4px;
  flex-shrink: 0;
}
.cal-post-title { font-size: 11px; line-height: 1.3; color: var(--ink); overflow: hidden; }
.cal-post-comments { font-size: 10px; color: var(--magenta); }

/* ---------- Active Projects ---------- */
.projects-intro {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 22px;
}
.project-card {
  background: var(--white);
  border: 1px solid #f0e3dc;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.project-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.project-head h2 {
  font-size: 21px;
  font-weight: 600;
  flex: 1;
  min-width: 200px;
}
.project-due { font-size: 12.5px; color: var(--magenta-deep); font-weight: 600; margin-top: 2px; }
.project-desc { font-size: 14px; margin-top: 8px; color: var(--ink); max-width: 720px; }
.project-subs { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.project-sub {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--cream);
  border-radius: 9px;
  padding: 10px 12px;
}
.project-sub .chip { margin-top: 2px; flex-shrink: 0; }
.project-sub-text { display: flex; flex-direction: column; gap: 2px; }
.project-sub-name { font-size: 13.5px; font-weight: 600; }
.project-sub-desc { font-size: 12.5px; color: var(--ink-soft); }
.pchip.pstatus-todo { background: #ece7e9; color: #6b5f65; }
.pchip.pstatus-working { background: #fbe3dc; color: #a04a1f; }
.pchip.pstatus-review { background: #dcebfd; color: #2c5583; }
.pchip.pstatus-revisions { background: #fbd9d7; color: #a3282f; }
.pchip.pstatus-readyclient { background: #fde3f0; color: var(--magenta-deep); }
.pchip.pstatus-withclient { background: #e7e2f5; color: #4a3d85; }
.pchip.pstatus-approved { background: #d9eedd; color: #2c6e3f; }
.pchip.pstatus-complete { background: #d9eedd; color: #2c6e3f; }

.project-open { cursor: pointer; }
.project-open-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--magenta);
  white-space: nowrap;
}
.project-head.project-open:hover h2 { color: var(--magenta-deep); }
.project-sub.project-open:hover { background: var(--cream-deep); }

.project-detail {
  background: var(--white);
  border-radius: 12px;
  padding: 26px 28px;
  max-width: 640px;
  margin: 0 auto;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 16px 60px rgba(0,0,0,0.35);
}
.project-detail h2 { font-size: 22px; font-weight: 600; }
.project-detail h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}
.project-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
  background: var(--cream);
  border-radius: 9px;
  padding: 10px 12px;
}
.project-status-row label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.project-status-row select {
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 7px 10px;
  border: 1.5px solid #e8d9d2;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.project-files { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.project-files a { color: var(--magenta); font-size: 14px; text-decoration: underline; }
.project-comments { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.project-detail .comment-form { padding: 10px 0 0; border-top: 1px solid #f2e7e1; }

/* ---------- Reports ---------- */
.report-head h2 { font-size: 26px; font-weight: 600; }
.report-sub { font-size: 13.5px; color: var(--ink-soft); margin: 4px 0 20px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat-tile {
  background: var(--white);
  border: 1px solid #f0e3dc;
  border-radius: 12px;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow);
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.stat-value { font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--ink); }
.delta { font-size: 12px; font-weight: 600; }
.delta-good { color: #2c6e3f; }
.delta-bad { color: #a3282f; }
.spark { width: 120px; height: 34px; margin-top: 6px; }
.report-note {
  font-size: 14px;
  color: var(--ink);
  margin: 2px 2px 20px;
  max-width: 720px;
  line-height: 1.6;
}
.report-note::before {
  content: 'This week';
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--magenta-deep);
  margin-right: 10px;
}
.report-block {
  background: var(--white);
  border: 1px solid #f0e3dc;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.report-block h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.report-line { font-size: 14px; margin-bottom: 8px; }
.report-mini { list-style: none; font-size: 13px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 3px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.report-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid #f0e3dc;
}
.report-table td { padding: 7px 10px 7px 0; border-bottom: 1px solid #f7ede7; }
.table-scroll { overflow-x: auto; }
.report-insights { background: var(--white); }

.findings { max-width: 860px; margin: 0 auto; }
.finding-card {
  background: var(--white);
  border: 1px solid #f0e3dc;
  border-radius: 12px;
  padding: 22px 26px 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.finding-area {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f2e7e1;
  margin-bottom: 4px;
}
.finding-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.finding-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #f7ede7;
}
.finding-card .finding-row:last-child { border-bottom: none; }
.finding-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--magenta-deep);
  padding-top: 3px;
}
.finding-text { font-size: 14px; line-height: 1.65; max-width: 60ch; }

@media (max-width: 640px) {
  .finding-row { grid-template-columns: 1fr; gap: 4px; }
  .finding-card { padding: 18px 18px 6px; }
}
.insight-list { list-style: none; display: flex; flex-direction: column; }
.insight-row {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 16px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid #f7ede7;
}
.insight-list .insight-row:last-child { border-bottom: none; }
.insight-tag {
  background: #fde3f0;
  color: var(--magenta-deep);
  width: 100%;
  text-align: center;
  margin-top: 2px;
}
.insight-text { font-size: 13.5px; line-height: 1.6; max-width: 68ch; }

.nav-group { position: relative; display: inline-block; }
.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid #f0e3dc;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(36,29,32,0.14);
  padding: 6px;
  min-width: 170px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item {
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 13.5px;
  text-align: left;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.nav-item:hover { background: var(--cream); }
.nav-item.active { background: var(--magenta); color: var(--white); }


.subscribe-form { display: flex; gap: 10px; margin: 8px 0 6px; flex-wrap: wrap; }
.subscribe-form input {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1.5px solid #e8d9d2;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
}
.subscribe-form input:focus { outline: 2px solid var(--magenta); border-color: var(--magenta); }
.subscribe-form button {
  border: none;
  background: var(--magenta);
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
}
.subscribe-form button:hover { background: var(--magenta-deep); }

.kpi-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.kpi-row {
  display: grid;
  grid-template-columns: 200px 1fr auto 110px;
  gap: 14px;
  align-items: center;
  background: var(--cream);
  border-radius: 9px;
  padding: 10px 14px;
}
.kpi-name { font-size: 13.5px; font-weight: 600; }
.kpi-current { font-size: 13px; }
.kpi-target { font-size: 12.5px; color: var(--ink-soft); text-align: right; }
.kpi-row .chip { justify-self: end; text-align: center; }
@media (max-width: 700px) {
  .kpi-row { grid-template-columns: 1fr auto; }
  .kpi-current { grid-column: 1 / -1; }
  .kpi-target { grid-column: 1 / -1; text-align: left; }
}
.pchip.kpi-on { background: #d9eedd; color: #2c6e3f; }
.pchip.kpi-behind { background: #fbd9d7; color: #a3282f; }
.pchip.kpi-watch { background: #fdeec9; color: #8a6414; }

/* ---------- Modal shell ---------- */
.modal { position: fixed; inset: 0; z-index: 80; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24, 12, 18, 0.75); }
.modal-panel {
  position: relative;
  max-width: 1080px;
  margin: 6vh auto;
  padding: 0 52px 0 16px;
}
.modal-close {
  position: absolute;
  top: -2px;
  right: 8px;
  border: none;
  background: transparent;
  color: var(--white);
  width: 36px;
  height: 36px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  font-size: 12.5px;
  color: #a58e99;
  padding: 30px 20px 44px;
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .topbar-inner { gap: 10px; }
  .view-toggle { order: 3; margin-left: 0; width: 100%; justify-content: center; }
  .whoami { margin-left: auto; }

  .feed-profile { gap: 14px; flex-wrap: wrap; }
  .feed-logo { height: 52px; }
  .feed-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .tile-text-title { font-size: 14px; }

  .modal-panel { margin: 0; padding: 0; height: 100%; }
  .modal-close {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 90;
    background: rgba(24, 12, 18, 0.6);
    border-radius: 50%;
    font-size: 24px;
  }
  .post-modal {
    grid-template-columns: 1fr;
    max-height: none;
    height: 100%;
    border-radius: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .post-media img,
  .post-media video { max-height: 60vh; }
  .post-side { max-height: none; }
  .post-scroll { min-height: 0; flex: 1; }

  .cal-cell { min-height: 64px; padding: 4px; }
  .cal-post-title { display: none; }
  .cal-post img { width: 100%; height: auto; }
  .cal-post-swatch { width: 100%; min-height: 8px; }
}
