/*
 * Northbury Publishing — SHRM Tool Pages
 * Load after main.css. Applies only to pages with body.tool-page.
 */

/* ============================================================
   0. Hero — match homepage hero background; hero + features
      strip together fill the first screen (.hero-viewport base
      rules live in main.css since the homepage shares them)
   ============================================================ */
#hero.hero {
  background:
    radial-gradient(ellipse 55% 80% at 78% 50%, #143d50 0%, transparent 65%),
    var(--nb-navy);
  flex: 0 1 auto;
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 110px 0 32px;
}
@media (max-width: 767px) {
  #hero.hero { padding: 7rem 0 3rem; }
}

/* Hero CTA row — primary pill + inline text links */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--nb-light-green);
  color: var(--nb-navy);
  font-family: var(--default-font);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.25s ease;
}
.hero-cta-primary:hover { background-color: #fff; color: var(--nb-navy); }
.hero-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--default-font);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.25s ease;
}
.hero-cta-link:hover { color: #fff; }
@media (max-width: 767px) {
  .hero-cta-row { gap: 1rem; }
  .hero-cta-primary,
  .hero-full__btn-secondary { width: 100%; text-align: center; }
}

/* Hero book visual — reuses homepage's .hero-full__book-img, capped
   shorter here since this hero shares the screen with the strip below */
.hero-book-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero .hero-full__book-img {
  max-height: 46vh;
}

/* ============================================================
   0b. Features Strip — card variant (book bonus page)
   ============================================================ */
.hero-viewport .features-strip.features-strip--cards {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  background: none;
  border-top: none;
  border-bottom: none;
  padding: 28px 0;
}
.features-strip--cards > .container { width: 100%; }
.features-strip--cards .row > [class*="col"]::after { display: none; }
.features-strip__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border: 1px solid rgba(127, 208, 204, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.features-strip__card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: rgba(127, 208, 204, 0.45);
  background: rgba(127, 208, 204, 0.05);
}
.features-strip__card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.features-strip__card:hover .features-strip__icon {
  background: rgba(127, 208, 204, 0.28);
  border-color: rgba(127, 208, 204, 0.5);
}
.features-strip__card .features-strip__title { margin-bottom: 0; }
.features-strip__card .features-strip__desc { flex: 1 1 auto; margin-bottom: 16px; }
.features-strip__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7fd0cc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.features-strip__arrow i { font-size: 0.95rem; line-height: 1; transition: transform 0.2s ease; }
.features-strip__card:hover .features-strip__arrow i { transform: translateX(4px); }

/* ============================================================
   0c. Buy the Book — cards matching the bonus card style
   ============================================================ */
#book .card {
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, rgba(90, 166, 163, 0.16) 0%, transparent 65%),
    rgba(127, 208, 204, 0.03);
  border: 1px solid rgba(127, 208, 204, 0.18);
  border-radius: 14px;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
#book .card:hover {
  border-color: rgba(127, 208, 204, 0.45);
  transform: translateY(-3px);
}
#book .card .card-img {
  border-radius: 0;
  background: transparent;
  padding: 32px 24px 16px;
}
#book .card .card-img img { max-height: 220px; width: auto; margin: 0 auto; }
#book .card h3 {
  text-transform: uppercase;
  font-family: var(--default-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7fd0cc;
  padding: 20px 30px 0;
  margin-bottom: 0;
}
#book .card .card-divider {
  display: block;
  width: 40px;
  height: 2px;
  margin: 16px auto;
  background: rgba(127, 208, 204, 0.5);
}
#book .card p { color: rgba(255, 255, 255, 0.65); }
#book .card .btn-wrap { padding: 8px 24px 28px; }
.book-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background-color: transparent;
  color: #7fd0cc;
  font-family: var(--default-font);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 9px 28px;
  border: 1.5px solid rgba(127, 208, 204, 0.4);
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.book-buy-btn:hover { background-color: rgba(127, 208, 204, 0.08); border-color: rgba(127, 208, 204, 0.7); color: #7fd0cc; }
.book-buy-btn i { transition: transform 0.2s ease; }
.book-buy-btn:hover i { transform: translateX(4px); }

/* ============================================================
   1. Tool Page Base — color overrides for light-bg pages
   ============================================================ */
body.tool-page {
  --default-color: #374151;
  --background-color: #ffffff;
  --heading-color: #143d50;
  --accent-color: #143d50;
}

body.tool-page section,
body.tool-page .section { color: #374151; }

body.tool-page h1,
body.tool-page h2,
body.tool-page h4 { color: #143d50; }

body.tool-page .section-title h2 { color: #143d50; }
body.tool-page .section-title p { color: #6c757d; }

/* ============================================================
   2. Section Backgrounds
   ============================================================ */
body.tool-page #settings-container {
  background-color: #f4fbfa;
  padding-top: 100px;
  padding-bottom: 60px;
}

body.tool-page #test-container { background-color: #f4fbfa; }

body.tool-page #flashcards-section.section {
  background-color: #f4fbfa;
  padding-top: 100px;
}

body.tool-page .section-padding {
  background-color: #f4fbfa;
  padding-top: 100px;
  min-height: calc(100vh - 80px);
}

body.tool-page #high-yield-banner { background-color: #f4fbfa; padding-bottom: 3rem; }

/* ============================================================
   3. Settings Panel Cards
   ============================================================ */
body.tool-page .card:not(.fixed-box-card):not(.hy-banner-card) {
  background: #fff;
  border: 1.5px solid rgba(20, 61, 80, 0.14);
  color: #374151;
  text-align: left;
  height: auto;
  justify-content: initial;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}
body.tool-page .card:not(.fixed-box-card):not(.hy-banner-card) h3 {
  text-transform: none;
  padding: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #143d50;
}
body.tool-page .card:not(.fixed-box-card):not(.hy-banner-card) p {
  padding: 0;
  color: #374151;
  font-size: 0.9rem;
}
body.tool-page .card:not(.fixed-box-card) p.mb-2 {
  color: #143d50;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* ============================================================
   4. Form Elements
   ============================================================ */
body.tool-page .hidden { display: none !important; }

body.tool-page select,
body.tool-page input[type="number"] {
  display: inline-block;
  border: 1.5px solid rgba(20, 61, 80, 0.28);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: #143d50;
  background-color: #fff;
  min-width: 160px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body.tool-page select:focus,
body.tool-page input[type="number"]:focus {
  outline: none;
  border-color: #5aa6a3;
  box-shadow: 0 0 0 3px rgba(90, 166, 163, 0.14);
}

body.tool-page label {
  color: #374151;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  display: inline-block;
}
body.tool-page .form-check-input:checked { background-color: #143d50; border-color: #143d50; }
body.tool-page .form-check-label { color: #374151; font-size: 0.9rem; }
body.tool-page .form-select { color: #143d50; border-color: rgba(20, 61, 80, 0.28); }
body.tool-page .form-select:focus {
  border-color: #5aa6a3;
  box-shadow: 0 0 0 3px rgba(90, 166, 163, 0.14);
}
body.tool-page .form-label { color: #143d50; font-weight: 700; font-size: 0.875rem; }

/* ============================================================
   5. Fixed Control Box
   ============================================================ */
#fixed-box { position: fixed; z-index: 1; top: 0; left: 0; right: 0; padding: 0; }
body.tool-page #fixed-box h1 { font-size: clamp(1.3rem, 4vw, 2rem); }

.fixed-box-container { width: calc(100% - 24px); margin: 0 auto; }
.fixed-box-container .row { margin-left: 0; margin-right: 0; }

.fixed-box-card {
  min-height: 140px;
  padding-top: 0;
  padding-bottom: 0 !important;
  background-color: var(--nb-cream);
  color: #143d50;
  border: 1px solid rgba(20, 61, 80, 0.12);
  border-radius: 0;
}
.fixed-box-btn {
  width: auto;
  margin-bottom: 10px;
  border-radius: 50px;
  font-size: 0.8rem !important;
  font-weight: 700;
  padding: 10px 18px !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.fixed-box-title { display: block; color: #143d50; }
.fixed-box-top { display: flex; margin-top: 15px; margin-bottom: 0; color: #143d50; }

#results-wrap,
#countdown-wrap { margin-bottom: 5px; width: 50%; }

body.tool-page .card.fixed-box-card .btn-primary {
  background-color: #5aa6a3;
  border-color: #5aa6a3;
  color: #fff;
}
body.tool-page .card.fixed-box-card .btn-primary:hover {
  background-color: #143d50;
  border-color: #143d50;
  color: #fff;
}
body.tool-page .card.fixed-box-card .btn-secondary {
  background-color: transparent;
  border: 1.5px solid rgba(20, 61, 80, 0.3);
  color: #143d50;
}
body.tool-page .card.fixed-box-card .btn-secondary:hover {
  background-color: rgba(90, 166, 163, 0.08);
  border-color: #5aa6a3;
  color: #143d50;
}

@media (min-width: 1150px) {
  .fixed-box-card {
    border: 1px solid rgba(20, 61, 80, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(20, 61, 80, 0.1);
  }
}

/* ============================================================
   6. Test Question Interface
   ============================================================ */
.question-container { margin-bottom: 20px; }
.question { font-weight: 600; margin-bottom: 20px; }
.feedback { border-radius: 4px; }
.hidden { display: none; }
.letter { text-transform: capitalize; font-weight: bold; margin-right: 0.3em; }
.no-padding-bottom { padding-bottom: 0 !important; }
.red { color: red; }

.answers { display: flex; flex-direction: column; }

.question sup,
.answers sup,
.hint sup { font-size: 0.72em; vertical-align: 0.4em; line-height: 0; }

.math-radicand {
  border-top: 1.5px solid currentColor;
  padding: 0 2px;
  margin-left: 1px;
  display: inline-block;
  line-height: 1.3;
}

.form-check-label { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 1rem; }
.form-check-input { margin-top: 0.3em; flex-shrink: 0; }

.show-on-desktop,
.hide-on-mobile { display: inline-block; }

/* ============================================================
   7. Flashcard Component
   ============================================================ */
.fc-container { max-width: 620px; margin: 0 auto; text-align: center; }
.fc-module-wrap { max-width: 340px; margin: 0 auto 1.5rem; text-align: left; }

.fc-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.fc-card-col { flex: 1 1 auto; text-align: center; }
.fc-actions-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .fc-container { max-width: 900px; }
  .fc-layout { flex-direction: row; align-items: stretch; gap: 2.5rem; text-align: left; }
  .fc-card-col { flex: 1 1 60%; }
  .fc-actions-col { flex: 0 0 260px; justify-content: center; gap: 0.875rem; }
}

.btn-fcards {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 50px;
  font-weight: 700;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-fcards.btn-success {
  background-color: var(--nb-green);
  border-color: var(--nb-green);
  color: #fff;
}
.btn-fcards.btn-success:not(:disabled):hover {
  background-color: var(--nb-light-green);
  border-color: var(--nb-light-green);
}
.btn-fcards.btn-primary:not(:disabled):hover {
  background-color: var(--nb-light-green);
  border-color: var(--nb-light-green);
}
.btn-fcards.btn-secondary {
  background-color: transparent;
  border: 1.5px solid rgba(20, 61, 80, 0.3);
  color: var(--nb-dark-green);
}
.btn-fcards.btn-secondary:hover {
  background-color: rgba(90, 166, 163, 0.08);
  border-color: var(--nb-green);
  color: var(--nb-dark-green);
}
.btn-fcards.btn-primary:disabled {
  background-color: var(--nb-dark-green);
  border-color: var(--nb-dark-green);
  color: #fff;
  opacity: 0.45;
}
.btn-fcards.btn-success:disabled {
  background-color: var(--nb-green);
  border-color: var(--nb-green);
  color: #fff;
  opacity: 0.45;
}
.btn-fcards.btn-secondary:disabled {
  background-color: transparent;
  border-color: rgba(20, 61, 80, 0.3);
  color: var(--nb-dark-green);
  opacity: 0.45;
}

#cardSideText {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #143d50;
  opacity: 0.5;
  margin-bottom: 0.6rem;
}
body.tool-page #cardSideText { font-size: 0.8rem; letter-spacing: 0.14em; opacity: 0.6; }

#cardCounter {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #143d50;
  opacity: 0.55;
  letter-spacing: 0.1em;
  margin: 0.75rem 0 1rem;
}

.flip-card {
  width: 100%;
  height: 340px;
  perspective: 1200px;
  margin: 0 auto;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.55s ease;
  transform-style: preserve-3d;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
  border-radius: 16px;
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
  overflow-y: auto;
}
.flip-card-front { background-color: #143d50; }
.flip-card-back { background-color: #5aa6a3; transform: rotateY(180deg); }

.flip-card p {
  font-family: 'Lato', sans-serif;
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  margin: 0;
}

/* ============================================================
   8. High-Yield Banner
   ============================================================ */
.hy-banner-card {
  background: linear-gradient(135deg, #143d50 0%, #5aa6a3 100%);
  border: none;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hy-banner-orb { position: absolute; border-radius: 50%; background: rgba(90, 166, 163, 0.15); }
.hy-banner-orb-top { width: 200px; height: 200px; top: -60px; right: -60px; }
.hy-banner-orb-bottom { width: 150px; height: 150px; bottom: -40px; left: -40px; }
.hy-banner-content { position: relative; z-index: 1; }
.hy-banner-badge {
  background: rgba(90, 166, 163, 0.25);
  color: #7fd0cc;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
}
.hy-banner-title { color: #fff; font-size: 1.4rem; }
.hy-banner-text { color: rgba(255, 255, 255, 0.85); margin: 0; }
.hy-banner-link { text-decoration: none; display: block; }
.hy-banner-button { background-color: #7fd0cc; color: #143d50; font-weight: 700; border: none; }
.hy-banner-button:hover { background-color: #fff; color: #143d50; }

/* Promo badge — eyebrow pill for light-background promo cards */
.promo-badge {
  background: rgba(90, 166, 163, 0.12);
  color: #143d50;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
}

/* Specificity fixes — main.css .card rules override banner text/button colors */
body.tool-page .card.hy-banner-card h3 {
  color: #fff;
  text-transform: none;
  padding: 0 0 8px;
  font-size: 1.4rem;
}
body.tool-page .card.hy-banner-card p { color: rgba(255, 255, 255, 0.85); padding: 0; }
body.tool-page .card.hy-banner-card .hy-banner-badge {
  color: #7fd0cc;
  background: rgba(90, 166, 163, 0.25);
}
body.tool-page .card.hy-banner-card .btn {
  background-color: #7fd0cc;
  border-color: #7fd0cc;
  color: #143d50;
  font-weight: 700;
}
body.tool-page .card.hy-banner-card .btn:hover {
  background-color: #fff;
  border-color: #fff;
  color: #143d50;
}

/* ============================================================
   9. Download Blocks
   ============================================================ */
body.tool-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
body.tool-page th,
body.tool-page td {
  border: 1px solid rgba(20, 61, 80, 0.1);
  padding: 12px 16px;
  text-align: center;
  color: #374151;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
}
body.tool-page th {
  background-color: #143d50;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 700;
  border-color: #143d50;
}
body.tool-page tr:hover td { background-color: rgba(20, 61, 80, 0.03); }

.btn-download {
  padding: 8px 18px;
  background-color: #143d50;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-download:hover { background-color: #5aa6a3; color: #fff; }

.btn-download-soon {
  padding: 8px 16px;
  background-color: #f1f3f5;
  color: #adb5bd;
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dl-exam-block {
  background: #fff;
  border: 1.5px solid rgba(20, 61, 80, 0.1);
  border-radius: 12px;
  padding: 28px 32px 24px;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.dl-exam-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid rgba(20, 61, 80, 0.1);
}
.dl-exam-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #143d50;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}
.dl-exam-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #143d50;
  margin: 0 0 4px;
  font-weight: 600;
}
.dl-exam-sub { font-size: 0.875rem; color: #6c757d; margin: 0; }
body.tool-page .dl-exam-block table {
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

/* ============================================================
   10. Modal Brand Overrides
   ============================================================ */
.error { color: red; }
.modal-img { max-width: 220px; height: auto; }

.modal-header { background-color: #143d50; color: #fff; }
.modal-title { color: #fff; margin: 0 auto; }

#codeTextBox {
  border: 2px solid #203c4e;
}
#codeTextBox:focus {
  border-color: #203c4e;
  box-shadow: 0 0 0 0.2rem rgba(32, 60, 78, 0.2);
}

.modal .btn {
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 20px;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.modal .btn-primary {
  background-color: var(--nb-light-green);
  border-color: var(--nb-light-green);
  color: var(--nb-navy);
  font-weight: 700;
}
.modal .btn-primary:hover {
  background-color: color-mix(in srgb, var(--nb-light-green), white 35%);
  border-color: color-mix(in srgb, var(--nb-light-green), white 35%);
  color: var(--nb-navy);
}
.modal .btn-secondary {
  background-color: transparent;
  border: 1.5px solid rgba(20, 61, 80, 0.3);
  color: #143d50;
}
.modal .btn-secondary:hover {
  background-color: rgba(90, 166, 163, 0.08);
  border-color: #5aa6a3;
  color: #143d50;
}
#bookCodeModal .modal-footer { gap: 10px; }
#bookCodeModal .modal-footer .btn { flex: 1 1 0; min-width: 0; }
@media (max-width: 767px) {
  #bookCodeModal .modal-footer .btn { white-space: normal; }
}

/* ============================================================
   11. Responsive
   ============================================================ */
@media (max-width: 767px) {
  .show-on-desktop,
  .hide-on-mobile { display: none; }

  .flip-card { height: 300px; }
  .flip-card-front,
  .flip-card-back { padding: 1.25rem 1.5rem; }
  .flip-card p { font-size: 0.88rem; }

  .dl-exam-block { padding: 20px 16px 16px; }
  .dl-exam-header { flex-direction: column; gap: 10px; }

  body.tool-page select,
  body.tool-page input[type="number"] { width: 100%; min-width: unset; }
  body.tool-page table { font-size: 0.78rem; }
  body.tool-page th,
  body.tool-page td { padding: 8px; }
  body.tool-page h1.fw-bolder { font-size: 1.45rem; }
}

@media (max-width: 480px) {
  body.tool-page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 992px) {
  body.tool-page #settings-container { padding-top: 90px; }
  body.tool-page #flashcards-section.section { padding-top: 90px; }
  body.tool-page .section-padding { padding-top: 90px; }
  .fixed-box-card { min-height: 120px; }
}

@media (min-width: 1150px) {
  #fixed-box { top: 50% !important; left: auto !important; right: 0 !important; transform: translateY(-50%) !important; }
  .fixed-box-container { width: 250px; margin: 0 1.5rem 0 0; }
  .fixed-box-title { display: none; }
  .fixed-box-btn { width: 100%; margin-bottom: 15px; }
  #results-wrap,
  #countdown-wrap { margin-top: -5px; margin-bottom: 5px; width: 100%; }
  .fixed-box-top { display: block; margin-top: 3px; margin-bottom: 3px; }
}

