/*
Theme Name: Desk Setup Scout
Theme URI: https://desksetupscout.com/
Description: Lightweight Blocksy child theme for Desk Setup Scout.
Author: Desk Setup Scout
Template: blocksy
Version: 1.0.15
Text Domain: desksetup-scout
*/

:root {
  --dss-ink: #172033;
  --dss-muted: #5c667a;
  --dss-line: #e5e9ef;
  --dss-paper: #ffffff;
  --dss-soft: #f5f7fa;
  --dss-accent: #2563eb;
  --dss-accent-dark: #1d4ed8;
}

body {
  background: var(--dss-soft);
  color: var(--dss-ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ct-container,
.ct-container-fluid {
  max-width: 1180px;
}

[data-header*="type-1"] .ct-header [data-row*="middle"] {
  --height: 74px !important;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--dss-line);
  min-height: 74px;
}

[data-header*="type-1"] {
  --header-height: 74px !important;
}

.site-title,
.site-title a {
  color: var(--dss-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

[data-id="menu"] > ul > li > a {
  color: var(--dss-ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  padding-inline: 12px;
}

[data-id="menu"] > ul > li > a:hover,
[data-id="menu"] > ul > li.current-menu-item > a,
[data-id="menu"] > ul > li.current-menu-ancestor > a {
  color: var(--dss-accent);
}

[data-id="menu"] .sub-menu {
  border: 1px solid var(--dss-line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.11);
}

[data-id="trigger"] {
  color: var(--dss-ink);
}

[data-id="trigger"] .ct-icon,
[data-id="trigger"] svg {
  fill: currentColor;
}

.site-main,
#main {
  padding-top: 28px;
  padding-bottom: 42px;
}

.home .hero-section {
  display: none;
}

.dss-home-cover {
  border-radius: 0;
  margin-bottom: 26px;
  min-height: 380px;
  overflow: hidden;
}

.dss-home-cover .wp-block-cover__inner-container {
  box-sizing: border-box;
  max-width: 980px;
  width: 100%;
}

.dss-home-cover h1 {
  color: #ffffff;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  max-width: 760px;
}

.dss-home-cover p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.65;
  max-width: 640px;
}

.dss-home-section {
  margin-block: 30px;
}

.dss-section-heading {
  align-items: end;
  border-bottom: 1px solid var(--dss-line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.dss-section-heading h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.dss-section-heading p {
  color: var(--dss-muted);
  margin: 0;
  overflow-wrap: break-word;
}

.dss-category-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dss-category-grid a {
  background: var(--dss-paper);
  border: 1px solid var(--dss-line);
  border-radius: 8px;
  color: var(--dss-ink);
  display: block;
  font-weight: 700;
  min-height: 74px;
  padding: 18px;
  text-decoration: none;
}

.dss-category-grid a span {
  color: var(--dss-muted);
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

.dss-category-grid a:hover {
  border-color: #b9c8f8;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.09);
  color: var(--dss-accent);
}

.wp-block-latest-posts.is-grid,
.dss-latest-guides {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding-left: 0;
}

.wp-block-latest-posts.is-grid li,
.dss-latest-guides li {
  background: var(--dss-paper);
  border: 1px solid var(--dss-line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.06);
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
  width: auto !important;
}

.wp-block-latest-posts__featured-image {
  margin: 0;
}

.wp-block-latest-posts__featured-image img {
  aspect-ratio: 16 / 9;
  display: block;
  height: clamp(170px, 15vw, 210px);
  object-fit: cover;
  width: 100%;
}

.wp-block-latest-posts.is-grid a,
.dss-latest-guides a {
  color: var(--dss-ink);
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  padding: 16px 18px 6px;
  text-decoration: none;
}

.wp-block-latest-posts.is-grid a:hover,
.dss-latest-guides a:hover {
  color: var(--dss-accent);
}

.wp-block-latest-posts__post-date,
.wp-block-latest-posts__post-excerpt {
  color: var(--dss-muted);
  display: block;
  font-size: 14px;
  line-height: 1.55;
  padding-inline: 18px;
}

.wp-block-latest-posts__post-excerpt {
  padding-bottom: 18px;
}

.entries .entry-card,
.blog .entry-card,
.archive .entry-card,
.search .entry-card {
  background: var(--dss-paper);
  border: 1px solid var(--dss-line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.06);
  overflow: hidden;
}

.entry-card .ct-image-container img,
.post .ct-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-card .entry-title {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.entry-card .entry-excerpt,
.entry-card .entry-meta {
  color: var(--dss-muted);
}

.single-post article,
.single-post .site-main > article,
.page .site-main > article {
  background: var(--dss-paper);
  border: 1px solid var(--dss-line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.05);
  overflow: hidden;
}

.single-post .entry-content,
.page .entry-content {
  font-size: 18px;
  line-height: 1.75;
}

.single-post .entry-content > .dss-article-layout {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 760px) 300px;
  margin-left: 50% !important;
  max-width: min(1120px, calc(100vw - 48px)) !important;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 48px));
}

.dss-article-main {
  min-width: 0;
}

.dss-article-main > * {
  max-width: 100%;
}

.dss-post-featured {
  margin: 0 0 28px;
}

.dss-post-featured img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.single-post .entry-content h2,
.page .entry-content h2 {
  font-size: 28px;
  line-height: 1.25;
  margin-top: 34px;
}

.single-post .entry-content table {
  font-size: 15px;
}

.dss-article-sidebar {
  align-self: start;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.dss-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--dss-line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
  padding: 18px;
}

.dss-sidebar-card h2 {
  color: var(--dss-ink);
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 12px;
}

.dss-sidebar-toc,
.dss-sidebar-links {
  display: grid;
  gap: 10px;
}

.dss-sidebar-toc a,
.dss-sidebar-links a,
.dss-sidebar-note a {
  color: var(--dss-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.dss-sidebar-toc a:hover,
.dss-sidebar-links a:hover,
.dss-sidebar-note a:hover {
  color: var(--dss-accent);
}

.dss-sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dss-sidebar-note {
  background: #f8fafc;
}

.dss-sidebar-note p {
  color: var(--dss-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 12px;
}

.ct-footer {
  border-top: 1px solid var(--dss-line);
}

.dss-legal-footer {
  background: #ffffff;
  border-top: 1px solid var(--dss-line);
  color: var(--dss-muted);
  font-size: 14px;
  padding: 20px 24px;
}

.dss-legal-footer__inner {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
}

.dss-legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.dss-legal-footer a {
  color: var(--dss-muted);
  font-weight: 650;
  text-decoration: none;
}

.dss-legal-footer a:hover {
  color: var(--dss-accent);
}

.dss-mobile-menu-shell {
  display: none;
}

@media (max-width: 999px) {
  .dss-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wp-block-latest-posts.is-grid,
  .dss-latest-guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dss-home-cover h1 {
    font-size: 38px;
  }

  .single-post .entry-content > .dss-article-layout {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(720px, calc(100vw - 48px)) !important;
    transform: none;
    width: min(720px, calc(100vw - 48px)) !important;
  }

  .dss-article-sidebar {
    display: none;
  }
}

@media (max-width: 689px) {
  .single-post {
    --theme-container-edge-spacing: 24px !important;
    --theme-narrow-container-max-width: calc(100vw - 48px) !important;
    --theme-normal-container-max-width: calc(100vw - 48px) !important;
  }

  .single-post .ct-container-full[data-content] {
    box-sizing: border-box;
    max-width: 100vw !important;
    width: 100vw !important;
  }

  [data-header*="type-1"] .ct-header [data-row*="middle"] {
    --height: 64px !important;
    min-height: 64px;
  }

  [data-header*="type-1"] {
    --header-height: 64px !important;
  }

  header.ct-header > [data-device="desktop"] {
    display: none !important;
  }

  header.ct-header > [data-device="mobile"] {
    display: block !important;
  }

  [data-device="mobile"] .ct-container {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
  }

  [data-device="mobile"] [data-column="end"] {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 48px;
    position: relative;
  }

  [data-id="trigger"] {
    align-items: center;
    color: var(--dss-ink) !important;
    display: flex !important;
    height: 42px;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    width: 42px;
  }

  .dss-mobile-menu-shell {
    display: block;
    position: fixed;
    right: 24px;
    top: 18px;
    z-index: 99999;
  }

  .dss-mobile-menu-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--dss-line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(23, 32, 51, 0.12);
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
  }

  .dss-mobile-menu-toggle span:not(.screen-reader-text) {
    background: var(--dss-ink);
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 18px;
  }

  .dss-mobile-menu-panel {
    background: #ffffff;
    border: 1px solid var(--dss-line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(23, 32, 51, 0.18);
    display: none;
    margin-top: 10px;
    min-width: 220px;
    overflow: hidden;
  }

  .dss-mobile-menu-shell.is-open .dss-mobile-menu-panel {
    display: block;
  }

  .dss-mobile-menu-panel a {
    color: var(--dss-ink);
    display: block;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 14px;
    text-decoration: none;
  }

  .dss-mobile-menu-panel a + a {
    border-top: 1px solid var(--dss-line);
  }

  .dss-mobile-menu-panel a:hover {
    color: var(--dss-accent);
  }

  .site-title,
  .site-title a {
    font-size: 22px;
  }

  .site-main,
  #main {
    padding-top: 18px;
  }

  .dss-home-cover {
    min-height: 330px;
  }

  .dss-home-cover .wp-block-cover__inner-container {
    max-width: calc(100vw - 60px);
    padding-inline: 0;
  }

  .dss-home-cover h1 {
    font-size: 26px;
    margin-inline: auto;
    max-width: 280px;
    overflow-wrap: break-word;
  }

  .dss-home-cover p {
    font-size: 16px;
    margin-inline: auto;
    max-width: 280px;
    overflow-wrap: break-word;
  }

  .dss-home-cover .wp-block-buttons {
    gap: 10px;
    justify-content: center;
    margin-inline: auto;
    max-width: 260px;
  }

  .dss-home-cover .wp-block-button__link {
    font-size: 14px;
    padding: 10px 16px;
  }

  .single-post .hero-section {
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: calc(100vw - 48px) !important;
    overflow-wrap: break-word;
    width: calc(100vw - 48px) !important;
  }

  .single-post .page-title {
    font-size: 30px;
    line-height: 1.22;
    overflow-wrap: break-word;
  }

  .single-post .entry-content {
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100vw !important;
    overflow-x: hidden;
    width: 100% !important;
  }

  .dss-article-main {
    overflow-wrap: break-word;
    width: 100% !important;
  }

  .dss-post-featured,
  .dss-post-featured img {
    max-width: 100% !important;
    width: 100% !important;
  }

  .wp-block-latest-posts.is-grid,
  .dss-latest-guides {
    grid-template-columns: 1fr;
  }

  .wp-block-latest-posts__featured-image img {
    height: 190px;
  }

  .dss-legal-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .dss-section-heading {
    align-items: start;
    display: block;
  }

  .dss-section-heading p {
    max-width: 300px;
  }

  .dss-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .single-post .hero-section,
  .single-post .entry-content > .dss-article-layout {
    max-width: min(342px, calc(100vw - 48px)) !important;
    width: min(342px, calc(100vw - 48px)) !important;
  }
}
