.design-surface {
    --paper: var(--theme-page);
    --ink: var(--theme-text);
    --muted: var(--theme-muted);
    --accent: var(--theme-accent);
    --rule: var(--theme-rule);
}
.design-theme {
    --white: var(--theme-panel);
    --wash: var(--theme-wash);
}

.design-surface :focus-visible { outline-color: var(--accent); }

.design-surface footer { background: var(--paper); color: var(--ink); }
.design-surface footer a { color: var(--accent); }
.design-surface footer p { color: var(--muted); }
.design-surface .copyright { border-color: var(--rule); }

.design-editorial h1, .design-editorial h2 { line-height: var(--design-heading-leading); letter-spacing: normal; }
.design-editorial h1 { font-size: var(--design-title); }
.design-editorial h2 { font-size: var(--design-heading); }
.design-editorial p { max-width: var(--design-measure); }
.design-editorial .btn:hover { background: var(--theme-action-hover); }

.design-editorial .directions .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--design-section-gap); }
.design-editorial .directions .hub-card { padding: 13px 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
.design-editorial .hub-card p { margin-top: 6px; color: var(--muted); }
.design-editorial .metric { padding: 8px 0 8px 22px; border-left: 1px solid var(--rule); background: none; border-radius: 0; }
.design-editorial .metric strong { font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: normal; }
.design-editorial .metric p { color: var(--muted); }
.design-editorial .review-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-block: 0; }
.design-editorial .quote {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(11rem, .33fr);
    align-items: start;
    gap: 12px 24px;
    padding: var(--design-review-space) 0;
    border: 0;
    border-top: 1px solid var(--rule);
    border-radius: 0;
    background: none;
}
.design-editorial .quote blockquote { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.5; }
.design-editorial .quote figcaption { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.quote-author, .quote-role { display: block; }
.quote-author { color: var(--ink); font-weight: 700; }
.quote-role { margin-top: 3px; }

@media (max-width: 520px) {
    .design-editorial .directions .hub-grid, .design-editorial .quote { grid-template-columns: minmax(0, 1fr); }
    .design-editorial .quote { gap: 8px; }
}

.design-theme .theme-toggle:not([hidden]) {
    display: grid;
    place-items: center;
    flex: 0 0 var(--design-control-size);
    width: var(--design-control-size);
    height: var(--design-control-size);
    padding: 0;
    margin: 0;
    border: 1px solid var(--theme-control);
    border-radius: var(--design-control-radius);
    background: transparent;
    color: var(--theme-accent);
    cursor: pointer;
}
.theme-toggle svg { width: 21px; height: 21px; }
.design-theme .theme-toggle:hover { background: var(--theme-wash); }
.design-theme .theme-logo-dark, .design-theme .theme-toggle__sun { display: none; }
.design-theme :focus-visible { outline: 3px solid var(--theme-focus); outline-offset: 3px; }
.design-theme .langs a[aria-current] { color: var(--paper); }
.design-theme .btn { background: var(--theme-action); color: var(--theme-action-text); }
.design-theme .btn:hover { background: var(--theme-action-hover); }
.design-theme :is(input, textarea, select) {
    background: var(--theme-panel);
    color: var(--ink);
    border-color: var(--theme-control);
    accent-color: var(--theme-accent);
}
.design-theme .credential-bar { background: var(--theme-subtle); color: var(--ink); }
.design-theme .credential-bar a { color: var(--accent); }
.design-theme .credential-bar span { color: var(--muted); }
.design-theme .course-card { background: var(--white); }

.service-design .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
.service-design .plans > .note {
    padding: var(--design-review-space) 0;
    border: 0;
    border-top: 1px solid var(--rule);
    border-radius: 0;
    background: none;
}
.service-design .plans > .note:last-child { border-bottom: 1px solid var(--rule); }

@media screen {
    [data-theme="dark"] .design-theme :is(.theme-logo-light, .theme-toggle__moon) { display: none; }
    [data-theme="dark"] .design-theme :is(.theme-logo-dark, .theme-toggle__sun) { display: block; }
}

@media (min-width: 741px) and (max-width: 830px) {
    .design-theme .top { gap: .75rem; }
    .design-theme .main-nav { gap: .65rem; }
}

@media print {
    .design-theme .theme-toggle:not([hidden]) { display: none; }
    .design-theme { --paper: #fff; }
    .design-theme .demo-frame { color-scheme: light; }
}

.design-theme .blog-filters a { border-color: var(--theme-control); }
.design-theme .blog-filters a[aria-current="true"] {
    background: var(--theme-action);
    color: var(--theme-action-text);
    border-color: var(--theme-action);
}
.design-editorial .blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
.design-editorial .blog-grid .course-card {
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--rule);
    border-radius: 0;
    background: none;
}
.design-editorial .blog-grid .card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px var(--design-section-gap);
    padding: var(--design-review-space) 0;
}
.design-editorial .blog-grid h2 {
    grid-column: 1;
    margin: 0;
    font: 650 clamp(1.2rem, 2.2vw, 1.65rem)/1.3 var(--sans);
    overflow-wrap: break-word;
}
.design-editorial .blog-grid p { grid-column: 1; margin: 0; }
.design-editorial .blog-grid .card-end {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
    margin: 0;
    padding: 0;
}
@media (max-width: 520px) {
    .design-editorial .blog-grid .card-body { grid-template-columns: minmax(0, 1fr); }
    .design-editorial .blog-grid .card-end { grid-column: 1; grid-row: auto; }
}
