/* Uses the Country Profile type scale, colours and directory width. */
.tp-page { overflow-wrap:anywhere; }
.tp-page a { color:var(--blue); text-underline-offset:.18em; }
.tp-page h2,.tp-page h3,.tp-page h4 { line-height:1.23; color:var(--ink); }
.tp-page h2 { margin:0 0 .6rem; font:600 clamp(1.5rem,3vw,2.15rem)/1.15 Georgia,serif; }
.tp-page h3 { margin:0 0 .6rem; font:600 1.35rem/1.24 Georgia,serif; }
.tp-page h4 { margin:1.35rem 0 .35rem; font-size:1.05rem; }
.tp-page p { max-width:80ch; margin:.45rem 0 .85rem; }
.tp-page .tp-intro { max-width:68ch; margin:.75rem 0 1.5rem; font-size:1.15rem; }
.tp-section,.tp-observation { margin:2.25rem 0; }
.tp-totals { display:grid; grid-template-columns:repeat(3,1fr); border-block:1px solid var(--line); }
.tp-totals div { padding:1rem .8rem 1rem 0; }
.tp-totals strong,.tp-totals span,.tp-directory span { display:block; }
.tp-totals strong { font:500 2.1rem/1.1 Georgia,serif; color:var(--blue); }
.tp-totals span,.tp-meta,.tp-status,.tp-page small { color:var(--muted); font-size:.94rem; }
.tp-search { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; }
.tp-page button { min-height:48px; border:0; padding:.6rem 1.4rem; border-radius:4px; background:var(--blue); color:#fff; font:600 1rem system-ui,sans-serif; cursor:pointer; }
.tp-directory,.tp-themes { list-style:none; margin:.75rem 0; padding:0; }
.tp-directory { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15.5rem),1fr)); gap:0 1.5rem; }
.tp-directory li { padding:.35rem 0 .8rem; border-bottom:1px solid var(--line); }
.tp-directory a { display:flex; align-items:center; min-height:44px; font-weight:650; line-height:1.3; }
.tp-directory span { color:var(--muted); font-size:.92rem; }
.tp-insights,.tp-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:1rem; }
.tp-insights article,.tp-reading { background:#edf2ec; padding:1rem 1.2rem; border-top:3px solid #507269; }
.tp-insights a,.tp-sources a { display:inline-block; padding:.35rem 0; }
.tp-themes { max-width:44rem; }
.tp-themes li { display:flex; justify-content:space-between; gap:1rem; padding:.45rem 0; border-bottom:1px solid var(--line); }
.tp-observation { background:#fff; padding:clamp(1rem,3vw,2rem); border:1px solid var(--line); margin-top:1rem; }
.tp-observation header h3 { font-size:clamp(1.4rem,2.5vw,1.85rem); }
.tp-facts { background:var(--paper); margin:1rem 0; padding:1rem; }
.tp-facts dt,.tp-fields dt { font-weight:650; }
.tp-facts dd,.tp-fields dd { margin:0; }
.tp-reading { margin:1rem 0; }
.tp-reading h4:first-child { margin-top:0; }
.tp-page details { border-top:1px solid var(--line); padding:.2rem 0; margin:.55rem 0; }
.tp-page summary { padding:.65rem .2rem; cursor:pointer; font-weight:650; }
.tp-page .tp-back { margin-bottom:1rem; }
.tp-fields { margin:.25rem 0; }
.tp-fields>div { display:grid; grid-template-columns:minmax(8rem,1fr) minmax(0,3fr); gap:.8rem; padding:.5rem; border-bottom:1px solid var(--line); }
.tp-fields .tp-fields>div { grid-template-columns:minmax(6rem,1fr) minmax(0,2fr); }
.tp-fields ul { margin:0; padding-left:1.1rem; }
.tp-warning { padding:.7rem 1rem; border-inline-start:3px solid #916721; background:#f8f1d8; }
@media (max-width:40rem) {
  .tp-fields>div,.tp-fields .tp-fields>div { display:block; }
  .tp-totals div { padding:.7rem .4rem .7rem 0; }
  .tp-totals span { font-size:.875rem; }
  .tp-search input { flex:1 1 100%; }
}


.tp-control-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,23rem),1fr)); gap:1.25rem 2rem; }
.tp-control-list article { padding-top:1rem; border-top:1px solid var(--line); }

.tp-brief {
  margin:1rem 0 1.5rem;
  padding:clamp(1rem,3vw,1.8rem);
  background:#fff;
  border:1px solid var(--line);
  border-top:4px solid #28564e;
}
.tp-brief h3 { max-width:40ch; font-size:clamp(1.4rem,3vw,2rem); }
.tp-brief .tp-signal { padding:.7rem 1rem; background:var(--paper); }
.tp-brief .tp-tags { display:flex; gap:.3rem .6rem; flex-wrap:wrap; margin-bottom:.4rem; }
.tp-tags span { font-size:.9rem; color:#255148; }
.tp-tags span+span::before { content:"· "; }
.tp-assurance { margin:.5rem 0 1rem; }
.tp-assurance>div { display:grid; grid-template-columns:minmax(8rem,11rem) minmax(0,1fr); gap:1rem; padding:.65rem 0; border-top:1px solid var(--line); }
.tp-assurance dt { font-weight:650; }
.tp-assurance dd { margin:0; max-width:75ch; }
.tp-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem 1rem; padding:1rem; background:#eaf0eb; border:1px solid var(--line); }
.tp-filters .tp-query { grid-column:1/-1; }
.tp-page .tp-filters label { margin:0; font-size:.95rem; }
.tp-filters select,.tp-page .tp-filters input { display:block; width:100%; min-height:44px; margin-top:.22rem; padding:.45rem .6rem; color:var(--ink); font:400 1rem/1.3 system-ui,sans-serif; background:white; border:1px solid #71867e; border-radius:4px; }
.tp-filter-actions { grid-column:1/-1; display:flex; align-items:center; gap:1rem; }
.tp-result-count { padding:.75rem 0 0; font-size:.96rem; }
.tp-table-wrap { max-width:100%; overflow-x:auto; }
.tp-comparison { width:100%; border-collapse:collapse; font-size:1rem; }
.tp-comparison caption { text-align:left; padding:.5rem 0; font:600 1.3rem/1.3 Georgia,serif; }
.tp-comparison th,.tp-comparison td { text-align:left; vertical-align:top; padding:.8rem .65rem; border-bottom:1px solid var(--line); }
.tp-comparison thead th { color:#fff; background:#204a43; font-size:.94rem; }
.tp-comparison tbody th { font-weight:650; }
.tp-comparison small { display:block; font-weight:400; margin-top:.3rem; color:var(--muted); font-size:.875rem; }
.tp-comparison tbody tr:nth-child(odd) { background:#fff; }
@media(min-width:47.01rem) {
  .tp-comparison { min-width:64rem; }
  .tp-comparison th,.tp-comparison td { width:12%; }
  .tp-comparison :is(th,td):nth-child(2) { width:22%; }
  .tp-comparison :is(th,td):nth-child(4) { width:18%; }
}
.tp-pagination { display:flex; align-items:center; justify-content:center; gap:1.4rem; flex-wrap:wrap; margin:1rem 0; }
.tp-pagination a { display:inline-flex; min-height:44px; align-items:center; }
@media(max-width:47rem) {
  .tp-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tp-assurance>div { display:block; }
  .tp-comparison,.tp-comparison caption,.tp-comparison tbody,.tp-comparison tr { display:block; }
  .tp-comparison thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .tp-comparison tbody tr { border:1px solid var(--line); background:white; margin:0 0 1rem; padding:.3rem .8rem; }
  .tp-comparison tbody th { display:block; width:auto; padding:.55rem 0; font-size:1.08rem; }
  .tp-comparison td { display:block; width:auto; padding:.45rem 0; }
  .tp-comparison td:last-child { border:0; }
  .tp-comparison td::before { display:block; content:attr(data-label); color:var(--muted); font-size:.875rem; font-weight:650; }
}
@media(max-width:30rem) {
  .tp-filters { grid-template-columns:minmax(0,1fr); }
}
