
/* Compact desktop header and rounded video embeds */
@media (min-width: 1101px) {
  .ps-header-inner { height: 64px; gap: 24px; }
  .ps-brand-badge { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
  .ps-brand strong { font-size: 16px; }
  .ps-brand small { font-size: 8px; letter-spacing: 1.6px; }
  .ps-logo { max-height: 38px; }
  .ps-nav-cta { padding: 7px 16px; }
}
iframe[src*="youtube.com/embed/"],
iframe[src*="youtube-nocookie.com/embed/"] {
  border-radius: 20px;
  overflow: hidden;
}

/* Match comments to the article container */
.ds-article-page > .ds-comments-area { width: 100%; max-width: none; margin-left: 0; margin-right: 0; box-sizing: border-box; }

/* Article text links */
.single-post .ds-readable-content a,
.single-post .ds-readable-content a:visited { color: #1559b7; text-decoration-color: currentColor; }
.single-post .ds-readable-content a:hover,
.single-post .ds-readable-content a:focus-visible { color: #771936; }
html[data-color-mode="dark"] .single-post .ds-readable-content a,
html[data-color-mode="dark"] .single-post .ds-readable-content a:visited { color: #82b7ff; }
html[data-color-mode="dark"] .single-post .ds-readable-content a:hover,
html[data-color-mode="dark"] .single-post .ds-readable-content a:focus-visible { color: #ff8fa5; }

/* Consistent article table corners across browsers */
.single-post .ds-readable-content table { outline: none !important; border-collapse: separate !important; border-spacing: 0 !important; margin-bottom: 24px !important; }
.single-post .ds-readable-content table tr { background: transparent !important; }
.single-post .ds-readable-content table thead tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content table thead tr:first-child > :last-child { border-top-right-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content table tbody tr:last-child > :first-child { border-bottom-left-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > :last-child { border-bottom-right-radius: 13px; }

/* Justified article prose; preserve explicitly aligned cards */
.single-post .ds-readable-content p:not([style*="text-align:center"]):not([style*="text-align: center"]),
.single-post .ds-readable-content li { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* Dark-mode article components, including legacy inline colours */
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#442334"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#62585c"] { color: #eee8ed !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#771936"] { color: #ffa2bc !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#fff"] { background: #302a32 !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f1f3"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f4f0"] { background: #402d3a !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="border-left:3px solid #771936"] { border-left-color: #ffa2bc !important; }

/* Responsive article review */
.article-mobile-diagram { display: none; }
.single-post .ds-readable-content figure { margin-bottom: 30px; }
@media (max-width: 600px) {
 .single-post .article-diagram-image { display: none; }
 .single-post .article-mobile-diagram { display: grid; gap: 12px; margin: 28px 0; }
 .single-post .article-mobile-diagram h3 { font-size: 21px; line-height: 1.4; margin: 0 0 4px; }
 .single-post .article-mobile-diagram h4 { font-size: 17px; line-height: 1.4; margin: 0 0 10px; }
 .single-post .article-mobile-diagram p { font-size: 16px; line-height: 1.65; margin: 0; text-align: left; hyphens: none; }
 .single-post .article-diagram-step { padding: 18px; border: 1px solid var(--ps-line); border-radius: 16px; background: var(--ps-surface); color: var(--ps-text); }
 .single-post .article-diagram-symbol { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 0 12px; border-radius: 10px; background: var(--ps-accent); color: var(--ps-surface); font-size: 21px; }
 .single-post .ds-readable-content table th, .single-post .ds-readable-content table td { padding: 10px 9px !important; font-size: 15px; line-height: 1.6; }
 .single-post .ds-readable-content table th:first-child { width: 40%; }
}

@media (max-width:600px) {
 .single-post .ds-readable-content .article-mobile-diagram p { text-align:center !important; hyphens:none !important; }
 .single-post .article-mobile-diagram h4 { text-align:center; }
 .single-post .article-diagram-symbol { margin-left:auto; margin-right:auto; }
}

/* Archive covers: preserve artwork and use a consistent light canvas */
.ds-note-thumb { position:relative; aspect-ratio:8 / 5 !important; background:#fff !important; overflow:hidden; }
.ds-note-thumb img { position:absolute; inset:0; display:block; width:100% !important; height:100% !important; object-fit:contain !important; object-position:center !important; }
html[data-color-mode] body .ds-note-thumb img { background:#fff !important; }

/* Avoid stacked spacing between article comments and footer */
.single-post .ds-article-page { padding-bottom: 0; }
.single-post .ds-comments-area { padding-bottom: 0; }
.single-post .ps-footer { margin-top: 48px; }
@media (max-width:600px) { .single-post .ps-footer { margin-top: 32px; } }

/* Keep only one intentional inset after the last article paragraph */
.single-post .ds-article-window .ds-readable-content { padding-bottom: 0; }
.single-post .ds-article-window .ds-readable-content > :last-child { margin-bottom: 0; }
.single-post .ds-article-window .ds-single-content { padding-bottom: 28px; }
@media(max-width:600px) { .single-post .ds-article-window .ds-single-content { padding-bottom: 20px; } }

/* Gutenberg tables: spacing belongs outside the bordered wrapper */
.single-post .ds-readable-content .wp-block-table { margin-bottom: 24px !important; }
.single-post .ds-readable-content .wp-block-table table { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :last-child { border-top-right-radius: 13px; }

/* Keep multi-column article tables readable on small screens */
@media (max-width: 600px) {
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table { min-width: 520px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(5)) table { min-width: 680px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table th:first-child { width: auto; }
 .single-post .ds-readable-content .wp-block-table { overscroll-behavior-x: contain; }
}

/* Aligned, compact live search suggestions */
.ps-search-panel .ds-ajax-search { width:100%; min-width:0; }
.ps-search-panel .ds-search-results { box-sizing:border-box; left:0!important; right:0!important; width:100%!important; min-width:0!important; max-width:100%!important; margin:8px 0 0!important; top:100%!important; padding:6px!important; border:1px solid var(--ps-line); border-radius:16px; background:var(--tone-white); color:var(--tone-text); max-height:min(65vh,480px); overflow-y:auto; overflow-x:hidden; }
.ps-search-panel .ds-search-result { display:block; padding:12px!important; margin:0!important; border:0; border-bottom:1px solid var(--ps-line); background:transparent; }
.ps-search-panel .ds-search-result-body { min-width:0; }
.ps-search-panel .ds-search-result-main { display:block; font-size:15px!important; line-height:1.45!important; font-weight:650; color:var(--ps-text); text-decoration:none; overflow-wrap:anywhere; }
.ps-search-panel .ds-search-result-meta { display:flex; gap:8px; margin:5px 0!important; font-size:11px!important; line-height:1.5; color:var(--tone-text); }
.ps-search-panel .ds-search-result-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12px!important; line-height:1.6!important; color:var(--tone-text); }
.ps-search-panel .ds-search-categories { margin-top:7px; }
.ps-search-panel .ds-post-category { font-size:10px!important; padding:3px 7px; color:var(--burgundy); border-color:var(--ps-line); }
.ps-search-panel .ds-search-result:hover, .ps-search-panel .ds-search-result[aria-selected="true"] { background:var(--tone-accent-soft); border-radius:10px; }
.ps-search-panel .ds-search-result-main:focus-visible, .ps-search-panel .ds-search-all:focus-visible { outline:2px solid var(--burgundy); outline-offset:3px; }
.ps-search-panel .ds-search-all-wrap { padding:10px 6px 4px!important; text-align:center; }
.ps-search-panel .ds-search-all { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:7px 14px!important; font-size:13px!important; line-height:1.5; color:var(--burgundy); border:1px solid var(--ps-line); border-radius:10px; }

.ps-search-panel .ds-search-result-excerpt { max-height:3.2em!important; overflow:hidden!important; }


/* Mobile note covers: retain frame height for positioned images */
@media (max-width:640px){
 #notes .ds-note-thumb, .ds-notes-page .ds-note-thumb { aspect-ratio:8 / 5 !important; height:auto !important; }
 #notes .ds-note-thumb img, .ds-notes-page .ds-note-thumb img { height:100% !important; object-fit:contain !important; }
}

.single-post .ds-readable-content table { outline: none !important; border-collapse: separate !important; border-spacing: 0 !important; margin-bottom: 24px !important; }
.single-post .ds-readable-content table tr { background: transparent !important; }
.single-post .ds-readable-content table thead tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content table thead tr:first-child > :last-child { border-top-right-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content table tbody tr:last-child > :first-child { border-bottom-left-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > :last-child { border-bottom-right-radius: 13px; }

/* Justified article prose; preserve explicitly aligned cards */
.single-post .ds-readable-content p:not([style*="text-align:center"]):not([style*="text-align: center"]),
.single-post .ds-readable-content li { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* Dark-mode article components, including legacy inline colours */
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#442334"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#62585c"] { color: #eee8ed !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#771936"] { color: #ffa2bc !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#fff"] { background: #302a32 !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f1f3"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f4f0"] { background: #402d3a !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="border-left:3px solid #771936"] { border-left-color: #ffa2bc !important; }

/* Responsive article review */
.article-mobile-diagram { display: none; }
.single-post .ds-readable-content figure { margin-bottom: 30px; }
@media (max-width: 600px) {
 .single-post .article-diagram-image { display: none; }
 .single-post .article-mobile-diagram { display: grid; gap: 12px; margin: 28px 0; }
 .single-post .article-mobile-diagram h3 { font-size: 21px; line-height: 1.4; margin: 0 0 4px; }
 .single-post .article-mobile-diagram h4 { font-size: 17px; line-height: 1.4; margin: 0 0 10px; }
 .single-post .article-mobile-diagram p { font-size: 16px; line-height: 1.65; margin: 0; text-align: left; hyphens: none; }
 .single-post .article-diagram-step { padding: 18px; border: 1px solid var(--ps-line); border-radius: 16px; background: var(--ps-surface); color: var(--ps-text); }
 .single-post .article-diagram-symbol { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 0 12px; border-radius: 10px; background: var(--ps-accent); color: var(--ps-surface); font-size: 21px; }
 .single-post .ds-readable-content table th, .single-post .ds-readable-content table td { padding: 10px 9px !important; font-size: 15px; line-height: 1.6; }
 .single-post .ds-readable-content table th:first-child { width: 40%; }
}

@media (max-width:600px) {
 .single-post .ds-readable-content .article-mobile-diagram p { text-align:center !important; hyphens:none !important; }
 .single-post .article-mobile-diagram h4 { text-align:center; }
 .single-post .article-diagram-symbol { margin-left:auto; margin-right:auto; }
}

/* Archive covers: preserve artwork and use a consistent light canvas */
.ds-note-thumb { position:relative; aspect-ratio:8 / 5 !important; background:#fff !important; overflow:hidden; }
.ds-note-thumb img { position:absolute; inset:0; display:block; width:100% !important; height:100% !important; object-fit:contain !important; object-position:center !important; }
html[data-color-mode] body .ds-note-thumb img { background:#fff !important; }

/* Avoid stacked spacing between article comments and footer */
.single-post .ds-article-page { padding-bottom: 0; }
.single-post .ds-comments-area { padding-bottom: 0; }
.single-post .ps-footer { margin-top: 48px; }
@media (max-width:600px) { .single-post .ps-footer { margin-top: 32px; } }

/* Keep only one intentional inset after the last article paragraph */
.single-post .ds-article-window .ds-readable-content { padding-bottom: 0; }
.single-post .ds-article-window .ds-readable-content > :last-child { margin-bottom: 0; }
.single-post .ds-article-window .ds-single-content { padding-bottom: 28px; }
@media(max-width:600px) { .single-post .ds-article-window .ds-single-content { padding-bottom: 20px; } }

/* Gutenberg tables: spacing belongs outside the bordered wrapper */
.single-post .ds-readable-content .wp-block-table { margin-bottom: 24px !important; }
.single-post .ds-readable-content .wp-block-table table { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :last-child { border-top-right-radius: 13px; }

/* Keep multi-column article tables readable on small screens */
@media (max-width: 600px) {
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table { min-width: 520px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(5)) table { min-width: 680px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table th:first-child { width: auto; }
 .single-post .ds-readable-content .wp-block-table { overscroll-behavior-x: contain; }
}

/* Aligned, compact live search suggestions */
.ps-search-panel .ds-ajax-search { width:100%; min-width:0; }
.ps-search-panel .ds-search-results { box-sizing:border-box; left:0!important; right:0!important; width:100%!important; min-width:0!important; max-width:100%!important; margin:8px 0 0!important; top:100%!important; padding:6px!important; border:1px solid var(--ps-line); border-radius:16px; background:var(--tone-white); color:var(--tone-text); max-height:min(65vh,480px); overflow-y:auto; overflow-x:hidden; }
.ps-search-panel .ds-search-result { display:block; padding:12px!important; margin:0!important; border:0; border-bottom:1px solid var(--ps-line); background:transparent; }
.ps-search-panel .ds-search-result-body { min-width:0; }
.ps-search-panel .ds-search-result-main { display:block; font-size:15px!important; line-height:1.45!important; font-weight:650; color:var(--ps-text); text-decoration:none; overflow-wrap:anywhere; }
.ps-search-panel .ds-search-result-meta { display:flex; gap:8px; margin:5px 0!important; font-size:11px!important; line-height:1.5; color:var(--tone-text); }
.ps-search-panel .ds-search-result-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12px!important; line-height:1.6!important; color:var(--tone-text); }
.ps-search-panel .ds-search-categories { margin-top:7px; }
.ps-search-panel .ds-post-category { font-size:10px!important; padding:3px 7px; color:var(--burgundy); border-color:var(--ps-line); }
.ps-search-panel .ds-search-result:hover, .ps-search-panel .ds-search-result[aria-selected="true"] { background:var(--tone-accent-soft); border-radius:10px; }
.ps-search-panel .ds-search-result-main:focus-visible, .ps-search-panel .ds-search-all:focus-visible { outline:2px solid var(--burgundy); outline-offset:3px; }
.ps-search-panel .ds-search-all-wrap { padding:10px 6px 4px!important; text-align:center; }
.ps-search-panel .ds-search-all { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:7px 14px!important; font-size:13px!important; line-height:1.5; color:var(--burgundy); border:1px solid var(--ps-line); border-radius:10px; }

.ps-search-panel .ds-search-result-excerpt { max-height:3.2em!important; overflow:hidden!important; }

/* Approved AP brand lockup — 2026-11-13 */
.ps-brand:has(.ps-logo) > span { display:none; }
.ps-brand .ps-logo { display:block; width:210px; height:auto; max-width:100%; max-height:none; object-fit:contain; border-radius:0; }
.ps-brand:has(.ps-logo) { flex:0 0 auto; gap:0; }
html[data-color-mode="dark"] .ps-brand .ps-logo { filter:brightness(0) invert(1); }
@media(max-width:600px) { .ps-brand .ps-logo { width:180px; } }
@media(max-width:360px) { .ps-brand .ps-logo { width:154px; } }

/* Compact desktop header and rounded video embeds */
@media (min-width: 1101px) {
  .ps-header-inner { height: 64px; gap: 24px; }
  .ps-brand-badge { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
  .ps-brand strong { font-size: 16px; }
  .ps-brand small { font-size: 8px; letter-spacing: 1.6px; }
  .ps-logo { max-height: 38px; }
  .ps-nav-cta { padding: 7px 16px; }
}
iframe[src*="youtube.com/embed/"],
iframe[src*="youtube-nocookie.com/embed/"] {
  border-radius: 20px;
  overflow: hidden;
}

/* Match comments to the article container */
.ds-article-page > .ds-comments-area { width: 100%; max-width: none; margin-left: 0; margin-right: 0; box-sizing: border-box; }

/* Article text links */
.single-post .ds-readable-content a,
.single-post .ds-readable-content a:visited { color: #1559b7; text-decoration-color: currentColor; }
.single-post .ds-readable-content a:hover,
.single-post .ds-readable-content a:focus-visible { color: #771936; }
html[data-color-mode="dark"] .single-post .ds-readable-content a,
html[data-color-mode="dark"] .single-post .ds-readable-content a:visited { color: #82b7ff; }
html[data-color-mode="dark"] .single-post .ds-readable-content a:hover,
html[data-color-mode="dark"] .single-post .ds-readable-content a:focus-visible { color: #ff8fa5; }

/* Consistent article table corners across browsers */
.single-post .ds-readable-content table { outline: none !important; border-collapse: separate !important; border-spacing: 0 !important; margin-bottom: 24px !important; }
.single-post .ds-readable-content table tr { background: transparent !important; }
.single-post .ds-readable-content table thead tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content table thead tr:first-child > :last-child { border-top-right-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content table tbody tr:last-child > :first-child { border-bottom-left-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > :last-child { border-bottom-right-radius: 13px; }

/* Justified article prose; preserve explicitly aligned cards */
.single-post .ds-readable-content p:not([style*="text-align:center"]):not([style*="text-align: center"]),
.single-post .ds-readable-content li { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* Dark-mode article components, including legacy inline colours */
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#442334"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#62585c"] { color: #eee8ed !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#771936"] { color: #ffa2bc !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#fff"] { background: #302a32 !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f1f3"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f4f0"] { background: #402d3a !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="border-left:3px solid #771936"] { border-left-color: #ffa2bc !important; }

/* Responsive article review */
.article-mobile-diagram { display: none; }
.single-post .ds-readable-content figure { margin-bottom: 30px; }
@media (max-width: 600px) {
 .single-post .article-diagram-image { display: none; }
 .single-post .article-mobile-diagram { display: grid; gap: 12px; margin: 28px 0; }
 .single-post .article-mobile-diagram h3 { font-size: 21px; line-height: 1.4; margin: 0 0 4px; }
 .single-post .article-mobile-diagram h4 { font-size: 17px; line-height: 1.4; margin: 0 0 10px; }
 .single-post .article-mobile-diagram p { font-size: 16px; line-height: 1.65; margin: 0; text-align: left; hyphens: none; }
 .single-post .article-diagram-step { padding: 18px; border: 1px solid var(--ps-line); border-radius: 16px; background: var(--ps-surface); color: var(--ps-text); }
 .single-post .article-diagram-symbol { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 0 12px; border-radius: 10px; background: var(--ps-accent); color: var(--ps-surface); font-size: 21px; }
 .single-post .ds-readable-content table th, .single-post .ds-readable-content table td { padding: 10px 9px !important; font-size: 15px; line-height: 1.6; }
 .single-post .ds-readable-content table th:first-child { width: 40%; }
}

@media (max-width:600px) {
 .single-post .ds-readable-content .article-mobile-diagram p { text-align:center !important; hyphens:none !important; }
 .single-post .article-mobile-diagram h4 { text-align:center; }
 .single-post .article-diagram-symbol { margin-left:auto; margin-right:auto; }
}

/* Archive covers: preserve artwork and use a consistent light canvas */
.ds-note-thumb { position:relative; aspect-ratio:8 / 5 !important; background:#fff !important; overflow:hidden; }
.ds-note-thumb img { position:absolute; inset:0; display:block; width:100% !important; height:100% !important; object-fit:contain !important; object-position:center !important; }
html[data-color-mode] body .ds-note-thumb img { background:#fff !important; }

/* Avoid stacked spacing between article comments and footer */
.single-post .ds-article-page { padding-bottom: 0; }
.single-post .ds-comments-area { padding-bottom: 0; }
.single-post .ps-footer { margin-top: 48px; }
@media (max-width:600px) { .single-post .ps-footer { margin-top: 32px; } }

/* Keep only one intentional inset after the last article paragraph */
.single-post .ds-article-window .ds-readable-content { padding-bottom: 0; }
.single-post .ds-article-window .ds-readable-content > :last-child { margin-bottom: 0; }
.single-post .ds-article-window .ds-single-content { padding-bottom: 28px; }
@media(max-width:600px) { .single-post .ds-article-window .ds-single-content { padding-bottom: 20px; } }

/* Gutenberg tables: spacing belongs outside the bordered wrapper */
.single-post .ds-readable-content .wp-block-table { margin-bottom: 24px !important; }
.single-post .ds-readable-content .wp-block-table table { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :last-child { border-top-right-radius: 13px; }

/* Keep multi-column article tables readable on small screens */
@media (max-width: 600px) {
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table { min-width: 520px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(5)) table { min-width: 680px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table th:first-child { width: auto; }
 .single-post .ds-readable-content .wp-block-table { overscroll-behavior-x: contain; }
}

/* Aligned, compact live search suggestions */
.ps-search-panel .ds-ajax-search { width:100%; min-width:0; }
.ps-search-panel .ds-search-results { box-sizing:border-box; left:0!important; right:0!important; width:100%!important; min-width:0!important; max-width:100%!important; margin:8px 0 0!important; top:100%!important; padding:6px!important; border:1px solid var(--ps-line); border-radius:16px; background:var(--tone-white); color:var(--tone-text); max-height:min(65vh,480px); overflow-y:auto; overflow-x:hidden; }
.ps-search-panel .ds-search-result { display:block; padding:12px!important; margin:0!important; border:0; border-bottom:1px solid var(--ps-line); background:transparent; }
.ps-search-panel .ds-search-result-body { min-width:0; }
.ps-search-panel .ds-search-result-main { display:block; font-size:15px!important; line-height:1.45!important; font-weight:650; color:var(--ps-text); text-decoration:none; overflow-wrap:anywhere; }
.ps-search-panel .ds-search-result-meta { display:flex; gap:8px; margin:5px 0!important; font-size:11px!important; line-height:1.5; color:var(--tone-text); }
.ps-search-panel .ds-search-result-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12px!important; line-height:1.6!important; color:var(--tone-text); }
.ps-search-panel .ds-search-categories { margin-top:7px; }
.ps-search-panel .ds-post-category { font-size:10px!important; padding:3px 7px; color:var(--burgundy); border-color:var(--ps-line); }
.ps-search-panel .ds-search-result:hover, .ps-search-panel .ds-search-result[aria-selected="true"] { background:var(--tone-accent-soft); border-radius:10px; }
.ps-search-panel .ds-search-result-main:focus-visible, .ps-search-panel .ds-search-all:focus-visible { outline:2px solid var(--burgundy); outline-offset:3px; }
.ps-search-panel .ds-search-all-wrap { padding:10px 6px 4px!important; text-align:center; }
.ps-search-panel .ds-search-all { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:7px 14px!important; font-size:13px!important; line-height:1.5; color:var(--burgundy); border:1px solid var(--ps-line); border-radius:10px; }

.ps-search-panel .ds-search-result-excerpt { max-height:3.2em!important; overflow:hidden!important; }


/* Mobile note covers: retain frame height for positioned images */
@media (max-width:640px){
 #notes .ds-note-thumb, .ds-notes-page .ds-note-thumb { aspect-ratio:8 / 5 !important; height:auto !important; }
 #notes .ds-note-thumb img, .ds-notes-page .ds-note-thumb img { height:100% !important; object-fit:contain !important; }
}

.single-post .ds-readable-content table { outline: none !important; border-collapse: separate !important; border-spacing: 0 !important; margin-bottom: 24px !important; }
.single-post .ds-readable-content table tr { background: transparent !important; }
.single-post .ds-readable-content table thead tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content table thead tr:first-child > :last-child { border-top-right-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content table tbody tr:last-child > :first-child { border-bottom-left-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > :last-child { border-bottom-right-radius: 13px; }

/* Justified article prose; preserve explicitly aligned cards */
.single-post .ds-readable-content p:not([style*="text-align:center"]):not([style*="text-align: center"]),
.single-post .ds-readable-content li { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* Dark-mode article components, including legacy inline colours */
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#442334"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#62585c"] { color: #eee8ed !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#771936"] { color: #ffa2bc !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#fff"] { background: #302a32 !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f1f3"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f4f0"] { background: #402d3a !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="border-left:3px solid #771936"] { border-left-color: #ffa2bc !important; }

/* Responsive article review */
.article-mobile-diagram { display: none; }
.single-post .ds-readable-content figure { margin-bottom: 30px; }
@media (max-width: 600px) {
 .single-post .article-diagram-image { display: none; }
 .single-post .article-mobile-diagram { display: grid; gap: 12px; margin: 28px 0; }
 .single-post .article-mobile-diagram h3 { font-size: 21px; line-height: 1.4; margin: 0 0 4px; }
 .single-post .article-mobile-diagram h4 { font-size: 17px; line-height: 1.4; margin: 0 0 10px; }
 .single-post .article-mobile-diagram p { font-size: 16px; line-height: 1.65; margin: 0; text-align: left; hyphens: none; }
 .single-post .article-diagram-step { padding: 18px; border: 1px solid var(--ps-line); border-radius: 16px; background: var(--ps-surface); color: var(--ps-text); }
 .single-post .article-diagram-symbol { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 0 12px; border-radius: 10px; background: var(--ps-accent); color: var(--ps-surface); font-size: 21px; }
 .single-post .ds-readable-content table th, .single-post .ds-readable-content table td { padding: 10px 9px !important; font-size: 15px; line-height: 1.6; }
 .single-post .ds-readable-content table th:first-child { width: 40%; }
}

@media (max-width:600px) {
 .single-post .ds-readable-content .article-mobile-diagram p { text-align:center !important; hyphens:none !important; }
 .single-post .article-mobile-diagram h4 { text-align:center; }
 .single-post .article-diagram-symbol { margin-left:auto; margin-right:auto; }
}

/* Archive covers: preserve artwork and use a consistent light canvas */
.ds-note-thumb { position:relative; aspect-ratio:8 / 5 !important; background:#fff !important; overflow:hidden; }
.ds-note-thumb img { position:absolute; inset:0; display:block; width:100% !important; height:100% !important; object-fit:contain !important; object-position:center !important; }
html[data-color-mode] body .ds-note-thumb img { background:#fff !important; }

/* Avoid stacked spacing between article comments and footer */
.single-post .ds-article-page { padding-bottom: 0; }
.single-post .ds-comments-area { padding-bottom: 0; }
.single-post .ps-footer { margin-top: 48px; }
@media (max-width:600px) { .single-post .ps-footer { margin-top: 32px; } }

/* Keep only one intentional inset after the last article paragraph */
.single-post .ds-article-window .ds-readable-content { padding-bottom: 0; }
.single-post .ds-article-window .ds-readable-content > :last-child { margin-bottom: 0; }
.single-post .ds-article-window .ds-single-content { padding-bottom: 28px; }
@media(max-width:600px) { .single-post .ds-article-window .ds-single-content { padding-bottom: 20px; } }

/* Gutenberg tables: spacing belongs outside the bordered wrapper */
.single-post .ds-readable-content .wp-block-table { margin-bottom: 24px !important; }
.single-post .ds-readable-content .wp-block-table table { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :last-child { border-top-right-radius: 13px; }

/* Keep multi-column article tables readable on small screens */
@media (max-width: 600px) {
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table { min-width: 520px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(5)) table { min-width: 680px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table th:first-child { width: auto; }
 .single-post .ds-readable-content .wp-block-table { overscroll-behavior-x: contain; }
}

/* Aligned, compact live search suggestions */
.ps-search-panel .ds-ajax-search { width:100%; min-width:0; }
.ps-search-panel .ds-search-results { box-sizing:border-box; left:0!important; right:0!important; width:100%!important; min-width:0!important; max-width:100%!important; margin:8px 0 0!important; top:100%!important; padding:6px!important; border:1px solid var(--ps-line); border-radius:16px; background:var(--tone-white); color:var(--tone-text); max-height:min(65vh,480px); overflow-y:auto; overflow-x:hidden; }
.ps-search-panel .ds-search-result { display:block; padding:12px!important; margin:0!important; border:0; border-bottom:1px solid var(--ps-line); background:transparent; }
.ps-search-panel .ds-search-result-body { min-width:0; }
.ps-search-panel .ds-search-result-main { display:block; font-size:15px!important; line-height:1.45!important; font-weight:650; color:var(--ps-text); text-decoration:none; overflow-wrap:anywhere; }
.ps-search-panel .ds-search-result-meta { display:flex; gap:8px; margin:5px 0!important; font-size:11px!important; line-height:1.5; color:var(--tone-text); }
.ps-search-panel .ds-search-result-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12px!important; line-height:1.6!important; color:var(--tone-text); }
.ps-search-panel .ds-search-categories { margin-top:7px; }
.ps-search-panel .ds-post-category { font-size:10px!important; padding:3px 7px; color:var(--burgundy); border-color:var(--ps-line); }
.ps-search-panel .ds-search-result:hover, .ps-search-panel .ds-search-result[aria-selected="true"] { background:var(--tone-accent-soft); border-radius:10px; }
.ps-search-panel .ds-search-result-main:focus-visible, .ps-search-panel .ds-search-all:focus-visible { outline:2px solid var(--burgundy); outline-offset:3px; }
.ps-search-panel .ds-search-all-wrap { padding:10px 6px 4px!important; text-align:center; }
.ps-search-panel .ds-search-all { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:7px 14px!important; font-size:13px!important; line-height:1.5; color:var(--burgundy); border:1px solid var(--ps-line); border-radius:10px; }

.ps-search-panel .ds-search-result-excerpt { max-height:3.2em!important; overflow:hidden!important; }

/* Shared content CTA: desktop inline email, mobile centered */
.ap-content-cta{display:flex!important;flex-wrap:wrap;align-items:center;gap:24px;box-sizing:border-box;padding:46px!important;border-radius:32px!important}
.ap-content-cta h2,.ap-content-cta>p:not(.ap-cta-email){flex:0 0 100%;margin:0!important}
.ap-content-cta .button{background:transparent!important;padding:14px 25px}
.ap-content-cta .ap-cta-email{margin:0 0 0 auto!important;font-size:16px}
@media(max-width:700px){.ap-content-cta{padding:28px 24px!important;gap:22px;border-radius:26px!important}.ap-content-cta .ap-cta-email{margin:0!important;flex:0 0 100%;text-align:center}.ap-content-cta .button{margin:auto}}

/* Compact desktop header and rounded video embeds */
@media (min-width: 1101px) {
  .ps-header-inner { height: 64px; gap: 24px; }
  .ps-brand-badge { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
  .ps-brand strong { font-size: 16px; }
  .ps-brand small { font-size: 8px; letter-spacing: 1.6px; }
  .ps-logo { max-height: 38px; }
  .ps-nav-cta { padding: 7px 16px; }
}
iframe[src*="youtube.com/embed/"],
iframe[src*="youtube-nocookie.com/embed/"] {
  border-radius: 20px;
  overflow: hidden;
}

/* Match comments to the article container */
.ds-article-page > .ds-comments-area { width: 100%; max-width: none; margin-left: 0; margin-right: 0; box-sizing: border-box; }

/* Article text links */
.single-post .ds-readable-content a,
.single-post .ds-readable-content a:visited { color: #1559b7; text-decoration-color: currentColor; }
.single-post .ds-readable-content a:hover,
.single-post .ds-readable-content a:focus-visible { color: #771936; }
html[data-color-mode="dark"] .single-post .ds-readable-content a,
html[data-color-mode="dark"] .single-post .ds-readable-content a:visited { color: #82b7ff; }
html[data-color-mode="dark"] .single-post .ds-readable-content a:hover,
html[data-color-mode="dark"] .single-post .ds-readable-content a:focus-visible { color: #ff8fa5; }

/* Consistent article table corners across browsers */
.single-post .ds-readable-content table { outline: none !important; border-collapse: separate !important; border-spacing: 0 !important; margin-bottom: 24px !important; }
.single-post .ds-readable-content table tr { background: transparent !important; }
.single-post .ds-readable-content table thead tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content table thead tr:first-child > :last-child { border-top-right-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content table tbody tr:last-child > :first-child { border-bottom-left-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > :last-child { border-bottom-right-radius: 13px; }

/* Justified article prose; preserve explicitly aligned cards */
.single-post .ds-readable-content p:not([style*="text-align:center"]):not([style*="text-align: center"]),
.single-post .ds-readable-content li { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* Dark-mode article components, including legacy inline colours */
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#442334"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#62585c"] { color: #eee8ed !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#771936"] { color: #ffa2bc !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#fff"] { background: #302a32 !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f1f3"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f4f0"] { background: #402d3a !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="border-left:3px solid #771936"] { border-left-color: #ffa2bc !important; }

/* Responsive article review */
.article-mobile-diagram { display: none; }
.single-post .ds-readable-content figure { margin-bottom: 30px; }
@media (max-width: 600px) {
 .single-post .article-diagram-image { display: none; }
 .single-post .article-mobile-diagram { display: grid; gap: 12px; margin: 28px 0; }
 .single-post .article-mobile-diagram h3 { font-size: 21px; line-height: 1.4; margin: 0 0 4px; }
 .single-post .article-mobile-diagram h4 { font-size: 17px; line-height: 1.4; margin: 0 0 10px; }
 .single-post .article-mobile-diagram p { font-size: 16px; line-height: 1.65; margin: 0; text-align: left; hyphens: none; }
 .single-post .article-diagram-step { padding: 18px; border: 1px solid var(--ps-line); border-radius: 16px; background: var(--ps-surface); color: var(--ps-text); }
 .single-post .article-diagram-symbol { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 0 12px; border-radius: 10px; background: var(--ps-accent); color: var(--ps-surface); font-size: 21px; }
 .single-post .ds-readable-content table th, .single-post .ds-readable-content table td { padding: 10px 9px !important; font-size: 15px; line-height: 1.6; }
 .single-post .ds-readable-content table th:first-child { width: 40%; }
}

@media (max-width:600px) {
 .single-post .ds-readable-content .article-mobile-diagram p { text-align:center !important; hyphens:none !important; }
 .single-post .article-mobile-diagram h4 { text-align:center; }
 .single-post .article-diagram-symbol { margin-left:auto; margin-right:auto; }
}

/* Archive covers: preserve artwork and use a consistent light canvas */
.ds-note-thumb { position:relative; aspect-ratio:8 / 5 !important; background:#fff !important; overflow:hidden; }
.ds-note-thumb img { position:absolute; inset:0; display:block; width:100% !important; height:100% !important; object-fit:contain !important; object-position:center !important; }
html[data-color-mode] body .ds-note-thumb img { background:#fff !important; }

/* Avoid stacked spacing between article comments and footer */
.single-post .ds-article-page { padding-bottom: 0; }
.single-post .ds-comments-area { padding-bottom: 0; }
.single-post .ps-footer { margin-top: 48px; }
@media (max-width:600px) { .single-post .ps-footer { margin-top: 32px; } }

/* Keep only one intentional inset after the last article paragraph */
.single-post .ds-article-window .ds-readable-content { padding-bottom: 0; }
.single-post .ds-article-window .ds-readable-content > :last-child { margin-bottom: 0; }
.single-post .ds-article-window .ds-single-content { padding-bottom: 28px; }
@media(max-width:600px) { .single-post .ds-article-window .ds-single-content { padding-bottom: 20px; } }

/* Gutenberg tables: spacing belongs outside the bordered wrapper */
.single-post .ds-readable-content .wp-block-table { margin-bottom: 24px !important; }
.single-post .ds-readable-content .wp-block-table table { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :last-child { border-top-right-radius: 13px; }

/* Keep multi-column article tables readable on small screens */
@media (max-width: 600px) {
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table { min-width: 520px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(5)) table { min-width: 680px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table th:first-child { width: auto; }
 .single-post .ds-readable-content .wp-block-table { overscroll-behavior-x: contain; }
}

/* Aligned, compact live search suggestions */
.ps-search-panel .ds-ajax-search { width:100%; min-width:0; }
.ps-search-panel .ds-search-results { box-sizing:border-box; left:0!important; right:0!important; width:100%!important; min-width:0!important; max-width:100%!important; margin:8px 0 0!important; top:100%!important; padding:6px!important; border:1px solid var(--ps-line); border-radius:16px; background:var(--tone-white); color:var(--tone-text); max-height:min(65vh,480px); overflow-y:auto; overflow-x:hidden; }
.ps-search-panel .ds-search-result { display:block; padding:12px!important; margin:0!important; border:0; border-bottom:1px solid var(--ps-line); background:transparent; }
.ps-search-panel .ds-search-result-body { min-width:0; }
.ps-search-panel .ds-search-result-main { display:block; font-size:15px!important; line-height:1.45!important; font-weight:650; color:var(--ps-text); text-decoration:none; overflow-wrap:anywhere; }
.ps-search-panel .ds-search-result-meta { display:flex; gap:8px; margin:5px 0!important; font-size:11px!important; line-height:1.5; color:var(--tone-text); }
.ps-search-panel .ds-search-result-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12px!important; line-height:1.6!important; color:var(--tone-text); }
.ps-search-panel .ds-search-categories { margin-top:7px; }
.ps-search-panel .ds-post-category { font-size:10px!important; padding:3px 7px; color:var(--burgundy); border-color:var(--ps-line); }
.ps-search-panel .ds-search-result:hover, .ps-search-panel .ds-search-result[aria-selected="true"] { background:var(--tone-accent-soft); border-radius:10px; }
.ps-search-panel .ds-search-result-main:focus-visible, .ps-search-panel .ds-search-all:focus-visible { outline:2px solid var(--burgundy); outline-offset:3px; }
.ps-search-panel .ds-search-all-wrap { padding:10px 6px 4px!important; text-align:center; }
.ps-search-panel .ds-search-all { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:7px 14px!important; font-size:13px!important; line-height:1.5; color:var(--burgundy); border:1px solid var(--ps-line); border-radius:10px; }

.ps-search-panel .ds-search-result-excerpt { max-height:3.2em!important; overflow:hidden!important; }


/* Mobile note covers: retain frame height for positioned images */
@media (max-width:640px){
 #notes .ds-note-thumb, .ds-notes-page .ds-note-thumb { aspect-ratio:8 / 5 !important; height:auto !important; }
 #notes .ds-note-thumb img, .ds-notes-page .ds-note-thumb img { height:100% !important; object-fit:contain !important; }
}

.single-post .ds-readable-content table { outline: none !important; border-collapse: separate !important; border-spacing: 0 !important; margin-bottom: 24px !important; }
.single-post .ds-readable-content table tr { background: transparent !important; }
.single-post .ds-readable-content table thead tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content table thead tr:first-child > :last-child { border-top-right-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content table tbody tr:last-child > :first-child { border-bottom-left-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > :last-child { border-bottom-right-radius: 13px; }

/* Justified article prose; preserve explicitly aligned cards */
.single-post .ds-readable-content p:not([style*="text-align:center"]):not([style*="text-align: center"]),
.single-post .ds-readable-content li { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* Dark-mode article components, including legacy inline colours */
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#442334"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#62585c"] { color: #eee8ed !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#771936"] { color: #ffa2bc !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#fff"] { background: #302a32 !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f1f3"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f4f0"] { background: #402d3a !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="border-left:3px solid #771936"] { border-left-color: #ffa2bc !important; }

/* Responsive article review */
.article-mobile-diagram { display: none; }
.single-post .ds-readable-content figure { margin-bottom: 30px; }
@media (max-width: 600px) {
 .single-post .article-diagram-image { display: none; }
 .single-post .article-mobile-diagram { display: grid; gap: 12px; margin: 28px 0; }
 .single-post .article-mobile-diagram h3 { font-size: 21px; line-height: 1.4; margin: 0 0 4px; }
 .single-post .article-mobile-diagram h4 { font-size: 17px; line-height: 1.4; margin: 0 0 10px; }
 .single-post .article-mobile-diagram p { font-size: 16px; line-height: 1.65; margin: 0; text-align: left; hyphens: none; }
 .single-post .article-diagram-step { padding: 18px; border: 1px solid var(--ps-line); border-radius: 16px; background: var(--ps-surface); color: var(--ps-text); }
 .single-post .article-diagram-symbol { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 0 12px; border-radius: 10px; background: var(--ps-accent); color: var(--ps-surface); font-size: 21px; }
 .single-post .ds-readable-content table th, .single-post .ds-readable-content table td { padding: 10px 9px !important; font-size: 15px; line-height: 1.6; }
 .single-post .ds-readable-content table th:first-child { width: 40%; }
}

@media (max-width:600px) {
 .single-post .ds-readable-content .article-mobile-diagram p { text-align:center !important; hyphens:none !important; }
 .single-post .article-mobile-diagram h4 { text-align:center; }
 .single-post .article-diagram-symbol { margin-left:auto; margin-right:auto; }
}

/* Archive covers: preserve artwork and use a consistent light canvas */
.ds-note-thumb { position:relative; aspect-ratio:8 / 5 !important; background:#fff !important; overflow:hidden; }
.ds-note-thumb img { position:absolute; inset:0; display:block; width:100% !important; height:100% !important; object-fit:contain !important; object-position:center !important; }
html[data-color-mode] body .ds-note-thumb img { background:#fff !important; }

/* Avoid stacked spacing between article comments and footer */
.single-post .ds-article-page { padding-bottom: 0; }
.single-post .ds-comments-area { padding-bottom: 0; }
.single-post .ps-footer { margin-top: 48px; }
@media (max-width:600px) { .single-post .ps-footer { margin-top: 32px; } }

/* Keep only one intentional inset after the last article paragraph */
.single-post .ds-article-window .ds-readable-content { padding-bottom: 0; }
.single-post .ds-article-window .ds-readable-content > :last-child { margin-bottom: 0; }
.single-post .ds-article-window .ds-single-content { padding-bottom: 28px; }
@media(max-width:600px) { .single-post .ds-article-window .ds-single-content { padding-bottom: 20px; } }

/* Gutenberg tables: spacing belongs outside the bordered wrapper */
.single-post .ds-readable-content .wp-block-table { margin-bottom: 24px !important; }
.single-post .ds-readable-content .wp-block-table table { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :last-child { border-top-right-radius: 13px; }

/* Keep multi-column article tables readable on small screens */
@media (max-width: 600px) {
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table { min-width: 520px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(5)) table { min-width: 680px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table th:first-child { width: auto; }
 .single-post .ds-readable-content .wp-block-table { overscroll-behavior-x: contain; }
}

/* Aligned, compact live search suggestions */
.ps-search-panel .ds-ajax-search { width:100%; min-width:0; }
.ps-search-panel .ds-search-results { box-sizing:border-box; left:0!important; right:0!important; width:100%!important; min-width:0!important; max-width:100%!important; margin:8px 0 0!important; top:100%!important; padding:6px!important; border:1px solid var(--ps-line); border-radius:16px; background:var(--tone-white); color:var(--tone-text); max-height:min(65vh,480px); overflow-y:auto; overflow-x:hidden; }
.ps-search-panel .ds-search-result { display:block; padding:12px!important; margin:0!important; border:0; border-bottom:1px solid var(--ps-line); background:transparent; }
.ps-search-panel .ds-search-result-body { min-width:0; }
.ps-search-panel .ds-search-result-main { display:block; font-size:15px!important; line-height:1.45!important; font-weight:650; color:var(--ps-text); text-decoration:none; overflow-wrap:anywhere; }
.ps-search-panel .ds-search-result-meta { display:flex; gap:8px; margin:5px 0!important; font-size:11px!important; line-height:1.5; color:var(--tone-text); }
.ps-search-panel .ds-search-result-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12px!important; line-height:1.6!important; color:var(--tone-text); }
.ps-search-panel .ds-search-categories { margin-top:7px; }
.ps-search-panel .ds-post-category { font-size:10px!important; padding:3px 7px; color:var(--burgundy); border-color:var(--ps-line); }
.ps-search-panel .ds-search-result:hover, .ps-search-panel .ds-search-result[aria-selected="true"] { background:var(--tone-accent-soft); border-radius:10px; }
.ps-search-panel .ds-search-result-main:focus-visible, .ps-search-panel .ds-search-all:focus-visible { outline:2px solid var(--burgundy); outline-offset:3px; }
.ps-search-panel .ds-search-all-wrap { padding:10px 6px 4px!important; text-align:center; }
.ps-search-panel .ds-search-all { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:7px 14px!important; font-size:13px!important; line-height:1.5; color:var(--burgundy); border:1px solid var(--ps-line); border-radius:10px; }

.ps-search-panel .ds-search-result-excerpt { max-height:3.2em!important; overflow:hidden!important; }

/* Approved AP brand lockup — 2026-11-13 */
.ps-brand:has(.ps-logo) > span { display:none; }
.ps-brand .ps-logo { display:block; width:210px; height:auto; max-width:100%; max-height:none; object-fit:contain; border-radius:0; }
.ps-brand:has(.ps-logo) { flex:0 0 auto; gap:0; }
html[data-color-mode="dark"] .ps-brand .ps-logo { filter:brightness(0) invert(1); }
@media(max-width:600px) { .ps-brand .ps-logo { width:180px; } }
@media(max-width:360px) { .ps-brand .ps-logo { width:154px; } }

/* Compact desktop header and rounded video embeds */
@media (min-width: 1101px) {
  .ps-header-inner { height: 64px; gap: 24px; }
  .ps-brand-badge { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
  .ps-brand strong { font-size: 16px; }
  .ps-brand small { font-size: 8px; letter-spacing: 1.6px; }
  .ps-logo { max-height: 38px; }
  .ps-nav-cta { padding: 7px 16px; }
}
iframe[src*="youtube.com/embed/"],
iframe[src*="youtube-nocookie.com/embed/"] {
  border-radius: 20px;
  overflow: hidden;
}

/* Match comments to the article container */
.ds-article-page > .ds-comments-area { width: 100%; max-width: none; margin-left: 0; margin-right: 0; box-sizing: border-box; }

/* Article text links */
.single-post .ds-readable-content a,
.single-post .ds-readable-content a:visited { color: #1559b7; text-decoration-color: currentColor; }
.single-post .ds-readable-content a:hover,
.single-post .ds-readable-content a:focus-visible { color: #771936; }
html[data-color-mode="dark"] .single-post .ds-readable-content a,
html[data-color-mode="dark"] .single-post .ds-readable-content a:visited { color: #82b7ff; }
html[data-color-mode="dark"] .single-post .ds-readable-content a:hover,
html[data-color-mode="dark"] .single-post .ds-readable-content a:focus-visible { color: #ff8fa5; }

/* Consistent article table corners across browsers */
.single-post .ds-readable-content table { outline: none !important; border-collapse: separate !important; border-spacing: 0 !important; margin-bottom: 24px !important; }
.single-post .ds-readable-content table tr { background: transparent !important; }
.single-post .ds-readable-content table thead tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content table thead tr:first-child > :last-child { border-top-right-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content table tbody tr:last-child > :first-child { border-bottom-left-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > :last-child { border-bottom-right-radius: 13px; }

/* Justified article prose; preserve explicitly aligned cards */
.single-post .ds-readable-content p:not([style*="text-align:center"]):not([style*="text-align: center"]),
.single-post .ds-readable-content li { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* Dark-mode article components, including legacy inline colours */
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#442334"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#62585c"] { color: #eee8ed !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#771936"] { color: #ffa2bc !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#fff"] { background: #302a32 !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f1f3"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f4f0"] { background: #402d3a !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="border-left:3px solid #771936"] { border-left-color: #ffa2bc !important; }

/* Responsive article review */
.article-mobile-diagram { display: none; }
.single-post .ds-readable-content figure { margin-bottom: 30px; }
@media (max-width: 600px) {
 .single-post .article-diagram-image { display: none; }
 .single-post .article-mobile-diagram { display: grid; gap: 12px; margin: 28px 0; }
 .single-post .article-mobile-diagram h3 { font-size: 21px; line-height: 1.4; margin: 0 0 4px; }
 .single-post .article-mobile-diagram h4 { font-size: 17px; line-height: 1.4; margin: 0 0 10px; }
 .single-post .article-mobile-diagram p { font-size: 16px; line-height: 1.65; margin: 0; text-align: left; hyphens: none; }
 .single-post .article-diagram-step { padding: 18px; border: 1px solid var(--ps-line); border-radius: 16px; background: var(--ps-surface); color: var(--ps-text); }
 .single-post .article-diagram-symbol { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 0 12px; border-radius: 10px; background: var(--ps-accent); color: var(--ps-surface); font-size: 21px; }
 .single-post .ds-readable-content table th, .single-post .ds-readable-content table td { padding: 10px 9px !important; font-size: 15px; line-height: 1.6; }
 .single-post .ds-readable-content table th:first-child { width: 40%; }
}

@media (max-width:600px) {
 .single-post .ds-readable-content .article-mobile-diagram p { text-align:center !important; hyphens:none !important; }
 .single-post .article-mobile-diagram h4 { text-align:center; }
 .single-post .article-diagram-symbol { margin-left:auto; margin-right:auto; }
}

/* Archive covers: preserve artwork and use a consistent light canvas */
.ds-note-thumb { position:relative; aspect-ratio:8 / 5 !important; background:#fff !important; overflow:hidden; }
.ds-note-thumb img { position:absolute; inset:0; display:block; width:100% !important; height:100% !important; object-fit:contain !important; object-position:center !important; }
html[data-color-mode] body .ds-note-thumb img { background:#fff !important; }

/* Avoid stacked spacing between article comments and footer */
.single-post .ds-article-page { padding-bottom: 0; }
.single-post .ds-comments-area { padding-bottom: 0; }
.single-post .ps-footer { margin-top: 48px; }
@media (max-width:600px) { .single-post .ps-footer { margin-top: 32px; } }

/* Keep only one intentional inset after the last article paragraph */
.single-post .ds-article-window .ds-readable-content { padding-bottom: 0; }
.single-post .ds-article-window .ds-readable-content > :last-child { margin-bottom: 0; }
.single-post .ds-article-window .ds-single-content { padding-bottom: 28px; }
@media(max-width:600px) { .single-post .ds-article-window .ds-single-content { padding-bottom: 20px; } }

/* Gutenberg tables: spacing belongs outside the bordered wrapper */
.single-post .ds-readable-content .wp-block-table { margin-bottom: 24px !important; }
.single-post .ds-readable-content .wp-block-table table { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :last-child { border-top-right-radius: 13px; }

/* Keep multi-column article tables readable on small screens */
@media (max-width: 600px) {
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table { min-width: 520px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(5)) table { min-width: 680px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table th:first-child { width: auto; }
 .single-post .ds-readable-content .wp-block-table { overscroll-behavior-x: contain; }
}

/* Aligned, compact live search suggestions */
.ps-search-panel .ds-ajax-search { width:100%; min-width:0; }
.ps-search-panel .ds-search-results { box-sizing:border-box; left:0!important; right:0!important; width:100%!important; min-width:0!important; max-width:100%!important; margin:8px 0 0!important; top:100%!important; padding:6px!important; border:1px solid var(--ps-line); border-radius:16px; background:var(--tone-white); color:var(--tone-text); max-height:min(65vh,480px); overflow-y:auto; overflow-x:hidden; }
.ps-search-panel .ds-search-result { display:block; padding:12px!important; margin:0!important; border:0; border-bottom:1px solid var(--ps-line); background:transparent; }
.ps-search-panel .ds-search-result-body { min-width:0; }
.ps-search-panel .ds-search-result-main { display:block; font-size:15px!important; line-height:1.45!important; font-weight:650; color:var(--ps-text); text-decoration:none; overflow-wrap:anywhere; }
.ps-search-panel .ds-search-result-meta { display:flex; gap:8px; margin:5px 0!important; font-size:11px!important; line-height:1.5; color:var(--tone-text); }
.ps-search-panel .ds-search-result-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12px!important; line-height:1.6!important; color:var(--tone-text); }
.ps-search-panel .ds-search-categories { margin-top:7px; }
.ps-search-panel .ds-post-category { font-size:10px!important; padding:3px 7px; color:var(--burgundy); border-color:var(--ps-line); }
.ps-search-panel .ds-search-result:hover, .ps-search-panel .ds-search-result[aria-selected="true"] { background:var(--tone-accent-soft); border-radius:10px; }
.ps-search-panel .ds-search-result-main:focus-visible, .ps-search-panel .ds-search-all:focus-visible { outline:2px solid var(--burgundy); outline-offset:3px; }
.ps-search-panel .ds-search-all-wrap { padding:10px 6px 4px!important; text-align:center; }
.ps-search-panel .ds-search-all { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:7px 14px!important; font-size:13px!important; line-height:1.5; color:var(--burgundy); border:1px solid var(--ps-line); border-radius:10px; }

.ps-search-panel .ds-search-result-excerpt { max-height:3.2em!important; overflow:hidden!important; }


/* Mobile note covers: retain frame height for positioned images */
@media (max-width:640px){
 #notes .ds-note-thumb, .ds-notes-page .ds-note-thumb { aspect-ratio:8 / 5 !important; height:auto !important; }
 #notes .ds-note-thumb img, .ds-notes-page .ds-note-thumb img { height:100% !important; object-fit:contain !important; }
}

.single-post .ds-readable-content table { outline: none !important; border-collapse: separate !important; border-spacing: 0 !important; margin-bottom: 24px !important; }
.single-post .ds-readable-content table tr { background: transparent !important; }
.single-post .ds-readable-content table thead tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content table thead tr:first-child > :last-child { border-top-right-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content table tbody tr:last-child > :first-child { border-bottom-left-radius: 13px; }
.single-post .ds-readable-content table tbody tr:last-child > :last-child { border-bottom-right-radius: 13px; }

/* Justified article prose; preserve explicitly aligned cards */
.single-post .ds-readable-content p:not([style*="text-align:center"]):not([style*="text-align: center"]),
.single-post .ds-readable-content li { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* Dark-mode article components, including legacy inline colours */
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#442334"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#62585c"] { color: #eee8ed !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="color:#771936"] { color: #ffa2bc !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#fff"] { background: #302a32 !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f1f3"],
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="background:#f7f4f0"] { background: #402d3a !important; border-color: #685463 !important; }
html[data-color-mode="dark"] .single-post .ds-readable-content [style*="border-left:3px solid #771936"] { border-left-color: #ffa2bc !important; }

/* Responsive article review */
.article-mobile-diagram { display: none; }
.single-post .ds-readable-content figure { margin-bottom: 30px; }
@media (max-width: 600px) {
 .single-post .article-diagram-image { display: none; }
 .single-post .article-mobile-diagram { display: grid; gap: 12px; margin: 28px 0; }
 .single-post .article-mobile-diagram h3 { font-size: 21px; line-height: 1.4; margin: 0 0 4px; }
 .single-post .article-mobile-diagram h4 { font-size: 17px; line-height: 1.4; margin: 0 0 10px; }
 .single-post .article-mobile-diagram p { font-size: 16px; line-height: 1.65; margin: 0; text-align: left; hyphens: none; }
 .single-post .article-diagram-step { padding: 18px; border: 1px solid var(--ps-line); border-radius: 16px; background: var(--ps-surface); color: var(--ps-text); }
 .single-post .article-diagram-symbol { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 0 12px; border-radius: 10px; background: var(--ps-accent); color: var(--ps-surface); font-size: 21px; }
 .single-post .ds-readable-content table th, .single-post .ds-readable-content table td { padding: 10px 9px !important; font-size: 15px; line-height: 1.6; }
 .single-post .ds-readable-content table th:first-child { width: 40%; }
}

@media (max-width:600px) {
 .single-post .ds-readable-content .article-mobile-diagram p { text-align:center !important; hyphens:none !important; }
 .single-post .article-mobile-diagram h4 { text-align:center; }
 .single-post .article-diagram-symbol { margin-left:auto; margin-right:auto; }
}

/* Archive covers: preserve artwork and use a consistent light canvas */
.ds-note-thumb { position:relative; aspect-ratio:8 / 5 !important; background:#fff !important; overflow:hidden; }
.ds-note-thumb img { position:absolute; inset:0; display:block; width:100% !important; height:100% !important; object-fit:contain !important; object-position:center !important; }
html[data-color-mode] body .ds-note-thumb img { background:#fff !important; }

/* Avoid stacked spacing between article comments and footer */
.single-post .ds-article-page { padding-bottom: 0; }
.single-post .ds-comments-area { padding-bottom: 0; }
.single-post .ps-footer { margin-top: 48px; }
@media (max-width:600px) { .single-post .ps-footer { margin-top: 32px; } }

/* Keep only one intentional inset after the last article paragraph */
.single-post .ds-article-window .ds-readable-content { padding-bottom: 0; }
.single-post .ds-article-window .ds-readable-content > :last-child { margin-bottom: 0; }
.single-post .ds-article-window .ds-single-content { padding-bottom: 28px; }
@media(max-width:600px) { .single-post .ds-article-window .ds-single-content { padding-bottom: 20px; } }

/* Gutenberg tables: spacing belongs outside the bordered wrapper */
.single-post .ds-readable-content .wp-block-table { margin-bottom: 24px !important; }
.single-post .ds-readable-content .wp-block-table table { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody tr:last-child > * { border-bottom: 0 !important; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :first-child { border-top-left-radius: 13px; }
.single-post .ds-readable-content .wp-block-table table tbody:first-child tr:first-child > :last-child { border-top-right-radius: 13px; }

/* Keep multi-column article tables readable on small screens */
@media (max-width: 600px) {
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table { min-width: 520px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(5)) table { min-width: 680px; }
 .single-post .ds-readable-content .wp-block-table:has(tr > :nth-child(3)) table th:first-child { width: auto; }
 .single-post .ds-readable-content .wp-block-table { overscroll-behavior-x: contain; }
}

/* Aligned, compact live search suggestions */
.ps-search-panel .ds-ajax-search { width:100%; min-width:0; }
.ps-search-panel .ds-search-results { box-sizing:border-box; left:0!important; right:0!important; width:100%!important; min-width:0!important; max-width:100%!important; margin:8px 0 0!important; top:100%!important; padding:6px!important; border:1px solid var(--ps-line); border-radius:16px; background:var(--tone-white); color:var(--tone-text); max-height:min(65vh,480px); overflow-y:auto; overflow-x:hidden; }
.ps-search-panel .ds-search-result { display:block; padding:12px!important; margin:0!important; border:0; border-bottom:1px solid var(--ps-line); background:transparent; }
.ps-search-panel .ds-search-result-body { min-width:0; }
.ps-search-panel .ds-search-result-main { display:block; font-size:15px!important; line-height:1.45!important; font-weight:650; color:var(--ps-text); text-decoration:none; overflow-wrap:anywhere; }
.ps-search-panel .ds-search-result-meta { display:flex; gap:8px; margin:5px 0!important; font-size:11px!important; line-height:1.5; color:var(--tone-text); }
.ps-search-panel .ds-search-result-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12px!important; line-height:1.6!important; color:var(--tone-text); }
.ps-search-panel .ds-search-categories { margin-top:7px; }
.ps-search-panel .ds-post-category { font-size:10px!important; padding:3px 7px; color:var(--burgundy); border-color:var(--ps-line); }
.ps-search-panel .ds-search-result:hover, .ps-search-panel .ds-search-result[aria-selected="true"] { background:var(--tone-accent-soft); border-radius:10px; }
.ps-search-panel .ds-search-result-main:focus-visible, .ps-search-panel .ds-search-all:focus-visible { outline:2px solid var(--burgundy); outline-offset:3px; }
.ps-search-panel .ds-search-all-wrap { padding:10px 6px 4px!important; text-align:center; }
.ps-search-panel .ds-search-all { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:7px 14px!important; font-size:13px!important; line-height:1.5; color:var(--burgundy); border:1px solid var(--ps-line); border-radius:10px; }

.ps-search-panel .ds-search-result-excerpt { max-height:3.2em!important; overflow:hidden!important; }

/* Half-size YouTube players; retain their ratio and centre them on every screen. */
main iframe:is([src*="youtube.com/embed/"],[src*="youtube-nocookie.com/embed/"]){width:50%!important;max-width:100%!important;height:auto!important;aspect-ratio:16/9;display:block;margin-inline:auto!important}
main :is(div,figure):has(>iframe:is([src*="youtube.com/embed/"],[src*="youtube-nocookie.com/embed/"])){width:50%!important;max-width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:16/9!important;padding:0!important;margin-inline:auto!important;position:relative}
main :is(div,figure)>iframe:is([src*="youtube.com/embed/"],[src*="youtube-nocookie.com/embed/"]){width:100%!important;height:100%!important;position:absolute!important;inset:0!important}

/* Keep the source, duration and video links directly beneath their player. */
main :is(div,figure):has(>iframe:is([src*="youtube.com/embed/"],[src*="youtube-nocookie.com/embed/"])) + :is(.video-credit,figcaption){width:50%!important;max-width:100%!important;box-sizing:border-box;margin:12px auto 0!important;text-align:center!important;overflow-wrap:anywhere}
