@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/poppins-800.ttf") format("truetype");
}

:root {
  --ink: #11140f;
  --green: #76c83d;
  --green-bright: #a5ed69;
  --paper: #f5f5ef;
  --white: #fff;
  --line: rgba(17, 20, 15, .16);
  --coral: #ff765b;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); }
button, input, select { font: inherit; }
.page-shell { max-width: 1160px; }

.site-nav { min-height: 76px; background: var(--ink); position: relative; z-index: 5; }
.brand { position: relative; color: var(--paper); font-family: var(--font-display); font-size: 29px; font-weight: 700; line-height: 1; }
.brand:hover, .brand:focus { color: var(--paper); }
.brand span { color: var(--green); }
.brand-spark { position: absolute; top: -5px; right: -12px; color: var(--green-bright); font-size: 10px; }
.site-nav .nav-link { color: rgba(245, 245, 239, .74); font-size: 13px; font-weight: 600; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--green-bright); }
.site-nav .navbar-toggler { border-color: rgba(245, 245, 239, .35); }
.site-nav .navbar-toggler-icon { filter: invert(1); }
.nav-search { display: flex; width: 175px; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(245, 245, 239, .24); border-radius: 4px; color: var(--green-bright); }
.nav-search input { width: 100%; border: 0; outline: 0; color: var(--paper); background: transparent; font-size: 12px; }
.nav-search input::placeholder { color: rgba(245, 245, 239, .55); }

.hero-section { position: relative; overflow: hidden; padding: 68px 0 76px; background: var(--green); }
.hero-section::before { position: absolute; top: 0; left: 0; width: 7px; height: 100%; background: var(--green-bright); content: ""; }
.hero-row { position: relative; z-index: 1; }
.hero-copy { padding-right: 38px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; color: rgba(17, 20, 15, .74); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }
.hero-copy h1 { margin-bottom: 20px; font-size: clamp(48px, 5.5vw, 72px); line-height: .98; }
.hero-copy h1 span { color: var(--paper); }
.hero-description { max-width: 390px; margin-bottom: 22px; color: rgba(17, 20, 15, .8); font-size: 15px; line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--paper); border-color: var(--paper); }
.hero-index { display: flex; align-items: center; gap: 11px; margin-top: 53px; font-family: var(--font-display); font-size: 11px; font-weight: 700; }
.hero-index > span:first-child { color: var(--paper); }
.index-rule { width: 51px; height: 1px; background: var(--ink); }
.index-label { margin-left: 5px; font-family: var(--font-body); font-size: 10px; font-weight: 500; }
.hero-stamp { position: absolute; right: -21px; bottom: 30px; color: rgba(17, 20, 15, .075); font-family: var(--font-display); font-size: 108px; font-weight: 700; line-height: .65; transform: rotate(-12deg); }

.calculator { position: relative; z-index: 1; padding: 25px; border-radius: 5px; background: var(--ink); color: var(--paper); box-shadow: 16px 17px 0 rgba(17, 20, 15, .13); }
.calculator-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.tool-kicker { display: block; margin-bottom: 5px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: 1.25px; }
.calculator-heading h2, .quick-label h3 { margin: 0; font-size: 18px; }
.icon-button { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid rgba(245, 245, 239, .24); border-radius: 50%; background: transparent; color: var(--paper); }
.icon-button:hover { border-color: var(--green); color: var(--green-bright); }
.calculator-display { display: flex; min-height: 99px; flex-direction: column; align-items: flex-end; justify-content: space-between; overflow: hidden; margin-bottom: 13px; padding: 12px 15px; border-radius: 3px; background: #eeefe8; color: var(--ink); }
.display-expression { min-height: 16px; max-width: 100%; overflow: hidden; color: #72786d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.display-value { max-width: 100%; overflow: hidden; font-family: var(--font-display); font-size: clamp(31px, 4vw, 43px); font-weight: 600; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.keypad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.key { display: grid; min-height: 49px; place-items: center; border: 0; border-radius: 3px; background: #f5f5ef; color: var(--ink); font-size: 17px; transition: transform .14s ease, background-color .14s ease; }
.key:hover { background: var(--green-bright); transform: translateY(-1px); }
.key:active { transform: translateY(1px); }
.key-utility { background: #d8e7ce; font-size: 14px; }
.key-operator { background: #c6e2b7; font-size: 20px; }
.key-equals { background: var(--coral); color: var(--ink); font-size: 21px; }
.key-equals:hover { background: #ff9079; }
.calculator-footnote { display: flex; align-items: center; gap: 7px; margin: 15px 0 0; color: rgba(245, 245, 239, .53); font-size: 10px; }

.quick-section { padding: 74px 0 82px; background: var(--paper); }
.eyebrow-dark .eyebrow-dot { background: var(--green); }
.section-heading { margin-bottom: 29px; }
.section-heading h2, .tools-header h2 { margin: 0; font-size: clamp(30px, 4vw, 43px); line-height: 1.08; }
.section-heading h2 span { color: #538d2a; }
.section-intro { max-width: 375px; margin: 0 0 3px auto; color: #60645b; font-size: 14px; line-height: 1.65; }
.quick-calculator { position: relative; display: grid; grid-template-columns: 205px minmax(0, 1fr) 145px; align-items: center; gap: 26px; padding: 27px 29px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.quick-label { display: flex; align-items: center; gap: 13px; }
.quick-number { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--green-bright); font-family: var(--font-display); font-size: 13px; }
.quick-label .tool-kicker { color: #5b9f31; }
.quick-label h3 { font-size: 16px; }
.quick-form { display: grid; grid-template-columns: minmax(85px, 1fr) minmax(118px, .9fr) minmax(85px, 1fr) 42px; align-items: end; gap: 9px; }
.quick-input-group label, .operation-field label { display: block; margin-bottom: 6px; color: #666b61; font-size: 10px; font-weight: 700; }
.quick-input, .quick-select { min-height: 44px; border-color: #dfe1d8; border-radius: 3px; font-size: 13px; }
.quick-input:focus, .quick-select:focus { border-color: #79bd4a; box-shadow: 0 0 0 .2rem rgba(118, 200, 61, .16); }
.quick-submit { display: grid; width: 42px; height: 44px; place-items: center; border: 0; border-radius: 3px; background: var(--green); color: var(--ink); font-size: 20px; transition: background-color .15s ease, transform .15s ease; }
.quick-submit:hover { background: var(--green-bright); transform: translateX(2px); }
.quick-result { display: flex; min-height: 53px; flex-direction: column; justify-content: center; padding-left: 18px; border-left: 1px solid var(--line); }
.quick-result span { color: #70756b; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.quick-result output { overflow: hidden; font-family: var(--font-display); font-size: 27px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.quick-error { position: absolute; right: 190px; bottom: 4px; margin: 0; color: #b33b28; font-size: 11px; }

.tools-section { padding: 68px 0 76px; background: #e9e9df; }
.tools-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 31px; }
.tools-header .eyebrow { margin-bottom: 16px; }
.tools-header h2 { font-size: clamp(30px, 4vw, 42px); }
.tools-header h2 span { color: #538d2a; }
.tools-header > p { max-width: 330px; margin: 0 0 4px; color: #60645b; font-size: 13px; line-height: 1.7; }
.tool-tile { display: flex; min-height: 94px; align-items: center; gap: 13px; padding: 16px; border: 1px solid rgba(17, 20, 15, .12); border-radius: 4px; background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.tool-tile:hover { border-color: var(--green); color: var(--ink); transform: translateY(-3px); }
.tool-tile-next { background: transparent; }
.tile-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--green-bright); font-size: 17px; }
.tile-icon-lime { background: #d7edc8; color: var(--ink); }
.tile-icon-coral { background: #ffddd4; color: #7a3427; }
.tool-tile small { display: block; margin-bottom: 5px; color: #797e74; font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.tool-tile strong { font-family: var(--font-display); font-size: 13px; }
.tile-arrow { margin-left: auto; color: #5d9c34; }
.tool-tile-next .tile-arrow { color: #777c72; }

.site-footer { padding: 24px 0; background: var(--ink); color: rgba(245, 245, 239, .62); font-size: 11px; }
.footer-brand { font-size: 22px; }
.back-top { color: var(--green-bright); font-size: 9px; font-weight: 700; letter-spacing: 1px; text-decoration: none; }
.back-top:hover { color: var(--paper); }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: 12px 0 18px; }
  .site-nav .navbar-nav { align-items: stretch !important; gap: 4px !important; }
  .nav-search { width: 100%; margin-top: 8px; }
  .hero-section { padding-top: 53px; }
  .hero-copy { padding-right: 12px; }
  .quick-calculator { grid-template-columns: 1fr 1.3fr; gap: 22px; }
  .quick-form { grid-column: 1 / -1; grid-row: 2; padding-right: 120px; }
  .quick-result { position: absolute; right: 29px; bottom: 27px; width: 95px; }
  .quick-error { right: 29px; bottom: 9px; }
}

@media (max-width: 767.98px) {
  .hero-section { padding: 44px 0 55px; }
  .hero-copy { padding-right: 12px; }
  .hero-copy h1 { font-size: 54px; }
  .hero-index { margin-top: 27px; }
  .calculator { padding: 20px; }
  .keypad { gap: 6px; }
  .key { min-height: 47px; }
  .quick-section { padding: 54px 0 60px; }
  .section-intro { margin: 12px 0 0; }
  .quick-calculator { grid-template-columns: 1fr; gap: 21px; padding: 21px; }
  .quick-form { grid-column: auto; grid-row: auto; padding: 0; }
  .quick-result { position: static; grid-column: auto; grid-row: auto; width: auto; min-height: 44px; padding: 10px 0 0; border-top: 1px solid var(--line); }
  .quick-error { position: static; min-height: 0; margin: -13px 0 0; }
  .tools-section { padding: 52px 0 58px; }
  .tools-header { align-items: start; flex-direction: column; gap: 16px; }
  .tools-header > p { max-width: 460px; }
}

@media (max-width: 480px) {
  .brand { font-size: 26px; }
  .hero-copy h1 { font-size: 47px; }
  .calculator { padding: 16px; }
  .calculator-heading h2 { font-size: 16px; }
  .key { min-height: 44px; }
  .quick-form { grid-template-columns: minmax(70px, 1fr) minmax(100px, .95fr); gap: 12px 9px; }
  .quick-input-group:nth-child(3) { grid-column: 1; }
  .quick-submit { grid-column: 2; grid-row: 2; justify-self: end; width: 100%; }
  .site-footer .container { justify-content: center !important; text-align: center; }
  .site-footer .footer-brand { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

:root {
  --reference-green: #72be44;
  --reference-light: #e8f2e2;
  --reference-navy: #141826;
  --reference-panel: #32b34a;
  --reference-font: "Poppins", sans-serif;
}

.calculator-menu-toggle { border: 0; background: transparent; }
.design-nav .nav-link.calculator-menu-toggle.show,
.design-nav .nav-link.calculator-menu-toggle[aria-expanded="true"],
.design-nav .nav-link.calculator-menu-toggle.show:focus,
.design-nav .nav-link.calculator-menu-toggle.show:active {
  color: var(--reference-green);
}
.calculator-menu { min-width: 235px; margin-top: 12px !important; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: #484e5d; }
.calculator-menu .dropdown-item { padding: 4px 7px; border-bottom: 1px solid #72be44; color: #72be44; font-size: 15px; font-weight: 500; }
.calculator-menu .dropdown-item:last-child { border-bottom: 1px solid #72be44; }
.calculator-menu .dropdown-item:hover, .calculator-menu .dropdown-item:focus { background: #353b49; color: #a5ed69; }
.calculator-menu .dropdown-item.disabled { color: #72be44; opacity: 1; }
a.popular-card, a.related-tool { text-decoration: none; }
a.popular-card:hover { background: #f0f7e9; }
a.related-tool:hover { background: #777d89; }
button:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.scientific-page .hero-layout { grid-template-columns: .76fr 1fr; gap: 48px; }
.scientific-page .hero-description-block h1 { font-size: 40px; }
.scientific-page .hero-description-block p { max-width: 390px; margin-top: 24px; }
.scientific-page .design-hero { padding-bottom: 24px; }
.scientific-keypad.reference-keypad { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px 4px; }
.scientific-keypad .reference-key { border-radius: 5px; }
.scientific-keypad .angle-mode { grid-column: span 2; display: flex; justify-content: space-evenly; gap: 5px; }
.angle-mode button { align-self: stretch; flex: 1; padding: 0; border: 0; background: transparent; color: inherit; }
.angle-mode button[aria-pressed="true"] { font-weight: 600; }
.scientific-keypad [data-sci="inverse"][aria-pressed="true"] { background: #141826; color: #72be44; }
.scientific-keypad sup { position: static; font-size: 10px; }
.scientific-keypad [data-insert="^"] { display: block; }
.guide-illustration.scientific-illustration { position: relative; border-radius: 50%; }
.scientific-illustration::before { position: absolute; top: 0; left: calc(50% - 3px); width: 6px; height: 50%; background: currentColor; content: ""; }
.scientific-illustration::after { position: absolute; top: calc(50% - 3px); left: 0; width: 100%; height: 6px; background: currentColor; content: ""; }
@media (max-width: 991.98px) {
  .scientific-page .hero-layout { grid-template-columns: 1fr; gap: 20px; }
  .scientific-page .hero-description-block h1 { font-size: 36px; }
  .scientific-page .hero-description-block p { max-width: none; }
}
@media (max-width: 767.98px) {
  .scientific-page .hero-description-block h1 { font-size: 30px; overflow-wrap: anywhere; }
  .scientific-keypad.reference-keypad { gap: 5px 3px; }
  .scientific-keypad .reference-key { min-height: 43px; font-size: 13px; }
  .calculator-menu { width: 100%; }
}

.age-hero .hero-description-block h1 { font-size: 40px; }
.age-hero .hero-description-block p { margin-bottom: 16px; }
.age-form { padding: 30px 14px 26px; border-radius: 5px; background: #a0e66f; }
.age-dates { display: grid; grid-template-columns: 1fr 1.16fr; gap: 18px; }
.age-date-group { display: flex; align-items: center; gap: 16px; min-width: 0; }
.age-date-label, .age-result-label { font-size: 22px; font-weight: 500; white-space: nowrap; }
.age-date-controls { display: flex; align-items: center; gap: 8px; min-width: 0; }
.date-dropdown { position: relative; width: 110px; flex: 1 1 110px; min-width: 70px; }
.date-dropdown-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; padding: 0 12px; border: 0; border-radius: 5px; background: #ecfae2; color: var(--reference-navy); font-size: 23px; font-weight: 500; }
.date-dropdown-toggle i { margin-left: 10px; color: #72be44; font-size: 25px; -webkit-text-stroke: 1px; }
.date-dropdown-list { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; width: 100%; max-height: min(555px, 60vh); margin: 0; padding: 4px 0; overflow-y: auto; border-radius: 5px; background: #fff; list-style: none; box-shadow: 0 5px 15px #14182626; }
.date-dropdown-list[hidden] { display: none; }
.date-dropdown-list li { min-height: 43px; padding: 4px 13px; border-radius: 5px; color: var(--reference-navy); font-size: 25px; cursor: pointer; }
.date-dropdown-list li[aria-selected="true"], .date-dropdown-list li:focus, .date-dropdown-list li:hover { outline: none; background: #72be44; }
.age-year { width: 82px; height: 48px; padding: 0 10px; border: 0; border-radius: 5px; background: #ecfae2; color: var(--reference-navy); font-size: 23px; font-weight: 500; appearance: textfield; }
.age-year::-webkit-inner-spin-button, .age-year::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.age-results-row { display: grid; grid-template-columns: 188px 65px minmax(0, 1fr); align-items: start; gap: 26px; margin-top: 24px; margin-left: 159px; }
.age-calculate { height: 48px; border: 0; border-radius: 5px; background: var(--reference-navy); color: #72be44; font-size: 23px; font-weight: 700; }
.age-calculate:hover { background: #252c3c; }
.age-result-label { padding-top: 8px; }
.age-result { display: block; min-height: 266px; padding: 8px 26px 13px; border-radius: 5px; background: #ecfae2; color: var(--reference-navy); font-size: 23px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.age-result span { display: block; }
.age-error { margin: 15px 0 0; color: #8b162a; font-size: 14px; font-weight: 600; }
.age-page .popular-section { padding-top: 42px; }
@media (max-width: 1199.98px) {
  .age-dates { grid-template-columns: 1fr; gap: 18px; }
  .age-date-group { justify-content: space-between; }
  .age-date-controls { flex: 0 0 318px; }
  .age-results-row { margin-left: 0; grid-template-columns: 188px 65px minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .age-hero .hero-description-block h1 { font-size: 32px; }
  .age-form { padding: 20px 14px; }
  .age-date-group { flex-direction: column; align-items: stretch; gap: 8px; }
  .age-date-label, .age-result-label { font-size: 17px; }
  .age-date-controls { flex: auto; width: 100%; }
  .date-dropdown-toggle, .age-year { font-size: 18px; }
  .date-dropdown-toggle { padding: 0 8px; }
  .date-dropdown-toggle i { font-size: 20px; margin-left: 4px; }
  .age-year { flex: 0 0 76px; width: 76px; padding: 0 7px; }
  .age-results-row { grid-template-columns: 1fr; gap: 12px; }
  .age-calculate { font-size: 20px; }
  .age-result-label { padding-top: 0; }
  .age-result { min-height: 230px; padding: 12px; font-size: 18px; }
}

.salary-hero .hero-description-block h1 { margin-bottom: 26px; font-size: 40px; }
.salary-form { display: grid; grid-template-columns: .85fr 1.1fr; align-items: start; gap: 70px; padding: 17px 28px 26px; border-radius: 5px; background: #a0e66f; }
.salary-fields { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 18px 16px; padding-top: 4px; min-width: 0; }
.salary-fields label { display: block; color: var(--reference-navy); font-size: 23px; font-weight: 500; line-height: 1.3; }
.salary-fields input { width: 100%; min-width: 0; height: 48px; padding: 0 12px; border: 0; border-radius: 5px; background: #ecfae2; color: var(--reference-navy); font-size: 23px; font-weight: 500; }
.salary-amount-field label, .salary-period-field label { margin-bottom: 12px; }
.salary-period { width: 100%; }
.salary-period .date-dropdown-toggle { font-size: 23px; }
.salary-fields button[type="submit"], .salary-fields button[type="reset"] { height: 48px; padding: 0 8px; border: 0; border-radius: 5px; font-size: 23px; }
.salary-calculate { background: var(--reference-navy); color: #72be44; font-weight: 700; }
.salary-clear { background: #72be44; color: #fff; font-weight: 500; }
.salary-calculate:hover, .salary-clear:hover { filter: brightness(.95); }
.salary-results { min-width: 0; border-radius: 5px; overflow: hidden; background: #ecfae2; }
.salary-results h2 { margin: 0; padding: 11px 10px; background: var(--reference-navy); color: #72be44; font-size: 23px; font-weight: 700; line-height: 1.1; text-align: center; }
.salary-results dl { display: grid; gap: 12px; margin: 0; padding: 14px 23px 12px; }
.salary-results dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 22px; }
.salary-results dt { font-size: 23px; font-weight: 500; text-align: center; }
.salary-results dd { min-width: 0; margin: 0; padding: 0 20px; border-radius: 5px; background: #72be44; color: #fff; text-align: right; }
.salary-results output { display: block; min-height: 34px; font-size: 28px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.salary-assumptions { margin: 21px 0 0; color: #f5f5ef; font-size: 14px; line-height: 1.5; }
.salary-error { grid-column: 1 / -1; margin: 0; color: #8b162a; font-size: 14px; font-weight: 600; }
.guide-illustration.salary-illustration { display: grid; grid-template-columns: 1fr; border-radius: 50%; }
.guide-illustration.salary-illustration i:nth-child(n) { border: 0; font-size: 105px; }
.salary-page .popular-section { padding-top: 40px; }
@media (max-width: 1199.98px) {
  .salary-form { gap: 32px; padding: 20px; }
  .salary-fields label { font-size: 19px; }
  .salary-results dl { padding: 14px; }
  .salary-results dl > div { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
  .salary-results dt { font-size: 20px; }
  .salary-results dd { padding: 0 10px; }
}
@media (max-width: 767.98px) {
  .salary-hero .hero-description-block h1 { font-size: 32px; }
  .salary-form { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 18px 14px; }
  .salary-fields { gap: 16px 12px; }
  .salary-fields label { font-size: 17px; }
  .salary-fields input, .salary-period .date-dropdown-toggle { font-size: 18px; }
  .salary-fields button[type="submit"], .salary-fields button[type="reset"], .salary-results h2 { font-size: 20px; }
  .salary-results dl > div { grid-template-columns: 75px minmax(0, 1fr); gap: 8px; }
  .salary-results dt { font-size: 17px; }
  .salary-results output { font-size: 23px; }
  .salary-assumptions { font-size: 12px; }
}

.percent-hero h1 { margin: 0 0 22px; color: var(--reference-navy); font-size: 40px; font-weight: 800; line-height: 1.2; }
.percent-hero h2 { margin: 36px 0 26px; color: var(--reference-navy); font-size: 32px; font-weight: 800; line-height: 1.3; }
.percent-intro { margin: 0 0 16px; color: #f5f5ef; font-size: 14px; }
.percent-row { padding: 32px 20px; border-radius: 5px; background: #a0e66f; }
.percent-controls { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--reference-navy); font-size: 22px; font-weight: 500; }
.percent-controls > span { flex: 0 0 auto; }
.percent-input { position: relative; display: flex; flex: 1 1 160px; min-width: 0; margin: 0; }
.percent-input input { width: 100%; min-width: 0; height: 48px; padding: 0 12px; border: 0; border-radius: 5px; appearance: textfield; background: #ecfae2; color: var(--reference-navy); font-size: 22px; text-align: right; }
.percent-input input::-webkit-inner-spin-button, .percent-input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.percent-unit input { padding-right: 31px; }
.percent-unit > span:last-child { position: absolute; top: 8px; right: 12px; pointer-events: none; }
.percent-calculate, .percent-clear { flex: 0 0 auto; height: 48px; padding: 0 28px; border: 0; border-radius: 5px; font-size: 22px; }
.percent-calculate { background: var(--reference-navy); color: #72be44; font-weight: 700; }
.percent-clear { background: #72be44; color: #fff; font-weight: 500; }
.percent-output { display: block; flex: 1 1 160px; min-width: 0; min-height: 48px; padding: 7px 12px; border-radius: 5px; background: #ecfae2; text-align: right; overflow-wrap: anywhere; }
.percent-phrases { border-radius: 5px; overflow: hidden; }
.percent-phrases .percent-row { padding: 36px 20px; border-radius: 0; }
.percent-phrases .percent-row + .percent-row { border-top: 1px solid #ecfae2; }
.percent-error { margin: 12px 0 0; color: #8b162a; font-size: 14px; font-weight: 600; }
.percent-direction { flex: 0 0 172px; }
.percent-direction-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; padding: 0 15px; border: 0; border-radius: 5px; background: #ecfae2; color: var(--reference-navy); font-size: 22px; }
.percent-direction-toggle i { font-size: 15px; }
.percent-direction .dropdown-menu { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0 0 5px 5px; overflow: hidden; background: var(--reference-navy); }
.percent-direction .dropdown-item { padding: 5px 15px; color: #fff; font-size: 22px; }
.percent-direction .dropdown-item:hover, .percent-direction .dropdown-item:focus { background: #303747; }
.percent-page .design-hero { padding-bottom: 42px; }
.percent-page .guide-illustration { position: absolute; top: 65px; right: 22px; float: none; margin: 0; }
.percent-page .guide-copy h2 { font-size: 32px; }
.percent-page .guide-text > p:first-child { min-height: 154px; padding-right: 180px; }
@media (max-width: 1199.98px) {
  .percent-controls { gap: 8px; font-size: 18px; }
  .percent-calculate, .percent-clear { padding: 0 16px; font-size: 18px; }
  .percent-input input, .percent-direction-toggle { font-size: 18px; }
  .percent-direction { flex-basis: 145px; }
}
@media (max-width: 767.98px) {
  .percent-hero h1 { font-size: 30px; overflow-wrap: anywhere; }
  .percent-hero h2 { font-size: 25px; }
  .percent-row, .percent-phrases .percent-row { padding: 20px 14px; }
  .percent-controls { flex-wrap: wrap; gap: 12px 8px; }
  .percent-input { flex: 1 1 90px; }
  .percent-output { flex: 1 1 90px; }
  .percent-calculate { flex-basis: calc(100% - 30px); }
  .percent-clear { flex-basis: 100%; }
  .percent-direction { flex: 1 1 140px; }
  .percent-intro { font-size: 12px; }
  .percent-page .guide-copy h2 { font-size: 25px; }
  .percent-page .guide-text > p:first-child { min-height: 0; padding-right: 0; }
}

.random-hero .hero-description-block h1 { font-size: 40px; }
.random-hero .hero-description-block p { margin-top: 24px; margin-bottom: 16px; }
.random-form { padding: 32px 30px; border-radius: 5px; background: #a0e66f; }
.random-controls { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--reference-navy); font-size: 23px; font-weight: 500; }
.random-controls label { flex: 0 0 auto; }
.random-controls input { flex: 1 1 130px; width: 130px; min-width: 0; height: 48px; padding: 0 12px; border: 0; border-radius: 5px; background: #ecfae2; color: var(--reference-navy); font-size: 23px; text-align: right; }
.random-calculate, .random-clear { flex: 0 0 auto; height: 48px; padding: 0 25px; border: 0; border-radius: 5px; font-size: 23px; }
.random-calculate { background: var(--reference-navy); color: #72be44; font-weight: 700; }
.random-clear { background: #72be44; color: #fff; font-weight: 500; }
.random-calculate:hover, .random-clear:hover { filter: brightness(.95); }
.random-result { display: block; flex: 1 1 125px; min-width: 0; min-height: 48px; padding: 7px 12px; border-radius: 5px; background: #ecfae2; text-align: right; }
.random-equals { flex: 0 0 auto; }
.random-error { margin: 14px 0 0; color: #8b162a; font-size: 14px; font-weight: 600; }
.random-form.has-large-result .random-controls { flex-wrap: wrap; }
.random-form.has-large-result .random-result { order: 1; flex-basis: 100%; padding: 14px; font-size: 16px; overflow-wrap: anywhere; text-align: left; }
.random-page .design-hero { padding-bottom: 38px; }
.random-page .popular-section { padding-top: 34px; }
.random-page .guide-copy h2 { font-size: 32px; }
@media (max-width: 1199.98px) {
  .random-form { padding: 26px 20px; }
  .random-controls, .random-controls input { font-size: 19px; }
  .random-calculate, .random-clear { padding: 0 16px; font-size: 19px; }
}
@media (max-width: 767.98px) {
  .random-hero .hero-description-block h1 { font-size: 30px; overflow-wrap: anywhere; }
  .random-form { padding: 20px 14px; }
  .random-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 10px; font-size: 17px; }
  .random-controls input { width: 100%; font-size: 18px; }
  .random-calculate, .random-clear { grid-column: 1 / -1; font-size: 20px; }
  .random-result { grid-column: 1 / -1; font-size: 20px; }
  .random-equals { display: none; }
  .random-form.has-large-result .random-controls { display: grid; }
  .random-form.has-large-result .random-result { order: 0; }
  .random-page .guide-copy h2 { font-size: 26px; }
}

.reference-page { background: var(--reference-green); color: var(--reference-navy); font-family: var(--reference-font); }
.reference-page h1, .reference-page h2, .reference-page h3 { font-family: var(--reference-font); }
.desktop-shell { width: min(100% - 40px, 1066px); max-width: 1066px; margin-right: auto; margin-left: auto; padding-right: 0; padding-left: 0; }
.design-nav { min-height: 87px; padding: 0; background: var(--reference-navy); }
.design-nav > .desktop-shell { display: flex; min-height: 87px; align-items: center; }
.design-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0; margin: 0; color: #8d8f95; font-family: var(--reference-font); font-size: 39px; font-weight: 400; letter-spacing: 0; line-height: 1; text-decoration: none; }
.design-brand:hover, .design-brand:focus { color: #a2a3a9; }
.design-brand img { display: block; width: 165px; height: auto; }
.brand-emblem { position: relative; display: inline-block; width: 36px; height: 48px; margin: 0 1px; }
.brand-emblem::before, .brand-emblem::after { position: absolute; left: 8px; width: 21px; height: 30px; border: 8px solid #6ec447; border-radius: 80% 10% 80% 10%; content: ""; }
.brand-emblem::before { top: 1px; transform: rotate(42deg); }
.brand-emblem::after { bottom: 1px; transform: rotate(222deg); }
.design-nav .navbar-collapse { justify-content: flex-end; }
.design-nav .navbar-nav { gap: 23px; }
.design-nav .nav-link { display: flex; align-items: center; gap: 9px; padding: 8px 0; color: #f5f5f5; font-size: 13px; font-weight: 500; white-space: nowrap; }
.design-nav .nav-link.active, .design-nav .nav-link:hover { color: #72c545; }
.design-nav #miscellaneousMenu.nav-link,
.design-nav #miscellaneousMenu.nav-link:hover,
.design-nav #miscellaneousMenu.nav-link:focus,
.design-nav #miscellaneousMenu.nav-link:active,
.design-nav #miscellaneousMenu.nav-link.show { color: #fff; }
.design-nav .nav-link i { color: #72c545; font-size: 12px; }
.design-search { display: flex; width: 106px; height: 20px; align-items: center; gap: 7px; padding: 0 6px; border-radius: 2px; background: #fff; color: #92949a; }
.design-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #292b30; background: transparent; font-size: 12px; }
.design-search input::placeholder { color: #777; opacity: 1; }
.design-search i { font-size: 14px; }
.design-search .search-submit { display: grid; flex: 0 0 auto; place-items: center; padding: 0; border: 0; background: transparent; color: #92949a; line-height: 1; cursor: pointer; }
.design-search .search-submit:focus-visible { outline: 2px solid var(--reference-green); outline-offset: 2px; }
.design-nav .navbar-toggler { border-color: rgba(255, 255, 255, .35); }
.design-nav .navbar-toggler-icon { filter: invert(1); }

.design-hero { padding: 39px 0 17px; background: var(--reference-green); }
.hero-layout { display: grid; grid-template-columns: 1fr 1.06fr; align-items: start; gap: 42px; }
.hero-calculator { padding-top: 12px; }
.hero-description-block { padding-top: 0; }
.hero-description-block h1 { margin: 0 0 15px; color: var(--reference-navy); font-size: 46px; font-weight: 800; letter-spacing: 0; line-height: 1.2; }
.hero-description-block p { margin: 0 0 22px; color: #f5f5ef; font-size: 14px; font-weight: 400; line-height: 1.5; }
.calc-unit { min-width: 0; }
.calc-screen { display: flex; min-width: 0; min-height: 68px; flex-direction: column; align-items: flex-end; justify-content: space-between; overflow: hidden; margin-bottom: 8px; padding: 8px 15px 7px; border-radius: 7px; background: #f0f7e9; color: var(--reference-navy); }
.calc-expression { width: 100%; min-height: 14px; overflow: hidden; color: #72767b; font-size: 10px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.calc-value { display: block; max-width: 100%; overflow: hidden; color: var(--reference-navy); font-family: var(--reference-font); font-size: 31px; font-weight: 400; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.reference-keypad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.reference-key { display: grid; min-width: 0; min-height: 39px; place-items: center; padding: 0; border: 0; border-radius: 7px; background: #f0f7e9; color: var(--reference-navy); font-family: var(--reference-font); font-size: 15px; font-weight: 400; transition: filter .12s ease; }
.reference-key:hover { filter: brightness(.95); }
.reference-key:active { filter: brightness(.88); }
.reference-key.key-soft { background: #cce5bd; }
.reference-key.key-result { background: var(--reference-navy); color: #70c144; }
.calc-expression:empty { display: none; }

.popular-section { position: relative; padding: 24px 0 57px; background: var(--reference-green); }
.popular-section::before, .popular-section::after { position: absolute; left: 50%; width: min(100% - 40px, 1066px); height: 1px; background: #e1efdc; content: ""; transform: translateX(-50%); }
.popular-section::before { top: 0; }
.popular-section::after { bottom: 0; }
.popular-section h2 { margin: 0 0 17px; color: var(--reference-navy); font-size: 34px; font-weight: 800; letter-spacing: 0; line-height: 1.2; text-align: center; }
.popular-intro { max-width: 880px; margin: 22px auto 45px; color: #f5f5ef; font-size: 14px; font-weight: 400; line-height: 1.5; text-align: center; }
.popular-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.popular-card { position: relative; display: flex; min-width: 0; min-height: 39px; align-items: center; justify-content: center; padding: 4px 10px 4px 65px; border: 0; border-radius: 7px; background: #e1efdc; color: var(--reference-navy); font-family: var(--reference-font); font-size: 18px; font-weight: 600; text-align: center; white-space: nowrap; }
.popular-card:disabled { opacity: 1; }
.popular-icon { position: absolute; top: 50%; left: 12px; width: 92px; height: 99px; object-fit: contain; pointer-events: none; transform: translateY(-50%); }
.popular-card > span:last-child { position: absolute; top: 50%; left: 115px; transform: translateY(-50%); }
.popular-icon.scientific-icon { transform: translateY(calc(-50% - 2px)); }

.calculator-guide { padding: 24px 0 30px; background: var(--reference-green); }
.guide-layout { display: grid; grid-template-columns: .83fr 1.17fr; align-items: stretch; gap: 15px; }
.guide-calculator { position: relative; min-height: 100%; padding: 21px 28px; background: var(--reference-navy); }
.guide-calculator .calc-screen { min-height: 49px; margin-bottom: 6px; padding: 4px 10px; border-radius: 6px; background: #e5e6e9; }
.guide-calculator .calc-value { font-size: 29px; }
.guide-calculator .calc-expression { min-height: 10px; font-size: 9px; }
.guide-calculator .reference-keypad { gap: 5px; }
.guide-calculator .reference-key { min-height: 28px; border-radius: 6px; background: #e5e6e9; font-size: 15px; }
.guide-calculator .reference-key.key-soft { background: #aeb0b6; }
.guide-calculator .reference-key.key-result { background: #6fbe3d; color: var(--reference-navy); }
.calculator-extras { position: absolute; right: 13px; bottom: 13px; margin: 0; }
.calculator-extras summary { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255, 255, 255, .18); border-radius: 4px; color: #aeb0b6; cursor: pointer; list-style: none; opacity: 1; transition: opacity .15s ease; }
.calculator-extras summary::-webkit-details-marker { display: none; }
.guide-calculator:hover .calculator-extras summary, .calculator-extras summary:focus-visible, .calculator-extras[open] summary { opacity: 1; }
.calculator-extras summary:hover, .calculator-extras[open] summary { border-color: #71c346; color: #8bdb62; }
.calculator-extra-keys { position: absolute; right: 0; bottom: calc(100% + 8px); display: grid; width: 176px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 8px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 5px; background: #1c2230; }
.calculator-extra-keys button { min-width: 0; min-height: 26px; padding: 0 2px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 4px; background: #252c3b; color: #e7e8ea; font-family: var(--reference-font); font-size: 9px; }
.calculator-extra-keys button:hover { border-color: #71c346; color: #8bdb62; }
.calculator-extra-keys [data-action="clear-entry"] { display: none; }
.guide-calculator.has-entry .calculator-extra-keys [data-action="clear-entry"] { display: grid; }
.guide-copy { position: relative; min-width: 0; padding: 22px 21px 27px; overflow: hidden; background: var(--reference-panel); color: #f5f5ef; }
.guide-heading, .guide-text { display: contents; }
.guide-illustration { float: right; display: grid; grid-template-columns: repeat(2, 1fr); width: 154px; height: 154px; margin: 5px 10px 12px 24px; overflow: hidden; border: 6px solid #a7dba1; border-radius: 25px; color: #a7dba1; }
.guide-illustration i { display: grid; place-items: center; font-size: 66px; line-height: 1; }
.guide-illustration i:nth-child(odd) { border-right: 6px solid #a7dba1; }
.guide-illustration i:nth-child(-n+2) { border-bottom: 6px solid #a7dba1; }
.division-symbol { position: relative; }
.division-symbol::after { position: absolute; top: 13px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 34px 0 currentColor; content: ""; }
.guide-copy h2 { margin: 0 0 16px; color: var(--reference-navy); font-size: 34px; font-weight: 800; letter-spacing: 0; line-height: 1.2; }
.guide-copy p, .guide-copy li { color: #f6f6f1; font-size: 14px; font-weight: 400; line-height: 1.5; }
.guide-copy p { margin: 0; }
.guide-copy ul { margin: 22px 0 0; padding-left: 21px; }
.guide-copy h3 { margin: 22px 0 5px; color: #fff; font-size: 15px; font-weight: 700; }
.guide-copy strong { font-weight: 400; }
.related-calculators { margin-top: 34px; }
.related-calculators h3 { margin: 0 0 11px; color: #f5f5f5; font-size: 13px; font-weight: 600; }
.related-list { display: grid; gap: 18px; }
.related-tool { display: flex; width: 100%; min-width: 0; min-height: 62px; padding: 0; border: 0; border-radius: 5px; overflow: hidden; background: #898c94; color: #fff; text-align: left; opacity: 1; }
.related-icon { display: grid; flex: 0 0 76px; align-self: stretch; place-items: center; background: var(--reference-green); color: #fff; font-size: 38px; }
.related-label { min-width: 0; align-self: center; padding: 7px 10px 7px 14px; font-size: 18px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.related-label small { display: block; margin-top: 3px; color: #e1e1e5; font-size: 14px; font-weight: 400; }
.dot-icon { grid-template-columns: repeat(2, 14px); grid-template-rows: repeat(2, 14px); align-content: center; justify-content: center; gap: 6px; font-size: 14px; line-height: 1; }
.two-dots i:first-child { grid-row: 2; }
.two-dots i:last-child { grid-column: 2; }

.design-footer { min-height: 246px; padding: 21px 20px 30px; background: var(--reference-navy); color: #838792; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 42px; margin-bottom: 27px; }
.footer-links a { color: #838792; font-size: 13px; font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: #a8e87b; }
.footer-brand-row { display: flex; align-items: center; justify-content: center; gap: 42px; margin-bottom: 30px; }
.footer-logo img { width: 265px; }
.footer-logo .brand-emblem { width: 44px; height: 56px; }
.footer-divider { width: 1px; height: 58px; background: #d6d7d9; }
.social-links { display: flex; align-items: center; gap: 36px; }
.social-links a { display: grid; width: 40px; height: 40px; place-items: center; color: var(--reference-green); font-size: 36px; text-decoration: none; }
.copyright { margin: 0; color: #838792; font-size: 14px; }

@media (max-width: 1199.98px) {
  .design-nav .navbar-nav { gap: 15px; }
  .design-nav .nav-link { font-size: 11px; }
  .hero-layout { gap: 30px; }
  .popular-grid { gap: 22px; }
  .popular-card { font-size: 16px; }
  .popular-card > span:last-child { left: 104px; }
  .popular-icon { width: 82px; height: 88px; }
}

@media (max-width: 991.98px) {
  .design-nav > .desktop-shell { min-height: 76px; }
  .design-nav .navbar-collapse { padding: 10px 0 15px; }
  .design-nav .navbar-nav { align-items: stretch !important; gap: 4px; }
  .design-nav .nav-link { font-size: 13px; }
  .design-search { width: 100%; }
  .hero-layout { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-description-block h1 { font-size: 36px; }
  .guide-layout { grid-template-columns: .9fr 1.1fr; gap: 12px; }
  .guide-calculator { padding: 15px; }
  .guide-copy { padding: 18px; }
  .popular-grid { grid-template-columns: 1fr; gap: 54px; }
  .popular-card { justify-content: flex-start; padding-left: 110px; }
  .popular-card > span:last-child { position: static; transform: none; white-space: normal; }
  .guide-illustration { width: 110px; height: 110px; margin-left: 14px; }
  .guide-illustration i { font-size: 42px; }
  .division-symbol::after { top: 7px; width: 7px; height: 7px; left: calc(50% - 3.5px); box-shadow: 0 25px 0 currentColor; }
}

@media (max-width: 767.98px) {
  .desktop-shell { width: min(100% - 32px, 540px); }
  .hero-layout { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "calculator" "copy"; gap: 12px 0; background: var(--reference-panel); }
  .guide-copy { display: contents; }
  .guide-heading { position: relative; display: block; grid-area: heading; min-height: 0; margin: 18px 18px 0; }
  .guide-heading h2 { margin: 0; padding-right: 0; }
  .guide-text { display: block; grid-area: copy; margin: 0 18px 18px; }
  .guide-illustration { position: absolute; top: -1px; right: 0; float: none; margin: 0; font-size: 100px; }
  .guide-heading .guide-illustration { display: none; }
  .guide-calculator { grid-area: calculator; min-height: 0; margin: 0; padding: 18px 18px 46px; }
  .design-hero { padding: 33px 0 27px; }
  .hero-description-block h1 { font-size: 35px; }
  .hero-description-block p { font-size: 13px; }
  .popular-section h2 { font-size: 29px; }
  .popular-intro { margin-bottom: 27px; font-size: 12px; }
  .popular-grid { grid-template-columns: 1fr; gap: 50px; padding: 10px 0 14px 10px; }
  .popular-card { justify-content: flex-start; padding-left: 95px; font-size: 14px; }
  .popular-card > span:last-child { position: static; transform: none; white-space: normal; }
  .popular-icon { left: 8px; width: 67px; height: 72px; }
  .guide-copy h2 { font-size: 29px; }
  .guide-copy p, .guide-copy li { font-size: 12px; }
  .footer-links { flex-wrap: wrap; gap: 12px 24px; margin-bottom: 25px; }
  .footer-brand-row { flex-wrap: wrap; gap: 16px; }
  .footer-logo img { width: 180px; }
  .footer-divider { display: none; }
  .related-label { font-size: 16px; }
  .related-icon { flex-basis: 64px; }
  .footer-logo { font-size: 36px; }
  .footer-logo .brand-emblem { width: 34px; height: 46px; }
  .social-links { gap: 8px; }
  .social-links a { width: 31px; height: 31px; font-size: 15px; }
}

@media (max-width: 420px) {
  .design-brand { font-size: 32px; }
  .brand-emblem { width: 29px; height: 40px; }
  .hero-description-block h1 { font-size: 32px; }
  .reference-keypad { gap: 5px; }
  .reference-key { min-height: 43px; }
  .guide-calculator .reference-key { min-height: 37px; }
  .guide-illustration { font-size: 75px; }
  .footer-divider { height: 42px; }
}

.square-page .hero-description-block h1 { font-size: 40px; }
.square-page .hero-description-block p { margin-top: 24px; margin-bottom: 16px; }
.square-page .design-hero { padding-bottom: 30px; }
.square-form { padding: 33px 30px 35px; border-radius: 5px; background: #a0e66f; }
.square-dimensions, .square-actions { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--reference-navy); font-size: 23px; font-weight: 500; }
.square-dimensions { gap: 26px; margin-bottom: 23px; }
.square-dimension { display: flex; align-items: center; gap: 16px; min-width: 0; }
.square-dimension input[type=number] { width: 130px; min-width: 0; height: 48px; padding: 0 16px; border: 0; border-radius: 6px; background: #ecfae2; color: var(--reference-navy); }
.square-unit { width: 172px; }
.square-unit-toggle { display: flex; width: 100%; height: 48px; align-items: center; justify-content: space-between; padding: 0 16px; border: 0; border-radius: 6px; background: #ecfae2; color: var(--reference-navy); font-weight: 500; }
.square-unit-toggle i { color: #72be44; font-size: 24px; -webkit-text-stroke: 1px; }
.square-unit .dropdown-menu { width: 100%; min-width: 172px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #fff; }
.square-unit .dropdown-item { padding: 6px 16px; color: var(--reference-navy); font-size: 23px; font-weight: 500; }
.square-unit .dropdown-item.active, .square-unit .dropdown-item:hover, .square-unit .dropdown-item:focus { border-radius: 6px; background: #72be44; color: var(--reference-navy); }
.square-calculate, .square-clear { height: 48px; padding: 0 25px; border: 0; border-radius: 6px; font-size: 23px; }
.square-calculate { background: var(--reference-navy); color: #72be44; font-weight: 700; }
.square-clear { min-width: 132px; background: #72be44; color: #fff; }
.square-calculate:hover, .square-clear:hover { filter: brightness(.95); }
.square-actions output { width: 335px; min-height: 48px; padding: 7px 18px; border-radius: 6px; background: #ecfae2; font-weight: 400; overflow-wrap: anywhere; }
.square-actions output strong { font-weight: 700; }
.square-error { margin: 14px 0 0; color: #8b162a; font-size: 14px; font-weight: 600; text-align: center; }
.square-page .popular-section { padding-top: 36px; }
.square-page .guide-copy h2 { font-size: 34px; }
.square-page .guide-text > p:first-child { max-width: 365px; }
@media (max-width: 1199.98px) {
  .square-dimensions, .square-actions { gap: 12px; font-size: 20px; }
  .square-dimension { gap: 10px; }
  .square-dimension input[type=number] { width: 105px; }
  .square-unit { width: 155px; }
  .square-calculate, .square-clear { padding: 0 18px; font-size: 20px; }
}
@media (max-width: 767.98px) {
  .square-page .hero-description-block h1 { font-size: 30px; }
  .square-form { padding: 22px 14px; }
  .square-dimensions { display: grid; gap: 14px; }
  .square-dimension { display: grid; grid-template-columns: 65px minmax(0, 1fr) minmax(0, 1.3fr); font-size: 17px; }
  .square-dimension input[type=number], .square-unit { width: 100%; }
  .square-unit-toggle { padding: 0 10px; font-size: 17px; }
  .square-actions { display: grid; grid-template-columns: 1fr; gap: 12px; font-size: 18px; }
  .square-actions output { width: 100%; }
  .square-page .guide-copy h2 { font-size: 26px; }
}

/* Kids calculator reference page */
.kids-hero { padding: 39px 0 24px; }
.kids-layout { display: grid; grid-template-columns: 348px minmax(0, 1fr); gap: 43px; align-items: start; }
.kids-page .hero-description-block h1 { margin-bottom: 28px; }
.kids-page .hero-description-block p { margin-bottom: 22px; }
.kids-calculator { margin-top: 20px; padding: 28px 22px 19px; border-radius: 6px; background: #a0e66f; }
.kids-calculator .calc-screen { height: 74px; min-height: 74px; padding: 3px 24px; margin-bottom: 11px; background: #f4fced; justify-content: center; }
.kids-calculator .calc-value { font-size: 56px; line-height: 1; }
.kids-calculator .calc-expression { min-height: 0; font-size: 12px; }
.kids-controls { display: grid; grid-template-columns: minmax(0, 1fr) 133px; grid-template-rows: 79px auto; gap: 11px; }
.kids-clear { border: 0; border-radius: 6px; background: var(--reference-navy); color: var(--reference-green); font-family: var(--reference-font); font-size: 36px; font-weight: 800; }
.kids-digits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; padding: 20px 33px 26px; border-radius: 6px; background: var(--reference-panel); }
.kids-operations { display: grid; grid-column: 2; grid-row: 1 / 3; align-content: space-between; justify-items: center; gap: 10px; padding: 15px 12px 26px; border-radius: 6px; background: #f4fced; }
.kids-key { display: grid; width: 100%; aspect-ratio: 1; place-items: center; padding: 0; border: 3px solid var(--reference-navy); border-radius: 50%; background: #f4fced; color: var(--reference-navy); font-family: var(--reference-font); font-size: 58px; font-weight: 800; line-height: 1; }
.kids-operator { width: 94px; background: var(--reference-panel); color: #f4fced; }
.kids-equals { background: var(--reference-navy); color: #fff; border-color: #a0e66f; }
.kids-key:hover, .kids-clear:hover { filter: brightness(.94); }
.kids-key:active, .kids-clear:active { transform: scale(.96); }
.kids-key:focus-visible, .kids-clear:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.kids-page .popular-section { padding-top: 32px; }
.kids-page .guide-layout { min-height: 1130px; }
.kids-page .guide-copy h2 { margin-bottom: 24px; }
.kids-page .guide-copy p { margin-bottom: 22px; }
@media (max-width: 1199.98px) {
  .kids-layout { grid-template-columns: 30% minmax(0, 1fr); gap: 30px; }
  .kids-digits { padding: 20px; gap: 12px; }
  .kids-key { font-size: 46px; }
  .kids-clear { font-size: 29px; }
  .kids-controls { grid-template-columns: minmax(0, 1fr) 110px; }
  .kids-operator { width: 82px; }
}
@media (max-width: 991.98px) {
  .kids-layout { grid-template-columns: 1fr; gap: 0; }
  .kids-page .hero-description-block h1 br { display: none; }
  .kids-calculator { margin-top: 0; }
  .kids-page .guide-layout { min-height: 1000px; }
}
@media (max-width: 767.98px) {
  .kids-calculator { padding: 16px 12px; }
  .kids-controls { grid-template-columns: minmax(0, 1fr) 68px; grid-template-rows: 55px auto; gap: 8px; }
  .kids-clear { font-size: clamp(17px, 4.4vw, 27px); }
  .kids-digits { padding: 12px 8px; gap: 8px; align-content: space-between; }
  .kids-operations { padding: 9px 5px; gap: 9px; }
  .kids-key { border-width: 2px; font-size: clamp(25px, 7vw, 44px); }
  .kids-operator { width: 56px; }
  .kids-calculator .calc-value { font-size: 44px; }
  .kids-page .guide-layout { min-height: 0; }
}

/* Numbers to words reference page */
.words-hero { padding: 36px 0 20px; }
.words-page .hero-description-block h1 { font-size: 40px; margin-bottom: 22px; }
.words-page .hero-description-block p { margin-bottom: 35px; }
.words-form { display: grid; grid-template-columns: 315px minmax(0, 1fr); gap: 24px; padding: 19px 29px 22px 26px; border-radius: 6px; background: #a0e66f; }
.words-entry { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 13px 24px; align-items: center; }
.words-entry label { font-size: 23px; font-weight: 500; }
.words-entry input { width: 100%; min-width: 0; height: 52px; padding: 0 18px; border: 0; border-radius: 6px; background: #ecfae2; color: var(--reference-navy); font-family: var(--reference-font); font-size: 23px; font-weight: 500; }
.words-convert { grid-column: 2; min-height: 52px; border: 0; border-radius: 5px; background: var(--reference-navy); color: var(--reference-green); font-size: 23px; font-weight: 700; }
.words-result-panel { min-width: 0; overflow: hidden; border-radius: 6px; background: #ecfae2; }
.words-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 4px 5px 4px 26px; background: var(--reference-navy); }
.words-result-heading h2 { margin: 0; color: var(--reference-green); font-size: 23px; font-weight: 700; }
.words-clear { min-width: 121px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--reference-green); color: #fff; font-size: 23px; }
.words-result-panel output { display: block; min-height: 65px; padding: 14px 26px; color: var(--reference-navy); font-size: 23px; font-weight: 500; overflow-wrap: anywhere; }
.words-convert:hover, .words-clear:hover { filter: brightness(.94); }
.words-page .popular-section { padding-top: 28px; }
.words-page .calculator-guide { padding-top: 28px; padding-bottom: 75px; }
.words-page .guide-layout { min-height: 1160px; }
.words-page .guide-copy h2 { font-size: 34px; margin-bottom: 22px; }
.words-page .guide-text > p:first-child { max-width: 360px; }
@media (max-width: 991.98px) {
  .words-form { grid-template-columns: 260px minmax(0, 1fr); gap: 18px; padding: 20px; }
  .words-entry { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .words-entry label, .words-entry input, .words-result-panel output { font-size: 19px; }
}
@media (max-width: 767.98px) {
  .words-page .hero-description-block h1 { font-size: 30px; }
  .words-form { grid-template-columns: minmax(0, 1fr); padding: 18px 14px; }
  .words-entry { grid-template-columns: 80px minmax(0, 1fr); }
  .words-result-heading { padding-left: 16px; }
  .words-result-panel output { padding: 14px 16px; }
  .words-page .guide-layout { min-height: 0; }
  .words-page .guide-copy h2 { font-size: 27px; }
  .words-page .calculator-guide { padding-bottom: 30px; }
}

/* Dice roller reference page */
.dice-hero { padding: 36px 0 21px; }
.dice-page .hero-description-block h1 { font-size: 40px; margin-bottom: 22px; }
.dice-page .hero-description-block p { margin-bottom: 25px; }
.dice-form { display: grid; grid-template-columns: 317px minmax(0, 1fr); gap: 20px; padding: 19px 29px 18px; border-radius: 6px; background: #a0e66f; }
.dice-entry label { display: block; margin: 2px 0 16px; font-size: 23px; font-weight: 500; }
.dice-entry input { width: 100%; height: 52px; padding: 0 18px; border: 0; border-radius: 6px; background: #ecfae2; color: var(--reference-navy); font-family: var(--reference-font); font-size: 23px; font-weight: 500; }
.dice-entry #diceHelp { margin: 8px 0; color: var(--reference-navy); font-size: 23px; font-weight: 500; }
.dice-roll { width: 100%; min-height: 52px; border: 0; border-radius: 5px; background: var(--reference-navy); color: var(--reference-green); font-size: 23px; font-weight: 700; }
.dice-roll:hover { filter: brightness(.94); }
.dice-results { min-width: 0; overflow: hidden; border-radius: 6px; background: #ecfae2; }
.dice-results h2 { min-height: 52px; margin: 0; padding: 11px 26px; background: var(--reference-green); font-size: 23px; font-weight: 700; }
.dice-faces { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; padding: 15px 30px; }
.die-face { display: grid; flex: 0 0 70px; width: 70px; height: 70px; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 12px; gap: 4px; border: 1px solid var(--reference-green); border-radius: 10px; background: var(--reference-navy); }
.die-pip { width: 12px; height: 12px; align-self: center; justify-self: center; border-radius: 50%; background: var(--reference-green); }
.pip-1 { grid-area: 1 / 1; } .pip-3 { grid-area: 1 / 3; } .pip-4 { grid-area: 2 / 1; } .pip-5 { grid-area: 2 / 2; } .pip-6 { grid-area: 2 / 3; } .pip-7 { grid-area: 3 / 1; } .pip-9 { grid-area: 3 / 3; }
.dice-result-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: start; min-height: 69px; padding: 18px 26px; border-top: 2px solid var(--reference-navy); font-size: 23px; font-weight: 500; }
.dice-result-row output { overflow-wrap: anywhere; }
.dice-error { margin: 12px 0 0; color: #8b162a; font-size: 14px; }
.dice-page .popular-section { padding-top: 37px; }
.dice-page .calculator-guide { padding-top: 27px; padding-bottom: 65px; }
.dice-page .guide-copy h2 { font-size: 34px; margin-bottom: 22px; }
.dice-page .guide-text > p:first-child { max-width: 360px; }
.miscellaneous-menu { min-width: 125px; padding: 0; border: 0; border-radius: 0; background: #494f5e; }
.miscellaneous-menu .dropdown-item { padding: 3px 5px; color: var(--reference-green); font-size: 13px; }
.miscellaneous-menu .dropdown-item:hover, .miscellaneous-menu .dropdown-item.active { background: #494f5e; color: var(--reference-green); }
@media (max-width: 1199.98px) {
  .dice-form { grid-template-columns: 30% minmax(0, 1fr); padding: 20px; }
  .dice-faces { gap: 14px; padding: 15px 20px; }
  .die-face { flex-basis: 60px; width: 60px; height: 60px; padding: 8px; }
}
@media (max-width: 767.98px) {
  .dice-page .hero-description-block h1 { font-size: 32px; }
  .dice-form { grid-template-columns: minmax(0, 1fr); padding: 18px 14px; }
  .dice-entry label, .dice-entry input, .dice-entry #diceHelp, .dice-result-row { font-size: 20px; }
  .dice-faces { gap: 12px; padding: 16px; }
  .dice-result-row { grid-template-columns: 80px minmax(0, 1fr); padding: 16px; }
  .dice-page .guide-copy h2 { font-size: 29px; }
  .dice-page .calculator-guide { padding-bottom: 30px; }
}
/* Mobile banners place the tool between the title and its description. */
@media (max-width: 767.98px) {
  .reference-page .design-hero > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .design-hero .hero-description-block {
    display: contents;
  }

  .design-hero .hero-description-block > p {
    order: 1;
    max-width: none;
  }

  .design-hero .hero-description-block > h1 + p {
    margin-top: 24px;
  }

  .percent-hero > .container > h1 {
    order: -3;
  }

  .percent-hero > .container > form[data-percent="basic"] {
    order: -2;
  }

  .percent-hero > .container > h1 + .percent-intro {
    order: -1;
    margin-top: 24px;
  }
}
/* Shared document pages. */
.information-banner { padding: 28px 0 0; background: var(--reference-green); }
.information-home { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 0; color: var(--reference-navy); font-size: 14px; text-decoration: none; }
.information-banner h1 { margin: 0; color: var(--reference-navy); font-size: clamp(32px, 5vw, 46px); font-weight: 800; line-height: 1.2; }
.information-content { padding: 42px 0 64px; background: var(--reference-green); }
.information-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 34px; }
.information-sidebar { position: sticky; top: 24px; overflow: hidden; border-radius: 8px; background: var(--reference-navy); }
.information-sidebar-panel { border-radius: 8px; overflow: hidden; background: var(--reference-navy); }
.information-sidebar nav { overflow: hidden; padding: 20px; border-radius: 8px; background: var(--reference-navy); }
.information-sidebar a { display: flex; align-items: stretch; min-height: 62px; margin-bottom: 14px; padding: 0; overflow: hidden; border-radius: 5px; background: #898c94; color: #fff; text-decoration: none; }
.information-sidebar a:last-child { margin-bottom: 0; }
.information-sidebar a:hover { background: #777d89; }
.information-sidebar a.current { outline: 2px solid var(--reference-green); outline-offset: 2px; }
.information-link-icon { display: grid; flex: 0 0 52px; place-items: center; background: var(--reference-green); color: #fff; font-size: 27px; }
.information-link-label { align-self: center; padding: 10px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.information-sidebar .information-sections { margin-top: 0; padding-top: 10px; background: var(--reference-navy); }
.information-sidebar .information-sections a { min-height: 0; padding: 9px 12px; margin: 0; background: transparent; color: #fff; font-size: 12px; }
.information-sidebar .information-sections a:hover { text-decoration: underline; }
.information-article { min-width: 0; padding: 28px 24px; border: 0; border-radius: 0; background: var(--reference-panel); color: #fff; overflow-wrap: anywhere; }
.information-article h1 { margin: 0 0 24px; color: var(--reference-navy); font-size: clamp(30px, 4vw, 38px); font-weight: 800; line-height: 1.25; }
.information-article p, .information-article li { font-size: 14px; line-height: 1.85; }
.information-article p { margin: 0 0 20px; }
.information-article h2 { margin: 32px 0 15px; color: var(--reference-navy); font-size: 24px; font-weight: 700; line-height: 1.35; scroll-margin-top: 24px; }
.information-article ul { padding-left: 22px; margin-bottom: 24px; }
.information-article li { margin-bottom: 9px; }
.information-article > :last-child { margin-bottom: 0; }
.contact-page-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 24px; margin-top: 26px; border-top: 1px solid #d7e6cc; }
.contact-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.contact-field input, .contact-field select, .contact-field textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #cad9bf; border-radius: 6px; background: #f3f9ee; color: var(--reference-navy); font: inherit; }
.contact-field textarea { resize: vertical; }
.contact-full { grid-column: 1 / -1; }
.contact-email-button { display: inline-flex; align-items: center; gap: 14px; padding: 13px 22px; border: 0; border-radius: 6px; background: var(--reference-navy); color: var(--reference-green); font-weight: 600; }
.information-home:focus-visible, .information-sidebar a:focus-visible, .contact-page-form :focus-visible { outline: 3px solid #399321; outline-offset: 3px; }
.information-article .contact-form-note { margin: 14px 0 0; font-size: 12px; color: #fff; }
#contactStatus:empty { display: none; }
#contactStatus { margin-top: 14px; }
@media (max-width: 991.98px) {
  .information-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 22px; }
  .information-article { padding: 28px; }
}
@media (max-width: 767.98px) {
  .information-banner { padding: 24px 0 0; }
  .information-content { padding: 24px 0 36px; }
  .information-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .information-sidebar { position: static; }
  .information-sidebar nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .information-sidebar a { margin: 0; }
  .information-link-icon { flex-basis: 64px; font-size: 32px; }
  .information-link-label { font-size: 16px; }
  .information-sidebar .information-sections { display: grid; gap: 0; }
  .information-article { padding: 24px 20px; }
  .information-article h2 { font-size: 22px; }
  .contact-page-form { grid-template-columns: minmax(0, 1fr); }
}

/* Tool directory and related links without duplicate calculator controls. */
.all-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.all-tools-grid a { padding: 18px; border-radius: 8px; background: var(--reference-panel, #eef3ec); color: inherit; font-weight: 600; }
.guide-calculator .related-calculators { margin-top: 0; }
.kids-page .guide-layout, .words-page .guide-layout { min-height: 0; }
@media (max-width: 767.98px) { .all-tools-grid { grid-template-columns: 1fr; } }

/* Shared icon directory from the supplied page designs. */
:root { --reference-green: #73bf44; }
.popular-grid { row-gap: 70px; padding-top: 10px; }
.popular-card { justify-content: flex-start; padding-left: 117px; text-align: left; white-space: normal; }
.popular-card > span:last-child { position: static; transform: none; line-height: 1.35; }
.popular-card:focus-visible { outline: 3px solid var(--reference-navy); outline-offset: 6px; }
.popular-icon { width: 93px; height: 99px; }
.related-icon img { display: block; width: 46px; height: 44px; object-fit: contain; }
.sidebar-basic-calculator + .related-calculators { margin-top: 36px; }
.sidebar-basic-calculator .calc-screen { justify-content: center; }
.design-nav #miscellaneousMenu.nav-link.active,
.design-nav #miscellaneousMenu.nav-link.show { color: var(--reference-green); }
@media (max-width: 1199.98px) {
  .popular-card { padding-left: 104px; }
  .popular-icon { width: 82px; height: 88px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 24px; }
}
@media (max-width: 767.98px) {
  .popular-grid { gap: 50px; padding: 10px 0 14px; }
  .popular-card { min-height: 42px; padding-left: 95px; }
  .popular-icon { width: 67px; height: 72px; }
  .popular-section { padding-bottom: 44px; }
}
