/* eb-garamond-regular - latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: auto;
  src: url('fonts/eb-garamond-v9-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('EB Garamond Regular'), local('EBGaramond-Regular'),
       url('fonts/eb-garamond-v9-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/eb-garamond-v9-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/eb-garamond-v9-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('fonts/eb-garamond-v9-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/eb-garamond-v9-latin-regular.svg#EBGaramond') format('svg'); /* Legacy iOS */
}

@font-face {
  font-family: 'Soulgate';
  font-style: normal;
  font-weight: 400;
  font-display: auto;
  src: url('fonts/Soulgate.otf') format('opentype'), /* Modern Browsers */
       url('fonts/Soulgate.ttf') format('truetype') /* Safari, Android, iOS */
}

html, body {
  background: #ebe8e6;
  color: #0b0404;
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 1em;
  line-height:1.5;

  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

 a {
  color: #490505;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  background-color: transparent;
}

/*****************************************************************/
/* TITLE AND TAG LINE IN LANDING PAGE */
/*****************************************************************/

img {
  display: flex;
  max-width: 100%;
  height: auto;
  margin:0 auto;
  margin-top: 2em;
}

.divided::after {
  content: "";
  border: 0;
  display: block;
  width: 152px;
  height: 12px;
  margin: .5em auto 0;
  background:url(divider.svg) no-repeat top center
}

.home {
  max-width: 80%;
  margin: auto;
  padding:4em 1em
}

.site-masthead {
  box-sizing: border-box;
  position: relative;
  text-align:center
}

.site-masthead h1 {
  font-size: 3em;
  margin-bottom: 0;
  margin-top: 0;
  padding:0 2rem;
  color:#002816;
}

@media (min-width: 768px) {
  .site-masthead h1 {
      font-size:6em
  }
}

@media (max-width: 500px) {
  .site-masthead h1 {
    font-size: 2em;
  }
}

.site-masthead h2 {
  color: #64644B;
  font-size: 1.25em;
  margin: 0;
  padding:0 2rem
}

@media (min-width: 768px) {
  .site-masthead h2 {
      font-size:3em
  }
}

.author {
  font-family: "Soulgate", "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 2em;
}
/*****************************************************************/
/* NAVIGATION BAR */
/*****************************************************************/

.site-navigation {
  margin-top: 2rem;
  padding:0 1rem
}

.site-navigation ul {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content:center
}

.site-navigation li {
  list-style: none;
  font-size: .875em;
  font-variant: small-caps;
  margin:0
}

.site-navigation li.active a {
  text-decoration:underline
}

.site-navigation a {
  display: block;
  padding: .25em .5em;
  text-decoration: none;
  transition:opacity .125s ease-in-out;
  color: #002B10;
}

.site-navigation a:hover, .site-navigation a:focus {
  opacity:1;
  color: #64644B;
}

/*****************************************************************/
/* POSTS LISTED ON LANDING PAGE */
/*****************************************************************/
.content-title {
  font-size: 2em;
  margin-bottom: 2em;
  text-align:center
}

.post-list {
  margin: 1em 0;
  list-style:none;
}

.post-list .post-list-header {
  text-decoration: underline;
}

.post-list li {
  margin-bottom:1em;
}

.post-list .post-row {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));*/
  grid-template-columns: 40% 200px repeat(5, minmax(100px, 1fr));
  column-gap: 20px;
  justify-content: center;
  align-items: center;
  align-content: center;
}


@media (max-width: 768px) {
  .post-list {
    justify-content: center;
  }

  .post-list .post-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    column-gap: 20px;
    justify-content: center;
    justify-items: center;
  }


  .omit-on-mobile {
    display: none;
  }

}

.post-row .positive {
  color:#5eb511;
}

.post-row .negative {
  color:#881b00;
}

.post-row .zero {
  color:#002B10;
}


.post-link {
  text-decoration: none;
  transition:opacity .125s ease-in-out;
  color: #002B10;
}

.post-link:hover {
  text-decoration: none;
}

.post-link:hover, .post-link:focus {
  opacity:1 !important;
  color: #64644B;
}


.post-link .blur {
  filter: blur(5px);
}

.post-link .subscription-required {
  text-align: center;
  align-content: center;
}

.post-pagination {
  margin-top: 4rem;
  font-size: 2em;
  display: grid;
  grid-template-columns: repeat(2, 2rem);
  grid-gap: 1rem;
  justify-items: center;
  justify-content: center;
}

/*****************************************************************/
/* PAPER PORTFOLIO */
/*****************************************************************/

.paper-portfolio {
  max-width: 90%;
  margin: auto;
  padding: 4em 1em;
}

.portfolio-empty {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.portfolio-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 0 0 2rem;
}

.portfolio-switcher a {
  border: 1px solid #64644B;
  color: #002B10;
  padding: .45rem .8rem;
  text-decoration: none;
}

.portfolio-switcher a.active,
.portfolio-switcher a.active:visited,
.portfolio-switcher a.active:hover,
.portfolio-switcher a.active:focus {
  background: #002B10;
  border-color: #002B10;
  color: #fff;
}

.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .65rem 1rem;
  margin-bottom: 1.25rem;
}

.portfolio-summary div {
  border-top: 1px solid #64644B;
  padding-top: .45rem;
}

.portfolio-summary span {
  display: block;
  color: #64644B;
  font-size: .72em;
  font-variant: small-caps;
  line-height: 1.15;
}

.portfolio-summary strong {
  display: block;
  color: #002B10;
  font-size: 1em;
  line-height: 1.2;
}

.portfolio-chart-section h2,
.portfolio-holdings h2 {
  text-align: center;
}

.portfolio-chart-section {
  margin: 2rem 0 3rem;
}

.portfolio-chart-ranges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin: -.25rem 0 1rem;
}

.portfolio-chart-ranges button {
  border: 1px solid #64644B;
  background: #fff;
  color: #002B10;
  padding: .25rem .55rem;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}

.portfolio-chart-ranges button.active,
.portfolio-chart-ranges button:hover,
.portfolio-chart-ranges button:focus {
  background: #002B10;
  border-color: #002B10;
  color: #fff;
}

.portfolio-chart-return {
  display: inline-flex;
  align-items: center;
  min-width: 5.5rem;
  border: 1px solid currentColor;
  padding: .25rem .55rem;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.5;
}

.portfolio-chart-return.positive {
  background: rgba(94, 181, 17, .1);
  color: #5eb511;
}

.portfolio-chart-return.negative {
  background: rgba(136, 27, 0, .08);
  color: #881b00;
}

#paper-portfolio-chart {
  background: #fffaf0;
  border: 1px solid rgba(100, 100, 75, .28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
  min-height: 320px;
  padding: .75rem .5rem .25rem;
}

.portfolio-chart-tooltip {
  display: grid;
  gap: .15rem;
  border: 1px solid rgba(0, 43, 16, .35);
  background: #fffaf0;
  color: #002b10;
  padding: .4rem .55rem;
  font-size: .85rem;
  line-height: 1.3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.portfolio-chart-tooltip strong {
  font-size: .78rem;
  color: #4b4f4a;
}

.portfolio-chart-tooltip span {
  font-weight: 700;
}

.portfolio-table {
  display: grid;
  overflow-x: auto;
}

.portfolio-row {
  position: relative;
  display: grid;
  align-items: center;
  padding: .4rem .55rem;
  color: #002B10;
}

.portfolio-row:not(.portfolio-header):nth-child(odd) {
  background: rgba(100, 100, 75, .03);
}

.portfolio-row:not(.portfolio-header):nth-child(odd):hover {
  cursor: pointer;
  background: rgba(0, 43, 16, .3);
}

.portfolio-row:not(.portfolio-header):nth-child(even) {
  background: rgba(0, 43, 16, .035);
}

.portfolio-row:not(.portfolio-header):nth-child(even):hover {
  cursor: pointer;
  background: rgba(0, 43, 16, .3);
}

.portfolio-row.dcf-row {
  grid-template-columns: 80px minmax(220px, 1.6fr) repeat(6, minmax(100px, 1fr));
  min-width: 980px;
}

.portfolio-row.magic-formula-row {
  grid-template-columns: 80px minmax(220px, 1.6fr) repeat(8, minmax(100px, 1fr));
  min-width: 1180px;
}

.portfolio-header {
  color: #0b0404;
  font-variant: small-caps;
  text-decoration: underline;
}

.portfolio-header button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: inherit;
}

.portfolio-header button::after {
  content: "";
  display: inline-block;
  width: .65rem;
  margin-left: .25rem;
  color: #5eb511;
  text-decoration: none;
}

.portfolio-header button.sort-asc::after {
  content: "↑";
}

.portfolio-header button.sort-desc::after {
  content: "↓";
}

.portfolio-header button:hover,
.portfolio-header button:focus {
  color: #5eb511;
}

.portfolio-ticker-link,
.portfolio-ticker-link:visited {
  color: #002B10;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portfolio-ticker-link:hover,
.portfolio-ticker-link:focus {
  color: #5eb511;
}

.portfolio-row-tooltip {
  position: absolute;
  z-index: 5;
  left: 0;
  top: calc(100% + .35rem);
  display: none;
  min-width: 260px;
  padding: .75rem .9rem;
  border: 1px solid #64644B;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 43, 16, .14);
  color: #002B10;
}

.portfolio-row-tooltip span {
  display: block;
}

.portfolio-row-tooltip .portfolio-tooltip-metric {
  display: flex;
  gap: .35rem;
  align-items: baseline;
}

.portfolio-row-tooltip .portfolio-tooltip-metric span {
  display: inline;
}

.portfolio-row-tooltip strong {
  margin-right: .35rem;
}

.portfolio-row-tooltip .portfolio-tooltip-title {
  color: #002B10;
  font-weight: 700;
}

.portfolio-row-tooltip .portfolio-tooltip-company {
  margin-bottom: .45rem;
  color: #64644B;
}

.portfolio-row:not(.portfolio-header):hover .portfolio-row-tooltip,
.portfolio-row:not(.portfolio-header):focus-within .portfolio-row-tooltip {
  display: block;
}

.paper-portfolio .positive {
  color:#5eb511;
}

.paper-portfolio .negative {
  color:#881b00;
}

.dcf-screener-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .8rem;
  align-items: end;
  margin: 1rem;
  color: #002B10;
}

.dcf-screener-form label {
  display: grid;
  gap: .25rem;
  font-size: .86rem;
  font-weight: 700;
}

.dcf-screener-form input,
.dcf-screener-form select {
  width: 100%;
  border: 1px solid rgba(100, 100, 75, .45);
  border-radius: 4px;
  padding: .48rem .55rem;
  background: #fffaf0;
  color: #002B10;
}

.dcf-screener-form button {
  border-radius: 4px;
  padding: .55rem .8rem;
  background: #002B10;
  color: #fffaf0;
  cursor: pointer;
  font-weight: 700;
}

.dcf-screener-form button:hover,
.dcf-screener-form button:focus {
  background: #000f06;
  color: #fffcf7;
}

.dcf-screener-errors,
.dcf-screener-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1rem;
  color: #002B10;
}

.dcf-screener-errors p,
.dcf-screener-stats span {
  margin: 0;
  border: 1px solid rgba(100, 100, 75, .35);
  border-radius: 4px;
  padding: .35rem .55rem;
  background: rgba(255, 250, 240, .85);
}

.dcf-screener-errors p {
  border-color: rgba(136, 27, 0, .45);
  color: #881b00;
}

.dcf-screener-table {
  display: grid;
  overflow-x: auto;
  margin: 1rem;
}

.dcf-screener-row {
  display: grid;
  grid-template-columns: 80px minmax(220px, 1.6fr) repeat(6, minmax(100px, 1fr));
  min-width: 980px;
  align-items: center;
  padding: .4rem .55rem;
  color: #002B10;
}

.dcf-screener-row:not(.dcf-screener-header):nth-child(odd) {
  background: rgba(100, 100, 75, .03);
}

.dcf-screener-row:not(.dcf-screener-header):nth-child(even) {
  background: rgba(0, 43, 16, .035);
}

.dcf-screener-row:not(.dcf-screener-header):hover {
  background: rgba(0, 43, 16, .12);
}

.dcf-screener-header {
  color: #0b0404;
  font-variant: small-caps;
  text-decoration: underline;
}

.dcf-screener-header a {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: inherit;
}

.dcf-screener-header a::after {
  content: "";
  display: inline-block;
  width: .65rem;
  margin-left: .25rem;
  color: #5eb511;
  text-decoration: none;
}

.dcf-screener-header a.sort-asc::after {
  content: "↑";
}

.dcf-screener-header a.sort-desc::after {
  content: "↓";
}

.dcf-screener .positive {
  color:#5eb511;
}

.dcf-screener .negative {
  color:#881b00;
}

.dcf-screener-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin: .25rem 1rem 1.2rem;
}

.dcf-screener-pagination a,
.dcf-screener-pagination-gap {
  min-width: 2.15rem;
  border-radius: 4px;
  padding: .35rem .55rem;
  background: #fffaf0;
  color: #002B10;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.dcf-screener-pagination a.enabled:hover,
.dcf-screener-pagination a.enabled:focus,
.dcf-screener-pagination a.active {
  border-color: #002B10;
  background: #002B10;
  color: #fffaf0;
}

.dcf-screener-pagination a.disabled {
  cursor: default;
  opacity: .35;
  pointer-events: none;
}

.dcf-screener-pagination-gap {
  border-color: transparent;
  background: transparent;
}

.dcf-screener-model {
  margin: 1.5rem 1rem 2rem;
  border: 1px solid rgba(100, 100, 75, .35);
  border-radius: 4px;
  padding: 1rem;
  background: rgba(255, 250, 240, .72);
  color: #002B10;
}

.dcf-screener-model h2 {
  margin: 0 0 .55rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b0404;
}

.dcf-screener-model p {
  margin: 0;
  line-height: 1.55;
}

.dcf-screener-formulas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: .9rem 0;
}

.dcf-screener-formulas > div {
  border-left: 3px solid rgba(0, 43, 16, .45);
  padding: .55rem .65rem;
  background: rgba(255, 250, 240, .8);
  overflow-x: auto;
}

.dcf-screener-formulas h3 {
  margin: 0 0 .3rem;
  font-size: .9rem;
  font-weight: 800;
  color: #64644B;
}

.dcf-screener-model-note {
  font-size: .92rem;
  color: #64644B;
}

@media (max-width: 768px) {
  .paper-portfolio {
    max-width: 100%;
  }

  .dcf-screener-formulas {
    grid-template-columns: 1fr;
  }
}


.post-pagination a {
  text-decoration: none;
  text-transform: uppercase;
  color: #002B10;
}

.post-pagination a.enabled {
  cursor: pointer;
  opacity: 1;
}

.post-pagination a.disabled {
  cursor:default;
  opacity: 0.2;
  pointer-events: none;
}

.post-pagination a.enabled:hover, .post-pagination a.enabled:focus {
  color: #64644B;
}


/*****************************************************************/
/* NEW / EDIT POST FORM */
/*****************************************************************/
.required:after {
  content:" *";
  color: tomato;
}

/*****************************************************************/
/* FOOTER */
/*****************************************************************/
.footer {
  background:rgba(191, 162, 113, 0.2);
  color: #002B10;
  padding: 40px;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: auto;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-logo span {
  font-size: 1em;
}
.footer-links {
  display: flex;
  gap: 40px;
}
.footer-links div {
  display: flex;
  flex-direction: column;
}
.footer-links h4, .footer-contact h4 {
  margin-bottom: 10px;
  font-size: 16px;
}
.footer-links a, .footer-contact a {
  color: #002B10;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 5px;
}
.footer-links a:hover, .footer-contact a:hover {
  text-decoration: underline;
}
.footer-contact {
  text-align: right;
}

.footer-bottom {
  text-align: left;
  margin-top: 20px;
  border-top: 1px solid rgb(133, 115, 90);
  padding-top: 10px;
  display: flex;
  gap: 1em;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-bottom #creator{
}

.footer-bottom #creator a{
  color: #490505;
}

.footer-bottom a {
  color: #005720;
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }
  
  .footer-contact,
  .footer-links {
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    text-align: center;  /* Center text */
  }

  .footer-links {
    gap: 20px;
  }

  .footer-contact{
    margin-top: 20px;
  }

  .footer-logo {
    margin-bottom: 1em;
    width: 100%;
    text-align: center;
  }


  .footer-bottom {
    width: 100%;
    justify-content: center;
    align-content: center;
    align-items: center;
    padding: 1em;
  }
}
