/* ==========================================================================
   SECRET CAMPUS BOARD — page layer
   Page-level compositions: hero, trust board, how-it-works, campus picker,
   ID card, secret slots, sealing animation, desk, matches, reveal.
   Mobile-first throughout.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero — a college desk (design.md 8/9/45)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(40px, 9vw, 92px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 5px 11px;
  background: var(--blue);
  border: var(--border) solid var(--rule);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.hero-title {
  margin-bottom: 12px;
}

.hero-title .accent {
  display: block;
  color: var(--red);
}

.hero-sub {
  max-width: 30ch;
  font-family: var(--hand);
  font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero-lede {
  max-width: 44ch;
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  color: var(--ink-70);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 26px 0 0;
}

.hero-privacy {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

/* The pinned desk note */
.hero-note {
  position: relative;
  margin-top: 34px;
  background: var(--yellow);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px 22px;
  transform: rotate(-1.2deg);
}

.hero-note .tape {
  background: rgba(255, 255, 255, 0.6);
}

.note-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-note p {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
}

.hero-note .mystery {
  font-family: var(--hand);
  font-size: 2rem;
  line-height: 1;
  text-align: center;
  padding: 10px 0 2px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 108px), 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
}

.hero-stats > div {
  padding: 12px 10px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
}

.hero-stats dt {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stats dd {
  margin: 2px 0 0;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   2. Private by design (design.md 10) — the most important section
   -------------------------------------------------------------------------- */

.trust {
  background: var(--ink);
  color: var(--paper);
}

.trust .section-label {
  color: rgba(247, 246, 241, 0.6);
}

.trust h2 {
  color: var(--paper);
}

.trust-lede {
  max-width: 40ch;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
  font-weight: 700;
  color: var(--paper);
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  background: rgba(247, 246, 241, 0.06);
  border: 1.5px dashed rgba(247, 246, 241, 0.34);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.94rem;
}

.trust-list .tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  background: var(--green);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
}

.trust-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1.5px dashed rgba(247, 246, 241, 0.3);
  font-weight: 800;
  color: var(--yellow);
}

/* --------------------------------------------------------------------------
   3. How it works (design.md 11)
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
}

.step:nth-child(odd) {
  transform: rotate(-0.8deg);
}

.step:nth-child(even) {
  transform: rotate(0.8deg);
}

.step-num {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.step-visual {
  display: grid;
  place-items: center;
  height: 96px;
  margin-bottom: 12px;
  background: var(--paper-2);
  border: 1.5px dashed var(--rule-soft);
  border-radius: var(--radius);
  font-size: 2rem;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  color: var(--ink-70);
  font-size: 0.94rem;
}

.step-outcome {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;
  background: var(--pink);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   4. Campus picker (design.md 14)
   -------------------------------------------------------------------------- */

.picker-search {
  margin-bottom: 18px;
}

.campus-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.campus-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
}

.campus-row input {
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
}

.campus-row .name {
  font-weight: 800;
  line-height: 1.25;
}

.campus-row .place {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.campus-chosen {
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(110, 231, 183, 0.25);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
}

.campus-chosen p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--ink-70);
}

.add-college {
  margin-top: 22px;
  padding: 14px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
}

.add-college > summary {
  cursor: pointer;
  font-weight: 800;
}

.add-college-hint {
  margin: 8px 0 14px;
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   5. Stepper + forms (onboarding)
   -------------------------------------------------------------------------- */

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}

.stepper .pip {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  color: var(--muted);
}

.stepper .pip.is-done {
  background: var(--green);
  color: var(--ink);
}

.stepper .pip.is-current {
  background: var(--ink);
  color: var(--paper);
}

.stepper .rule {
  flex: 1 1 14px;
  height: 0;
  border-top: var(--border) dashed var(--rule-soft);
}

.page-head {
  margin-bottom: 22px;
}

.page-head h1 {
  margin-bottom: 8px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. Campus ID card (design.md 15/32)
   -------------------------------------------------------------------------- */

.id-card {
  position: relative;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.id-card::before {
  content: "";
  display: block;
  height: 46px;
  background: var(--blue);
  border-bottom: var(--border) solid var(--rule);
}

.id-card-body {
  padding: 18px 16px;
}

.id-card h2 {
  margin-bottom: 4px;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem);
}

.id-meta {
  margin: 0;
  display: grid;
  gap: 10px;
}

.id-meta > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px dashed var(--rule-soft);
}

.id-meta dt {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.id-meta dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.id-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: var(--paper-2);
  border-top: var(--border) dashed var(--rule-soft);
}

/* --------------------------------------------------------------------------
   7. Secret desk — the three slots (design.md 16/20)
   -------------------------------------------------------------------------- */

.secret-head {
  margin-bottom: 20px;
}

.secret-head h1 {
  margin-bottom: 6px;
}

.secret-search {
  margin-bottom: 22px;
}

.slots {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.slot {
  position: relative;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 14px;
}

.slot.is-empty {
  border-style: dashed;
  background: var(--paper-2);
}

.slot-num {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.slot.is-empty .slot-num {
  background: var(--white);
  color: var(--muted);
  border: 1.5px dashed var(--rule-soft);
}

.slot-empty-text {
  display: block;
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--muted);
}

.slot-name {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 800;
}

.slot-line {
  margin: 0 0 4px;
  font-size: 0.84rem;
  color: var(--muted);
}

.slot-roll {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 8px;
  background: var(--paper-2);
  border: 1.5px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot.is-selected {
  animation: stamp-in var(--normal) var(--ease) both;
}

@keyframes stamp-in {
  0% { transform: rotate(-3deg) scale(0.97); }
  100% { transform: rotate(0deg) scale(1); }
}

.slot-stamped {
  position: absolute;
  top: 12px;
  right: 10px;
}

/* Search results */
.results {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
}

.result-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
}

.result-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.result-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.result-roll {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.result form {
  width: 100%;
}

.notice-box {
  margin: 0 0 20px;
  padding: 13px 14px;
  background: var(--blue);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 700;
}

.seal-bar {
  position: sticky;
  bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  background: var(--paper);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.seal-bar .count {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   8. Sealing (design.md 22/42)
   -------------------------------------------------------------------------- */

.seal-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(38px, 9vw, 80px) 0;
  text-align: center;
}

.envelope {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 5 / 3;
  background: var(--blue);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.envelope::before,
.envelope::after {
  content: "";
  position: absolute;
  top: 0;
  width: 62%;
  height: 100%;
  background: rgba(255, 255, 255, 0.55);
  border-right: var(--border) solid var(--rule);
}

.envelope::before {
  left: 0;
  transform: skewY(28deg);
  transform-origin: top left;
  width: 78%;
}

.envelope::after {
  right: 0;
  transform: skewY(-28deg);
  transform-origin: top right;
  width: 78%;
  border-right: 0;
  border-left: var(--border) solid var(--rule);
}

.envelope-flap {
  position: absolute;
  inset: 0 0 auto;
  height: 58%;
  background: var(--white);
  border-bottom: var(--border) solid var(--rule);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: fold 700ms var(--ease) both;
  z-index: 3;
}

@keyframes fold {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(180deg); }
}

.paper-slide {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 62%;
  height: 70%;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius-sm);
  transform: translateX(-50%);
  animation: slide-in 800ms var(--ease) 180ms both;
  z-index: 2;
  padding: 8px;
}

@keyframes slide-in {
  0% { transform: translate(-50%, -46px); }
  100% { transform: translate(-50%, 0); }
}

.sealed-words {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 2.4vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  animation: pop var(--slow) var(--ease) 700ms both;
}

@keyframes pop {
  0% { opacity: 0; transform: scale(0.86); }
  60% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

.waiting-dots::after {
  content: "";
  animation: dots 1.6s steps(4, end) infinite;
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

/* --------------------------------------------------------------------------
   9. Dashboard / secret desk (design.md 23/24/46)
   -------------------------------------------------------------------------- */

.greeting {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
}

.greeting-note {
  margin-bottom: 22px;
  font-family: var(--hand);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  color: var(--ink-70);
}

.sealed-card {
  position: relative;
  text-align: center;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 18px 24px;
  overflow: hidden;
}

.sealed-card.is-empty {
  border-style: dashed;
  box-shadow: none;
  background: var(--paper-2);
}

.sealed-lock {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  background: var(--yellow);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  font-size: 1.7rem;
}

.sealed-card h2 {
  margin-bottom: 8px;
}

.sealed-card p {
  margin: 0 auto 16px;
  max-width: 34ch;
  color: var(--ink-70);
}

.waiting {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.3rem;
}

.waiting-doodle {
  display: inline-block;
  animation: sway 2.6s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

.campus-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
}

.campus-status > div {
  padding: 16px 14px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
}

.campus-status .figure {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.05;
}

.campus-status .caption {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Matches + reveal (design.md 25/26/27)
   -------------------------------------------------------------------------- */

.match-grid {
  display: grid;
  gap: 14px;
}

.match-card {
  position: relative;
  display: block;
  padding: 18px 16px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.match-card .heart {
  font-size: 1.7rem;
  line-height: 1;
}

.match-card h3 {
  margin: 10px 0 6px;
  font-size: 1.1rem;
}

.match-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.reveal-pair {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  text-align: center;
}

.reveal-who {
  padding: 16px 12px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
}

.reveal-who.is-you {
  background: var(--yellow);
}

.reveal-who .who {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.reveal-who .role {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.reveal-arrow {
  font-family: var(--hand);
  font-size: 1.6rem;
  line-height: 1;
}

.mutual-screen {
  position: relative;
  text-align: center;
  padding: clamp(30px, 8vw, 64px) 0;
}

.mutual-heart {
  font-size: clamp(2.6rem, 2rem + 5vw, 4.4rem);
  line-height: 1;
  animation: beat 1.5s ease-in-out infinite;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.14); }
  40% { transform: scale(1); }
  60% { transform: scale(1.08); }
}

.anticipation {
  margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 2vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
}

.anticipation.is-hidden {
  visibility: hidden;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0;
}

.countdown span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--hand);
  font-size: 1.3rem;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 6px;
}

/* --------------------------------------------------------------------------
   11. Privacy centre + notifications + invite
   -------------------------------------------------------------------------- */

.privacy-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.privacy-list li {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.94rem;
}

.danger-zone {
  border-color: var(--red-ink);
}

.danger-zone h2 {
  color: var(--red-ink);
}

.danger-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.notification-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.notification-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
}

.notification-item.is-unread {
  background: var(--yellow);
}

.notification-body {
  margin: 0;
  font-weight: 700;
  font-size: 0.94rem;
}

.notification-time {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--yellow);
  border-top: var(--border) solid var(--rule);
  border-bottom: var(--border) solid var(--rule);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: clamp(36px, 7vw, 68px);
}

.cta-inner h2 {
  margin-bottom: 6px;
}

/* ==========================================================================
   560px — pair things up
   ========================================================================== */

@media (min-width: 560px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-note {
    margin-top: 42px;
  }

  .steps {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  }

  .result {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .result form {
    width: auto;
    flex: none;
  }

  .seal-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .reveal-pair {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .danger-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .notification-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .match-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }
}

/* ==========================================================================
   760px — desktop composition
   ========================================================================== */

@media (min-width: 760px) {
  .hero {
    padding-block: clamp(56px, 7vw, 108px);
  }

  .seal-bar {
    bottom: 20px;
  }

  .steps {
    gap: 22px;
  }
}

@media (min-width: 900px) {
  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
  }

  .hero-note {
    margin-top: 0;
    transform: rotate(1.6deg);
  }

  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cta-inner .btn-row {
    flex: none;
  }
}

/* ==========================================================================
   13. Email verification banner
   ========================================================================== */

.verify-banner {
  background: var(--yellow);
  border-bottom: var(--border) solid var(--rule);
}

.verify-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-block: 9px;
}

.verify-banner-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   14. FAQ accordion
   ========================================================================== */

.faq-group {
  margin-top: 30px;
}

.faq-item {
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  margin-bottom: 10px;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--hand);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--ink-70);
}

/* ==========================================================================
   15. Blog + guides
   ========================================================================== */

.blog-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 18px;
  text-decoration: none;
}

.post-card h2 {
  font-size: 1.2rem;
  margin: 0;
}

.post-card .post-meta,
.post-meta {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-card p {
  margin: 0;
  color: var(--ink-70);
  font-size: 0.92rem;
}

.post-card .read {
  margin-top: auto;
  font-weight: 800;
  color: var(--red-ink);
}

.article {
  max-width: 68ch;
}

.article-body {
  font-size: 1.03rem;
}

.article-body h2 {
  margin-top: 1.6em;
}

.article-body h3 {
  margin-top: 1.4em;
}

.article-body ul,
.article-body ol {
  padding-left: 1.2em;
}

.article-body li {
  margin-bottom: 0.4em;
}

.article-body img {
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
}

.article-body blockquote {
  margin: 1.4em 0;
  padding: 10px 16px;
  border-left: 4px solid var(--red);
  background: var(--paper-2);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.pagination .page-link {
  padding: 8px 14px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  font-weight: 700;
  text-decoration: none;
}

.pagination .is-current {
  font-weight: 800;
}

/* ==========================================================================
   16. Growth: college landing, join, share cards
   ========================================================================== */

.join-hero {
  text-align: center;
  padding-block: clamp(30px, 7vw, 64px);
}

.join-hero .college-name {
  display: inline-block;
  margin: 4px 0 10px;
  padding: 4px 12px;
  background: var(--yellow);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.share-card {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  padding: 26px 22px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.share-card .share-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.share-card .share-title {
  font-size: clamp(1.6rem, 1.2rem + 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
}

.share-card .share-foot {
  font-family: var(--hand);
  font-size: 1.3rem;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

/* ==========================================================================
   17. Roses (optional, currently disabled)
   ========================================================================== */

.rose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 12px;
  margin-top: 14px;
}

.rose-card {
  position: relative;
  text-align: center;
  padding: 16px 12px;
  background: var(--paper-2);
  border: var(--border) dashed var(--rule-soft);
  border-radius: var(--radius);
  color: var(--muted);
}

.rose-card .rose-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.rose-card .rose-name {
  display: block;
  margin-top: 8px;
  font-weight: 800;
  color: var(--ink);
}

.rose-card .rose-price {
  display: block;
  font-size: 0.85rem;
}

.rose-card .rose-flag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  background: var(--yellow);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
/* ==========================================================================
   18. Pro Tips - editorial listing + long-form reading
   ========================================================================== */

.tips-hero {
  position: relative;
  padding-block: clamp(28px, 6vw, 64px) clamp(22px, 4vw, 38px);
  border-bottom: 1.5px dashed var(--rule-soft);
}

.tips-hero-grid {
  display: grid;
  gap: 30px;
  align-items: start;
}

.tips-hero-copy {
  max-width: 780px;
}

.tips-title {
  margin: 10px 0 18px;
  font-size: clamp(3.15rem, 2.1rem + 6.4vw, 6.5rem);
  line-height: 0.84;
  letter-spacing: -0.065em;
}

.tips-title .accent {
  color: var(--red-ink);
  background: linear-gradient(transparent 68%, var(--yellow) 68%, var(--yellow) 94%, transparent 94%);
  padding-inline: 0.04em;
}

.tips-lede {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-70);
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.16rem);
  font-weight: 600;
}

.tips-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(100%, 620px);
  margin-top: 26px;
  padding: 7px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tips-search-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--muted);
}

.tips-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  outline: 0;
}

.tips-search input::placeholder {
  color: var(--muted);
  font-weight: 600;
}

.tips-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.tips-search .btn {
  flex: none;
  min-height: 42px;
  box-shadow: none;
}

.tips-search-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.tips-search-note a {
  color: var(--ink);
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.tips-note {
  position: relative;
  padding: 26px 20px 18px;
  background: var(--yellow);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}

.tips-note .tape {
  background: rgba(255, 255, 255, 0.58);
}

.tips-note .hand {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem);
  line-height: 1.08;
}

.tips-note-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.tips-note-list li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-top: 8px;
  border-top: 1.5px dashed rgba(17, 17, 17, 0.26);
  font-size: 0.81rem;
  font-weight: 700;
}

.tips-note-list strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.tips-note-foot {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.6);
}

.tips-body {
  padding-block: clamp(28px, 5vw, 46px) clamp(20px, 4vw, 36px);
}

.tips-chips {
  display: flex;
  gap: 8px;
  margin: 0 0 26px;
  padding: 3px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tips-chips::-webkit-scrollbar {
  display: none;
}

.tip-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease);
}

.tip-chip span {
  color: var(--muted);
  font-size: 0.66rem;
}

.tip-chip:hover {
  transform: translateY(-1px);
  background: var(--paper-2);
}

.tip-chip.is-active {
  background: var(--ink);
  color: var(--paper);
}

.tip-chip.is-active span {
  color: var(--yellow);
}

.tips-lead-grid {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 6vw, 52px);
}

.tip-lead {
  display: grid;
  overflow: hidden;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform var(--normal) var(--ease), box-shadow var(--normal) var(--ease);
}

.tip-lead:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.tip-lead-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: var(--border) solid var(--rule);
}

.tip-lead-media img,
.tip-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--slow) var(--ease);
}

.tip-lead:hover .tip-lead-media img,
.tip-card:hover .tip-card-media img {
  transform: scale(1.025);
}

.tip-lead-stamp {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--paper);
}

.tip-lead-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 19px;
}

.tip-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tip-lead-title {
  font-size: clamp(1.55rem, 1.15rem + 2.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.tip-lead-excerpt {
  margin: 0;
  color: var(--ink-70);
  font-size: 0.96rem;
}

.tip-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.tip-lead .tip-read {
  margin-top: auto;
  padding-top: 4px;
}

.tips-picks {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.tips-picks > .tiny-label {
  margin-bottom: 2px;
}

.tip-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.tip-pick:nth-of-type(2) {
  transform: rotate(-0.7deg);
}

.tip-pick:nth-of-type(3) {
  transform: rotate(0.7deg);
}

.tip-pick:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-sm);
}

.tip-pick-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.tip-pick-meta {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tips-grid-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--rule-soft);
}

.tips-grid-head h2 {
  margin: 0;
  font-size: clamp(1.28rem, 1.1rem + 0.7vw, 1.75rem);
}

.tips-grid {
  display: grid;
  gap: 18px;
}

.tip-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.tip-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.tip-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: var(--border) solid var(--rule);
}

.tip-card-star {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: var(--yellow);
  border: var(--border) solid var(--rule);
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 1;
}

.tip-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px 15px 18px;
}

.tip-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.tip-card-excerpt {
  margin: 0;
  color: var(--ink-70);
  font-size: 0.87rem;
  line-height: 1.52;
}

.tip-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1.5px dashed var(--rule-soft);
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tip-pattern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  background-color: var(--yellow);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 12px,
    rgba(17, 17, 17, 0.075) 12px,
    rgba(17, 17, 17, 0.075) 13px
  );
  color: var(--ink);
}

.tip-pattern.accent-pink { background-color: var(--pink); }
.tip-pattern.accent-blue { background-color: var(--blue); }
.tip-pattern.accent-green { background-color: var(--green); }
.tip-pattern.accent-red { background-color: var(--red); }

.tip-pattern-mark {
  font-family: var(--hand);
  font-size: clamp(3rem, 9vw, 5.2rem);
  font-weight: 700;
  line-height: 0.8;
}

.tip-pattern-word {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tips-pagination {
  flex-wrap: wrap;
}

.tips-pagination .page-link {
  text-decoration: none;
}

.tips-pagination .page-link.is-disabled {
  opacity: 0.38;
  box-shadow: none;
}

.tips-empty {
  padding: 40px 22px;
  text-align: center;
}

.tips-empty .stamp {
  margin-bottom: 14px;
}

.tips-empty h2 {
  margin-bottom: 8px;
}

.tips-empty p {
  max-width: 46ch;
  margin: 0 auto 18px;
  color: var(--ink-70);
}

.tips-cta {
  margin-top: clamp(34px, 7vw, 72px);
  padding-block: clamp(34px, 7vw, 62px);
  background: var(--ink);
  color: var(--paper);
  border-top: var(--border) solid var(--rule);
}

.tips-cta-inner {
  display: grid;
  gap: 22px;
  align-items: center;
}

.tips-cta .tiny-label {
  color: rgba(247, 246, 241, 0.54);
}

.tips-cta h2 {
  margin: 6px 0 8px;
  color: var(--paper);
}

.tips-cta p {
  max-width: 48ch;
  margin: 0;
  color: rgba(247, 246, 241, 0.72);
}

.tips-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tips-cta .btn {
  border-color: var(--paper);
  box-shadow: 3px 3px 0 rgba(247, 246, 241, 0.72);
}

.tips-cta .btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   Article reading experience
   -------------------------------------------------------------------------- */

.reading-progress {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  left: 0;
  z-index: 49;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 80ms linear;
}

.tip-article-hero {
  padding-block: clamp(24px, 5vw, 46px) 0;
}

.tip-article-title {
  margin: 12px 0 16px;
  font-size: clamp(2.25rem, 1.5rem + 4.6vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.tip-article-dek {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-70);
  font-size: clamp(1.02rem, 0.96rem + 0.38vw, 1.22rem);
  font-weight: 600;
}

.tip-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--rule-soft);
}

.byline-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--yellow);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  font-weight: 800;
}

.byline-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.byline-copy strong {
  font-size: 0.88rem;
}

.byline-copy > span {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.byline-share {
  margin-left: auto;
}

.tip-cover {
  margin-top: clamp(22px, 4vw, 36px);
  margin-bottom: 0;
}

.tip-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tip-cover figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: right;
  text-transform: uppercase;
}

.tip-article-layout {
  display: grid;
  gap: 26px;
  padding-block: clamp(28px, 5vw, 54px);
  align-items: start;
}

.tip-toc-mobile {
  padding: 14px 16px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.tip-toc-mobile summary {
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tip-toc-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.tip-toc {
  display: none;
}

.toc-link {
  display: block;
  padding: 3px 0 3px 10px;
  border-left: 2px solid var(--rule-soft);
  color: var(--ink-70);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.toc-link:hover {
  border-color: var(--red);
  color: var(--ink);
}

.toc-level-3 {
  padding-left: 22px;
  font-weight: 600;
}

.tip-toc-top {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tip-article-body {
  min-width: 0;
  max-width: 68ch;
  font-size: 1.04rem;
}

.tip-article-body > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.68;
}

.tip-article-body > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  color: var(--red-ink);
  font-size: 3.1em;
  font-weight: 800;
  line-height: 0.76;
}

.tip-article-body h2 {
  display: flex;
  gap: 9px;
  align-items: baseline;
  clear: both;
  margin-top: 1.75em;
  padding-top: 1.05em;
  border-top: 1.5px dashed var(--rule-soft);
  scroll-margin-top: calc(var(--nav-h) + 18px);
}

.tip-article-body h2::before {
  content: "✦";
  color: var(--red-ink);
  font-size: 0.7em;
  line-height: 1;
}

.tip-article-body h3 {
  clear: both;
  margin-top: 1.55em;
  scroll-margin-top: calc(var(--nav-h) + 18px);
}

.tip-article-body h4 {
  margin-top: 1.4em;
}

.tip-article-body a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 36%;
  transition: background-size var(--fast) var(--ease);
}

.tip-article-body a:hover {
  background-size: 100% 100%;
}

.tip-article-body blockquote {
  position: relative;
  margin: 1.6em 0;
  padding: 20px 20px 16px 25px;
  background: var(--paper-2);
  border: var(--border) solid var(--rule);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  font-size: 1.06rem;
  font-weight: 700;
}

.tip-article-body blockquote::before {
  content: "“";
  position: absolute;
  top: -0.12em;
  right: 12px;
  color: var(--rule-soft);
  font-family: var(--hand);
  font-size: 3.4rem;
  line-height: 1;
}

.tip-article-body blockquote p:last-child {
  margin-bottom: 0;
}

.tip-article-body ul,
.tip-article-body ol {
  padding-left: 1.25em;
}

.tip-article-body li + li {
  margin-top: 0.38em;
}

.tip-article-body li::marker {
  color: var(--red-ink);
  font-weight: 800;
}

.tip-article-body mark {
  padding: 0 2px;
  background: var(--yellow);
  color: var(--ink);
}

.tip-article-body code {
  padding: 1px 5px;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

.tip-article-body pre {
  overflow-x: auto;
  margin: 1.5em 0;
  padding: 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}

.tip-article-body pre code {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
}

.tip-article-body hr {
  margin: 2em 0;
}

.tip-article-body figure {
  margin: 1.8em 0;
}

.tip-article-body figure img {
  display: block;
  width: 100%;
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.tip-article-body figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
}

.tip-article-body figure.image-style-side {
  float: right;
  width: min(46%, 300px);
  margin: 0 0 1em 1.3em;
}

.tip-article-body figure.image-style-align-left {
  float: left;
  width: min(46%, 300px);
  margin: 0 1.3em 1em 0;
}

.tip-article-body figure.image-style-align-center {
  margin-inline: auto;
}

.tip-article-body figure.table {
  overflow-x: auto;
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
}

.tip-article-body figure.table table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.tip-article-body table th,
.tip-article-body table td {
  padding: 9px 11px;
  border: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}

.tip-article-body table th {
  background: var(--paper-2);
  font-weight: 800;
}

.tip-endmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 38px 0 30px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 1.2rem;
  font-weight: 700;
}

.tip-endmark::before,
.tip-endmark::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1.5px dashed var(--rule-soft);
}

.tip-endmark span:first-child {
  color: var(--red-ink);
  font-family: var(--font);
}

.tip-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 16px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px dashed var(--rule-soft);
}

.tip-share-row .tiny-label {
  margin-right: auto;
}

.tip-inline-cta {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 22px 20px;
  background: var(--yellow);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tip-inline-cta h2 {
  margin: 5px 0 7px;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem);
}

.tip-inline-cta p {
  max-width: 46ch;
  margin: 0;
  color: var(--ink-70);
  font-size: 0.9rem;
}

.tip-inline-cta .btn {
  justify-self: start;
}

.tip-related {
  padding-block: clamp(36px, 7vw, 64px);
  background: var(--paper-2);
  border-top: 1.5px dashed var(--rule-soft);
  border-bottom: 1.5px dashed var(--rule-soft);
}

.tip-related .section-head {
  margin-bottom: 22px;
}

.tips-adjacent {
  display: grid;
  gap: 12px;
  padding-block: clamp(28px, 5vw, 46px);
}

.tip-adjacent-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--white);
  border: var(--border) solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}

.tip-adjacent-link strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.tip-adjacent-next {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Pro Tips responsive adaptation
   -------------------------------------------------------------------------- */

@media (min-width: 560px) {
  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tips-cta-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 760px) {
  .tips-hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
    align-items: center;
  }

  .tips-note {
    margin-top: 0;
  }

  .tips-cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tips-cta-actions {
    justify-content: flex-end;
  }

  .tips-adjacent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tip-inline-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 26px 24px;
  }

  .tip-inline-cta .btn {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .tips-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tips-lead-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
    align-items: stretch;
  }

  .tip-lead {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  }

  .tip-lead-media {
    border-right: var(--border) solid var(--rule);
    border-bottom: 0;
    aspect-ratio: auto;
    min-height: 340px;
  }

  .tip-lead-copy {
    padding: 26px 24px;
  }

  .tips-picks {
    justify-content: space-between;
  }

  .tip-pick {
    flex: 1;
    justify-content: center;
  }

  .tip-article-layout {
    grid-template-columns: 190px minmax(0, 68ch);
    justify-content: center;
    gap: 42px;
  }

  .tip-toc {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    display: block;
  }

  .tip-toc > nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
  }

  .tip-toc-mobile {
    display: none;
  }

  .tip-article-body figure.image-style-side {
    margin-right: -12%;
  }
}

@media (max-width: 559px) {
  .tips-search {
    flex-wrap: wrap;
  }

  .tips-search input {
    flex-basis: calc(100% - 48px);
  }

  .tips-search .btn {
    width: 100%;
  }

  .byline-share {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tip-lead,
  .tip-card,
  .tip-pick,
  .tip-chip,
  .tip-lead-media img,
  .tip-card-media img {
    transition: none;
  }
}

.toc-link.is-active {
  border-color: var(--red);
  color: var(--ink);
}

@media (min-width: 900px) {
  .tip-article-layout-solo {
    grid-template-columns: minmax(0, 68ch);
  }
}
