/* /partners/amber/ — "Semester planner": ruled notebook paper, amber highlighter, sticky note,
   planner rows with amber tabs. Base tokens in /partners/partners.css.
   Amber #D9923F is a highlight colour only; text that must be readable uses --am-text. */

:root {
  --pv-brand: #d9923f;
  --pv-brand-ink: #2a1a08;
  --pv-brand-soft: rgba(217, 146, 63, 0.16);
  --pv-accent: #8a5a1a;
  --pv-bg: #fdf9f2;
  --pv-surface: #ffffff;
  --pv-surface-2: #fbf1e2;
  --pv-ink: #2a2318;
  --pv-muted: #655a4b;
  --pv-border: #ead9bf;
  --pv-link: #8a5a1a;
  --pv-ok: #2f7a3e;
  --pv-radius: 16px;
  --pv-radius-sm: 10px;
  --pv-shadow: 0 14px 36px rgba(138, 90, 26, 0.1);
  --pv-nav-bg: rgba(253, 249, 242, 0.92);
  --pv-nav-ink: #2a2318;
  --pv-nav-line: rgba(217, 146, 63, 0.3);
  --am-text: #8a5a1a;
  --am-rule: rgba(217, 146, 63, 0.22);
  --am-margin: rgba(214, 72, 72, 0.35);
}

body.pv--amber .pv-kicker { color: var(--am-text); }
body.pv--amber .pv-fact dt,
body.pv--amber .pv-card__where,
body.pv--amber .pv-house__district { color: var(--am-text); }
body.pv--amber .pv-step::before { color: var(--pv-brand-ink); }
body.pv--amber .pv-faq__icon::before,
body.pv--amber .pv-faq__icon::after { background: var(--am-text); }

/* Ruled paper behind the whole page */
body.pv--amber {
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--am-rule) 31px 32px);
  background-attachment: fixed;
}

/* =========================================================================
   Hero
   ========================================================================= */
.am-hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.6));
}
.am-hero::before {
  /* red margin line, like a notebook */
  content: ''; position: absolute; top: 0; bottom: 0; left: max(1rem, calc((100% - var(--pv-shell)) / 2 - 1.5rem)); width: 2px;
  background: var(--am-margin); pointer-events: none;
}
.am-hero__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.am-hero__kicker {
  display: inline-flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem;
  padding: 0.4rem 0.9rem 0.4rem 0.6rem; border-radius: 999px;
  background: var(--pv-surface-2); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--am-text);
}
.am-hero__kicker img { height: 22px; width: auto; }
.am-hero h1 {
  font-family: var(--pv-font-display);
  font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.035em;
  color: var(--pv-ink);
}
.am-hero h1 em {
  font-style: normal; position: relative; z-index: 0; white-space: normal;
  background: linear-gradient(104deg, transparent 0.5%, var(--pv-brand) 1.5%, rgba(217, 146, 63, 0.75) 60%, var(--pv-brand) 99%, transparent 99.5%);
  background-size: 100% 0.72em; background-repeat: no-repeat; background-position: 0 78%;
  padding: 0 0.1em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.am-hero__dek { max-width: 36rem; margin-top: 1.25rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--pv-muted); }
.am-hero__dek strong { color: var(--pv-ink); }
.am-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.am-hero__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 2px dotted var(--pv-border); list-style: none; }
.am-hero__facts li { display: flex; flex-direction: column; min-width: 0; }
.am-hero__facts strong { font-family: var(--pv-font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--pv-ink); line-height: 1.1; }
.am-hero__facts span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--am-text); margin-top: 0.25rem; }

/* ---------- Sticky note ---------- */
.am-note {
  position: relative; max-width: 24rem; width: 100%; margin-left: auto;
  padding: 2rem 1.5rem 1.5rem; border-radius: 4px;
  background: linear-gradient(180deg, #ffe9a8 0%, #fddd84 100%);
  color: #3a2a08;
  box-shadow: 0 24px 44px rgba(138, 90, 26, 0.22), 0 2px 0 rgba(0, 0, 0, 0.05);
  transform: rotate(1.6deg);
  font-family: var(--pv-font-body);
}
.am-note::after {
  /* curled corner */
  content: ''; position: absolute; right: 0; bottom: 0; width: 2.2rem; height: 2.2rem;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.08) 50%, #f3cf66 52%);
  border-radius: 0 0 4px 0;
}
.am-note__tape {
  position: absolute; left: 50%; top: -0.8rem; width: 6rem; height: 1.6rem; transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.am-note__title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #8a5a1a; }
.am-note__timeline { list-style: none; counter-reset: am; display: grid; gap: 0.55rem; margin-top: 0.9rem; }
.am-note__timeline li {
  counter-increment: am; position: relative; display: grid; gap: 0.1rem; padding-left: 2.1rem; font-weight: 700; font-size: 0.95rem; line-height: 1.25;
}
.am-note__timeline li::before {
  content: counter(am); position: absolute; left: 0; top: 0.05rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: grid; place-items: center; background: #2a1a08; color: #ffe9a8; font-size: 0.72rem; font-weight: 800;
}
.am-note__timeline li::after {
  content: ''; position: absolute; left: 0.7rem; top: 1.65rem; bottom: -0.55rem; width: 2px; background: rgba(42, 26, 8, 0.25);
}
.am-note__timeline li:last-child::after { display: none; }
.am-note__timeline small { font-weight: 500; font-size: 0.78rem; color: #6a4a12; }
.am-note__sub { margin-top: 1.2rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #8a5a1a; }
.am-note__check { list-style: none; display: grid; gap: 0.35rem; margin-top: 0.5rem; font-size: 0.88rem; font-weight: 600; }
.am-note__check li { position: relative; padding-left: 1.5rem; }
.am-note__check li::before {
  content: ''; position: absolute; left: 0.1rem; top: 0.2rem; width: 0.85rem; height: 0.85rem; border: 2px solid #2a1a08; border-radius: 3px;
}
.am-note__check li::after {
  content: ''; position: absolute; left: 0.38rem; top: 0.22rem; width: 0.3rem; height: 0.6rem;
  border: solid #2a1a08; border-width: 0 2.5px 2.5px 0; transform: rotate(40deg);
}

@media (max-width: 900px) {
  .am-hero__inner { grid-template-columns: 1fr; }
  .am-hero::before { display: none; }
  .am-note { margin: 1.25rem auto 0; transform: rotate(0.8deg); }
}

/* =========================================================================
   Sections
   ========================================================================= */
.am-data { background: rgba(251, 241, 226, 0.92); }
.pv-stat--wide { flex: 2 1 300px; max-width: min(100%, 52rem); }
@media (max-width: 480px) { .pv-stat--wide { flex-basis: 150px; } }

/* Planner rows with amber tabs */
.am-planner .pv-steps { gap: 0.6rem; }
.am-planner .pv-step {
  grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0 1.1rem;
  padding: 1rem 1.2rem 1rem 0; border: 0; border-radius: 0 var(--pv-radius-sm) var(--pv-radius-sm) 0;
  background: var(--pv-surface); border-left: 2px solid var(--am-margin);
  box-shadow: 0 1px 0 var(--pv-border);
}
.am-planner .pv-step::before {
  width: 3.4rem; height: 100%; min-height: 2.6rem; border-radius: 0 999px 999px 0;
  background: var(--pv-brand); color: var(--pv-brand-ink);
  font-family: var(--pv-font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0;
  margin-left: -1px;
}
.am-planner .pv-step h3 { font-family: var(--pv-font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.015em; }

.am-listings { background: rgba(255, 255, 255, 0.86); }
body.pv--amber .pv-card__badge { background: #ffe9a8; color: #3a2a08; }
.am-faq { max-width: 56rem; }
.am-guides__title { margin: 2rem 0 0.75rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pv-muted); }
.am-sources { display: grid; gap: 1.25rem; }

/* Final band — highlighter yellow-amber */
.am-final { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--pv-brand); color: var(--pv-brand-ink); text-align: center; }
.am-final h2 { font-family: var(--pv-font-display); font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 600; letter-spacing: -0.03em; }
.am-final p { max-width: 34rem; margin: 0.8rem auto 1.5rem; color: rgba(42, 26, 8, 0.8); }
.am-final .pv-btn--ink { background: #2a1a08; color: #ffe9a8; }

@media (prefers-reduced-motion: reduce) {
  .am-note { transform: none; }
  body.pv--amber { background-attachment: scroll; }
}
