.mast nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.home-edit {
    display: grid;
    grid-template-columns: 55% 45%;
    background: #e7dfec;
    color: #403354;
}
.edit-image { min-width: 0; }
.edit-image img { width: 100%; height: 100%; aspect-ratio: 1.52; }
.edit-content {
    align-self: center;
    padding: clamp(36px, 5vw, 84px) var(--gutter) clamp(40px, 6vw, 96px) clamp(24px, 4.8vw, 84px);
}
.edit-content .section-title { margin: 15px 0 19px; color: inherit; }
.edit-content > p:not(.kicker) { max-width: 350px; }
.edit-links { display: flex; align-items: start; flex-direction: column; gap: 15px; }
.edit-links .action { background: #403354; }
.edit-links .action:hover { background: #59476c; }
.design-section {
    background: var(--paper);
    padding: clamp(34px, 5vw, 74px) var(--gutter) clamp(38px, 5vw, 74px);
}
.category-items + .design-section { padding-top: 0; }
.design-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px 28px;
    margin-bottom: 24px;
}
.design-heading .section-title { color: var(--tint-ink); }
.featured-designs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 28px);
}
.featured-design { margin: 0; }
.featured-design img {
    aspect-ratio: 1.506;
    height: auto;
    background: #e2ddd4;
}
.featured-design figcaption {
    padding-top: 8px;
    font: 400 clamp(23px, 3vw, 39px)/1 var(--sans);
}
.studio { color: #30293d; }
.studio-hero {
    min-height: 410px;
    display: grid;
    grid-template-columns: 46% 54%;
    background: #e7dfec;
}
.studio-intro {
    align-self: center;
    padding: clamp(35px, 6vw, 85px) clamp(18px, 3vw, 45px) clamp(35px, 6vw, 85px) var(--gutter);
}
.studio-intro .category-name { margin-top: 22px; }
.studio-intro p { max-width: 370px; font-size: clamp(15px, 1.4vw, 20px); }
.studio-hero-image {
    position: relative;
    margin: 0;
    min-width: 0;
}
.studio-hero-image img { position: absolute; inset: 0; }
.studio-hero-image figcaption {
    position: absolute;
    bottom: 14px;
    left: 14px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 650;
    background: var(--paper);
    color: #30293d;
}
.studio-hero-image figcaption span { margin-inline: 4px; }
.studio-gallery { padding: clamp(43px, 6vw, 92px) var(--gutter); }
.studio-gallery .section-title { color: inherit; }
.studio-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 16px;
    padding: 22px 0 24px;
    margin-bottom: 27px;
    border-bottom: 1px solid #dad3df;
}
.studio [hidden] { display: none; }
.studio-field { display: flex; flex-direction: column; gap: 5px; flex: 0 1 205px; }
.studio-field label { font-size: 12px; font-weight: 680; }
.studio-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #9e92a8;
    border-radius: 3px;
    background: #fffdf7;
    color: #30293d;
    font: 500 14px/1.3 var(--sans);
}
.studio-count { margin: 0 0 10px auto; font-size: 13px; }
.studio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 29px clamp(14px, 1.8vw, 28px);
}
.design-card {
    border: 0;
    padding: 0;
    display: block;
    min-width: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.design-card img {
    height: auto;
    aspect-ratio: 1.506;
    background: #e2ddd4;
}
.design-card-name {
    display: block;
    margin-top: 8px;
    font: 400 clamp(24px, 2.75vw, 40px)/1 var(--sans);
}
.design-card:hover .design-card-name { text-decoration: underline; text-underline-offset: .15em; }
.design-card-meta { display: block; margin-top: 5px; font-size: 12px; color: #564d60; }
.studio-more, .dialog-close {
    appearance: none;
    color: #403354;
    background: var(--paper);
    border: 1px solid #403354;
    border-radius: 50px;
    cursor: pointer;
}
.studio-more { margin-top: 32px; padding: 12px 18px; font: 650 13px/1.3 var(--sans); }
.studio-more:hover, .dialog-close:hover { background: #e7dfec; }
.studio :is(button, select):focus-visible { outline: 3px solid #624a87; outline-offset: 4px; }
.design-dialog {
    border: 0;
    padding: 0;
    width: min(calc(100% - 32px), 780px);
    background: var(--paper);
    color: inherit;
}
.design-dialog::backdrop { background: #1e1a26c9; }
.design-dialog form { position: absolute; right: 12px; top: 12px; }
.dialog-close { width: 38px; height: 38px; font: 400 25px/1 var(--sans); }
.design-dialog figure { margin: 0; }
.design-dialog img { width: 100%; height: auto; }
.design-dialog figcaption { padding: 17px clamp(16px, 3vw, 27px) 22px; }
.design-dialog h2 { font: 400 clamp(33px, 5vw, 52px)/.95 var(--sans); }
.dialog-description { font-size: 14px; margin-top: 8px; }
@media (max-width: 850px) {
    .home-edit { grid-template-columns: 52% 48%; }
    .studio-hero { min-height: 320px; }
    .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .home-edit { display: flex; flex-direction: column; }
    .edit-image img { height: auto; }
    .edit-content { align-self: stretch; padding: 26px var(--gutter) 35px; }
    .edit-content .section-title { margin-block: 14px 10px; }
    .studio-hero { display: flex; flex-direction: column-reverse; min-height: 0; }
    .studio-hero-image { aspect-ratio: 1.56; }
    .studio-intro { align-self: stretch; padding: 25px var(--gutter) 37px; }
    .studio-controls { gap: 12px; }
    .studio-field { flex: 1 1 125px; }
    .studio-count { flex: 1 1 100%; margin: 0; }
    .featured-designs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .studio-grid { gap: 22px 12px; }
    .design-card-meta { font-size: 11px; }
}

/* Design studio */
.editorial .studio-hero { background: #ded8e9; }
.editorial .studio-intro > p { max-width: 340px; }
.editorial .studio-gallery { background: var(--paper); }
.editorial .studio-controls { column-gap: clamp(12px, 2vw, 25px); }
.editorial .studio-field { flex: 0 1 175px; }
.editorial .studio-text { flex: 1 1 175px; max-width: 365px; }
.editorial .studio-field :is(select,input) {
    width: 100%;
    min-height: 41px;
    padding: 10px 11px;
    border: 1px solid #a299a9;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: 450 14px/1.35 var(--sans);
}
.studio-save-filter, .dialog-options button, .dialog-pager button {
    min-height: 41px;
    padding: 8px 13px;
    border: 1px solid #a299a9;
    color: inherit;
    background: transparent;
    font: 600 13px/1.35 var(--sans);
    cursor: pointer;
}
.studio-save-filter span { padding-left: 9px; font-weight: 450; }
.studio-save-filter:is(:hover,[aria-pressed="true"]), .dialog-options button:is(:hover,[aria-pressed="true"]),
.dialog-pager button:hover:not(:disabled) { color: #fff; background: #443850; border-color: #443850; }
.studio-save-filter { white-space: nowrap; }
.studio-empty { padding: 16px 0; }
.design-card-image { position: relative; display: block; overflow: hidden; }
.design-card-image img { transition: transform .4s ease; }
.design-card:hover img { transform: scale(1.035); }
.design-saved {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #30293d;
    background: var(--paper);
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 690;
}
.editorial .design-dialog { max-height: 92dvh; }
.editorial .design-dialog form { z-index: 1; }
.dialog-image-wrap {
    aspect-ratio: 1.506;
    max-height: min(58dvh, 520px);
    overflow: hidden;
    background: #24202a;
}
.dialog-image-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dialog-image-wrap.is-zoomed { overflow: auto; }
.dialog-image-wrap.is-zoomed img { width: 178%; height: auto; max-width: none; }
.dialog-options { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.dialog-pager {
    display: grid;
    grid-template-columns: auto minmax(40px,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px clamp(16px, 3vw, 27px) 15px;
    border-top: 1px solid #d7cfdd;
}
.dialog-pager output { text-align: center; font-size: 12px; }
.dialog-pager button:disabled { opacity: .48; cursor: default; }
@media (max-width: 640px) {
    .editorial .studio-field { flex: 1 1 125px; }
    .editorial .studio-text { flex: 1 0 64%; }
    .editorial .studio-field :is(select,input) { font-size: 16px; }
    .design-saved { top: 5px; right: 5px; }
}

.studio-compare-button {
    border: 1px solid #a299a9;
    min-height: 41px;
    padding: 8px 13px;
    color: inherit;
    background: transparent;
    font: 600 13px/1.35 var(--sans);
    cursor: pointer;
}
.studio-compare-button:hover { color: #fff; background: #443850; border-color: #443850; }
.compare-dialog {
    position: fixed;
    width: min(1070px, calc(100% - 30px));
    max-width: none;
    max-height: 93dvh;
    border: 0;
    color: inherit;
    background: var(--paper);
    padding: clamp(20px, 4vw, 46px);
}
.compare-dialog::backdrop { background: #1e1a26c9; }
.compare-dialog form { position: absolute; top: 16px; right: 16px; }
.compare-dialog h2 {
    font: 400 clamp(39px, 6vw, 85px)/.9 var(--sans);
    letter-spacing: -.048em;
    margin: 2px 40px 20px 0;
}
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2vw, 27px); }
.compare-design { margin: 0; min-width: 0; }
.compare-design label { display: block; font-size: 12px; margin-bottom: 4px; }
.compare-design select {
    width: 100%;
    padding: 8px;
    color: inherit;
    background: var(--paper);
    border: 1px solid #a299a9;
    border-radius: 0;
    font: 450 14px/1.3 var(--sans);
}
.compare-design img { aspect-ratio: 1.506; height: auto; margin-top: 10px; }
.compare-design figcaption { font-size: 12px; margin-top: 6px; }
@media (max-width: 640px) { .compare-design select { font-size: 16px; } }

.design-share-url {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    margin-top: 10px;
    border: 1px solid var(--hairline);
    border-radius: 5px;
    background: var(--abyss);
    color: var(--ink);
    font: 440 14px/1.2 var(--sans);
}
.design-share-status { margin: 0; color: var(--quiet-ink); font-size: 13px; }
.design-share-status:not(:empty) { margin-top: 9px; }
