/* MakeWinningEasy.com — site styles
   Layered on top of Tailwind CDN. Tailwind config (colors, fonts) lives in the
   HTML head so we can keep one source of truth. */

:root {
  --color-navy:    #1A2B4A;
  --color-navy-2:  #2A3D63;
  --color-cream:   #FAF7F2;
  --color-cream-2: #F2EDE3;
  --color-brass:   #B89968;
  --color-brass-2: #9C7F50;
  --color-ink:     #1F2328;
  --color-mute:    #5C6470;
}

html { scroll-behavior: smooth; }

body {
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.005em;
}

/* Tasteful link underline for prose */
.prose a, .worksheet-content a {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: var(--color-brass);
  text-underline-offset: 3px;
}
.prose a:hover, .worksheet-content a:hover { color: var(--color-brass-2); }

/* Worksheet typography — applied to content injected from .docx */
.worksheet-content {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-ink);
}
.worksheet-content h1,
.worksheet-content h2,
.worksheet-content h3 {
  color: var(--color-navy);
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.2;
}
.worksheet-content h1 { font-size: 2.25rem; }
.worksheet-content h2 { font-size: 1.65rem; }
.worksheet-content h3 { font-size: 1.25rem; }
.worksheet-content p { margin: 1em 0; }
.worksheet-content ul,
.worksheet-content ol { margin: 1em 0 1em 1.25em; padding-left: 1em; }
.worksheet-content ul { list-style: disc; }
.worksheet-content ol { list-style: decimal; }
.worksheet-content li { margin: 0.35em 0; }
.worksheet-content blockquote {
  border-left: 3px solid var(--color-brass);
  padding: 0.25em 0 0.25em 1.25em;
  margin: 1.25em 0;
  color: var(--color-mute);
  font-style: italic;
}
.worksheet-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}
.worksheet-content th,
.worksheet-content td {
  border: 1px solid #D9D2C3;
  padding: 0.6em 0.85em;
  vertical-align: top;
  text-align: left;
}
.worksheet-content th {
  background: var(--color-cream-2);
  font-weight: 600;
}
.worksheet-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.25em 0;
}
.worksheet-content hr {
  border: 0;
  border-top: 1px solid #D9D2C3;
  margin: 2em 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-navy);
  color: var(--color-cream);
  border: 1px solid var(--color-navy);
}
.btn-primary:hover { background: var(--color-navy-2); border-color: var(--color-navy-2); }
.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
}
.btn-secondary:hover { background: var(--color-navy); color: var(--color-cream); }
.btn-brass {
  background: var(--color-brass);
  color: var(--color-cream);
  border: 1px solid var(--color-brass);
}
.btn-brass:hover { background: var(--color-brass-2); border-color: var(--color-brass-2); }

/* Worksheet card */
.ws-card {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E7E1D2;
  border-radius: 6px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--color-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  height: 100%;
}
.ws-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(26,43,74,0.18);
  border-color: var(--color-brass);
}
.ws-card .ws-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}
.ws-card .ws-desc {
  color: var(--color-mute);
  font-size: 0.95rem;
  line-height: 1.55;
}
.ws-card .ws-arrow {
  color: var(--color-brass);
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.9rem;
}

/* ============================================================
   Worksheet form elements — used by the rich worksheet pages
   ============================================================ */

/* Numbered step / section badge */
.ws-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  background: var(--color-navy);
  color: var(--color-cream);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  border-radius: 4px;
}
.ws-step-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 2.25rem 0 0.5rem;
}
.ws-step-row h3 { margin: 0; }

/* Colored section band (like the PDF headers) */
.ws-band {
  background: var(--color-navy);
  color: var(--color-cream);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 2.5rem 0 1.25rem;
}
.ws-band .ws-band-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.1;
  color: #fff;
}
.ws-band .ws-band-sub {
  font-size: 0.9rem;
  color: var(--color-brass);
  font-style: italic;
}
.ws-band.green  { background: #2E5D43; }
.ws-band.brass  { background: var(--color-brass); }
.ws-band.brass .ws-band-sub { color: var(--color-navy); }

/* CORE attribute letter chips */
.attr-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  flex: 0 0 auto;
  border-radius: 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: #fff;
}
.attr-chip.c { background: #2E5D43; }  /* Curiosity — green */
.attr-chip.o { background: #1A2B4A; }  /* Obsession — navy */
.attr-chip.r { background: #6B3E8E; }  /* Resilience — purple */
.attr-chip.e { background: #B23A2E; }  /* Empathy — red */

/* Fill-in line (a writable blank) */
.fill {
  display: inline-block;
  border-bottom: 1px solid #B9AE97;
  min-width: 8rem;
  height: 1.4em;
  vertical-align: baseline;
}
.fill-line {
  border-bottom: 1px solid #C7BCA4;
  height: 2.25rem;
}
.fill-line + .fill-line { margin-top: 0.5rem; }

/* Fillable answer box */
.fill-box {
  border: 1px solid #D9D2C3;
  border-radius: 6px;
  background: #FFFFFF;
  padding: 1rem 1.15rem;
  margin: 0.75rem 0 1.25rem;
}
.fill-box .fill-box-label {
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
}
.fill-box .fill-box-eg {
  color: var(--color-mute);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.fill-box .lines .fill-line { border-bottom-style: dotted; }

/* Checkbox option */
.ws-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.45rem 0;
}
.ws-check .box {
  width: 1.05rem; height: 1.05rem;
  border: 1.5px solid var(--color-navy);
  border-radius: 3px;
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

/* Score table (1–5 rating) */
.score-table { width: 100%; border-collapse: collapse; margin: 1rem 0 0.5rem; font-size: 0.97rem; }
.score-table th, .score-table td { border: 1px solid #D9D2C3; padding: 0.55rem 0.7rem; }
.score-table thead th { background: var(--color-navy); color: var(--color-cream); font-weight: 600; }
.score-table .statement { text-align: left; }
.score-table .num { text-align: center; width: 2.2rem; color: var(--color-mute); background: var(--color-cream-2); }
.score-total {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--color-cream-2); border: 1px solid #D9D2C3; border-top: none;
  padding: 0.7rem 0.85rem; font-weight: 600; color: var(--color-navy);
}

/* "Remember" / quote callout */
.ws-callout {
  background: var(--color-cream-2);
  border-left: 4px solid var(--color-brass);
  border-radius: 4px;
  padding: 1.1rem 1.35rem;
  margin: 2rem 0;
}
.ws-callout strong { color: var(--color-navy); }
.ws-callout p { margin: 0.35rem 0 0; font-style: italic; color: var(--color-mute); }

/* PDF download bar */
.pdf-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  background: var(--color-navy); color: var(--color-cream);
  border-radius: 6px; padding: 1rem 1.25rem; margin: 1.5rem 0 2rem;
}
.pdf-bar .pdf-label { flex: 1 1 auto; font-size: 0.95rem; }
.pdf-bar .pdf-label strong { color: #fff; }

/* Habit tracker grid */
.habit-grid { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.habit-grid th, .habit-grid td { border: 1px solid #D9D2C3; text-align: center; padding: 0; }
.habit-grid thead th { background: var(--color-navy); color: var(--color-cream); font-weight: 600; font-size: 0.85rem; padding: 0.5rem; }
.habit-grid td.day-label { background: var(--color-cream-2); font-weight: 600; color: var(--color-navy); font-size: 0.85rem; padding: 0.5rem 0.75rem; text-align: left; white-space: nowrap; }
.habit-grid td.tick-cell { height: 2.4rem; width: 4.5rem; cursor: default; }
.habit-grid td.tick-cell .tick {
  display: inline-block; width: 1.1rem; height: 1.1rem;
  border: 1.5px solid #C7BCA4; border-radius: 4px; vertical-align: middle;
}

/* Habit stack chain */
.chain { display: flex; flex-direction: column; gap: 0.4rem; margin: 1rem 0; }
.chain .link {
  display: flex; align-items: center; gap: 0.75rem;
  background: #fff; border: 1px solid #E7E1D2; border-radius: 6px; padding: 0.7rem 1rem;
}
.chain .link .badge {
  flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 5px;
  background: var(--color-brass); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 600; font-size: 0.85rem;
}
.chain .link.trigger .badge { background: var(--color-navy); }
.chain .link .fill { flex: 1 1 auto; min-width: 0; }
.chain .arrow { text-align: center; color: var(--color-brass); line-height: 0.5; font-size: 0.9rem; }

/* Print styles — for worksheet save-as-PDF */
@media print {
  body { background: #fff; color: #000; }
  .no-print, header nav, footer, .print-hide { display: none !important; }
  .worksheet-content { max-width: none; font-size: 11pt; line-height: 1.55; }
  .worksheet-content h1 { font-size: 22pt; }
  .worksheet-content h2 { font-size: 16pt; }
  .worksheet-content h3 { font-size: 13pt; }
  a { color: #000; text-decoration: underline; }
  .page-break { page-break-after: always; }
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-brass);
  outline-offset: 3px;
  border-radius: 2px;
}
