/* TM Info - FAQ portal - Slate + Orange */
:root {
  --primary: #334155;
  --secondary: #1e293b;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --text: #1e293b;
  --muted: #64748b;
  --border: #cbd5e1;
  --row-alt: #f8fafc;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

img, svg { max-width: 100%; height: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.site-header .wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand img { width: 42px; height: 42px; }
.brand span { color: #fff; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.96rem;
  transition: background 0.15s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
}

/* Layout */
main { max-width: 900px; margin: 0 auto; padding: 32px 20px 64px; }
.page-header { margin-bottom: 32px; }

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--secondary);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  color: var(--secondary);
  margin: 44px 0 14px;
  padding: 10px 16px;
  border-left: 5px solid var(--accent);
  background: var(--surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 700;
}
h3 {
  font-size: 1.18rem;
  color: var(--primary);
  margin: 28px 0 10px;
  font-weight: 700;
}

p { margin: 0 0 16px; }

.byline {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0 0 4px;
}
.byline strong { color: var(--secondary); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 44px 28px;
  border-radius: var(--radius);
  margin: 24px 0 32px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 { color: #fff; margin-bottom: 12px; position: relative; }
.hero p { font-size: 1.08rem; color: rgba(255, 255, 255, 0.92); position: relative; max-width: 640px; }
.hero .byline { color: rgba(255, 255, 255, 0.82); position: relative; }
.hero .byline strong { color: #fff; }

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  position: relative;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.12s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.cta-primary {
  background: var(--accent);
  color: #fff;
}
.cta-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cta-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}
.cta-secondary:hover { background: rgba(255, 255, 255, 0.22); color: #fff; transform: translateY(-1px); }

/* Table of contents */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 24px 0 36px;
}
.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.toc ol {
  columns: 2;
  column-gap: 28px;
  margin: 0;
  padding-left: 22px;
  font-size: 0.95rem;
}
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--primary); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

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

/* Lists */
ul.arrow-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 20px;
}
ul.arrow-list li {
  padding-left: 26px;
  position: relative;
  margin: 8px 0;
}
ul.arrow-list li::before {
  content: "➤";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

ol.numbered {
  list-style: none;
  padding-left: 0;
  margin: 0 0 20px;
  counter-reset: numlist;
}
ol.numbered li {
  padding-left: 48px;
  position: relative;
  margin: 12px 0;
  counter-increment: numlist;
  min-height: 34px;
}
ol.numbered li::before {
  content: counter(numlist);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.94rem;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  background: var(--bg);
}
th {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:nth-child(even) td { background: var(--row-alt); }
tbody tr:last-child td { border-bottom: 0; }

/* Callouts */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 22px 0;
}
.callout strong { color: var(--secondary); }

/* FAQ accordion */
.faq { margin: 20px 0; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin: 10px 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
details[open] { box-shadow: var(--shadow-md); border-color: var(--accent); }
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--secondary);
  padding: 14px 44px 14px 18px;
  position: relative;
  list-style: none;
  font-size: 1.02rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "▼";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.8rem;
  transition: transform 0.2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
details p {
  padding: 0 18px 16px;
  margin: 0;
  color: var(--text);
}

/* Author box */
.author-box {
  display: flex;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 20px 22px;
  border-radius: var(--radius);
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}
.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}
.author-box .author-name { font-weight: 700; color: var(--secondary); margin: 0 0 2px; }
.author-box .author-role { color: var(--accent); font-size: 0.9rem; margin: 0 0 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.author-box .author-bio { font-size: 0.95rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* Figure / images */
figure {
  margin: 22px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
figure svg { display: block; margin: 0 auto; max-width: 100%; }
figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 20px 20px;
  margin-top: 60px;
}
.site-footer .wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer .copyright {
  max-width: 1080px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Small screens */
@media (max-width: 700px) {
  main { padding: 20px 16px 40px; }
  .site-header .wrap { padding: 12px 16px; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 36px; height: 36px; }
  .site-nav a { padding: 6px 10px; font-size: 0.9rem; }
  .hero { padding: 32px 20px; }
  h2 { padding: 8px 12px; }
  .author-box { flex-direction: column; text-align: center; }
}

@media (min-width: 980px) {
  main { padding: 44px 20px 80px; }
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* a11y additions */
@media (prefers-reduced-motion: reduce){*,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important}}
