/* ===================================
   Guides (/guides, /guides/{slug}), gift hub (/gifts), about and tracker
   landing pages. Builds on the .info-page / .info-card styles in style.css.
   =================================== */

.guide-page { max-width: 860px; }

.guide-crumbs {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
}
.guide-crumbs a { color: var(--color-gray); text-decoration: none; }
.guide-crumbs a:hover { text-decoration: underline; }

.guide-header h1 {
    font-size: 2.4rem;
    line-height: 1.15;
}
.guide-dek {
    font-size: 1.15rem;
    color: #444;
    line-height: 1.55;
    margin: 0.75rem 0 1rem;
}
.guide-byline {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}
.guide-byline a { color: var(--color-forest-light); }

.guide-draft-note {
    background: #fff4e0;
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
}

.guide-hero { margin: 0 -2.25rem 1.75rem; }
.guide-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
}

.guide-body { font-size: 1.05rem; }
.guide-body h2 { font-size: 1.55rem; margin-top: 2.25rem; }
.guide-body h3 { font-size: 1.15rem; color: var(--color-forest); }
.guide-body blockquote {
    border-left: 4px solid var(--color-gold);
    margin: 1.25rem 0;
    padding: 0.25rem 0 0.25rem 1rem;
    font-style: italic;
    color: #444;
}
.guide-body .info-table { margin-bottom: 1.25rem; }

.guide-figure { margin: 1.5rem 0; }
.guide-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
.guide-figure figcaption {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 0.4rem;
}

/* Numbered gift / idea items */
.guide-pick {
    border-top: 1px solid var(--color-cream-dark);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}
.guide-pick h3 { margin-top: 0; font-size: 1.2rem; }
.guide-pick-meta {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-top: -0.3rem;
}

/* Calls to action */
.guide-cta {
    background: var(--color-cream);
    border: 1px solid var(--color-cream-dark);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.4rem;
    margin: 1.75rem 0;
}
.guide-cta-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-forest);
    font-weight: 700;
    margin-bottom: 0.35rem !important;
}
.guide-cta .btn { margin-top: 0.25rem; }

/* Product cards */
.guide-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}
.info-card a.guide-product,
a.guide-product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-cream-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    color: var(--color-charcoal);
    text-decoration: none;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
a.guide-product:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guide-product img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: var(--color-cream);
}
.guide-product-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem 1rem 1rem;
    flex: 1;
}
.guide-product-name { font-size: 1rem; line-height: 1.3; }
.guide-product-why { font-size: 0.9rem; color: #555; line-height: 1.45; }
.guide-product-price { font-weight: 700; color: var(--color-forest); }
.guide-product-link { margin-top: auto; font-size: 0.9rem; color: var(--color-forest-light); }

.guide-shop {
    border-top: 1px solid var(--color-cream-dark);
    margin-top: 2rem;
    padding-top: 0.5rem;
}

.guide-authors {
    background: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: 2rem;
    font-size: 0.95rem;
}
.guide-authors p:last-child { margin-bottom: 0; }

/* Guide cards (index, related, gift hub) */
.guide-related { margin-top: 2rem; }
.guide-related > h2,
.guides-section > h2 {
    font-size: 1.5rem;
    color: var(--color-forest);
    margin-bottom: 1rem;
}
.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.1rem;
}
.info-card a.guide-card,
.guide-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    color: var(--color-charcoal);
    text-decoration: none;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.info-card a.guide-card { text-decoration: none; color: var(--color-charcoal); border: 1px solid var(--color-cream-dark); }
.guide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guide-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.guide-card-section {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-wood);
    padding: 0.75rem 1rem 0;
}
.guide-card strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.3;
    padding: 0.3rem 1rem 0;
}
.guide-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    padding: 0.4rem 1rem 1rem;
    margin: 0;
}

.guides-index { max-width: 1100px; }
.guides-intro { margin-bottom: 2rem; }
.guides-section { margin-bottom: 2.5rem; }

/* Gift hub and landing pages */
.landing-page { max-width: 1000px; }
.landing-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.landing-hero img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
.landing-hero .btn { margin: 0.25rem 0.5rem 0.25rem 0; }
.landing-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-wood);
    font-weight: 700;
    margin-bottom: 0.5rem !important;
}
.landing-steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 1rem 0 1.5rem !important;
    padding: 0;
}
.landing-steps li {
    counter-increment: step;
    background: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    margin: 0;
}
.landing-steps li::before {
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--color-forest);
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.landing-steps strong { display: block; margin-bottom: 0.2rem; }
.landing-faq details {
    border-bottom: 1px solid var(--color-cream-dark);
    padding: 0.75rem 0;
}
.landing-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--color-forest);
}
.landing-faq details p { margin: 0.5rem 0 0; }
.landing-note { font-size: 0.9rem; color: var(--color-gray); }

.about-person {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.25rem;
    align-items: start;
    margin: 1.25rem 0;
    scroll-margin-top: 7rem;
}
.about-person img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 700px) {
    .guide-header h1 { font-size: 1.8rem; }
    .guide-hero { margin: 0 -1.25rem 1.5rem; }
    .landing-hero { grid-template-columns: 1fr; }
    .about-person { grid-template-columns: 1fr; }
    .about-person img { width: 120px; height: 120px; }
}

/* Guide cards on the home and product pages */
.home-guides .guide-cards {
    max-width: 1000px;
    margin: 1.5rem auto 0;
    grid-template-columns: repeat(auto-fit, minmax(230px, 310px));
    justify-content: center;
}
.guide-card strong:last-child { padding-bottom: 1.1rem; }
.home-guides-more { text-align: center; margin-top: 1.25rem; }
.home-guides-more a { color: var(--color-forest-light); font-weight: 700; }
.related-guides { max-width: 1000px; margin: 2.5rem auto; padding: 0 1rem; }
.related-guides h2 { font-size: 1.5rem; color: var(--color-forest); margin-bottom: 1rem; }
.product-guides .guide-cards,
.product-size-chart .guide-size-chart { margin-top: 1rem; }

/* Phone-framed screenshots */
.guide-phone { margin: 1.5rem auto; max-width: 260px; text-align: center; }
.guide-phone-frame {
    display: block;
    border: 8px solid #1d1d1f;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #1d1d1f;
}
.guide-phone-frame img { display: block; width: 100%; height: auto; }
.guide-phone figcaption,
.guide-tap-demo figcaption,
.guide-size-chart figcaption,
.guide-gift-steps figcaption { font-size: 0.85rem; color: var(--color-gray); margin-top: 0.6rem; }

/* Tap demo: pin photo -> phone screen */
.guide-tap-demo {
    display: grid;
    grid-template-columns: 1.6fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0;
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.guide-tap-demo-pin img { width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
.guide-tap-demo-phone { max-width: 190px; justify-self: center; }
.guide-tap-demo-arrow { width: 52px; color: var(--color-wood); }
.guide-tap-demo-label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--color-forest); margin-top: 0.5rem; text-align: center; }
.guide-tap-demo figcaption { grid-column: 1 / -1; margin: 0; }

/* Map size chart */
.guide-size-chart { margin: 1.75rem 0; }
.guide-size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.info-card a.guide-size,
a.guide-size {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.6rem 0.5rem 0.75rem;
    border: 1px solid var(--color-cream-dark);
    border-radius: var(--radius-md);
    color: var(--color-charcoal);
    text-decoration: none;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
a.guide-size:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guide-size svg { width: 100%; height: auto; margin-bottom: 0.3rem; }
.guide-size span { font-size: 0.85rem; color: var(--color-gray); }
.gsc-wall { fill: #f4efe6; }
.gsc-map { fill: #cfe3ee; stroke: #2d5a45; stroke-width: 1; }
.gsc-sofa { fill: #b9a58a; }
.gsc-floor { fill: #8b6b4a; }

/* Gift steps strip */
.guide-gift-steps { margin: 1.75rem 0; }
.guide-gift-steps ol {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 0 !important;
    padding: 0;
}
.guide-gift-steps li {
    background: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.92rem;
    line-height: 1.5;
}
.guide-gift-steps svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--color-forest);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 0.25rem;
}
.guide-gift-steps strong { color: var(--color-forest); }

/* Icon grid */
.guide-icon-grid { margin: 1.75rem 0; }
.guide-icon-grid ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 0 !important;
    padding: 0;
}
.guide-icon-grid li {
    background: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.92rem;
    line-height: 1.45;
}
.guide-icon-grid svg,
.guide-checklist svg,
.guide-download .btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.guide-icon-grid svg { width: 28px; height: 28px; color: var(--color-forest); margin-bottom: 0.2rem; }
.guide-icon-grid strong { color: var(--color-forest); }
.guide-icon-grid figcaption,
.guide-legend figcaption { font-size: 0.85rem; color: var(--color-gray); margin-top: 0.6rem; }

/* Pin color legend */
.guide-legend { margin: 1.5rem 0; }
.guide-legend ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
    margin: 0 !important;
    padding: 0.9rem 1.1rem;
    background: #1f2a33;
    border-radius: var(--radius-md);
}
.guide-legend li { display: flex; align-items: center; gap: 0.5rem; margin: 0 !important; color: #f3efe6; }
.guide-legend svg { width: 20px; height: 25px; flex: none; }
.guide-legend strong { display: block; font-size: 0.95rem; }
.guide-legend small { display: block; font-size: 0.75rem; opacity: 0.7; }

/* Buyer's checklist */
.guide-checklist {
    border: 2px solid var(--color-forest);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.3rem;
    margin: 1.75rem 0;
}
.guide-checklist-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: 0.6rem !important;
}
.guide-checklist ul { list-style: none; margin: 0 !important; padding: 0; }
.guide-checklist li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.55rem; }
.guide-checklist li svg { width: 20px; height: 20px; flex: none; margin-top: 0.2rem; color: var(--color-success); }
.guide-checklist li strong { display: block; color: var(--color-charcoal); }

/* Download card */
.guide-download {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    align-items: center;
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: 1.1rem;
    margin: 1.5rem 0;
}
.guide-download img { width: 100%; height: auto; border-radius: 4px; box-shadow: var(--shadow-md); background: #fff; }
.guide-download-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--color-forest); margin-bottom: 0.2rem !important; }
.guide-download-meta { font-size: 0.88rem; color: var(--color-gray); }
.guide-download .btn { display: inline-flex; align-items: center; gap: 0.45rem; }
.guide-download .btn svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
    .guide-download { grid-template-columns: 1fr; }
    .guide-download img { max-width: 220px; }
}

/* Two images side by side */
.guide-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.5rem 0; }
.guide-pair .guide-figure { margin: 0; }

@media (max-width: 700px) {
    .guide-tap-demo { grid-template-columns: 1fr; }
    .guide-tap-demo-arrow { transform: rotate(90deg); justify-self: center; }
    .guide-size-grid { grid-template-columns: repeat(2, 1fr); }
    .guide-gift-steps ol { grid-template-columns: 1fr; }
    .guide-pair { grid-template-columns: 1fr; }
}
