/* -----------------------------------------
   Forty Two Fold Design Tokens
----------------------------------------- */

:root {
  --ftf-primary:   #FF5F45; /* Coral Flame */
  --ftf-accent:    #1C2A39; /* Midnight Navy */
  --ftf-secondary: #E0A458; /* Golden Sand */
  --ftf-tertiary:  #2A8C82; /* Teal Balance */
  --ftf-highlight: #FF8A70; /* Sunset Glow */
  --ftf-bg:        #FAF7F5; /* Soft Pearl */
}

/* -----------------------------------------
   Base Layout
----------------------------------------- */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--ftf-accent);
  background: white; /* outer frame */
}

/* Cream “card” containing header, content, footer */
.page-shell {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--ftf-bg);
  border-radius: 6px;
  padding: 0; /* remove vertical padding */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* -----------------------------------------
   Header
----------------------------------------- */

.site-header {
  margin-bottom: 1.5rem;
}

.site-header .container {
  background: var(--ftf-primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

.site-title:hover {
  text-decoration: underline;
}

.site-logo {
  height: 80px;
  width: auto;
  display: block;
}

.nav-links a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* -----------------------------------------
   Main Content
----------------------------------------- */

.main-content {
  margin: 0 0 1.5rem 0;
}

.framework-content {
  /* no extra background so it sits on the cream card */
  /* width aligned with header/footer via .container */
}

/* -----------------------------------------
   Footer
----------------------------------------- */

.site-footer {
  margin-top: 1.5rem;
}

.site-footer .container {
  border-top: 2px solid var(--ftf-secondary);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* -----------------------------------------
   Typography
----------------------------------------- */

h1, h2, h3, h4 {
  color: var(--ftf-accent);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p, li {
  color: var(--ftf-accent);
}

a {
  color: var(--ftf-tertiary);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* -----------------------------------------
   Images (Global)
----------------------------------------- */

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

/* -----------------------------------------
   Framework Content Styling
----------------------------------------- */

.framework-content img {
  max-width: 650px;
  margin: 2rem auto;
  display: block;
}

.framework-content p,
.framework-content li {
  font-size: 1.05rem;
}

/* -----------------------------------------
   Utility Classes
----------------------------------------- */

.text-center {
  text-align: center;
}

.highlight {
  color: var(--ftf-highlight);
}

/* -----------------------------------------
   Responsive Table Wrapper (small screens)
----------------------------------------- */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;

  /* Softer outer frame */
  border: 1.5px solid rgba(28, 42, 57, 0.4); /* Midnight Navy at 40% opacity */
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

@media (min-width: 600px) {
  .table-responsive {
    overflow-x: visible; /* disable scroll on larger screens */
  }
}

/* -----------------------------------------
   Compact, Refined Table Styling
----------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0; /* the wrapper now handles vertical spacing */
  font-size: 0.95rem;
  color: var(--ftf-accent);
  background: white;

  /* no border here – wrapper handles the frame */
  border: none;
}

th,
td {
  padding: 0.45rem 0.7rem;
  text-align: center;
  border-bottom: 1px solid rgba(224, 164, 88, 0.4);
  border-right: 1px solid rgba(224, 164, 88, 0.4);
}

th {
  background: var(--ftf-primary);
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

tr:nth-child(even) td {
  background: var(--ftf-bg);
}

td:last-child,
th:last-child {
  border-right: none;
}

tr:last-child td {
  border-bottom: none;
}
