/* TH Pickleball shared 3-tab navigation and beginner learning; 2.68 */
.thpb-community-nav,.thpb-community-nav *,.thpb-community-learning,.thpb-community-learning *{box-sizing:border-box}
.thpb-community-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);z-index:1000;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(860px,100%);padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px));border:1px solid #dce8df;border-bottom:0;border-radius:16px 16px 0 0;background:#fff;box-shadow:0 -5px 20px rgba(17,65,46,.10);font:14px/1.35 system-ui,-apple-system,'Segoe UI',sans-serif;isolation:isolate}
.thpb-community-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-height:47px;border-radius:12px;color:#63796c;text-decoration:none;text-align:center;white-space:nowrap}
.thpb-community-nav a span{font-size:22px;line-height:25px}
.thpb-community-nav a b{font-size:12px;font-weight:750}
.thpb-community-nav a.is-active{background:#e5f4e9;color:#0a6542}
.thpb-community-nav a:focus-visible{outline:3px solid #298558;outline-offset:1px}
#xv-app,.mg-app{padding-bottom:108px!important}
body.thpb-community-page{margin:0;background:#f1f7f2;color:#173a2a;font:15px/1.55 system-ui,-apple-system,'Segoe UI',sans-serif}
.thpb-community-learning{max-width:860px;min-height:100vh;margin:0 auto;padding-bottom:108px;color:#173a2a}
.thpb-community-learning a{text-decoration:none}
.thpb-cl-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;background:#fff;border-bottom:1px solid #dbe8df}
.thpb-cl-header a{font-weight:850;color:#12553d;font-size:16px}
.thpb-cl-header small{color:#6c8071;font-size:11px}
.thpb-cl-main{display:grid;gap:14px;padding:15px}
.thpb-cl-hero{background:linear-gradient(125deg,#0e5439,#237d51);border-radius:20px;padding:23px 18px;color:#fff}
.thpb-cl-hero span,.thpb-cl-kicker{font-size:11px;font-weight:850;letter-spacing:.08em}
.thpb-cl-hero h1{font-size:24px;line-height:1.25;margin:7px 0 9px}
.thpb-cl-hero p{font-size:14px;line-height:1.55;margin:0;color:#ecfff3}
.thpb-cl-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.thpb-cl-tabs a{background:#fff;border:1px solid #dce7df;text-align:center;border-radius:12px;padding:10px 5px;color:#285542;font-size:13px;font-weight:800}
.thpb-cl-tabs a.active{border-color:#1e8a58;background:#dff3e7;color:#0b5c3d}
.thpb-cl-welcome,.thpb-cl-intro{padding:0 2px}
.thpb-cl-welcome h2,.thpb-cl-intro h2{margin:0 0 3px;font-size:18px;color:#184b36}
.thpb-cl-welcome p,.thpb-cl-intro p{margin:0;color:#63766a;font-size:13px}
.thpb-cl-category-list,.thpb-cl-list{display:grid;gap:10px}
.thpb-cl-category,.thpb-cl-item{display:flex;align-items:center;gap:13px;padding:16px;background:#fff;border:1px solid #dce8de;border-radius:16px;color:#154c35;box-shadow:0 2px 8px rgba(12,65,41,.035)}
.thpb-cl-category>span{font-size:27px;flex:0 0 36px;text-align:center}
.thpb-cl-category>div,.thpb-cl-item>div{display:grid;gap:4px;min-width:0;flex:1}
.thpb-cl-category b,.thpb-cl-item b{font-size:16px}
.thpb-cl-category small,.thpb-cl-item small{color:#65786d;font-size:12.5px;line-height:1.5}
.thpb-cl-category em{font-size:11px;color:#2e8d60;font-style:normal;font-weight:750}
.thpb-cl-category i,.thpb-cl-item i{font-size:24px;color:#80948a;font-style:normal}
.thpb-cl-index{width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;border-radius:9px;background:#e9f6ed;color:#186d46;font-size:13px;font-weight:850}
.thpb-cl-detail{background:#fff;border:1px solid #dce8df;border-radius:18px;padding:17px;display:grid;gap:12px}
.thpb-cl-detail h2{font-size:23px;line-height:1.23;color:#134b34;margin:0}
.thpb-cl-back{color:#13754c;font-weight:750;font-size:13px}
.thpb-cl-kicker{color:#3c9366}
.thpb-cl-muted{font-size:12px;color:#6c8073;margin:0}
.thpb-cl-field{padding:12px;border-radius:12px;background:#f4f8f4}
.thpb-cl-field strong,.thpb-cl-steps strong{font-size:13px;color:#20573e}
.thpb-cl-field p{margin:4px 0 0;font-size:14px}
.thpb-cl-steps{padding:12px;background:#edf7ef;border-radius:12px}
.thpb-cl-steps ol{margin:9px 0 0;padding-left:21px}
.thpb-cl-steps li{padding:0 0 9px;line-height:1.55;font-size:14px}
.thpb-cl-steps li:last-child{padding:0}
.thpb-cl-caution{font-size:12px;color:#65766d;margin:0}
.thpb-cl-note{background:#e7f2e9;border:1px solid #d6e8d9;border-radius:15px;padding:15px}
.thpb-cl-note h3{font-size:15px;margin:0 0 6px;color:#18533a}
.thpb-cl-note p{font-size:13px;margin:0 0 10px;color:#486d55}
.thpb-cl-note a{display:inline-block;color:#0e6947;font-size:13px;font-weight:800;margin:0 16px 6px 0}
/* The Academy's existing 8-section navigation becomes a secondary library menu,
   while the shared three-tab bar is the only fixed bottom navigation. */
body.thpb-lite-body .lite-nav{position:static;transform:none;width:100%;max-width:760px;z-index:1;flex-wrap:nowrap;margin:0 auto;overflow-x:auto;border-top:0;border-bottom:1px solid #e2e8ef;background:#fff;padding:9px 10px;justify-content:flex-start}
body.thpb-lite-body .lite-nav a{flex:0 0 81px;padding:4px 2px}
body.thpb-lite-body .lite-shell{padding-bottom:105px}
@media(max-width:360px){.thpb-community-nav a b{font-size:11px}.thpb-cl-tabs a{font-size:11px}.thpb-cl-header small{font-size:10px}}

.mg-scoreboard-view .thpb-community-nav{display:none}
.thpb-cl-install{border:1px solid #d7e6da;border-radius:14px;padding:12px 14px;background:#fff}
.thpb-cl-install summary{cursor:pointer;color:#175a3b;font-size:14px;font-weight:800}
.thpb-cl-install p{margin:9px 0;font-size:13px;color:#566c5e}
/* v2.70: lesson selector, inline lesson content, no back-to-list navigation */
.thpb-cl-picker{display:grid;gap:10px;background:#fff;border:1px solid #dce8df;border-radius:16px;padding:15px}
.thpb-cl-picker label{display:grid;gap:3px;color:#164b35;font-size:15px}
.thpb-cl-picker label span{font-size:12px;color:#5a7465}
.thpb-cl-picker select{width:100%;min-height:48px;border:1px solid #91bca1;border-radius:12px;background:#f7fbf8;padding:10px 34px 10px 12px;color:#154d35;font:600 15px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif;cursor:pointer}
.thpb-cl-picker select:focus-visible{outline:3px solid #329367;outline-offset:2px}
.thpb-cl-select-submit{justify-self:start;border:0;border-radius:10px;background:#146844;color:#fff;font-weight:800;padding:11px 16px;cursor:pointer}
.thpb-cl-select-submit[hidden],.thpb-cl-detail[hidden]{display:none!important}
.thpb-cl-panels{min-width:0}
.thpb-cl-detail{min-width:0;overflow-wrap:anywhere}
.thpb-cl-detail h3{font-size:14px;line-height:1.35;color:#17563b;margin:0}
.thpb-cl-field p{white-space:normal;line-height:1.65}
.thpb-cl-field{border-left:3px solid #b5d9c2}
.thpb-cl-field:has(h3):nth-of-type(3),.thpb-cl-field:has(h3):nth-of-type(4){background:#eaf5ed}
.thpb-cl-steps li{padding-bottom:11px;line-height:1.65}
.thpb-cl-empty{padding:16px;background:#fff;border-radius:12px}
@media(max-width:500px){.thpb-cl-detail h2{font-size:20px}.thpb-cl-field{padding:12px}.thpb-cl-steps{padding:12px}}

/* v2.71: the only fixed tabs live in the unified /app/ shell. */
body.thpb-embedded .thpb-community-nav {display:none!important}
body.thpb-embedded #xv-app,body.thpb-embedded .mg-app,body.thpb-embedded .thpb-community-learning{padding-bottom:18px!important}
body.thpb-embedded .thpb-community-learning{min-height:auto}
.thpb-cl-levels{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0}
.thpb-cl-levels a{display:grid;align-items:center;text-align:center;min-height:44px;border-radius:11px;padding:9px 12px;border:1px solid #cce0d1;background:#fff;color:#31654b;font-size:13px;font-weight:800;text-decoration:none}
.thpb-cl-levels a.active{background:#176d48;color:#fff;border-color:#176d48}
.thpb-cl-admin{display:block!important;border:1px solid #9bc9a9;padding:10px 12px;border-radius:11px;background:#fff}

body.thpb-embedded #mg-install{display:none!important}

/* v2.72: non-sensitive learning highlights controlled by scoped club managers */
.thpb-cl-manager,.thpb-cl-feature{background:#fff;border:1px solid #cfe2d3;border-radius:14px;padding:15px;margin:14px 0}
.thpb-cl-manager h2{margin:0 0 6px;font-size:18px}.thpb-cl-manager p{color:#597a61;font-size:13px}
.thpb-cl-manager form{display:grid;gap:12px}.thpb-cl-manager label{display:grid;gap:5px;font-size:13px;font-weight:750}
.thpb-cl-manager select,.thpb-cl-manager textarea{width:100%;min-height:42px;background:#fff;border:1px solid #abcdb8;padding:9px;border-radius:9px;font:inherit}
.thpb-cl-manager button{background:#176d48;color:#fff;padding:11px;border:0;border-radius:10px;font-weight:800;cursor:pointer}
.thpb-cl-manager-note,.thpb-cl-manager-saved{padding:11px 13px;border-radius:10px;background:#ecf6ec;color:#1c583b}
.thpb-cl-feature{display:grid;gap:5px}.thpb-cl-feature b{font-size:12px;color:#35634b}.thpb-cl-feature a{color:#176d48;font-weight:800}
.thpb-cl-manage-entry a{display:block;text-decoration:none;background:#edf5ef;border:1px solid #cee2d3;border-radius:10px;padding:11px;color:#186e45;font-weight:800}

/* v2.75: four clear learning buttons; the unified app keeps its three bottom tabs. */
.thpb-cl-hero-simple{padding:15px 16px;border-radius:14px}
.thpb-cl-hero-simple h1{font-size:20px;margin:0 0 3px}
.thpb-cl-hero-simple p{font-size:13px}
.thpb-cl-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.thpb-cl-four button{appearance:none;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:0;min-height:69px;padding:10px 4px;border:1px solid #d1e3d5;border-radius:13px;background:white;color:#225b3f;font:700 12px/1.3 system-ui,-apple-system,'Segoe UI',sans-serif;cursor:pointer}
.thpb-cl-four button.active{color:#fff;background:#176d48;border-color:#176d48;box-shadow:0 3px 12px #176d4822}
.thpb-cl-four button:focus-visible{outline:3px solid #4fa577;outline-offset:2px}
.thpb-cl-four button span{font-size:12px;overflow-wrap:normal;text-align:center}
.thpb-cl-category-panel[hidden],.thpb-cl-detail[hidden]{display:none!important}
.thpb-cl-category-panel{display:grid;gap:12px;min-width:0}
.thpb-cl-category-panels{min-width:0}
.thpb-cl-unlock{background:#fff;border:1px solid #d4e7d9;border-radius:13px;padding:12px;margin:0;font-size:13px}
.thpb-cl-unlock a{color:#13754c;font-weight:700}
@media(max-width:430px){.thpb-cl-four button{min-height:65px;padding:9px 2px}.thpb-cl-four button span{font-size:11px}.thpb-cl-main{gap:11px;padding:12px}.thpb-cl-picker{padding:12px}}

/* v2.76: make the A–B–A–B exchange unmistakable on every 2-player lesson. */
.thpb-cl-partner{background:#eff8f1;border-left-color:#22875b}
.thpb-cl-rhythm{display:flex;align-items:center;gap:7px;margin:11px 0 6px;flex-wrap:wrap}
.thpb-cl-rhythm span{min-width:35px;height:35px;display:inline-grid;place-items:center;border-radius:10px;background:#176d48;color:#fff;font-size:16px;font-weight:850}
.thpb-cl-rhythm span:nth-of-type(even){background:#26649a}
.thpb-cl-rhythm i{font-size:17px;font-style:normal;color:#527b64;font-weight:700}
.thpb-cl-rhythm-note{display:block;margin-top:8px;color:#416f53;font-size:12px;line-height:1.5}


/* v2.88: compact lesson discovery inside the main 4-tab PWA.
   Standalone /tap-luyen/ and public/coach lesson content stay intact. */
body.thpb-embedded .thpb-cl-header,
body.thpb-embedded .thpb-cl-hero-simple { display:none!important; }
body.thpb-embedded .thpb-cl-main {
  gap:10px;
  padding:12px 12px 18px;
}
body.thpb-embedded .thpb-cl-four { gap:6px; }
body.thpb-embedded .thpb-cl-four button {
  min-height:62px;
  padding:7px 3px;
  gap:2px;
}
body.thpb-embedded .thpb-cl-picker {
  padding:10px 12px;
  gap:6px;
  border-radius:12px;
}
body.thpb-embedded .thpb-cl-picker label { font-size:13px; }
body.thpb-embedded .thpb-cl-picker select {
  min-height:44px;
  padding-top:8px;
  padding-bottom:8px;
}
body.thpb-embedded .thpb-cl-category-panel { gap:10px; }
body.thpb-embedded .thpb-cl-detail {
  padding:14px;
  gap:10px;
  border-radius:14px;
}
body.thpb-embedded .thpb-cl-detail h2 { font-size:21px; }
@media(max-width:430px){
  body.thpb-embedded .thpb-cl-main {padding:9px 10px 18px;gap:8px}
  body.thpb-embedded .thpb-cl-picker {padding:9px 10px;gap:5px}
  body.thpb-embedded .thpb-cl-four button {min-height:59px;font-size:11px;line-height:1.2}
  body.thpb-embedded .thpb-cl-detail {padding:12px;gap:9px}
  body.thpb-embedded .thpb-cl-detail h2 {font-size:20px}
}
