@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/portal/assets/inter-variable.woff2') format('woff2');
}
:root {
    --cm-ink: #1f2830;
    --cm-muted: #78828b;
    --cm-line: #dce2e5;
    --cm-accent: #e66d4f;
    --cm-paper: #f7f8f6;
    --cm-surface: #fff;
    --cm-radius-sm: 6px;
    --cm-radius-md: 8px;
    --cm-content: 1312px;
    --cm-gutter: 64px;
    --cm-section-width: 300px;
    --cm-home-gap: 44px;
    --cm-article-width: 840px;
    --cm-focus: #176f92;
}
.cm-site-page, .cm-editor { color: var(--cm-ink); font: 16px/1.5 Inter, system-ui, sans-serif; letter-spacing: 0; }
.cm-site-page { margin: 0; background: var(--cm-paper); }
.cm-site-page *, .cm-editor *, .cm-site-page *::before, .cm-editor *::before, .cm-site-page *::after, .cm-editor *::after { box-sizing: border-box; letter-spacing: 0; }
.cm-site-page [hidden], .cm-editor [hidden] { display: none !important; }
.cm-site-page a { color: inherit; }
.cm-site-page :is(button, input, select, textarea), .cm-editor :is(button, input, select, textarea) { font: inherit; }
.cm-site-page :focus-visible, .cm-editor :focus-visible { outline: 2px solid var(--cm-focus); outline-offset: 4px; }
.cm-site-page p { margin: 0; }
.cm-muted { color: var(--cm-muted); }
.cm-eyebrow { margin: 0; color: var(--cm-accent); font-size: 13px; line-height: 24px; font-weight: 800; text-transform: uppercase; }
.cm-container { width: min(calc(100% - var(--cm-gutter) * 2), var(--cm-content)); margin-inline: auto; }
.cm-site-header { background: var(--cm-surface); border-bottom: 1px solid var(--cm-line); }
.cm-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cm-brand { color: var(--cm-ink); font-size: 22px; font-weight: 800; text-decoration: none; }
.cm-nav, .cm-nav__sections { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cm-nav { justify-content: flex-end; }
.cm-nav-placeholder { display: block; width: min(500px, 100%); height: 22px; border-radius: 6px; }
.cm-site-header[aria-busy="true"] .cm-nav { width: min(500px, 60%); }
.cm-skeleton { background: linear-gradient(100deg, var(--cm-line) 20%, var(--cm-surface) 50%, var(--cm-line) 80%); background-size: 200% 100%; animation: cm-shimmer 1.5s linear infinite; }
.cm-section-skeleton { width: 100%; min-height: 420px; border-radius: 8px; }
.cm-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes cm-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .cm-skeleton { animation: none; } }
.cm-nav a { color: var(--cm-muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.cm-nav a:is(:hover, [aria-current="page"]) { color: var(--cm-ink); }
.cm-nav select { width: 60px; min-height: 40px; border: 0; color: var(--cm-ink); background: transparent; cursor: pointer; }
.cm-site-footer { margin-top: 92px; border-top: 1px solid var(--cm-line); color: var(--cm-muted); }
.cm-footer-inner { min-height: 100px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cm-footer-inner .cm-brand { font-size: 18px; margin-right: auto; }
.cm-footer-inner a:not(.cm-brand), .cm-footer-inner span { font-size: 13px; }
.cm-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.cm-legal-page { max-width: 840px; padding-block: 48px 80px; }
.cm-legal-page h1 { margin: 12px 0 24px; font-size: 40px; line-height: 1.2; }
.cm-legal-page h2 { margin: 32px 0 12px; font-size: 23px; line-height: 1.3; }
.cm-legal-page p, .cm-legal-page li { margin: 0 0 14px; line-height: 1.65; }
.cm-legal-page ul, .cm-legal-page ol { padding-left: 24px; }
.cm-legal-page a { color: var(--cm-accent); }
.cm-legal-meta { color: var(--cm-muted); font-size: 14px; }

/* Penpot Site / Content / Section row: one vertical component on every screen. */
.cm-story-card { display: flex; flex-direction: column; width: min(100%, var(--cm-section-width)); min-width: 0; min-height: 348px; padding: 16px; border-radius: 8px; background: var(--cm-surface); color: var(--cm-ink); text-decoration: none; overflow-wrap: anywhere; }
.cm-story-card__image, .cm-story-card__placeholder { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; flex: 0 0 auto; border-radius: 8px; object-fit: cover; background: var(--cm-line); }
.cm-story-card__meta { display: block; margin-top: 24px; min-height: 16px; color: var(--cm-accent); font-size: 12px; line-height: 16px; font-weight: 800; }
.cm-story-card__title { margin: 16px 0 0; color: var(--cm-ink); font-size: 22px; line-height: 1.15; font-weight: 700; }
.cm-story-card__excerpt { margin: 16px 0 0 !important; color: var(--cm-muted); font-size: 14px; line-height: 1.35; }
a.cm-story-card:hover .cm-story-card__title { text-decoration: underline; text-underline-offset: 4px; }
.cm-section-widget { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cm-section-heading { margin: 0; min-height: 56px; padding-bottom: 16px; border-bottom: 1px solid var(--cm-line); color: var(--cm-ink); font-size: 24px; line-height: 1.6; }
.cm-section-heading a { color: inherit; text-decoration: none; }
.cm-section-heading a:hover { text-decoration: underline; text-underline-offset: 5px; }
.cm-section-stack { display: flex; flex-direction: column; gap: 44px; }
.cm-section-content[aria-busy="true"] { min-height: 100px; }
.cm-status { color: var(--cm-muted); font-size: 14px; line-height: 1.5; padding-block: 12px; overflow-wrap: anywhere; }
.cm-status button { margin-top: 12px; }
.cm-page-heading { margin-bottom: 38px; padding-bottom: 22px; border-bottom: 1px solid var(--cm-line); }
.cm-page-heading h1 { margin: 12px 0 16px; font-size: 48px; line-height: 1.2; overflow-wrap: anywhere; }
.cm-page-heading__count { color: var(--cm-muted); font-size: 14px; }
.cm-public-api { padding-block: 48px 80px; }
.cm-public-api__panel { min-width: 0; padding: 24px; border: 1px solid var(--cm-line); border-radius: 8px; background: var(--cm-surface); }
.cm-public-api__panel + .cm-public-api__panel { margin-top: 20px; }
.cm-public-api__panel h2 { margin: 8px 0 14px; font-size: 24px; line-height: 1.3; }
.cm-public-api__panel p { margin: 12px 0 0; }
.cm-public-api__panel ol { display: grid; gap: 10px; padding-left: 24px; }
.cm-public-api__routes { display: grid; gap: 8px; margin: 16px 0; }
.cm-public-api__routes code, .cm-public-api code { overflow-wrap: anywhere; }
.cm-public-api__route { display: block; padding: 10px 12px; border-radius: 6px; background: var(--cm-paper); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.cm-public-api__method { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--cm-line); }
.cm-public-api__method h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.4; }
.cm-public-api__method .cm-code-block { display: block; padding: 10px 12px; border-radius: 6px; background: var(--cm-paper); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.cm-public-api__method table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.cm-public-api__method th, .cm-public-api__method td { padding: 10px 12px; border-bottom: 1px solid var(--cm-line); text-align: left; vertical-align: top; }
.cm-public-api__method th { color: var(--cm-muted); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.cm-public-api__method td:first-child { white-space: nowrap; }
.cm-public-api__locale { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 12px; }
.cm-public-api__locale button { min-width: 44px; padding: 7px 10px; border: 1px solid var(--cm-line); border-radius: 6px; color: var(--cm-ink); background: var(--cm-surface); cursor: pointer; }
.cm-public-api__locale button[aria-pressed="true"] { border-color: var(--cm-accent); color: var(--cm-accent); font-weight: 700; }
@media (max-width: 760px) { .cm-public-api__panel { padding: 18px; } .cm-public-api__method table { display: block; overflow-x: auto; } .cm-public-api__method td:first-child { white-space: normal; } }
.cm-article-heading { margin-bottom: 36px; }
.cm-article-heading .cm-story-card__meta { margin-top: 28px; }
.cm-article-heading h1 { margin: 24px 0 0; font-size: 40px; line-height: 1.2; overflow-wrap: anywhere; }
.cm-back { display: inline-flex; align-items: center; gap: 8px; color: var(--cm-accent) !important; font-size: 15px; text-decoration: none; }
.cm-icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cm-article-media { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 50px; }
.cm-article-body { font-size: 18px; line-height: 1.65; overflow-wrap: anywhere; }
.cm-article-body p { margin: 0 0 20px; }
.cm-article-body :is(h1, h2, h3, h4) { margin: 32px 0 18px; line-height: 1.25; }
.cm-article-body h1, .cm-article-body h2 { font-size: 28px; }
.cm-article-body h3 { font-size: 24px; }
.cm-article-body a { color: var(--cm-accent); }
.cm-article-body pre { overflow-x: auto; padding: 16px; background: var(--cm-paper); border-radius: 6px; }
.cm-article-body blockquote { margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--cm-line); color: var(--cm-muted); }
.cm-article-body :is(img, video) { display: block; max-width: 100%; max-height: 560px; object-fit: contain; border-radius: 8px; }
.cm-article-body figure { margin: 24px 0; }
.cm-article-body figcaption { color: var(--cm-muted); font-size: 14px; font-style: italic; text-align: center; overflow-wrap: anywhere; }
.cm-article-body .news-image-figure { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cm-article-body .news-image-figure.is-portrait { flex-direction: row; gap: 16px; }
.cm-article-body .news-image-figure.is-portrait img { max-width: calc(100% - 276px); }
.cm-article-body .news-image-figure.is-portrait figcaption { flex: 0 0 260px; max-width: 260px; text-align: left; }
.cm-article-body .news-video-figure { display: grid; gap: 8px; }
.cm-article-body .news-video-figure iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.cm-article-body iframe[src*="clip_ext.php"] { width: min(100%, 363px); aspect-ratio: 363 / 714; margin-inline: auto; }
.cm-article-body .news-video-fallback { text-align: center; font-size: 14px; }
.cm-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--cm-line); border-radius: 6px; background: var(--cm-surface); color: var(--cm-ink); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.cm-button--primary { border-color: var(--cm-accent); background: var(--cm-accent); color: #fff; }
.cm-button:hover { filter: brightness(.97); }
.cm-button:disabled { opacity: .5; cursor: not-allowed; }
.cm-field { display: grid; gap: 8px; margin: 0; color: var(--cm-ink); font-size: 14px; font-weight: 700; }
.cm-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--cm-line); border-radius: 6px; background: var(--cm-surface); color: var(--cm-ink); font-size: 15px; font-weight: 400; }
.cm-field textarea { resize: vertical; }
.cm-editor { width: min(100%, var(--cm-article-width)); margin: 40px auto; }
.cm-editor h2 { margin: 0; font-size: 32px; line-height: 1.25; }
.cm-editor__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; margin: 32px 0 36px; }
.cm-editor > .cm-field, .cm-editor > .cm-cover-control { margin-bottom: 32px; }
.cm-editor__status { max-width: 240px; }
.cm-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 6px; background: var(--cm-line); }
.cm-tabs [role="tab"] { flex: 1; min-height: 36px; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: var(--cm-muted); font-size: 14px; font-weight: 700; cursor: pointer; }
.cm-tabs [aria-selected="true"] { color: var(--cm-ink); background: var(--cm-surface); }
.cm-editor-panel { padding-top: 12px; }
.cm-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-height: 56px; margin-bottom: 8px; padding: 6px; border: 1px solid var(--cm-line); border-radius: 6px; background: var(--cm-surface); }
.cm-tool { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--cm-ink); cursor: pointer; }
.cm-tool:hover { background: var(--cm-paper); }
.cm-tool:disabled { opacity: .35; cursor: not-allowed; }
.cm-toolbar__divider { width: 1px; height: 24px; background: var(--cm-line); margin-inline: 4px; }
.cm-toolbar__upload { margin-left: auto; }
.cm-editor-source, .cm-editor-preview { width: 100%; min-height: 300px; padding: 20px; border: 1px solid var(--cm-line); border-radius: 6px; color: var(--cm-ink); background: var(--cm-surface); }
.cm-editor-source { display: block; resize: vertical; font: 15px/1.6 ui-monospace, monospace !important; }
.cm-cover-control { margin: 0; padding: 0; border: 0; min-width: 0; }
.cm-cover-control legend { padding: 0; margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.cm-cover-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 40px; align-items: center; }
.cm-cover-preview { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--cm-line); overflow: hidden; color: var(--cm-muted); font-size: 14px; }
.cm-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cm-cover-preview .cm-tool { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; color: white; background: var(--cm-ink); }
.cm-cover-controls { display: grid; gap: 20px; min-width: 0; }
.cm-cover-control [data-media-ratio] { margin: 12px 0 0; color: var(--cm-muted); font-size: 12px; }
.cm-cover-control.invalid-ratio [data-media-ratio] { color: #b3261e; }
.cm-file-input { max-width: 100%; font-size: 13px !important; }
@media (max-width: 1100px) {
    :root { --cm-gutter: 32px; --cm-home-gap: 32px; }
    .cm-header-inner { padding-block: 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
    .cm-nav { width: 100%; min-height: 56px; gap: 16px; justify-content: flex-start; align-content: center; }
    .cm-site-header[aria-busy="true"] .cm-nav { width: 100%; }
}
@media (max-width: 760px) {
    :root { --cm-gutter: 20px; }
    .cm-nav, .cm-nav__sections { gap: 14px; }
    .cm-nav { justify-content: flex-start; }
    .cm-nav a { font-size: 13px; }
    .cm-page-heading h1 { font-size: 32px; }
    .cm-article-heading h1 { font-size: 30px; }
    .cm-article-body { font-size: 16px; }
    .cm-article-body .news-image-figure.is-portrait { flex-direction: column; }
    .cm-article-body .news-image-figure.is-portrait img { max-width: 100%; }
    .cm-article-body .news-image-figure.is-portrait figcaption { flex-basis: auto; max-width: 100%; text-align: center; }
    .cm-cover-layout { grid-template-columns: 1fr; gap: 16px; }
    .cm-editor h2 { font-size: 26px; }
    .cm-editor__actions { justify-content: flex-start; gap: 8px; }
}
