:is(.moe-directory,.moe-directory-layout) {
    display:grid;
    grid-template-columns:minmax(150px,21%) minmax(0,1fr);
    align-items:start;
    gap:clamp(22px,4vw,60px);
    color:var(--wp--preset--color--ink,#202647);
}
:is(.moe-directory,.moe-directory-layout) * { box-sizing:border-box; }
.moe-directory :is(h2,h3,p,ul) { margin:0; }
.moe-directory ul { padding:0; list-style:none; }
.moe-directory-sidebar .moe-directory-nav { border-inline-end:1px solid #d9d8d0; padding-inline-end:clamp(12px,2vw,28px); }
.moe-directory-sidebar .moe-directory-label { font-size:15px; font-weight:700; margin-bottom:12px; }
.moe-directory-nav a,.moe-directory-modes a,.moe-directory-actions a {
    display:inline-flex; align-items:center; text-decoration:none; line-height:1.25; color:inherit;
}
.moe-directory-nav a { width:100%; min-height:42px; padding:8px 12px; border-radius:7px; }
.moe-directory-nav a[aria-current],.moe-directory-nav a:hover { background:#eeede9; color:#263cc0; }
.moe-directory-body { min-width:0; }
.moe-directory .moe-directory-body h2 { font-size:clamp(27px,3.5vw,48px); letter-spacing:-.045em; line-height:1.1; }
.moe-directory-sidebar .moe-directory-title { font-size:clamp(27px,3.5vw,48px); line-height:1.1; margin:0 0 24px; }
:is(.moe-directory,.moe-directory-choices) .moe-directory-prompt { margin-top:6px; color:#555967; }
.moe-directory-modes { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.moe-directory-modes a { min-height:36px; padding:7px 14px; border:1px solid #cccac5; border-radius:999px; font-size:14px; }
.moe-directory-modes a[aria-current] { color:#fff; background:#202647; border-color:#202647; }
:is(.moe-directory,.moe-directory-choices) .moe-directory-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr)); gap:clamp(12px,2vw,26px); margin-top:18px; }
.moe-directory-card { display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-width:0; }
.moe-directory-photo { display:block; width:100%; aspect-ratio:1.35; border-radius:12px; overflow:hidden; background:#f0efeb; }
.moe-directory-photo img { display:block; width:100%; height:100%; object-fit:contain; }
:is(.moe-directory,.moe-directory-choices) .moe-directory-form-name { margin:0; font-size:clamp(17px,1.6vw,23px); line-height:1.18; letter-spacing:-.025em; }
:is(.moe-directory,.moe-directory-choices) .moe-directory-price { font-size:15px; color:#4c5062; }
.moe-directory-actions { margin-top:auto; display:flex; flex-wrap:wrap; gap:7px; }
.moe-directory-actions a { border-radius:7px; border:1px solid transparent; min-height:42px; padding:9px 14px; font-size:14px; font-weight:650; }
.moe-directory-card > .moe-directory-actions:has(> a:only-child) {
    align-self:center;
    width:calc((100% - 6px) / 2);
}
.moe-directory-actions > a:only-child { width:100%; justify-content:center; text-align:center; padding-inline:6px; }
.moe-directory-actions:has(> a + a) {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    gap:6px;
}
.moe-directory-actions:has(> a + a) > a {
    justify-content:center;
    min-width:0;
    padding-inline:6px;
    text-align:center;
    overflow-wrap:anywhere;
}
.moe-directory-actions .moe-action-custom { color:#fff; background:#40477e; }
.moe-directory-actions .moe-action-ready { color:#202647; background:#ffb477; }
.moe-directory-actions .moe-action-custom:hover { background:#343b6a; }
.moe-directory-actions .moe-action-ready:hover { background:#f5a264; }
.moe-directory-actions a:focus-visible { outline:3px solid #2945d4; outline-offset:3px; }
.moe-directory a:focus-visible { outline:3px solid #2945d4; outline-offset:3px; }
@media (max-width:720px) {
    :is(.moe-directory,.moe-directory-layout) { grid-template-columns:1fr; gap:18px; }
    .moe-directory-sidebar .moe-directory-nav { border:0; padding:0; }
    .moe-directory-nav ul { display:flex; gap:4px 8px; flex-wrap:wrap; }
    .moe-directory-sidebar .moe-directory-label { margin-bottom:5px; }
    :is(.moe-directory,.moe-directory-choices) .moe-directory-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .moe-directory-actions { width:100%; }
    .moe-directory-actions a { min-height:44px; }
}
@media (max-width:420px) {
    :is(.moe-directory,.moe-directory-choices) .moe-directory-cards { gap:12px; }
    .moe-directory-photo { aspect-ratio:1; }
    .moe-directory-actions a { width:100%; justify-content:center; padding:8px; text-align:center; }
}
@media (max-width:580px) {
    :is(.moe-directory,.moe-directory-choices) .moe-directory-cards:has(.moe-directory-actions > a + a) { grid-template-columns:minmax(0,1fr); }
}
.moe-directory-home { display:block; color:inherit; font-weight:800; text-decoration:none; letter-spacing:-.045em; }
.moe-directory-home:hover { text-decoration:underline; }
.moe-directory-sidebar ul,.moe-directory-choices ul { margin:0; padding:0; list-style:none; }
.moe-directory-sidebar .moe-directory-group { font-weight:700; margin-top:6px; }
.moe-directory-interior { min-width:0; }
.moe-directory-interior .moe-directory-category-title { margin:0 0 14px; font-size:clamp(27px,3.5vw,48px); line-height:1.1; letter-spacing:-.045em; }
.moe-directory-interior > .entry-content,.moe-directory-interior .moe-workshop-goods,.moe-directory-interior .entry-content > .wp-block-group,.moe-directory-interior .moe-directory-choices { width:100%; max-width:none; margin-inline:0; }
.moe-directory-interior .moe-workshop-goods .moe-form-list-head { margin-top:0; }
.moe-directory-interior .moe-workshop-heading .moe-directory-category-title {
    font-size:clamp(22px,2vw,30px);
    line-height:1.18;
    letter-spacing:-.025em;
    margin-bottom:16px;
}
.moe-directory-section {margin:4px 0}
.moe-directory-section > summary {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:44px;
    list-style:none;
    border-radius:7px;
    cursor:pointer;
}
.moe-directory-section > summary::-webkit-details-marker {display:none}
.moe-directory-section > summary:focus-visible {outline:2px solid #2945d4;outline-offset:2px}
.moe-directory-section > summary:hover {background:#eeede9}
.moe-directory-sidebar .moe-directory-section .moe-directory-group {width:auto;max-width:calc(100% - 44px);margin:0}
.moe-section-chevron {width:44px;height:44px;display:grid;place-items:center;flex:none}
.moe-section-chevron::before {
    content:"";
    width:8px;
    height:8px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(-45deg);
}
.moe-directory-section[open] > summary .moe-section-chevron::before {transform:rotate(45deg)}
.moe-directory-interior .moe-workshop-items { grid-auto-flow:row; grid-template-columns:repeat(auto-fill,minmax(min(100%,235px),1fr)); padding:0!important; overflow:visible; }
.moe-directory-interior .moe-workshop-goods [data-moe-scroll-nav] { display:none; }
.moe-directory-choices :is(p,h3) { margin:0; }
.moe-directory-body.moe-catalog-rails {display:grid;gap:clamp(30px,4vw,56px);}
.moe-catalog-rails .moe-showcase {min-width:0;}
.moe-directory .moe-catalog-rails .moe-picker {padding-top:0;border-top:0;}
.moe-section-categories > h2 {margin-bottom:clamp(16px,2vw,26px);}
.moe-section-category {padding:16px 0;border-bottom:1px solid #d9d8d0;}
.moe-section-category:first-of-type {padding-top:0;}
.moe-section-category > h3 {font-size:clamp(20px,2vw,28px);line-height:1.2;}
.moe-section-category > h3 a {color:inherit;text-decoration:none;}
.moe-section-category > h3 a:is(:hover,:focus-visible) {color:#283fcb;text-decoration:underline;}
.moe-catalog-trail { margin:0 0 16px; font-size:14px; }
.moe-catalog-trail ol { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 8px; list-style:none; padding:0; margin:0; }
.moe-catalog-trail li { display:inline; color:#505462; }
.moe-catalog-trail li+li::before { content:"›"; margin-right:8px; color:#747784; }
.moe-catalog-trail a { color:inherit; text-underline-offset:3px; }
.moe-catalog-branch { width:100%; }
@media(max-width:720px){.moe-directory-sidebar .moe-directory-title {margin-bottom:10px}.moe-catalog-trail {font-size:13px}}
