/* Hi. I'm Simon. This is my clumsy attempt at writing CSS for my website. I actually really enjoy trying to write this code, even if I'm not very good at it. */

/* fix too-small line-height for lists within content */

.entry-content ul li {
    line-height: 27px;
}

/* better contrast for XIRR calc buttons */

.table.xirr-maintable .btn-group.switch.switch-blue label#Deposit1, .table.xirr-maintable .btn-group.switch.switch-blue label#Withdrawal0 {
  color: #000;
}

/* Grey out the toggles that are disabled */

.table.xirr-maintable .switch-blue input[disabled] ~ .switch-selection {
  background-color: #777;
}

.switch {
  background: rgba(0, 0, 0, .05);
}

/* better H4 and H6 headlines in borrow sidebar box */

.borrower_rate_header h4 {
  color: #999;
  letter-spacing: 0;
  margin-bottom: 5px;
  font-size: 18px;
}

.borrower_rate_header h6 {
  font-size: 18px;
  color: #4c4452;
}

/* Hide empty paragraph tags which creep up in WordPress because auto-p */

.cta_complaint_wrap p:empty {
  display: none;
}

/* remove arrow from borrower bottom-CTA (since it clashes with the other arrow) and make margins more generous */

.cta_complaint_wrap .button.c2a::after {
  content: none;
}
.cta_complaint_wrap .button.c2a {
  padding: 12px 26px;
}

/* better styling for CTA on homepage */

.home .home-top .widget-wrap {
  max-width: 500px;
  text-align: center;
}

/* better styling for amortization/XIRR calc sidebar CTA */

.xirr_calc_wrapper a {
  color: #333;
  font-weight: 700;
}

/* fix too tight line-height in amortization/xirr calc */

.page-amortization-calculator table.xirr-maintable th, .page-amortization-calculator .table td {
  line-height: 22px;
}

/* fix too small font-size in amortization/xirr calc */

.page-amortization-calculator .table td, .page-amortization-calculator .table th, .page-amortization-calculator #repaymentTable th {
    font-size: 16px;
}

/* fix uneven arrow on borrower bottom-CTA */
.lc-endofpost-arrow {
  transform: translateY( -15% );
  top: 0;
}

/* fix broken menus after 9/22/2020 WP update */

.menu {
    background: none !important;
    border: none !important;
}

/* add link color to final popup box - single tear */

.ays_content_box a {
	color: #af443a;
}

@media only screen and (max-width: 1140px) {
	.lc-endofpost-arrow {
    top: -0.2em;
  }
}

@media only screen and (max-width: 960px) {
	.lc-endofpost-arrow {
    top: -0.5em;
  }
}

@media only screen and (max-width: 769px) {
  .lc-endofpost-arrow {
    top: 0.4em;
  }
}

@media only screen and (max-width: 660px) {
  .lc-endofpost-arrow {
    top: -0.4em;
  }
}
  
@media only screen and (max-width:480px){
  
	/* fix the lack of margin above H1 on smallscreens */
  
  h1.entry-title {
    margin-top: 16px;
  }
  .lc-endofpost-arrow {
    top: -1em;
  }
  
  /* fix too small font on amortization calc */
  
  .page-id-6662.page-xirr-calculator table.xirr-maintable input {
    font-size: 14px;
  }
  
  /* fix too large fonts on amortization calc */
  
  .page-id-6662.page-amortization-calculator .table td, .page-id-6662.page-amortization-calculator .table th {
    font-size: 12px;
  }
  
  .page-amortization-calculator #repaymentTable th {
    font-size: 10px;
  }
  
  /* fix lack of margins on homepage mobile view */
  
  .home .home-top .widget-wrap {
    padding-top: 95px;
  }
  
  /* add a better margin for logo and search box on mobile */
  
  .title-area, #menu-top-menu .search {
    padding-left: 12px;
  }
}

/* remove borrower bottom-CTA arrow if screen is too small, since runs out of room */

@media only screen and (max-width:340px){
  .lc-endofpost-arrow {
    display: none;
  }
}