@font-face {
  font-family: "Roboto";
  src: url("/fonts/Roboto-Regular-400.woff2") format("woff2");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/Roboto-Medium-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/Roboto-Bold-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/Roboto-Mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Radio Canada";
  src: url("/fonts/Radio-Canada-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Courier New";
  src: url("/fonts/Courier-New-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Arial";
  src: url("/fonts/Arial-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1440px;
  padding-inline: 124px;
  margin: 0 auto;
}

.header {
  background-color: #231f20;
  padding-block: 16px;
}

.header-dt {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  color: #aeacac;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-btns a,
.header-links a {
  color: #f2f2f2;
  font-family: "Roboto Mono";
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.header-bottom {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 3;
}

.header-btns {
  display: flex;
  gap: 48px;
  align-items: center;
}

.header-btns a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btns a img {
  max-width: 16px;
  width: 100%;
}

.header-mode {
  padding: 4px 8px 4px 4px;
  border-radius: 24px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #231f20;
  font-family: "Roboto Mono";
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-bottom {
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.15);
  background-color: #fff;
}

.header-mob {
  display: none;
}

.header-bottom .header-dt {
  gap: 20px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
}

.header-nav a {
  color: #231f20;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}

.header-nav a:nth-of-type(4) {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-bottom .header-btns a img {
  max-width: 24px;
  width: 100%;
}

.header-line {
  /* margin-top: 128px; */
  margin-top: 152px;
  height: 60px;
  width: 100%;
  opacity: 0.2;
  background: url("/img/header-line-chunk.png") repeat;
}

.main {
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.green {
  color: #0e5e38;
  position: relative;
}


.author-desc a.green::before,
span.green:first-of-type::before {
  display: none;
}

span.green::before,
a.green::before {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0px;
  height: 1px;
  width: 0%;
  background-color: #0e5e38;
  transition: width .4s ease;
}

span.green:hover::before,
a.green:hover::before {
  width: 100%;
}

.article {
  max-width: 760px;
  width: 100%;
}

.article-cat {
  font-family: "Roboto Mono";
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-title {
  color: #000;
  font-size: 34px;
  font-weight: 700;
  line-height: 40px;
  margin-bottom: 16px;
}

.article-title .green {
  font-weight: 800;
}

.article-title .today {
  text-decoration: underline;
}

.sidebar {
  max-width: 350px;
  width: 100%;
}

.sidebar-top {
  text-align: left;
  padding: 10px;
  border-right: 1px solid #d9d9d9;
  border-left: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 60px;
}

.sidebar-cat {
  color: #000;
  font-family: "Roboto Mono";
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding-bottom: 10px;
  font-weight: 400;
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 10px;
}

.sidebar-top-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sidebar-top-item:first-of-type {
  padding-bottom: 10px;
  border-bottom: 1px solid #d9d9d9;
}

.sidebar-top-item-title {
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.sidebar-top-item:last-of-type {
  padding-top: 10px;
}

.reg-btn {
  color: #fff;
  font-family: "Roboto Mono";
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  padding-block: 16px;
  text-align: center;
  display: block;
  border-radius: 2px;
  background-color: #0e5e38;
  border: 2px solid transparent;
  transition:
    border 0.4s ease,
    color 0.4s ease,
    background-color 0.4s ease;
}

.reg-btn:hover {
  border: 2px solid #0e5e38;
  color: #0e5e38;
  background-color: #fff;
}

.sidebar .reg-btn {
  margin-bottom: 16px;
}

.adv-grid {
  margin-bottom: 26px;
}

.sidebar-heading {
  color: #000;
  font-family: "Roboto Mono";
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 4px 4px 0 0;
  border-top: 1px solid #cbcbcb;
  border-right: 1px solid #cbcbcb;
  border-left: 1px solid #cbcbcb;
}

.sidebar-heading:first-of-type {
  position: relative;
  overflow: hidden;
}

.sidebar-heading:first-of-type::before {
  content: "";
  position: absolute;
  top: 0px;
  background-color: #d02001;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
}

.sidebar-header {
  display: flex;
  gap: 10px;
}

.sidebar-heading-thin {
  color: #737373;
}

.sidebar-bottom-content {
  padding: 10px;
  border: 1px solid #cbcbcb;
  display: flex;
  gap: 10px;
}

.sidebar-bottom-content a {
  display: flex;
  flex-direction: column;
}

.sidebar-bottom-content a img {
  margin-bottom: 10px;
}

.sidebar-bottom-content span {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.article-author img {
  border-radius: 50%;
}

.author-desc h5 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.author-desc h6 {
  color: #545454;
  font-family: "Radio Canada";
  font-size: 14px;
  font-weight: 400;
}

.author-desc h5 span:last-of-type {
  color: #000;
  font-family: "Radio Canada";
  font-size: 14px;
  font-weight: 600;
}

.author-desc h5 a {
  color: #0e5e38;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.article-img {
  margin-bottom: 16px;
}

.article-img img {
  width: 100%;
}

.article-text {
  color: #000;
  font-size: 16px;
  margin-bottom: 16px;
}

.article-subtitle {
  max-width: 580px;
  width: 100%;
  margin-bottom: 16px;
  color: #000;
  font-size: 22px;
  font-weight: 500;
}

.article-subtitle .green {
  font-weight: 700;
}

.article-video {
  width: 100%;
  margin-bottom: 16px;
}

.article-content {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.content-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-btns {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}

.font-btns button {
  border: none;
  cursor: pointer;
}

.content-links a,
.font-btns button {
  padding: 18px;
  border-radius: 2px;
  background: #dbd9d9;
  transition: background-color 0.4s ease;
}

.content-links a:hover,
.font-btns button:hover {
  background-color: #ececec;
}

a.green {
  font-weight: 700;
}

.content-text {
  font-size: 16px;
}

.content-title {
  margin-bottom: 20px;
  color: #000;
  font-size: 1.375em;
  font-weight: 700;
}

.content-p {
  color: #000;
  font-size: 1em;
  margin-bottom: 20px;
}

.calculator {
  border: 1px solid #cbcbcb;
  background: #0e5e38;
  padding: 20px;
  margin-bottom: 20px;
}

.calculator-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.current-value {
  display: block;
  padding: 8px 16px;
  max-width: 120px;
  width: 100%;
  color: #0e5e38;
  margin: 0 auto 10px auto;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  background: #fff;
  box-shadow:
    0 4px 4px 0 rgba(236, 236, 236, 0.25) inset,
    0 4px 6px 0 #ececec inset,
    0 2px 2px 0 rgba(0, 0, 0, 0.15);
}

#input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 30px;
  background: #ddd; /* track background */
  outline: none;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 40px;
}

#input::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 30px;
  background: linear-gradient(
    to right,
    #02ff89 0%,
    #02ff89 var(--progress, 0%),
    #ddd var(--progress, 0%),
    #ddd 100%
  );
}

#input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 30px;
  border: 4px solid #fff;
  background: #0e5e38;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  margin-top: -7px; /* align vertically */
}

#input::-moz-range-track {
  height: 8px;
  border-radius: 30px;
  background: #ddd;
}

#input::-moz-range-progress {
  height: 8px;
  border-radius: 30px;
  background: #02ff89;
}

#input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 30px;
  border: 4px solid #fff;
  background: #0e5e38;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.result-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border-radius: 4px;
  background: #fff;
}

.result span:first-of-type {
  color: #0e5e38;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.result span:last-of-type {
  padding: 2px 4px;
  border-radius: 2px;
  background: #0e5e38;
  color: #fff;
  text-align: center;
  font-size: 16px;
}

.article-content .reg-btn {
  margin-bottom: 20px;
}

.review {
  display: block;
  padding-left: 10px;
  border-left: 2px solid #0e5e38;
  font-family: Inter;
  font-weight: 600;
  margin-bottom: 24px;
  font-size: 1em;
}

.review:first-of-type {
  max-width: 400px;
  width: 100%;
  padding-bottom: 4px;
}

.review:nth-of-type(2),
.review:nth-of-type(3) {
  padding-top: 8px;
  padding-bottom: 8px;
}

.author-desc h6 b {
  color: #000;
}

#form {
  padding: 20px;
  border: 1px solid #cbcbcb;
  background: #f6f6f6;
  scroll-margin-top: 200px;
}

.comments {
  max-width: 710px;
  margin: 0 auto 170px 0;
}

.comments-title {
  color: #000;
  font-family: "Radio Canada";
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e9e9e9;
  margin-bottom: 36px;
}

.comments-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.comments-item:not(:first-of-type) {
  border-bottom: 2px solid #00000033;
}

.comments-item:nth-of-type(6) {
  border-bottom: none;
}

.comments-item:not(:first-of-type),
.comments-item:not(:nth-of-type(2)) {
  padding-top: 10px;
}

.comments-item textarea {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ffffff36;
  background: #e4e4e4;
  min-height: 120px;
  pointer-events: none;
}

.comments-text h4 {
  color: #3b5998;
  font-family: "Radio Canada";
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.comments-text p {
  color: #000;
  font-family: "Radio Canada";
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 24px;
}

.comments-btns {
  display: flex;
  gap: 16px;
  margin-left: 32px;
  margin-bottom: 20px;
}

.comments-btns a {
  color: #3b5998;
  font-family: "Radio Canada";
  font-size: 14px;
  line-height: 16px;
}

.comments-btns span {
  position: relative;
  color: #00000070;
  font-family: "Radio Canada";
  font-size: 14px;
  line-height: 16px;
}

.comments-btns span::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  width: 4px;
  height: 4px;
  background: #00000070;
}

.comments-item textarea::placeholder {
  color: #999;
  font-family: Inter;
  font-size: 14px;
  line-height: 21px;
}

.comments-item:first-of-type {
  margin-bottom: 18px;
}

.comments-reply {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  padding-left: 66px;
  border-bottom: 2px solid #00000033;
}

.footer {
  background-color: #dbd9d9;
  padding-top: 32px;
}

.footer-top {
  margin-bottom: 32px;
}

.footer-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-links {
  max-width: 1040px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.footer-links a {
  color: #000;
  font-family: Arial;
  font-weight: 700;
  font-size: 16px;
  text-transform: capitalize;
}

.footer-copyright {
  color: #000;
  font-family: "Courier New";
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.footer-bottom {
  padding-top: 14px;
  padding-bottom: 14px;
  background: #231f20;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bottom-links a {
  color: #fff;
  font-family: "Courier New";
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 1440px) {
  .container {
    padding-inline: 20px;
  }

  .header-dt {
    gap: 10px;
  }

  .header-links {
    gap: 12px;
  }

  .header-btns {
    gap: 20px;
  }
}

@media (max-width: 1000px) {
  .sidebar {
    display: none;
  }

  .article {
    max-width: 100%;
  }
}

@media (max-width: 800px) {
  .header-dt {
    display: none;
  }

  .header-mob {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-bottom .header-mob {
    gap: 36px;
    padding-block: 12px;
  }

  .header-bottom .header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000;
    text-align: center;
    font-family: Arial;
    font-size: 12px;
    gap: 8px;
  }

  .header-bottom .header-link img {
    max-width: 22px;
    width: 100%;
  }

  .article-title {
    font-size: 28px;
  }

  .article-text {
    font-size: 14px;
  }

  .article-subtitle {
    font-size: 22px;
  }

  .content-text {
    font-size: 18px;
  }

  .comments {
    margin: 0 auto 64px 0;
  }

  .comments-text h4,
  .comments-text p {
    font-size: 14px;
  }

  .comments-btns {
    margin-left: 0;
  }

  .comments-reply .comments-btns {
    flex-wrap: wrap;
  }

  .footer-logos {
    flex-direction: column;
    align-items: center;
    gap: 42px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 160px);
    justify-content: space-between;
    gap: 16px;
  }

  .footer-copyright {
    margin-bottom: 16px;
  }

  .footer-bottom .container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .bottom-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-bottom {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .header-line {
    margin-top: 128px;
  }
}

@media (max-width: 500px) {
  .header-bottom .header-mob {
    gap: 12px;
  }
}
