/*
Theme Name: BW Editorial Theme
Theme URI: https://backlinkswinkel.nl
Author: BacklinksWinkel
Author URI: https://backlinkswinkel.nl
Description: High-fidelity editorial block theme voor BacklinksWinkel site-ops template packs.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
Version: 1.0.7
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bw-editorial-theme
*/

:root {
  --bw-bg: #F8ECEF;
  --bw-surface: #FFFFFF;
  --bw-border: #EBCFD7;
  --bw-border-strong: #742636;
  --bw-text: #1F2937;
  --bw-muted: #6B7280;
  --bw-primary: #5A1F28;
  --bw-link: #9E2F45;
  --bw-link-hover: #7A2435;
  --bw-accent: #9E2F45;
  --bw-max: 100%;
  --bw-inner-max: 1240px;
  --bw-sidebar-max: 318px;
  --bw-content-gutter: 42px;
}

body {
  margin: 0;
  background:
    radial-gradient(140% 70% at 0% 0%, #eef5ee 0%, rgba(238, 245, 238, 0) 56%),
    linear-gradient(180deg, #f8fbf8 0%, #f1f6f2 100%);
  color: var(--bw-text);
  font-family: "Source Sans 3", "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

a {
  color: var(--bw-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: var(--bw-link-hover);
}

.wp-site-blocks {
  min-height: 100vh;
}

.wp-site-blocks > * {
  margin-block-start: 0 !important;
}

.bw-shell {
  width: 100%;
  max-width: var(--bw-max);
  margin: 0;
  padding: 0 0 44px;
}

.bw-main-wrap {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.bw-header-wrap {
  width: min(var(--bw-inner-max), calc(100% - 48px));
  margin: 0 auto;
  background: transparent;
  border-bottom: 1px solid #e3e6ea;
  padding: 22px 0 14px;
  margin-bottom: 16px;
}

.site-header-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-branding {
  min-width: 230px;
  max-width: 330px;
}

.site-branding .site-title {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-branding .site-title a {
  color: var(--bw-primary);
  text-decoration: none;
}

.site-branding .site-description {
  margin: 2px 0 0;
  color: var(--bw-muted);
  font-size: 0.84rem;
  line-height: 1.36;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--bw-border);
  background: #fff;
  color: var(--bw-primary);
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 11px;
  border-radius: 2px;
  cursor: pointer;
}

.site-header-menu {
  margin-left: auto;
  width: 100%;
}

.main-navigation {
  width: 100%;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation .primary-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.main-navigation .menu-item {
  margin: 0;
  position: relative;
}

.main-navigation a {
  color: var(--bw-primary);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--bw-link-hover);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.main-navigation .sub-menu {
  background: #fff;
  border: 1px solid var(--bw-border);
  box-shadow: 0 8px 20px rgba(20, 32, 46, 0.14);
  min-width: 230px;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 80;
  display: none;
  padding: 6px 0;
}

.main-navigation .sub-menu .menu-item {
  padding: 0;
}

.main-navigation .sub-menu a {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 7px 13px;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu,
.main-navigation .menu-item-has-children.toggled-on > .sub-menu {
  display: block;
}

.main-navigation .dropdown-toggle {
  display: none;
  margin-left: 4px;
  border: 0;
  background: transparent;
  color: var(--bw-primary);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.main-navigation .dropdown-toggle::after {
  content: "▾";
  font-size: 0.66rem;
  display: inline-block;
  margin-top: 1px;
}

.main-navigation .menu-item-has-children.toggled-on > .dropdown-toggle::after {
  transform: rotate(180deg);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}


.bw-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(276px, var(--bw-sidebar-max));
  column-gap: var(--bw-content-gutter);
  align-items: start;
  margin-top: 22px;
  width: min(var(--bw-inner-max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.bw-content-full {
  grid-template-columns: minmax(0, 1fr);
}

.bw-content-full > aside,
.bw-content-full .bw-secondary {
  display: none !important;
}

.bw-layout > * {
  margin-block-start: 0 !important;
}

.bw-main {
  min-width: 0;
  max-width: 100%;
}

.bw-primary {
  grid-column: 1;
}

.bw-secondary,
.bw-layout > aside {
  grid-column: 2;
  min-width: 0;
}

.bw-main .entry-content > :first-child {
  margin-top: 0;
}

.bw-main .entry-content > :last-child {
  margin-bottom: 0;
}

.bw-main .wp-block-post-title,
.bw-main .wp-block-query-title,
.bw-main h1,
.bw-main h2,
.bw-main h3,
.bw-main h4 {
  font-family: "Merriweather", Georgia, serif;
  color: #1a1c1f;
  font-weight: 700;
  letter-spacing: -0.008em;
}

.bw-main .wp-block-post-title,
.bw-main h1 {
  font-size: clamp(2.05rem, 3.4vw, 3.1rem);
  line-height: 1.2;
  margin: 0 0 0.95rem;
}

.bw-main h2 {
  font-size: clamp(1.32rem, 2vw, 1.72rem);
  line-height: 1.28;
  margin: 2.05rem 0 0.82rem;
}

.bw-main h3 {
  font-size: clamp(1.12rem, 1.65vw, 1.34rem);
  line-height: 1.33;
  margin: 1.75rem 0 0.72rem;
}

.bw-main p,
.bw-main ul,
.bw-main ol {
  margin: 0 0 1.08rem;
}

.bw-main ul,
.bw-main ol {
  padding-left: 1.2rem;
}

.bw-main .wp-block-list li {
  margin-bottom: 0.28rem;
}

.bw-main .wp-block-button__link {
  background: var(--bw-accent);
  color: #fff !important;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(11, 23, 39, 0.14);
  border: 0;
  padding: 11px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.bw-main .wp-block-button__link:hover,
.bw-main .wp-block-button__link:focus {
  background: #da4b2d;
  color: #fff !important;
}

.bw-section-wrapper {
  margin-bottom: 1.35rem;
}

.bw-main .entry-content .bw-corp-hero {
  position: relative;
  margin: 0 0 2rem;
  padding: 2rem 2.2rem 2.1rem;
  border: 1px solid #d6e2d8;
  border-radius: 10px;
  background:
    radial-gradient(90% 130% at 0% 0%, rgba(45, 122, 67, 0.12) 0%, rgba(45, 122, 67, 0) 62%),
    linear-gradient(180deg, #f6fbf7 0%, #ffffff 100%);
}

.bw-main .entry-content .bw-corp-hero .bw-hero-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--bw-muted);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bw-main .entry-content .bw-corp-hero h1 {
  max-width: 920px;
  margin-bottom: 0.8rem;
}

.bw-main .entry-content .bw-corp-hero .bw-hero-media {
  margin: 0.9rem 0 1rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cfe0d1;
}

.bw-main .entry-content .bw-corp-hero .bw-hero-media img {
  width: 100%;
  height: clamp(220px, 36vw, 400px);
  object-fit: cover;
  display: block;
}

.bw-main .entry-content .bw-corp-hero .bw-hero-lead {
  max-width: 880px;
  font-size: 1.06rem;
  color: #233428;
}

.bw-main .entry-content .bw-corp-hero .bw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.05rem 0 0.95rem;
}

.bw-main .entry-content .bw-corp-hero .bw-btn {
  display: inline-block;
  position: relative;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 14px 10px 38px;
}

.bw-main .entry-content .bw-corp-hero .bw-btn::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-image: url("./assets/icons/ui-book.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bw-main .entry-content .bw-corp-hero .bw-btn-ghost::before {
  background-image: url("./assets/icons/ui-mail.svg");
}

.bw-main .entry-content .bw-corp-hero .bw-btn-primary {
  background: var(--bw-primary);
  color: #fff;
}

.bw-main .entry-content .bw-corp-hero .bw-btn-primary:hover,
.bw-main .entry-content .bw-corp-hero .bw-btn-primary:focus {
  color: #fff;
  background: #123421;
}

.bw-main .entry-content .bw-corp-hero .bw-btn-ghost {
  background: #fff;
  border-color: #bfd1c3;
  color: var(--bw-primary);
}

.bw-main .entry-content .bw-corp-hero .bw-btn-ghost:hover,
.bw-main .entry-content .bw-corp-hero .bw-btn-ghost:focus {
  color: var(--bw-primary);
  border-color: #9fb8a5;
}

.bw-main .entry-content .bw-trust-list {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.bw-main .entry-content .bw-trust-list li {
  position: relative;
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.45;
  color: #2d4034;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d9e5dc;
  border-radius: 4px;
  padding: 8px 10px 8px 34px;
}

.bw-main .entry-content .bw-trust-list li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-image: url("./assets/icons/ui-shield.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bw-main .entry-content .bw-lead {
  font-size: 1.05rem;
  color: #233428;
}

.bw-main .entry-content .bw-content-sections {
  margin-top: 1.2rem;
}

.bw-main .entry-content .bw-content-sections h2 {
  margin-top: 1.8rem;
}

.bw-main .entry-content .bw-checklist {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bw-main .entry-content .bw-checklist li {
  position: relative;
  margin: 0;
  padding: 10px 12px 10px 36px;
  border: 1px solid #d8e3da;
  border-radius: 6px;
  background: #fff;
}

.bw-main .entry-content .bw-checklist li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-image: url("./assets/icons/ui-shield.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bw-main .entry-content .bw-checklist-danger li {
  border-color: #e7c6c6;
  background: #fff9f9;
}

.bw-main .entry-content .bw-faq-list h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
}

.bw-main .entry-content .bw-faq-list p {
  margin-bottom: 0.95rem;
}

.bw-main .entry-content .bw-source-list {
  margin: 0;
  padding-left: 1rem;
}

.bw-main .entry-content .bw-source-list li {
  margin-bottom: 0.42rem;
}

.bw-main .entry-content .bw-note {
  margin-top: 1rem;
  border: 1px solid #d8e1d8;
  border-left: 4px solid var(--bw-accent);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fafdfb;
  color: #2c4032;
}

.bw-main .entry-content .bw-section-head {
  margin: 0 0 1.65rem;
}

.bw-main .entry-content .bw-section-head h2 {
  margin: 0 0 0.5rem;
}

.bw-main .entry-content .bw-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bw-main .entry-content .bw-topic-grid li {
  margin: 0;
}

.bw-main .entry-content .bw-topic-card {
  height: 100%;
  padding: 14px 14px 12px;
  border: 1px solid #d7e2d9;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bw-main .entry-content .bw-topic-card:hover,
.bw-main .entry-content .bw-topic-card:focus {
  border-color: #afc5b5;
  box-shadow: 0 8px 16px rgba(16, 34, 21, 0.08);
}

.bw-main .entry-content .bw-topic-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
  line-height: 1.28;
}

.bw-main .entry-content .bw-topic-card h3 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bw-primary);
  text-decoration: none;
}

.bw-main .entry-content .bw-topic-card h3 a::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background-image: url("./assets/icons/ui-book.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bw-main .entry-content .bw-topic-card h3 a:hover,
.bw-main .entry-content .bw-topic-card h3 a:focus {
  color: var(--bw-link-hover);
  text-decoration: underline;
}

.bw-main .entry-content .bw-topic-card p {
  margin: 0;
  font-size: 0.91rem;
  color: #374e3f;
}

.bw-main .entry-content .bw-topic-hero {
  margin: 0 0 1rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cfe0d1;
}

.bw-main .entry-content .bw-topic-hero img {
  width: 100%;
  height: clamp(200px, 34vw, 360px);
  object-fit: cover;
  display: block;
}

.bw-section-hero {
  margin-bottom: 1.7rem;
  padding: 1rem 1rem 1.25rem;
  border: 1px solid #dfe4ea;
  border-radius: 4px;
  background: linear-gradient(180deg, #f7faff 0%, #fff 70%);
}

.bw-hero-image {
  margin: 0 0 1.2rem;
}

.bw-hero-image img {
  width: 100%;
  height: clamp(180px, 34vw, 320px);
  object-fit: cover;
  display: block;
  border: 1px solid var(--bw-border);
}

.bw-section-hero > h2,
.bw-section-hero > .wp-block-heading {
  margin-top: 0 !important;
  margin-bottom: 0.72rem;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
}

.bw-sidebar {
  min-width: 0;
  width: 100%;
}

.bw-widget,
.bw-sidebar > .wp-block-group > .wp-block-group {
  border-top: 4px solid var(--bw-border-strong);
  padding-top: 0.92rem;
  margin-bottom: 1.75rem;
  background: transparent;
}

.bw-widget-title,
.bw-sidebar h2,
.bw-sidebar h3 {
  margin: 0 0 0.95rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bw-sidebar p,
.bw-sidebar li,
.bw-sidebar a {
  font-size: 0.88rem;
  line-height: 1.54;
}

.bw-sidebar .wp-block-button__link {
  color: #fff !important;
}

.bw-sidebar ul,
.bw-sidebar ol,
.bw-sidebar .wp-block-latest-posts__list,
.bw-sidebar .wp-block-categories-list {
  margin: 0;
  padding-left: 1rem;
}

.bw-sidebar .wp-block-latest-posts__post-date {
  display: block;
  margin-top: 1px;
  color: var(--bw-muted);
  font-size: 0.75rem;
}

.bw-widget-image {
  margin: 0;
}

.bw-widget-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--bw-border);
}

.bw-main .bw-post-card {
  border-bottom: 1px solid #e5e9ef;
  padding-bottom: 1.08rem;
  margin-bottom: 1.08rem;
}

.bw-main .bw-post-card:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bw-main .bw-post-card .wp-block-post-title {
  font-size: 1.36rem;
  margin-bottom: 0.45rem;
}

.bw-footer-wrap {
  width: min(var(--bw-inner-max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid #dfe3e8;
  margin-top: 2.2rem;
  padding-top: 1.45rem;
}

.bw-footer-wrap .wp-block-columns {
  gap: 18px;
  align-items: flex-start;
}

.bw-footer-wrap .wp-block-site-title {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.2rem;
}

.bw-footer-wrap .wp-block-site-tagline {
  margin: 4px 0 0;
  color: var(--bw-muted);
  font-size: 0.84rem;
}

.bw-footer-wrap ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bw-footer-wrap li {
  margin-bottom: 0.28rem;
  font-size: 0.86rem;
}

.bw-brand-footnote {
  margin: 1.25rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #eceff2;
  text-align: center;
  color: var(--bw-muted);
  font-size: 0.75rem;
}

@media (max-width: 1000px) {
  .bw-layout {
    grid-template-columns: minmax(0, 1fr) minmax(245px, 300px);
    column-gap: 22px;
  }

  .site-header-main {
    gap: 12px;
  }

  .main-navigation .primary-menu {
    gap: 6px 10px;
  }
}

@media (max-width: 860px) {
  .bw-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .bw-primary,
  .bw-secondary,
  .bw-layout > aside {
    grid-column: 1;
  }

  .site-header-main {
    display: block;
    align-items: initial;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
  }

  .site-header-menu {
    display: none;
    margin-top: 10px;
  }

  .site-header-menu.toggled-on {
    display: block;
  }

  .main-navigation .primary-menu {
    display: block;
    border-top: 1px solid #eceff3;
    padding-top: 6px;
  }

  .main-navigation .primary-menu > .menu-item {
    border-bottom: 1px solid #f0f2f4;
    padding: 4px 0;
  }

  .main-navigation .menu-item-has-children > a {
    padding-right: 34px;
  }

  .main-navigation .dropdown-toggle {
    display: inline-flex;
    position: absolute;
    right: 0;
    top: 6px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
  }

  .main-navigation .sub-menu {
    border: 0;
    box-shadow: none;
    position: static;
    min-width: 0;
    padding: 2px 0 8px 14px;
    margin-top: 2px;
    background: transparent;
  }

  .main-navigation .sub-menu a {
    padding: 5px 0;
    font-size: 0.83rem;
  }

  .main-navigation .menu-item-has-children:hover > .sub-menu,
  .main-navigation .menu-item-has-children:focus-within > .sub-menu {
    display: none;
  }

  .main-navigation .menu-item-has-children.toggled-on > .sub-menu {
    display: block;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .bw-shell {
    padding: 0 0 24px;
  }

  .bw-header-wrap,
  .bw-layout,
  .bw-footer-wrap {
    width: calc(100% - 24px);
  }

  .bw-main .entry-content .bw-corp-hero {
    padding: 1.35rem 1.1rem 1.3rem;
  }

  .bw-header-wrap {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .bw-footer-wrap .wp-block-columns {
    display: grid;
    gap: 14px;
  }
}
