/* ── Guides section (CPT) — editorial, image-focused, dark theme ───── */

.guide-wrap { max-width: 1180px; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }

/* ══════════════ ARCHIVE / TAXONOMY ══════════════ */
.guides-head { margin: 0 0 1.5rem; }
.guides-eyebrow { font-family: var(--f-sans); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }
.guides-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4.5vw, 44px); letter-spacing: -.01em; color: var(--ink); margin: 0 0 .6rem; }
.guides-intro { font-family: var(--f-serif); font-size: 16px; line-height: 1.65; color: var(--ink-3); max-width: 720px; margin: 0; }

/* author actions (visible to users who can create guides) */
.guides-author-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.1rem 0 0; align-items: center; }
.guides-new-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #1d1e0a; font-family: var(--f-sans); font-weight: 700; font-size: 13px; padding: 10px 18px; border-radius: 8px; text-decoration: none; transition: background .15s; }
.guides-new-btn:hover { background: var(--accent2); }
.guides-mine-link { font-family: var(--f-sans); font-size: 13px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.guides-mine-link:hover { color: var(--accent2); }

/* search + filter bar */
.guides-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 1.5rem 0 1rem; }
.guides-filter-q { flex: 1 1 240px; min-width: 200px; height: 44px; padding: 0 14px; background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); font-family: var(--f-sans); font-size: 14px; }
.guides-filter-q::placeholder { color: var(--ink-4); }
.guides-filter-q:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(169,178,91,.2); }
.guides-filter-sel { height: 44px; padding: 0 30px 0 12px; background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); font-family: var(--f-sans); font-size: 13px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0a39b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.guides-filter-sel option { background: #191a1a; color: var(--ink); }
.guides-filter-btn { height: 44px; padding: 0 20px; background: var(--accent); color: #1d1e0a; border: none; border-radius: 8px; font-family: var(--f-sans); font-weight: 700; font-size: 13px; cursor: pointer; transition: background .15s; }
.guides-filter-btn:hover { background: var(--accent2); }
.guides-filter-clear { align-self: center; font-family: var(--f-sans); font-size: 12px; color: var(--ink-4); text-decoration: none; }
.guides-filter-clear:hover { color: var(--accent2); }

.guides-cats { display: flex; flex-wrap: wrap; gap: 7px; margin: 1rem 0 2rem; }
.guides-cat {
  font-family: var(--f-sans); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--rule); background: transparent;
  color: var(--ink-3); text-decoration: none; transition: all .15s; white-space: nowrap;
}
.guides-cat:hover { border-color: var(--accent); color: var(--ink); }
.guides-cat.is-active { background: var(--accent); border-color: var(--accent); color: #1d1e0a; }

.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guides-grid { grid-template-columns: 1fr; } }

.guide-card { background: #191a1a; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .18s, transform .18s, box-shadow .18s; }
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.guide-card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #0f0f0f; }
.guide-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.guide-card:hover .guide-card-img { transform: scale(1.04); }
.guide-card-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#1c1d18,#232419); }
.guide-card-cat { position: absolute; left: 10px; top: 10px; font-family: var(--f-sans); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1d1e0a; background: var(--accent); padding: 4px 9px; border-radius: 3px; }
.guide-card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.guide-card-title { font-family: var(--f-display); font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.guide-card-title a { color: var(--ink); text-decoration: none; }
.guide-card-title a:hover { color: var(--accent2); }
.guide-card-excerpt { font-family: var(--f-serif); font-size: 13.5px; line-height: 1.55; color: var(--ink-3); margin: 0; flex: 1; }
.guide-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--f-sans); font-size: 11.5px; color: var(--ink-4); margin-top: .3rem; }
.guide-card-scale { color: var(--accent); font-weight: 700; }

.guides-pagination { display: flex; justify-content: center; gap: 6px; margin: 2.5rem 0 0; }
.guides-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); text-decoration: none; font-family: var(--f-sans); font-weight: 600; transition: all .15s; }
.guides-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent2); }
.guides-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #1d1e0a; }
.guides-empty { color: var(--ink-3); font-family: var(--f-serif); padding: 2rem 0; }

/* ══════════════ SINGLE GUIDE CHROME ══════════════ */
.guide-single .guide-wrap { max-width: 880px; }  /* single column, comfortable reading measure */
.guide-breadcrumbs { font-family: var(--f-sans); font-size: 12px; color: var(--ink-4); margin: 0 0 1.1rem; }
.guide-breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.guide-breadcrumbs a:hover { color: var(--accent2); }

.guide-meta { display: flex; align-items: center; gap: 12px; margin: 0 0 1.5rem; }
.guide-meta-avatar { border-radius: 50%; width: 40px; height: 40px; }
.guide-meta-author { display: block; font-family: var(--f-sans); font-weight: 700; font-size: 14px; color: var(--ink); }
.guide-meta-sub { font-family: var(--f-sans); font-size: 12px; color: var(--ink-4); }

/* two-column: sticky TOC + article */
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; gap: 1rem; } }
/* In-content Table of Contents (the guide's own «ΠΕΡΙΕΧΟΜΕΝΑ»): a static box at
   the top — it must NOT follow the scroll. */
.guide-toc { position: static !important; top: auto !important; border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.25rem; background: #191a1a; margin: 0 0 2rem; }
.guide-toc-title { font-family: var(--f-sans); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .7rem; }
.guide-toc ol { margin: 0; padding: 0 0 0 1.1rem; }
.guide-toc li { margin: 0 0 .5rem; }
.guide-toc a { font-family: var(--f-sans); font-size: 13px; line-height: 1.4; color: var(--ink-3); text-decoration: none; }
.guide-toc a:hover { color: var(--accent2); }
.guide-article { min-width: 0; }
.guide-article img { max-width: 100%; height: auto; }

/* Auto-hero for guides written in the normal editor (no custom HTML hero) */
.guide-auto-hero { margin: 0 0 1.75rem; }
.guide-auto-hero-media { border-radius: 10px; overflow: hidden; margin: 0 0 1.25rem; background: #0f0f0f; }
.guide-auto-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.guide-auto-hero-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4.5vw, 42px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .6rem; }
.guide-auto-hero-sub { font-family: var(--f-serif); font-size: 17px; line-height: 1.6; color: var(--ink-3); margin: 0; }

/* Base editorial typography for editor-written content */
.guide-article h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 3vw, 27px); color: var(--ink); margin: 2rem 0 .8rem; letter-spacing: -.01em; scroll-margin-top: 78px; }
.guide-article h3 { font-family: var(--f-display); font-weight: 700; font-size: 19px; color: var(--ink); margin: 1.5rem 0 .6rem; }
.guide-article p, .guide-article li { font-family: var(--f-serif); font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.guide-article ul, .guide-article ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.guide-article a { color: var(--accent2); text-decoration: underline; text-underline-offset: 2px; }
.guide-article a:hover { color: var(--accent); }
.guide-article img { border-radius: 8px; margin: 1rem 0; }
.guide-article figure { margin: 1.5rem 0; }
.guide-article figcaption { font-family: var(--f-sans); font-size: 12.5px; color: var(--ink-4); text-align: center; margin-top: .5rem; }
.guide-article blockquote { border-left: 3px solid var(--accent); padding-left: 1.1rem; margin: 1.5rem 0; color: var(--ink-3); font-style: italic; }

/* image lightbox */
.smg-lightbox { position: fixed; inset: 0; z-index: 9998; display: none; align-items: center; justify-content: center; background: rgba(8,8,8,.93); padding: 24px; cursor: zoom-out; }
.smg-lightbox.open { display: flex; }
.smg-lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 12px 45px rgba(0,0,0,.6); cursor: default; }
.smg-lightbox-close { position: absolute; top: 14px; right: 20px; background: none; border: none; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; opacity: .82; transition: opacity .15s, color .15s; }
.smg-lightbox-close:hover { opacity: 1; color: var(--accent2); }

/* related */
.guide-related { margin: 3rem 0 0; border-top: 1px solid var(--rule); padding-top: 2rem; }
.guide-related-title { font-family: var(--f-display); font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 1.2rem; }
.guide-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 700px) { .guide-related-grid { grid-template-columns: 1fr; } }
.guide-rcard { display: block; background: #191a1a; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; text-decoration: none; transition: border-color .18s, transform .18s; }
.guide-rcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-rcard-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.guide-rcard-title { display: block; padding: .8rem 1rem; font-family: var(--f-display); font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.guide-rcard:hover .guide-rcard-title { color: var(--accent2); }

/* author box */
.guide-author { display: flex; gap: 16px; align-items: flex-start; margin: 2.5rem 0 0; border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem 1.4rem; background: #191a1a; }
.guide-author-avatar { border-radius: 50%; width: 64px; height: 64px; flex-shrink: 0; }
.guide-author-name { font-family: var(--f-display); font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 .35rem; }
.guide-author-bio { font-family: var(--f-serif); font-size: 14px; line-height: 1.6; color: var(--ink-3); margin: 0 0 .5rem; }
.guide-author-link { font-family: var(--f-sans); font-size: 13px; font-weight: 600; color: var(--accent2); text-decoration: none; }
.guide-author-link:hover { color: var(--accent); }

/* ══════════════ FRONT-END SUBMISSION (submit-guide / my-guides) ══════════════ */
.smg-fe-form { max-width: 720px; display: flex; flex-direction: column; gap: 1.1rem; }
.smg-fe-label { display: flex; flex-direction: column; gap: .45rem; font-family: var(--f-sans); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.smg-fe-label span { color: #d9534f; }
.smg-fe-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 640px) { .smg-fe-row { grid-template-columns: 1fr; } }
.smg-fe-form input[type=text], .smg-fe-form input[type=email], .smg-fe-form select, .smg-fe-form textarea {
  background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; color: var(--ink);
  font-family: var(--f-sans); font-size: 15px; padding: 11px 14px; width: 100%;
}
.smg-fe-form textarea { font-family: var(--f-serif); line-height: 1.7; resize: vertical; min-height: 240px; }
.smg-fe-form input:focus, .smg-fe-form select:focus, .smg-fe-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(169,178,91,.18); }
.smg-fe-form input[type=file] { color: var(--ink-3); font-family: var(--f-sans); font-size: 13px; }
.smg-fe-form input::placeholder, .smg-fe-form textarea::placeholder { color: var(--ink-4); }
.smg-fe-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #1d1e0a; font-family: var(--f-sans); font-weight: 700; font-size: 14px; padding: 12px 26px; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; transition: background .15s; align-self: flex-start; }
.smg-fe-btn:hover { background: var(--accent2); color: #1d1e0a; }
.smg-fe-note { font-family: var(--f-serif); color: var(--ink-3); padding: 1rem 0; }
.smg-fe-note a { color: var(--accent2); }
.smg-fe-msg { border-radius: 8px; padding: 12px 16px; margin: 0 0 1.25rem; font-family: var(--f-sans); font-size: 14px; }
.smg-fe-ok { background: rgba(169,178,91,.12); border: 1px solid var(--accent); color: var(--ink); }
.smg-fe-err { background: rgba(217,83,79,.12); border: 1px solid #d9534f; color: #f0a5a2; }
.smg-fe-check { display: flex; align-items: flex-start; gap: 10px; font-family: var(--f-sans); font-size: 14px; color: #d0cec9; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: rgba(255,255,255,.02); cursor: pointer; }
.smg-fe-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; cursor: pointer; }
.mdl-private-note { font-family: var(--f-sans); font-size: 13px; color: #c9c7c5; background: rgba(255,255,255,.03); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 14px; margin: 0 0 .75rem; max-width: 620px; }
.mdl-private-note strong { color: var(--accent2); }
/* my-guides list */
.smg-fe-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.smg-fe-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border: 1px solid var(--rule); border-radius: 8px; background: #191a1a; margin-bottom: 8px; }
.smg-fe-tt { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
.smg-fe-tt a { color: var(--ink); text-decoration: none; }
.smg-fe-tt a:hover { color: var(--accent2); }
.smg-fe-badge { font-family: var(--f-sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.smg-fe-badge.smg-fe-ok { background: rgba(169,178,91,.15); color: var(--accent2); border: none; }
.smg-fe-badge.smg-fe-wait { background: rgba(245,158,11,.15); color: #f0b24a; border: none; }

/* ══════════════ MODELERS (directory + profile) ══════════════ */
.mdl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .mdl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mdl-grid { grid-template-columns: 1fr; } }
.mdl-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
  background: #191a1a; border: 1px solid var(--rule); border-radius: 10px; padding: 1.4rem 1rem; text-decoration: none;
  transition: border-color .18s, transform .18s; }
.mdl-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.mdl-card-av .mdl-av-img, .mdl-av-img { border-radius: 50%; width: 88px; height: 88px; object-fit: cover; }
.mdl-card-name { font-family: var(--f-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.mdl-card-bio { font-family: var(--f-serif); font-size: 12.5px; line-height: 1.5; color: #a0a39b; }
.mdl-card-guides { font-family: var(--f-sans); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

/* profile */
.mdl-hero { display: flex; gap: 1.6rem; align-items: flex-start; padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
@media (max-width: 560px) { .mdl-hero { flex-direction: column; align-items: center; text-align: center; } }
.mdl-hero-av .mdl-av-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rule); }
.mdl-hero-name { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 4vw, 36px); color: var(--ink); margin: 0 0 .3rem; }
.mdl-hero-user { font-family: var(--f-sans); font-size: 13px; color: var(--ink-4); margin: 0 0 .8rem; }
.mdl-hero-bio { font-family: var(--f-serif); font-size: 15.5px; line-height: 1.65; color: #d0cec9; margin: 0 0 1rem; max-width: 620px; }
.mdl-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .mdl-hero-tags { justify-content: center; } }
.mdl-tag { font-family: var(--f-sans); font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(169,178,91,.4); color: var(--accent); background: transparent; }
.mdl-tag-scale { color: var(--accent); border-color: rgba(169,178,91,.4); }
.mdl-tag-count { color: #1d1e0a; background: var(--accent); border-color: var(--accent); }
.mdl-edit-btn { margin-top: 1.1rem; }
.mdl-section-title { font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--ink); margin: 0 0 1.2rem; }
.mdl-edit-av { display: flex; align-items: center; gap: 14px; }
.mdl-edit-av img { border-radius: 50%; }
.mdl-hint { font-weight: 400; color: var(--ink-4); font-size: 12px; }

/* modeler links + stats on the guide */
a.guide-meta-author { text-decoration: none; }
a.guide-meta-author:hover { color: var(--accent2); }
.guide-meta-avlink { display: inline-flex; }
.guide-meta-stats { color: var(--accent); text-decoration: none; font-weight: 600; }
.guide-meta-stats:hover { color: var(--accent2); }
.guide-author-count { display: inline-block; margin-left: 8px; font-family: var(--f-sans); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #1d1e0a; background: var(--accent); padding: 2px 9px; border-radius: 999px; vertical-align: middle; }
.guide-author-name a { color: var(--ink); text-decoration: none; }
.guide-author-name a:hover { color: var(--accent2); }
