/* anngoolink-teacher-profile — ported from design mockup shared/*.css.
   All rules scoped under .atp-teacher-profile to prevent leakage into the
   Kadence theme / Tutor dashboard. Header & back-to-top intentionally dropped
   (theme owns the shell). Tokens + base + layout + components + compact. */

/* ===== tokens (scoped) — tokens.css + compact.css color-parity overrides ===== */
.atp-teacher-profile {
  --cream-bg:#FFFAF6; --surface:#FFFFFF; --peach-soft:#FDF2EC; --peach-line:#FCE7DA;
  --blue-tint:#F1F6FC;
  --coral:#FA7053; --coral-strong:#ED5E37; --coral-soft:#FFE7DD;
  --green:#42B383; --green-soft:#E4F5EC;
  --gold:#FFB23C; --amber:#F4A02A;
  --blue:#5B9BD5; --blue-soft:#E7F1FB;
  --ink:#3C3A38; --ink-soft:#6F6A65; --ink-faint:#A8A29B;
  --border:#F1E7DD; --border-strong:#E7DACF;
  --font-sans:"Noto Sans TC",system-ui,-apple-system,"PingFang TC","Microsoft JhengHei",sans-serif;
  --font-round:"Baloo 2",var(--font-sans);
  --r-card:20px; --r-md:14px; --r-sm:10px; --r-pill:999px;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px; --s6:24px;
  --s7:32px; --s8:40px; --s9:48px; --s10:64px;
  --shadow-sm:0 2px 10px rgba(190,120,86,.07);
  --shadow-card:0 8px 24px rgba(190,120,86,.10);
  --shadow-card-hover:0 14px 30px rgba(190,120,86,.16);
  --shadow-cta:0 10px 22px rgba(249,116,78,.32);
  --container:1280px;
  --ease:cubic-bezier(.22,1,.36,1);

  background:var(--cream-bg); color:var(--ink);
  font-family:var(--font-sans); font-size:15px; line-height:1.7;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  scroll-behavior:smooth;
}

/* ===== base (scoped) ===== */
.atp-teacher-profile *,.atp-teacher-profile *::before,.atp-teacher-profile *::after{box-sizing:border-box}
.atp-teacher-profile img{max-width:100%;display:block}
.atp-teacher-profile a{color:inherit;text-decoration:none}
.atp-teacher-profile button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
.atp-teacher-profile input,.atp-teacher-profile select,.atp-teacher-profile textarea{font:inherit;color:inherit}
.atp-teacher-profile :focus-visible{outline:2px solid var(--coral);outline-offset:2px;border-radius:6px}
.atp-teacher-profile h1,.atp-teacher-profile h2,.atp-teacher-profile h3,.atp-teacher-profile h4,.atp-teacher-profile p,.atp-teacher-profile ul{margin:0}
.atp-teacher-profile ul{padding:0;list-style:none}

.atp-teacher-profile .container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:24px;padding-bottom:24px}
.atp-teacher-profile .ic{width:1em;height:1em;display:inline-block;vertical-align:-.14em;flex:none}
.atp-teacher-profile .muted{color:var(--ink-soft)} .atp-teacher-profile .faint{color:var(--ink-faint)}
.atp-teacher-profile .round{font-family:var(--font-round)}
.atp-teacher-profile .coral{color:var(--coral)}

.atp-teacher-profile .reveal{opacity:0;transform:translateY(14px)}
.atp-teacher-profile .reveal.in{opacity:1;transform:none;transition:opacity .6s var(--ease),transform .6s var(--ease)}
@media (prefers-reduced-motion:reduce){
  .atp-teacher-profile .reveal,.atp-teacher-profile .reveal.in{opacity:1!important;transform:none!important;transition:none!important}
}

/* ===== layout (scoped; header & to-top dropped) ===== */
.atp-teacher-profile .breadcrumb{display:inline-flex;align-items:center;gap:6px;color:var(--ink-soft);font-size:14px;font-weight:500;margin:18px 0 16px}
.atp-teacher-profile .breadcrumb:hover{color:var(--coral)}
.atp-teacher-profile .breadcrumb .ic{font-size:16px}

.atp-teacher-profile .layout{display:grid;grid-template-columns:30.5% 1fr;gap:2%;align-items:start}
.atp-teacher-profile .rail{display:flex;flex-direction:column;gap:24px;min-width:0}
.atp-teacher-profile .right-col{display:flex;flex-direction:column;gap:18px;min-width:0}
.atp-teacher-profile .body-col{display:flex;flex-direction:column;gap:24px;min-width:0}
.atp-teacher-profile .full-rows{display:flex;flex-direction:column;gap:24px;margin-top:24px}
.atp-teacher-profile .row-2{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}

.atp-teacher-profile .promo{
  margin-top:24px;background:linear-gradient(100deg,#FFF1E8,#FFE9DC);
  border:1px solid var(--peach-line);border-radius:var(--r-card);
  padding:18px 28px;display:flex;align-items:center;gap:16px;box-shadow:var(--shadow-sm);
}
.atp-teacher-profile .promo-ic{font-size:26px;flex:none}
.atp-teacher-profile .promo-text{font-size:16px;font-weight:700;color:var(--ink)}
.atp-teacher-profile .promo-text b{color:var(--coral)}

/* ===== components (scoped) ===== */
.atp-teacher-profile .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;
  border-radius:var(--r-sm);padding:12px 18px;line-height:1;
  transition:transform .18s var(--ease),box-shadow .18s var(--ease),background .18s}
.atp-teacher-profile .btn .ic{font-size:18px}
.atp-teacher-profile .btn-primary{background:var(--coral);color:#fff;box-shadow:var(--shadow-cta)}
.atp-teacher-profile .btn-primary:hover{background:var(--coral-strong);transform:translateY(-1px)}
.atp-teacher-profile .btn-primary:active{transform:translateY(0)}
.atp-teacher-profile .btn-block{width:100%}
.atp-teacher-profile .btn-lg{padding:15px 22px;font-size:16px}
.atp-teacher-profile .see-more{margin-left:auto;color:var(--coral);font-weight:700;font-size:13px;display:inline-flex;align-items:center;gap:4px;transition:gap .18s var(--ease)}
.atp-teacher-profile .see-more .ic{font-size:15px}
.atp-teacher-profile .see-more:hover{gap:8px}

.atp-teacher-profile .card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);box-shadow:var(--shadow-card);padding:24px}
.atp-teacher-profile .card-hover{transition:transform .25s var(--ease),box-shadow .25s var(--ease)}
.atp-teacher-profile .card-hover:hover{transform:translateY(-3px);box-shadow:var(--shadow-card-hover)}
.atp-teacher-profile .card-flush{padding:0;overflow:hidden}

.atp-teacher-profile .sec-head{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.atp-teacher-profile .sec-head h2{font-size:20px;font-weight:700;display:inline-flex;align-items:center;gap:10px;color:var(--ink)}
.atp-teacher-profile .sec-note{font-size:13px;color:var(--ink-faint);font-weight:500}
.atp-teacher-profile .sec-ic{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;flex:none}
.atp-teacher-profile .sec-ic .ic{font-size:18px}
.atp-teacher-profile .t-coral{background:var(--coral-soft);color:var(--coral)}
.atp-teacher-profile .t-green{background:var(--green-soft);color:var(--green)}
.atp-teacher-profile .t-blue{background:var(--blue-soft);color:var(--blue)}
.atp-teacher-profile .t-gold{background:#FFF3DC;color:var(--gold)}

.atp-teacher-profile .head-band{display:flex;align-items:center;gap:10px;padding:16px 22px}
.atp-teacher-profile .head-band h2{font-size:20px;font-weight:700;color:var(--ink);line-height:1.2;margin:0}
.atp-teacher-profile .head-band.peach{background:var(--peach-soft);border-bottom:1px solid var(--peach-line)}
.atp-teacher-profile .head-band.blue{background:var(--blue-tint);border-bottom:1px solid #DCEAF8}

.atp-teacher-profile .profile{position:relative}
.atp-teacher-profile .profile .photo-wrap{position:relative;border-radius:var(--r-card) var(--r-card) 0 0;overflow:hidden}
.atp-teacher-profile .profile .photo{width:100%;height:296px;object-fit:cover;object-position:center 28%;background:var(--coral-soft)}
.atp-teacher-profile .flag{position:absolute;top:14px;left:14px;width:38px;height:38px;border-radius:50%;background:#fff;border:2px solid #fff;box-shadow:var(--shadow-sm);overflow:hidden}
.atp-teacher-profile .flag img{width:100%;height:100%;object-fit:cover;display:block}
.atp-teacher-profile .hearts{position:absolute;top:12px;right:14px;color:var(--coral);font-size:18px;display:flex;gap:3px;opacity:.9}
.atp-teacher-profile .hearts .ic{filter:drop-shadow(0 1px 2px rgba(0,0,0,.12))}
.atp-teacher-profile .profile-body{padding:20px 22px 24px;text-align:center}
.atp-teacher-profile .pill{display:inline-flex;align-items:center;gap:6px;background:var(--coral-soft);color:var(--coral);font-weight:700;font-size:13px;padding:5px 13px;border-radius:var(--r-pill)}
.atp-teacher-profile .pill .flag-mini{width:15px;height:15px;border-radius:50%;border:1px solid #f0c9bd;overflow:hidden;flex:none}
.atp-teacher-profile .pill .flag-mini img{width:100%;height:100%;object-fit:cover;display:block}
.atp-teacher-profile .name{font-family:var(--font-round);font-size:30px;font-weight:800;color:var(--ink);margin-top:12px;line-height:1.1}
.atp-teacher-profile .furigana{font-size:13px;color:var(--ink-faint);letter-spacing:.14em;margin-top:3px}
.atp-teacher-profile .role{font-size:14px;color:var(--ink-soft);margin-top:9px}

.atp-teacher-profile .stats{display:flex;margin:18px 0;padding:14px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.atp-teacher-profile .stat{flex:1;text-align:center;position:relative;padding:0 4px}
.atp-teacher-profile .stat + .stat::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:1px;background:var(--border)}
.atp-teacher-profile .stat .num{font-family:var(--font-round);font-weight:800;font-size:20px;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:4px}
.atp-teacher-profile .stat .num .ic{font-size:16px}
.atp-teacher-profile .stat .num .star{color:var(--gold)} .atp-teacher-profile .stat .num .users{color:var(--coral)} .atp-teacher-profile .stat .num .book{color:var(--blue)}
.atp-teacher-profile .stat .lbl{font-size:12px;color:var(--ink-faint);margin-top:3px}

.atp-teacher-profile .about{position:relative;overflow:hidden}
.atp-teacher-profile .about-deco{position:absolute;top:-18px;right:-16px;width:140px;opacity:.8;pointer-events:none;mix-blend-mode:multiply}
.atp-teacher-profile .about-top{position:relative;min-height:200px}
.atp-teacher-profile .about-illus{position:absolute;right:0;top:6px;width:202px;pointer-events:none;mix-blend-mode:multiply}
.atp-teacher-profile .about-text{position:relative;max-width:58%}
.atp-teacher-profile .about-text p{margin-bottom:10px;color:var(--ink-soft)}
.atp-teacher-profile .about-text p:first-child{color:var(--ink);font-weight:600}
.atp-teacher-profile .bubble{position:absolute;top:8px;right:64px;background:#fff;border:1.5px solid var(--coral-soft);border-radius:14px;padding:5px 12px;font-family:var(--font-round);font-weight:700;color:var(--coral);font-size:14px;box-shadow:var(--shadow-sm)}
.atp-teacher-profile .bubble::after{content:"";position:absolute;bottom:-7px;left:20px;width:12px;height:12px;background:#fff;border-right:1.5px solid var(--coral-soft);border-bottom:1.5px solid var(--coral-soft);transform:rotate(45deg)}

.atp-teacher-profile .spec-block{margin-top:22px;position:relative}
.atp-teacher-profile .spec-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px 16px;margin-top:14px}
.atp-teacher-profile .spec{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ink)}
.atp-teacher-profile .spec .ic{font-size:17px;color:var(--coral);flex:none}
.atp-teacher-profile .spec.g .ic{color:var(--green)}

.atp-teacher-profile .video-frame{position:relative;border-radius:var(--r-md);overflow:hidden;background:#1c1a19;aspect-ratio:4/3}
.atp-teacher-profile .video-frame img,.atp-teacher-profile .video-frame iframe,.atp-teacher-profile .video-frame video{width:100%;height:100%;object-fit:cover;border:0;display:block}
.atp-teacher-profile .video-play{position:absolute;inset:0;margin:auto;width:58px;height:58px;border-radius:50%;background:rgba(249,116,78,.94);color:#fff;display:grid;place-items:center;box-shadow:0 6px 18px rgba(0,0,0,.3);transition:transform .2s var(--ease)}
.atp-teacher-profile .video-play .ic{font-size:26px;margin-left:3px}
.atp-teacher-profile .video-frame:hover .video-play{transform:scale(1.08)}

.atp-teacher-profile .books{display:flex;flex-wrap:wrap;gap:12px;margin:4px 0 16px}
.atp-teacher-profile .book{flex:0 0 calc((100% - 24px) / 3);text-align:center;display:block}
.atp-teacher-profile .book.atp-book-extra{display:none}
.atp-teacher-profile .books.atp-show-all .book.atp-book-extra{display:block}
.atp-teacher-profile .atp-see-more-btn{display:flex;align-items:center;gap:5px;width:fit-content;margin:0 auto 12px;color:var(--coral);font-weight:700;font-size:13px;background:none;border:0;cursor:pointer;transition:gap .18s var(--ease)}
.atp-teacher-profile .atp-see-more-btn:hover{gap:9px}
.atp-teacher-profile .atp-see-more-btn .ic{font-size:15px}
.atp-teacher-profile .book img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:8px;box-shadow:var(--shadow-sm);background:var(--peach-soft)}
.atp-teacher-profile .book .tag{display:inline-block;margin-top:9px;font-size:11px;font-weight:700;padding:3px 10px;border-radius:var(--r-pill)}
.atp-teacher-profile .tag-green{background:var(--green-soft);color:var(--green)}
.atp-teacher-profile .tag-blue{background:var(--blue-soft);color:var(--blue)}
.atp-teacher-profile .tag-coral{background:var(--coral-soft);color:var(--coral)}
.atp-teacher-profile .mat-list li{display:flex;align-items:flex-start;gap:8px;font-size:13.5px;color:var(--ink-soft);padding:4px 0}
.atp-teacher-profile .mat-list .ic{color:var(--green);font-size:16px;margin-top:3px;flex:none}

.atp-teacher-profile .course-row{display:flex;gap:14px;padding:16px 22px;border-bottom:1px solid var(--border);transition:background .18s}
.atp-teacher-profile .course-row-link{color:inherit;text-decoration:none;cursor:pointer}
.atp-teacher-profile .course-row:last-child{border-bottom:0}
.atp-teacher-profile .course-row:hover{background:#FFFBF8}
.atp-teacher-profile .course-row-link:focus-visible{outline:3px solid rgba(42,116,202,.35);outline-offset:-3px;background:#FFFBF8}
.atp-teacher-profile .course-row-link:hover .course-title{color:var(--navy)}
.atp-teacher-profile .course-row-link:hover .btn-primary{background:var(--coral-strong);transform:translateY(-1px)}
.atp-teacher-profile .course-thumb{width:92px;height:92px;border-radius:var(--r-md);object-fit:cover;flex:none;background:var(--peach-soft)}
.atp-teacher-profile .course-info{flex:1;min-width:0;display:flex;flex-direction:column}
.atp-teacher-profile .course-title{font-size:16px;font-weight:700;color:var(--ink)}
.atp-teacher-profile .course-desc{font-size:13px;color:var(--ink-soft);margin-top:4px}
.atp-teacher-profile .course-meta{display:flex;gap:16px;font-size:12px;color:var(--ink-faint);margin-top:8px}
.atp-teacher-profile .course-meta span{display:inline-flex;align-items:center;gap:5px}
.atp-teacher-profile .course-meta .ic{font-size:14px}
.atp-teacher-profile .course-foot{display:flex;align-items:center;justify-content:space-between;margin-top:10px;gap:10px}
.atp-teacher-profile .price{font-family:var(--font-round);font-weight:800;font-size:22px;color:var(--coral);white-space:nowrap}
.atp-teacher-profile .price small{font-size:12px;font-weight:700;margin-right:1px}
.atp-teacher-profile .course-foot .btn{padding:9px 16px;font-size:14px}

/* booking: real Fluent Booking embed lives in .atp-booking-embed; keep the card/head-band frame */
.atp-teacher-profile .atp-booking-embed{padding:18px 22px 22px}

.atp-teacher-profile .testi-row{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid var(--border)}
.atp-teacher-profile .testi-row:first-of-type{padding-top:2px}
.atp-teacher-profile .testi-row:last-of-type{border-bottom:0}
.atp-teacher-profile .testi-av{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none;background:var(--coral-soft)}
.atp-teacher-profile .testi-main{flex:1;min-width:0}
.atp-teacher-profile .testi-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.atp-teacher-profile .testi-name{font-weight:700;font-size:14px;color:var(--ink)}
.atp-teacher-profile .stars{display:inline-flex;gap:1px;color:var(--gold);font-size:13px}
.atp-teacher-profile .testi-tag{margin-left:auto;font-size:11px;font-weight:700;padding:3px 10px;border-radius:var(--r-pill)}
.atp-teacher-profile .testi-quote{font-size:13.5px;color:var(--ink-soft);margin-top:6px;line-height:1.65}
.atp-teacher-profile .testi-more{display:inline-flex;align-items:center;gap:5px;color:var(--coral);font-weight:700;font-size:13px;margin-top:14px;transition:gap .18s var(--ease)}
.atp-teacher-profile .testi-more:hover{gap:8px}

.atp-teacher-profile .contact{position:relative;overflow:hidden}
.atp-teacher-profile .contact-intro{font-size:14px;color:var(--ink-soft);margin-bottom:16px}
.atp-teacher-profile .contact-corgi{position:absolute;right:10px;bottom:54px;width:112px;pointer-events:none;mix-blend-mode:multiply}
.atp-teacher-profile .contact-bubble{position:absolute;right:18px;bottom:158px;background:#fff;border:1.5px solid var(--coral-soft);border-radius:14px;padding:5px 11px;font-family:var(--font-round);font-weight:700;color:var(--coral);font-size:13px;box-shadow:var(--shadow-sm)}
.atp-teacher-profile .contact-bubble::after{content:"";position:absolute;bottom:-7px;right:22px;width:12px;height:12px;background:#fff;border-right:1.5px solid var(--coral-soft);border-bottom:1.5px solid var(--coral-soft);transform:rotate(45deg)}

/* ===== compact overrides (scoped; loaded last, wins cascade) ===== */
.atp-teacher-profile .rail{gap:10px}
.atp-teacher-profile .right-col{gap:9px}
.atp-teacher-profile .full-rows{gap:11px;margin-top:11px}
.atp-teacher-profile .row-2{gap:14px}
.atp-teacher-profile .card{padding:13px}
.atp-teacher-profile .sec-head{margin-bottom:7px}
.atp-teacher-profile .head-band{padding:7px 18px}
.atp-teacher-profile .profile .photo{height:248px}
.atp-teacher-profile .profile-body{padding:9px 18px 11px}
.atp-teacher-profile .name{font-size:27px;margin-top:5px}
.atp-teacher-profile .furigana{margin-top:2px}
.atp-teacher-profile .role{margin-top:4px}
.atp-teacher-profile .stats{margin:7px 0;padding:7px 0}
.atp-teacher-profile .btn-lg{padding:11px 20px}
.atp-teacher-profile .about-top{min-height:58px}
.atp-teacher-profile .about-text p{margin-bottom:4px}
.atp-teacher-profile .about-illus{width:140px;top:2px}
.atp-teacher-profile .about-deco{width:108px}
.atp-teacher-profile .spec-block{margin-top:7px}
.atp-teacher-profile .spec-grid{margin-top:7px;gap:6px 14px}
.atp-teacher-profile .books{margin:2px 0 5px}
.atp-teacher-profile .mat-list li{padding:0;line-height:1.4}
.atp-teacher-profile .video-frame{aspect-ratio:4/3}
.atp-teacher-profile .course-row{padding:5px 18px}
.atp-teacher-profile .course-thumb{width:60px;height:60px}
.atp-teacher-profile .course-meta{margin-top:3px}
.atp-teacher-profile .course-foot{margin-top:4px}
.atp-teacher-profile .testi-row{padding:8px 0}
.atp-teacher-profile .testi-quote{margin-top:4px;line-height:1.55}
.atp-teacher-profile .testi-more{margin-top:8px}
.atp-teacher-profile .contact-intro{margin-bottom:6px}
.atp-teacher-profile .promo{padding:3px 24px;margin-top:11px}
.atp-teacher-profile .promo .btn{padding:9px 18px}

/* desktop content width parity */
@media (min-width:881px){ .atp-teacher-profile .container{padding-inline:40px} }

/* ===== responsive ===== */
@media (max-width:880px){
  .atp-teacher-profile .layout{grid-template-columns:1fr;gap:22px}
  .atp-teacher-profile .right-col{gap:22px}
  .atp-teacher-profile .full-rows{gap:22px;margin-top:0}
  .atp-teacher-profile .row-2{grid-template-columns:1fr;gap:22px}
  .atp-teacher-profile #courses{margin-top:22px;scroll-margin-top:104px}
  .atp-teacher-profile .promo{flex-wrap:wrap}
}
@media (max-width:560px){
  .atp-teacher-profile .container{padding-inline:16px}
  .atp-teacher-profile .about-text{max-width:100%}
  .atp-teacher-profile .about-illus,.atp-teacher-profile .about-deco,.atp-teacher-profile .bubble{display:none}
  .atp-teacher-profile .name{font-size:26px}
}
