/* Free resume builder: white background, black text, MahaGnan green. */
.rb-page { background: #fff; min-height: 100vh; color: #111; }
.rb-hero { background: linear-gradient(180deg, #f3f9ee 0%, #fff 100%); border-bottom: 1px solid #e4efdc; }
.rb-w { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.rb-hero .rb-w { padding-top: 34px; padding-bottom: 26px; }
.rb-eyebrow { display: inline-flex; gap: 8px; align-items: center; font: 700 12px/1 var(--display, inherit); letter-spacing: .14em; text-transform: uppercase; color: #2f6f0f; }
.rb-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #3c8614; box-shadow: 0 0 0 4px #d9ecc9; }
.rb-hero h1 { font-family: var(--display, inherit); font-size: clamp(30px, 5vw, 50px); line-height: 1.05; margin: 12px 0 8px; color: #0b0f0b; letter-spacing: .005em; }
.rb-hero h1 em { font-style: normal; color: #3c8614; }
.rb-hero p { margin: 0 0 14px; font-size: clamp(15px, 2vw, 18px); color: #3d4a38; max-width: 640px; }
.rb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-chips span { background: #fff; border: 1px solid #cfe3c1; color: #1f4a0a; border-radius: 99px; padding: 6px 12px; font-weight: 600; font-size: 13px; }

.rb-grid > * { min-width: 0; }
.rb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 24px; padding-top: 22px; padding-bottom: 60px; align-items: start; }
.rb-card { background: #fff; border: 1px solid #dfe8d8; border-radius: 18px; box-shadow: 0 1px 2px rgba(20, 40, 10, .04), 0 10px 30px -18px rgba(20, 40, 10, .25); }
.rb-steps { display: flex; gap: 6px; padding: 12px; overflow-x: auto; border-bottom: 1px solid #e8efe3; scrollbar-width: none; }
.rb-steps::-webkit-scrollbar { display: none; }
.rb-steps button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent; padding: 8px 12px; border-radius: 99px; font: 600 13.5px/1 inherit; color: #4b5a45; cursor: pointer; white-space: nowrap; }
.rb-steps button b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef4ea; color: #2f6f0f; font-size: 12px; }
.rb-steps button.on { background: #0f1a0f; color: #fff; }
.rb-steps button.on b { background: #3c8614; color: #fff; }
.rb-steps button.done b { background: #3c8614; color: #fff; }
.rb-body { padding: 20px 22px 8px; }
.rb-body h2 { margin: 0 0 4px; font: 700 22px/1.2 var(--display, inherit); color: #0b0f0b; }
.rb-body .sub { margin: 0 0 16px; color: #5a6a52; font-size: 14px; }
.rb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rb-body label { display: block; font-weight: 600; font-size: 13.5px; color: #1b2a14; margin: 0 0 12px; }
.rb-body label small { font-weight: 500; color: #6a7a62; }
.rb-body input[type=text], .rb-body input[type=email], .rb-body input[type=tel], .rb-body input[type=url], .rb-body select, .rb-body textarea, .rb-modal input[type=text], .rb-modal input[type=email], .rb-modal input[type=tel] { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1.5px solid #d3dfcb; border-radius: 12px; background: #fff; font: 500 15px/1.4 inherit; color: #111; box-sizing: border-box; }
.rb-body textarea { resize: vertical; min-height: 84px; }
.rb-body input:focus, .rb-body select:focus, .rb-body textarea:focus, .rb-modal input:focus { outline: none; border-color: #3c8614; box-shadow: 0 0 0 3px #d9ecc9; }
.rb-seg { display: flex; width: 100%; background: #eef4ea; border-radius: 12px; padding: 4px; margin: 4px 0 14px; }
.rb-seg button { flex: 1; border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; font: 700 14px/1 inherit; color: #3b4d33; cursor: pointer; }
.rb-seg button.on { background: #fff; color: #0b0f0b; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.rb-tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 16px; }
.rb-tpls button { text-align: left; border: 1.5px solid #d3dfcb; background: #fff; border-radius: 14px; padding: 10px; cursor: pointer; font: inherit; }
.rb-tpls button.on { border-color: #3c8614; background: #f3f9ee; box-shadow: 0 0 0 3px #d9ecc9; }
.rb-tpls b { display: block; font-size: 14px; color: #0b0f0b; }
.rb-tpls span { font-size: 12px; color: #5a6a52; }
.rb-tpls i { display: block; height: 46px; border-radius: 8px; border: 1px solid #e1ead9; margin-bottom: 8px; background: linear-gradient(#fff, #fff); position: relative; overflow: hidden; }
.rb-tpls i::before { content: ""; position: absolute; left: 12px; right: 12px; top: 9px; height: 5px; border-radius: 3px; background: #111; }
.rb-tpls i::after { content: ""; position: absolute; left: 12px; right: 12px; top: 20px; height: 3px; border-radius: 2px; background: #3c8614; box-shadow: 0 8px 0 #cfd8c8, 0 15px 0 #cfd8c8; }
.rb-tpls button[data-v=classic] i::before { left: 30%; right: 30%; }
.rb-tpls button[data-v=compact] i::before { left: 28%; right: 28%; height: 4px; }
.rb-item { border: 1px solid #e1ead9; border-radius: 14px; padding: 14px 14px 2px; margin-bottom: 12px; background: #fbfdf9; }
.rb-item-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; color: #2f6f0f; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.rb-link { background: none; border: 0; color: #b42318; font: 600 13px inherit; cursor: pointer; padding: 4px; }
.rb-add { border: 1.5px dashed #9fc588; background: #f6faf2; color: #2f6f0f; border-radius: 12px; padding: 10px 14px; font: 700 14px inherit; cursor: pointer; width: 100%; margin-bottom: 14px; }
.rb-add:hover { background: #eaf4e1; }
.rb-sug { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; align-items: center; }
.rb-sug > span { font-size: 12.5px; color: #5a6a52; margin-right: 4px; }
.rb-sug button { border: 1px solid #bcd8a8; background: #fff; color: #1f4a0a; border-radius: 99px; padding: 4px 10px; font: 600 12.5px inherit; cursor: pointer; }
.rb-sug button:hover { background: #3c8614; color: #fff; border-color: #3c8614; }
.rb-count { float: right; font-weight: 500; color: #6a7a62; font-size: 12px; }
.rb-count.ok { color: #2f6f0f; }
.rb-nav { display: flex; justify-content: space-between; gap: 10px; padding: 14px 22px 20px; }
.rb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font: 700 15px/1 inherit; cursor: pointer; background: #3c8614; color: #fff; text-decoration: none; }
.rb-btn:hover { background: #2f6f0f; }
.rb-btn.ghost { background: #fff; color: #1b2a14; border: 1.5px solid #cfdcc6; }
.rb-btn.ghost:hover { background: #f3f9ee; }
.rb-btn.dark { background: #0f1a0f; }
.rb-btn.lg { padding: 15px 26px; font-size: 16px; }
.rb-btn:disabled { opacity: .45; cursor: not-allowed; }

/* side column */
.rb-side { position: sticky; top: 76px; display: grid; gap: 14px; }
.rb-score { display: grid; grid-template-columns: 86px 1fr; gap: 14px; padding: 14px 16px; align-items: center; }
.rb-ring { position: relative; width: 86px; height: 86px; }
.rb-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rb-ring circle { fill: none; stroke-width: 9; }
.rb-ring .bg { stroke: #e6efe0; }
.rb-ring .fg { stroke: #3c8614; stroke-linecap: round; transition: stroke-dasharray .4s; }
.rb-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 26px/1 var(--display, inherit); color: #0b0f0b; }
.rb-score h3 { margin: 0; font-size: 16px; }
.rb-score p { margin: 2px 0 6px; color: #5a6a52; font-size: 13px; }
.rb-score .band { display: inline-block; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 99px; background: #e6f3da; color: #2f6f0f; }
.rb-prevbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #e8efe3; }
.rb-prevbar b { font-size: 14px; }
.rb-prevbar span { color: #5a6a52; font-size: 12.5px; }
.rb-pages { padding: 12px; background: #f1f5ee; border-radius: 0 0 18px 18px; display: grid; gap: 12px; max-height: 640px; overflow: auto; }
.rb-pg { background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .12); border-radius: 3px; line-height: 0; }
.rb-pg svg { width: 100%; height: auto; display: block; }
.rb-warn { margin: 10px 12px 0; padding: 8px 12px; border-radius: 10px; background: #fff7e6; border: 1px solid #f5d79a; color: #8a5a00; font-size: 13px; }
.rb-dl { display: flex; gap: 10px; padding: 12px; }
.rb-dl .rb-btn { flex: 1; }

/* promotion cards (MahaGnan courses) */
.rb-promo { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px; border: 1px solid #cfe3c1; border-radius: 16px; background: linear-gradient(135deg, #f3f9ee, #fff); text-decoration: none; color: inherit; align-items: center; }
.rb-promo .th { width: 92px; height: 70px; border-radius: 12px; background: #17361a center/cover no-repeat; display: grid; place-items: center; overflow: hidden; }
.rb-promo .th img { width: 44px; height: 44px; border-radius: 50%; }
.rb-promo small { font: 700 10.5px/1 inherit; letter-spacing: .12em; text-transform: uppercase; color: #3c8614; }
.rb-promo b { display: block; font-size: 15.5px; margin: 3px 0 2px; line-height: 1.25; color: #0b0f0b; }
.rb-promo span.p { display: block; font-size: 13px; color: #3d4a38; }
.rb-promo .go { display: inline-block; margin-top: 6px; font-weight: 800; font-size: 13px; color: #2f6f0f; }
.rb-promo-wrap { margin: 4px 0 18px; }
.rb-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.rb-pgrid .rb-promo { grid-template-columns: 1fr; }
.rb-pgrid .rb-promo .th { width: 100%; height: 100px; }

/* review */
.rb-checks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.rb-checks li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; font-size: 14px; padding: 8px 10px; border-radius: 10px; background: #fbfdf9; border: 1px solid #e8efe3; }
.rb-checks li.bad { background: #fffaf0; border-color: #f5e1b5; }
.rb-checks .ic { font-weight: 800; color: #3c8614; }
.rb-checks li.bad .ic { color: #c27803; }
.rb-checks small { display: block; color: #6a5a32; margin-top: 2px; }
.rb-checks em { font-style: normal; color: #5a6a52; font-size: 12.5px; }
.rb-kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.rb-kw span { padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: #e6f3da; color: #1f4a0a; }
.rb-kw span.miss { background: #fff; border: 1px dashed #c27803; color: #8a5a00; }
.rb-note { background: #f3f9ee; border: 1px solid #d9ecc9; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: #2b3b24; margin-bottom: 14px; }

/* modal */
.rb-back { position: fixed; inset: 0; background: rgba(8, 14, 8, .55); z-index: 80; display: grid; place-items: center; padding: 14px; overflow: auto; }
.rb-modal { background: #fff; border-radius: 20px; width: min(520px, 100%); max-height: calc(100vh - 28px); overflow: auto; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.rb-modal.wide { width: min(760px, 100%); }
.rb-modal h2 { margin: 0 0 4px; font: 700 22px/1.2 var(--display, inherit); }
.rb-modal p { color: #4b5a45; margin: 0 0 14px; font-size: 14.5px; }
.rb-modal label.f { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.rb-modal .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 500; line-height: 1.45; padding: 12px; border: 1.5px solid #cfe3c1; background: #f6faf2; border-radius: 12px; margin: 6px 0 14px; cursor: pointer; }
.rb-modal .chk input { width: 20px; height: 20px; margin-top: 1px; accent-color: #3c8614; flex: 0 0 auto; }
.rb-err { color: #b42318; font-size: 13px; margin: 0 0 10px; }
.rb-x { float: right; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #555; }
.rb-ok { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e6f3da; color: #2f6f0f; font-size: 30px; margin-bottom: 10px; }

/* mobile bar */
.rb-mbar { display: none; }
@media (max-width: 960px) {
  .rb-grid { grid-template-columns: minmax(0, 1fr); }
  .rb-side { display: none; position: static; }
  body.rb-show-prev .rb-side { display: grid; position: fixed; inset: 0; z-index: 70; background: #f1f5ee; overflow: auto; padding: 12px 12px 90px; align-content: start; }
  body.rb-show-prev .rb-pages { max-height: none; }
  .rb-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #dfe8d8; box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); }
  .rb-mbar .rb-btn { flex: 1; padding: 13px 10px; font-size: 14px; }
  .rb-page { padding-bottom: 76px; }
}
@media (max-width: 560px) {
  .rb-w { padding: 0 14px; }
  .rb-row2 { grid-template-columns: 1fr; gap: 0; }
  .rb-tpls { grid-template-columns: 1fr; }
  .rb-seg button { padding: 10px 6px; font-size: 13px; }
  .rb-tpls button { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; }
  .rb-tpls i { margin: 0; }
  .rb-body { padding: 16px 14px 6px; }
  .rb-nav { padding: 12px 14px 18px; }
}
