/* Design-review quick wins: plan cards, touch targets on phones, and the sticky call to action for phones. */

/* plan cards on the home page: the full width of the column, a badge and a button on each */
.hp-plans { max-width: none; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.hp-plan { display: flex; flex-direction: column; position: relative; }
.hp-plan .hp-feat { margin-bottom: 18px; }
.hp-plan > .btn { margin-top: auto; justify-content: center; text-align: center; }
.hp-badge { position: absolute; top: 16px; right: 16px; margin: 0; padding: 3px 11px; border-radius: 999px; background: var(--action, #c2410c); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .03em; }

/* capability numbers 01 to 04 (the order most candidates use the tools) */
.cap-pct { letter-spacing: .04em; }

/* touch targets of at least 44 px on a phone: a bigger tap area that does not move the text */
@media (max-width: 1180px) { .nav-toggle { min-width: 44px; min-height: 44px; } }
@media (max-width: 680px) {
  main p a:not(.btn), main li a:not(.btn), .cap > a, .hj-more, .footer a:not(.btn) { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .tok-foot .btn, #tok-foot .btn { min-height: 44px; }
}

/* the sticky call to action: phones only, after the first screen has scrolled away */
.m-cta { display: none; }
@media (max-width: 680px) {
  .m-cta:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 54; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line, #eee9f8); box-shadow: 0 -8px 24px -16px rgba(20, 10, 60, .4); }
  .m-cta .btn { width: 100%; justify-content: center; min-height: 48px; }
  body.has-mcta { padding-bottom: 76px; }
  body.has-mcta .sp-strength { bottom: 132px; }
}
@media print { .m-cta { display: none !important; } }

/* a few more 44 px targets on a phone */
@media (max-width: 680px) { .brand { min-height: 44px; } main form button, main form .btn { min-height: 44px; } }

/* hero resume drop-zone: an instant ATS score */
.hz { margin: 0 0 20px; max-width: 560px; }
.hz-drop { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 22px 18px; border: 2px dashed var(--action, #c2410c); border-radius: 12px; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.hz-drop b { font-size: 17px; color: var(--ink, #1b1740); }
.hz-drop span { font-size: 14px; color: var(--muted, #5b5873); }
.hz-drop:hover, .hz-drop.over { background: #fff7f2; border-style: solid; }
.hz-drop:focus-within { outline: 3px solid var(--action-d, #9a3412); outline-offset: 2px; }
.hz-file { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.hz-consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted, #5b5873); }
.hz-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.hz-need { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.hz-need[hidden] { display: none; }
.hz-need input { padding: 11px 12px; border: 1px solid var(--bd, #d9d6e8); border-radius: 8px; font: inherit; min-height: 44px; }
.hz-need .btn { grid-column: 1 / -1; justify-content: center; }
.hz-msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--muted, #5b5873); }
.hz-msg.bad { color: #b42318; } .hz-msg.ok { color: #0f6b46; }
.hz-result { margin-top: 10px; padding: 16px; background: #fff; border: 1px solid var(--bd, #d9d6e8); border-radius: 12px; }
.hz-result[hidden] { display: none; }
.hz-head { display: flex; gap: 16px; align-items: center; }
.hz-head h3 { margin: 0 0 4px; font-size: 19px; } .hz-head p { margin: 0; font-size: 14px; }
.hz-head .ats-ring { flex: none; width: 96px; height: 96px; }
.hz-head .ats-ring-in { width: 74px; height: 74px; } .hz-head .ats-ring-in b { font-size: 26px; }
.hz-sub { margin: 14px 0 4px; font-weight: 700; font-size: 14px; }
.hz-fix { margin: 0 0 12px; padding-left: 20px; font-size: 14px; }
.hz-result .btn-row { margin: 8px 0 0; }
@media (max-width: 680px) { .hz-need { grid-template-columns: 1fr; } .hz-head { flex-direction: column; text-align: center; } }

/* signed in: one round photo button (with the Verified tick) in place of Career toolkit, My account and the sign-out icon */
.nav-me { position: relative; margin-left: 8px; }
.nav-avatar { position: relative; display: block; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.nav-face { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--navy, #1b1740); color: #fff; font: 700 17px var(--serif, Georgia, serif); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--bd, #d9d6e8); }
.nav-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-tick { position: absolute; right: -4px; bottom: -3px; width: 20px; height: 20px; display: grid; place-items: center; color: #1d9bf0; background: #fff; border-radius: 50%; }
.nav-tick[hidden] { display: none; }
.nav-avatar:hover .nav-face, .nav-avatar[aria-expanded="true"] .nav-face { box-shadow: 0 0 0 2.5px var(--action, #c2410c); }
.nav-avatar:focus-visible { outline: 3px solid var(--action-d, #9a3412); outline-offset: 3px; }
.nav-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 240px; padding: 8px; background: #fff; border: 1px solid var(--line, #e6e1f0); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(27, 23, 64, .45); }
.nav-pop[hidden] { display: none; }
.nav-pop-head { padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line, #e6e1f0); }
.nav-pop-head b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.nav-pop-head span { display: block; font-size: 13px; color: var(--muted, #5b5873); overflow-wrap: anywhere; }
.nav-pop a, .nav-pop .nav-logout { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 12px; margin: 0; border: 0; border-radius: 10px; background: none; color: var(--ink, #1b1740); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; box-sizing: border-box; border-bottom: 0; }
.nav-pop a:hover, .nav-pop .nav-logout:hover { background: #f4f2fb; }
.nav-pop .nav-logout { color: #b3261e; justify-content: flex-start; gap: 0; height: auto; }
.nav-pop .nav-logout:hover { background: #fff5f4; border: 0; }
@media (max-width: 1180px) {
  .nav-me { margin: 12px 0 0; }
  .nav-pop { position: static; width: auto; margin-top: 8px; box-shadow: none; }
}

/* introduction video on the home page */
.hv { padding: 40px 0 8px; text-align: center; }
.hv h2 { margin: 0 0 18px; }
.hv-video { display: block; width: 100%; max-width: 860px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #1b1740; box-shadow: 0 18px 40px -22px rgba(27, 23, 64, .5); }
.hv-note { margin: 12px auto 0; max-width: 60ch; font-size: 14px; color: var(--muted, #5b5873); }

/* News section on the home page: shown only when there are published items */
.hn { padding: 36px 0 8px; } .hn[hidden] { display: none; }
.hn-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .hn-head h2 { margin: 0 0 6px; }
.hn-all { font-weight: 700; }
.hn-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 14px; }
.hn-card { display: grid; gap: 6px; align-content: start; padding: 18px; background: #fff; border: 1px solid var(--bd, #e6e1f0); border-radius: 12px; color: inherit; text-decoration: none; }
.hn-card:hover { border-color: var(--action, #c2410c); }
.hn-card strong { font-size: 17px; line-height: 1.35; } .hn-sum { font-size: 14px; color: var(--muted, #5b5873); }
.hn-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted, #5b5873); }
.hn-meta b { color: var(--action, #c2410c); text-transform: uppercase; letter-spacing: .04em; }
.hn-meta i { font-style: normal; font-weight: 800; padding: 0 8px; border-radius: 999px; } .hn-meta .free { background: #e8f6ef; color: #0f6b46; } .hn-meta .paid { background: #fff1e6; color: #9a3412; }
