/* Shared stylesheet for docs.trhsc.org — used across all apps' doc pages. */

:root {
  /* Brand palette — bone, black, deep reds, muted golds (see brand guide) */
  --red: #E02014;        /* app brand red — accents, badges, hover borders */
  --red-deep: #9c1810;   /* deeper red for link text (better contrast on bone) */
  --gold: #b8863a;       /* muted gold — accent fills */
  --gold-ink: #7a5a20;   /* muted gold — accent text */
  --ink: #201a14;        /* warm near-black */
  --muted: #6e5c46;      /* warm muted brown, replaces cool gray */
  --line: #dcc9a3;       /* warm bone-tan divider/border */
  --bg: #f6ecd9;         /* bone */
  --card-bg: #fffbf2;    /* warm off-white, slightly lighter than bg */
  --max-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--red-deep);
  text-decoration: none;
}

a:hover {
  color: var(--red);
  text-decoration: underline;
}

header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--card-bg);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
  color: var(--red-deep);
}

.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hero-image {
  display: block;
  margin: 4px auto 28px;
  max-width: 200px;
  width: 100%;
  height: auto;
}

.hero-section {
  text-align: center;
  padding: 24px 20px 12px;
  margin: 0 -20px 4px;
  background: radial-gradient(ellipse at center, rgba(184, 134, 58, 0.12), rgba(184, 134, 58, 0) 70%);
}

.hero-section .hero-image {
  max-width: 170px;
  margin-bottom: 18px;
}

.hero-section h1 {
  font-size: 2.6rem;
  margin-bottom: 6px;
}

.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto 26px;
  max-width: 520px;
}

.about-text {
  max-width: 560px;
  margin: 0 auto 8px;
  text-align: left;
}

.section-label {
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 2.6em 0 14px;
}

nav.crumbs {
  font-size: 0.9rem;
  color: var(--muted);
}

nav.crumbs a {
  color: var(--muted);
}

nav.crumbs a:hover {
  color: var(--red-deep);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

h1 {
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-weight: 400;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.3rem;
  margin-top: 2.2em;
  padding-top: 0.5em;
  border-top: 2px solid var(--line);
}

h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 2em;
}

p {
  margin: 0.9em 0;
}

ul, ol {
  padding-left: 1.3em;
}

li {
  margin: 0.4em 0;
}

.pro-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--gold);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
  margin-left: 6px;
}

.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 14px 0;
  background: var(--card-bg);
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--red);
  text-decoration: none;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 4px;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-grid {
  display: grid;
  gap: 14px;
}

.app-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  background: var(--card-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(224, 32, 20, 0.08);
}

.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.app-card-body {
  flex: 1;
  min-width: 0;
}

.app-card-body h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.app-card-body .desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.88rem;
  font-weight: 600;
}

.screens-box {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px 14px;
  margin: 1.4em 0 1.8em;
}

.screens-box .screens-label {
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
}

.screens {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.screens a.screen {
  display: block;
  width: 100px;
  text-decoration: none;
}

.screens a.screen:hover {
  text-decoration: none;
}

.screens a.screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.screens a.screen:hover img {
  border-color: var(--red);
  transform: translateY(-2px);
}

.screens a.screen span {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.toc {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 22px;
  margin: 1.5em 0 2em;
}

.toc p {
  margin: 0 0 8px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
}

.toc ul {
  margin: 0;
  columns: 2;
  column-gap: 24px;
}

.toc li {
  break-inside: avoid;
  font-size: 0.92rem;
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 48px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .toc ul {
    columns: 1;
  }
}
