@charset "utf-8";
/* ==========================================================================
   Module: CMS content
   Blocks rendered by app/Services/Tiptap and resources/views/cms/blocks,
   inside .post-body on the blog post page. Headings, paragraphs, lists and
   quotes are styled by .post-body (page/blog-post.css); this file adds the
   remaining editor blocks with the site tokens. The admin editor styles the
   same class names in resources/css/cms-content.css.
   ========================================================================== */

/* Text
   ----------------------------------------------------------------- */
.cms-content > :first-child {
    margin-top: 0;
}

.cms-content :is(h2, h3, h4) {
    scroll-margin-top: 90px;
}

.cms-content h3 {
    font-size: 20px;
    margin: 32px 0 12px;
}

.cms-content h4 {
    font-size: 18px;
    margin: 28px 0 10px;
}

.cms-content a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cms-content ol {
    margin: 0 0 20px;
    padding-left: 1.4em;
    list-style: decimal;
}

.cms-content li > p {
    margin-bottom: 6px;
}

.cms-content hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #e3e7f2;
}

.cms-content :not(pre) > code {
    padding: 0.15em 0.35em;
    border-radius: 4px;
    background: var(--bg-soft);
    font-size: 0.875em;
}

.cms-content pre {
    overflow-x: auto;
    margin: 0 0 20px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: #0d1117;
    font-size: 14px;
    line-height: 1.65;
    color: #e6edf3;
}

.cms-content pre code {
    background: none;
    padding: 0;
}

.cms-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Quote
   ----------------------------------------------------------------- */
.cms-content blockquote p {
    margin: 0;
}

.cms-content blockquote > * + * {
    margin-top: 10px;
}

.cms-quote__citation {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
}

.cms-quote__citation cite {
    font-style: normal;
}

.cms-quote__citation::before {
    content: "\2014\00a0";
}

/* Callout (same look as the design's tip box)
   ----------------------------------------------------------------- */
.cms-callout {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--blue-light);
    border-radius: var(--radius-md);
}

.cms-callout p {
    margin-bottom: 10px;
}

.cms-callout > :last-child {
    margin-bottom: 0;
}

/* A first line that is only bold text works as the label ("Tip"). */
.cms-callout > p:first-child > strong:only-child {
    font-size: 13px;
    color: var(--blue);
}

.cms-callout--success {
    background: #eaf7ef;
}

.cms-callout--warning {
    background: #fff7dc;
}

.cms-callout--danger {
    background: #fdecec;
}

.cms-callout--note {
    background: var(--bg-soft);
}

/* Table
   ----------------------------------------------------------------- */
.cms-table {
    overflow-x: auto;
    margin: 0 0 20px;
}

.cms-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.cms-content :is(th, td) {
    padding: 8px 12px;
    border: 1px solid #e3e7f2;
    text-align: left;
    vertical-align: top;
}

.cms-content th {
    background: var(--bg-soft);
    font-weight: 700;
    color: var(--heading);
}

.cms-content :is(th, td) p {
    margin: 0;
}

/* Image
   ----------------------------------------------------------------- */
.cms-image {
    margin: 28px auto;
}

.cms-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.cms-content figcaption {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
}

.cms-image--small {
    max-width: 384px;
}

.cms-image--wide,
.cms-image--full {
    position: relative;
    left: 50%;
    width: min(1024px, calc(100vw - 32px));
    max-width: none;
    transform: translateX(-50%);
}

.cms-image--full {
    width: 100vw;
}

.cms-image--full img {
    border-radius: 0;
}

.cms-image--small.cms-image--align-left {
    float: left;
    width: 50%;
    margin: 4px 24px 16px 0;
}

.cms-image--small.cms-image--align-right {
    float: right;
    width: 50%;
    margin: 4px 0 16px 24px;
}

/* Gallery
   ----------------------------------------------------------------- */
.cms-gallery {
    margin: 28px 0;
}

.cms-content .cms-gallery__grid {
    display: grid;
    grid-template-columns: repeat(var(--cms-gallery-columns, 3), minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cms-content .cms-gallery__grid li {
    margin: 0;
}

.cms-gallery--cols-2 {
    --cms-gallery-columns: 2;
}

.cms-gallery--cols-4 {
    --cms-gallery-columns: 4;
}

.cms-gallery__item figure {
    margin: 0;
}

.cms-gallery__item a {
    display: block;
}

.cms-gallery__item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.cms-gallery--crop .cms-gallery__item img {
    aspect-ratio: 1;
    object-fit: cover;
}

/* Embeds (YouTube, Vimeo, Google Maps, ...)
   ----------------------------------------------------------------- */
.cms-embed {
    margin: 28px 0;
}

.cms-embed__frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-soft);
}

.cms-embed__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.cms-embed--16-9 .cms-embed__frame {
    aspect-ratio: 16 / 9;
}

.cms-embed--4-3 .cms-embed__frame {
    aspect-ratio: 4 / 3;
}

.cms-embed--1-1 .cms-embed__frame {
    aspect-ratio: 1;
}

.cms-embed--9-16 .cms-embed__frame {
    max-width: 352px;
    margin-inline: auto;
    aspect-ratio: 9 / 16;
}

/* File attachment
   ----------------------------------------------------------------- */
.cms-file {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 1px solid #e3e7f2;
    border-radius: var(--radius-sm);
}

.cms-content a.cms-file {
    color: inherit;
    text-decoration: none;
}

.cms-content a.cms-file:hover {
    background: var(--bg-soft);
}

.cms-file__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--blue-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blue);
}

.cms-file__name {
    display: block;
    font-weight: 700;
    line-height: 1.4;
    color: var(--heading);
}

.cms-file__meta {
    display: block;
    font-size: 13px;
}

/* Button
   ----------------------------------------------------------------- */
.cms-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 20px;
}

.cms-button-row--center {
    justify-content: center;
}

.cms-button-row--right {
    justify-content: flex-end;
}

.cms-content .cms-button {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--blue);
    border-radius: 999px;
    background: var(--blue);
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    text-decoration: none;
}

.cms-content .cms-button:hover {
    opacity: 0.9;
}

.cms-content .cms-button--secondary {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--heading);
}

.cms-content .cms-button--outline {
    background: transparent;
    color: var(--blue);
}

/* ==========================================================================
   Responsive (max-width: 640px)
   ========================================================================== */
@media (max-width: 640px) {
    .cms-content .cms-gallery__grid {
        --cms-gallery-columns: 2;
    }

    .cms-image--small.cms-image--align-left,
    .cms-image--small.cms-image--align-right {
        float: none;
        width: auto;
        margin: 28px auto;
    }
}
