/* ── Guides section shared styles ── */

/* ── Hub page ── */
.guide-hub-main {
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem) var(--space);
    padding-bottom: 2rem;
}
.hub-hero {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    animation: fadeUp 0.5s ease both;
}
.hub-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}
.hub-hero h1 span { color: var(--accent); }
.hub-hero p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

.hub-category { margin-bottom: 3rem; animation: fadeUp 0.5s 0.1s ease both; }
.hub-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--border);
}
.hub-category-icon { font-size: 1.4rem; }
.hub-category-header h2 { font-size: 1.05rem; font-weight: 700; color: var(--text); flex: 1; }
.hub-cat-count {
    font-size: 0.68rem; color: var(--muted);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; padding: 2px 10px;
}
.hub-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}
.hub-article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.hub-article-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.09); border-color: var(--accent); }
.hub-article-card .hac-icon { font-size: 1.2rem; margin-bottom: 0.1rem; }
.hub-article-card .hac-title { font-size: 0.9rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.hub-article-card .hac-desc { font-size: 0.76rem; color: var(--muted); line-height: 1.45; }
.hub-article-card .hac-read { font-size: 0.67rem; color: var(--accent); font-weight: 600; margin-top: auto; padding-top: 0.5rem; }

/* ── Article pages ── */
.guide-main {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem) var(--space);
    padding-bottom: 2rem;
}

.breadcrumb {
    font-size: 0.76rem; color: var(--muted);
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.article-category-pill {
    display: inline-block;
    background: rgba(0,119,170,0.1); color: var(--accent);
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 0.75rem;
}
.article-hero { margin-bottom: 1.75rem; animation: fadeUp 0.5s ease both; }
.article-hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.3rem);
    font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.65rem;
}
.article-hero h1 span { color: var(--accent); }
.article-meta {
    font-size: 0.76rem; color: var(--muted);
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.read-time {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; padding: 2px 10px; font-size: 0.68rem;
}

.article-intro {
    font-size: clamp(0.93rem, 2.5vw, 1.03rem);
    color: var(--muted); line-height: 1.72;
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    animation: fadeUp 0.5s 0.05s ease both;
}

.guide-section {
    margin-bottom: 2rem;
    animation: fadeUp 0.5s 0.1s ease both;
}
.guide-section h2 {
    font-size: clamp(1.05rem, 3vw, 1.3rem);
    font-weight: 700; letter-spacing: -0.01em;
    margin-bottom: 0.8rem; color: var(--text);
}
.guide-section h2 span { color: var(--accent); }
.guide-section p {
    font-size: clamp(0.87rem, 2.5vw, 0.96rem);
    color: var(--muted); line-height: 1.72; margin-bottom: 0.85rem;
}
.guide-section p:last-child { margin-bottom: 0; }
.guide-section p strong { color: var(--text); }

/* Chart cards */
.chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 1.25rem 1.25rem 1rem;
    margin: 1.5rem 0;
}
.chart-title {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--muted); margin-bottom: 14px;
}
.chart-wrap { position: relative; }

/* Callout boxes */
.callout {
    border-radius: var(--card-radius);
    padding: 1rem 1.1rem;
    margin: 1.25rem 0;
    display: flex; gap: 0.75rem; align-items: flex-start;
}
.callout.tip    { background: rgba(0,136,80,0.07);  border: 1px solid rgba(0,136,80,0.22);  }
.callout.warn   { background: rgba(204,34,34,0.06); border: 1px solid rgba(204,34,34,0.2);  }
.callout.info   { background: rgba(0,119,170,0.07); border: 1px solid rgba(0,119,170,0.22); }
.callout.amber  { background: rgba(184,108,0,0.07); border: 1px solid rgba(184,108,0,0.25); }
.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.callout-body strong { display: block; font-size: 0.87rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.callout-body p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* Stat highlights */
.stat-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem; margin: 1.5rem 0;
}
.stat-highlight {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--card-radius); padding: 1rem; text-align: center;
}
.sh-num {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 700; font-family: 'JetBrains Mono', monospace;
    color: var(--accent2); line-height: 1; margin-bottom: 0.3rem;
}
.sh-num.blue  { color: var(--accent); }
.sh-num.red   { color: var(--danger); }
.sh-num.amber { color: var(--diesel); }
.sh-lbl {
    font-size: 0.66rem; text-transform: uppercase;
    letter-spacing: 0.07em; font-weight: 600;
    color: var(--muted); line-height: 1.3;
}

/* Key points list */
.key-points { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin: 0.75rem 0; }
.key-points li {
    display: flex; align-items: flex-start; gap: 0.65rem;
    font-size: clamp(0.86rem, 2.5vw, 0.94rem); color: var(--muted); line-height: 1.5;
}
.kp-icon {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px;
    background: var(--surface2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; margin-top: 1px;
}
.key-points li strong { color: var(--text); }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; margin: 1.25rem 0; }
.compare-table th {
    background: var(--surface2); font-size: 0.68rem;
    text-transform: uppercase; letter-spacing: 0.07em;
    font-weight: 700; color: var(--muted);
    padding: 8px 12px; text-align: left; border-bottom: 2px solid var(--border);
}
.compare-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--muted); }
.compare-table td:first-child { color: var(--text); font-weight: 600; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .good  { color: var(--accent2); font-weight: 700; }
.compare-table .bad   { color: var(--danger);  font-weight: 700; }
.compare-table .mid   { color: var(--diesel);  font-weight: 700; }

/* Step boxes (misfuelling etc.) */
.steps { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; }
.step-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--card-radius); padding: 1rem 1.1rem;
    display: flex; gap: 1rem; align-items: flex-start;
}
.step-num {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; font-family: 'JetBrains Mono', monospace;
}
.step-num.red-num { background: var(--danger); }
.step-num.green-num { background: var(--accent2); }
.step-body strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.step-body p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* Related articles */
.related-articles {
    margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.related-articles h3 {
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.08em; font-weight: 700; color: var(--muted); margin-bottom: 1rem;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.75rem; }
.related-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--card-radius); padding: 0.9rem 1rem;
    text-decoration: none; display: block;
    transition: transform 0.15s, box-shadow 0.15s;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.rc-cat { font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--accent); margin-bottom: 0.3rem; }
.rc-title { font-size: 0.86rem; font-weight: 700; color: var(--text); line-height: 1.3; }

/* Back to guides link */
.back-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.8rem; font-weight: 600; color: var(--accent);
    text-decoration: none; margin-bottom: 1.5rem;
    padding: 0.4rem 0;
}
.back-link:hover { text-decoration: underline; }

/* Search bar on hub */
.guide-search-wrap {
    max-width: 420px; margin: 1.25rem auto 0;
    position: relative;
}
.guide-search-wrap input {
    width: 100%; padding: 0.65rem 1rem 0.65rem 2.5rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; font-family: inherit; font-size: 0.9rem;
    color: var(--text); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.guide-search-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,119,170,0.1); }
.guide-search-wrap .search-icon {
    position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 0.9rem; pointer-events: none;
}

/* Find prices CTA strip */
.find-prices-strip {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(0,119,170,0.07) 0%, rgba(0,136,80,0.06) 100%);
    border: 1px solid rgba(0,119,170,0.2);
    border-radius: var(--card-radius);
    padding: 1.25rem 1.5rem;
}
.fps-content { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.fps-text strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.fps-text span { font-size: 0.83rem; color: var(--muted); }
.fps-form { display: flex; gap: 0.5rem; margin-left: auto; }
.fps-input {
    padding: 0.5rem 0.85rem; border: 1px solid var(--border);
    border-radius: 8px; font-size: 0.88rem; font-family: inherit;
    background: var(--bg); color: var(--text);
    width: 130px; outline: none; transition: border-color 0.2s;
}
.fps-input:focus { border-color: var(--accent); }
.fps-btn {
    padding: 0.5rem 1rem; background: var(--accent); color: #fff;
    border: none; border-radius: 8px; font-size: 0.88rem; font-weight: 700;
    font-family: inherit; cursor: pointer; white-space: nowrap; transition: background 0.2s;
}
.fps-btn:hover { background: #005f8a; }
@media (max-width: 540px) {
    .find-prices-strip .fps-form { margin-left: 0; width: 100%; }
    .fps-input { flex: 1; min-width: 0; }
}

@media (min-width: 768px) {
    .guide-main     { padding-bottom: 16rem; }
    .guide-hub-main { padding-bottom: 16rem; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@media (max-width: 600px) {
    .hub-articles-grid { grid-template-columns: 1fr 1fr; }
    .stat-highlights   { grid-template-columns: repeat(2, 1fr); }
    .related-grid      { grid-template-columns: 1fr; }
    .compare-table     { font-size: 0.78rem; }
    .compare-table td, .compare-table th { padding: 7px 8px; }
}
@media (max-width: 380px) {
    .hub-articles-grid { grid-template-columns: 1fr; }
}
