/* Srisovki Interactive Studio & Unified Clean Column Layout */
:root {
  --sr-primary: #3b6cb7;
  --sr-primary-dark: #2a508f;
  --sr-bg-soft: #f4f7fc;
  --sr-border: #dce5f2;
  --sr-text: #1e293b;
  --sr-muted: #5b6b82;
  --sr-col-width: 860px;
}

/* 1. Strict Single-Column Alignment (Breadcrumbs, H1, Meta, Separator, Content) */
body.sidebar-none.single .sr-breadcrumbs,
body.sidebar-none.single .entry-header,
body.sidebar-none.single .entry-title,
body.sidebar-none.single .entry-meta,
body.sidebar-none.single .entry-excerpt,
body.sidebar-none.single .page-separator,
body.sidebar-none.single .entry-content,
body.sidebar-none.page .sr-breadcrumbs,
body.sidebar-none.page .entry-header,
body.sidebar-none.page .entry-title,
body.sidebar-none.page .page-separator,
body.sidebar-none.page .entry-content {
  max-width: var(--sr-col-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Hide duplicate excerpt on single posts if ever present */
.single .entry-excerpt {
  display: none !important;
}

/* Clean aligned subtle separator instead of -40px protruding blue bar */
body.sidebar-none .page-separator {
  height: 1px !important;
  background: #e2e8f0 !important;
  margin-top: 14px !important;
  margin-bottom: 22px !important;
  width: 100% !important;
}

.single .entry-title {
  margin-bottom: 12px !important;
  line-height: 1.25 !important;
}

/* Breadcrumbs */
.sr-breadcrumbs {
  font-size: 13.5px;
  color: var(--sr-muted);
  margin: 4px auto 12px;
  line-height: 1.4;
}
.sr-breadcrumbs a {
  color: var(--sr-primary);
  text-decoration: none;
}
.sr-breadcrumbs a:hover {
  text-decoration: underline;
}

/* Fix washed-out 40% opacity card thumbnails & improve aspect ratio */
.post-card__image {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #f8fafc;
}
.post-card__image img {
  display: block !important;
  margin: 0 auto !important;
  width: 100% !important;
  height: 200px !important;
  max-height: 200px !important;
  object-fit: cover !important;
  opacity: 1 !important;
  transition: transform 0.25s ease;
}
.post-card:hover .post-card__image img {
  transform: scale(1.03);
}
.post-card {
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(30, 41, 59, 0.06);
  border: 1px solid #eef2f7;
  background: #fff;
  overflow: hidden;
}

/* Hide legacy extra chips/banners above first image so content starts clean */
.sr-lesson-meta,
.sr-studio-hint {
  display: none !important;
}

/* Clean Drawing Card & Inline Grid Container */
.sr-drawing-card {
  position: relative;
  margin: 18px auto 28px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 14px;
  box-sizing: border-box;
}
.sr-drawing-card__viewport {
  text-align: center;
  position: relative;
}
.sr-drawing-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 0 auto;
}
.sr-drawing-stage img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.sr-inline-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: 6px;
}

/* Action Toolbar Under Every Drawing */
.sr-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.sr-btn {
  appearance: none;
  border: 1px solid var(--sr-border);
  background: #f8fafc;
  color: var(--sr-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  text-decoration: none !important;
}
.sr-btn:hover, .sr-btn:focus {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--sr-primary-dark);
}
.sr-btn.is-active {
  background: var(--sr-primary);
  border-color: var(--sr-primary);
  color: #fff;
}
.sr-btn--pin {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}
.sr-btn--pin:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* Fullscreen Trace Lightbox Modal */
.sr-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.sr-modal[hidden] {
  display: none !important;
}
.sr-modal__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #0f172a;
  color: #fff;
  z-index: 10;
}
.sr-modal__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.sr-mbtn {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sr-mbtn.is-active {
  background: #2563eb;
  border-color: #3b82f6;
}
.sr-mbtn--close {
  background: #dc2626;
  border-color: #ef4444;
}
.sr-modal__canvas {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.sr-modal__art-wrap {
  position: relative;
  z-index: 2;
  transform-origin: center center;
  max-width: 94vw;
  max-height: 82vh;
}
.sr-modal__art-wrap img {
  display: block;
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  pointer-events: none;
}
.sr-modal.is-locked .sr-modal__topbar {
  display: none;
}
.sr-unlock-pill {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100001;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: none;
}
.sr-modal.is-locked .sr-unlock-pill {
  display: block;
}

/* Structured Headings, Step Cards, FAQ & Author E-E-A-T Blocks */
.entry-content h2,
.entry-content h3 {
  text-align: left !important;
}
.entry-content h2 {
  border-bottom: 1px solid #cbd5e1 !important;
  padding-bottom: 8px !important;
  margin: 1.5em 0 0.7em !important;
  font-size: 22px;
}
.entry-content h3 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin: 1.1em 0 0.4em !important;
  font-size: 18px;
}
.sr-guide-box {
  background: var(--sr-bg-soft);
  border: 1px solid var(--sr-border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
}
.sr-guide-box h2 {
  margin-top: 0 !important;
}
.sr-howto-step {
  padding: 8px 0;
  border-bottom: 1px dashed #dbe4f0;
}
.sr-howto-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sr-howto-step h3 {
  margin: 0 0 4px !important;
  font-size: 16.5px;
  color: var(--sr-primary-dark);
}
.sr-howto-step p {
  margin: 0 !important;
  font-size: 15px;
}
.sr-faq {
  margin: 22px 0;
}
.sr-faq-item {
  border: 1px solid var(--sr-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
}
.sr-faq-q {
  font-weight: 700;
  font-size: 16px;
  color: var(--sr-text);
  margin: 0 0 6px;
}
.sr-faq-a {
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.55;
}
.sr-eeat-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin: 26px 0 16px;
  font-size: 14px;
  color: #475569;
}
.sr-eeat-box__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.sr-cat-intro {
  background: var(--sr-bg-soft);
  border: 1px solid var(--sr-border);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 12px 0 20px;
  font-size: 15px;
  line-height: 1.55;
}
.sr-cluster-links {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px 18px;
  margin: 22px 0;
}
.sr-cluster-links__title {
  font-weight: 700;
  font-size: 15.5px;
  margin: 0 0 10px;
  color: var(--sr-text);
}
.sr-cluster-links ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}
.sr-cluster-links ul li:before {
  display: none !important;
}
.sr-cluster-links a {
  display: block;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.sr-cluster-links a:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

@media (max-width: 640px) {
  .sr-btn {
    font-size: 12px;
    padding: 6px 9px;
  }
  .post-card__image img {
    height: 185px !important;
    max-height: 185px !important;
  }
}

/* 4-Archetype Editorial Components (ver 2.2.0) */
.sr-materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}
.sr-materials-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #334155;
}
.sr-materials-card strong {
  display: block;
  color: #1e293b;
  font-size: 15px;
  margin-bottom: 4px;
}
.sr-scene-quote {
  background: #fffbeb;
  border-left: 4px solid #d97706;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 16px 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #451a03;
}
.sr-scene-quote cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 13.5px;
  font-weight: 600;
  color: #92400e;
}
.sr-tip-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #14532d;
}
.sr-pixel-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #1e3a8a;
}

/* Fix Root theme -40px blockquote protrusion & ul margin inside editorial boxes (ver 2.2.1) */
.entry-content blockquote.sr-scene-quote {
  margin: 18px 0 22px !important;
  padding: 15px 18px !important;
  background: #fffbeb !important;
  border-left: 4px solid #d97706 !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: 0 10px 10px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.entry-content blockquote.sr-scene-quote:before {
  display: none !important;
}
.entry-content .sr-cluster-links ul {
  margin: 0 !important;
  padding: 0 !important;
}
