/*
  χωρίς μεσίτη — guides (/odigoi/)
  Reading layout for long pages: a narrow text column, a contents list that stays in view,
  red-flag and safe-step cards. Semantic tokens only, no borders (see STYLEGUIDE.md).
*/


/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; font-size: var(--text-sm); color: var(--color-text-muted); }
.crumbs li + li::before { content: "›"; margin-right: var(--space-2); }
.crumbs a { color: inherit; }

/* Guide hero: words only, no picture */
.guide-hero { padding-block: var(--space-7) var(--space-8); }
.guide-hero .display { margin-top: var(--space-5); max-width: 18ch; }
.guide-hero .lead { margin-top: var(--space-5); max-width: 40rem; }
.guide-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); }

/* Short answer: the five rules, first thing on the page */
.answer { padding: var(--space-6) var(--space-7); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-md); }
.answer .h2 { margin-bottom: var(--space-5); }
.rules { list-style: none; display: grid; gap: var(--space-4); counter-reset: rule; }
.rules li { display: grid; grid-template-columns: 36px 1fr; gap: var(--space-4); align-items: baseline; counter-increment: rule; font-size: var(--text-lg); }
.rules li::before { content: counter(rule); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-success); color: var(--color-text-on-brand); font-size: var(--text-sm); font-weight: var(--weight-semibold); }

/* Body: contents on the left, text on the right. The band adds the tone, the grid keeps its own padding. */
.guide-band { padding-block: 0; }
.guide-band .flag, .guide-band .spoke, .guide-band .faq details { background: var(--color-bg); box-shadow: none; }
.guide-body { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-8); align-items: start; padding-block: var(--space-8) var(--space-9); }
.toc { position: sticky; top: calc(var(--header-height) + var(--space-5)); }
.toc summary { list-style: none; display: flex; align-items: center; min-height: var(--tap-min); font-weight: var(--weight-medium); margin-bottom: var(--space-3); }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; display: grid; gap: var(--space-1); }
.toc a { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--color-text-muted); font-size: var(--text-sm); text-decoration: none; }
.toc a:hover { background: var(--color-surface-sunken); color: var(--color-text); }
.toc a[aria-current="true"] { background: var(--color-bg); color: var(--color-text); box-shadow: var(--shadow-sm); }

/* The reading column: about 65 characters a line */
.prose { max-width: 42rem; }
.prose > section + section { margin-top: var(--space-9); }
.prose .h1 { margin-bottom: var(--space-5); font-size: var(--text-xl); }
.prose .h3 { margin-top: var(--space-6); }
.prose p { margin-top: var(--space-4); }
.prose p:first-child, .prose .h1 + p { margin-top: 0; }
.prose ol.steps { list-style: none; display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); }
.steps li p { margin-top: var(--space-1); color: var(--color-text-muted); }
.prose p a, .prose li a { color: var(--color-brand); }

/* Red flags: one scam per card, with what to do instead */
.flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.flag { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.flag h3 { color: var(--color-danger); font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-tight); font-variation-settings: var(--flare-heading); }
.flag p { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.flag .instead { margin-top: auto; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-success-soft); color: var(--color-success-text); }

/* A side note in the text: warning tone, for "if this already happened" */
.callout { margin-top: var(--space-6); padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); background: var(--color-warning-soft); color: var(--color-warning-text); }
.callout b { display: block; margin-bottom: var(--space-2); }
.callout p { margin-top: var(--space-2); }

/* Back to the contents, at the end of a section (phones only: on wide screens the contents stay in view) */
.to-toc { display: none; margin-top: var(--space-5); }

/* Closer, left-aligned like the text above it */
.closer-left { text-align: left; }
.closer-left .lead { margin-inline: 0; max-width: 38rem; }
.closer-left .hero-actions { justify-content: flex-start; }

/* Sources and the not-legal-advice note */
.sources { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface-sunken); }
.sources ol { margin-top: var(--space-4); padding-left: var(--space-5); display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.sources .disclaimer { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); }

/* The other guides in the set */
.spokes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.spoke { display: block; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: box-shadow var(--duration) var(--ease); }
.spoke:hover { box-shadow: var(--shadow-md); }
.spoke b { display: block; font-weight: var(--weight-semibold); }
.spoke span { display: block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--color-text-muted); }

/* The guides index (/odigoi/): one card per guide, newest first */
.guide-index { padding-block: var(--space-8) var(--space-9); }
.guide-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.guide-card { display: flex; flex-direction: column; height: 100%; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-bg); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: box-shadow var(--duration) var(--ease); }
.guide-card:hover { box-shadow: var(--shadow-md); }
.guide-card:hover .h2 { color: var(--color-brand); }
.guide-card-for { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-brand); }
.guide-card .h2 { margin-top: var(--space-3); }
.guide-card p { margin-top: var(--space-3); color: var(--color-text-muted); }
.guide-card .guide-meta { margin-top: auto; padding-top: var(--space-5); }

@media (max-width: 960px) {
  .guide-body { grid-template-columns: 1fr; gap: var(--space-6); padding-top: var(--space-7); }
  .toc { position: static; padding: var(--space-2) var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
  .guide-hero .toc { margin-top: var(--space-5); }
  .to-toc { display: block; }
  .toc summary { margin-bottom: 0; cursor: pointer; justify-content: space-between; }
  .toc summary::after { content: "+"; color: var(--color-brand); }
  .toc[open] summary { margin-bottom: var(--space-3); }
  .toc[open] summary::after { content: "−"; }
}
@media (max-width: 720px) {
  .answer { padding: var(--space-5); }
  .rules li { font-size: var(--text-md); grid-template-columns: 32px 1fr; gap: var(--space-3); }
  .rules li::before { width: 32px; height: 32px; }
  .flags, .spokes, .guide-list { grid-template-columns: 1fr; }
  .guide-card { padding: var(--space-5); }
  .sources { padding: var(--space-5); }
}
