.course-guide { background:#fffaf1; color:#143448; font-family:"IBM Plex Sans Thai",sans-serif; line-height:1.85; }
.course-guide main h1,.course-guide main h2 { font-family:"Noto Serif Thai",serif; line-height:1.5; }
.course-guide main h1 { font-size:clamp(1.9rem,3.5vw,2.9rem); margin:12px 0 24px; }
.course-guide main h2 { font-size:clamp(1.45rem,2.4vw,2rem); margin:0 0 18px; }
.course-guide main p { margin:0 0 18px; }
.course-guide main [hidden] { display:none!important; }
.course-guide main a:focus-visible,.course-guide main button:focus-visible,.course-guide main input:focus-visible { outline:3px solid #08778e;outline-offset:4px; }
.guide-hero { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:50px; align-items:center; padding-top:38px;padding-bottom:46px; }
.guide-hero p { max-width:740px; }
.guide-eyebrow { color:#237f96;font:600 .78rem/1.5 "Space Grotesk",sans-serif;letter-spacing:.1em; }
.guide-portrait { position:relative;isolation:isolate;margin:0;padding:12px 12px 15px;border:1px solid #d9c9a7;border-radius:150px 150px 25px 25px;background:linear-gradient(150deg,#fffef8,#f8efdc);box-shadow:0 12px 28px -18px #536c714d; }
.guide-portrait::before { content:"";position:absolute;z-index:-1;inset:12% -8px 25px;border-radius:46% 46% 24% 24%;background:#e4f3f5;transform:rotate(5deg); }
.guide-teacher { display:block;width:100%;height:auto;object-fit:contain;border-radius:135px 135px 14px 14px; }
.guide-signature { padding-top:14px;text-align:center;color:var(--teal-deep,#0f6f8c);font:italic 600 31px/1.2 "Cormorant Garamond",serif; }
.guide-jumps { display:flex;gap:12px;flex-wrap:wrap;margin-top:28px; }
.guide-jumps a { display:flex;align-items:center;min-height:48px;padding:9px 16px;border:1px solid #92cad7;border-radius:14px;color:#11546a;background:#edf9fb;text-decoration:none;font-weight:600;box-shadow:0 3px 0 #b8dce3; }
.guide-section { padding:36px 0;scroll-margin-top:115px; }
.guide-table { width:100%;border-collapse:separate;border-spacing:0;border:1px solid #ded9cd;border-radius:18px;overflow:hidden;background:#fffefa;table-layout:fixed;margin:26px 0; }
.guide-table th,.guide-table td { text-align:left;vertical-align:top;padding:26px 22px;border-bottom:1px solid #e8e2d6;overflow-wrap:anywhere; }
.guide-table thead th { background:#eef7f7;font-weight:600;font-size:.95rem; }
.guide-table th:first-child { width:24%; }
.guide-table th:nth-child(2) { width:44%; }
.guide-table tbody th { font-weight:600;font-size:1.05rem; }
.guide-table tr:last-child>* { border-bottom:0; }
.guide-table tbody tr:nth-child(even) { background:#fcfbf5; }
.guide-table p { font-size:1rem; }
.guide-note { display:block;color:#526570;font-size:.9rem;margin:12px 0; }
.guide-note a,.guide-detail-links a { color:#126b85;text-decoration:underline;text-underline-offset:3px; }
.guide-products { display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 18px; }
.guide-product { display:flex;flex:1 1 130px;align-items:center;gap:9px;padding:8px;border-radius:14px;background:#eaf5ef;border:1px solid #c6ddd1;font-size:.88rem;line-height:1.65;color:inherit;text-decoration:none; }
.guide-product img { width:60px;height:66px;object-fit:contain;flex-shrink:0; }
.guide-product.intensive { background:#edf1fb;border-color:#cbd6eb; }
.guide-product.government { background:#faf1df;border-color:#e5d1a7; }
.guide-product.tenses,.guide-product.grammar { background:#fbefee;border-color:#e8d4cc; }
.guide-product.tenses img,.guide-product.grammar img { width:67px;height:94px; }
.guide-operator { color:#38849b;font-size:1.2rem; }
.guide-prices { font-size:.95rem; }
.guide-prices>p { margin-bottom:10px!important; }
.guide-prices strong { font-size:1.25rem;color:#125e76;white-space:nowrap; }
.guide-actions { display:grid;gap:12px;margin:18px 0; }
.guide-button { display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:48px;padding:10px 16px;border:1px solid #198ca9;border-radius:14px;background:linear-gradient(#13809a,#0c657f);box-shadow:inset 0 1px 0 #ffffff80,0 4px 0 #106d86,0 6px 12px #12617b1a;color:white!important;text-align:center;font:600 .95rem/1.65 "IBM Plex Sans Thai",sans-serif;text-decoration:none;cursor:pointer; }
.guide-button:hover { background:linear-gradient(#0e7690,#09556d); }
.guide-button:active { transform:translateY(2px);box-shadow:0 2px 0 #106d86; }
.guide-button:disabled { opacity:.6;cursor:wait; }
.guide-button.secondary { color:#125c70!important;background:#e5f5fa;box-shadow:0 3px 0 #b0d8e2; }
.guide-detail-links { display:grid;gap:10px;font-size:.88rem; }
.guide-credit-link { display:block;margin-top:18px;color:#526570;font-size:.85rem;text-underline-offset:3px; }
.guide-book-friends { width:110px;height:100px;object-fit:contain; }
.guide-live,.guide-credit { display:flex;align-items:center;gap:30px;padding:28px;background:#f5efe0;border:1px solid #dfceab;border-radius:22px;margin:38px 0; }
.guide-live img { width:210px;height:150px;object-fit:cover;border-radius:14px; }
.guide-credit img { width:200px;height:auto; }
.guide-reassurance { max-width:820px;margin:50px auto;text-align:center; }
.guide-cart { padding:30px;border:1px solid #b8dce4;border-radius:22px;background:#f3fafb; }
.guide-cart-item { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #d7e7e8; }
.guide-cart-item small { display:block; }
.guide-cart button:not(.guide-button),#shop-retry { min-height:44px;padding:8px 14px;border:1px solid #94bfc9;border-radius:10px;background:#fffdf5;color:#175369;font:inherit;cursor:pointer; }
#cart-total,#cart-pay-total { margin:22px 0;font-size:1.3rem;font-weight:600; }
#cart-checkout { margin-top:32px;scroll-margin-top:110px;max-width:780px; }
#cart-checkout h3 { font-size:1.25rem;margin-bottom:20px; }
#cart-checkout form { display:grid;gap:18px;max-width:540px; }
#cart-checkout label { display:grid;gap:7px;font-weight:500; }
#cart-checkout input { width:100%;min-width:0;min-height:48px;padding:12px;border:1px solid #98c6d3;border-radius:12px;background:#fffefa;font:inherit; }
#cart-qr { width:228px;height:228px;background:white;padding:12px;margin:22px 0; }
#cart-order-status { margin-top:20px;color:#165b70;font-weight:600; }
.guide-cart-notice { position:fixed;bottom:18px;left:50%;transform:translateX(-50%);width:min(94vw,640px);display:flex;align-items:center;gap:14px;padding:15px 20px;border:1px solid #a2cad2;border-radius:18px;background:#fffdf5;box-shadow:0 8px 30px #153e4940;z-index:100; }
.guide-cart-notice p { flex:1;margin:0!important;font-size:.95rem; }
.guide-cart-notice>button { min-width:44px;min-height:44px;border:0;background:transparent;font-size:1.4rem;color:#153e49;cursor:pointer; }
@media(max-width:1000px) { .guide-hero { grid-template-columns:minmax(0,1fr) 210px;gap:20px; }.guide-table th,.guide-table td{padding:20px 14px}.guide-product{flex-basis:100%}.guide-table th:first-child{width:23%}.guide-table th:nth-child(2){width:42%} }
@media(max-width:760px) { .guide-hero{grid-template-columns:1fr;padding-top:24px}.guide-portrait{grid-row:1;width:min(100%,210px);justify-self:center}.guide-signature{font-size:28px}.guide-table,.guide-table tbody,.guide-table tr,.guide-table th,.guide-table td{display:block;width:100%!important}.guide-table{border:0;background:transparent;overflow:visible}.guide-table thead{display:none}.guide-table tbody tr{border:1px solid #ded9cd;border-radius:18px;background:#fffefa;margin:22px 0;overflow:hidden}.guide-table th,.guide-table td{border:0;padding:20px}.guide-table th{background:#edf6f5;padding-bottom:18px}.guide-table td:last-child{padding-top:0}.guide-products{margin-bottom:16px}.guide-product{flex-basis:130px}.guide-section{padding:25px 0}.guide-live,.guide-credit{flex-direction:column;align-items:start;padding:22px;gap:20px}.guide-live img{width:100%;height:auto;max-height:220px;object-fit:cover}.guide-credit img{align-self:center}.guide-cart{padding:20px}.guide-cart-notice{gap:8px;padding:12px}.guide-cart-notice .guide-button{font-size:.85rem;padding:8px}.guide-jumps{gap:10px}.guide-jumps a{flex:1 1 180px}.guide-cart-item{align-items:start}.guide-cart-item>div{min-width:0} }
@media(prefers-reduced-motion:reduce){.guide-button:active{transform:none}}

/* Keep paired course names readable without splitting English words on narrow cards. */
.guide-product strong { overflow-wrap:normal;word-break:normal; }
@media(max-width:1000px){.guide-products{flex-direction:column;align-items:stretch}.guide-product{flex:0 0 auto;width:100%}.guide-operator{align-self:center}.guide-table tr[data-mode="sequence"] .guide-operator{transform:rotate(90deg)}}
@media(max-width:760px){.course-guide .line-float{display:none}}

/* Owner-approved solid premium frames for the three decision paths. */
.course-guide .guide-jumps a,
.course-guide :is(#toeic-title,#government-title,#work-title,#everyday-title,#books-title) {
 box-sizing:border-box;max-width:100%;padding:14px 18px;border:1px solid #57a4b5;
 border-radius:16px;background:#0f6f8c;color:#fff;
 box-shadow:inset 0 1px 0 #ffffff70,0 4px 0 #084b60,0 9px 16px -12px #123f50;
 text-wrap:pretty;
}
.course-guide .guide-jumps a {flex:1 1 200px;justify-content:center;min-height:56px;line-height:1.7;font-size:16px;}
.course-guide .guide-jumps a:hover {background:#0a6079;}
.course-guide .guide-jumps a:focus-visible {outline:3px solid #c59747;outline-offset:5px;}
.course-guide .guide-jumps a:active {transform:translateY(2px);box-shadow:inset 0 1px 0 #ffffff55,0 2px 0 #084b60;}
.course-guide :is(#toeic-title,#government-title,#work-title,#everyday-title,#books-title) {width:fit-content;margin:0 0 24px;cursor:default;}

@media(max-width:560px){
 /* Same 180px mascot and vertically stacked heading as the Homepage book card. */
 .course-guide .mobile-product-card__head--books {display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:24px;text-align:center;}
 .course-guide .mobile-product-card__head--books>img {width:180px;height:180px;max-width:100%;object-fit:contain;margin:0;}
 .course-guide .mobile-product-card__head--books h3 {width:100%;margin:0;text-align:center;font-size:24px;line-height:34px;}
 .course-guide .mobile-product-card__books img {aspect-ratio:4/5;object-fit:contain;}
}
/* Keep the two real covers equally tall in recommendation-table thumbnails too. */
.course-guide .guide-product:is(.tenses,.grammar) img {width:67px;height:auto;aspect-ratio:4/5;object-fit:contain;}
/* Owner removed the duplicate total tickets for Foundation→Intensive and the urgent plan. */
.course-guide :is(tr[data-mode="sequence"],tr[data-mode="urgent"]) .guide-prices>p:last-child {display:none;}
@media(max-width:560px){
 /* Long approved recommendations use the full card width instead of a narrow mascot column. */
 .course-guide .mobile-product-card__head>div {display:contents;}
 .course-guide .mobile-product-card__head>div>h3 {grid-column:2;grid-row:1;margin-bottom:0;}
 .course-guide .mobile-product-card__head>div>p {grid-column:1/-1;grid-row:2;line-height:1.75;}
}

@media(max-width:767px){
 /* Phone recommendations show each price on its purchase button only. Keep delivery notes. */
 .course-guide .guide-prices>p{display:none!important;}
 .course-guide .guide-prices>p:has(.guide-note:not(:empty)){display:block!important;font-size:0;line-height:0;}
 .course-guide .guide-prices>p>strong,.course-guide .guide-prices>p>br{display:none!important;}
 .course-guide .guide-prices .guide-note{display:block;margin:0;font-size:14px;line-height:1.7;}
 .course-guide .guide-table td:nth-child(2)>p:last-child{margin-bottom:0;}
}
/* Deep-linked recommendations clear the actual responsive header. */
.course-guide :is(#toeic,#government,#work,#everyday,#books,#grammar-reading,#tenses-reading){scroll-margin-top:calc(var(--guide-header-height,100px) + 20px);}

/* Phone decision guide: section labels and action roles stay visually distinct. */
@media (max-width:700px) {
 .course-guide :is(#toeic-title,#government-title,#work-title,#everyday-title,#books-title) {
  box-sizing:border-box;display:block;width:100%;max-width:100%;margin:0 0 22px;
  padding:15px 16px;border:1px solid #567c8c;border-radius:16px;
  color:#fff;background:linear-gradient(145deg,#254f63,#183b4e);
  box-shadow:inset 0 1px 0 #ffffff60,0 4px 0 #102e3d,0 10px 18px -14px #102e3d80;
  cursor:default;
 }
 .course-guide #books-title>span {display:block;}
 .course-guide .guide-jumps {gap:12px;}
 .course-guide .guide-jumps a {
  background:linear-gradient(#365f7c,#274b68);border-color:#7294ac;
  box-shadow:inset 0 1px 0 #ffffff60,0 4px 0 #1b374e,0 8px 14px -12px #16384f;
 }
 .course-guide .guide-jumps a:hover {background:#274b68;}
 .course-guide .guide-button:not(.secondary):not([href*="line.me"]) {
  background:linear-gradient(#087e8d,#066777);border-color:#55a7ad;
  box-shadow:inset 0 1px 0 #ffffff70,0 4px 0 #064d5a,0 8px 14px -12px #174653;
 }
 .course-guide .guide-button:not(.secondary):not([href*="line.me"]):hover {background:#066777;}
 .course-guide .guide-button.secondary {
  background:#fffaf0;color:#194b60!important;border-color:#9bb8c0;
  box-shadow:inset 0 1px 0 #fff,0 3px 0 #d6e3e3;
 }
 .course-guide .guide-actions .guide-button {min-height:52px;}
 .course-guide .guide-detail-links a {color:#245571;text-underline-offset:4px;}
}
@layer jane-reading-standard {
 @media (max-width:700px) {
  body.jane-reading-standard.course-guide :is(#toeic-title,#government-title,#work-title,#everyday-title) {
   font-size:22px!important;line-height:1.6!important;
  }
  body.jane-reading-standard.course-guide #books-title {
   font-size:21px!important;line-height:1.65!important;
  }
 }
 @media (max-width:374px) {
  body.jane-reading-standard.course-guide #books-title {font-size:18px!important;}
 }
}

/* Keep the approved desktop break, and give each phone choice its full row. */
.guide-hero .guide-goal-break {display:block;}
/* These two work-path links are secondary choices, distinct from section labels. */
.course-guide #work .guide-jumps a {
 background:transparent;color:#11546a;border-color:#82acb8;box-shadow:none;
}
.course-guide #work .guide-jumps a:hover {
 background:transparent;color:#0f2a38;border-color:#0f6f8c;text-decoration:underline;text-underline-offset:4px;
}
.course-guide #work .guide-jumps a:active {transform:none;box-shadow:none;}
@layer jane-reading-standard {
 @media(max-width:767px) {
  body.jane-reading-standard.course-guide #everyday-title {
   width:100%;padding-inline:12px;font-size:clamp(17px,4.6vw,20px)!important;
   line-height:1.6!important;white-space:nowrap!important;
  }
 }
}
@media(max-width:700px) {
 .course-guide .guide-hero .guide-jumps {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;}
 .course-guide .guide-hero .guide-jumps a {width:100%;min-width:0;padding:12px 8px;white-space:nowrap;font-size:16px;line-height:1.7;}
 .guide-hero .guide-goal-break {display:inline;}
}
@media(max-width:700px) {
 .course-guide #books>.guide-book-friends {display:block;margin-inline:auto;}
}

/* The same three table headings travel with each phone recommendation. */
.guide-mobile-label {display:none;}
@media(max-width:760px) {
 .course-guide .guide-table tbody tr {margin-block:18px;padding-block:0;background:#fffefa;border-color:#d4dfdf;box-shadow:0 5px 14px -12px #214b6255;}
 .course-guide .guide-table tbody tr>:is(th,td) {padding-block:18px;background:transparent;border-bottom:1px solid #e1e8e5;}
 .course-guide .guide-table tbody tr>th {font-size:18px;line-height:1.65;font-weight:600;}
 .course-guide .guide-table tbody tr>td:last-child {padding-top:16px;padding-bottom:20px;border-bottom:0;}
 .course-guide .guide-table .guide-mobile-label {
  display:block;margin:0 0 10px;color:#1d6478;font:600 14px/1.6 "IBM Plex Sans Thai",sans-serif;
 }
 .course-guide .guide-table tbody tr>th .guide-mobile-label {color:#486976;margin-bottom:8px;}
 .course-guide .guide-products {margin-bottom:12px;gap:8px;}
 .course-guide .guide-table td:nth-child(2)>p {margin-bottom:12px;}
 .course-guide .guide-table .guide-note {margin-block:10px 0;}
 .course-guide .guide-actions {margin:12px 0 16px;gap:10px;}
 .course-guide .guide-actions .guide-button {flex-wrap:wrap;column-gap:8px;row-gap:2px;padding:11px 12px;}
 .course-guide .guide-actions .guide-button>span {white-space:nowrap;}
 .course-guide .guide-detail-links {gap:8px;font-size:14px;line-height:1.7;}
 .course-guide .guide-credit-link {margin-top:16px;}
}
