/* Instructor page (/@handle). Self-contained on purpose: it must not copy the
   platform nav/footer styles (the instructor page has its own minimal chrome).
   Uses only the design tokens from styles.css. */
:root {
  --font-display: "Poppins", "Noto Sans TC", system-ui, sans-serif;
  --font-body: "Noto Sans TC", "Poppins", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg-page); color: var(--text-body); font-family: var(--font-body); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text-strong); margin: 0; letter-spacing: -0.01em; font-weight: 900; }
.ip-wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.dot { color: var(--orange-500); }

.ip-btn { font-family: var(--font-display); font-weight: 700; border: 0; border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all .18s; white-space: nowrap; padding: 10px 18px; font-size: 14px; }
.ip-btn-primary { background: var(--orange-500); color: var(--ink-900); }
.ip-btn-primary:hover { background: var(--orange-600); box-shadow: var(--shadow-orange); }
.ip-btn-ghost { background: transparent; color: var(--text-strong); }
.ip-btn-ghost:hover { background: var(--grey-100); }
.ip-btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* minimal nav */
.ip-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.ip-nav .ip-wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.ip-wordmark { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.04em; color: var(--ink-900); line-height: 1; }
.ip-wordmark .i-dot { color: var(--orange-500); }
.ip-nav-links { display: flex; gap: 26px; margin-left: 12px; }
.ip-nav-links a { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--text-body); transition: color .18s; white-space: nowrap; }
.ip-nav-links a:hover { color: var(--orange-500); }
.ip-spacer { flex: 1; }
.nav-user { position: relative; }
.nav-avatar { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--white); color: var(--text-body); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; overflow: hidden; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-user-menu { position: absolute; right: 0; top: 46px; min-width: 120px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(10,10,28,.12); padding: 6px; }
.nav-user-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text-body); }
.nav-user-menu a:hover { background: var(--grey-100); }

/* hero */
.ip-hero { padding: 56px 0 32px; }
.ip-hero .ip-wrap { display: flex; gap: 28px; align-items: center; }
.ip-ava { width: 112px; height: 112px; border-radius: 50%; flex: none; overflow: hidden; background: var(--orange-100); color: var(--orange-700); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 44px; }
.ip-ava img { width: 100%; height: 100%; object-fit: cover; }
.ip-hero h1 { font-size: 44px; line-height: 1.15; overflow-wrap: anywhere; }
.ip-bio { font-size: 17px; line-height: 1.8; color: var(--text-muted); margin: 14px 0 0; max-width: 620px; white-space: pre-line; overflow-wrap: anywhere; }

/* sections */
.ip-section { padding: 32px 0 24px; scroll-margin-top: 80px; }
.ip-section h2 { font-size: 28px; }
.ip-sub { font-size: 15px; color: var(--text-muted); margin: 8px 0 22px; }
.ip-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ip-course { display: block; background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: box-shadow .18s, transform .18s; }
.ip-course:hover { box-shadow: 0 10px 28px rgba(10,10,28,.1); transform: translateY(-2px); }
.ip-thumb { aspect-ratio: 16 / 9; background: var(--orange-100) center / cover no-repeat; }
.ip-cbody { padding: 16px 18px 18px; }
.ip-cbody h3 { font-size: 17px; line-height: 1.4; }
.ip-cbody p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 8px 0 0; }

/* subscribe */
.ip-plan { max-width: 440px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.ip-toggle { display: inline-flex; background: var(--grey-100); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.ip-toggle button { border: 0; background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-body); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.ip-toggle button.active { background: var(--white); color: var(--text-strong); box-shadow: 0 1px 4px rgba(10,10,28,.12); }
.ip-price { display: flex; align-items: baseline; gap: 6px; }
.ip-price .cur { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-strong); }
.ip-price .amt { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -0.03em; color: var(--text-strong); }
.ip-price .per { font-size: 16px; color: var(--text-muted); }
.ip-note { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 14px 0 22px; min-height: 44px; }
.ip-note b { color: var(--text-body); font-weight: 600; }
.ip-plan .ip-btn { width: 100%; padding: 14px 18px; font-size: 16px; }
.ip-msg { font-size: 14px; line-height: 1.6; margin: 14px 0 0; color: #b91c1c; }
.ip-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--text-body); cursor: pointer; }
.ip-consent[hidden] { display: none; }
.ip-consent span { font-weight: 600; }
.ip-consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange-500); cursor: pointer; }
.ip-msg.info { color: var(--text-body); }

/* footer */
.ip-footer { margin-top: 40px; background: var(--ink-900); color: rgba(255,255,255,.7); padding: 28px 0 22px; }
.ip-footer .ip-wordmark { color: #fff; }
.ip-about { font-size: 14px; line-height: 1.7; max-width: 420px; color: rgba(255,255,255,.55); margin: 10px 0 0; }
.ip-footer-bottom { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: rgba(255,255,255,.4); }
.ip-footer-bottom a:hover { color: var(--orange-400); }

@media (max-width: 860px) {
  .ip-courses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ip-wrap { padding: 0 16px; }
  .ip-nav .ip-wrap { gap: 14px; }
  .ip-wordmark { font-size: 21px; }
  .ip-nav-links { gap: 16px; margin-left: 0; }
  .ip-nav-links a { font-size: 14px; }
  .ip-nav .ip-btn { padding: 8px 10px; }
  .ip-hero { padding: 36px 0 20px; }
  .ip-hero .ip-wrap { flex-direction: column; align-items: flex-start; }
  .ip-hero h1 { font-size: 32px; }
  .ip-courses { grid-template-columns: 1fr; }
  .ip-plan { padding: 20px; }
}
