/* ════════════════════════════════════════════════════════════
 * escwasd Guides Styles — extracted from site.css, loaded only on Guides channel
 * Includes: homepage hot cards, Hero area, article detail, related tool cards, dark theme
 * ════════════════════════════════════════════════════════════ */
/* Guides Home */
.guides-page { padding: 0 1.3rem 1.3rem; }

.guides-content-wrap {
  width: min(100%, var(--layout-content-wide));
  margin: 0 auto;
}

.guides-section {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.guides-section-spacer {
  margin-top: 2.25rem;
}

.guides-hero {
  display: grid;
  gap: 1rem;
}

.guides-title {
  font-family: Rajdhani, sans-serif;
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #2a2f3b;
  margin: 0;
}

.guides-deck {
  font-size: 1.32rem;
  line-height: 1.62;
  color: #4a4f58;
  max-width: 68ch;
  margin: 0.35rem 0 0;
}

.guides-home-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  margin-top: 0.35rem;
}

.guides-home-tag-link {
  display: inline-flex;
  align-items: center;
  color: #4e55a6;
  font: 700 24px/1 Rajdhani, sans-serif;
  letter-spacing: 0.03em;
}

.guides-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.guides-section-title {
  font-family: Rajdhani, sans-serif;
  font-size: 2.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #2f3440;
  margin: 0;
}

.guides-section-note {
  margin: 0.1rem 0 0;
  color: #6a6f79;
  font-size: 1.08rem;
}

.guides-home-hot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  justify-content: stretch;
  overflow: visible;
  padding-bottom: 0.35rem;
}

.guides-home-hot-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  box-shadow: none;
  width: 100%;
  min-width: 0;
  aspect-ratio: 56 / 29;
}

.guides-home-hot-card::after {
  content: none;
}

.guides-home-hot-card .guides-home-card-link {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  text-decoration: none;
}

.guides-home-hot-card .guides-home-card-link:focus-visible {
  outline: 2px solid rgba(148, 181, 79, 0.65);
  outline-offset: 2px;
}

.guides-home-hot-card .guides-home-card-link:hover .guides-home-hot-media {
  transform: translateY(-1px);
}

.guides-home-hot-card .guides-home-card-link:hover .guides-home-hot-title {
  text-shadow: 0 0 8px rgba(190, 210, 118, 0.32);
}

.guides-home-hot-card .guides-home-card-link:hover .guides-home-hot-summary {
  color: rgba(246, 245, 241, 0.92);
}

.guides-home-hot-media {
  position: relative;
  isolation: isolate;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  padding: clamp(0.85rem, 1.1vw, 1.15rem);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.2s ease;
  background:
    radial-gradient(circle at 22% 28%, rgba(190, 210, 118, 0.92), rgba(123, 181, 66, 0.9) 28%, rgba(55, 94, 46, 0.92) 64%, rgba(38, 38, 38, 0.96)),
    linear-gradient(145deg, #a8c45d, #708d3d);
}

.guides-home-hot-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(38, 38, 38, 0.12) 0, rgba(38, 38, 38, 0.12) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(55, 94, 46, 0.14) 0, rgba(55, 94, 46, 0.14) 1px, transparent 1px, transparent 4px);
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

.guides-home-hot-media::after {
  content: none;
}

.guides-home-hot-title {
  font-family: Rajdhani, sans-serif;
  font-size: clamp(1.35rem, 1.4vw + 0.65rem, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(248, 246, 242, 0.98);
  text-shadow: none;
  margin: 0;
  line-height: 1.14;
  width: 100%;
  margin-block: 0;
  position: relative;
  z-index: 4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.guides-home-hot-summary {
  margin: 0;
  color: rgba(242, 240, 237, 0.88);
  line-height: 1.45;
  font-size: clamp(0.82rem, 0.35vw + 0.72rem, 0.95rem);
  width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-block: 0;
  margin-top: auto;
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
}

.guides-home-latest-grid {
  display: none;
}

html[data-theme="dark"] .guides-home-hot-card { border: none; }

.guides-article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.guides-article-item {
  border: 1px solid rgba(149, 146, 146, 0.35);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(248, 245, 240, 0.7);
  box-shadow: none;
  min-height: clamp(168px, 12vw, 220px);
}

.guides-article-link {
  display: grid;
  grid-template-columns: minmax(170px, 24%) minmax(0, 1fr);
  height: 100%;
  min-height: inherit;
  color: inherit;
  text-decoration: none;
}

.guides-article-item.no-thumb {
  min-height: clamp(132px, 8.2vw, 168px);
}

.guides-article-item.no-thumb .guides-article-link {
  grid-template-columns: 1fr;
}

.guides-article-thumb-wrap {
  position: relative;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 22% 28%, rgba(190, 210, 118, 0.88), rgba(123, 181, 66, 0.74) 36%, rgba(55, 94, 46, 0.86) 75%, rgba(38, 38, 38, 0.9)),
    linear-gradient(145deg, #a8c45d, #708d3d);
}

.guides-article-thumb-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(38, 38, 38, 0.1) 0, rgba(38, 38, 38, 0.1) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(55, 94, 46, 0.12) 0, rgba(55, 94, 46, 0.12) 1px, transparent 1px, transparent 4px);
}

.guides-article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guides-article-content {
  padding: clamp(0.78rem, 0.9vw, 1.1rem) clamp(0.9rem, 1.15vw, 1.28rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.24rem, 0.45vw, 0.42rem);
  min-width: 0;
  min-height: 0;
}

.guides-article-title {
  margin: 0;
  font-family: Rajdhani, sans-serif;
  font-size: clamp(2rem, 3.1vw, 4.35rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #2f3440;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  flex: 1 1 auto;
  min-width: 0;
}

.guides-article-item.no-thumb .guides-article-title {
  font-size: clamp(1.75rem, 2.45vw, 3.2rem);
  line-height: 1.08;
}

.guides-article-summary {
  margin: 0;
  font-size: clamp(0.84rem, 0.28vw + 0.76rem, 0.95rem);
  line-height: 1.42;
  color: #616671;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  flex: 0 0 auto;
  min-width: 0;
}

.guides-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: auto;
  min-width: 0;
}

.guides-article-tag {
  display: inline-flex;
  align-items: center;
  font-family: Rajdhani, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4f57a8;
  letter-spacing: 0.02em;
}
/* Hero area tag white 80% opacity */
.guides-detail-hero .guides-article-tag {
  color: rgba(255, 255, 255, 0.8);
}

.guides-article-date {
  font-family: IBM Plex Mono, monospace;
  font-size: 0.8rem;
  color: #808694;
}

.guides-empty-note {
  margin: 0.9rem 0 0;
  color: #646974;
  font-size: 1rem;
  line-height: 1.45;
  opacity: 0.82;
}

/* Guides Article Detail */
.guides-detail-wrap {
  display: grid;
  gap: 1.25rem;
}

.guides-detail-hero-screen {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 34vw, 560px);
  border-radius: 14px;
  background:
    radial-gradient(circle at 24% 26%, rgba(190, 210, 118, 0.95), rgba(123, 181, 66, 0.8) 30%, rgba(55, 94, 46, 0.9) 68%, rgba(38, 38, 38, 0.96)),
    linear-gradient(145deg, #a8c45d, #708d3d);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -46px 70px rgba(23, 28, 24, 0.36),
    0 18px 42px rgba(78, 76, 80, 0.2);
}

/* Hero area page-header — top-left breadcrumb/section label */
.guides-detail-hero-header {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem 0;
  text-align: left;
}
.guides-detail-hero-header h1 {
  font-family: Rajdhani, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.guides-hero-breadcrumb-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.guides-hero-breadcrumb-link:hover {
  color: #fff;
  text-decoration: underline;
}
.guides-hero-breadcrumb-sep {
  margin: 0 0.35rem;
  color: rgba(255, 255, 255, 0.35);
}

.guides-detail-hero-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(38, 38, 38, 0.13) 0, rgba(38, 38, 38, 0.13) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(90deg, rgba(55, 94, 46, 0.15) 0, rgba(55, 94, 46, 0.15) 1px, transparent 1px, transparent 5px);
  opacity: 0.9;
  pointer-events: none;
}

.guides-detail-hero-media {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  top: clamp(1rem, 4vw, 3.5rem);
  width: clamp(160px, 30vw, 400px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.guides-detail-hero-icon {
  display: block;
  color: rgba(246, 245, 241, 0.62);
  font: 700 clamp(9rem, 21vw, 19.2rem)/1 Rajdhani, sans-serif;
  letter-spacing: 0.04em;
  opacity: 0.42;
}

.guides-detail-hero-copy {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 22vw, 18rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  display: grid;
  gap: 0.55rem;
}

.guides-detail-kicker {
  margin: 0;
  color: rgba(246, 245, 241, 0.88);
  font: 700 1rem/1 Rajdhani, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.guides-detail-title {
  margin: 0;
  color: rgba(248, 246, 242, 0.98);
  font-family: Rajdhani, sans-serif;
  font-size: clamp(2.6rem, 5.8vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-wrap: balance;
}

.guides-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  color: rgba(246, 245, 241, 0.88);
  font: 700 0.95rem/1.2 Rajdhani, sans-serif;
  letter-spacing: 0.03em;
}

.guides-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 1.25rem;
  align-items: start;
}

.guides-detail-panel {
  padding: clamp(1.2rem, 2vw, 2rem);
  background: rgba(248, 245, 240, 0.86);
}

.guides-prose {
  max-width: 78ch;
  color: #343944;
  font-size: clamp(1rem, 0.28vw + 0.94rem, 1.12rem);
  line-height: 1.78;
}

.guides-prose h2 {
  margin: 1.6rem 0 0.55rem;
  color: #2f3440;
  font: 700 clamp(1.75rem, 2.4vw, 2.8rem)/1 Rajdhani, sans-serif;
  letter-spacing: 0.02em;
}

.guides-prose h2:first-child { margin-top: 0; }
.guides-prose p { margin: 0 0 1rem; }
.guides-prose ul { margin: 0.45rem 0 1rem; padding-left: 1.25rem; }
.guides-prose li { margin: 0.35rem 0; }
.guides-prose li::marker { color: #4f57a8; }

.guides-detail-rail {
  position: sticky;
  top: 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.guides-detail-rail-panel {
  padding: 1rem;
  background: rgba(248, 245, 240, 0.78);
}

.guides-detail-rail-title {
  margin: 0 0 0.65rem;
  color: #2f3440;
  font: 700 1.55rem/1 Rajdhani, sans-serif;
  letter-spacing: 0.04em;
}

.guides-detail-mini-list,
.guides-detail-related-list,
.guides-detail-facts {
  display: grid;
  gap: 0.5rem;
}

.guides-detail-mini-list a,
.guides-detail-related-card,
.guides-detail-facts span {
  display: grid;
  gap: 0.12rem;
  padding: 0.65rem 0.72rem;
  border: 1px solid rgba(149, 146, 146, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.32);
  color: #3d4652;
  font: 700 1rem/1.12 Rajdhani, sans-serif;
}

.guides-detail-mini-list a:hover,
.guides-detail-related-card:hover {
  color: #4f57a8;
  border-color: rgba(79, 87, 168, 0.4);
}

.guides-detail-related-card small {
  color: #6a6f79;
  font: 600 0.82rem/1.25 Rajdhani, sans-serif;
}

/* ─── Related tool card: background image capsule (tool image fills card, name+type overlay) ─── */
.guides-detail-related-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.3rem;
  min-height: 52px;
  padding: 6px 10px 5px;
  border: 1px solid rgba(149, 146, 146, 0.28);
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: rgba(79, 87, 168, 0.12);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform .12s, box-shadow .15s;
}
/* Background image with dark gradient overlay (ensures text readability) */
.guides-detail-related-card.has-bg::before,
.guides-detail-related-card[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.02) 100%);
  border-radius: inherit;
  pointer-events: none;
}
/* No gradient overlay when no background image */
.guides-detail-related-card.no-bg {
  background: rgba(79, 87, 168, 0.10);
  color: #3d4652;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 6px 10px;
  min-height: 44px;
}
.guides-detail-related-card.no-bg::before { display: none; }

.guides-detail-related-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  color: #fff;
  border-color: rgba(79, 87, 168, 0.4);
}
.guides-detail-related-card.no-bg:hover {
  color: #4f57a8;
}

/* Name + type: above the overlay layer */
.guides-detail-related-card .guides-detail-related-name,
.guides-detail-related-card .guides-detail-related-type {
  position: relative;
  z-index: 1;
}
.guides-detail-related-name {
  font: 700 0.9rem/1.15 Rajdhani, sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guides-detail-related-type {
  font: 600 0.72rem/1.15 Rajdhani, sans-serif;
  opacity: .88;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  flex-shrink: 0;
  color: inherit;
}
/* Remove text shadow when no background */
.guides-detail-related-card.no-bg .guides-detail-related-name {
  text-shadow: none;
  color: #3d4652;
}
.guides-detail-related-card.no-bg .guides-detail-related-type {
  text-shadow: none;
  color: #6a6f79;
  opacity: .75;
}

/* Override small color in shared rules */
.guides-detail-related-card small.guides-detail-related-type {
  color: inherit;
}

/* Missing tool */
.guides-detail-related-card.is-missing {
  opacity: .55;
  border-style: dashed;
  background: rgba(220,53,45,.06);
  color: #999;
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: 5px 8px;
}
.guides-detail-related-card.is-missing .guides-detail-related-name {
  text-shadow: none;
  font-size: .82rem;
}

/* ─── Deprecated old elements (no longer in use) ─── */
.guides-detail-related-thumb,
.guides-detail-related-placeholder,
.guides-detail-related-info {
  display: none;
}

/* ─── Dark Theme ─── */
html[data-theme="dark"] .guides-detail-related-card {
  border-color: var(--home-border-soft);
}
html[data-theme="dark"] .guides-detail-related-card.no-bg {
  background: rgba(255,255,255,.06);
  color: #d7dde6;
}
html[data-theme="dark"] .guides-detail-related-card.no-bg .guides-detail-related-name {
  color: #d7dde6;
}
html[data-theme="dark"] .guides-detail-related-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

html[data-theme="dark"] .guides-detail-panel,
html[data-theme="dark"] .guides-detail-rail-panel {
  background: var(--home-surface-2);
}

html[data-theme="dark"] .guides-prose,
html[data-theme="dark"] .guides-prose h2,
html[data-theme="dark"] .guides-detail-rail-title {
  color: #e6e9ee;
}

html[data-theme="dark"] .guides-prose p,
html[data-theme="dark"] .guides-prose li,
html[data-theme="dark"] .guides-detail-related-card small {
  color: #b8c0cc;
}

html[data-theme="dark"] .guides-detail-mini-list a,
html[data-theme="dark"] .guides-detail-related-card,
html[data-theme="dark"] .guides-detail-facts span {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--home-border-soft);
  color: #d7dde6;
}

html[data-theme="dark"] .guides-detail-hero-screen {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 -46px 70px rgba(0, 0, 0, 0.42),
    0 18px 42px rgba(0, 0, 0, 0.32);
}



@media (min-width: 1920px) {
  :root {
    --layout-content-standard: 1440px;
    --layout-content-wide: 1600px;
    --layout-content-padding: 2.5rem;
  }

  .guides-home-hot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .guides-page { padding: 0 1rem 1rem; }
  .guides-section { padding: 0; }
  .guides-home-hot-grid,
  .guides-home-latest-grid { grid-template-columns: 1fr; }
  .guides-home-hot-card { aspect-ratio: auto; min-height: 230px; }
  .guides-home-hot-card .guides-home-card-link { min-height: 230px; }
  .guides-home-hot-media { min-height: 230px; }
  .guides-title { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .guides-deck { font-size: 1.12rem; max-width: none; }
  .guides-section-title { font-size: 1.6rem; }
  .guides-section-note { font-size: 0.95rem; }
  .guides-home-hot-title { font-size: clamp(1.45rem, 8vw, 1.9rem); }
  .guides-home-hot-summary { font-size: 0.86rem; }
  .guides-empty-note { font-size: 0.95rem; }
  .guides-article-link {
    grid-template-columns: 1fr;
    min-height: inherit;
  }
  .guides-article-item.has-thumb { min-height: auto; }
  .guides-article-thumb-wrap { aspect-ratio: 16 / 9; }
  .guides-article-content { padding: 0.7rem 0.76rem; }
  .guides-article-title { font-size: clamp(1.55rem, 8vw, 2.45rem); line-height: 1; }
  .guides-article-item.no-thumb .guides-article-title { font-size: clamp(1.45rem, 7vw, 2.15rem); }
  .guides-article-summary { font-size: 0.86rem; }
  .guides-empty-note { font-size: 0.95rem; }
  .guides-detail-hero-screen { min-height: 420px; }
  .guides-detail-hero-copy { right: 1rem; }
  .guides-detail-title { font-size: clamp(2.3rem, 11vw, 3.8rem); }
  .guides-detail-grid { grid-template-columns: 1fr; }
  .guides-detail-rail { position: static; }
  .guides-prose { max-width: none; }
}



