  /* SITE CENTERING OVERRIDES */
.site-header .site-header__contain,
.util-bar {
  margin:0 auto;
}
.site-main > .page-content {
  max-width:110em;
  margin:0 auto;
  padding-left:3rem;
  padding-right:3rem;
}
@media (max-width: 768px) {
  .site-main > .page-content {
    padding-left:0;
    padding-right:0;
  }
}


#newsletter-section p,
#newsletter-section label {
    color:#fff;
}
.newsletter {
  display: flex;
  max-width: 56.25rem;
  margin: 0 auto 2em;
  border-radius: 0.25rem;
  overflow: hidden;
}

.newsletter__info {
  flex: 1 1 40%;
  padding: 2.5rem;
  border-right: 1px solid #333;
}

.newsletter__info h2 {
  margin: 0 0 0.625rem;
  font-size: 1.75rem;
  color: #00adef;
}

.newsletter__info p.lead {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: #ccc;
}

.newsletter__info p.privacy {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #aaa;
}

.newsletter__form {
  flex: 1 1 60%;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto 1fr auto auto;
  grid-column-gap: 1.25rem;
  grid-row-gap: 0.9375rem;
}

.newsletter__form label {
  font-size: 0.875rem;
  margin-bottom: 0.3125rem;
  color: #eee;
}

.newsletter__form input[type="text"],
.newsletter__form input[type="email"],
.newsletter__form select {
  width: 100%;
  padding: 0.5rem 0.625rem;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 0.1875rem;
  color: #eee;
}

.newsletter__form input::placeholder {
  color: #666;
}

.newsletter__form .full-width {
  grid-column: 1 / -1;
}

.newsletter__form .button-wrapper {
  grid-column: 2 / 3;
  align-self: end;
  text-align: right;
}

.newsletter__form button {
  background: #00adef;
  border: none;
  padding: 0.75rem 1.5625rem;
  font-size: 1rem;
  color: #fff;
  border-radius: 0.1875rem;
  cursor: pointer;
}

.checkbox {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: #ccc;
}

.checkbox-label {
  line-height: 1.4;
}

.checkbox-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#checkbox-error {
  background: #fff;
  color: #000;
  border: 1px solid #f0ad4e;
  border-radius: 4px;
  padding: 0.5rem;
  font-size: 0.8125rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
}

#checkbox-error::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 10px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}

.required-note {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: #FFC107;
  text-align: right;
}

.required-asterisk {
  color: #FFC107;
  margin-left: 0.1875rem;
}

#thank-you {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: #00adef;
}

#thank-you p {
  font-size: 0.95rem;
  color: #ccc;
}

.newsletter__form button:disabled {
  background: #444;
  cursor: not-allowed;
  opacity: 0.6;
}

.option-btn.dark {
    background-color:#093b60;
    color:#fff;
}
.flex-content.apr-style h6 {
    color:#d97d07;
    font-family:'Open Sans','Lucida Sans',Helvetica,Arial,sans-serif;
    font-weight:normal;
    font-size:2rem;
}

@media (max-width: 1080px) {
    .newsletter {
        flex-direction:column;
    }
    #form-container,
    .newsletter__info {
        flex:1;
        width:100% !important;
        border-right:0;
    }
}

.youtube-wrapper {
  position: relative;
  width: 100%;
  min-height:300px;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
  overflow: hidden;
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-template-page_landing .page-header {
    margin-bottom:1rem;
}
.page-template-page_landing .embed-with-content {
    margin-left:5rem;
}
.page-template-page_landing .btn {
    background-color:#0b4a6a;
    color:#fff;
}
.page-template-page_landing .btn svg {
    display:none;
}
.page-template-page_landing .get-started .get-started-text {
    margin-top:0;
}
.embed-with-content.single-col {
    min-height:360px;
}
.embed-with-content.single-col {
    width:50%;
}
.embed-with-content.single-col > div {
    width:100% !important;
    min-height:360px;
}
.page-template-page_landing .single-col-contain {
    padding-top:0;
    padding-bottom:2rem;
}
.page-template-page_landing .the-content {
    margin-top:0;
}
.process-steps .steps-cont, 
.get-started-contain,
.content-max-width,
.embed-with-content.has-no-sidebar {
    max-width:62.375rem;
    width:100%;
}

.cookie-banner {
    background-color:#1d1e20;
}
.cookie-banner h2,
.cookie-banner p,
.cookie-banner p a {
    color:#fff;
    font-family:'Open Sans','Lucida Sans','Helvetica','Arial',sans-serif;
}
.cookie-banner h2.cookie-title {
    font-size:1rem;
}
.cookie-banner #cookie_btn {
    background-color:#fff;
    color:#000;
}
.process-steps.center-content .process-header,
.process-steps.center-content .steps-cont {
    margin:0 auto 2rem;
    max-width:60rem;
}
.process-steps.is-condensed-view .process-header,
.process-steps.is-condensed-view .steps-cont {
    padding-left:10rem !important;
}
.page-template-page_landing .site-header .site-header__contain {
    padding-left:1rem;
}
.page-template-page_landing .wp-block-embed.is-provider-youtube {
    padding:3rem 12rem;
    background-color:#f2f7fa;
    margin-left: 0;
    margin-right: 0;
    max-width: 100vw;
    min-width:50rem;
    margin-bottom:4rem;
}
.page-template-page_landing .wp-block-embed.is-provider-youtube > div {
    max-width:53rem;
}
.single-col-contain.get-started .disclosure img {
    display:inline;
}
.page-template-page_landing p img {
    display:inline !important;
}
@media only screen and (max-width: 768px) {
    .process-steps.is-condensed-view .process-header,
    .process-steps.is-condensed-view .steps-cont {
        padding-left:2rem !important;
    }
}
@media only screen and (max-width: 1024px) { 
    .page-template-page_landing .embed-with-content {
        margin-left:0;
    }
    .has-no-sidebar.embed-with-content,
    .has-no-sidebar.embed-with-content > div {
        height:auto;
        min-height:auto;
        padding:1rem;
    }
    .site-footer .footer .row {
        flex-direction:column;
    }
    .page-template-page_landing .wp-block-embed.is-provider-youtube {
        padding:2rem !important;
    }
}
.process-steps.is-condensed-view .process-header {
    padding-bottom:2rem;
}
.process-steps.is-condensed-view .steps-cont {
    text-align:left !important;
}
.process-steps.is-condensed-view  {
    padding-top:2rem;
    padding-bottom:3rem;
}
.process-steps.is-condensed-view .steps {
    border-bottom:none;
}
.process-steps.is-condensed-view .step {
    border-bottom:none !important;
    margin-bottom:0;
}

.process-steps.is-condensed-view .center {
    text-align:left;
}
.process-steps.is-condensed-view h2 {
    font-size:2.5rem;
    margin-bottom:1rem;
}
.process-steps .header-subtitle {
    margin-bottom:2rem;
}
.stats-block {    
    width: 100%;
    text-align:center;
    padding-top:2rem;
    padding-bottom:2rem; 
    margin-top:8rem;
}
.stats-block ul.stats-list {
    padding-left:0;
}

.stats-list {
    list-style:none;
    padding-left:0;
    text-align:center;
}
.stat-item .stat-number {
    font-size:3rem;
    font-weight:bold;
    font-family: "Noto Serif", Constantia, Lucida Bright, Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", Georgia, Garamond, serif;
}
.stars-block {
    margin: 0;
    padding-top:2rem;
    padding-bottom:2rem; 
}
.stars-block * {
    text-align:center;
}
.stars-block h2 {
    font-size:2.5rem;
}
.stars-block.no-pad {
    padding-top:0.5rem;
    padding-bottom:0.5rem;
}

.stars-block .stars-cont .stars-image {
    text-align:center;
    display:flex;
    justify-content: center;
    align-items: center;
}
.stats-block.has-tint,
.stars-block.has-tint {
    background-color:#f2f7fa;
    max-width:100%;
}
.stars-block .stars-subhead {
    margin-top:1.5rem;
    text-transform: uppercase;
    font-weight:bold;
}
#loans.maxw.has-gutters {
    margin-left:unset;
}

.process-steps .images {
  max-width:23rem !important;
  padding-left:0 !important;
}

/* partner page specific overrides */
.partner.page-header {
  padding-right:0;
}
.flex-row {
  display:flex;
  justify-content: space-between;
}
.flex-row .header__partner {
  display:flex;
  justify-content:flex-end;
  align-items:flex-end;
  z-index:9 !important;
  padding-bottom:7rem;
  
}

@media (max-width: 1024px) {
  .flex-row {
    flex-direction:column;
  }
}
@media (max-width: 768px) {
  .flex-row .header__partner {
    background-color:#fff;
  }
}
.header__partner .header-partner__logo {
  background-color:#fff;
  padding:2rem 2rem 0;
  border-top-left-radius: 2rem;;
}
.header__partner .header-partner__label {
  font-style:italic;
  font-weight:bold;
  color:#444;
  white-space: nowrap;
}
/* 
.page-id-214 .left-align {
  padding-left:0 !important
}

.page-id-214 .site-main > .page-content {
  padding-left:0 !important;
  padding-right:0 !important;
}
.page-id-214 .process-steps {
  max-width:auto !important;
  padding-top:7rem;
}

.page-id-214 .loan-callout {
    max-width: 100% !important;
    width: 100%;
}
.page-id-214 .two-column-layout {
  max-width:100% !important;
  display:flex;
  align-items: center;
  flex-direction:column;
}
.page-id-214 .process-steps.is-condensed-view .center {
  text-align:center !important
}
.page-id-214 .lf--loan {
  padding:0 2rem !important
}
.page-id-214 .lf--loan .lf-group {
  max-width:100%;
} */
.ie-tools-container {
    margin:0 5em 0 3em;
}
/* Calculator Cards — adjustable via CSS vars */
/* Calculator Cards — styles scoped to this block */
.calc-cards {
  /* Themeable tokens */
  --calc-cols: 4;               /* overridden inline by render.php */
  --calc-gap: 28px;
  --calc-radius: 12px;
  --calc-border: #e7e9ec;
  --calc-bg: #ffffff;
  --calc-icon-bg: #faf4ee;      /* beige icon tile */
  --calc-accent: #ed7e11;       /* CTA + icon tint */
  --calc-text: #083553;
  --calc-muted: #586172;
  padding-top:2em;
  border-top:1px solid var(--calc-border);
  background:linear-gradient(180deg,rgba(241, 246, 248, 1) 0%, rgba(241, 246, 248, 1) 86%, rgba(255, 255, 255, 1) 86%, rgba(255, 255, 255, 1) 100%);
}

/* Grid */
.calc-cards__grid {
  display: grid;
  grid-template-columns: repeat(var(--calc-cols), minmax(0, 1fr));
  gap: var(--calc-gap);
}

/* Card */
.calc-card {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color:#000;
}
.calc-card:hover {
  box-shadow: 0 6px 22px rgba(16, 32, 55, 0.06);
}
.calc-card hr {
    background-color:#d8d8d8;
    margin:2em 0;
}
/* Icon well */
.calc-card__icon {
  background: #fcf8f3;
  border-radius: var(--calc-radius);
  border: 1px solid #d8d8d8;
  display: grid;
  place-items: center;
  height: clamp(130px, 20vw, 160px);
  margin-bottom: 22px;
  overflow: hidden;
}
.calc-card__icon svg {
  width: clamp(56px, 8vw, 72px);
  height: auto;
  color: var(--calc-accent); /* works with SVGs using currentColor */
}

/* Title + description */
.calc-card__title {
  font-size: 24px;
  line-height: 1.2;
  color: var(--calc-text);
  margin: 0 0 10px;
}
.calc-card__desc {
  color: var(--calc-text);
  margin: 0 0 18px;
  line-height:1.5em;
  flex: 1 1 auto; /* pushes CTA to bottom */
}

/* CTA button (overrides most theme btn styles for “ghost” look) */
.calc-card__cta { margin-top: auto; }

.calc-card__btn {
  appearance: none;
  background: transparent !important;
  color: var(--calc-text);
  display: block;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--calc-text);
  border-radius: 9999px;
  padding: 16px 14px 14px !important;
  box-sizing: border-box;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  transition:
    transform .06s ease,
    border-color .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}
.calc-card__btn:hover {
  text-decoration: underline;
}
.calc-card__arrow {
  display: inline-block;
  flex: 0 0 auto;
  fill:#ed7e11;
}

/* Footnote beneath grid */
.card-cards__footnote-container {
    padding:2em;
}
.calc-cards__footnote {
  margin-top: 18px;
  font-size: 14px;
  color:#083553;
  text-align:center;
}
@media (max-width: 1024px) {
  .calc-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Responsive columns */
@media (max-width: 768px) {
  .calc-cards__grid {
    grid-template-columns: 1fr;
  }
}

/* Post Tags on cards */
.card__tax-list.meta--tags .tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card__tax-list.meta--tags .tag-item {
  display: inline;
}

/* Commas between items, no trailing comma */
.card__tax-list.meta--tags .tag-item:not(:last-child)::after {
  content: ", ";
}

/* Link color + simple hover/focus */
.card__tax-list.meta--tags .tag-link {
  color: #888 !important;
  text-decoration: none;
  font-weight:bold;
  font-size:0.9em;
  margin-top:5px;
}

.card__tax-list.meta--tags .tag-link:hover,
.card__tax-list.meta--tags .tag-link:focus {
  text-decoration: underline; /* keep color the same per request */
}
.card__tax-list.meta--tags { margin-top: .5rem; }

/* Row splits left filters and right sort */
.blog-controls .filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;              /* space between left and right on tight layouts */
  flex-wrap: wrap;        /* allows wrapping on small screens */
  width:100%;
}

/* Left cluster: categories + tags inline */
.blog-controls .filters-left {
  display: flex;
  align-items: center;
  gap: .75rem;            /* space between the two dropdowns */
}

/* Optional: tighten default margins for select wrappers if your theme adds some */
.blog-controls .filters-left .select-wrap { margin: 0; }
/* new partner page blocks */
/* Wrapper */
.star-section--cards {
  position: relative;
}

/* Copy above cards */
.star-section__copy {
  max-width: 52rem;
  margin-bottom: 2.5rem;
}

/* Cards layout */
.star-section__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: stretch; /* make all flex items in a row equal height */
}

/* 1 card: full width */
.star-cards--count-1 .star-card {
  flex: 1 1 100%;
}

/* Default card width = half (2-column grid) */
.star-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(50% - 1rem); /* 2 columns on desktop for 2–4 cards */
}

/* Card base */
.star-card__inner {
  position: relative;
  padding: 2.4rem 2.5rem;
  border-radius: 1.75rem;
  border: 2px solid #d0e3f0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.03);
  flex: 1 1 auto;  /* FULL HEIGHT WITHIN THE CARD */
  display: flex;
  flex-direction: column;
}

/* Color variants */
.star-card--blue .star-card__inner {
  border-color: #50accb;
}

.star-card--green .star-card__inner {
  border-color: #6bbf4e;
}

.star-card--blue .star-card__inner,
.star-card--blue .star-card__rate {
  color: #50accb;
}

.star-card--green .star-card__inner,
.star-card--green .star-card__rate {
  color: #5bb446;
}

/* "None" style – plain text / no box */
.star-card--none {
  border: 0;
}

/* Only add left divider when there are exactly 2 cards */
.star-cards--count-2 .star-card--none:last-child {
  border-left: 1px solid #e1e5ec;
}

.star-card--none .star-card__inner {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0 3rem 0 0;
}

/* kill icon chips on none style */
.star-card--none .star-card__icon {
  display: none !important;
}

/* horizontal spacing for two plain cards */
.star-cards--count-2 .star-card--none:first-child .star-card__inner {
  padding-right: 3rem;
}
.star-cards--count-2 .star-card--none:last-child .star-card__inner {
  padding-left: 3rem;
}

/* Card content */
.star-card__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
}

.star-card__title {
  margin: 0 0 0.5rem; /* space down from the top icon / line */
  font-family:'Open Sans','Lucida Sans',Helvetica,Arial,sans-serif;
  color:#444;
}

/* tweak typography for none style to match hero layout */
.star-card--none .star-card__title {
  color: #113654;
}

.star-card__description {
  margin: 0 0 1.4rem;
  color: #5b646d;
}

.star-card__description small {
  display:inline-block;
  padding-top:1.5rem;
}

/* description color for none style */
.star-card--none .star-card__description {
  color: #3b4650;
}

.star-card__rate {
  margin: 0;
  font-family:'Open Sans','Lucida Sans',sans-serif;
  font-weight:normal;
}

/* link row style for none variant */
.star-card--none .star-card__rate {
  margin-top: 1.75rem;
  color: #113654;
  font-family:'Open Sans','Lucida Sans',sans-serif;
}

.star-card__rate a {
  font-weight:normal;
  font-size:0.9em;
}

/* Footer text link pinned to bottom of card */
.star-card__footer {
  margin-top: auto;       /* pushes footer to bottom within flex column */
  padding-top: 1.5rem;
}

.star-card__footer a {
  text-decoration: none;
}

.star-card__text-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  color: #113654;
}

.star-card__text-link:hover,
.star-card__text-link:focus {
  text-decoration: none;
}

/* Icon chips that overlap the borders */
.star-card__icon {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff;
  border-radius: 999px;
}

.star-card__icon img {
  display: block;
  max-width: 3rem;
  height: auto;
}

/* Top center icon – sits on the top border */
.star-card__icon--top {
  top: 0;
  left: 4rem;
  transform: translate(-50%, -50%);
}

.star-card__icon--top img {
  max-width:4rem;
}

.star-card__icon--bottom img {
  max-width:2rem;
}

/* Bottom icon – overlaps the bottom border toward the right */
.star-card__icon--bottom {
  bottom: 5px;
  right: 2.5rem;
  transform: translateY(50%);
}

/* CTA button */
.star-section__cta {
  display: flex;
  justify-content: flex-end;
}

.btn--star-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .9rem 2.4rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  background: #f8991d; /* tweak to your brand orange */
  color: #113654;
}

.btn--star-cta:hover {
  filter: brightness(0.95);
}

.btn__chevron {
  font-size: 1.1em;
  line-height: 1;
}

/* Tablet: 2 columns (same as desktop, just tighter gap) */
@media only screen and (max-width: 1024px) {
  .star-section__cards {
    gap: 1.5rem;
  }

  .star-card {
    flex: 1 1 calc(50% - 0.75rem);
  }

  /* still force single card to full width */
  .star-cards--count-1 .star-card {
    flex: 1 1 100%;
  }
}

/* Mobile: 1 column */
@media only screen and (max-width: 768px) {
  .star-section__cards {
    flex-direction: column;
    gap: 1.5rem;
  }

  .star-card {
    flex: 1 1 100%;
  }

  /* remove vertical divider / extra padding on stacked none cards */
  .star-cards--count-2 .star-card--none .star-card__inner {
    border-right: 0;
    padding: 0;
  }
}

#sidebar .jump-menu-under__item {
  margin-top:2rem;
  padding:4rem 1rem 2rem;
  border-top:1px solid #ddd
}

#sidebar .jump-menu-under__item p {
  margin:0.3rem 0;
  display:block;
}

#sidebar .jump-menu-under__item p:last-child {
  margin-top:1rem;
}

/* =========================
   Blog: 2-column layout + sidebar filters + sort in left column (right-aligned)
   ========================= */

#blog_posts.blog-posts{
  display: grid;
  grid-template-columns: 1fr min(340px, 28vw);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "top  side"
    "main side";
  gap: 28px 40px;
  align-items: start;
}

/* Make the controls wrapper not interfere with the grid;
   its children become the actual grid items. */
#blog_controls.blog-controls{
  display: contents;
}

/* Sort lives in the LEFT column only, anchored right */
.blog-sortbar{
  grid-area: top;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* If you still have an inner wrapper, keep it neutral (no layout needed) */
.blog-sortbar__inner{
  display: contents;
}

/* Keep your existing button id/class */
#sort_posts.sort-order{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight:bold;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 10px;
  justify-content: flex-end;
}

/* Posts area */
#blog_posts .query{
  grid-area: main;
}
.archive .posts-list, .blog-posts .query {
  margin-top:0 !important;
}
/* Sidebar */
.blog-filters{
  grid-area: side;
  position: sticky;
  top: 18px;
}

.blog-filters__panel{
  border-top:3px solid #f8991d;
  background: #fbf7ef;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  padding: 18px 18px 12px;
}

.blog-filters__kicker{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Accordion blocks */
.blog-filter{
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding-top: 12px;
  margin-top: 12px;
}
.blog-filter:last-child {
  border-bottom:0;
}
.blog-filter:first-of-type{
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.blog-filter__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.blog-filter__toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px;
  font: inherit;
}
.blog-filter__toggle:active {
  background-color:transparent !important;
  color:#000;
}

.blog-filter__title{
  font-weight: 700;
}

/* Plus/Minus icon */
.blog-filter__icon{
  width: 18px;
  height: 18px;
  position: relative;
  border-radius: 6px;
}

.blog-filter__icon::before,
.blog-filter__icon::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  background:#f8991d;
  transform: translate(-50%, -50%);
}

.blog-filter__icon::after{
  transform: translate(-50%, -50%) rotate(90deg);
}

.blog-filter__toggle[aria-expanded="true"] .blog-filter__icon::after{
  display: none; /* minus */
}

.blog-filter__clear{
  font: inherit;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.blog-filter__body{
  display: none;
  padding-bottom: 8px;
}

.blog-filter__body.is-open{
  display: block;
}

/* Checklist */
.blog-checklist{
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left:0 !important;
  display: grid;
  gap: 8px;
}

.blog-check{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.blog-check input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.blog-check__box{
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,.25);
  background: #fff;
  display: inline-block;
}


/* Checkmark (orange) */
.blog-check__box{
  position: relative; /* anchor the ::after */
}

.blog-check input:checked + .blog-check__box::after{
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #f8991d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.blog-check__label{
  font-size: 14px;
}

/* Responsive: stack and INVERT (sidebar first) */
@media (max-width: 980px){

  /* stop using the desktop grid on mobile */
  #blog_posts.blog-posts{
    display: flex !important;
    flex-direction: column !important; /* <- invert the 2 columns */
    gap: 18px;
  }

  /* grid-only rules no longer apply, so no template-areas needed */

  .blog-filters{
    width:100%;
    position: static;
  }

  /* make sure these don't rely on grid-area on mobile */
  .blog-sortbar{
    width: 100%;
  }
}