/* Tools page dedicated styles */

body.tools-page {
  position: relative;
  background:
    radial-gradient(1200px 720px at 6% 12%, rgba(255, 155, 106, .16) 0%, rgba(255, 155, 106, 0) 65%),
    radial-gradient(1000px 700px at 92% 80%, rgba(203, 180, 255, .22) 0%, rgba(203, 180, 255, 0) 68%),
    var(--page-bg);
  background-attachment: fixed, fixed, fixed;
}

body.tools-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 18% 22%, rgba(31, 122, 77, .14) 0%, rgba(31, 122, 77, 0) 80%),
    radial-gradient(540px 420px at 82% 78%, rgba(255, 111, 64, .14) 0%, rgba(255, 111, 64, 0) 75%);
  z-index: 0;
}

main.tools-page {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.tools-hero {
  position: relative;
  padding: clamp(4rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4rem);
  background:
    radial-gradient(80% 80% at 20% 20%, rgba(203, 180, 255, .45) 0%, rgba(203, 180, 255, 0) 60%),
    linear-gradient(135deg, rgba(255, 244, 234, .92) 0%, rgba(255, 250, 244, .95) 100%);
}

.tools-hero::after {
  content: none;
}

.tools-hero__content {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  text-align: center;
}

.tools-hero__label {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1f7a4d;
}

.tools-hero__content h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 800;
  color: #102b20;
}

.tools-hero__content p {
  margin: 0 auto;
  max-width: 640px;
  color: rgba(15, 41, 33, .82);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.75;
}

.tools-hero__cta {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .04em;
  background: linear-gradient(120deg, #ff6f40 0%, #cbb4ff 100%);
  color: #ffffff;
  box-shadow: 0 22px 48px rgba(31, 38, 135, .18);
  transition: transform .2s ease, box-shadow .3s ease;
}

.tools-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 56px rgba(31, 38, 135, .22);
}

.tools-jump {
  padding: clamp(1.4rem, 3.2vw, 2rem) 0 clamp(1.8rem, 3.8vw, 2.4rem);
  background: transparent;
}

.tools-jump__inner {
  position: relative;
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 32px;
  border: 1px solid rgba(26, 26, 26, .06);
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(248, 251, 249, .9));
  box-shadow: 0 20px 50px rgba(31, 38, 135, .14);
  display: grid;
  gap: clamp(.9rem, 2vw, 1.2rem);
  overflow: hidden;
}

.tools-jump__inner::before {
  content: "";
  position: absolute;
  inset: -140px auto auto -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 111, 64, .18), rgba(255, 111, 64, 0) 65%);
  opacity: .6;
  pointer-events: none;
}

.tools-jump__inner::after {
  content: "";
  position: absolute;
  inset: auto -80px -160px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(31, 122, 77, .18), rgba(31, 122, 77, 0) 65%);
  opacity: .55;
  pointer-events: none;
}

.tools-jump__label {
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(16, 43, 32, .68);
  font-size: .74rem;
}

.tools-jump__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(.65rem, 1.6vw, .95rem);
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: stretch;
  justify-items: center;
}

.tools-jump__list li {
  width: 100%;
}

.tools-jump__list li::before {
  display: none;
}

.tools-jump__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .7rem 1.3rem;
  white-space: nowrap;
  border-radius: 30px;
  border: 1px solid rgba(31, 122, 77, .16);
  background: linear-gradient(140deg, rgba(255, 255, 255, .96), rgba(236, 250, 244, .9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 10px 24px rgba(31, 38, 135, .12);
  color: #0f3527;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  transition: transform .2s ease, box-shadow .3s ease, border-color .2s ease, background .2s ease;
}

.tools-jump__list a::after,
.tools-jump__list a::before {
  content: none;
}

.tools-jump__list a:hover,
.tools-jump__list a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(31, 122, 77, .4);
  background: linear-gradient(140deg, rgba(255, 255, 255, 1), rgba(203, 180, 255, .3));
  box-shadow: 0 16px 32px rgba(31, 38, 135, .16);
}

.tools-stack {
  width: min(1100px, 92vw);
  margin: clamp(2.4rem, 6vw, 3.6rem) auto 0;
  display: grid;
  gap: clamp(1.8rem, 3.6vw, 2.4rem);
}

.tool-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(26, 26, 26, .06);
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(31, 38, 135, .14);
  padding: clamp(1.8rem, 3.4vw, 2.6rem);
  display: grid;
  gap: clamp(1.6rem, 3vw, 2rem);
  scroll-margin-top: clamp(5rem, 12vw, 7rem);
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: -20% 60% auto -20%;
  height: 220px;
  background: radial-gradient(circle at center, rgba(255, 111, 64, .12), rgba(255, 111, 64, 0) 70%);
  opacity: .8;
  pointer-events: none;
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 60% -20% -20% auto;
  width: 260px;
  background: radial-gradient(circle at center, rgba(31, 122, 77, .12), rgba(31, 122, 77, 0) 72%);
  opacity: .65;
  pointer-events: none;
}

.tool-card__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.2rem);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: start;
}

.tool-card__copy {
  display: grid;
  gap: 1.1rem;
}

.tool-card__header {
  display: grid;
  gap: .6rem;
}

.tool-card__header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.3rem);
  font-weight: 800;
  color: #102b20;
}

.tool-card__desc {
  margin: 0;
  color: rgba(16, 43, 32, .74);
  line-height: 1.7;
}

.tool-result {
  min-height: 1.6rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(31, 122, 77, .1);
  color: #12382b;
  font-weight: 600;
  line-height: 1.6;
  scroll-margin-top: clamp(5rem, 12vw, 7rem);
}

.tool-result:empty {
  display: none;
}

.tool-card__formwrap {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(26, 26, 26, .08);
  border-radius: 22px;
  padding: clamp(1.6rem, 3vw, 2rem);
  box-shadow: 0 16px 34px rgba(31, 38, 135, .12);
}

.tool-form {
  display: grid;
  gap: clamp(1.05rem, 2.6vw, 1.4rem);
}

.tool-grid {
  display: grid;
  gap: clamp(.85rem, 2vw, 1.2rem);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tool-grid label {
  display: grid;
  gap: .35rem;
  font-weight: 600;
  color: #1f3229;
  min-width: 0;
}

.tool-grid input,
.tool-grid select,
.tool-grid textarea {
  padding: .75rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 26, .15);
  background: rgba(255, 255, 255, .98);
  transition: border-color .2s ease, box-shadow .2s ease;
  font-size: 1rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tool-grid input:focus,
.tool-grid select:focus,
.tool-grid textarea:focus {
  outline: none;
  border-color: rgba(31, 122, 77, .5);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, .15);
}

.tool-stack {
  display: grid;
  gap: .9rem;
}

.tool-stack .grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
}

.tool-stack .grid label {
  display: grid;
  gap: .35rem;
  font-weight: 600;
  color: #1f3229;
  min-width: 0;
}

.tool-stack .grid input {
  padding: .7rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 26, .15);
  background: rgba(255, 255, 255, .98);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tool-stack .grid button {
  justify-self: start;
}

body.hustle-page {
  background:
    radial-gradient(980px 720px at 12% 10%, rgba(255, 111, 64, .16) 0%, rgba(255, 111, 64, 0) 65%),
    radial-gradient(920px 640px at 88% 82%, rgba(203, 180, 255, .18) 0%, rgba(203, 180, 255, 0) 68%),
    var(--page-bg);
  background-attachment: fixed, fixed, fixed;
}

main.hustle-page {
  display: grid;
  gap: clamp(3.2rem, 7vw, 5rem);
  padding: clamp(1.6rem, 4vw, 2.6rem) 0 clamp(4rem, 8vw, 5.8rem);
}

main.hustle-page > section {
  margin: 0;
}

.hustle-hero {
  background:
    linear-gradient(135deg, rgba(255, 244, 234, .86) 0%, rgba(255, 252, 249, .92) 100%);
  border-bottom: 1px solid rgba(26, 26, 26, .06);
  box-shadow: 0 28px 56px rgba(31, 38, 135, .12);
  padding: clamp(3rem, 7vw, 4.6rem) 0;
}

.hustle-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3rem);
  font-weight: 900;
  color: #102b20;
  margin-bottom: 1rem;
}

.hustle-hero p {
  color: rgba(16, 43, 32, .75);
}

.hustle-hero__inner {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.4rem);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  align-items: center;
}

.hustle-hero__sidebar {
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(26, 26, 26, .08);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(31, 38, 135, .12);
  padding: clamp(1.6rem, 4vw, 2.2rem);
}

.hustle-hero__sidebar h2 {
  margin-top: 0;
  margin-bottom: .8rem;
  font-size: clamp(1.6rem, 3.4vw, 2rem);
  font-weight: 800;
  color: #102b20;
}

.hustle-hero__sidebar ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .6rem;
  color: rgba(16, 43, 32, .78);
}

.hustle-hero__sidebar li::before {
  color: #ff6f40;
}

.hustle-hero__sidebar a {
  color: inherit;
  font-weight: 700;
}

.hustle-hero__sidebar a::after {
  content: none;
}

.hustle-hero__stats {
  margin-top: clamp(1.6rem, 4vw, 2.2rem);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.hustle-hero__stats div {
  background: rgba(255, 255, 255, .92);
  border-radius: 18px;
  border: 1px solid rgba(26, 26, 26, .06);
  box-shadow: 0 14px 32px rgba(31, 38, 135, .1);
  padding: 1rem 1.2rem;
  display: grid;
  gap: .35rem;
}

.hustle-hero__stats strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #102b20;
}

.hustle-hero__stats span {
  font-size: .95rem;
  color: rgba(16, 43, 32, .7);
}

.hustle-filter {
  margin: clamp(1.2rem, 2.4vw, 1.8rem) 0;
  background: transparent;
}

.hustle-filter__inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "label"
    "note"
    "tags";
  justify-items: center;
  text-align: center;
  gap: .65rem;
  padding: clamp(1.1rem, 3vw, 1.7rem) clamp(1.25rem, 3vw, 2.3rem);
  background: linear-gradient(135deg, rgba(255,255,255,.94) 0%, rgba(242,249,246,.92) 100%);
  border: 1px solid rgba(26,26,26,.08);
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(31,38,135,.14);
  backdrop-filter: blur(14px);
}

.hustle-filter__label {
  grid-area: label;
  margin: 0;
  font-weight: 800;
  color: #1b2f27;
  font-size: .9rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hustle-filter__tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hustle-filter__tags li::before {
  display: none;
}

.hustle-filter__note {
  grid-area: note;
  margin: 0 0 .2rem;
  line-height: 1.6;
  font-size: .9rem;
  color: #4a5d53;
  max-width: 680px;
}

.hustle-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .55rem 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  border: 1px solid rgba(28,48,42,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(203,180,255,.32) 100%);
  color: #154f3d;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(31,38,135,.12);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.hustle-tag:hover,
.hustle-tag:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(31,38,135,.18);
}

.hustle-tag:focus-visible {
  outline: 3px solid rgba(76,201,138,.5);
  outline-offset: 3px;
}

.hustle-tag.is-active,
.hustle-tag[aria-pressed="true"] {
  background: linear-gradient(135deg, #1f7a4d 0%, #4cc98a 100%);
  color: #ffffff;
  border-color: rgba(31,122,77,.55);
  box-shadow: 0 24px 50px rgba(31,122,77,.3);
}

@media (max-width: 520px) {
  .hustle-tag {
    width: 100%;
  }
}

.hustle-vibes {
  position: relative;
  padding: clamp(2.8rem, 6vw, 4rem) 0;
  background:
    radial-gradient(880px 520px at 18% 20%, rgba(203, 180, 255, .18) 0%, rgba(203, 180, 255, 0) 70%),
    radial-gradient(780px 560px at 82% 90%, rgba(255, 214, 164, .22) 0%, rgba(255, 214, 164, 0) 75%),
    rgba(255, 255, 255, .65);
}

.hustle-vibes__inner {
  width: min(1080px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.4rem);
}

.hustle-vibes__intro {
  display: grid;
  gap: .6rem;
  max-width: 720px;
}

.hustle-vibes__intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 2.5rem);
  font-weight: 900;
  color: #102b20;
}

.hustle-vibes__intro p {
  margin: 0;
  color: rgba(16, 43, 32, .74);
  line-height: 1.7;
}

.hustle-vibes__grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.8rem);
  grid-template-columns: 1fr;
}

.vibe-card {
  scroll-margin-top: clamp(5rem, 12vw, 7rem);
  position: relative;
  padding: clamp(1.8rem, 3.6vw, 2.6rem);
  border-radius: 18px;
  border: none;
  background: rgba(255, 255, 255, .7);
  box-shadow: none;
  display: grid;
  gap: 1rem;
  border-left: 6px solid #1f7a4d;
  backdrop-filter: blur(10px);
}
.vibe-card#vibe-oncampus {
  border-left-color: #ff6f40;
}
.vibe-card#vibe-quick {
  border-left-color: #ff9d3b;
}
.vibe-card#vibe-creative {
  border-left-color: #8c6cff;
}
.vibe-card#vibe-skill {
  border-left-color: #2f5fdd;
}

.vibe-card::after {
  display: none;
}

.vibe-card__eyebrow {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(16, 43, 32, .64);
}

.vibe-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: #102b20;
}

.vibe-card p {
  margin: 0;
  color: rgba(16, 43, 32, .78);
  line-height: 1.6;
}

.vibe-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .45rem;
  color: rgba(16, 43, 32, .75);
  font-size: .95rem;
}

.vibe-card ul li::before {
  color: #ff6f40;
}

.vibe-card__roi {
  margin: 0;
  font-size: .9rem;
  color: rgba(16,43,32,.68);
}

.vibe-card__blocks {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.vibe-card__block {
  background: rgba(255,255,255,.4);
  padding: .95rem 1.1rem;
  border-radius: 14px;
  display: grid;
  gap: .5rem;
}

.vibe-card__block h4 {
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #1f2f29;
}

.vibe-card__block p {
  margin: 0;
  font-size: .9rem;
  color: rgba(16,43,32,.7);
}

.vibe-card__block ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .35rem;
  font-size: .9rem;
  color: rgba(16,43,32,.72);
}

.vibe-card__next {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: #1f7a4d;
}

.vibe-card__playbooks {
  margin-top: clamp(1.2rem, 2.8vw, 1.8rem);
  display: grid;
  gap: clamp(1.4rem, 3vw, 2rem);
}

.vibe-card__playbooks .hustle-card {
  margin: 0;
}

.hustle-sources {
  background:
    radial-gradient(820px 520px at 15% 20%, rgba(47, 164, 107, .12) 0%, rgba(47, 164, 107, 0) 70%),
    radial-gradient(720px 460px at 85% 80%, rgba(140, 108, 255, .14) 0%, rgba(140, 108, 255, 0) 70%),
    rgba(247, 251, 249, .86);
  border-top: 1px solid rgba(16, 43, 32, .08);
}

@media (max-width: 960px) {
  .hustle-hero__inner {
    grid-template-columns: 1fr;
  }

  .hustle-hero__sidebar {
    order: -1;
  }
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .9rem 1.8rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .3s ease, background .2s ease;
}

.btn-primary {
  background: linear-gradient(140deg, #1f7a4d 0%, #2fa46b 100%);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(31, 38, 135, .16);
}

.btn-reset {
  background: rgba(31, 122, 77, .12);
  color: #134c35;
}

.btn-outline {
  background: transparent;
  color: #1f7a4d;
  border: 1px solid rgba(31, 122, 77, .45);
}

.btn-outline:hover {
  background: rgba(31, 122, 77, .08);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 48px rgba(31, 38, 135, .18);
}

.btn:disabled {
  opacity: .6;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.tool-card fieldset {
  border: 1px solid rgba(26, 26, 26, .12);
  border-radius: 18px;
  padding: 1.1rem 1.3rem;
  background: rgba(255, 255, 255, .96);
}

.tool-card legend {
  font-weight: 700;
  color: #1b352d;
  padding: 0 .4rem;
}

.tool-card label input[type="radio"] {
  margin-right: .45rem;
  accent-color: #1f7a4d;
}

.tool-card table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  overflow: hidden;
  font-size: .95rem;
  box-shadow: 0 18px 36px rgba(31, 38, 135, .12);
}

.tool-card table thead {
  background: rgba(31, 122, 77, .12);
  color: #12382b;
}

.tool-card table th,
.tool-card table td {
  border: 1px solid rgba(26, 26, 26, .08);
  padding: .75rem .9rem;
  text-align: left;
}

.tool-card--quiz .tool-card__grid {
  grid-template-columns: 1fr;
}

.tool-card--quiz .tool-card__formwrap {
  padding: clamp(1.4rem, 3vw, 1.8rem);
}

.tool-card--quiz fieldset {
  border-radius: 16px;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  margin-bottom: clamp(1rem, 2.4vw, 1.5rem);
  background: rgba(248, 251, 249, .6);
}

.tool-card--quiz fieldset:last-of-type {
  margin-bottom: 0;
}

.tool-card--quiz label {
  display: block;
  margin-bottom: .6rem;
}

.tool-card--quiz label:last-of-type {
  margin-bottom: 0;
}

.tool-card--quiz .tool-actions {
  justify-content: flex-start;
}

.tool-card--calories .cal-tool {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.6rem);
}

.tool-card--calories .cal-quickstart {
  display: grid;
  gap: .45rem;
  background: linear-gradient(135deg, rgba(255,255,255,.92) 0%, rgba(242,249,246,.9) 100%);
  border: 1px solid rgba(26,26,26,.08);
  border-radius: 20px;
  padding: clamp(.95rem, 2.4vw, 1.3rem);
  color: #12382b;
  font-size: .95rem;
  box-shadow: 0 18px 36px rgba(16,43,32,.08);
}

.tool-card--calories .cal-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(26, 26, 26, .08);
  border-radius: 22px;
  padding: clamp(1rem, 2.6vw, 1.4rem);
  box-shadow: 0 16px 34px rgba(16, 43, 32, .08);
  display: grid;
  gap: .9rem;
}

.tool-card--calories .cal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.tool-card--calories .cal-card__header h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.35rem);
}

.tool-card--calories .cal-grid {
  display: grid;
  gap: clamp(.8rem, 2vw, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tool-card--calories .cal-options {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.tool-card--calories .cal-card--option.cal-card--inactive {
  opacity: .5;
}

.tool-card--calories .cal-card--option.cal-card--inactive .cal-warning {
  opacity: 0;
}

.tool-card--calories .cal-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.tool-card--calories .cal-toggle__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.tool-card--calories .cal-toggle__label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(26,26,26,.12);
  background: rgba(255,255,255,.92);
  color: #12382b;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  pointer-events: none;
}

.tool-card--calories .cal-toggle__label::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: rgba(31,122,77,.55);
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.tool-card--calories .cal-toggle__input:checked + .cal-toggle__label {
  background: linear-gradient(135deg, #1f7a4d 0%, #4cc98a 100%);
  color: #ffffff;
  border-color: rgba(31,122,77,.65);
  box-shadow: 0 18px 40px rgba(31,122,77,.25);
}

.tool-card--calories .cal-toggle__input:checked + .cal-toggle__label::before {
  background: rgba(255,255,255,.9);
  transform: scale(1.1);
}

.tool-card--calories .cal-toggle__input:not(:checked) + .cal-toggle__label::before {
  opacity: .5;
}

.tool-card--calories .cal-row {
  display: grid;
  gap: clamp(.8rem, 2vw, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tool-card--calories .cal-field--inline {
  display: grid;
  gap: .6rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 200px);
  align-items: center;
}

.tool-card--calories .cal-field {
  display: grid;
  gap: .35rem;
  font-weight: 600;
  color: #12382b;
}

.tool-card--calories .cal-field span {
  font-size: .95rem;
}

.tool-card--calories .cal-field small {
  font-weight: 500;
  color: rgba(16, 43, 32, .68);
  font-size: .8rem;
}

.tool-card--calories input,
.tool-card--calories select {
  border-radius: 14px;
  border: 1px solid rgba(26, 26, 26, .12);
  padding: .65rem .75rem;
  font-size: 1rem;
  background: #ffffff;
  color: #102b20;
}

.tool-card--calories input:focus-visible,
.tool-card--calories select:focus-visible {
  outline: 2px solid #1f7a4d;
  outline-offset: 2px;
  border-color: #1f7a4d;
}

.tool-card--calories .cal-card--option input:disabled,
.tool-card--calories .cal-card--option select:disabled,
.tool-card--calories .cal-card--option button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.tool-card--calories .cal-subtext {
  margin: 0;
  font-size: .85rem;
  color: rgba(16, 43, 32, .7);
}

.tool-card--calories .cal-warning {
  min-height: 1.2rem;
  font-size: .85rem;
  color: #b54708;
}

.tool-card--calories .cal-tablewrap {
  display: grid;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .25rem;
}

.tool-card--calories .cal-tablewrap table {
  border-radius: 16px;
  overflow: hidden;
  min-width: 560px;
}

.tool-card--calories .cal-tablewrap th,
.tool-card--calories .cal-tablewrap td {
  font-size: .92rem;
}

.tool-card--calories .cal-tablewrap table input {
  width: 100%;
  min-width: 0;
}

.tool-card--calories .cal-tablewrap td:first-child input {
  min-width: 160px;
}

.tool-card--calories .cal-tableremove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(196, 69, 54, .18);
  color: #912d20;
  font-size: 1rem;
  cursor: pointer;
}

.tool-card--calories .cal-tableremove:hover,
.tool-card--calories .cal-tableremove:focus-visible {
  background: rgba(196, 69, 54, .3);
  color: #651f16;
  outline: none;
}

.tool-card--calories .cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: 999px;
  font-weight: 600;
  padding: .65rem 1.35rem;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.tool-card--calories .cal-btn--primary {
  background: linear-gradient(130deg, #1f7a4d 0%, #2fa46b 100%);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(31, 122, 77, .2);
}

.tool-card--calories .cal-btn--primary:hover {
  transform: translateY(-1px);
}

.tool-card--calories .cal-btn:focus-visible {
  outline: 2px solid #1f7a4d;
  outline-offset: 2px;
}

.tool-card--calories .cal-btn--ghost {
  background: rgba(16, 43, 32, .1);
  color: #102b20;
}

.tool-card--calories .cal-btn--ghost:hover {
  transform: translateY(-1px);
}

.tool-card--calories .cal-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tool-card--calories .cal-actions .cal-btn {
  min-width: 140px;
}

.tool-card--calories .cal-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #1f7a4d;
  color: #ffffff;
}

.tool-card--calories .cal-results {
  display: grid;
  gap: .9rem;
}

.tool-card--calories .cal-results .cal-result-line {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .95rem;
  flex-wrap: wrap;
}

.tool-card--calories .cal-results .cal-result-line span {
  font-weight: 600;
}

.tool-card--calories .cal-results .cal-note {
  margin: 0;
  color: rgba(16, 43, 32, .7);
  font-size: .85rem;
}

.tool-card--calories .cal-chart {
  display: grid;
  gap: .8rem;
  margin-top: .6rem;
}

.tool-card--calories .cal-bar {
  display: grid;
  gap: .35rem;
}

.tool-card--calories .cal-bar__label {
  font-weight: 600;
  font-size: .9rem;
  color: rgba(16, 43, 32, .78);
}

.tool-card--calories .cal-bar__track {
  position: relative;
  height: 36px;
  border-radius: 12px;
  background: rgba(16, 43, 32, .12);
  overflow: hidden;
}

.tool-card--calories .cal-bar__fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  color: #ffffff;
  font-weight: 600;
  border-radius: inherit;
}

.tool-card--calories .cal-bar__fill--meal {
  background: linear-gradient(140deg, #0b7285 0%, #1098ad 100%);
}

.tool-card--calories .cal-bar__fill--groceries {
  background: linear-gradient(140deg, #6b705c 0%, #a5a58d 100%);
}

.tool-card--calories .cal-bar__fill--delivery {
  background: linear-gradient(140deg, #c44536 0%, #e36414 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(26, 26, 26, .08);
  color: #1f3229;
}

.badge.elite { background: rgba(31, 122, 77, .18); color: #125637; }
.badge.ahead { background: rgba(255, 111, 64, .16); color: #9a3b1c; }
.badge.track { background: rgba(203, 180, 255, .16); color: #4a3186; }
.badge.fix { background: rgba(255, 214, 102, .2); color: #7b470a; }

.quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quiz-badge.high { background: linear-gradient(135deg, #1f7a4d, #2fa46b); color: #ffffff; }
.quiz-badge.mid { background: rgba(255, 214, 102, .25); color: #7b470a; }
.quiz-badge.low { background: rgba(255, 111, 64, .22); color: #9a3b1c; }

.quiz-summary {
  margin: .6rem 0 0;
  color: rgba(16, 43, 32, .74);
}

.muted {
  color: rgba(16, 43, 32, .68);
}

.small {
  font-size: .9rem;
}

@media (max-width: 980px) {
  .tools-hero::after {
    inset: auto 10% 4% 10%;
    width: clamp(220px, 60vw, 360px);
  }

  .tool-card__grid {
    grid-template-columns: 1fr;
  }

  .tool-card::before,
  .tool-card::after {
    inset: auto;
    width: 60%;
    height: 160px;
    right: 20%;
    top: auto;
    bottom: -15%;
  }
}

@media (max-width: 640px) {
  .tools-jump__inner {
    padding: 1rem;
    justify-items: center;
    gap: .75rem;
  }

  .tools-jump__label {
    text-align: center;
    letter-spacing: .14em;
  }

  .tools-jump__list {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }

  .tools-jump__list a {
    width: 100%;
    white-space: normal;
  }

  .tool-card {
    padding: clamp(1.4rem, 6vw, 1.8rem);
  }

  .tool-card__formwrap {
    padding: clamp(1.2rem, 5vw, 1.6rem);
  }

  .tool-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-card--calories .cal-actions {
    justify-content: stretch;
  }

  .tool-card--calories .cal-actions .cal-btn {
    flex: 1;
  }

  .tool-card--calories .cal-options {
    grid-template-columns: 1fr;
  }

  .tool-card--calories .cal-row,
  .tool-card--calories .cal-field--inline {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 860px) {
  .tool-card--calories .cal-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
