/* Clean British editorial stylesheet for Online CPD Academy compliance guides & author page
   Zero pill tags, zero KPI stat boxes, zero thick border-left stripes, zero ALL-CAPS kickers. */

.cg-main {
  background: #ffffff;
  color: #162330;
  padding-bottom: 4.5rem;
}

.cg-hero {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 2.25rem 0 2.6rem;
}

.cg-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .cg-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.cg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.875rem;
  color: #526373;
  margin-bottom: 0.9rem;
}

.cg-breadcrumb a {
  color: #0b4f82;
  text-decoration: none;
}

.cg-breadcrumb a:hover {
  text-decoration: underline;
}

.cg-hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #082a4d;
  margin: 0 0 1rem;
  font-weight: 800;
}

.cg-lede {
  font-size: 1.08rem;
  line-height: 1.64;
  color: #334658;
  margin: 0 0 1.35rem;
}

/* Human editorial author byline */
.cg-author-byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.cg-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
}

.cg-author-meta {
  font-size: 0.88rem;
  line-height: 1.42;
  color: #526373;
}

.cg-author-meta strong,
.cg-author-meta a {
  color: #082a4d;
  font-weight: 700;
  text-decoration: none;
}

.cg-author-meta a:hover {
  text-decoration: underline;
}

.cg-author-sub {
  display: block;
  color: #5b6d7d;
  font-size: 0.83rem;
  margin-top: 0.1rem;
}

.cg-hero-figure {
  margin: 0;
}

.cg-hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #dce4ec;
}

.cg-hero-figure figcaption {
  font-size: 0.8rem;
  color: #5b6d7d;
  margin-top: 0.55rem;
  line-height: 1.45;
}

/* Two-column reading layout */
.cg-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 740px);
  gap: 3.25rem;
  justify-content: space-between;
  padding-top: 2.75rem;
}

@media (max-width: 980px) {
  .cg-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1.75rem;
  }
}

.cg-toc-desktop {
  position: sticky;
  top: 96px;
  align-self: start;
  padding-right: 1.25rem;
  border-right: 1px solid #e2e8f0;
}

@media (max-width: 980px) {
  .cg-toc-desktop {
    display: none;
  }
}

.cg-toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #082a4d;
  margin: 0 0 0.75rem;
}

.cg-toc-desktop ul,
.cg-toc-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cg-toc-desktop li {
  margin-bottom: 0.5rem;
}

.cg-toc-desktop a {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #475868;
  text-decoration: none;
  padding: 0.15rem 0;
}

.cg-toc-desktop a:hover,
.cg-toc-desktop a.is-active {
  color: #082a4d;
  font-weight: 700;
}

.cg-toc-desktop a:hover {
  text-decoration: underline;
}

.cg-toc-mobile {
  display: none;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.8rem 0;
  margin-bottom: 1.5rem;
}

@media (max-width: 980px) {
  .cg-toc-mobile {
    display: block;
  }
}

.cg-toc-mobile summary {
  font-weight: 700;
  font-size: 0.92rem;
  color: #082a4d;
  cursor: pointer;
}

.cg-toc-mobile ul {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
}

.cg-toc-mobile li {
  margin-bottom: 0.45rem;
}

.cg-toc-mobile a {
  font-size: 0.9rem;
  color: #0b4f82;
  text-decoration: none;
}

/* Article body typography */
.cg-article {
  font-size: 1.05rem;
  line-height: 1.72;
  color: #1e2d3b;
}

.cg-article section {
  margin-bottom: 2.65rem;
  scroll-margin-top: 96px;
}

.cg-article h2 {
  font-size: clamp(1.38rem, 2.2vw, 1.66rem);
  line-height: 1.26;
  color: #082a4d;
  letter-spacing: -0.015em;
  margin: 0 0 0.85rem;
  font-weight: 800;
}

.cg-article h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  color: #082a4d;
  margin: 1.6rem 0 0.55rem;
  font-weight: 700;
}

.cg-article p {
  margin: 0 0 1.05rem;
}

.cg-article ul,
.cg-article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.cg-article li {
  margin-bottom: 0.45rem;
}

.cg-article a {
  color: #0b5cab;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cg-article a:hover {
  color: #082a4d;
}

/* Clean editorial data tables */
.cg-table-wrap {
  margin: 1.35rem 0 1.5rem;
  overflow-x: auto;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  background: #ffffff;
}

.cg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.5;
  text-align: left;
}

.cg-table caption {
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #082a4d;
  background: #f8fafc;
  border-bottom: 1px solid #dce4ec;
  text-align: left;
}

.cg-table th {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  color: #082a4d;
  font-weight: 700;
  border-bottom: 1px solid #dce4ec;
  vertical-align: top;
}

.cg-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #edf2f7;
  color: #1e2d3b;
  vertical-align: top;
}

.cg-table tbody tr:last-child td {
  border-bottom: none;
}

/* Inline colour swatch inside native HTML tables */
.cg-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: -2px;
  margin-right: 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.cg-template-note {
  font-size: 0.94rem;
  color: #334658;
  margin: -0.35rem 0 1.5rem !important;
}

/* Documentary photographs */
.cg-figure {
  margin: 1.75rem 0 2rem;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.cg-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.cg-figure figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  line-height: 1.48;
  color: #526373;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* Commercial horizontal course rows (replaces plain 3-box text links) */
.cg-course-panel {
  margin: 2.5rem 0;
}

.cg-course-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.18rem;
  color: #082a4d;
  font-weight: 800;
}

.cg-course-panel > p {
  margin: 0 0 0.95rem;
  font-size: 0.94rem;
  color: #475868;
}

.cg-course-list {
  border: 1px solid #d5dfe9;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(8, 42, 77, 0.04);
}

.cg-course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #edf2f7;
}

.cg-course-row:last-of-type {
  border-bottom: none;
}

@media (max-width: 640px) {
  .cg-course-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

.cg-course-info {
  min-width: 0;
  flex: 1;
}

.cg-course-title {
  display: inline-block;
  font-size: 1.02rem;
  font-weight: 700;
  color: #082a4d !important;
  text-decoration: none !important;
  line-height: 1.32;
}

.cg-course-title:hover {
  color: #0b5cab !important;
  text-decoration: underline !important;
}

.cg-course-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.83rem;
  color: #526373;
}

.cg-accred-logos {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cg-accred-logos img {
  height: 22px;
  width: auto;
  display: block;
}

.cg-course-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cg-course-right {
    width: 100%;
    justify-content: space-between;
  }
}

.cg-price-wrap {
  text-align: right;
  line-height: 1.15;
}

@media (max-width: 640px) {
  .cg-price-wrap {
    text-align: left;
  }
}

.cg-price-wrap strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  color: #082a4d;
}

.cg-price-wrap span {
  font-size: 0.75rem;
  color: #64748b;
}

.cg-add-btn {
  appearance: none;
  border: none;
  background: #0b65c2;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.58rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.cg-add-btn:hover {
  background: #082a4d;
}

.cg-details-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: #0b4f82 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.cg-details-link:hover {
  text-decoration: underline !important;
}

.cg-course-foot {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 0.65rem 1.25rem;
  font-size: 0.83rem;
  color: #475868;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}

.cg-course-foot a {
  font-weight: 600;
  color: #0b4f82 !important;
  text-decoration: none !important;
}

.cg-course-foot a:hover {
  text-decoration: underline !important;
}

/* Clean FAQ accordion */
.cg-faq details {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.95rem 0;
}

.cg-faq details:first-of-type {
  border-top: 1px solid #e2e8f0;
}

.cg-faq summary {
  font-weight: 700;
  font-size: 1.02rem;
  color: #082a4d;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cg-faq summary::-webkit-details-marker {
  display: none;
}

.cg-faq summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  color: #526373;
  flex-shrink: 0;
}

.cg-faq details[open] summary::after {
  content: "−";
}

.cg-faq .cg-faq-body {
  padding-top: 0.65rem;
  font-size: 0.97rem;
  color: #2b3c4d;
}

.cg-faq .cg-faq-body p:last-child {
  margin-bottom: 0;
}

/* Sources list */
.cg-sources {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4a5c6d;
}

.cg-sources li {
  margin-bottom: 0.55rem;
}

/* Newspaper-style bottom author bio (hairline rules, zero grey card box) */
.cg-author-bio {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  border-top: 1px solid #dce4ec;
  border-bottom: 1px solid #dce4ec;
  padding: 1.65rem 0;
  margin: 2.5rem 0;
}

@media (max-width: 600px) {
  .cg-author-bio {
    flex-direction: column;
    gap: 0.9rem;
  }
}

.cg-author-bio-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
}

.cg-author-bio-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.04rem;
  color: #082a4d;
}

.cg-author-bio-body h3 a {
  color: #082a4d;
  text-decoration: none;
}

.cg-author-bio-body h3 a:hover {
  text-decoration: underline;
}

.cg-author-bio-body p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #334658;
  margin: 0 0 0.6rem;
}

.cg-author-bio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.cg-author-bio-links a {
  color: #0b4f82;
  text-decoration: none;
}

.cg-author-bio-links a:hover {
  text-decoration: underline;
}

/* Related guides grid with documentary photo thumbnails */
.cg-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .cg-related-grid {
    grid-template-columns: 1fr;
  }
}

.cg-related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cg-related-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 14px rgba(8, 42, 77, 0.06);
}

.cg-related-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #edf2f7;
  background: #f1f5f9;
}

.cg-related-body {
  padding: 0.95rem 1.1rem 1.05rem;
}

.cg-related-card strong {
  display: block;
  color: #082a4d;
  font-size: 0.97rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.cg-related-card span {
  display: block;
  font-size: 0.84rem;
  color: #526373;
  line-height: 1.48;
}

@media print {
  .nav, .mobile-nav, .cg-toc-desktop, .cg-toc-mobile, .cg-course-panel, #related-guides, .site-footer, .sticky-cta, .tpc-modal {
    display: none !important;
  }
  .cg-layout {
    display: block !important;
    padding-top: 1rem !important;
  }
  .cg-hero {
    background: #fff !important;
    padding: 0 0 1rem !important;
  }
}

/* Dedicated Author Profile Page (/author/mark-mcshane) */
.ap-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 2.5rem 0 2.75rem;
}

.ap-profile-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 0.5rem;
}

@media (max-width: 700px) {
  .ap-profile-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

.ap-portrait {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #cbd5e1;
}

.ap-header h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  color: #082a4d;
  margin: 0 0 0.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ap-role {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e2d3b;
  margin: 0 0 0.5rem;
}

.ap-meta {
  font-size: 0.92rem;
  color: #526373;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.ap-meta a {
  color: #0b4f82;
  font-weight: 600;
  text-decoration: none;
}

.ap-meta a:hover {
  text-decoration: underline;
}

.ap-body {
  max-width: 820px;
  padding-top: 2.75rem;
}

.ap-section {
  margin-bottom: 3rem;
}

.ap-section h2 {
  font-size: 1.5rem;
  color: #082a4d;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 0.9rem;
}

.ap-section p {
  font-size: 1.04rem;
  line-height: 1.72;
  color: #1e2d3b;
  margin: 0 0 1.05rem;
}

.ap-press-list,
.ap-guide-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  border-top: 1px solid #e2e8f0;
}

.ap-press-list li,
.ap-guide-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
}

.ap-press-list a,
.ap-guide-list a {
  color: #082a4d;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}

.ap-press-list a:hover,
.ap-guide-list a:hover {
  color: #0b5cab;
  text-decoration: underline;
}

.ap-outlet {
  font-size: 0.85rem;
  color: #5b6d7d;
  white-space: nowrap;
}
