/* ============================================================
   Ticketstripe — Resource Page Styles
   Location: wp-content/themes/ticketstripe/css/ts-resource.css

   Everything is scoped under .tsr so nothing leaks into the
   theme header, nav, sidebar or footer.

   Fonts are NOT imported here. Heebo and Poppins are already
   self-hosted by theme.min.css. Only weights that exist there
   are used:
       Heebo   400, 700
       Poppins 300, 400, 500, 600, 700
   ============================================================ */

.tsr {
  /* Brand palette — Visual Brand Elements, Dec 2022 */
  --tsr-slate: #132137;
  --tsr-gray: #2b3036;
  --tsr-light-gray: #f1f1f1;
  --tsr-orange: #f48631;
  --tsr-green: #639b21;
  --tsr-light-green: #ddf5c8;
  --tsr-light-orange: #ffe3d4;
  --tsr-teal: #58c9a6;
  --tsr-purple: #9464e5;
  --tsr-grad: linear-gradient(90deg, #f6c73a 0%, #f06c06 50%, #fe4284 100%);

  --tsr-paper: #fff;
  --tsr-line: #e3e3e3;
  --tsr-radius: 14px;
  --tsr-max: 960px;
  --tsr-pad: 24px;

  /* Site header is position:fixed and 65px tall, so it sits outside
     the document flow. These two offsets compensate for it. */
  --tsr-header-offset: 65px;

  /* Keeps jump-link targets clear of the fixed header */
  --tsr-anchor-offset: 89px;

  color: var(--tsr-gray);
  font-family: "Poppins", -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Contained resets — scoped, cannot affect theme chrome */
.tsr, .tsr *, .tsr *::before, .tsr *::after { box-sizing: border-box; }
.tsr h1, .tsr h2, .tsr h3, .tsr p, .tsr ul, .tsr ol, .tsr li { margin: 0; padding: 0; }
.tsr ul, .tsr ol { list-style: none; }

.tsr a { color: var(--tsr-slate); font-weight: 600; text-decoration-color: var(--tsr-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tsr a:hover { color: var(--tsr-orange); }
.tsr a:focus-visible { outline: 2px solid var(--tsr-orange); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .tsr *, .tsr *::before, .tsr *::after { transition: none !important; animation: none !important; }
}

/* ---------- Layout ---------- */
.tsr-wrap { max-width: var(--tsr-max); margin: 0 auto; padding-left: var(--tsr-pad); padding-right: var(--tsr-pad); }
.tsr-section { padding-top: 56px; padding-bottom: 56px; }
.tsr-section + .tsr-section { border-top: 1px solid var(--tsr-line); }

/* Full-width tinted band.
   Inside a WPBakery stretch_row this needs nothing extra.
   Inside a constrained container, add .tsr-bleed to break out. */
.tsr-band { background: var(--tsr-light-gray); }
.tsr-bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ---------- Hero ---------- */
.tsr-hero { border-bottom: 1px solid var(--tsr-line); background: linear-gradient(180deg, var(--tsr-light-gray) 0%, var(--tsr-paper) 100%); }
.tsr-hero-inner { padding-top: calc(var(--tsr-header-offset) + 56px); padding-bottom: 44px; }

.tsr-title {
  font-family: "Heebo", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--tsr-slate);
  max-width: 680px;
}
.tsr-lede { margin-top: 18px !important; max-width: 620px; color: var(--tsr-gray); font-size: 17px; }

.tsr-goals { margin-top: 26px !important; display: flex; flex-wrap: wrap; gap: 10px; }
.tsr-goals li {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--tsr-paper);
  border: 1px solid var(--tsr-line);
  border-radius: 12px;
  padding: 8px 16px 8px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--tsr-slate);
}
.tsr-goals li svg { flex: none; margin-top: 3px; color: var(--tsr-green); }

/* ---------- Section headings ---------- */
.tsr-h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 3.5vw, 30px);
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: var(--tsr-slate);
}
.tsr-h2::before {
  content: "";
  display: block;
  width: 26px; height: 4px;
  border-radius: 2px;
  background: var(--tsr-grad);
  margin-bottom: 12px;
}
.tsr-intro { margin-top: 10px !important; color: var(--tsr-gray); max-width: 620px; }

/* ---------- Checklist cards ---------- */
.tsr-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
/* The grid stretches each <li>, but the card inside only grows to its
   own content — so a shorter title left card 3 short. This makes the
   card fill its cell, keeping all three the same height. */
.tsr-grid > li { display: flex; }
.tsr-grid > li > .tsr-card { flex: 1; }

.tsr-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--tsr-line);
  border-radius: var(--tsr-radius);
  background: var(--tsr-paper);
  padding: 18px 18px 18px 16px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tsr-card, .tsr-card:hover, .tsr-card:focus, .tsr-card:active { text-decoration: none; }
.tsr-card:hover { border-color: var(--tsr-orange); box-shadow: 0 2px 12px rgba(244,134,49,.14); color: inherit; }
.tsr-card:hover .tsr-card-title { color: var(--tsr-orange); }
.tsr-card:hover .tsr-card-num { border-color: var(--tsr-orange); }
.tsr-card:hover .tsr-card-arrow { transform: translateY(2px); }
/* theme.min.css sets a:hover{text-decoration:underline}; decoration
   propagates from the anchor to its children, so block it explicitly */
.tsr-card .tsr-card-title,
.tsr-card .tsr-card-sub,
.tsr-card .tsr-card-num,
.tsr-card .tsr-card-arrow { text-decoration: none; }

.tsr-card-num {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--tsr-paper);
  border: 2px solid var(--tsr-line);
  color: var(--tsr-slate);
  font-family: "Heebo", sans-serif;
  font-weight: 400;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease;
}
.tsr-card-body { min-width: 0; }
.tsr-card-title {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--tsr-slate);
  transition: color .15s ease;
}
.tsr-card-sub { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--tsr-gray); line-height: 1.5; }
.tsr-card-arrow { flex: none; align-self: center; color: var(--tsr-orange); font-size: 18px; line-height: 1; padding: 6px; transition: transform .15s ease; }

/* ---------- Instruction "ticket" cards ---------- */
.tsr-ticket {
  position: relative;
  background: var(--tsr-paper);
  border: 1px solid var(--tsr-line);
  border-radius: var(--tsr-radius);
  margin-top: 26px;
  scroll-margin-top: var(--tsr-anchor-offset);
  overflow: hidden;
}
.tsr-ticket:first-of-type { margin-top: 32px; }

.tsr-ticket-head { display: flex; align-items: center; gap: 16px; padding: 20px 26px; background: #fafafa; }
.tsr-ticket-num {
  flex: none;
  font-family: "Heebo", sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--tsr-slate);
  background: var(--tsr-light-orange);
  border: 1px solid rgba(244,134,49,.45);
  border-radius: 6px;
  padding: 4px 10px;
  white-space: nowrap;
}
.tsr-ticket-title { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--tsr-slate); }

.tsr-perf { position: relative; height: 0; border-top: 2px dashed var(--tsr-line); }
.tsr-perf::before, .tsr-perf::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--tsr-light-gray);
  border: 1px solid var(--tsr-line);
}
.tsr-perf::before { left: -9px; }
.tsr-perf::after { right: -9px; }

.tsr-ticket-body { padding: 24px 26px 26px; }

.tsr-field { margin-top: 18px; }
.tsr-field:first-child { margin-top: 0; }
.tsr-label {
  font-family: "Heebo", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tsr-gray);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px !important;
}
.tsr-label::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--tsr-orange); }
.tsr-field p { color: var(--tsr-gray); max-width: 660px; }
.tsr-field p strong { color: var(--tsr-slate); }

.tsr-path {
  display: inline-block;
  font-weight: 500;
  font-size: 14px;
  background: var(--tsr-light-green);
  border: 1px solid rgba(99,155,33,.4);
  color: var(--tsr-slate);
  border-radius: 8px;
  padding: 6px 12px;
}

.tsr-steps { counter-reset: tsrstep; max-width: 660px; }
.tsr-steps > li { counter-increment: tsrstep; position: relative; padding: 0 0 10px 38px; }
.tsr-steps > li:last-child { padding-bottom: 0; }
.tsr-steps li strong { color: var(--tsr-slate); font-weight: 600; }
.tsr-steps > li::before {
  content: counter(tsrstep);
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--tsr-paper);
  border: 2px solid var(--tsr-line);
  color: var(--tsr-slate);
  font-family: "Heebo", sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tsr-substeps { margin-top: 8px; }
.tsr-substeps li { position: relative; padding: 0 0 6px 22px; }
.tsr-substeps li:last-child { padding-bottom: 0; }
.tsr-substeps li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 3px; border-radius: 2px; background: var(--tsr-orange); }

.tsr-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }

.tsr-back {
  display: inline-block;
  margin-top: 18px;
  font-family: "Heebo", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tsr-gray);
  text-decoration: none;
}
.tsr-back:hover { color: var(--tsr-orange); text-decoration: underline; text-decoration-color: var(--tsr-orange); }

/* ---------- Resources ---------- */
.tsr-res-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tsr-res-card { border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); padding: 20px; background: var(--tsr-paper); border-top: 4px solid var(--tsr-orange); }
.tsr-res-card:nth-child(2) { border-top-color: var(--tsr-teal); }
.tsr-res-card:nth-child(3) { border-top-color: var(--tsr-purple); }
.tsr-res-card h3 { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 16px; color: var(--tsr-slate); margin-bottom: 8px !important; }
.tsr-res-card li { font-size: 15px; padding: 3px 0; }

/* ---------- CTA band ---------- */
.tsr-cta {
  margin-top: 22px;
  background: var(--tsr-slate);
  color: #fff;
  border-radius: var(--tsr-radius);
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tsr-cta h3 { font-family: "Heebo", sans-serif; font-weight: 700; font-size: 19px; color: #fff; }
.tsr-cta p { font-size: 14.5px; opacity: .9; margin-top: 4px !important; max-width: 480px; }
.tsr-cta-btn {
  flex: none;
  display: inline-block;
  background: var(--tsr-grad);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 24px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tsr-cta-btn, .tsr-cta-btn:hover { text-decoration: none; }
.tsr-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(240,108,6,.4); }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .tsr-ticket-head, .tsr-ticket-body { padding-left: 18px; padding-right: 18px; }
  .tsr-cta { padding: 22px 20px; }
}

/* ---------- Print ---------- */
@media print {
  .tsr-card-arrow, .tsr-back { display: none; }
  .tsr-band { background: #fff; }
  .tsr-section { padding-top: 24px; padding-bottom: 24px; }
}
