/* Foot Care Tips: the post list at /blog and each post at /blog/<slug>.
   Loaded after base.css, style.css and town.css (for .svc-hero). */

/* List */
.tips-hero .svc-hero__title { max-width: 22ch; }
.tips-list { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.tip-card { background: #fff; border: 1px solid #ece6d8; border-radius: var(--radius-xl); transition: box-shadow 200ms ease, transform 200ms ease; }
.tip-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -20px rgba(16, 32, 58, .34); }
.tip-card__link { display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: clamp(1.25rem, 3vw, 2rem); color: inherit; text-decoration: none; }
.tip-card__meta { font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-text); margin: 0; }
.tip-card__title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; color: var(--color-primary); margin: 0; text-wrap: balance; }
.tip-card--featured { border-color: var(--color-accent-light); background: var(--color-surface-warm); }
.tip-card--featured .tip-card__title { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 24ch; }
.tip-card__dek { color: var(--color-text-muted); line-height: 1.6; margin: 0; }
.tip-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .4rem; font-weight: 600; font-size: var(--text-sm); color: var(--color-primary); }
.tip-card__more svg { width: 1.1em; height: 1.1em; transition: transform 200ms ease; }
.tip-card__link:hover .tip-card__more svg { transform: translateX(3px); }
.tip-card__link:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-xl); }
.tips-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: var(--space-6); }

/* Booking band at the foot of every blog page */
.tips-band { background: var(--color-surface-navy); color: var(--color-text-light); padding-block: clamp(1.75rem, 4vw, 2.5rem); }
.tips-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.tips-band__inner p { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 0; }

/* Post */
.post { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.post-head, .post-body { max-width: 46rem; }
.post-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: 1rem; }
.post-crumbs a { color: var(--color-primary); }
.post-title { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; color: var(--color-primary); text-wrap: balance; margin: 0 0 1.25rem; }
.post-byline { display: flex; align-items: center; gap: .85rem; margin-bottom: 2rem; }
.post-byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.post-byline p { margin: 0; display: flex; flex-direction: column; font-size: var(--text-sm); line-height: 1.45; }
.post-byline__name { font-weight: 600; color: var(--color-text); }
.post-byline__when { color: var(--color-text-muted); }

.post-body { font-size: 1.08rem; line-height: 1.75; }
.post-body > p, .post-body > ul, .post-body > ol { margin: 0 0 1.15rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: .45rem; }
.post-body li::marker { color: var(--color-accent-text); }
.post-body h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.25; color: var(--color-primary); margin: 2.4rem 0 .8rem; scroll-margin-top: 6rem; }
.post-body h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-primary); margin: 1.8rem 0 .6rem; }
.post-body a { color: var(--color-primary); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 3px; }
.post-body a:hover { color: var(--color-accent-text); }
.post-body strong { font-weight: 600; color: var(--color-text); }

.post-answer { background: var(--color-sage-subtle); border-left: 4px solid var(--color-sage); padding: 1rem 1.25rem; margin: 0 0 1.75rem; }
.post-answer p { margin: 0; }
.post-answer p + p { margin-top: .6rem; }

.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; background: var(--color-surface-warm); border: 1px solid var(--color-accent-light); border-radius: var(--radius-xl); padding: 1.25rem 1.5rem; margin: 2.25rem 0; }
.post-cta > div { flex: 1 1 18rem; }
.post-cta p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--color-text-muted); }
.post-cta .post-cta__title { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-primary); margin-bottom: .25rem; }
.post-body .post-cta .btn-primary { color: var(--color-on-accent); text-decoration: none; }

.post-faq details { border-bottom: 1px solid #e6e1d3; }
.post-faq details:first-child { border-top: 1px solid #e6e1d3; }
.post-faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; color: var(--color-primary); position: relative; list-style: none; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.4rem; line-height: 1; color: var(--color-accent-text); }
.post-faq details[open] summary::after { content: "–"; }
.post-faq__a { padding-bottom: 1rem; }
.post-faq__a p { margin: 0 0 .6rem; }

.post-related { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid #e6e1d3; }
.post-related h2 { font-size: 1.3rem; margin: 0 0 .75rem; }
.post-related ul { list-style: none; padding: 0; margin: 0; }
.post-related li { margin-bottom: .5rem; }
.post-related li::before { content: "→ "; color: var(--color-accent-text); }

/* Call and text line in the booking box */
.post-cta .post-cta__alt { margin-top: .6rem; color: var(--color-text); }
.post-body .post-cta__alt a { font-weight: 600; }

/* Ask Debbie form at the end of each post */
.ask { background: #fff; border: 1px solid #ece6d8; border-radius: var(--radius-xl); padding: clamp(1.25rem, 3vw, 2rem); margin: 2.75rem 0 0; }
.post-body .ask h2 { margin-top: 0; margin-bottom: .4rem; }
.post-body .ask__sub { color: var(--color-text-muted); font-size: 1rem; line-height: 1.55; margin: 0 0 1.25rem; }
.ask__row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 600px) { .ask__row { grid-template-columns: 1fr 1fr; } }
.ask label { display: block; font-size: .95rem; font-weight: 600; color: var(--color-primary); margin: 0 0 .3rem; }
.ask label span { font-weight: 400; color: var(--color-text-muted); }
.ask input, .ask textarea { display: block; width: 100%; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--color-text); background: #fff; border: 1px solid #cfc8b8; border-radius: var(--radius-lg); padding: .7rem .8rem; margin: 0 0 1rem; }
.ask textarea { min-height: 6.5rem; resize: vertical; }
.ask input:focus-visible, .ask textarea:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.ask__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ask__error { display: none; color: #a32d2d; font-weight: 600; font-size: .95rem; margin: 0 0 .9rem; }
.ask__error.is-visible { display: block; }
.ask .btn-primary { border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; }
.ask .btn-primary:disabled { opacity: .7; cursor: default; }
.post-body .ask__fine { font-size: .9rem; color: var(--color-text-muted); margin: .9rem 0 0; }
.ask__done { background: var(--color-sage-subtle); border-left: 4px solid var(--color-sage); padding: 1rem 1.25rem; }
.ask__done:focus { outline: none; }
.post-body .ask__done p { margin: 0; }
.ask__done strong { color: var(--color-primary); }
