/* Original Template layout and spacing, isolated from the site's global
   content styles. Website navigation, footer and popup are intentionally outside. */
.templates-page-shell { display: block; }
.templates-page, .templates-page :where(*) { all: revert; box-sizing: border-box; min-width: 0; }
.templates-page {
  --bg: #fff; --soft: #f4f6f3; --ink: #262626; --muted: #626262;
  --navy: var(--ink); --navy-solid: var(--ink);
  --green: var(--colour-green); --green-solid: var(--colour-green);
  --line: #e1e1e1;
  --l1: #eef2e9; --l2: #d8e5cb; --l3: #91a87a; --l4: var(--colour-green);
  --l3ink: #fff; --l4ink: #fff;
  --g: var(--colour-green); --y: #fff2cc; --o: #f8cbad; --r: #f4a6a6;
  display: block; margin: 0; padding-top: 75px; background: var(--bg); color: var(--ink);
  font-family: var(--font-secondary); font-size: inherit; font-weight: inherit;
  line-height: inherit; letter-spacing: inherit; color-scheme: light;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.templates-page :where(*) { font-family: inherit; -webkit-font-smoothing: inherit; text-rendering: inherit; }
.templates-page :where(p, a, span, small, ul, li) { color: inherit; }
.templates-page section { padding: 0; }
.templates-page th, .templates-page td { padding: 1px; }
.templates-page * {box-sizing:border-box;min-width:0}
.templates-page a {color:var(--green)}
.templates-page h1, .templates-page h2, .templates-page h3 {font-family:var(--font-primary);color:var(--navy);text-wrap:balance;max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:0 0 .5em}
/* Typography mirrors home: hero-title, common section headings and Insights cards. */
.templates-page h1 {font-size:42px;font-weight:600;line-height:1.06;letter-spacing:-1.1px}
.templates-page h2 {font-size:34px;font-weight:var(--font-weight-normal);line-height:50.6px;letter-spacing:normal}
.templates-page h3 {font-size:18px;font-weight:400;line-height:30px;letter-spacing:normal}
.templates-page p {margin:0 0 1em;font-size:18px;font-weight:400;line-height:28.8px;letter-spacing:normal}
.templates-page .templates-wrap {max-width:1180px;margin:0 auto;padding:0 max(4vw,16px)}
.templates-page .templates-band {padding:clamp(32px,4.5vw,64px) 0;border-top:1px solid var(--line)}
.templates-page .templates-band.templates-dark {background:var(--navy-solid);color:#f1f1f1;border:0}
.templates-page .templates-band.templates-dark h2 {color:#fff}
.templates-page .templates-band.templates-dark a {color:#d4e5c2}
.templates-page .templates-prose {max-width:860px}
.templates-page .templates-crumbs ol {list-style:none;display:flex;flex-wrap:wrap;gap:4px 8px;margin:0 auto;padding:14px max(4vw,16px) 0;max-width:1180px;font-size:14px;color:var(--muted)}
.templates-page .templates-crumbs li+li::before {content:"›";margin-right:8px}
.templates-page .templates-crumbs a {color:var(--muted)}
.templates-page .templates-hero {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(24px,4vw,56px);align-items:center;padding-top:28px;padding-bottom:clamp(36px,5vw,64px)}
.templates-page .templates-lede {font-size:18px;line-height:27px;color:var(--muted);max-width:60ch}
.templates-page .templates-badge {display:inline-block;font-size:13px;font-weight:600;color:var(--green);background:light-dark(#eef3e8,#22301a);border-radius:999px;padding:3px 10px;margin:0 0 14px}
.templates-page .templates-actions {display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 8px}
.templates-page .templates-btn {display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:8px;background:var(--green-solid);color:#fff;font-size:18px;font-weight:600;line-height:28.8px;letter-spacing:normal;text-decoration:none;border:2px solid var(--green-solid)}
.templates-page .templates-btn:hover {filter:brightness(1.08)}
.templates-page .templates-btn:focus-visible, .templates-page a:focus-visible, .templates-page summary:focus-visible {outline:3px solid var(--navy);outline-offset:2px}
.templates-page .templates-btn.templates-ghost {background:transparent;color:var(--green);}
.templates-page .templates-btn.templates-small {min-height:38px;padding:0 14px}
.templates-page .templates-btn.templates-light {background:#fff;color:var(--navy-solid);border-color:#fff}
.templates-page .templates-btn.templates-ghost.templates-light {background:transparent;color:#fff;border-color:#fff}
.templates-page .templates-fine {font-size:14px;color:var(--muted);margin:0}
.templates-page .templates-matrix {margin:0;background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 18px 40px -24px rgba(0,0,0,.45)}
.templates-page .templates-matrix table {border-collapse:separate;border-spacing:4px;width:100%;font-size:13px}
.templates-page .templates-matrix caption {text-align:left;font-size:13px;color:var(--muted);padding:0 4px 8px}
.templates-page .templates-matrix thead th {height:132px;vertical-align:bottom;padding:0 0 6px;font-weight:600;color:var(--muted)}
.templates-page .templates-matrix thead th span {display:inline-block;writing-mode:vertical-rl;transform:rotate(180deg);max-height:128px;line-height:1.15;text-align:left;font-size:12px}
.templates-page .templates-matrix thead th.templates-corner {text-align:left;writing-mode:initial}
.templates-page .templates-matrix tbody th {text-align:left;font-weight:600;padding-right:10px;white-space:nowrap;font-size:13px;color:var(--ink)}
.templates-page .templates-lv {text-align:center;border-radius:6px;font-weight:600;height:34px;min-width:34px;font-size:12px}
.templates-page .templates-lv.templates-l1, .templates-page .templates-lv.templates-l0 {background:var(--l1);color:var(--navy)}
.templates-page .templates-lv.templates-l2 {background:var(--l2);color:var(--navy)}
.templates-page .templates-lv.templates-l3 {background:var(--l3);color:var(--l3ink)}
.templates-page .templates-lv.templates-l4 {background:var(--l4);color:var(--l4ink)}
.templates-page .templates-lv.templates-na {background:repeating-linear-gradient(135deg,transparent 0 5px,var(--line) 5px 6px);color:var(--muted);font-weight:400}
.templates-page .templates-matrix figcaption {display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:10px;font-size:12.5px;color:var(--muted)}
.templates-page .templates-key {display:inline-flex;align-items:center;gap:6px}
.templates-page .templates-key i {display:inline-block;width:14px;height:14px;min-width:14px;border-radius:4px}
.templates-page .templates-gapview td {height:34px;border-radius:6px}
.templates-page .templates-gap-g {background:var(--g)}
.templates-page .templates-gap-y {background:var(--y)}
.templates-page .templates-gap-o {background:var(--o)}
.templates-page .templates-gap-r {background:var(--r)}
.templates-page .templates-inside {list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.templates-page .templates-inside li {border-top:3px solid var(--green-solid);padding-top:12px}
.templates-page .templates-inside b {display:block;color:var(--navy);font-size:17px;margin-bottom:4px}
.templates-page .templates-inside span {color:var(--muted);font-size:15px}
.templates-page .templates-two {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,56px)}
.templates-page table.templates-plain {width:100%;border-collapse:collapse;margin:8px 0 18px;font-size:15px}
.templates-page table.templates-plain th {text-align:left;font-size:13px;color:var(--muted);font-weight:600;border-bottom:2px solid var(--line);padding:8px 10px 8px 0}
.templates-page table.templates-plain td {border-bottom:1px solid var(--line);padding:10px 10px 10px 0;vertical-align:top}
.templates-page table.templates-scale td:first-child {width:64px}
.templates-page table.templates-scale .templates-lv {display:inline-flex;align-items:center;justify-content:center;width:44px;height:30px}
.templates-page dl.templates-groups {display:grid;grid-template-columns:180px minmax(0,1fr);gap:10px 20px;margin:0}
.templates-page dl.templates-groups dt {font-weight:600;color:var(--navy)}
.templates-page dl.templates-groups dd {margin:0;color:var(--ink)}
.templates-page ol.templates-steps {padding-left:22px;margin:0 0 16px}
.templates-page ol.templates-steps li {margin-bottom:10px;padding-left:4px}
.templates-page .templates-note {font-size:14px;color:var(--muted)}
.templates-page .templates-band.templates-dark .templates-note {color:#d1d1d1}
.templates-page .templates-stat-card {background:rgba(255,255,255,.08);border-radius:14px;padding:24px}
.templates-page .templates-stat {font-size:18px;margin-bottom:8px}
.templates-page .templates-stat b {display:block;font-family:var(--font-primary);font-size:clamp(44px,6vw,64px);line-height:1;color:#d4e5c2}
.templates-page details {border-bottom:1px solid var(--line);padding:4px 0}
.templates-page summary {cursor:pointer;font-size:20px;font-weight:600;line-height:32px;color:var(--navy);padding:12px 0;min-height:44px;list-style-position:outside}
.templates-page details p {color:var(--ink);margin:0 0 14px}
.templates-page .templates-cards, .templates-page .templates-tgrid {display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.templates-page .templates-card, .templates-page .templates-tcard {display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:12px;padding:20px;text-decoration:none;color:var(--ink);background:var(--bg)}
.templates-page .templates-card b {color:var(--navy);font-size:17px}
.templates-page .templates-card span:last-child {color:var(--muted);font-size:14px}
.templates-page .templates-card .templates-badge, .templates-page .templates-tcard .templates-badge {align-self:flex-start;margin:0 0 4px}
.templates-page .templates-card:hover, .templates-page .templates-tcard:hover {border-color:var(--green)}
.templates-page .templates-tcard h3 a {color:var(--navy);text-decoration:none}
.templates-page .templates-tcard p {color:var(--muted);flex:1}
.templates-page .templates-strip {display:flex;flex-wrap:wrap;gap:4px;margin:4px 0}
.templates-page .templates-strip .templates-lv {flex:0 1 34px;min-width:0;white-space:normal;display:flex;align-items:center;justify-content:center;height:28px}
.templates-page .templates-scroll {overflow-x:auto}
@media(max-width:860px) {
.templates-page .templates-hero, .templates-page .templates-two {grid-template-columns:minmax(0,1fr)}
.templates-page .templates-inside {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px) {
.templates-page .templates-inside {grid-template-columns:minmax(0,1fr)}
.templates-page dl.templates-groups {grid-template-columns:minmax(0,1fr)}
.templates-page dl.templates-groups dd {margin-bottom:8px}
.templates-page .templates-matrix {padding:12px}
.templates-page .templates-matrix tbody th {white-space:normal;font-size:12px}
.templates-page table.templates-stack thead {display:none}
.templates-page table.templates-stack tr {display:grid;padding:10px 0;border-bottom:1px solid var(--line)}
.templates-page table.templates-stack td {border:0;padding:2px 0}
.templates-page table.templates-stack td:first-child {font-weight:600;color:var(--navy)}
}
.templates-page .templates-band.templates-dark a.templates-btn.templates-light {color:var(--navy-solid)}
.templates-page .templates-band.templates-dark a.templates-btn.templates-ghost.templates-light {color:#fff}

/* Website container widths; retain the original wrap padding and proportions. */
.templates-page .templates-wrap, .templates-page .templates-crumbs ol { width: 100%; }
@media (min-width: 576px) { .templates-page .templates-wrap, .templates-page .templates-crumbs ol { max-width: 540px; } }
@media (min-width: 768px) { .templates-page .templates-wrap, .templates-page .templates-crumbs ol { max-width: 720px; } }
@media (min-width: 992px) { .templates-page .templates-wrap, .templates-page .templates-crumbs ol { max-width: 960px; } }
@media (min-width: 1200px) { .templates-page .templates-wrap, .templates-page .templates-crumbs ol { max-width: 1140px; } }
@media (min-width: 1400px) { .templates-page .templates-wrap, .templates-page .templates-crumbs ol { max-width: 1320px; } }
.templates-page .templates-prose { max-width: 860px; }
.templates-page .templates-crumbs span { color: var(--muted); }
.templates-page .templates-btn { font-family: inherit; cursor: pointer; }
.templates-page button.templates-btn { font-family: inherit; }
.templates-page .templates-badge { background: #eef3e8; }
.templates-page .templates-scroll { scrollbar-width: thin; }
.templates-page :is(a, button, summary):focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.templates-page :is(section, [id]) { scroll-margin-top: 75px; }

/* Keep all eight level chips within the card and its bottom actions aligned. */
.templates-page .templates-tcard, .templates-page .templates-tcard * { min-width: 0; }
.templates-page .templates-tcard > .templates-actions { margin-top: auto; padding-top: 18px; }

/* The reused Contact form needs only this small grid, not Bootstrap's global
   reset/link rules. These selectors cannot match any other route or site chrome. */
.templates-page-shell #Popup__Form__Modal .row { display: flex; flex-wrap: wrap; }
.templates-page-shell #Popup__Form__Modal .field__box,
.templates-page-shell #Popup__Form__Modal .Edrevel_policy_wrapper { width: 100%; }
@media (min-width: 992px) {
  .templates-page-shell #Popup__Form__Modal .field__box { width: 50%; }
}
.templates-page-shell #Popup__Form__Modal #close_model i::before { content: "\00d7"; }

/* Form controls do not inherit the surrounding site font in every browser. */
.templates-page :is(button, input, select, textarea) { font-family: inherit; }
/* These are the home's existing sm/md typography values and breakpoints. */
@media (min-width: 640px) {
  .templates-page h1 { font-size: 54px; }
  .templates-page h2 { font-size: 40px; }
  .templates-page .templates-lede { font-size: 20px; line-height: 30px; }
}
@media (min-width: 768px) {
  .templates-page h1 { font-size: 60px; line-height: 65px; letter-spacing: -1.44px; }
  .templates-page h2 { font-size: 44px; }
  .templates-page h3 { font-size: 22px; }
  .templates-page .templates-lede { font-size: 20px; line-height: 30px; }
}

/* v3 (Nov 2026): standards coverage table, certifications table, five-item "What's inside" grid. */
.templates-page .templates-inside {grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.templates-page table.templates-cover th[scope=row] {text-align:left;font-weight:600;color:var(--navy);font-size:15px;border-bottom:1px solid var(--line);padding:10px 14px 10px 0;vertical-align:top;width:32%}
.templates-page table.templates-cover th[scope=row] .templates-fine {display:block;font-weight:400;margin-top:2px}
.templates-page table.templates-cover td {font-size:15px}
.templates-page .templates-cov {display:inline-block;font-size:12px;font-weight:700;line-height:20px;border-radius:999px;padding:0 9px;margin:0 4px 2px 0;white-space:nowrap}
.templates-page .templates-cov.templates-ok {background:#d8e5cb;color:#2d4419}
.templates-page .templates-cov.templates-part {background:#fff2cc;color:#5a4a10}
.templates-page .templates-cov.templates-no {background:#f8cbad;color:#6a2f10}
.templates-page .templates-cov.templates-own {background:#eef2e9;color:var(--ink)}
@media(max-width:600px) {
.templates-page table.templates-cover th[scope=row] {width:auto;border:0;padding:0}
.templates-page table.templates-stack td[data-label]::before {content:attr(data-label) ": ";font-weight:600;color:var(--muted)}
}

/* v3.1 (Nov 2026): training matrix template page. */
.templates-page ul.templates-ticks {list-style:none;padding:0;margin:0 0 12px}
.templates-page ul.templates-ticks li {position:relative;padding-left:28px;margin-bottom:12px;font-size:16px;line-height:1.55}
.templates-page ul.templates-ticks li::before {content:"\2713";position:absolute;left:0;top:0;font-weight:700;color:var(--green)}
.templates-page ul.templates-ticks.templates-limits li::before {content:"\2013";color:#b45a2a}
.templates-page ul.templates-ticks.templates-signs li::before {content:"\25A1";color:#d4e5c2}
.templates-page .templates-band.templates-dark h3 {color:#fff}
.templates-page .templates-prose h3 {margin-top:1.4em;color:var(--navy)}

/* v3.2 (Nov 2026): hub template cards in rows of 2 then 3. */
.templates-page .templates-tgrid {grid-template-columns:repeat(6,minmax(0,1fr))}
.templates-page .templates-tgrid > .templates-tcard {grid-column:span 2}
.templates-page .templates-tgrid > .templates-tcard:nth-child(-n+2) {grid-column:span 3}
@media(max-width:860px) {
.templates-page .templates-tgrid {grid-template-columns:repeat(2,minmax(0,1fr))}
.templates-page .templates-tgrid > .templates-tcard, .templates-page .templates-tgrid > .templates-tcard:nth-child(-n+2) {grid-column:span 1}
.templates-page .templates-tgrid > .templates-tcard:first-child {grid-column:span 2}
}
@media(max-width:600px) {
.templates-page .templates-tgrid {grid-template-columns:minmax(0,1fr)}
.templates-page .templates-tgrid > .templates-tcard, .templates-page .templates-tgrid > .templates-tcard:first-child {grid-column:auto}
}

/* v3.3 (Nov 2026): subheading under the H1. */
.templates-page .templates-sub {font-size:20px;line-height:1.4;font-weight:600;color:var(--green);margin:-4px 0 14px;max-width:40ch}
