/* Block editor markup mapped onto the site design. Loaded after site.css. */

.page-content figure, .page-content .wp-block-image, .post-body figure { margin: 0; }
.wp-block-image img { display: block; }
.page-content .wp-block-heading { margin: 0; }
.logo-text { font: 400 24px/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.no-posts { text-align: center; }

/* plain pages typed straight into the editor */
.entry p, .entry ul, .entry ol { margin: 0 0 1em; }
.entry h2, .entry h3, .entry h4 { margin: 1.2em 0 .5em; }
.entry .wp-block-image { margin: 0 0 1em; }

/* buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  min-height: 56px; padding: 8px 40px; border-radius: 48px; background: var(--ink); color: var(--line);
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .071em; text-transform: uppercase;
  line-height: 1.3; transition: background .2s;
}
.wp-block-button .wp-block-button__link:hover { background: #3c3c3c; color: var(--line); }
@media (min-width: 1536px) { .wp-block-button .wp-block-button__link { font-size: 16px; } }
@media (max-width: 767px) { .wp-block-buttons > .wp-block-button { width: 100%; } .wp-block-button .wp-block-button__link { width: 100%; } }
.cards.center .wp-block-buttons, .has-text-align-center ~ .wp-block-buttons, .banner .wp-block-buttons { justify-content: center; }

/* home hero */
.koala-hero { position: relative; background: var(--bg); }
.koala-hero > .hero-bg { position: absolute; inset: 0; z-index: 0; }
.koala-hero > .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.koala-hero > .hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(246, 249, 247, .24); }
.koala-hero > .hero-body { position: relative; z-index: 1; max-width: 908px; margin: 0 auto; padding: 328px 24px 216px; }
.koala-hero h1 { font: 400 var(--h1-hero)/1.2 var(--serif); color: #000; }
.koala-hero .tagline { font-size: 22px; color: #000; margin-top: 8px; }
.koala-hero .wp-block-buttons { margin-top: 32px; }
.koala-hero .wp-block-button .wp-block-button__link { color: #fff; }
body.home .site-header { position: absolute; top: 0; left: 0; right: 0; background: rgba(246, 249, 247, .44); }
body.admin-bar.home .site-header { top: 32px; }
body.home .header-bar { min-height: 88px; padding-top: 4px; padding-bottom: 4px; align-items: flex-start; }
body.home .main-nav, body.home .utils { margin-top: 28px; }
body.home .logo img { height: 198px; width: auto; margin-top: 36px; margin-bottom: -150px; }
@media (max-width: 1023px) {
  body.home .header-bar { align-items: center; padding: 8px 24px; }
  body.home .logo img { height: auto; max-height: 110px; margin: 0; }
  .koala-hero { display: flex; flex-direction: column; }
  .koala-hero > .hero-bg { position: relative; inset: auto; aspect-ratio: 1.56; }
  .koala-hero > .hero-body { padding: 56px 24px; width: 100%; max-width: 720px; }
  .koala-hero .wp-block-button .wp-block-button__link { background: var(--mint); color: var(--ink); }
}
@media (max-width: 782px) { body.admin-bar.home .site-header { top: 46px; } }

/* cards */
.card > * { width: 100%; }
.card > .wp-block-image img { width: 100%; }
.card > h4 + p, .card > .wp-block-image + p { margin-top: 24px; }
.cards.heading-first .card > h4 { margin: 0 0 24px; }
.cards.left .card { text-align: left; }

/* image beside long text */
.media-row { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.media-row .text > h4 { font-size: 22px; line-height: 1.25; margin-bottom: 24px; }
.media-row .media img { width: 100%; }
@media (max-width: 767px) { .media-row { grid-template-columns: 1fr; gap: 24px; } }

/* glossary: image left, terms right */
.terms .media img { width: 100%; }
.terms .item > h4 { margin-bottom: 16px; }

/* text beside a full-height image */
.split > .text > * { max-width: 460px; }
.split > .text > h4 { font-size: 22px; margin: 32px 0 24px; }
.split > .wp-block-image.image { margin: 0; }

/* intro */
.intro .media img { width: 100%; }

/* videos */
.video-row > .wp-block-embed { margin: 0; }
.video-row > .wp-block-embed iframe { width: 100%; }

/* banners */
.banner.image { background: var(--mint); padding: 64px 0; }
.banner.image h2 { font: 400 var(--h2)/1.4 var(--serif); }

/* backgrounds behind feeds and reviews */
.feed-bg > .bg, .reviews > .bg { position: absolute; inset: 0; margin: 0; }
.feed-bg > .bg img, .reviews > .bg img { width: 100%; height: 100%; object-fit: cover; }
.feed-bg:not(:has(> .bg)) { background: #575957; }
.reviews:not(:has(> .bg)) { background: #575957; }

/* downloads: a paragraph per file, the link is the file */
.files > p { margin: 0 0 4px; }
.files > p > a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px;
  background: var(--mint); color: var(--ink); text-decoration: none; transition: background .2s;
}
.files > p > a:hover { background: var(--mint-dark); }
.files > p > a::after {
  content: "Download"; white-space: nowrap; padding-left: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 1h2v7h3l-4 4-4-4h3zM2 13h12v2H2z' fill='%23161616'/%3E%3C/svg%3E") left center / 14px no-repeat;
}
.file-grid > p {
  margin: 0; border: 2px solid var(--mint); background: rgba(207, 224, 213, .18); padding: 24px 16px; text-align: center;
}
.file-grid > p > a { display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.file-grid > p > a::after {
  content: "Download"; display: inline-flex; align-items: center; min-height: 40px; padding: 4px 24px; border-radius: 48px;
  background: var(--ink); color: var(--line); font-size: 12px; font-weight: 700; letter-spacing: .071em; text-transform: uppercase;
}
.file-grid > p > a:hover::after { background: #3c3c3c; }

/* faq */
.faq .wp-block-details > summary { margin: 0; }
.faq .wp-block-details > :not(summary) { margin: 0 0 12px; }
.faq .wp-block-details > :last-child:not(summary) { margin-bottom: 24px; }

/* events list */
.menu .item > p { font-size: 14px; margin-top: 8px; max-width: 530px; }
.menu .row > .price { margin: 0; }

/* legal pages */
.legal > p, .legal > ul, .legal > ol { margin: 0 0 12px; }

/* gallery tiles (edge to edge) */
.wp-block-gallery.tiles { display: flex; flex-wrap: nowrap; gap: 0 !important; margin: 0; }
.wp-block-gallery.tiles figure.wp-block-image { flex: 1 1 0 !important; width: auto !important; margin: 0 !important; cursor: pointer; }
.wp-block-gallery.tiles figure.wp-block-image img { width: 100% !important; height: 300px !important; object-fit: cover; }
.wp-block-gallery.tiles figcaption { display: none; }
@media (max-width: 767px) { .wp-block-gallery.tiles figure.wp-block-image img { height: 150px !important; } }
.gallery-single img { width: 100%; }

/* blog posts */
.post-body > * { margin-top: 0; }
.post-body > .wp-block-image { margin: 0 0 16px; clear: both; }
.post-body > .wp-block-image img { width: 100%; }
.post-body > .wp-block-image.alignleft { float: left; width: 50%; margin: 0 20px 12px 0; clear: left; }
.post-body > .wp-block-image.alignright { float: right; width: 50%; margin: 0 0 12px 20px; clear: right; }
.post-body .wp-element-caption { background: #f0f0f0; text-align: center; font-size: 12px; padding: 6px 8px; margin: 0; color: var(--ink-soft); }
.post-body > .wp-block-separator { clear: both; border: 0; border-top: 1px solid var(--line); margin: 16px 0; opacity: 1; }
@media (max-width: 767px) {
  .post-body > .wp-block-image.alignleft, .post-body > .wp-block-image.alignright { float: none; width: 100%; margin: 0 0 16px; }
}
.side .recent img { width: 110px; height: 110px; object-fit: cover; flex: 0 0 110px; }

/* pagination */
.navigation.pagination { margin-top: 32px; text-align: center; }
.navigation.pagination .page-numbers { display: inline-block; padding: 6px 12px; text-decoration: none; }
.navigation.pagination .current { font-weight: 700; }

/* header dropdowns: a menu item with children */
.more.has-sub { display: flex; align-items: center; gap: 2px; }
.more.has-sub > .more-toggle { padding: 6px 2px; }
.more.has-sub > .more-toggle::after { margin-left: 0; }
.more.has-sub > .more-menu { top: 100%; left: -24px; right: auto; margin-top: 0; }
.more.has-sub > .more-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
@media (hover: hover) and (min-width: 1024px) {
  .more.has-sub:hover > .more-menu, .more.has-sub:focus-within > .more-menu { display: block; }
}
.more.has-sub.active > a { font-weight: 700; }
.drawer a.sub { padding-left: 24px; font-size: 18px; }

/* ================================================================ redesign: Stitch Library and Projects */

.section-lede { max-width: 720px; margin: -8px auto 32px; text-align: center; }
.section-lede p + p { margin-top: 12px; }
.actions .wp-block-buttons { justify-content: center; margin-top: 32px; }

/* the list: search box and cards */
.entry-search { max-width: 560px; margin: 0 auto 32px; }
.entry-search input {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink); padding: 14px 20px 14px 52px;
  border: 1px solid var(--line); border-radius: 48px; background: #fff no-repeat 20px center / 20px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3a7 7 0 1 0 4.2 12.6l5.1 5.1 1.4-1.4-5.1-5.1A7 7 0 0 0 10 3zm0 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10z' fill='%23575957'/%3E%3C/svg%3E");
}
.entry-search input:focus { outline: none; border-color: var(--mint-dark); box-shadow: 0 0 0 3px var(--mint); }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }
.entry-card {
  display: flex; flex-direction: column; background: #fff; color: var(--text); text-decoration: none;
  border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); transition: transform .15s, box-shadow .15s;
}
.entry-card:hover, .entry-card:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.entry-card[hidden] { display: none; }
.entry-card .thumb { aspect-ratio: 16 / 9; background: var(--mint); overflow: hidden; }
.entry-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-card .body { padding: 16px 18px 20px; }
.entry-card h3 { font-size: 20px; line-height: 1.25; color: var(--ink); margin: 0 0 8px; }
.entry-card p { font-size: 15px; line-height: 1.45; margin: 0; }
.entry-none { text-align: center; margin-top: 24px; }

/* an entry page */
.entry-wrap { max-width: 880px; }
.entry-title { font: 400 var(--h2)/1.25 var(--serif); color: var(--ink); margin: 8px 0 32px; }
.entry-body > .wp-block-embed { margin: 0 0 32px; }
.entry-body > p { margin: 0 0 12px; }
.entry-body > h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 16px; clear: both; }
.entry-body > h4 { margin-top: 16px; }
.entry-body > .files { max-width: none; margin: 0; }
.related { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.related h2 { font-size: 26px; line-height: 1.25; margin-bottom: 24px; }
.related .entry-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* comments */
.comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments h2, .comments .comment-reply-title { font-size: 26px; line-height: 1.25; margin: 0 0 24px; color: var(--ink-soft); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 32px; }
.comment-list .comment-body { background: #fff; border-radius: 6px; padding: 16px 20px; margin-bottom: 16px; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 14px; margin-bottom: 8px; }
.comment-meta img.avatar { border-radius: 50%; }
.comment-meta .fn { font-weight: 700; color: var(--ink-soft); }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content p { margin: 0 0 8px; }
.comment-awaiting-moderation { font-style: italic; }
.reply a { font-size: 14px; }
.comment-form p { margin: 0 0 16px; }
.comment-form label { display: block; font-size: 14px; margin-bottom: 4px; color: var(--ink-soft); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.comment-form textarea { min-height: 140px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; }

/* gallery: a mosaic, click a photo to see it full screen */
.wp-block-gallery.koala-mosaic { display: block !important; columns: 4 220px; column-gap: 8px; }
.wp-block-gallery.koala-mosaic figure.wp-block-image {
  display: block; width: 100% !important; margin: 0 0 8px !important; break-inside: avoid;
}
.wp-block-gallery.koala-mosaic figure.wp-block-image img { width: 100% !important; height: auto !important; object-fit: initial !important; }
.wp-block-gallery.koala-mosaic figcaption { display: none; }
.wp-lightbox-overlay .scrim { background-color: rgba(28, 28, 28, .9) !important; }
.wp-lightbox-overlay .close-button { color: #fff; }
.wp-lightbox-overlay .close-button svg { fill: #fff; }

/* stitch pages: collapsible sections, closed by default */
.entry-body > .wp-block-details { margin: 0; border-bottom: 1px solid var(--line); }
.entry-body > :not(.wp-block-details) + .wp-block-details { margin-top: 32px; border-top: 1px solid var(--line); }
.entry-body > .wp-block-details > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-size: 22px; line-height: 1.25; color: var(--ink-soft);
}
.entry-body > .wp-block-details > summary::-webkit-details-marker { display: none; }
.entry-body > .wp-block-details > summary::after { content: "+"; font-size: 30px; line-height: 1; color: var(--ink); flex: 0 0 auto; }
.entry-body > .wp-block-details[open] > summary::after { content: "\2212"; }
.entry-body > .wp-block-details > summary:hover { color: #000; }
.entry-body > .wp-block-details[open] { padding-bottom: 24px; }
.entry-body > .wp-block-details::after { content: ""; display: block; clear: both; }
.entry-body .wp-block-details > p { margin: 0 0 12px; }
.entry-body .wp-block-details > h4 { margin: 20px 0 8px; }
.entry-body .wp-block-details > .wp-block-image { margin: 0 0 16px; clear: both; }
.entry-body .wp-block-details > .wp-block-image img { width: 100%; }
.entry-body .wp-block-details > .wp-block-image.alignleft { float: left; width: 50%; margin: 0 20px 12px 0; clear: left; }
.entry-body .wp-block-details > .wp-block-image.alignright { float: right; width: 50%; margin: 0 0 12px 20px; clear: right; }
@media (max-width: 767px) {
  .entry-body .wp-block-details > .wp-block-image.alignleft, .entry-body .wp-block-details > .wp-block-image.alignright { float: none; width: 100%; margin: 0 0 16px; }
}
.entry-body > h2 + .files, .entry-body > .wp-block-details + h2 { margin-top: 32px; }

/* header: the search button reads as a menu item */
.utils .search-toggle {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .071em; text-transform: uppercase; color: var(--ink-soft);
}
.utils .search-toggle svg { width: 18px; height: 18px; }
@media (min-width: 1536px) { .utils .search-toggle { font-size: 16px; } }
