/*!
 * Readability / Approval mode styles
 * Combined from themes/main/readability.css + css/readability-*.css
 */

/* === GLOBAL === */

:root {
  --font-family-preset-inter: Inter, "-apple-system", BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;

  --font-family-header-title: Georgia, Cambria, "Times New Roman", serif;
  --font-family-default: Georgia, Cambria, "Times New Roman", serif;

  --font-size-xxsmall: 13px;
  --font-size-xsmall: 16px;
  --font-size-small: 18px;
  --font-size-medium: 20px;
  --font-size-post-intro: 23px;
  --font-size-comment-reply-title: 23px;
  --font-size-large: 32px;
  --font-size-larger: 40px;
  --font-size-xlarge: 48px;

  --font-size-xxsmall-variable: clamp(13px, 1rem + ((1vw - 3.2px) * 1), 14px);
  --font-size-xsmall-variable: clamp(16px, 1rem + ((1vw - 3.2px) * 1), 16px);
  --font-size-small-variable: clamp(16px, 1rem + ((1vw - 3.2px) * 0.227), 18px);
  --font-size-medium-variable: clamp(18px, 1.125rem + ((1vw - 3.2px) * 0.227), 20px);
  --font-size-large-variable: clamp(24px, 1.5rem + ((1vw - 3.2px) * 0.909), 32px);
  --font-size-xlarge-variable: clamp(32px, 2rem + ((1vw - 3.2px) * 1.818), 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text, .is-screen-reader-text, .sr-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
}

html, body, main, .main, p {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-default);
  font-weight: normal;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

h1, h2 {
  font-family: var(--font-family-title);
  font-size: var(--font-size-large);
  font-size: var(--font-size-large-variable);
  font-weight: normal;
  line-height: 1;
}

body {
  --color-background: #fff;
  --color-background-header: #fff;
  --color-background-footer: #fff;
  --color-background-dimmed: #fafafa;
  --color-background-dimmed-darker: #e5e5e5;
  --color-foreground-pages-links: #2c4f86;
  --color-inverted-underline: #fff;
  --color-foreground: #333;
  --color-foreground-header: #000;
  --color-foreground-footer: #000;
  --color-foreground-dimmed: #737373;
  --color-accent: #ef4444;
  --color-foreground-before-accent: #fff;
  --color-border: #e5e5e5;

  background-color: var(--color-background);
  color: var(--color-foreground);
}

.has-accent-background-color {
  background-color: var(--color-accent);
}

.has-accent-foreground-color {
  color: var(--color-accent);
}

.custom-logo-wrap:not(:empty) {
  margin-right: 2px;
}

.fade-in,
.site-main.fade-in,
#article-content.fade-in {
  transition: opacity .3s;
}

body.no-js .fade-in,
body.no-js .site-main.fade-in,
body.no-js #article-content.fade-in {
  opacity: 1;
}

/* === HEADER === */

.site-header {
  background-color: var(--color-background-header);
  color: var(--color-foreground-header);
  padding: 0;
  margin: 0;
}

.site-header-outer {
  padding: 35px 40px 35px 40px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 1208px;
  max-width: calc(100% - 80px);
}

.site-header h1,
.site-header h2 {
  font-size: var(--font-size-large);
  font-size: var(--font-size-large-variable);
  font-family: var(--font-family-header-title);
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--color-foreground-header);
}

.site-header .site-tagline {
  font-size: var(--font-size-xsmall);
  font-size: var(--font-size-xsmall-variable);
  color: var(--color-foreground-dimmed);
  text-align: center;
}

.site-header a,
.site-header a:link,
.site-header a:visited,
.site-header a:active {
  text-decoration: none;
}

.site-header .navigation-top {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header .mobile-menu-opener svg,
.site-header .mobile-menu-closer svg {
  color: var(--color-foreground);
  display: block;
  width: 24px;
  height: 24px;
}

.main-navigation {
  display: none;
}

body.is-menu-open {
  height: 100%;
  overflow-y: hidden;
}

.is-menu-open .site-header .main-navigation {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: unset;
  height: 100%;
  margin: 0;
  padding: 80px 10px 10px 10px;
  background-color: var(--color-background-header);
  color: var(--color-foreground-header);
  z-index: 100;
  overflow-y: auto;
}

.is-menu-open .site-header .main-navigation-container {
  flex-direction: column;
  gap: 20px;
}

.mobile-menu-closer {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 101;
  display: block;
  color: var(--color-foreground);
}

@media (min-width: 768px) {
  .site-header .navigation-top,
  .site-header .mobile-menu-opener,
  .site-header .mobile-menu-closer {
    display: none;
  }
  .main-navigation {
    display: block;
  }
}

.site-header .main-navigation-wrapper {
  padding: 20px 10px 20px 10px;
  border: none;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.site-header .main-navigation {
  width: 1208px;
  max-width: calc(100% - 80px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.site-header .main-navigation ul,
.site-header .main-navigation li {
  list-style: none;
  padding: 0;
}

.site-header .main-navigation-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0;
  margin: 0;
}

.site-header .main-navigation a {
  color: var(--color-foreground-header);
  font-size: var(--font-size-medium);
  font-size: var(--font-size-medium-variable);
}

/* === FOOTER === */

.site-footer {
  background-color: var(--color-background-footer);
  color: var(--color-foreground-footer);
  border-top: solid 4px var(--color-border);
  padding-top: clamp(30px, 6vw, 60px);
  padding-bottom: clamp(30px, 6vw, 60px);
}

body.page .site-footer {
  margin-top: 40px;
}

.site-footer-inner {
  margin: 0 auto;
  width: 1208px;
  max-width: calc(100% - 80px);
}

.site-footer a:not(.social-media-link),
.site-footer a:not(.social-media-link):link,
.site-footer a:not(.social-media-link):visited {
  color: var(--color-foreground);
}

.site-footer .site-footer-row-1,
.site-footer .legal-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.site-footer .site-footer-row-1 {
  justify-content: space-between;
}

.site-footer .site-footer-row-2 {
  background-color: var(--color-background-dimmed);
  padding: 30px 20px 30px 20px;
  margin: 20px 0 0 0;
}

.site-footer .legal-wrap {
  gap: 20px;
}

.site-footer .legal-wrap a {
  font-size: var(--font-size-xxsmall);
}

.site-footer .site-title-link {
  font-size: var(--font-size-small);
  font-size: var(--font-size-small-variable);
  font-weight: 700;
}

.site-footer .site-title-link,
.site-footer .legal-wrap a,
.site-footer .site-title-link:link,
.site-footer .legal-wrap a:link,
.site-footer .site-title-link:visited,
.site-footer .legal-wrap a:visited,
.site-footer .site-title-link:active,
.site-footer .legal-wrap a:active,
.site-footer .site-title-link:focus,
.site-footer .legal-wrap a:focus,
.site-footer .site-title-link:hover,
.site-footer .legal-wrap a:hover {
  text-decoration: none;
}

/* === PAGE LAYOUT === */

.site-content {
  background-color: var(--color-background);
  color: var(--color-foreground);
}

.site-main {
  padding-top: 20px;
  margin: 0 auto;
  width: 1208px;
  max-width: calc(100% - 40px);
}

body.single .site-main {
  padding-top: 25px;
  gap: 20px;
}

.site-main.has-sidebar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .site-main {
    max-width: calc(100% - 80px);
  }

  .site-main.has-sidebar {
    flex-wrap: nowrap;
  }

  body.single .site-main {
    padding-top: 40px;
    gap: 25px;
  }
}

.site-main.has-sidebar .site-main-row {
  flex-basis: 100%;
  max-width: 100%;
}

.site-main.has-sidebar .sidebar {
  flex-grow: 0;
  flex-basis: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .site-main.has-sidebar .site-main-row {
    flex-basis: 70%;
  }

  .site-main.has-sidebar .sidebar {
    flex-basis: 30%;
  }
}

.sidebar-section {
  border: solid 1px var(--color-border);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 40px;
  gap: 28px;
}

.sidebar-section--borderless {
  border: none;
}

.sidebar-section--paddingless {
  padding: 0;
}

.single-sidebar-items.flex {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-subheadline {
  margin-top: 30px;
  margin-bottom: 30px;
  line-height: 1;
  font-size: var(--font-size-medium);
  font-size: var(--font-size-medium-variable);
}

.sidebar-title {
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1;
  font-size: var(--font-size-medium);
  font-size: var(--font-size-medium-variable);
}

.site-main h1:not(.post-title),
.site-main h2:not(.post-title) {
  font-weight: 700;
  margin: 32px 0 32px 0;
  padding: 0;
}

.site-main h1:not(.post-title):first-child,
.site-main h2:not(.post-title):first-child {
  margin-top: 0;
}

.section--padded {
  padding: 60px 40px 60px 40px;
}

.articles--padded .post {
  padding: 20px 25px 20px 25px;
}

.articles--bordered .post {
  border: solid 1px var(--color-border);
}

body.single .articles--bordered .post {
  border-radius: 10px;
}

.articles .post .post-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.articles:not(.articles--hero) img {
  object-fit: cover;
  height: 100px;
  width: 100%;
  aspect-ratio: 3/2;
  display: block;
}

.articles.articles--padded:not(.articles--hero) img {
  height: auto;
  max-height: 180px;
}

@media (min-width: 768px) {
  .articles {
    gap: 20px;
  }

  .articles.articles--padded:not(.articles--hero) img {
    max-height: unset;
  }

  .articles .post .post-inner {
    flex-wrap: nowrap;
  }

  .articles--padded .post-inner > *:first-child {
    flex-basis: 25%;
    flex-shrink: 0;
    align-self: flex-start;
  }
}

.form-group {
  margin-bottom: 14px;
}

/* === POSTS === */

.articles .post-title {
  margin: 30px 0 10px 0;
  padding: 0;
}

.articles .post-title a,
.articles .post-title a:link,
.articles .post-title a:visited,
.articles .post-title a:active {
  font-size: var(--font-size-large);
  font-size: var(--font-size-large-variable);
  font-weight: 700;
  color: var(--color-foreground);
  line-height: 1.4;
  text-decoration: none;
}

.articles--bordered .post-teaser-meta,
.articles--bordered .post-teaser-meta .post-teaser-date,
.articles--bordered .post-teaser-meta .post-category-link {
  font-size: var(--font-size-xxsmall);
  font-size: var(--font-size-xxsmall-variable);
}

.articles--bordered .post-title {
  margin: 0;
}

@media (min-width: 768px) {
  .articles--bordered .post-title {
    margin: 5px 0 0 0;
  }
}

.single-sidebar-items.articles--bordered .post-title {
  margin-top: 0;
  line-height: 1;
}

.articles--bordered .post-title a,
.articles--bordered .post-title a:link,
.articles--bordered .post-title a:visited,
.articles--bordered .post-title a:active {
  font-size: var(--font-size-small);
  font-size: var(--font-size-small-variable);
}

.articles .post-teaser-meta,
.articles .post-category-link {
  color: var(--color-foreground-dimmed);
  font-size: var(--font-size-xsmall);
  font-size: var(--font-size-xsmall-variable);
}

.single-sidebar-items .post-teaser-meta {
  font-size: var(--font-size-xxsmall);
  font-size: var(--font-size-xxsmall-variable);
}

.single-sidebar-items.articles--padded .post {
  padding-bottom: 15px;
}

.single-sidebar-items.articles--padded .post-thumbnail img {
  aspect-ratio: 1/1;
  margin-top: 5px;
}

.articles .post-category-link::before {
  content: " • ";
}

.articles .post-category-link,
.articles .post-category-link:link,
.articles .post-category-link:link:visited,
.articles .post-category-link:link:active {
  text-decoration: none;
}

.articles .post-category-link:link:hover,
.articles .post-category-link:link:focus {
  text-decoration: underline;
}

body.single h1.post-title {
  font-size: var(--font-size-xlarge);
  font-size: var(--font-size-xlarge-variable);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 30px;
  margin-bottom: 30px;
}

body.single h2 {
  font-size: var(--font-size-large);
  font-size: var(--font-size-large-variable);
}

@media (min-width: 768px) {
  body.single h2 {
    font-size: var(--font-size-larger);
  }
}

body.single .post-thumbnail img {
  border-radius: 10px;
}

body.single .single-meta {
  font-size: var(--font-size-small);
  font-weight: 700;
  margin-bottom: 30px;
}

body.single .post-content {
  font-size: var(--font-size-post-intro);
}

body.single .post-content h2 ~ p,
body.single .post-content h2 ~ div,
body.single .post-content h2 ~ ul li,
body.single .post-content h2 ~ ol li,
body.single .post-content h2 ~ table,
body.single .post-content h2 ~ table th,
body.single .post-content h2 ~ table td {
  font-size: var(--font-size-small);
  font-size: var(--font-size-small-variable);
}

body.single .post-content a,
body.single .post-content a:link,
body.single .post-content a:visited,
body.single .post-content a:active {
  color: var(--color-foreground-pages-links);
}

body.single .post-content a:focus,
body.single .post-content a:hover {
  color: var(--color-accent);
}

body.single ul:not(.main-navigation-container) li + li {
  margin-top: 10px;
}

body.single .single-post-categories {
  margin: 30px 0 30px 0;
}

body.single .single-post-category .post-category-link {
  color: var(--color-foreground-dimmed);
  text-decoration: none;
  border: solid 1px var(--color-border);
  border-radius: 5px;
  padding: 10px;
}

body.single .single-post-category .post-category-link:hover,
body.single .single-post-category .post-category-link:focus {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* === CONTENT BLOCKS === */

.wp-block-table {
  margin-left: 0;
  margin-right: 0;
}

.wp-block-table table {
  border-collapse: collapse;
}

.wp-block-table table,
.wp-block-table table tr,
.wp-block-table table th,
.wp-block-table table td {
  border-color: var(--color-background-dimmed-darker);
}

.wp-block-table td, .wp-block-table th {
  border: 1px solid;
  padding: .5em;
  font-family: var(--font-family-preset-inter);
  font-size: var(--font-size-small);
}

.wp-block-table table tr:nth-child(odd) th,
.wp-block-table table tr:nth-child(odd) td {
  background-color: var(--color-background-dimmed);
}

@media (max-width: 767.999px) {
  .wp-block-table th,
  .wp-block-table td {
    font-size: var(--font-size-xsmall);
    font-size: var(--font-size-xsmall-variable);
  }
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.entry-content th, .entry-content td {
  border: 1px solid #ddd;
  color: #737373;
  padding: 12px;
  text-align: left;
}

.entry-content th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.entry-content tr:nth-child(even) {
  background-color: #f9f9f9;
}

.entry-content tr:hover {
  background-color: #f1f1f1;
}

.entry-content h3 {
  font-size: 1.2em !important;
  margin-bottom: 10px !important;
}

.entry-content h2 {
  margin-bottom: 10px !important;
}

.entry-content blockquote {
  padding: 20px 30px;
  margin: 40px 0;
  border-top: 2px solid #DEDEE0;
  border-bottom: 2px solid #DEDEE0;
  background-color: #F6F6F7;
  color: #000;
  font-size: 1em !important;
}

.entry-content .pro-tip {
  border-left: 4px solid #10b981;
  background-color: #f0fdf4;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px #0000000d;
  line-height: 1.6;
  color: #000;
  font-size: 17.5118px !important;
  font-weight: 400;
}

.entry-content .pro-tip strong {
  display: block;
  color: #10b981;
  text-align: left;
  font-family: sans-serif;
  font-size: .9em;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-style: italic;
}

.entry-content h2 + p,
.entry-content h3 + p,
.entry-content h2 + ul,
.entry-content h3 + ul {
  margin-top: 0;
}

.entry-content hr {
  border: none;
  height: 1px;
  background-color: #ddd;
  width: 60%;
  margin: 3rem auto;
}

.has-mono-2-color p, .has-mono-2-color h1, .has-mono-2-color h2, .has-mono-2-color h3, .has-mono-2-color h4, .has-mono-2-color h5, .has-mono-2-color h6, .has-mono-2-color ul li, .has-mono-2-color ol li {
  color: #333 !important;
}

.entry-content .faq-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.25rem;
}

.entry-content .faq-section h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  color: #111827;
}

.entry-content .faq-section h4 + p {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 3px solid #e5e7eb;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === SOCIAL ICONS === */

.social-media-link,
.social-media-link:link,
.social-media-link:visited,
.social-media-link:active {
  color: var(--color-accent);
  text-decoration: none;
  display: inline-block;
  padding-right: 10px;
}

.sidebar-section--social {
  display: flex;
  gap: 15px;
}

.social-media-link:focus svg,
.social-media-link:hover svg {
  transform: scaleX(1.25) scaleY(1.25);
}

.social-media-link svg,
.social-media-link svg path {
  fill: currentColor;
  display: block;
  padding: 0;
  margin: 0;
}

.site-footer-social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}
