/* TLCtrial.com starter stylesheet
   Derived from the uploaded poster style guide:
   H1 18px #F4EDE5; H2 16px #D69F41; H3 15px #F6F4D7 Book Antiqua;
   H4 14px #8C1919 Palatino Linotype; Body 13px black Palatino Linotype;
   --bg-head #3967AB; --bg-body #F4EDE5; --bg-2 #F7F1BD; --bg-3 #EF8E7C.
*/

/* =========================
   Design tokens
   ========================= */

:root {
  --bg-head: #3967AB;
  --bg-body: #F4EDE5;
  --bg-soft: #F7F1BD;
  --bg-accent: #EF8E7C;

  --text-main: #000000;
  --text-light: #F4EDE5;
  --text-muted-light: #F6F4D7;

  --heading-gold: #D69F41;
  --heading-red: #8C1919;

  --border-light: rgba(0, 0, 0, 0.14);
  --border-dark: rgba(244, 237, 229, 0.35);

  --font-serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-display: "Book Antiqua", "Palatino Linotype", Palatino, Georgia, serif;

  --page-width: 980px;
  --content-width: 760px;
}

/* =========================
   Base page
   ========================= */

html {
  box-sizing: border-box;
  font-size: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.62;
}

/* Better default text rendering */
body,
button,
input,
textarea,
select {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--bg-head);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--heading-red);
}

/* =========================
   Site header / navigation
   ========================= */

.site-header {
  background: var(--bg-head);
  color: var(--text-light);
  border-bottom: 4px solid var(--heading-gold);
}

.site-header-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0.9rem;
}

.site-title {
  display: inline-block;
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.site-title:hover,
.site-title:focus {
  color: var(--text-muted-light);
}

.site-subtitle {
  max-width: 760px;
  margin: 0.35rem 0 0;
  color: var(--text-muted-light);
  font-size: 13px;
  line-height: 1.45;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.95rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-dark);
}

.site-nav a {
  color: var(--text-light);
  font-size: 13px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--heading-gold);
}

/* =========================
   Page layout
   ========================= */

.page-shell {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.content-page {
  max-width: var(--content-width);
}

.content-page.wide {
  max-width: var(--page-width);
}

.content-card {
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid var(--border-light);
  padding: 1.4rem;
}

/* =========================
   Markdown typography
   ========================= */

.content-page h1,
.content-page h2,
.content-page h3,
.content-page h4 {
  font-family: var(--font-display);
  line-height: 1.25;
}

.content-page h1 {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--bg-head);
  color: var(--text-light);
  font-size: 18px;
  font-weight: 700;
}

.content-page h2 {
  margin: 2.4rem 0 0.8rem;
  color: var(--heading-gold);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(214, 159, 65, 0.45);
  padding-bottom: 0.25rem;
}

.content-page h3 {
  margin: 1.75rem 0 0.65rem;
  padding: 0.45rem 0.65rem;
  background: var(--bg-head);
  color: var(--text-muted-light);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.content-page h4 {
  margin: 1.35rem 0 0.45rem;
  color: var(--heading-red);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
}

.content-page p {
  margin: 0 0 1rem;
}

.content-page ul,
.content-page ol {
  margin: 0 0 1rem 1.35rem;
  padding: 0;
}

.content-page li {
  margin-bottom: 0.35rem;
}

.content-page strong {
  font-weight: 700;
}

.content-page em {
  font-style: italic;
}

.content-page blockquote {
  margin: 1.4rem 0;
  padding: 0.85rem 1rem;
  background: rgba(247, 241, 189, 0.65);
  border-left: 4px solid var(--heading-gold);
}

.content-page blockquote p:last-child {
  margin-bottom: 0;
}

.content-page hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border-light);
}

/* =========================
   Tables
   ========================= */

.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 12.5px;
}

.content-page th,
.content-page td {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border-light);
  vertical-align: top;
}

.content-page th {
  background: var(--bg-head);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
}

.content-page tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.28);
}

/* =========================
   Evidence / source blocks
   ========================= */

.callout,
.source-block,
.evidence-card {
  margin: 1.4rem 0;
  padding: 1rem;
  background: rgba(247, 241, 189, 0.7);
  border-left: 4px solid var(--heading-gold);
}

.callout-title,
.source-title,
.evidence-card-title {
  margin: 0 0 0.45rem;
  color: var(--heading-red);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.source-block p:last-child,
.evidence-card p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.warning-box {
  margin: 1.4rem 0;
  padding: 1rem;
  background: rgba(239, 142, 124, 0.28);
  border-left: 4px solid var(--bg-accent);
}

/* =========================
   Reference lists
   ========================= */

.references {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  font-size: 12.5px;
  line-height: 1.5;
}

.references li {
  margin-bottom: 0.65rem;
}

/* =========================
   Search
   ========================= */

.search-box {
  margin: 1.25rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid var(--border-light);
}

.search-box label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--heading-red);
  font-family: var(--font-display);
  font-weight: 700;
}

.search-box input[type="search"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-light);
  background: #fffdf8;
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 13px;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  margin-top: 2rem;
  background: var(--bg-head);
  color: var(--text-light);
}

.site-footer-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  font-size: 12.5px;
}

.site-footer a {
  color: var(--text-muted-light);
}

/* =========================
   Responsive behavior
   ========================= */

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

  .site-header-inner,
  .page-shell,
  .site-footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-nav {
    gap: 0.55rem 0.85rem;
  }

  .content-page h1 {
    font-size: 18px;
  }

  .content-page h2 {
    font-size: 16px;
  }

  .content-page h3 {
    font-size: 15px;
  }

  .content-page table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
