/* guide-pages.css
 *
 * Styling for /gids and /gids/<slug>.
 *
 * Loaded *after* city-pages.css, and deliberately built on top of it: the
 * guides reuse .city-container, .city-hero, .city-section, .city-breadcrumb,
 * .city-link-list and .city-back-link rather than restating them. Everything
 * below is either a guide-specific component or a narrowing of a shared one.
 *
 * No new palette, no new type scale, no new spacing system — every colour here
 * is a token from colors.css. And no JavaScript: a guide is text with links in
 * it, and an <a> needs no help.
 */

/* --------------------------------------------------------------------------
 * Measure
 *
 * The city pages are a wide data table; a guide is prose. Long lines are the
 * single biggest thing that makes body copy hard to read, so the column is
 * capped at a comfortable measure and the page stays narrower than a city page.
 * -------------------------------------------------------------------------- */

.guide-container {
    max-width: 820px;
}

.guide-hero {
    margin-bottom: 2.25rem;
}

.guide-lead {
    font-size: 1.15rem;
    color: var(--color-text);
}

.guide-meta {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* --------------------------------------------------------------------------
 * Key points — the takeaway block above the article body
 * -------------------------------------------------------------------------- */

.guide-keypoints {
    margin: 0 0 2.5rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--border-radius-3);
    background-color: var(--color-surface);
}

.guide-keypoints-title {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.guide-keypoints ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.guide-keypoints li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.6;
}

.guide-keypoint-icon {
    flex-shrink: 0;
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.2em;
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
 * Article body
 * -------------------------------------------------------------------------- */

.guide-section {
    margin-bottom: 2.5rem;
}

.guide-section h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    margin-bottom: 0.7rem;
    line-height: 1.25;
}

.guide-section p {
    line-height: 1.75;
    margin-bottom: 1rem;
    max-width: 70ch;
}

/* Inline links in prose follow the brand colour, not the Bootstrap blue, and
 * carry an underline: in a wall of text colour alone is not a reliable signal. */
.guide-section p a,
.guide-list a,
.guide-lead a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.guide-section p a:hover,
.guide-list a:hover,
.guide-lead a:hover,
.guide-section p a:focus-visible,
.guide-list a:focus-visible,
.guide-lead a:focus-visible {
    color: var(--color-primary-700);
}

.guide-list {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
    max-width: 70ch;
}

.guide-list li {
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.guide-list--ol {
    list-style: decimal;
}

.guide-list--ul {
    list-style: disc;
}

/* --------------------------------------------------------------------------
 * Feature cards — where a guide hands the reader the tool
 * -------------------------------------------------------------------------- */

.guide-feature-grid,
.guide-card-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.guide-feature-card {
    display: flex;
    gap: 0.9rem;
    height: 100%;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-3);
    background-color: var(--color-bg);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-feature-card:hover,
.guide-feature-card:focus-visible {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    color: inherit;
    text-decoration: none;
}

.guide-feature-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--border-radius-3);
    background-color: rgba(var(--rgb-primary), 0.12);
    color: var(--color-primary);
}

.guide-feature-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.guide-feature-name {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-family-title);
    font-weight: 600;
    color: var(--color-text-strong);
}

.guide-feature-promise {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-muted);
}

.guide-feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.guide-feature-arrow {
    width: 1em;
    height: 1em;
    transition: transform 0.2s ease;
}

.guide-feature-card:hover .guide-feature-arrow,
.guide-card:hover .guide-feature-arrow {
    transform: translateX(2px);
}

/* --------------------------------------------------------------------------
 * Guide cards — the hub grid and "verder lezen"
 * -------------------------------------------------------------------------- */

.guide-card-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.guide-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    height: 100%;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-3);
    background-color: var(--color-bg);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover,
.guide-card:focus-visible {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    color: inherit;
    text-decoration: none;
}

.guide-card-title {
    font-family: var(--font-family-title);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--color-text-strong);
}

.guide-card-summary {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-muted);
}

.guide-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
 * Footer of a guide
 * -------------------------------------------------------------------------- */

.guide-back-link {
    margin-top: 0.5rem;
}

.guide-back-link a {
    color: var(--color-primary);
}

/* Keyboard focus must stay obvious on every card, which is a link with its
 * default outline suppressed by the shared reset. */
.guide-card:focus-visible,
.guide-feature-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .guide-keypoints {
        padding: 1rem;
    }

    .guide-feature-card,
    .guide-card {
        padding: 0.95rem 1rem;
    }
}
