/* Oppaat (GuidesScreen + GuideScreen 1:1) */
.eb-guides-section { padding: 0; }
/* .eb-container.eb-guides: korkeampi spesifisyys kuin woocommerce.css .eb-container (footer-väli) */
.eb-container.eb-guides { padding-bottom: 72px; }

.eb-bchips { display: flex; flex-wrap: wrap; gap: 8px; }
.eb-bchip { font-family: var(--font-text); font-weight: 600; font-size: 13px; padding: 9px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--border); background: var(--surface); color: var(--fg1); cursor: pointer; transition: all .14s; }
.eb-bchip:hover { border-color: var(--border-strong); }
.eb-bchip.sel { border-color: var(--ink-900); background: var(--ink-900); color: #fff; }

.eb-ghead { background: var(--ink-900); border-radius: var(--r-lg); position: relative; overflow: hidden; margin-top: 28px; }
.eb-ghead .inner { position: relative; z-index: 2; padding: 48px 56px; max-width: 640px; }
.eb-ghead h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 4vw, 52px); line-height: .96; letter-spacing: -.02em; color: #fff; margin: 0 0 14px; }
.eb-ghead p { color: var(--steel-300); font-size: 16px; margin: 0; max-width: 480px; }

.eb-gfilters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 26px 0 24px; }
.eb-gtype { display: inline-flex; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
.eb-gtype button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; font-family: var(--font-text); font-weight: 600; font-size: 13px; color: var(--fg2); padding: 8px 16px; border-radius: var(--r-pill); cursor: pointer; transition: all .14s; }
.eb-gtype button:hover { color: var(--fg1); }
.eb-gtype button.sel { background: var(--ink-900); color: #fff; }
.eb-gtype button.sel svg { color: var(--volt-500); }
.eb-gchips { display: flex; gap: 8px; flex-wrap: wrap; }

.eb-gthumb { position: relative; aspect-ratio: 16/9; background: var(--ink-800); border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; background-image: linear-gradient(var(--ink-700) 1px, transparent 1px), linear-gradient(90deg, var(--ink-700) 1px, transparent 1px); background-size: 36px 36px; }
.eb-gthumb .bgico { color: var(--ink-600); position: absolute; display: grid; place-items: center; }
.eb-gthumb .play { position: relative; z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: var(--volt-500); color: var(--ink-900); display: grid; place-items: center; box-shadow: 0 6px 22px rgba(194,240,44,.35); transition: transform .16s; }
.eb-gthumb .play svg { margin-left: 3px; }
.eb-gcard:hover .eb-gthumb .play, .eb-gfeat:hover .eb-gthumb .play { transform: scale(1.1); }
.eb-gthumb .dur { position: absolute; bottom: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-weight: 600; font-size: 11px; color: #fff; background: rgba(13,15,11,.78); border-radius: var(--r-xs); padding: 4px 8px; white-space: nowrap; }
.eb-gthumb .typ { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--volt-500); background: rgba(13,15,11,.78); border-radius: var(--r-xs); padding: 4px 8px; }
.eb-gthumb.big .play { width: 68px; height: 68px; }

.eb-gcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; text-decoration: none; }
.eb-gcard:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.eb-gcard .eb-gthumb { border-radius: 0; }
.eb-gcard .gbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.gmeta-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gcat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-500); white-space: nowrap; }
.eb-gcard h3 { font-family: var(--font-text); font-weight: 700; font-size: 16px; line-height: 1.3; margin: 0; color: var(--fg1); }
.eb-gcard p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fg2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eb-gcard .gact { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13px; color: var(--info); }

.eb-gdiff { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-text); font-weight: 600; font-size: 11.5px; color: var(--fg2); white-space: nowrap; }
.eb-gdiff .dot { width: 8px; height: 8px; border-radius: 50%; }
.eb-gdiff.beginner .dot { background: var(--success); }
.eb-gdiff.intermediate .dot { background: var(--warning); }
.eb-gdiff.advanced .dot { background: var(--danger); }
.upd { font-family: var(--font-mono); font-size: 11.5px; color: var(--steel-500); }

.eb-gfeat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: box-shadow .18s, transform .18s; text-decoration: none; }
.eb-gfeat:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.eb-gfeat .eb-gthumb { border-radius: 0; aspect-ratio: auto; min-height: 300px; }
.eb-gfeat .fbody { padding: 32px 34px; display: flex; flex-direction: column; gap: 13px; justify-content: center; align-items: flex-start; }
.eb-gfeat h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1.05; letter-spacing: -.01em; margin: 0; color: var(--fg1); }
.eb-gfeat p { margin: 0; font-size: 14px; color: var(--fg2); }
.eb-gfeat .fmeta { display: flex; align-items: center; gap: 16px; }

.eb-gempty { text-align: center; padding: 64px 20px; color: var(--fg2); }
.eb-gempty svg { color: var(--steel-300); margin-bottom: 10px; }

/* Lukija */
.eb-greader { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.gmain { min-width: 0; }
.gtitle { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.04; letter-spacing: -.015em; margin: 0 0 12px; }
.glede { font-size: 16.5px; line-height: 1.55; color: var(--fg2); margin: 0 0 24px; max-width: 640px; }
.eb-gplayer { position: relative; aspect-ratio: 16/9; background: var(--ink-900); border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; cursor: pointer; }
.eb-gplayer .bgico { color: var(--ink-600); position: absolute; }
.eb-gplayer .play.big { position: relative; z-index: 2; width: 84px; height: 84px; border-radius: 50%; background: var(--volt-500); color: var(--ink-900); display: grid; place-items: center; box-shadow: 0 10px 34px rgba(194,240,44,.4); transition: transform .16s; }
.eb-gplayer .play.big svg { margin-left: 4px; }
.eb-gplayer:hover .play.big { transform: scale(1.08); }
.eb-gplayer .dur { position: absolute; bottom: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-weight: 600; font-size: 12px; color: #fff; background: rgba(13,15,11,.78); border-radius: var(--r-xs); padding: 5px 9px; }
.eb-gembed { aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; }
.eb-gembed iframe { width: 100%; height: 100%; border: 0; display: block; }

.eb-gwarn { display: flex; gap: 13px; background: var(--warning-bg); border: 1px solid rgba(229,146,27,.35); border-radius: var(--r-md); padding: 16px 18px; margin-top: 24px; }
.eb-gwarn svg { color: var(--warning); flex: none; margin-top: 1px; }
.eb-gwarn b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.eb-gwarn span { font-size: 13px; line-height: 1.55; color: var(--fg2); }
/* Gutenberg-lohkot oppaan sisällössä: Huomio-laatikko + numeroidut vaiheet */
.eb-callout { display: flex; gap: 13px; border-radius: var(--r-md); padding: 16px 18px; margin: 24px 0; border: 1px solid var(--border); background: var(--surface); }
.eb-callout svg { flex: none; margin-top: 1px; }
.eb-callout-body b { display: block; font-size: 13.5px; margin-bottom: 3px; color: var(--fg1); }
.eb-callout-body span { font-size: 13px; line-height: 1.55; color: var(--fg2); }
.eb-callout--warning { background: var(--warning-bg); border-color: rgba(229,146,27,.35); }
.eb-callout--warning svg { color: var(--warning); }
.eb-callout--info { background: var(--info-bg); border-color: rgba(46,107,255,.3); }
.eb-callout--info svg { color: var(--info); }
.eb-callout--tip { background: var(--volt-100); border-color: var(--volt-600); }
.eb-callout--tip svg { color: var(--volt-700); }

.eb-steps-block { margin: 28px 0; display: flex; flex-direction: column; gap: 24px; }
.eb-gstep-row { display: flex; gap: 14px; }
.eb-gstep-row .n { font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--volt-700); flex: none; padding-top: 5px; }
.eb-gstep-main h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 18px; letter-spacing: -.01em; margin: 0 0 4px; color: var(--fg1); }
.eb-gstep-main p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg2); }

/* Gutenberg-sisällön prose-tyylit (the_content) */
.eb-guide-prose { max-width: 720px; }
.eb-guide-prose > :first-child { margin-top: 0; }
.eb-guide-prose h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 22px; letter-spacing: -.01em; margin: 38px 0 12px; color: var(--fg1); scroll-margin-top: 100px; }
.eb-guide-prose h3 { font-family: var(--font-text); font-weight: 700; font-size: 18px; margin: 28px 0 10px; color: var(--fg1); }
.eb-guide-prose h4 { font-family: var(--font-text); font-weight: 700; font-size: 15px; margin: 22px 0 8px; color: var(--fg1); }
.eb-guide-prose p { font-size: 15px; line-height: 1.7; color: var(--fg2); margin: 0 0 16px; }
.eb-guide-prose ul, .eb-guide-prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--fg2); line-height: 1.7; }
.eb-guide-prose li { margin: 0 0 7px; font-size: 15px; }
.eb-guide-prose strong, .eb-guide-prose b { color: var(--fg1); font-weight: 700; }
.eb-guide-prose a { color: var(--info); }
.eb-guide-prose a:hover { text-decoration: underline; }
.eb-guide-prose img { border-radius: var(--r-md); margin: 18px 0; height: auto; }
.eb-guide-prose figure { margin: 18px 0; }
.eb-guide-prose blockquote { border-left: 3px solid var(--volt-500); padding-left: 16px; margin: 18px 0; color: var(--fg1); }

.eb-gsec { margin-top: 36px; }
.eb-gsec h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 21px; display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; color: var(--fg1); }
.eb-gsec h2 .n { font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--volt-700); }
.eb-gsec p, .eb-gsec-body { margin: 0; font-size: 15px; line-height: 1.65; color: var(--fg2); max-width: 640px; }
.eb-gsec-body p { margin: 0 0 12px; }
.eb-gsec-body ul, .eb-gsec-body ol { padding-left: 20px; color: var(--fg2); line-height: 1.6; }

.eb-gtoc, .eb-gtools { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 18px 14px; margin-bottom: 18px; }
.eb-gtoc h5, .eb-gtools h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-500); margin: 0 0 10px; font-weight: 600; }
.eb-gtoc button { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; font-family: var(--font-text); font-weight: 600; font-size: 13px; color: var(--fg2); padding: 7px 0; cursor: pointer; line-height: 1.35; border-bottom: 1px solid var(--border); }
.eb-gtoc button:last-child { border-bottom: 0; }
.eb-gtoc button:hover { color: var(--fg1); }
.eb-gtoc button .n { font-family: var(--font-mono); font-size: 11px; color: var(--volt-700); flex: none; }
.eb-gtools .trow { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--fg2); padding: 5px 0; }
.eb-gtools .trow svg { color: var(--steel-400); flex: none; }
.eb-gtools .trow.none svg { color: var(--success); }
/* Pillar/spoke -hakemisto */
.eb-spokes { margin-top: 40px; }
.eb-spoke-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.eb-spoke-card { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.eb-spoke-card:hover { border-color: var(--ink-900); box-shadow: var(--shadow-sm); transform: translateY(-2px); text-decoration: none; }
.eb-spoke-card .t { grid-column: 1; font-family: var(--font-text); font-weight: 700; font-size: 15px; color: var(--fg1); }
.eb-spoke-card .x { grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--fg2); line-height: 1.45; }
.eb-spoke-card svg { grid-column: 2; grid-row: 1 / 3; color: var(--steel-400); }
@media (max-width: 560px) { .eb-spoke-grid { grid-template-columns: 1fr; } }

.gside { position: sticky; top: 96px; }
.eb-gside-cta { background: var(--ink-900); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.eb-gside-cta b { color: #fff; font-size: 15px; }
.eb-gside-cta span { color: var(--steel-400); font-size: 12.5px; line-height: 1.5; margin-bottom: 6px; }

@media (max-width: 900px) {
  .eb-greader { grid-template-columns: 1fr; }
  .gside { position: static; }
  .eb-grid--3 { grid-template-columns: 1fr; }
  .eb-gfeat { grid-template-columns: 1fr; }
  .eb-gfeat .eb-gthumb { min-height: 200px; }
  .eb-ghead .inner { padding: 36px 28px; }
}
