/**
 * ShopFluxx blog.
 *
 * Woodmart's blog is a magazine layout: shadowed cards, an author avatar
 * floating over each photo, a share tooltip, two competing timestamps. The
 * store next door is flat, square and quiet. This brings the blog into that
 * language and gives long-form articles a reading measure that survives on a
 * phone.
 *
 * Palette follows the brand: navy #0A3D91, accent #00AEEF.
 */

:root {
  --sf-navy: #0a3d91;
  --sf-navy-dark: #072d6c;
  --sf-accent: #00aeef;
  --sf-ink: #16202e;
  --sf-body: #4a5568;
  --sf-muted: #7b8794;
  --sf-line: #e3e8ef;
  --sf-line-soft: #eef1f6;
  --sf-surface: #ffffff;
  --sf-tint: #f4f7fc;
  --sf-radius: 10px;
  --sf-measure: 43rem;
}

/* ----------------------------------------------------- removed by design */

/* The byline markup is gone at the source (blog/meta.php); these rules cover
   the wrappers the theme prints around it, and the demo furniture that has no
   place on a store blog. */
.wd-post-author,
.wd-meta-author,
.wd-modified-date,
.wd-author-bio,
.wd-post-loop .wd-post-header,
.wd-post .wd-post-actions,
.wd-post .wd-post-reply,
.recent-posts-comment,
.comments-area {
  display: none !important;
}

/* ------------------------------------------------------- archive heading */

.sf-archive-intro {
  margin: 0 0 32px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--sf-line);
}

.sf-archive-intro__title {
  margin: 6px 0 0;
  color: var(--sf-ink);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sf-archive-intro__text {
  max-width: 60ch;
  margin: 12px 0 0;
  color: var(--sf-body);
  font-size: 16px;
  line-height: 1.65;
}

/* ------------------------------------------------------------ breadcrumbs */

.sf-crumbs,
.sf-crumbs p,
.sf-crumbs .rank-math-breadcrumb p {
  margin: 0;
  color: var(--sf-muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sf-crumbs a {
  color: var(--sf-muted);
  text-decoration: none;
}

.sf-crumbs a:hover {
  color: var(--sf-navy);
}

.sf-single-crumbs {
  margin: 0 0 18px;
}

/* ------------------------------------------------------------ topic pills */

.sf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.sf-pills__item {
  padding: 7px 14px;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  background: var(--sf-surface);
  color: var(--sf-body);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.sf-pills__item:hover {
  border-color: var(--sf-navy);
  color: var(--sf-navy);
}

.sf-pills__item.is-current {
  border-color: var(--sf-navy);
  background: var(--sf-navy);
  color: #fff;
}

/* ------------------------------------------------------------------ cards */

.wd-blog-holder {
  --wd-gap-lg: 24px;
  --wd-gap-sm: 16px;
}

.wd-post.blog-post-loop .wd-post-inner {
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  background: var(--sf-surface);
  box-shadow: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.wd-post.blog-post-loop .wd-post-inner:hover {
  border-color: #c9d6ea;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgb(10 61 145 / 8%);
}

/* Every card image is the same shape, so a row of cards lines up whatever the
   source photo was. */
.wd-post.blog-post-loop .wd-post-thumb {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0a3d91 0%, #0d4aad 55%, #00aeef 100%);
}

.wd-post.blog-post-loop .wd-post-img,
.wd-post.blog-post-loop .wd-post-img a {
  display: block;
  height: 100%;
}

.wd-post.blog-post-loop .wd-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.wd-post.blog-post-loop .wd-post-inner:hover .wd-post-img img {
  transform: scale(1.04);
}

/* Articles with no featured image get the brand gradient plus a wordmark
   rather than a blank grey rectangle. */
.wd-post.blog-post-loop .wd-post-thumb::after {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  color: rgb(255 255 255 / 78%);
  content: "ShopFluxx";
  font-size: 12px;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.wd-post.blog-post-loop .wd-post-thumb:has(img)::after {
  content: none;
}

.wd-post.blog-post-loop .wd-post-content {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 22px;
}

.wd-post.blog-post-loop .wd-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.wd-post.blog-post-loop .wd-post-cat a {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--sf-tint);
  color: var(--sf-navy);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.wd-post.blog-post-loop .wd-post-cat a:hover {
  background: var(--sf-navy);
  color: #fff;
}

.wd-post.blog-post-loop .wd-post-date time {
  color: var(--sf-muted);
  font-size: 12.5px;
}

.wd-post.blog-post-loop .wd-post-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.wd-post.blog-post-loop .wd-post-title a {
  color: var(--sf-ink);
}

.wd-post.blog-post-loop .wd-post-title a:hover {
  color: var(--sf-navy);
}

.wd-post.blog-post-loop .wd-post-excerpt {
  margin: 0;
  color: var(--sf-body);
  font-size: 14.5px;
  line-height: 1.6;
}

.wd-post.blog-post-loop .wd-post-read-more {
  margin-top: 14px;
}

.wd-post.blog-post-loop .wd-post-read-more a {
  color: var(--sf-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.wd-post.blog-post-loop .wd-post-read-more a::after {
  content: " \2192";
}

/* ----------------------------------------------------- single post header */

.post-single-page .wd-single-post-header {
  margin-bottom: 26px;
}

.post-single-page .wd-post-cat.wd-style-with-bg {
  margin-bottom: 14px;
}

.post-single-page .wd-post-cat.wd-style-with-bg a {
  padding: 4px 11px;
  border-radius: 4px;
  background: var(--sf-tint);
  color: var(--sf-navy);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-single-page .wd-post-title,
.post-single-page h1.wd-entities-title {
  max-width: 20ch;
  max-width: min(100%, 24ch);
  margin: 0 0 4px;
  color: var(--sf-ink);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

@media (min-width: 769px) {
  .post-single-page .wd-post-title,
  .post-single-page h1.wd-entities-title {
    max-width: 22ch;
  }
}

.post-single-page .wd-post-meta {
  gap: 0;
  margin: 0;
}

/* The theme's own date row is replaced by .sf-postmeta, which blog.js lifts
   into the header. Hide the original rather than fight it for position. */
.post-single-page .wd-single-post-header .wd-post-date {
  display: none;
}

.sf-postmeta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 0 0;
  color: var(--sf-muted);
  font-size: 13.5px;
}

.sf-postmeta__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentcolor;
}

.post-single-page .wd-post-image {
  overflow: hidden;
  margin: 26px 0 0;
  border-radius: var(--sf-radius);
}

.post-single-page .wd-post-image img {
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------- article typography */

.wd-entry-content {
  color: var(--sf-body);
  font-size: 17px;
  line-height: 1.75;
}

.sf-article-body > * {
  max-width: var(--sf-measure);
}

.sf-article-body > table,
.sf-article-body > figure,
.sf-article-body > .wp-block-table {
  max-width: 100%;
}

.sf-article-body p {
  margin: 0 0 1.2em;
}

.sf-article-body h2 {
  max-width: var(--sf-measure);
  margin: 2.2em 0 0.6em;
  padding-top: 0.6em;
  border-top: 1px solid var(--sf-line-soft);
  color: var(--sf-ink);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  scroll-margin-top: 96px;
}

.sf-article-body h3 {
  margin: 1.8em 0 0.5em;
  color: var(--sf-ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  scroll-margin-top: 96px;
}

.sf-article-body h4 {
  margin: 1.5em 0 0.4em;
  color: var(--sf-ink);
  font-size: 16.5px;
  font-weight: 600;
}

.sf-article-body ul,
.sf-article-body ol {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
}

.sf-article-body li {
  margin-bottom: 0.55em;
  padding-left: 0.2em;
}

.sf-article-body li::marker {
  color: var(--sf-navy);
}

.sf-article-body a {
  color: var(--sf-navy);
  text-decoration: underline;
  text-decoration-color: rgb(10 61 145 / 30%);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.sf-article-body a:hover {
  text-decoration-color: var(--sf-navy);
}

.sf-article-body strong {
  color: var(--sf-ink);
  font-weight: 600;
}

.sf-article-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--sf-accent);
  color: var(--sf-ink);
  font-size: 18px;
  font-style: normal;
  line-height: 1.6;
}

.sf-article-body blockquote p:last-child {
  margin-bottom: 0;
}

.sf-article-body img {
  height: auto;
  max-width: 100%;
  border-radius: 8px;
}

.sf-article-body figure {
  margin: 1.8em 0;
}

.sf-article-body figcaption {
  margin-top: 8px;
  color: var(--sf-muted);
  font-size: 13.5px;
  text-align: center;
}

/* Tables carry the numbers people came for, so they get a proper treatment and
   scroll horizontally instead of squeezing on a phone. */
.sf-article-body table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 15px;
}

.sf-article-body thead th {
  padding: 11px 14px;
  border-bottom: 2px solid var(--sf-navy);
  background: var(--sf-tint);
  color: var(--sf-ink);
  font-weight: 600;
  text-align: left;
}

.sf-article-body td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--sf-line-soft);
  vertical-align: top;
}

.sf-article-body tbody tr:nth-child(even) {
  background: #fafbfd;
}

.sf-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 1.6em 0;
  -webkit-overflow-scrolling: touch;
}

.sf-table-scroll table {
  min-width: 520px;
  margin: 0;
}

/* --------------------------------------------------------- summary and TOC */

.sf-summary {
  max-width: var(--sf-measure);
  margin: 0 0 26px;
  padding: 20px 22px;
  border: 1px solid #d7e3f7;
  border-left: 4px solid var(--sf-navy);
  border-radius: var(--sf-radius);
  background: var(--sf-tint);
}

.sf-summary__title {
  margin: 0 0 8px;
  color: var(--sf-navy);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sf-summary p,
.sf-summary li {
  color: var(--sf-ink);
  font-size: 16px;
  line-height: 1.6;
}

.sf-summary p {
  margin: 0;
}

.sf-summary__list {
  margin: 0;
  padding-left: 1.15em;
}

.sf-summary__list li {
  margin-bottom: 0.4em;
}

.sf-summary__list li:last-child {
  margin-bottom: 0;
}

.sf-toc {
  max-width: var(--sf-measure);
  margin: 0 0 32px;
  padding: 18px 22px 20px;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  background: var(--sf-surface);
}

.sf-toc__title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--sf-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  list-style: none;
  text-transform: uppercase;
}

/* The default disclosure triangle sits oddly against a letterspaced label, so
   it is replaced with a chevron that rotates when the list opens. */
.sf-toc__title::-webkit-details-marker {
  display: none;
}

.sf-toc__title::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  content: "";
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}

.sf-toc[open] .sf-toc__title::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.sf-toc[open] .sf-toc__list {
  margin-top: 12px;
}

.sf-toc__list {
  margin: 0;
  padding-left: 1.25em;
  counter-reset: none;
}

.sf-toc__list li {
  margin-bottom: 0.4em;
  color: var(--sf-muted);
  font-size: 15px;
  line-height: 1.5;
}

.sf-toc__list li:last-child {
  margin-bottom: 0;
}

.sf-toc__list a {
  color: var(--sf-body);
  text-decoration: none;
}

.sf-toc__list a:hover,
.sf-toc__list a.is-active {
  color: var(--sf-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------- FAQ blocks */

.sf-article-body h2[id*="question"] + p,
.sf-article-body h2[id*="faq"] + p {
  margin-bottom: 1.4em;
}

.sf-faq {
  max-width: var(--sf-measure);
  margin: 1.4em 0;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
}

.sf-faq > div {
  padding: 16px 20px;
  border-bottom: 1px solid var(--sf-line-soft);
}

.sf-faq > div:last-child {
  border-bottom: 0;
}

.sf-faq h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
}

.sf-faq p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------- callouts */

.sf-note,
.sf-warning {
  max-width: var(--sf-measure);
  margin: 1.6em 0;
  padding: 16px 20px;
  border-radius: var(--sf-radius);
  font-size: 16px;
  line-height: 1.6;
}

.sf-note {
  border-left: 4px solid var(--sf-accent);
  background: #f0faff;
}

.sf-warning {
  border-left: 4px solid #e8a33d;
  background: #fff8ec;
}

.sf-note p:last-child,
.sf-warning p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------- closing CTA */

.sf-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin: 46px 0 8px;
  padding: 28px 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sf-navy) 0%, #0d4aad 100%);
  color: #fff;
}

.sf-cta__body {
  flex: 1 1 320px;
}

.sf-cta__title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.sf-cta__text {
  max-width: 52ch;
  margin: 0;
  color: rgb(255 255 255 / 82%);
  font-size: 15.5px;
  line-height: 1.6;
}

.sf-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sf-btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sf-cta .sf-btn--primary {
  background: #fff;
  color: var(--sf-navy);
}

.sf-cta .sf-btn--primary:hover {
  background: #eaf3ff;
  color: var(--sf-navy-dark);
}

.sf-cta .sf-btn--ghost {
  border-color: rgb(255 255 255 / 55%);
  color: #fff;
}

.sf-cta .sf-btn--ghost:hover {
  background: rgb(255 255 255 / 12%);
  color: #fff;
}

/* --------------------------------------------------- prev/next and related */

.wd-page-nav.wd-design-1 {
  margin: 40px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--sf-line);
}

.wd-page-nav .wd-label {
  color: var(--sf-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wd-page-nav .wd-entities-title {
  color: var(--sf-ink);
  font-size: 15px;
  font-weight: 600;
}

.related-posts-slider {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--sf-line);
}

.related-posts-slider .title-wrapper .wd-title-text,
.related-posts-slider .wd-title-text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.wd-single-footer {
  margin-top: 34px;
}

/* ---------------------------------------------------------------- sidebar */

.wd-sidebar .widget-title {
  margin-bottom: 12px;
  color: var(--sf-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wd-sidebar .sidebar-widget {
  margin-bottom: 30px;
  padding-bottom: 0;
  border-bottom: 0;
}

.sf-topics {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-topics__item a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--sf-line-soft);
  color: var(--sf-body);
  font-size: 14.5px;
  text-decoration: none;
}

.sf-topics__item a:hover,
.sf-topics__item.is-current a {
  color: var(--sf-navy);
}

.sf-topics__item em {
  color: var(--sf-muted);
  font-size: 12px;
  font-style: normal;
}

.sf-recent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-recent__item {
  margin-bottom: 14px;
}

.sf-recent__link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
}

.sf-recent__thumb {
  flex: 0 0 62px;
  overflow: hidden;
  width: 62px;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
}

.sf-recent__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-recent__title {
  display: block;
  color: var(--sf-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.sf-recent__link:hover .sf-recent__title {
  color: var(--sf-navy);
}

.sf-recent__date {
  display: block;
  margin-top: 4px;
  color: var(--sf-muted);
  font-size: 12px;
}

.sf-sidecta {
  padding: 22px 20px;
  border-radius: var(--sf-radius);
  background: linear-gradient(160deg, var(--sf-navy) 0%, #0d4aad 100%);
  color: #fff;
}

.sf-sidecta__kicker {
  margin: 0 0 6px;
  color: rgb(255 255 255 / 70%);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sf-sidecta__title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.sf-sidecta__text {
  margin: 0 0 16px;
  color: rgb(255 255 255 / 80%);
  font-size: 14px;
  line-height: 1.55;
}

.sf-sidecta .sf-btn {
  display: block;
  margin-bottom: 8px;
  padding: 10px 16px;
  font-size: 14px;
}

.sf-sidecta .sf-btn--primary {
  background: #fff;
  color: var(--sf-navy);
}

.sf-sidecta .sf-btn--ghost {
  border-color: rgb(255 255 255 / 55%);
  color: #fff;
}

.sf-sidecta .sf-btn:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------- reading progress */

.sf-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.sf-progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sf-navy), var(--sf-accent));
  transition: width 0.1s linear;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 1024px) {
  :root {
    --sf-measure: 100%;
  }
}

@media (max-width: 768px) {
  .wd-entry-content {
    font-size: 16.5px;
  }

  .sf-cta {
    padding: 24px 20px;
  }

  .sf-cta__actions {
    width: 100%;
  }

  .sf-cta__actions .sf-btn {
    flex: 1 1 100%;
  }

  .sf-summary,
  .sf-toc {
    padding: 16px 18px;
  }

  .post-single-page .wd-post-title,
  .post-single-page h1.wd-entities-title {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .sf-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .sf-pills__item {
    flex: 0 0 auto;
  }
}
