/* Sample brief page. Inherits the editorial skin from /styles.css. */

.sample-hero {
  text-align: center;
  padding: 3.5rem 0 2rem;
}

.sample-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

/* The real date of the sample, stated plainly. This is the honesty anchor of
   the page, so it gets mono treatment and sits above the lede. */
.sample-date {
  display: inline-block;
  margin: 0 auto 1.25rem;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
}

.sample-lede {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.7;
}

.sample-layout {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 960px) {
  .sample-layout {
    grid-template-columns: 1fr 280px;
    grid-template-rows: auto 1fr;
    align-items: start;
  }

  .sample-tabs {
    grid-column: 1 / -1;
  }

  .sample-aside {
    grid-column: 2;
    grid-row: 2;
  }

  .sample-frame {
    grid-column: 1;
    grid-row: 2;
  }
}

.sample-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  background: var(--paper-band);
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  width: fit-content;
  max-width: 100%;
}

.sample-tabs button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sample-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.sample-tabs button:hover:not([aria-selected="true"]) {
  color: var(--ink);
  background: var(--paper-raised);
  border-color: var(--rule);
}

.sample-frame {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  min-height: 420px;
  max-height: 72vh;
  overflow-y: auto;
  position: relative;
}

.sample-frame .sample-fade {
  position: sticky;
  bottom: 0;
  margin-top: -120px;
  height: 160px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    var(--paper-raised) 75%
  );
  pointer-events: none;
}

.sample-frame .sample-fade-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1rem;
  pointer-events: auto;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
}

.sample-frame .sample-fade-inner a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
}

.sample-frame .sample-fade-inner a:hover {
  border-bottom-color: var(--accent);
}

.sample-frame .sample-loading {
  padding: 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The brief HTML is generated by the email pipeline and re-written by
   build_last_week.py, so its footer greys cannot be fixed in the file itself.
   The email client is not our problem, but this page is: bring the 11px
   footer text up to an AA-passing grey when we render it on the web. */
.sample-frame .pp-footer,
.sample-frame .mh-footer,
.sample-frame .pp-footer p,
.sample-frame .mh-footer p {
  color: var(--muted);
}

.sample-aside {
  background: var(--paper-band);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.sample-aside h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
}

.sample-aside ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.sample-aside li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
}

.sample-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 640px) {
  .sample-tabs {
    width: 100%;
  }

  .sample-tabs button {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.8125rem;
    padding: 0.55rem 0.65rem;
  }
}
