#content {
  width: min(1172px, calc(100% - 68px));
  margin-inline: auto;
}
.tools-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 48px;
  align-items: center;
  margin: 40px 0 32px;
}
.tools-hero h1 {
  font-size: clamp(36px, 4.1vw, 54px);
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 18px 0;
}
.tools-hero > div > p {
  font-size: 17px;
  line-height: 1.8;
  max-width: 590px;
  color: #687468;
}
.tools-feature {
  display: block;
  padding: 30px;
  background: #1b3327;
  color: #fff;
  border-radius: 19px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.tools-feature > span {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  background: #d7ef6b;
  color: #1e3627;
  border-radius: 14px;
  margin-bottom: 22px;
}
.tools-feature svg {
  width: 25px;
  height: 25px;
}
.tools-feature > small {
  font: 10px monospace;
  letter-spacing: 1.5px;
  color: #bdcca8;
}
.tools-feature h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.tools-feature p {
  font-size: 13px;
  line-height: 1.7;
  color: #c3d2c6;
}
.tools-feature > b {
  display: block;
  font-size: 12px;
  margin-top: 23px;
  color: #d7ef6b;
}
.tools-toolbar {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding: 12px;
  border: 1px solid #dfe5d9;
  border-radius: 12px;
  background: #fff;
}
.tools-toolbar > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.tools-toolbar button {
  padding: 10px 13px;
  border: 1px solid transparent;
  background: none;
  color: #657065;
  border-radius: 7px;
  font:
    500 12px Inter,
    sans-serif;
  cursor: pointer;
}
.tools-toolbar button[aria-pressed="true"] {
  background: #eaf0da;
  border-color: #dce6c5;
  color: #223924;
}
.tools-toolbar > label {
  max-width: 320px;
  flex: 1;
  min-width: 220px;
}
.tools-toolbar > label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.tools-toolbar input {
  width: 100%;
  border: 1px solid #dfe5d9;
  border-radius: 8px;
  background: #f7f8f4;
  padding: 12px 14px;
  font:
    12px Inter,
    sans-serif;
  box-sizing: border-box;
}
.tools-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tool-catalog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 24px;
  min-height: 255px;
  background: #fff;
  border: 1px solid #dfe6d8;
  border-radius: 13px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  min-width: 0;
}
.tool-catalog-card[hidden] {
  display: none;
}
.tool-catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #203d2610;
}
.tool-catalog-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid #dde7d1;
  border-radius: 12px;
  background: #f1f5e9;
  color: #5d783d;
  margin-bottom: 20px;
}
.tool-catalog-icon > svg {
  width: 24px;
  height: 24px;
}
.tool-catalog-card > small {
  font-size: 10px;
  color: #7b896c;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tool-catalog-card h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin: 9px 0;
  color: #1a2d20;
}
.tool-catalog-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7667;
  margin: 0 0 24px;
}
.tool-catalog-card > b {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #253d29;
  margin-top: auto;
}
.tools-next {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  padding: 27px;
  margin: 40px 0;
  border: 1px solid #dce5d2;
  background: #edf3df;
  border-radius: 13px;
}
.tools-next h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
}
.tools-next p {
  font-size: 13px;
  line-height: 1.7;
  color: #6a7764;
  margin-top: 8px;
}
.tools-next .journal-cta {
  white-space: nowrap;
}
.tools-detail {
  max-width: 1120px;
  margin: 25px auto 65px;
}
.tools-detail > header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 30px 0;
}
.tool-detail-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: #e9f1d6;
  color: #526e35;
  border-radius: 18px;
}
.tool-detail-icon svg {
  width: 35px;
  height: 35px;
}
.tools-detail h1 {
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -1.4px;
  margin: 9px 0;
}
.tools-detail > header p {
  font-size: 15px;
  line-height: 1.7;
  color: #6b7868;
  max-width: 650px;
}
.tool-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}
.tool-inputs {
  border: 1px solid #dfe5d9;
  border-radius: 15px;
  padding: 27px;
  background: #fff;
  display: grid;
  gap: 19px;
  align-content: start;
}
.tool-section-label {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 7px;
}
.tool-section-label > span {
  font: 10px monospace;
  padding: 6px 7px;
  border: 1px solid #dce4d3;
  border-radius: 5px;
  color: #788c64;
}
.tool-section-label h2,
.tool-inputs > h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 0;
}
.tool-inputs label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #42523d;
  margin: 0;
}
.tool-inputs input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dce3d5;
  border-radius: 8px;
  padding: 12px 13px;
  font:
    16px Inter,
    sans-serif;
  color: #1a2d20;
  background: #fff;
}
.tool-inputs input:focus {
  outline: 2px solid #9ab759;
  outline-offset: 2px;
}
.tool-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.tool-form-actions > button {
  cursor: pointer;
}
.tool-form-actions > button:not(.journal-cta) {
  background: none;
  border: 0;
  color: #6d7e5d;
  padding: 10px;
  font:
    12px Inter,
    sans-serif;
}
.tool-output {
  background: #1b3327;
  border-radius: 15px;
  padding: 27px;
  color: white;
  display: flex;
  flex-direction: column;
}
.tool-output .tool-section-label > span {
  color: #c3d7aa;
  border-color: #b9d79740;
}
.tool-output h2 {
  color: white;
}
.tool-result {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid #c3d3b526;
}
.tool-result > span {
  color: #bfceba;
  font-size: 12px;
  line-height: 1.6;
}
.tool-result > strong {
  font-size: 24px;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.25;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.tool-result.primary > strong {
  font-size: clamp(28px, 3vw, 43px);
  color: #def283;
  letter-spacing: -1px;
}
.tool-output > p {
  font-size: 12px;
  color: #bfd1bd;
  line-height: 1.8;
  margin: 20px 0;
}
.tool-output .tool-share {
  color: #e1efc6;
  background: #ffffff0d;
  border: 1px solid #c0d6b536;
  border-radius: 7px;
  padding: 12px;
  font:
    12px Inter,
    sans-serif;
  text-align: left;
  cursor: pointer;
  margin-top: auto;
  text-decoration: none;
}
.tool-explanation {
  margin: 24px 0;
  padding: 19px 22px;
  border-left: 3px solid #a3bb70;
  background: #eef3e4;
}
.tool-explanation h2 {
  font-size: 15px;
  margin: 0 0 8px;
}
.tool-explanation p {
  font-size: 13px;
  line-height: 1.8;
  color: #637158;
  margin: 0;
}
.tool-calculation-status {
  font-size: 11px;
  color: #758361;
  min-height: 16px;
  margin: 0;
}
.tool-inputs.rights-checklist > label {
  display: flex;
  gap: 13px;
  align-items: start;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 400;
  border-bottom: 1px solid #e4eadf;
  padding: 0 0 14px;
}
.rights-checklist input {
  width: 18px;
  height: 18px;
  accent-color: #789347;
  flex-shrink: 0;
  margin-top: 3px;
}
.tool-output > .journal-eyebrow {
  color: #bdcca8;
}
.streaming-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.streaming-guide-grid > section {
  padding: 26px;
  border: 1px solid #dfe5d9;
  background: #fff;
  border-radius: 12px;
}
.streaming-guide-grid span {
  font: 12px monospace;
  color: #7a9353;
}
.streaming-guide-grid h2 {
  font-size: 23px;
  margin: 15px 0 11px;
  letter-spacing: -0.5px;
}
.streaming-guide-grid p {
  font-size: 14px;
  color: #62715d;
  line-height: 1.8;
}
.tools-related {
  margin-top: 38px;
}
.tools-related h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.tools-related > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tools-related a {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 180px;
  border: 1px solid #dfe5d9;
  border-radius: 9px;
  padding: 15px;
  text-decoration: none;
  background: white;
  font-size: 12px;
  color: #344c2c;
}
.tools-related a > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.tools-related a > b {
  margin-left: auto;
}
@media (max-width: 900px) {
  .tools-hero {
    gap: 25px;
    margin-top: 35px;
    grid-template-columns: 1fr 1fr;
  }
  .tools-hero h1 {
    font-size: 39px;
  }
  .tools-hero > div > p {
    font-size: 14px;
  }
  .tools-catalog {
    grid-template-columns: 1fr 1fr;
  }
  .tools-toolbar {
    flex-wrap: wrap;
  }
  .tools-toolbar > label {
    max-width: none;
    flex-basis: 100%;
  }
  .tool-calculator {
    gap: 18px;
  }
  .tool-inputs,
  .tool-output {
    padding: 21px;
  }
}
@media (max-width: 600px) {
  #content {
    width: calc(100% - 36px);
  }
  .tools-hero {
    grid-template-columns: 1fr;
    gap: 23px;
    margin: 28px 0;
  }
  .tools-hero h1 {
    font-size: 36px;
  }
  .tools-feature {
    padding: 24px;
  }
  .tools-feature > span {
    margin-bottom: 15px;
  }
  .tools-catalog {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .tool-catalog-card {
    padding: 23px;
  }
  .tools-toolbar > div {
    gap: 4px;
  }
  .tools-toolbar button {
    font-size: 11px;
    padding: 9px;
  }
  .tools-toolbar input {
    font-size: 16px;
  }
  .tools-next {
    flex-direction: column;
    align-items: start;
    padding: 23px;
  }
  .tools-detail > header {
    align-items: start;
    gap: 13px;
    margin: 24px 0;
  }
  .tool-detail-icon {
    width: 45px;
    height: 45px;
    border-radius: 11px;
  }
  .tool-detail-icon svg {
    width: 25px;
    height: 25px;
  }
  .tools-detail h1 {
    font-size: 29px;
    letter-spacing: -1px;
  }
  .tools-detail > header p {
    font-size: 13px;
  }
  .tool-calculator {
    grid-template-columns: 1fr;
  }
  .tool-output {
    min-height: 270px;
  }
  .tool-output .tool-section-label {
    margin-bottom: 0;
  }
  .tool-result.primary > strong {
    font-size: 34px;
  }
  .streaming-guide-grid {
    grid-template-columns: 1fr;
  }
  .tools-related > div {
    flex-direction: column;
  }
  .tools-detail .journal-back {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tool-catalog-card {
    transition: none;
  }
  .tool-catalog-card:hover {
    transform: none;
  }
}
