/* ==========================================================================
   Otips — F-1 Rule Guide pages
   Scoped to .otips-f1 so it cannot leak into the ClassTrip theme.
   Brand: teal #0496a3 · orange #f7944b · green #70bf47
   ========================================================================== */

.otips-f1 {
  --teal:      #0496a3;
  --teal-dk:   #036f79;
  --teal-tint: #e8f6f8;
  --orange:    #f7944b;
  --orange-tint:#fff2e6;
  --green:     #70bf47;
  --green-tint:#eef8e8;
  --ink:       #16232b;
  --ink-soft:  #4d5c66;
  --rule:      #dfe6ea;
  --paper:     #ffffff;
  --paper-alt: #f7fafb;

  --wrap: 760px;

  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.otips-f1 *,
.otips-f1 *::before,
.otips-f1 *::after { box-sizing: border-box; }

.otips-f1 .wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Hero ------------------------------------------------------- */
.otips-f1 .f1-hero {
  background: linear-gradient(160deg, var(--teal-tint) 0%, #fdf4ec 100%);
  border-bottom: 1px solid var(--rule);
  padding: 40px 0 34px;
}
.otips-f1 .f1-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--teal-dk);
  background: #fff;
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 16px;
}
.otips-f1 h1 {
  font-size: clamp(28px, 5.2vw, 40px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.otips-f1 .f1-standfirst {
  font-size: clamp(17px, 2.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 60ch;
}
.otips-f1 .f1-stamp {
  font-size: 13.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.otips-f1 .f1-stamp b { color: var(--ink); }

/* ---------- Signature: the Admit Until Date card ----------------------- */
.otips-f1 .datecard {
  margin: 30px 0;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.otips-f1 .datecard-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  padding: 7px 16px;
}
.otips-f1 .datecard-body { padding: 20px 16px 18px; }
.otips-f1 .datecard-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: flex-start;
}
.otips-f1 .datecard-item { flex: 1 1 190px; min-width: 0; }
.otips-f1 .datecard-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 3px;
}
.otips-f1 .datecard-val {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.otips-f1 .datecard-val.is-teal { color: var(--teal-dk); }
.otips-f1 .datecard-note {
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px dashed var(--rule);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Body ------------------------------------------------------- */
.otips-f1 .f1-body { padding: 8px 0 10px; }

.otips-f1 .f1-body h2 {
  font-size: clamp(21px, 3.2vw, 26px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 40px 0 6px;
  padding-top: 20px;
  border-top: 3px solid var(--teal);
}
.otips-f1 .f1-body h2:first-child { margin-top: 24px; }
.otips-f1 .f1-body h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--teal-dk);
  margin: 26px 0 6px;
}
.otips-f1 .f1-body p { margin: 0 0 15px; }
.otips-f1 .f1-body ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.otips-f1 .f1-body li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
}
.otips-f1 .f1-body li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.otips-f1 .f1-body strong { font-weight: 700; }
.otips-f1 .f1-body a { color: var(--teal-dk); text-decoration: underline; }
.otips-f1 .f1-body a:hover { color: var(--orange); }

/* ---------- Callouts --------------------------------------------------- */
.otips-f1 .note {
  border-left: 4px solid var(--teal);
  background: var(--teal-tint);
  border-radius: 0 6px 6px 0;
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 16px;
  line-height: 1.6;
}
.otips-f1 .note > :last-child { margin-bottom: 0; }
.otips-f1 .note-title {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--teal-dk);
}
.otips-f1 .note.is-warn { border-left-color: var(--orange); background: var(--orange-tint); }
.otips-f1 .note.is-warn .note-title { color: #b45f17; }
.otips-f1 .note.is-ok { border-left-color: var(--green); background: var(--green-tint); }
.otips-f1 .note.is-ok .note-title { color: #47801f; }

/* ---------- Deadline spine (timeline) ---------------------------------- */
.otips-f1 .spine { margin: 24px 0 28px; padding-left: 26px; position: relative; }
.otips-f1 .spine::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--teal), var(--orange));
}
.otips-f1 .spine-step { position: relative; margin-bottom: 20px; }
.otips-f1 .spine-step:last-child { margin-bottom: 0; }
.otips-f1 .spine-step::before {
  content: "";
  position: absolute;
  left: -26px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal);
}
.otips-f1 .spine-when {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2px;
}
.otips-f1 .spine-what { font-weight: 700; display: block; margin-bottom: 2px; }
.otips-f1 .spine-detail { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Q&A (FAQ schema pairs) ------------------------------------- */
.otips-f1 .qa { border-top: 1px solid var(--rule); margin-top: 8px; }
.otips-f1 .qa-item { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.otips-f1 .qa-q {
  font-size: 17.5px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.otips-f1 .qa-a { margin: 0; color: var(--ink-soft); }
.otips-f1 .qa-a > :last-child { margin-bottom: 0; }

/* ---------- Other-guides nav ------------------------------------------- */
.otips-f1 .guidenav { margin: 40px 0 8px; }
.otips-f1 .guidenav h2 { margin-bottom: 14px; }
.otips-f1 .guidenav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.otips-f1 .guidecard {
  display: block;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 14px 16px;
  text-decoration: none !important;
  background: var(--paper-alt);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.otips-f1 .guidecard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(4,150,163,.13);
  border-left-color: var(--orange);
}
.otips-f1 .guidecard-t {
  display: block;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}
.otips-f1 .guidecard-d { display: block; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- CTA -------------------------------------------------------- */
.otips-f1 .cta {
  margin: 34px 0 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 28px 24px;
}
.otips-f1 .cta h2 {
  color: #fff;
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  font-size: 23px;
}
.otips-f1 .cta p { color: #cfdae1; margin: 0 0 18px; }
.otips-f1 .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.otips-f1 .btn {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background .15s ease, transform .15s ease;
}
.otips-f1 .btn-primary { background: var(--orange); color: #16232b !important; }
.otips-f1 .btn-primary:hover { background: #ffa763; transform: translateY(-1px); }
.otips-f1 .btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.45);
}
.otips-f1 .btn-ghost:hover { border-color: #fff; transform: translateY(-1px); }

/* ---------- Downloads -------------------------------------------------- */
.otips-f1 .dl {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 20px 0;
  background: var(--paper-alt);
  text-decoration: none !important;
}
.otips-f1 .dl:hover { border-color: var(--teal); }
.otips-f1 .dl-icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.otips-f1 .dl-t { font-weight: 700; color: var(--ink); display: block; }
.otips-f1 .dl-d { font-size: 14px; color: var(--ink-soft); }

/* ---------- Disclaimer / footer --------------------------------------- */
.otips-f1 .disclaimer {
  margin: 30px 0 10px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-alt);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.otips-f1 .disclaimer b { color: var(--ink); }
.otips-f1 .sources {
  font-size: 13.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding: 16px 0 44px;
  margin-top: 10px;
}

/* ---------- Motion / a11y --------------------------------------------- */
.otips-f1 a:focus-visible,
.otips-f1 .btn:focus-visible,
.otips-f1 .guidecard:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .otips-f1 * { transition: none !important; animation: none !important; }
  .otips-f1 .guidecard:hover, .otips-f1 .btn:hover { transform: none; }
}

/* ---------- Mobile ----------------------------------------------------- */
@media (max-width: 600px) {
  .otips-f1 { font-size: 16.5px; }
  .otips-f1 .f1-hero { padding: 28px 0 26px; }
  .otips-f1 .datecard-row { gap: 14px; }
  .otips-f1 .cta { padding: 22px 18px; }
  .otips-f1 .cta-actions .btn { width: 100%; text-align: center; }
}

/* ---------- Print ------------------------------------------------------ */
@media print {
  .otips-f1 .cta, .otips-f1 .guidenav, .otips-f1 .dl { display: none; }
  .otips-f1 .f1-hero { background: none; }
}
