/*
 * xsozai gallery redesign
 * Inspired by the information architecture of professional stock libraries.
 * All brand assets and implementation are original to xsozai.
 */

:root {
  --xs-red: #D8FF3E;
  --xs-red-dark: #B8DD20;
  --xs-ink: #171B2B;
  --xs-muted: #69707a;
  --xs-line: #e5e7eb;
  --xs-soft: #f5f6f8;
  --xs-white: #fff;
  --xs-radius: 14px;
  --xs-shadow: 0 12px 32px rgba(18, 24, 40, .08);
}

body {
  color: var(--xs-ink);
  background: var(--xs-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
}

a { color: inherit; }
a:hover { color: var(--xs-red); }
#content.site-content { display: block !important; max-width: none; padding: 0; }
.content-area, .site-main { width: 100%; float: none; }
#secondary { display: none; }

.main-header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--xs-line);
  box-shadow: none;
}
.main-header-content {
  max-width: 1440px;
  min-height: 60px;
  margin: 0 auto;
  padding: 0 32px;
}
.site-branding img { max-height: 42px; width: auto; }
.main-navigation a {
  color: var(--xs-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.main-navigation a:hover { color: var(--xs-red); }
.header-search { margin-left: auto; }
.header-search .search-wrapper { width: min(32vw, 380px) !important; height: 42px !important; }
.header-search .search-field {
  border: 1px solid var(--xs-line) !important;
  border-radius: 999px !important;
  background: var(--xs-soft) !important;
  padding-left: 18px !important;
}
.header-search .search-field:focus {
  outline: 3px solid rgba(216,255,62,.24);
  border-color: var(--xs-red) !important;
}
.user-menu-container { margin-left: 12px; }

.xs-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}
.xs-section { padding: 64px 0; }
.xs-section--soft { background: var(--xs-soft); }
.xs-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.xs-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--xs-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.xs-section-title {
  margin: 0;
  color: var(--xs-ink);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -.03em;
}
.xs-section-copy {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--xs-muted);
  line-height: 1.8;
}
.xs-text-link {
  color: var(--xs-red);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.xs-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 15%, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(120deg, #111625 0%, #242B3E 58%, #3B455E 100%);
}
.xs-hero::after {
  content: "";
  position: absolute;
  right: -7vw;
  bottom: -18vw;
  width: 44vw;
  height: 44vw;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.xs-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 470px;
  display: grid;
  align-content: center;
  padding: 80px 0 72px;
}
.xs-hero-kicker {
  margin: 0 0 16px;
  color: #D8FF3E;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
}
.xs-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.xs-hero-copy {
  max-width: 720px;
  margin: 22px 0 34px;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.8;
}
.xs-search {
  display: grid;
  grid-template-columns: 180px minmax(0,1fr) 130px;
  max-width: 920px;
  padding: 7px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
}
.xs-search select,
.xs-search input {
  min-width: 0;
  height: 54px;
  margin: 0;
  padding: 0 18px;
  color: var(--xs-ink);
  background: #fff;
  border: 0;
  font-size: 16px;
}
.xs-search select {
  border-right: 1px solid var(--xs-line);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: calc(100% - 18px) 24px, calc(100% - 13px) 24px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.xs-search input:focus, .xs-search select:focus { outline: none; }
.xs-search button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--xs-red);
  font-weight: 800;
  cursor: pointer;
}
.xs-search button:hover { background: var(--xs-red-dark); }
.xs-hot-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}
.xs-hot-terms a {
  padding: 7px 13px;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}
.xs-hot-terms a:hover { color: #fff; background: rgba(255,255,255,.12); }

.xs-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.xs-category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  padding: 24px;
  border: 1px solid var(--xs-line);
  border-radius: var(--xs-radius);
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.xs-category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(151,177,0,.55);
  box-shadow: var(--xs-shadow);
}
.xs-category-name { display: block; font-size: 18px; font-weight: 800; }
.xs-category-count { display: block; margin-top: 5px; color: var(--xs-muted); font-size: 13px; }
.xs-category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--xs-red);
  background: #fff0f1;
  border-radius: 50%;
  font-size: 18px;
}

.xs-material-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 28px 18px;
}
.xs-card { min-width: 0; }
.xs-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background:
    linear-gradient(45deg, #f1f2f4 25%, transparent 25%),
    linear-gradient(-45deg, #f1f2f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1f2f4 75%),
    linear-gradient(-45deg, transparent 75%, #f1f2f4 75%),
    #fff;
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}
.xs-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.xs-card:hover .xs-card-media img { transform: scale(1.045); }
.xs-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #a4a9b1;
  font-weight: 700;
}
.xs-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: #fff;
  background: rgba(20,22,26,.78);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}
.xs-card-body { padding: 14px 2px 0; }
.xs-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--xs-muted);
  font-size: 13px;
}
.xs-card-category { color: var(--xs-red); font-weight: 700; }
.xs-card-title {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.5;
}
.xs-card-title a { text-decoration: none; }
.xs-card-title a:hover { color: var(--xs-red); }

.xs-archive-hero {
  padding: 58px 0 34px;
  border-bottom: 1px solid var(--xs-line);
  background: linear-gradient(180deg, #fafafa, #fff);
}
.xs-breadcrumb {
  margin-bottom: 20px;
  color: var(--xs-muted);
  font-size: 13px;
}
.xs-breadcrumb a { text-decoration: none; }
.xs-archive-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -.04em;
}
.xs-archive-description {
  max-width: 820px;
  margin-top: 14px;
  color: var(--xs-muted);
  line-height: 1.8;
}
.xs-child-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.xs-chip {
  padding: 9px 15px;
  border: 1px solid var(--xs-line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.xs-chip:hover { color: #fff; border-color: var(--xs-red); background: var(--xs-red); }
.xs-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--xs-line);
}
.xs-results-count { color: var(--xs-muted); }
.xs-results-count strong { color: var(--xs-ink); font-size: 20px; }
.xs-sort {
  display: flex;
  gap: 8px;
}
.xs-sort a {
  padding: 9px 13px;
  border-radius: 7px;
  background: var(--xs-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.xs-sort a.is-active { color: #fff; background: var(--xs-ink); }

.xs-pagination { margin-top: 48px; }
.xs-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.xs-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--xs-line);
  border-radius: 7px;
  text-decoration: none;
}
.xs-pagination .current { color: #fff; border-color: var(--xs-red); background: var(--xs-red); }

.xs-detail { padding: 44px 0 72px; }
.xs-detail-header { max-width: 1000px; margin-bottom: 30px; }
.xs-detail-title {
  margin: 10px 0 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: -.035em;
}
.xs-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--xs-muted);
  font-size: 13px;
}
.xs-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .65fr);
  gap: 42px;
  align-items: start;
}
.xs-preview-panel {
  overflow: hidden;
  padding: clamp(18px, 3vw, 38px);
  border: 1px solid var(--xs-line);
  border-radius: var(--xs-radius);
  background: var(--xs-soft);
}
.xs-preview-panel img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.xs-preview-panel .entry-content { margin: 0; }
.xs-preview-panel .entry-content > *:first-child { margin-top: 0; }
.xs-info-panel {
  position: sticky;
  top: 100px;
  padding: 28px;
  border: 1px solid var(--xs-line);
  border-radius: var(--xs-radius);
  background: #fff;
  box-shadow: var(--xs-shadow);
}
.xs-info-panel h2 { margin: 0 0 18px; font-size: 22px; }
.xs-info-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.xs-info-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--xs-line);
  color: var(--xs-muted);
  font-size: 14px;
}
.xs-info-list strong { color: var(--xs-ink); text-align: right; }
.xs-primary-button {
  display: block;
  width: 100%;
  padding: 15px 18px;
  color: #fff !important;
  border-radius: 8px;
  background: var(--xs-red);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.xs-primary-button:hover { background: var(--xs-red-dark); }
.xs-license-note {
  margin: 14px 0 0;
  color: var(--xs-muted);
  font-size: 12px;
  line-height: 1.7;
}
.xs-related { padding: 58px 0; border-top: 1px solid var(--xs-line); }

.site-footer {
  margin-top: 0;
  color: rgba(255,255,255,.74);
  background: #15171b;
}
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.site-bottom { border-top-color: rgba(255,255,255,.1); background: transparent; }

@media (max-width: 1100px) {
  .xs-material-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .xs-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .main-header-content > .main-navigation { display: none; }
  .drawer-navigation .main-navigation { display: block !important; }
}

@media (max-width: 767px) {
  .main-header-content { min-height: 56px; padding: 0 16px; }
  .header-search { display: none !important; }
  .xs-shell { width: min(100% - 28px, 1440px); }
  .xs-section { padding: 44px 0; }
  .xs-hero-inner { min-height: 430px; padding: 58px 0 52px; }
  .xs-hero h1 { font-size: 38px; }
  .xs-hero-copy { font-size: 15px; }
  .xs-search { grid-template-columns: 1fr 86px; }
  .xs-search select { display: none; }
  .xs-search button { font-size: 14px; }
  .xs-category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .xs-category-card { min-height: 92px; padding: 16px; }
  .xs-category-name { font-size: 15px; }
  .xs-category-icon { display: none; }
  .xs-material-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 10px; }
  .xs-card-media { aspect-ratio: 1 / 1; border-radius: 7px; }
  .xs-card-meta { font-size: 12px; }
  .xs-card-title { font-size: 14px; }
  .xs-section-head, .xs-results-bar { align-items: flex-start; flex-direction: column; }
  .xs-detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .xs-info-panel { position: static; }
}

@media (max-width: 420px) {
  .xs-category-grid { grid-template-columns: 1fr; }
}


.xs-grid-ad {
  position: relative;
  grid-column: auto;
  align-self: stretch;
  min-width: 0;
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--xs-line) !important;
  border-radius: 10px;
  background: #fff;
}
.xs-grid-ad.card {
  display: flex;
  height: 100%;
  box-shadow: 0 8px 22px rgba(18, 24, 40, .06) !important;
}
.xs-grid-ad .xs-ad-label {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  color: #596170;
  border: 1px solid #DDE2EA;
  background: rgba(247, 248, 250, .94);
  font-size: 10px;
  font-weight: 700;
}
.xs-grid-ad .adsbox {
  display: grid;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 34px 8px 8px;
  place-items: center;
  box-sizing: border-box;
}
.xs-grid-ad .adsbygoogle {
  width: 100%;
  max-width: 100%;
}

/* Keep material cards and advertisement cells aligned in every listing. */
.xs-material-grid {
  align-items: stretch;
}
.xs-material-grid > .xs-card,
.xs-material-grid > .xs-grid-ad {
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}
.xs-material-grid > .xs-card {
  display: flex;
  flex-direction: column;
}
.xs-material-grid > .xs-card .xs-card-media {
  flex: 0 0 auto;
}
.xs-material-grid > .xs-card .xs-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.xs-material-grid > .xs-card .xs-card-title {
  min-height: 3em;
}
.xs-material-grid > .xs-grid-ad {
  min-height: 100%;
}
.xs-material-grid > .xs-grid-ad .adsbox {
  min-height: 0;
}

@media (max-width: 767px) {
  .xs-grid-ad {
    min-height: 250px;
    border-radius: 7px;
  }
}
.xs-search--results {
  grid-template-columns: minmax(0, 1fr) 130px;
  max-width: none;
  margin: 0 0 36px;
  border: 1px solid var(--xs-line);
  box-shadow: none;
}
.xs-search--results input { background: var(--xs-soft); }
.tags-links {
  width: min(1440px, calc(100% - 48px));
  margin: 28px auto 0;
}
.tags-links a {
  display: inline-block;
  margin: 0 7px 7px 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--xs-soft);
  font-size: 13px;
  text-decoration: none;
}


/* Amana-inspired neutral palette with an original xsozai lime accent. */
.xs-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.xs-brand img {
  display: block;
  width: auto;
  max-width: min(300px, 50vw);
  max-height: 48px;
}
a:hover,
.main-navigation a:hover,
.xs-eyebrow,
.xs-text-link,
.xs-card-category {
  color: #657500;
}
.xs-category-icon {
  color: #171B2B;
  background: #D8FF3E;
}
.xs-search button,
.xs-primary-button,
.xs-chip:hover,
.xs-pagination .current {
  color: #171B2B !important;
}
.xs-search button:hover,
.xs-primary-button:hover {
  color: #171B2B !important;
  background: #B8DD20;
}
.xs-chip:hover {
  border-color: #D8FF3E;
  background: #D8FF3E;
}
.xs-card-badge {
  color: #171B2B;
  background: #D8FF3E;
}
.main-header {
  border-bottom-color: #E3E7EE;
}


/* Compact material detail page */
.xs-detail--compact {
  padding: 28px 0 52px;
}
.xs-detail-shell {
  max-width: 1280px;
}
.xs-detail--compact .xs-breadcrumb {
  margin-bottom: 14px;
}
.xs-detail--compact .xs-detail-header {
  max-width: none;
  margin-bottom: 20px;
}
.xs-detail-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13px;
}
.xs-detail-id {
  padding-left: 12px;
  color: var(--xs-muted);
  border-left: 1px solid var(--xs-line);
}
.xs-detail--compact .xs-detail-title {
  max-width: 920px;
  margin: 4px 0 10px;
  font-size: clamp(28px, 3.2vw, 42px);
}
.xs-detail--compact .xs-detail-meta {
  gap: 16px;
  font-size: 12px;
}
.xs-detail--compact .xs-detail-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}
.xs-detail--compact .xs-preview-panel {
  padding: 0;
  border-radius: 12px;
  background: #F7F8FA;
}
.xs-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--xs-line);
  background: #fff;
}
.xs-panel-heading h2 {
  margin: 2px 0 0;
  font-size: 18px;
}
.xs-panel-label {
  display: block;
  color: #657500;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.xs-free-badge {
  padding: 6px 10px;
  color: #171B2B;
  background: #D8FF3E;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
}
.xs-material-content {
  padding: 24px;
}
.xs-material-content .entry-content {
  color: #343A46;
  font-size: 15px;
  line-height: 1.75;
}
.xs-material-content .entry-content p {
  margin: 0 0 16px;
}
.xs-material-content .entry-content img {
  border-radius: 8px;
}
.xs-detail--compact .xs-info-panel {
  top: 88px;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(18, 24, 40, .07);
}
.xs-detail--compact .xs-info-panel h2 {
  margin: 5px 0 8px;
  font-size: 22px;
  letter-spacing: -.02em;
}
.xs-info-lead {
  margin: 0 0 16px;
  color: var(--xs-muted);
  font-size: 13px;
  line-height: 1.65;
}
.xs-detail--compact .xs-primary-button {
  padding: 13px 16px;
  border-radius: 7px;
  font-size: 14px;
}
.xs-material-facts {
  margin: 18px 0;
  border-top: 1px solid var(--xs-line);
}
.xs-material-facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--xs-line);
  font-size: 13px;
}
.xs-material-facts dt {
  color: var(--xs-muted);
  font-weight: 500;
}
.xs-material-facts dd {
  margin: 0;
  color: var(--xs-ink);
  font-weight: 750;
  text-align: right;
}
.xs-license-box {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid #E0E5C7;
  border-radius: 8px;
  background: #FBFDEB;
}
.xs-license-box > i {
  margin-top: 2px;
  color: #657500;
}
.xs-license-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}
.xs-license-box p {
  margin: 0;
  color: var(--xs-muted);
  font-size: 11px;
  line-height: 1.55;
}
.xs-license-box a {
  display: inline-block;
  margin-top: 6px;
  color: #536200;
  font-size: 12px;
  font-weight: 750;
}
.xs-detail-tags {
  margin-top: 14px;
  font-size: 12px;
}
.xs-detail-tags > span {
  display: block;
  margin-bottom: 7px;
  color: var(--xs-muted);
}
.xs-detail-tags a {
  display: inline-block;
  margin: 0 5px 5px 0;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--xs-soft);
  text-decoration: none;
}

@media (max-width: 900px) {
  .xs-detail--compact .xs-detail-layout {
    grid-template-columns: 1fr;
  }
  .xs-detail--compact .xs-info-panel {
    position: static;
    order: -1;
  }
}

@media (max-width: 600px) {
  .xs-detail--compact {
    padding-top: 20px;
  }
  .xs-detail-kicker {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .xs-detail-id {
    padding-left: 0;
    border-left: 0;
  }
  .xs-detail--compact .xs-detail-title {
    font-size: 28px;
  }
  .xs-panel-heading,
  .xs-material-content,
  .xs-detail--compact .xs-info-panel {
    padding: 16px;
  }
}


/* Reliable mobile drawer navigation */
body.xs-drawer-active {
  overflow: hidden;
}
.drawer-opened .drawer-overlay {
  background: rgba(17, 22, 37, .46);
  backdrop-filter: blur(2px);
}
.drawer-navigation .main-navigation {
  width: 100%;
}
.drawer-navigation .main-navigation ul {
  width: 100%;
}
.drawer-navigation .main-navigation a {
  color: #171B2B;
  font-weight: 750;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .main-header-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
  }
  .xs-site-branding {
    min-width: 0;
    padding-right: 0;
  }
  .xs-brand {
    min-width: 0;
    max-width: 100%;
  }
  .xs-brand img {
    width: 200px;
    max-width: calc(100vw - 92px);
    height: auto;
  }
  .drawer-hamburger {
    align-self: center;
    margin: 0;
    padding: 14px 8px;
    border: 0;
  }
  .drawer-navigation {
    width: min(88vw, 360px);
  }
  .drawer-navigation-content {
    padding: 74px 22px 36px;
  }
  .drawer-navigation ul {
    margin: 0;
  }
  .drawer-navigation ul li {
    padding: 0;
    border-bottom: 1px solid #E7EAF0;
  }
  .drawer-navigation a {
    display: block;
    padding: 15px 2px;
    font-size: 16px;
  }
  .drawer-navigation .dropdown-toggle {
    top: 8px;
    right: 0;
  }
  .drawer-navigation .sub-menu {
    padding: 0 0 8px 14px;
  }
  .drawer-navigation .sub-menu a {
    padding: 11px 2px;
    color: #596170;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .xs-brand img {
    width: 174px;
    max-width: calc(100vw - 78px);
  }
}


/* Use more of the mobile screen on material detail pages. */
@media (max-width: 600px) {
  .xs-detail-shell {
    width: calc(100% - 20px);
  }
  .xs-detail--compact .xs-breadcrumb,
  .xs-detail--compact .xs-detail-header {
    margin-left: 2px;
    margin-right: 2px;
  }
  .xs-detail--compact .xs-preview-panel,
  .xs-detail--compact .xs-info-panel {
    border-radius: 10px;
  }
  .xs-detail--compact .xs-panel-heading,
  .xs-detail--compact .xs-material-content,
  .xs-detail--compact .xs-info-panel {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 380px) {
  .xs-detail-shell {
    width: calc(100% - 16px);
  }
}


/* Task-led primary navigation */
.xs-primary-navigation {
  flex: 1 1 auto;
  min-width: 0;
}
.xs-primary-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xs-primary-menu > .menu-item {
  position: relative;
}
.xs-primary-menu > .menu-item > a {
  display: block;
  padding: 13px 12px;
  color: #252A35;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.xs-primary-menu > .menu-item > a:hover,
.xs-primary-menu > .current-menu-item > a,
.xs-primary-menu > .current-menu-ancestor > a {
  color: #171B2B;
  background: #EFF7C7;
}
.xs-primary-menu .sub-menu {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 4px);
  left: 50%;
  display: none;
  width: 260px;
  margin: 0;
  padding: 9px;
  list-style: none;
  background: #fff;
  border: 1px solid #E3E7EE;
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(18, 24, 40, .13);
  transform: translateX(-50%);
}
.xs-primary-menu .menu-item-has-children:hover > .sub-menu,
.xs-primary-menu .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}
.xs-primary-menu .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  color: #343A46;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.xs-primary-menu .sub-menu a:hover {
  color: #171B2B;
  background: #F4F7E7;
}
.xs-nav-count {
  color: #7A8290;
  font-size: 12px;
  font-weight: 600;
}
.xs-nav-search {
  display: none;
}

/* Keep Download Monitor useful while removing its oversized placeholder tile. */
.xs-material-content .dlm-download-box {
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid #E3E7EE;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 24, 40, .06);
}
.xs-material-content .dlm-download-box > img.wp-post-image[src*="/download-monitor/assets/images/placeholder"] {
  display: none !important;
}
.xs-material-content .dlm-download-box-content {
  order: 1;
}
.xs-material-content .dlm-download-box-content h1 {
  margin: 0 0 10px;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.25;
}
.xs-material-content .dlm-download-count {
  position: static !important;
  order: 2;
  align-self: flex-start;
  float: none !important;
  margin: 0;
  padding: 5px 9px;
  color: #596170;
  border: 1px solid #E3E7EE;
  border-radius: 999px;
  background: #F7F8FA;
  font-size: 12px;
  line-height: 1.2;
  box-shadow: none;
}
.xs-material-content .dlm-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.xs-material-content .dlm-download-link small {
  display: inline;
}

@media (max-width: 1100px) {
  .drawer-navigation .xs-primary-navigation {
    display: block !important;
  }
  .drawer-navigation .xs-nav-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    margin: 0 0 18px;
    border: 1px solid #DDE2EA;
    border-radius: 9px;
    background: #F7F8FA;
    overflow: hidden;
  }
  .drawer-navigation .xs-nav-search input {
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 13px;
    border: 0;
    background: transparent;
    font-size: 16px;
  }
  .drawer-navigation .xs-nav-search button {
    border: 0;
    color: #171B2B;
    background: #D8FF3E;
  }
  .drawer-navigation .xs-primary-menu {
    display: block;
  }
  .drawer-navigation .xs-primary-menu > .menu-item > a {
    padding: 15px 2px;
    border-radius: 0;
    font-size: 16px;
  }
  .drawer-navigation .xs-primary-menu .sub-menu {
    position: static;
    display: none;
    width: auto;
    margin: 0;
    padding: 0 0 8px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .drawer-navigation .xs-primary-menu .menu-item-has-children.toggled-on > .sub-menu {
    display: block;
  }
  .drawer-navigation .xs-primary-menu .sub-menu a {
    padding: 11px 2px;
  }
}

@media (max-width: 600px) {
  .xs-material-content .dlm-download-box {
    margin-top: 14px;
    padding: 14px;
  }
  .xs-material-content .dlm-download-link {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Compact mobile header height */
@media (max-width: 767px) {
  .site-header {
    margin-bottom: 0;
  }
  .main-header {
    padding-top: 0;
    padding-bottom: 0;
  }
  .main-header-content {
    min-height: 56px;
  }
  .xs-brand img {
    width: 172px;
    max-height: 38px;
  }
  .drawer-hamburger {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 380px) {
  .main-header-content {
    min-height: 52px;
  }
  .xs-brand img {
    width: 156px;
    max-height: 36px;
  }
}


/* Complete illustration category directory */
.xs-directory-section {
  scroll-margin-top: 84px;
  background: #fff;
}
.xs-directory-heading {
  align-items: flex-end;
}
.xs-directory-total {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #596170;
  border: 1px solid #DDE2EA;
  border-radius: 999px;
  background: #F7F8FA;
  font-size: 12px;
  font-weight: 750;
}
.xs-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.xs-directory-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #E3E7EE;
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.xs-directory-card:hover {
  border-color: #C8D77E;
  box-shadow: 0 12px 28px rgba(18, 24, 40, .07);
  transform: translateY(-2px);
}
.xs-directory-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid #E7EAF0;
}
.xs-directory-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #171B2B;
  border-radius: 8px;
  background: #D8FF3E;
  font-size: 14px;
}
.xs-directory-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.xs-directory-card h3 a {
  color: #171B2B;
  text-decoration: none;
}
.xs-directory-card h3 a:hover {
  color: #657500;
}
.xs-directory-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xs-directory-links li {
  min-width: 0;
}
.xs-directory-links a {
  position: relative;
  display: block;
  padding: 7px 0 7px 13px;
  color: #4D5563;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}
.xs-directory-links a::before {
  position: absolute;
  top: 14px;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: #A7B35E;
}
.xs-directory-links a:hover {
  color: #536200;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .xs-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .xs-directory-section {
    scroll-margin-top: 64px;
  }
  .xs-directory-heading {
    gap: 14px;
  }
  .xs-directory-total {
    align-self: flex-start;
  }
  .xs-directory-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .xs-directory-card {
    padding: 17px;
  }
  .xs-directory-card-head {
    margin-bottom: 11px;
    padding-bottom: 11px;
  }
  .xs-directory-links {
    gap: 2px 12px;
  }
  .xs-directory-links a {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13px;
  }
}


/* Compact full-width home search band */
.xs-search-band {
  padding: 13px 0 11px;
  border-top: 1px solid #E3E7EE;
  border-bottom: 1px solid #DCE1E8;
  background: #F2F3F5;
}
.xs-search-band-inner {
  width: min(1520px, calc(100% - 32px));
}
.xs-search--compact {
  grid-template-columns: 170px minmax(0, 1fr) 106px;
  width: 100%;
  max-width: none;
  padding: 0;
  border: 1px solid #D6DBE3;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 24, 40, .05);
  overflow: hidden;
}
.xs-search--compact select,
.xs-search--compact input,
.xs-search--compact button {
  height: 46px;
}
.xs-search--compact select {
  padding: 0 36px 0 14px;
  border-right: 1px solid #DDE2E9;
  background-color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.xs-search-input-wrap {
  position: relative;
  min-width: 0;
}
.xs-search-input-wrap > i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  color: #8A919D;
  transform: translateY(-50%);
}
.xs-search--compact .xs-search-input-wrap input {
  width: 100%;
  padding: 0 16px 0 43px;
  border: 0;
  background: #fff;
  font-size: 15px;
}
.xs-search--compact .xs-search-input-wrap input:focus {
  outline: 2px solid rgba(216, 255, 62, .48);
  outline-offset: -2px;
}
.xs-search--compact button {
  border: 0;
  border-left: 1px solid #CAD497;
  border-radius: 0;
  color: #171B2B;
  background: #D8FF3E;
  font-size: 14px;
  font-weight: 800;
}
.xs-search--compact button i {
  margin-right: 6px;
}
.xs-search--compact button:hover {
  background: #C6EE2B;
}
.xs-search-shortcuts {
  display: flex;
  align-items: center;
  gap: 8px 15px;
  margin-top: 9px;
  min-width: 0;
  color: #626A77;
  font-size: 12px;
  white-space: nowrap;
}
.xs-search-shortcuts-label {
  color: #343A46;
  font-weight: 800;
}
.xs-search-shortcuts a {
  color: #596170;
  text-decoration: none;
}
.xs-search-shortcuts a:hover {
  color: #536200;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.xs-directory-section {
  padding-top: 42px;
}
.xs-home-title {
  font-size: clamp(30px, 3.2vw, 46px);
}

@media (max-width: 767px) {
  .xs-search-band {
    padding: 8px 0 7px;
  }
  .xs-search-band-inner {
    width: calc(100% - 16px);
  }
  .xs-search--compact {
    display: grid;
    grid-template-columns: 102px minmax(0, 1fr) 48px;
    border-radius: 6px;
  }
  .xs-search--compact select {
    display: block !important;
    height: 42px;
    padding: 0 25px 0 9px;
    background-position: calc(100% - 13px) 19px, calc(100% - 9px) 19px;
    font-size: 12px;
  }
  .xs-search--compact input,
  .xs-search--compact button {
    height: 42px;
  }
  .xs-search--compact .xs-search-input-wrap input {
    padding-right: 8px;
    padding-left: 31px;
    font-size: 13px;
  }
  .xs-search-input-wrap > i {
    left: 10px;
    font-size: 12px;
  }
  .xs-search--compact button i {
    margin: 0;
  }
  .xs-search--compact button span {
    display: none;
  }
  .xs-search-shortcuts {
    gap: 13px;
    margin-top: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .xs-search-shortcuts::-webkit-scrollbar {
    display: none;
  }
  .xs-search-shortcuts-label {
    position: sticky;
    left: 0;
    padding-right: 4px;
    background: #F2F3F5;
  }
  .xs-directory-section {
    padding-top: 32px;
  }
}


/* Global 1180px content system */
:root {
  --xs-content-width: 1180px;
}
.top-bar-content,
.main-header-content,
.xs-shell,
.tags-links,
.xs-footer-inner {
  width: min(var(--xs-content-width), calc(100% - 48px));
  max-width: var(--xs-content-width);
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}
.main-header-content {
  padding-right: 0;
  padding-left: 0;
}
.xs-detail-shell,
.xs-search-band-inner {
  max-width: var(--xs-content-width);
}

/* Complete usage guide */
.xs-guide-page {
  background: #fff;
}
.xs-guide-hero {
  padding: 54px 0 46px;
  border-bottom: 1px solid #E3E7EE;
  background: linear-gradient(180deg, #F6F7F9 0%, #fff 100%);
}
.xs-guide-hero .xs-breadcrumb {
  margin-bottom: 34px;
}
.xs-guide-hero h1 {
  max-width: 760px;
  margin: 6px 0 14px;
  color: #171B2B;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.xs-guide-hero > .xs-shell > p:not(.xs-guide-updated) {
  max-width: 760px;
  margin: 0;
  color: #596170;
  font-size: 16px;
  line-height: 1.8;
}
.xs-guide-updated {
  margin: 18px 0 0;
  color: #8A919D;
  font-size: 12px;
}
.xs-guide-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -22px;
  padding: 0;
  border: 1px solid #DEE3EA;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 24, 40, .08);
  overflow: hidden;
}
.xs-guide-summary > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 19px 22px;
  border-right: 1px solid #E7EAF0;
}
.xs-guide-summary > div:last-child {
  border-right: 0;
}
.xs-guide-summary i {
  grid-row: 1 / 3;
  align-self: center;
  color: #657500;
  font-size: 20px;
}
.xs-guide-summary span {
  color: #7A8290;
  font-size: 11px;
  font-weight: 650;
}
.xs-guide-summary strong {
  margin-top: 2px;
  color: #171B2B;
  font-size: 16px;
}
.xs-guide-summary strong.is-ng {
  color: #A33D3D;
}
.xs-guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: 62px;
  padding-bottom: 86px;
}
.xs-guide-toc {
  position: sticky;
  top: 88px;
  padding: 20px;
  border: 1px solid #E3E7EE;
  border-radius: 10px;
  background: #F7F8FA;
}
.xs-guide-toc > strong {
  display: block;
  margin-bottom: 10px;
  color: #171B2B;
  font-size: 13px;
}
.xs-guide-toc nav {
  display: grid;
}
.xs-guide-toc a {
  padding: 8px 0;
  color: #626A77;
  border-bottom: 1px solid #E3E7EE;
  font-size: 12px;
  text-decoration: none;
}
.xs-guide-toc a:last-child {
  border-bottom: 0;
}
.xs-guide-toc a:hover {
  color: #536200;
}
.xs-guide-content {
  min-width: 0;
}
.xs-guide-content > section {
  position: relative;
  scroll-margin-top: 90px;
  padding: 0 0 52px;
  margin: 0 0 52px;
  border-bottom: 1px solid #E3E7EE;
}
.xs-guide-number {
  display: block;
  margin-bottom: 8px;
  color: #657500;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
}
.xs-guide-content h2 {
  margin: 0 0 20px;
  color: #171B2B;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: -.03em;
}
.xs-guide-content h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.xs-guide-content p,
.xs-guide-content li {
  color: #4D5563;
  font-size: 15px;
  line-height: 1.9;
}
.xs-guide-content p {
  margin: 0 0 16px;
}
.xs-guide-content ul {
  margin: 0;
  padding-left: 1.3em;
}
.xs-guide-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.xs-guide-columns > div {
  padding: 22px;
  border: 1px solid #E3E7EE;
  border-radius: 9px;
  background: #F9FAFB;
}
.xs-guide-note {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid #DDE6B5;
  border-radius: 8px;
  background: #FAFDEB;
}
.xs-guide-note i {
  margin-top: 5px;
  color: #657500;
}
.xs-guide-note p {
  margin: 0;
  font-size: 13px;
}
.xs-guide-prohibited li {
  margin-bottom: 9px;
}
.xs-guide-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
}
.xs-guide-actions .xs-primary-button {
  width: auto;
  padding-right: 24px;
  padding-left: 24px;
}
.xs-guide-secondary {
  padding: 13px 18px;
  color: #343A46;
  border: 1px solid #DDE2EA;
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

/* Complete footer */
.xs-site-footer {
  margin: 0;
  color: #B7BEC9;
  background: #141821;
}
.xs-footer-main {
  padding: 58px 0 48px;
}
.xs-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 54px;
}
.xs-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -.04em;
  text-decoration: none;
}
.xs-footer-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #171B2B;
  border-radius: 9px;
  background: #D8FF3E;
  font-size: 20px;
  font-weight: 950;
}
.xs-footer-brand-column p {
  max-width: 310px;
  margin: 18px 0;
  color: #9DA6B3;
  font-size: 13px;
  line-height: 1.8;
}
.xs-footer-search-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #D8FF3E !important;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.xs-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.xs-footer-column h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .04em;
}
.xs-footer-column a {
  margin: 0 0 10px;
  color: #AEB6C2;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}
.xs-footer-column a:hover {
  color: #D8FF3E;
}
.xs-footer-bottom {
  padding: 17px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.xs-footer-bottom-inner {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.xs-footer-bottom p {
  margin: 0;
  color: #7F8996;
  font-size: 11px;
}
.xs-footer-bottom-inner > div {
  display: flex;
  gap: 18px;
}
.xs-footer-bottom a {
  color: #8F99A7;
  font-size: 11px;
  text-decoration: none;
}
.thanks-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(8, 11, 17, .66);
}
.thanks-modal.is-visible {
  display: grid;
}
.thanks-modal-content {
  position: relative;
  width: min(400px, 100%);
  padding: 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0,0,0,.28);
  text-align: center;
}
.thanks-modal-content h2 {
  margin: 0 0 8px;
  color: #171B2B;
  font-size: 20px;
}
.thanks-modal-content p {
  margin: 0;
  color: #69707A;
  font-size: 14px;
}
.thanks-close {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 4px 8px;
  color: #7A8290;
  border: 0;
  background: transparent;
  font-size: 23px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .xs-guide-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xs-guide-summary > div:nth-child(2) {
    border-right: 0;
  }
  .xs-guide-summary > div:nth-child(-n+2) {
    border-bottom: 1px solid #E7EAF0;
  }
  .xs-guide-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .xs-guide-toc {
    position: static;
  }
  .xs-guide-toc nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
  }
  .xs-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 50px;
  }
}

@media (max-width: 600px) {
  .top-bar-content,
  .main-header-content,
  .xs-shell,
  .tags-links,
  .xs-footer-inner {
    width: calc(100% - 20px);
  }
  .main-header-content {
    padding-right: 0;
    padding-left: 0;
  }
  .xs-guide-hero {
    padding: 32px 0 38px;
  }
  .xs-guide-hero .xs-breadcrumb {
    margin-bottom: 24px;
  }
  .xs-guide-hero h1 {
    font-size: 38px;
  }
  .xs-guide-summary {
    width: calc(100% - 20px);
    grid-template-columns: 1fr 1fr;
    border-radius: 9px;
  }
  .xs-guide-summary > div {
    padding: 15px 13px;
  }
  .xs-guide-summary strong {
    font-size: 14px;
  }
  .xs-guide-layout {
    padding-top: 40px;
    padding-bottom: 60px;
  }
  .xs-guide-toc {
    padding: 16px;
  }
  .xs-guide-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }
  .xs-guide-content > section {
    padding-bottom: 38px;
    margin-bottom: 38px;
  }
  .xs-guide-columns {
    grid-template-columns: 1fr;
  }
  .xs-guide-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .xs-guide-actions .xs-primary-button,
  .xs-guide-secondary {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .xs-footer-main {
    padding: 42px 0 34px;
  }
  .xs-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
  .xs-footer-brand-column {
    grid-column: 1 / -1;
  }
  .xs-footer-topics {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xs-footer-topics h2 {
    grid-column: 1 / -1;
  }
  .xs-footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* New arrivals / popular materials tabs */
.xs-material-tabs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}
.xs-material-tabs-head .xs-section-copy {
  margin-bottom: 0;
}
.xs-tab-list {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 5px;
  border: 1px solid #DDE2EA;
  border-radius: 9px;
  background: #fff;
}
.xs-tab-button {
  display: inline-flex;
  min-width: 126px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  color: #626A77;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.xs-tab-button:hover {
  color: #171B2B;
  background: #F4F6F8;
}
.xs-tab-button.is-active {
  color: #171B2B;
  background: #D8FF3E;
  box-shadow: 0 3px 10px rgba(128, 151, 0, .18);
}
.xs-tab-button:focus-visible {
  outline: 3px solid rgba(101, 117, 0, .28);
  outline-offset: 2px;
}
.xs-tab-panel[hidden] {
  display: none;
}
.xs-tab-panel {
  animation: xs-tab-fade .24s ease;
}
@keyframes xs-tab-fade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .xs-material-tabs-head {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
  }
  .xs-tab-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    box-sizing: border-box;
  }
  .xs-tab-button {
    min-width: 0;
    min-height: 44px;
    padding-right: 10px;
    padding-left: 10px;
  }
}


/* Material detail: preview media and direct download action */
.xs-material-preview-image {
  display: grid;
  min-height: 280px;
  margin: 0 0 22px;
  padding: clamp(16px, 3vw, 30px);
  place-items: center;
  border: 1px solid #E3E7EE;
  border-radius: 10px;
  background:
    linear-gradient(45deg, #F3F4F6 25%, transparent 25%, transparent 75%, #F3F4F6 75%),
    linear-gradient(45deg, #F3F4F6 25%, #fff 25%, #fff 75%, #F3F4F6 75%);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  overflow: hidden;
}
.xs-material-preview-image img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  object-fit: contain;
}
.xs-preview-tags {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #E1E5EB;
}
.xs-preview-tags > span {
  color: #596170;
  font-size: 12px;
  font-weight: 750;
}
.xs-preview-tags a {
  color: #343A46;
  border: 1px solid #E0E4EA;
  background: #fff;
}
.xs-preview-tags a:hover {
  color: #536200;
  border-color: #C8D77E;
  background: #FAFDEB;
}
.xs-detail--compact .xs-primary-button {
  color: #171B2B !important;
  background: #D8FF3E;
}
.xs-detail--compact .xs-primary-button:hover {
  color: #171B2B !important;
  background: #C6EE2B;
}
.xs-detail--compact .xs-primary-button i {
  margin-right: 7px;
}
.xs-primary-button--disabled {
  opacity: .55;
  cursor: not-allowed;
}
.xs-material-content .dlm-download-box {
  display: none !important;
}

@media (max-width: 600px) {
  .xs-material-preview-image {
    min-height: 190px;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 8px;
  }
  .xs-material-preview-image img {
    max-height: 420px;
  }
  .xs-preview-tags {
    margin-top: 18px;
    padding-top: 15px;
  }
}


/* Detail page footer: four-card related carousel and equal-height advertisement */
.xs-related--split {
  padding: 46px 0 64px;
  border-top: 1px solid #E3E7EE;
  background: #fff;
}
.xs-related-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: stretch;
}
.xs-related-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.xs-related-main .xs-section-head {
  margin-bottom: 18px;
}
.xs-related-main .xs-section-title {
  font-size: clamp(25px, 3vw, 34px);
}
.xs-related-head {
  align-items: flex-end;
}
.xs-related-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}
.xs-related-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: #171B2B;
  border: 1px solid #DDE2E9;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}
.xs-related-arrow:hover:not(:disabled) {
  border-color: #B8CE47;
  background: #D8FF3E;
}
.xs-related-arrow:disabled {
  color: #A8AFBA;
  background: #F5F6F8;
  cursor: default;
}
.xs-related-main.is-carousel-static .xs-related-controls {
  visibility: hidden;
}
.xs-related-carousel {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}
.xs-related-viewport {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.xs-related-viewport::-webkit-scrollbar {
  display: none;
}
.xs-related-track {
  display: flex;
  min-width: 100%;
  height: 100%;
  gap: 14px;
  align-items: stretch;
}
.xs-related-track > .xs-card {
  display: flex;
  flex: 0 0 calc((100% - 42px) / 4);
  min-width: 0;
  flex-direction: column;
  scroll-snap-align: start;
}
.xs-related-track > .xs-card .xs-card-body {
  flex: 1 1 auto;
}
.xs-related-ad {
  display: flex;
  min-width: 0;
  min-height: 300px;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
  flex-direction: column;
  border: 1px solid #E1E5EB;
  border-radius: 10px;
  background: #F8F9FA;
  overflow: hidden;
}
.xs-related-ad .xs-ad-label {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 7px;
  color: #737B88;
  border: 1px solid #DDE2E9;
  border-radius: 4px;
  background: #fff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}
.xs-related-ad .adsbox {
  display: grid;
  flex: 1 1 auto;
  width: 100%;
  min-height: 260px;
  margin: 0;
  place-items: center;
  overflow: hidden;
}
.xs-related-ad .adsbygoogle {
  width: 100%;
  max-width: 100%;
}
.xs-related-empty {
  margin: 0;
  padding: 28px;
  color: #69707A;
  border: 1px solid #E3E7EE;
  border-radius: 9px;
  background: #F7F8FA;
  font-size: 14px;
}

@media (max-width: 980px) {
  .xs-related-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
  }
  .xs-related-track {
    gap: 12px;
  }
  .xs-related-track > .xs-card {
    flex-basis: calc((100% - 12px) / 2);
  }
}

@media (max-width: 767px) {
  .xs-related--split {
    padding: 36px 0 50px;
  }
  .xs-related-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .xs-related-head {
    align-items: flex-end;
    flex-direction: row;
  }
  .xs-related-track {
    gap: 10px;
  }
  .xs-related-track > .xs-card {
    flex-basis: 100%;
  }
  .xs-related-ad {
    min-height: 250px;
    height: auto;
  }
  .xs-related-ad .adsbox {
    min-height: 220px;
  }
}


/* Compact illustration directory */
.xs-directory-section {
  padding-top: 28px;
  padding-bottom: 36px;
}
.xs-directory-section .xs-directory-heading {
  margin-bottom: 18px;
}
.xs-directory-section .xs-home-title {
  font-size: clamp(28px, 2.6vw, 38px);
}
.xs-directory-section .xs-section-copy {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
}
.xs-directory-section .xs-directory-total {
  padding: 6px 10px;
  font-size: 11px;
}
.xs-directory-section .xs-directory-grid {
  gap: 10px;
}
.xs-directory-section .xs-directory-card {
  padding: 15px;
  border-radius: 8px;
}
.xs-directory-section .xs-directory-card-head {
  gap: 9px;
  margin-bottom: 10px;
  padding-bottom: 10px;
}
.xs-directory-section .xs-directory-icon {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  font-size: 12px;
}
.xs-directory-section .xs-directory-card h3 {
  font-size: 15px;
}
.xs-directory-section .xs-directory-links {
  gap: 0 10px;
}
.xs-directory-section .xs-directory-links a {
  padding: 4px 0 4px 11px;
  font-size: 12px;
  line-height: 1.35;
}
.xs-directory-section .xs-directory-links a::before {
  top: 10px;
}

@media (max-width: 600px) {
  .xs-directory-section {
    padding-top: 22px;
    padding-bottom: 30px;
  }
  .xs-directory-section .xs-directory-heading {
    margin-bottom: 14px;
  }
  .xs-directory-section .xs-home-title {
    font-size: 27px;
  }
  .xs-directory-section .xs-directory-card {
    padding: 13px;
  }
  .xs-directory-section .xs-directory-card-head {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  .xs-directory-section .xs-directory-links a {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 12px;
  }
}


/* Remove the theme's default gap below the global header. */
.site-header {
  margin-bottom: 0;
}


/* Keep artwork inside a consistent safe area on material previews. */
.xs-material-preview-image img {
  display: block;
  width: auto;
  max-width: 80%;
  max-height: 460px;
  margin: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .xs-material-preview-image img {
    max-width: 88%;
    max-height: 340px;
  }
}

/* 2026-12-01: make material entries and ad slots one visual card system. */
.xs-material-grid > .xs-card,
.xs-material-grid > .xs-grid-ad {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--xs-line) !important;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 24, 40, .06) !important;
}
.xs-material-grid > .xs-card .xs-card-media {
  border-radius: 0;
  border-bottom: 1px solid var(--xs-line);
}
.xs-material-grid > .xs-card .xs-card-body {
  padding: 14px 14px 16px;
}
.xs-material-grid > .xs-card .xs-card-title {
  margin-top: 8px;
}

/* Keep the header brand visible even when older theme rules or cached breakpoints compete. */
.main-header-content > .xs-site-branding {
  position: relative;
  z-index: 20;
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  min-width: 225px;
  visibility: visible !important;
  opacity: 1 !important;
}
.main-header-content > .xs-site-branding .xs-brand {
  display: inline-flex !important;
  align-items: center;
  visibility: visible !important;
  opacity: 1 !important;
}
.main-header-content > .xs-site-branding .xs-brand img {
  display: block !important;
  width: auto;
  height: 48px;
  max-width: 225px;
  object-fit: contain;
  visibility: visible !important;
  opacity: 1 !important;
}
@media (max-width: 1100px) {
  .main-header-content {
    justify-content: space-between;
  }
}
@media (max-width: 767px) {
  .xs-material-grid > .xs-card,
  .xs-material-grid > .xs-grid-ad {
    border-radius: 7px;
  }
  .xs-material-grid > .xs-card .xs-card-body {
    padding: 11px 10px 13px;
  }
  .main-header-content > .xs-site-branding {
    min-width: 0;
  }
  .main-header-content > .xs-site-branding .xs-brand img {
    height: 40px;
    max-width: min(210px, 58vw);
  }
}

/* 2026-12-01: thumbnails use a clean white canvas instead of transparency checks. */
.xs-material-grid .xs-card-media {
  background: #fff !important;
  background-image: none !important;
}
