/* Page sections built in the admin. Builds on boards_shared.css (bs-*). */
.ps-subtitle { margin-top: 10px; font-size: 1.05rem; color: #e2fce8; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }
.ps-section { scroll-margin-top: 110px; }
.bs-card .bs-cms-content p:last-child { margin-bottom: 0; }
.bs-card .bs-cms-content + .ps-cards, .bs-card .bs-cms-content + .ps-stats, .bs-card .bs-cms-content + .ps-list,
.bs-card .bs-cms-content + .ps-table-wrap, .bs-card .bs-cms-content + .ps-figure, .bs-card .bs-cms-content + .ps-buttons { margin-top: 22px; }

/* colours */
.bs-card.accent-red { border-top: 4px solid #dc2626; }
.bs-card.accent-orange { border-top: 4px solid #ea580c; }
.bs-section-title .icon-box.teal { background: #ccfbf1; color: #0d9488; }
.bs-card.accent-teal { border-top: 4px solid #0d9488; }

/* cards */
.ps-cards { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ps-cards.ps-cols-1 { grid-template-columns: 1fr; }
.ps-cards.ps-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .ps-cards.ps-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ps-cards, .ps-cards.ps-cols-3 { grid-template-columns: 1fr; } }
.ps-card-text p { font-size: .92rem; line-height: 1.65; color: var(--bs-text); margin: 0 0 8px; }
.ps-card-text p:last-child { margin-bottom: 0; }
.bs-info-box.ps-tone-gold { border-left-color: var(--bs-gold); } .bs-info-box.ps-tone-gold h5 i { color: var(--bs-gold); }
.bs-info-box.ps-tone-blue { border-left-color: var(--bs-blue); } .bs-info-box.ps-tone-blue h5 i { color: var(--bs-blue); }
.bs-info-box.ps-tone-red { border-left-color: #dc2626; } .bs-info-box.ps-tone-red h5 i { color: #dc2626; }
.bs-info-box.ps-tone-orange { border-left-color: #ea580c; } .bs-info-box.ps-tone-orange h5 i { color: #ea580c; }
.bs-info-box.ps-tone-teal { border-left-color: #0d9488; } .bs-info-box.ps-tone-teal h5 i { color: #0d9488; }
.ps-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ps-badge { font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 4px 12px; background: var(--bs-primary-light); color: var(--bs-primary-dark); }
.ps-badge-gold { background: var(--bs-gold-light); color: #92400e; }
.ps-badge-blue { background: var(--bs-blue-light); color: #1e3a8a; }
.ps-badge-red { background: #fee2e2; color: #991b1b; }
.ps-badge-orange { background: #ffedd5; color: #9a3412; }
.ps-badge-teal { background: #ccfbf1; color: #115e59; }

/* numbers */
.ps-stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ps-stat { background: var(--bs-bg); border: 1px solid var(--bs-border); border-radius: 12px; padding: 20px 22px; border-top: 4px solid var(--bs-primary); }
.ps-stat.ps-tone-gold { border-top-color: var(--bs-gold); } .ps-stat.ps-tone-blue { border-top-color: var(--bs-blue); }
.ps-stat.ps-tone-red { border-top-color: #dc2626; } .ps-stat.ps-tone-orange { border-top-color: #ea580c; } .ps-stat.ps-tone-teal { border-top-color: #0d9488; }
.ps-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--bs-dark); line-height: 1.2; }
.ps-stat-label { font-weight: 700; color: var(--bs-text); margin-top: 6px; }
.ps-stat-note { font-size: .85rem; color: var(--bs-text-light); margin-top: 2px; }

/* list */
.ps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ps-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.ps-bullet { color: var(--bs-primary); flex: none; min-width: 20px; padding-top: 1px; }
.ps-bullet-number .ps-bullet { width: 26px; height: 26px; border-radius: 50%; background: var(--bs-primary-light); color: var(--bs-primary-dark); font-weight: 800; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }

/* table */
.ps-table-wrap { overflow-x: auto; border: 1px solid var(--bs-border); border-radius: 12px; }
.ps-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ps-table th { background: var(--bs-primary-dark); color: #fff; text-align: left; padding: 12px 16px; font-weight: 700; white-space: nowrap; }
.ps-table td { padding: 11px 16px; border-bottom: 1px solid var(--bs-border); vertical-align: top; }
.ps-table tbody tr:nth-child(even) td { background: var(--bs-bg); }
.ps-table tbody tr:last-child td { border-bottom: none; }

/* picture */
.ps-figure { margin: 0; text-align: center; }
.ps-figure img { max-width: 100%; border-radius: 12px; border: 1px solid var(--bs-border); }
.ps-figure figcaption { font-size: .88rem; color: var(--bs-text-light); margin-top: 8px; }

/* download banner */
.ps-hl-left { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 260px; }

/* quote */
.ps-quote { margin: 0 0 32px; padding: 26px 32px; border-radius: 16px; background: var(--bs-primary-light); border-left: 5px solid var(--bs-primary); font-style: italic; font-size: 1.08rem; line-height: 1.75; color: var(--bs-primary-dark); position: relative; }
.ps-quote.ps-gold { background: var(--bs-gold-light); border-left-color: var(--bs-gold); color: #78350f; }
.ps-quote.ps-blue { background: var(--bs-blue-light); border-left-color: var(--bs-blue); color: #1e3a8a; }
.ps-quote-icon { opacity: .35; font-size: 1.6rem; margin-bottom: 6px; display: block; }
.ps-quote footer { font-style: normal; font-weight: 700; font-size: .92rem; margin-top: 10px; }

[data-theme="dark"] .ps-stat, [data-theme="dark"] .ps-table tbody tr:nth-child(even) td { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .ps-stat-value { color: #f1f5f9; }

/* icon on a number */
.ps-stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
    background: rgba(26,127,60,.1); color: var(--bs-primary); }
.ps-stat.ps-tone-gold .ps-stat-icon { background: rgba(217,119,6,.12); color: var(--bs-gold); }
.ps-stat.ps-tone-blue .ps-stat-icon { background: rgba(29,78,216,.1); color: var(--bs-blue); }
.ps-stat.ps-tone-red .ps-stat-icon { background: rgba(220,38,38,.1); color: #dc2626; }
.ps-stat.ps-tone-orange .ps-stat-icon { background: rgba(234,88,12,.1); color: #ea580c; }
.ps-stat.ps-tone-teal .ps-stat-icon { background: rgba(13,148,136,.1); color: #0d9488; }

/* bullet points inside text ("- " lines) */
.ps-text-list { margin: 0 0 12px; padding-left: 20px; }
.ps-text-list li { margin-bottom: 6px; }
.ps-text-list li::marker { color: var(--bs-primary); }
.ps-card-text .ps-text-list { font-size: .92rem; line-height: 1.65; color: var(--bs-text); padding-left: 18px; margin-bottom: 8px; }
.ps-card-text .ps-text-list:last-child { margin-bottom: 0; }
.ps-card-text .ps-text-list li { margin-bottom: 4px; }
.ps-card-text a, .ps-list a, .ps-table a { color: var(--bs-primary); font-weight: 600; }

/* "- " bullet points are plain bullets, not the boxed list of old CMS HTML */
.bs-cms-content .ps-text-list { display: block; list-style: disc; padding-left: 22px; margin: 0 0 14px; }
.bs-cms-content .ps-text-list li { background: none; border: 0; border-radius: 0; padding: 0; margin-bottom: 6px; font-size: inherit; transform: none; }
.bs-cms-content .ps-text-list li strong { display: inline; color: inherit; margin: 0; font-size: inherit; }

/* documents */
.ps-docs { display: grid; gap: 10px; }
.ps-doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--bs-border); border-radius: 12px; background: var(--bs-bg);
    text-decoration: none; color: var(--bs-text); transition: border-color .2s, box-shadow .2s; }
.ps-doc:hover { border-color: var(--bs-primary); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.ps-doc-icon { width: 42px; height: 42px; flex: none; border-radius: 10px; background: #fee2e2; color: #dc2626; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.ps-doc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ps-doc-text strong { color: var(--bs-dark); font-weight: 700; }
.ps-doc-text small { color: var(--bs-text-light); font-size: .82rem; margin-top: 2px; }
.ps-doc-btn { flex: none; font-weight: 700; font-size: .85rem; color: var(--bs-primary); border: 1.5px solid var(--bs-primary); border-radius: 999px; padding: 6px 14px; }
.ps-doc:hover .ps-doc-btn { background: var(--bs-primary); color: #fff; }
.ps-docs-empty { color: var(--bs-text-light); margin: 0; padding: 18px; text-align: center; border: 1px dashed var(--bs-border); border-radius: 12px; }
@media (max-width: 560px) { .ps-doc-btn { display: none; } }

/* a Text section with only a heading: a heading for the sections below it */
.ps-group-title { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; font-weight: 800; color: var(--bs-dark); margin: 34px 0 14px; }
.ps-group-title .icon-box { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(26,127,60,.1); color: var(--bs-primary); font-size: 1rem; }

/* photo cards */
.ps-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.ps-filter button { border: 1.5px solid var(--bs-border); background: var(--bs-bg); color: var(--bs-text); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: .88rem; cursor: pointer; }
.ps-filter button:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
.ps-filter button.on { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.ps-photos { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ps-photos.ps-pcols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ps-photos.ps-pcols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .ps-photos, .ps-photos.ps-pcols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ps-photos, .ps-photos.ps-pcols-2, .ps-photos.ps-pcols-4 { grid-template-columns: 1fr; } }
.ps-photo { background: var(--bs-bg); border: 1px solid var(--bs-border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.ps-photo:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.ps-photo[hidden] { display: none; }
.ps-photo-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e3efe6, #cfe3d5); display: flex; align-items: center; justify-content: center; color: #8db59a; font-size: 2rem; overflow: hidden; }
.ps-photo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-photo-group { position: absolute; left: 10px; top: 10px; background: rgba(15,77,48,.85); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ps-photo-body { padding: 14px 16px 16px; }
.ps-photo-body h4 { font-size: 1.02rem; font-weight: 800; margin: 0 0 2px; color: var(--bs-dark); }
.ps-photo-sub { font-size: .85rem; color: var(--bs-text-light); font-style: italic; margin-bottom: 6px; }
.ps-photo-text p { font-size: .9rem; line-height: 1.6; color: var(--bs-text); margin: 0 0 6px; }

/* charts */
.ps-chart { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.ps-donut { width: 240px; max-width: 100%; height: auto; flex: none; }
.ps-donut-value { font-size: 26px; font-weight: 800; fill: var(--bs-dark, #0f172a); }
.ps-donut-label { font-size: 11px; fill: #64748b; }
.ps-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 220px; display: grid; gap: 8px; }
.ps-legend li { display: flex; align-items: center; gap: 10px; font-size: .92rem; padding: 6px 0; border-bottom: 1px dashed var(--bs-border); }
.ps-legend-label { flex: 1; }
.ps-swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.ps-bars { display: grid; gap: 12px; }
.ps-bar-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 80px; gap: 12px; align-items: center; font-size: .92rem; }
.ps-bar-track { height: 14px; background: #eef2ef; border-radius: 999px; overflow: hidden; }
.ps-bar-fill { display: block; height: 100%; border-radius: 999px; }
.ps-bar-value { font-weight: 700; text-align: right; }
@media (max-width: 600px) { .ps-bar-row { grid-template-columns: 1fr 60px; } .ps-bar-track { grid-column: 1 / -1; grid-row: 2; } }

/* timeline */
.ps-timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.ps-timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--bs-border); }
.ps-timeline li { position: relative; padding: 0 0 22px 14px; }
.ps-tl-dot { position: absolute; left: -24px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bs-bg); border: 3px solid var(--bs-primary); }
.ps-tl-when { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--bs-primary); background: rgba(26,127,60,.1); border-radius: 999px; padding: 2px 10px; margin-bottom: 4px; }
.ps-timeline h4 { font-size: 1rem; font-weight: 800; margin: 2px 0 4px; color: var(--bs-dark); }
.ps-tl-text p { font-size: .92rem; line-height: 1.65; margin: 0 0 6px; color: var(--bs-text); }

/* accordion */
.ps-accordion { display: grid; gap: 10px; }
.ps-accordion details { border: 1px solid var(--bs-border); border-radius: 12px; background: var(--bs-bg); }
.ps-accordion summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--bs-dark); }
.ps-accordion summary::-webkit-details-marker { display: none; }
.ps-accordion summary i { transition: transform .2s; color: var(--bs-primary); }
.ps-accordion details[open] summary i { transform: rotate(180deg); }
.ps-accordion details[open] summary { border-bottom: 1px solid var(--bs-border); }
.ps-acc-body { padding: 12px 18px 6px; }
.ps-acc-body p { font-size: .94rem; line-height: 1.7; }

/* text with a picture beside it */
.ps-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: center; }
.ps-split-right { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ps-split-right .ps-split-img { order: 2; }
.ps-split-img { margin: 0; }
.ps-split-img img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 10px 28px rgba(0,0,0,.12); max-height: 460px; object-fit: cover; }
.ps-split-img figcaption { font-size: .8rem; color: var(--bs-text-light); margin-top: 8px; text-align: center; }
@media (max-width: 860px) { .ps-split, .ps-split-right { grid-template-columns: 1fr; } .ps-split-right .ps-split-img { order: 0; } }
/* even rows of numbers: 3 per row for 3, 6 or 9; 4 per row for 4 or 8 */
@media (min-width: 900px) {
    .ps-stats.ps-stats-3, .ps-stats.ps-stats-6, .ps-stats.ps-stats-9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ps-stats.ps-stats-4, .ps-stats.ps-stats-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* "data sourced from the internet" disclaimer under a section */
.ps-source-note { margin: 14px 0 0; font-size: .8rem; font-style: italic; color: var(--bs-text-light); }
.ps-source-note i { color: var(--bs-gold); margin-right: 4px; }
