/* =========================================================
   PlayGloba – blog, help centre and 404
   ========================================================= */

.blog-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.blog-tools .input-wrap { flex: 1; min-width: 220px; max-width: 380px; }
.blog-tools .f-input { padding-left: 38px; }
.blog-tools .f-select { width: auto; }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-chips button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink); }
.cat-chips button:hover { border-color: var(--green); }
.cat-chips button.is-active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.post-card:hover { border-color: #cde6d8; box-shadow: var(--shadow); }
.post-cover { height: 150px; display: flex; align-items: center; justify-content: center; border-radius: 0; position: relative; overflow: hidden; }
.post-cover .ic { width: 56px; height: 56px; stroke-width: 1.4; position: relative; }
.post-cover::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1.5px dashed currentColor; opacity: .25; }
.post-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.post-cat { font-size: 12px; font-weight: 600; color: var(--green); }
.post-cat a:hover { text-decoration: underline; }
.post-card h3 { font-size: 16.5px; line-height: 1.3; }
.post-card h3 a:hover { color: var(--green); }
.post-excerpt { font-size: 13.5px; color: var(--text); }
.post-card .meta { margin: 4px 0 0; }

.post-featured { flex-direction: row; margin-bottom: 22px; }
.post-featured .post-cover { width: 44%; height: auto; min-height: 260px; flex-shrink: 0; }
.post-featured .post-cover .ic { width: 90px; height: 90px; }
.post-featured .post-body { padding: 28px; align-content: center; }
.post-featured h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.015em; }
.post-featured .post-excerpt { font-size: 15px; }

/* Post page */
.container.narrow { max-width: 820px; }
.post-head { padding: 28px 0 22px; background: linear-gradient(180deg, #f7fbf9 0%, #fff 100%); }
.post-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin: 8px 0 12px; }
.post-lead { font-size: 17px; color: var(--text); }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.post-byline .avatar { width: 40px; height: 40px; font-size: 14px; }
.post-byline strong { display: block; color: var(--ink); font-size: 14px; }
.post-hero { height: 260px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; }
.post-hero .ic { width: 110px; height: 110px; stroke-width: 1.2; }

.post-layout { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 48px; justify-content: center; padding-top: 32px; padding-bottom: 20px; }
.post-toc { position: sticky; top: 96px; align-self: start; font-size: 13px; }
.post-toc ol { display: grid; gap: 8px; list-style: decimal; padding-left: 18px; color: var(--muted); }
.post-toc a:hover { color: var(--green); }
.prose { font-size: 16px; line-height: 1.75; }
.prose > p { font-size: 16px; margin-bottom: 18px; max-width: none; }
.prose h2 { font-size: 22px; margin: 32px 0 12px; letter-spacing: -0.01em; scroll-margin-top: 100px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 6px; }
.post-tip { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--green-soft); margin: 8px 0 22px; }
.post-tip .ic { color: var(--green); margin-top: 3px; }
.post-tip p { margin: 0; font-size: 15px; }
.post-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 20px 0; margin-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.post-share > span { margin-right: 6px; font-weight: 600; color: var(--ink); }
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px; border-radius: var(--radius-lg); background: #eaf6ef; margin-top: 8px; }
.post-cta h3 { font-size: 17px; margin-bottom: 4px; }
.post-cta p { font-size: 13.5px; margin: 0; }

/* Help centre */
.help-search { margin-top: 18px; max-width: 560px; }
.help-search .f-input { padding: 14px 14px 14px 42px; font-size: 15px; border-radius: 12px; }
.help-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.help-topic { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: left; }
.help-topic:hover, .help-topic.is-active { border-color: var(--green); }
.help-topic.is-active { background: var(--green-soft); }
.help-topic .ic { color: var(--green); }
.help-topic strong { color: var(--ink); font-size: 14.5px; }
.help-topic span { font-size: 12.5px; color: var(--muted); }
.help-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 10px; margin-bottom: 16px; }
.contact-card { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.contact-card .ic { color: var(--green); }
.contact-card strong { display: block; color: var(--ink); font-size: 14px; }
.contact-card span { font-size: 12.5px; color: var(--muted); }
mark { background: #fff3c4; color: inherit; border-radius: 3px; }

/* 404 */
.nf { text-align: center; padding: 70px 0 80px; }
.nf-num { font-size: clamp(90px, 18vw, 160px); font-weight: 800; letter-spacing: -0.05em; color: var(--green); line-height: 1; display: flex; justify-content: center; align-items: center; gap: 6px; }
.nf-num img { width: .8em; height: .8em; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nf h1 { font-size: 24px; margin: 18px 0 8px; }
.nf p { max-width: 440px; margin: 0 auto 22px; }
.nf-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; }
  .post-toc { position: static; margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
  .help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .post-featured { flex-direction: column; }
  .post-featured .post-cover { width: 100%; min-height: 170px; }
  .post-featured .post-body { padding: 18px; }
  .post-hero { height: 170px; }
}
.help-group { font-size: 16px; margin: 22px 0 4px; }
.help-group:first-child { margin-top: 0; }
.help-search .ic { left: 14px; }
.blog-tools .input-wrap, .help-search { position: relative; display: flex; }
.blog-tools .input-wrap > .ic, .help-search > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.cat-chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink); }
.cat-chips a:hover { border-color: var(--green); }
.cat-chips a.is-active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.post-toc strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin-bottom: 8px; }
.post-toc:empty { display: none; }
.prose h3 { font-size: 18px; margin: 24px 0 10px; scroll-margin-top: 100px; }
.help-faq { border-top: 1px solid var(--line); padding: 4px 0; }
.help-faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after { content: "+"; color: var(--green); font-weight: 700; }
.help-faq[open] summary::after { content: "\2212"; }
.help-faq p { padding: 0 0 14px; font-size: 14px; }
.help-topic { text-decoration: none; }

/* Locality hub + directory */
.hub-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hub-stats a { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.hub-stats a strong { color: var(--ink); font-size: 15px; margin-right: 4px; }
.hub-stats a:hover { border-color: var(--green); }
.hub-section { margin-bottom: 36px; }
.sport-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sport-link { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sport-link strong { display: block; color: var(--ink); font-size: 14px; }
.sport-link span { font-size: 12.5px; }
.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.link-cloud a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; background: #fff; }
.link-cloud a:hover, .link-cloud a.is-active { border-color: var(--green); color: var(--green); }
