:root {
  --orange: #f57c00;
  --orange-strong: #dc6f00;
  --orange-soft: #ffd9a7;
  --black: #121212;
  --ink: #1d1d1d;
  --paper: #f8f3ec;
  --card: #ffffff;
  --line: #e7d9c9;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 124, 0, 0.22), transparent 35%),
    radial-gradient(circle at 100% 10%, rgba(255, 180, 96, 0.2), transparent 28%),
    linear-gradient(180deg, #fff 0, #fff 120px, var(--paper) 120px, var(--paper) 100%);
}

body.locked {
  overflow: hidden;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(145deg, rgba(8, 8, 8, 0.9), rgba(16, 16, 16, 0.88));
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-card {
  width: min(440px, 96vw);
  background: linear-gradient(160deg, #ffffff 0%, #fff6ea 100%);
  border: 1px solid #d8b188;
  border-top: 5px solid var(--orange);
  border-radius: 16px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.28);
  padding: 1.25rem 1.2rem 1.1rem;
}

.login-card img {
  width: 108px;
  height: auto;
  display: block;
  margin-bottom: 0.65rem;
}

.login-card h1 {
  margin: 0 0 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
}

.login-card p {
  margin: 0 0 0.75rem;
  color: #343434;
}

.login-form label {
  display: grid;
  gap: 0.3rem;
}

.login-form span {
  font-weight: 700;
  color: #2a2a2a;
}

.login-form input {
  width: 100%;
  border: 1px solid #d8b188;
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  font-size: 1rem;
  font-family: inherit;
}

.login-form input:focus {
  outline: 2px solid rgba(245, 124, 0, 0.32);
  border-color: var(--orange);
}

.login-button {
  margin-top: 0.78rem;
  width: 100%;
  border: 1px solid #8f4700;
  border-radius: 999px;
  background: var(--orange);
  color: #141414;
  font-weight: 800;
  font-family: inherit;
  padding: 0.56rem 0.85rem;
  cursor: pointer;
}

.login-error {
  min-height: 1.05rem;
  margin: 0.52rem 0 0;
  color: #a12900;
  font-weight: 700;
}

a { color: #9a4b00; }

.doc-link {
  color: #9a4b00;
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 18, 18, 0.96);
  border-bottom: 3px solid var(--orange);
  backdrop-filter: blur(6px);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.brand h1 {
  margin: 0;
  color: #fff;
  font-family: "Sora", sans-serif;
  letter-spacing: 0.02em;
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-transform: uppercase;
}

.brand p {
  margin: 0.15rem 0 0;
  color: #f0f0f0;
  font-size: 0.92rem;
}

.top-actions a {
  display: inline-block;
  background: var(--orange);
  color: #121212;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  border: 1px solid #8f4700;
}

.intro,
.cover-intro {
  margin: 1rem 0;
  background:
    linear-gradient(120deg, #ffffff 0%, #fff4e5 62%, #ffe8c8 100%);
  border: 1px solid #e5c59d;
  border-left: 8px solid var(--orange);
  border-radius: 18px;
  color: var(--black);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}

.intro p,
.cover-intro p {
  margin: 0;
  color: #2a2a2a;
  line-height: 1.65;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 600;
}

.tab-nav {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #0f0f0f;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.tab-btn {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: #111;
  color: #fff;
  padding: 0.65rem 0.35rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.74rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab-btn:last-child { border-right: 0; }

.tab-btn:hover {
  background: #1f1f1f;
}

.tab-btn.active {
  background: var(--orange);
  color: #111;
}

.nav-section {
  margin: 0 0 1.1rem;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.section-hero {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid #decfbf;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  min-height: 0;
  box-shadow: var(--shadow);
}

.section-hero.member-hero {
  margin-top: 0.2rem;
}

.section-hero-copy {
  padding: 0.72rem 0.95rem;
}

.section-hero .kicker {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #8f4800;
  font-weight: 700;
}

.section-hero h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.1;
  font-size: clamp(1.3rem, 2.4vw, 1.95rem);
}

.section-hero img {
  width: 100%;
  height: clamp(135px, 11vw, 200px);
  object-fit: cover;
}

.section-hero .hero-filler {
  width: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at 24% 20%, rgba(245, 124, 0, 0.3), rgba(245, 124, 0, 0) 55%),
    linear-gradient(140deg, #fff8ed 0%, #ffe9ca 100%);
}

.text-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  margin-top: 0.85rem;
  box-shadow: var(--shadow);
}

.text-card.overview-card {
  background: linear-gradient(145deg, #fff8ee 0%, #fff 100%);
}

.text-card.context-card {
  background: linear-gradient(145deg, #fff4e3 0%, #fff 100%);
  border-left-color: var(--orange-strong);
}

.text-card.outlook-card {
  background: linear-gradient(145deg, #fff2df 0%, #fff 100%);
}

.text-card.analysis-side {
  background: linear-gradient(145deg, #fff8ee 0%, #fff 100%);
  border-left-color: var(--orange);
  color: var(--ink);
}

.text-card.analysis-side a { color: #9a4b00; }

.block-head {
  margin: 0.35rem 0 0.46rem;
  display: inline-block;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  background: #fff1de;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 0.2rem 0.52rem;
  color: var(--orange-strong);
}

.analysis-side .block-head {
  background: #fff1de;
  border-left-color: var(--orange);
}

.text-card p {
  margin: 0 0 0.55rem;
  line-height: 1.62;
  font-size: clamp(1.01rem, 1.17vw, 1.14rem);
  text-wrap: pretty;
  max-width: none;
  orphans: 3;
  widows: 3;
}

.text-card p:last-child { margin-bottom: 0; }

.reading-line {
  background: transparent;
  border: 0;
  border-left: 3px solid rgba(245, 124, 0, 0.3);
  border-radius: 0;
  padding: 0.12rem 0 0.12rem 0.6rem;
  margin-bottom: 0.62rem;
}

.text-card .reading-line:nth-of-type(odd) {
  background: transparent;
}

.analysis-side .reading-line {
  background: transparent;
  border-left-color: rgba(245, 124, 0, 0.35);
}

.text-card .numbered {
  border-left: 3px solid rgba(245, 124, 0, 0.55);
  padding-left: 0.5rem;
}

.num-mark {
  color: var(--orange-strong);
  font-weight: 800;
  margin-right: 0.12rem;
}

.orange-emph {
  color: var(--orange-strong);
  font-weight: 800;
}

.takeaways {
  margin: 0.2rem 0 0.6rem;
  padding-left: 1.1rem;
}

.takeaways li {
  margin: 0 0 0.4rem;
  line-height: 1.58;
}

.body-bullets {
  margin: 0.15rem 0 0.7rem;
  padding-left: 1.45rem;
}

.body-bullets li {
  margin: 0 0 0.26rem;
  line-height: 1.58;
  font-size: clamp(1rem, 1.12vw, 1.1rem);
}

.inline-photo {
  margin: 1.15rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d9c9b7;
  box-shadow: var(--shadow);
}

.inline-photo img {
  width: 100%;
  height: clamp(190px, 24vw, 280px);
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.inline-photo:hover img {
  transform: scale(1.02);
  filter: saturate(1.06);
}

.inline-photo.vertical-photo img {
  height: clamp(260px, 33vw, 430px);
  object-position: center;
}

.inline-photo.visual-filler {
  border: 1px solid #dcc2a0;
  background:
    radial-gradient(circle at 22% 22%, rgba(245, 124, 0, 0.26), rgba(245, 124, 0, 0) 58%),
    radial-gradient(circle at 78% 78%, rgba(255, 171, 91, 0.34), rgba(255, 171, 91, 0) 60%),
    linear-gradient(160deg, #fff9ef 0%, #ffefd8 100%);
}

.inline-photo.visual-filler span {
  display: block;
  width: 100%;
  height: clamp(190px, 24vw, 280px);
}

.inline-photo.visual-filler.vertical-photo span {
  height: clamp(260px, 33vw, 430px);
}

.inline-photo.section-break-photo {
  margin: 1.35rem 0;
}

.inline-photo.section-photo-top {
  margin-top: 1rem;
}

.inline-photo.section-photo-mid,
.inline-photo.section-photo-end,
.inline-photo.quarter-flow-photo {
  margin-top: 1.45rem;
}

.calendar-media {
  margin: 0.86rem 0 1.1rem;
}

.calendar-media img {
  height: clamp(210px, 26vw, 320px);
}

.pdf-only-photo {
  display: block;
}

.pdf-only-photo img {
  height: clamp(230px, 27vw, 350px);
}

.inline-photo.page-anchor-3 img {
  height: clamp(240px, 29vw, 360px);
}

.inline-photo.page-anchor-5 img,
.inline-photo.quarter-prebreak-fill img {
  height: clamp(250px, 30vw, 390px);
}

.inline-photo.member-closing-photo img,
.inline-photo.member-closing-photo-alt img {
  height: clamp(220px, 28vw, 330px);
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
  gap: 0.85rem;
  align-items: stretch;
}

.analysis-grid-pair {
  margin-top: 0.85rem;
}

.analysis-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.analysis-col .text-card {
  margin-top: 0;
}

.analysis-col > .text-card:only-child {
  flex: 1 1 auto;
}

.analysis-col > .inline-photo:only-child {
  flex: 1 1 auto;
}

.analysis-col > .inline-photo:only-child img {
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.analysis-col-side .inline-photo.analysis-side-photo {
  margin-top: 0;
  flex: 1 1 46%;
}

.analysis-col-side .inline-photo.analysis-side-photo img {
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.calendar-wrap {
  position: relative;
  margin-top: 0.9rem;
  background: linear-gradient(180deg, #fff 0%, #fff8ef 100%);
  border: 1px solid #e3cfb5;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.calendar-wrap::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), #ffbe70, var(--orange));
  opacity: 0.92;
}

.calendar-title {
  margin: 0.35rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
}

.calendar-intro {
  margin: 0.45rem 0 0.8rem;
  line-height: 1.55;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
  align-items: start;
  grid-auto-rows: min-content;
}

.month-card {
  border: 1px solid #dec5a6;
  border-radius: 12px;
  background: #fffdf9;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  align-self: start;
}

.month-head {
  background: #131313;
  border-bottom: 3px solid var(--orange);
  padding: 0.5rem 0.7rem;
}

.month-card h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.month-events {
  margin: 0;
  padding: 0.45rem 0.5rem 0.55rem;
  list-style: none;
  display: grid;
  gap: 0.38rem;
}

.calendar-event {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  padding: 0.36rem;
  border: 1px solid #f1dfca;
  border-radius: 10px;
  background: #fff;
}

.calendar-event:nth-child(even) {
  background: #fff;
}

.event-date {
  display: inline-block;
  background: #fff2dc;
  border: 1px solid #e8bd84;
  color: #8b4300;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.2rem 0.28rem;
}

.event-title-wrap {
  display: block;
}

.event-title {
  line-height: 1.38;
  font-size: 0.9rem;
  color: #1f1f1f;
}

.event-links {
  margin-top: 0.28rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.26rem;
}

.event-link {
  display: inline-flex;
  align-items: center;
  background: #fff0da;
  color: #7b3c00;
  border: 1px solid #e8b97b;
  border-radius: 999px;
  padding: 0.14rem 0.42rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.prompt-list {
  margin: 0.2rem 0 0;
  padding-left: 1.35rem;
  list-style: decimal;
}

.prompt-list li {
  margin: 0 0 0.5rem;
  line-height: 1.5;
  padding-left: 0.2rem;
}

.prompt-list li::marker {
  color: var(--orange-strong);
  font-weight: 800;
}

@media (max-width: 1050px) {
  .tab-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-grid { grid-template-columns: 1fr; }
  .month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .section-hero { grid-template-columns: 1fr; }
  .section-hero img { height: 180px; }
  .month-grid { grid-template-columns: 1fr; }
  .calendar-event { grid-template-columns: 86px minmax(0, 1fr); }
}
