.ew-directory-page { margin: 0; background: #f4f7f8; }
.ew-directory {
    --night: #071d28;
    --ink: #152e38;
    --muted: #49616b;
    --line: #d1dfe4;
    --accent: #07686d;
    color: var(--ink);
    background: #f4f7f8;
    font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
    line-height: 1.55;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: anywhere;
    color-scheme: light;
}
.ew-directory *, .ew-directory *::before, .ew-directory *::after { box-sizing: border-box; }
.ew-directory :is(h1, h2, h3, p, ul) { margin: 0; }
.ew-directory ul { padding: 0; list-style: none; }
.ew-directory a { text-decoration: none; }
.ew-directory :is(a, summary):focus-visible { outline: 3px solid #d38110; outline-offset: 3px; }
.ew-directory .ew-d-width { width: min(100% - 48px, 1040px); margin-inline: auto; }

.ew-d-mast { background: var(--night); border-bottom: 1px solid #2a444d; }
.ew-d-bar { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.ew-d-brand { display: flex; align-items: center; gap: 10px; line-height: 1.13; font-size: 21px; font-weight: 800; letter-spacing: -.07em; color: #f3fbfc; }
.ew-d-brand .ew-whale-mark { width: 43px; height: 43px; display: block; border-radius: 10px; }
.ew-d-brand small { display: block; margin-top: 4px; font-size: 8px; font-weight: 650; letter-spacing: .19em; color: #a4c6cf; }
.ew-directory .ew-d-channel { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #e8f7f8; font-weight: 600; font-size: 13px; }
.ew-d-channel:hover { text-decoration: underline; }
.ew-d-video-icon { display: inline-grid; place-items: center; flex: none; width: 17px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; }
.ew-d-video-icon::after { content: ""; margin-left: 1px; border-style: solid; border-width: 3px 0 3px 5px; border-color: transparent transparent transparent currentColor; }

/* Only the waterfront strip of the channel banner is used here; the hero title is live text. */
.ew-d-hero {
    background-color: var(--night);
    background-image: linear-gradient(90deg, #071e29 4%, rgba(7, 30, 41, .96) 30%, rgba(7, 30, 41, .67) 56%, rgba(7, 30, 41, .11) 100%), url('directory-city.webp');
    background-size: 100% 100%, max(1300px, 100%) auto;
    background-position: center, center 99%;
    background-repeat: no-repeat;
    border-bottom: 3px solid #35c5bd;
}
.ew-d-intro { padding-block: clamp(38px, 5vw, 63px); }
.ew-directory .ew-d-intro h1 { color: #f1fafa; font-size: clamp(35px, 4.1vw, 56px); line-height: 1.16; letter-spacing: -.072em; font-weight: 770; }
.ew-d-intro h1 em { color: #6aeee2; font-style: normal; white-space: nowrap; }
.ew-directory .ew-d-intro p { margin-top: 17px; color: #d3e7eb; font-size: clamp(14px, 1.4vw, 17px); line-height: 1.7; letter-spacing: -.025em; }
.ew-d-mobile-break { display: none; }

.ew-d-groups { padding-block: clamp(23px, 3vw, 35px) 42px; }
.ew-directory .ew-d-disclosure { margin: 0 0 14px; padding: 0 2px; color: #465e69; font-size: 16px; line-height: 1.55; }
.ew-d-group { background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.ew-d-group + .ew-d-group { margin-top: 12px; }
.ew-d-group[open] { border-color: #9bbfc1; }
.ew-d-group > summary { padding: 19px 24px; cursor: pointer; list-style: none; border-radius: 12px; }
.ew-d-group > summary::-webkit-details-marker { display: none; }
.ew-d-group > summary::marker { content: ""; }
.ew-d-group[open] > summary { background: #f6fbfb; border-radius: 12px 12px 0 0; }
.ew-directory .ew-d-group h2 { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: clamp(20px, 2vw, 26px); line-height: 1.4; letter-spacing: -.065em; font-weight: 750; }
.ew-d-count { display: inline-block; padding: 2px 7px; border-radius: 5px; background: #eaf2f3; color: #3f626c; font-size: 12px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
.ew-d-chevron { width: 10px; height: 10px; margin: -4px 4px 0 auto; flex: none; border-right: 2px solid #427079; border-bottom: 2px solid #427079; transform: rotate(45deg); }
.ew-d-group[open] > summary .ew-d-chevron { margin-top: 5px; transform: rotate(225deg); }
.ew-d-group > summary:hover { background: #edf6f6; }
.ew-directory .ew-d-empty { padding: 18px 24px 24px; border-top: 1px solid #e1eaed; color: var(--muted); font-size: 15px; }

.ew-directory .ew-d-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px; border-top: 1px solid #dbe8e9; }
.ew-d-cards > li { display: flex; min-width: 0; }
.ew-d-card { width: 100%; display: flex; flex-direction: column; border: 1px solid #d8e3e7; border-radius: 10px; background: #fff; }
.ew-d-cover {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 9px 9px 0 0;
    background: radial-gradient(ellipse at 58% 20%, #235c65, transparent 76%), #0a2835;
}
.ew-d-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#67b6ba55 .8px, transparent .8px);
    background-size: 11px 11px;
}
.ew-d-cover img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
/* Neutral notebook symbol for a guide without a verified photograph or episode. */
.ew-d-laptop { position: relative; width: 30%; aspect-ratio: 1.65; border: clamp(2px, .3vw, 4px) solid #84cbd0; border-radius: 5px 5px 2px 2px; background: linear-gradient(135deg, #458589, #1b515c 48%, #23616a); }
.ew-d-laptop::after { content: ""; position: absolute; left: -16%; bottom: -14%; width: 132%; height: 10%; border-radius: 1px 1px 5px 5px; background: #84cbd0; }
.ew-d-card-heading { padding: 18px 19px 0; }
.ew-d-copy { flex: 1; padding: 0 19px; }
.ew-directory .ew-d-card-heading h3 { color: var(--ink); font-size: clamp(23px, 2.5vw, 30px); font-weight: 750; letter-spacing: -.065em; line-height: 1.32; }
.ew-directory .ew-d-copy p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.67; letter-spacing: -.025em; }
.ew-d-preview { display: inline-block; margin-bottom: 5px; font-size: 12px; font-weight: 700; color: #6d4b11; }
.ew-directory .ew-d-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.ew-d-tags li { padding: 4px 8px; border-radius: 4px; background: #eff5f5; color: #3c626a; font-size: 12px; line-height: 1.4; letter-spacing: -.025em; }
.ew-d-current { margin-top: 17px; }
.ew-directory .ew-d-current .ew-d-current-label { margin: 0 0 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
.ew-directory .ew-d-picks { border-block: 1px solid #dce7e9; }
.ew-d-picks > li + li { border-top: 1px solid #e9eff1; }
.ew-d-pick-line { display: grid; grid-template-columns: 4.35em minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 44px; padding: 5px 2px; line-height: 1.4; font-size: 14px; }
.ew-d-tier { color: #536770; font-size: 12px; font-weight: 650; }
.ew-d-pick-name { color: var(--ink); letter-spacing: -.035em; font-weight: 690; }
.ew-d-pick-action { color: var(--accent); font-weight: 750; white-space: nowrap; font-size: 12px; }
.ew-d-pick-status { color: #5b6064; font-size: 12px; font-weight: 600; }
.ew-d-pick-link:hover { background: #f3f9f9; }
.ew-d-pick-link:hover .ew-d-pick-name { color: #05585e; text-decoration: underline; }
.ew-d-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; margin: 17px 19px 19px; }
.ew-directory .ew-d-actions a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: -.03em; }
.ew-directory .ew-d-detail { background: var(--accent); color: #fff; border-radius: 6px; padding: 0 14px; }
.ew-directory .ew-d-detail:hover { background: #055257; }
.ew-directory .ew-d-watch { color: #244f5b; padding: 0 3px; }
.ew-directory .ew-d-watch:hover { text-decoration: underline; }

.ew-d-catalog-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; padding: 14px 20px 0; border-top: 1px solid #dbe8e9; }
.ew-directory .ew-d-sort-help { flex: 1 1 285px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.ew-d-sort { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.ew-d-sort[hidden] { display: none; }
.ew-d-sort select { font: inherit; font-weight: 650; color: var(--ink); background-color: #fff; border: 1px solid #abc6c9; border-radius: 6px; min-height: 44px; padding: 5px 8px; }
.ew-d-sort select:focus-visible { outline: 3px solid #d38110; outline-offset: 2px; }
.ew-directory .ew-d-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px 20px 20px; }
.ew-d-products > li { min-width: 0; display: flex; }
.ew-d-product { display: flex; flex-direction: column; width: 100%; border: 1px solid #d8e3e7; border-radius: 10px; background: #fff; overflow: hidden; }
.ew-d-product-text { align-self: flex-start; border-top: 2px solid #b5d1d1; }
.ew-d-product-photo { display: grid; place-items: center; height: clamp(141px, 16vw, 178px); background: #f7f9f9; border-bottom: 1px solid #e9eff1; }
.ew-d-product-photo img { display: block; width: 100%; height: 100%; min-height: 0; padding: 12px; object-fit: contain; }
.ew-d-product-info { flex: 1; padding: 15px 16px 12px; }
.ew-d-active-pick { display: block; margin-bottom: 4px; color: var(--accent); font-size: 12px; font-weight: 700; }
.ew-directory .ew-d-product-info h3 { color: var(--ink); font-size: 18px; line-height: 1.4; letter-spacing: -.045em; }
.ew-directory .ew-d-model { margin-top: 3px; font-size: 12px; line-height: 1.4; color: #536973; }
.ew-directory .ew-d-spec { margin-top: 8px; font-size: 13px; line-height: 1.55; color: #304e5a; }
.ew-directory .ew-d-seller { margin-top: 6px; font-size: 12px; line-height: 1.45; color: #536973; }
.ew-d-product-offer { display: grid; align-items: start; gap: 10px; margin: 0 16px; padding-block: 12px 15px; border-top: 1px solid #e1e9eb; }
.ew-d-price { min-width: 0; }
.ew-d-price-label { display: block; color: var(--accent); font-size: 12px; font-weight: 650; }
.ew-d-amount { color: #123b41; font-size: 21px; letter-spacing: -.035em; line-height: 1.25; }
.ew-d-amount small { margin-left: 2px; font-size: 14px; }
.ew-d-price .ew-price-fallback { color: #495e68; font-size: 15px; line-height: 1.5; }
.ew-directory .ew-d-checked { margin-top: 4px; font-size: 11px; color: #5b6e77; letter-spacing: -.015em; }
.ew-d-price [hidden] { display: none !important; }
.ew-d-terms { margin-top: 5px; font-size: 12px; color: #405961; }
.ew-d-terms summary { width: fit-content; padding: 3px 0; cursor: pointer; color: var(--accent); font-weight: 600; }
.ew-directory .ew-d-terms p { margin-block: 2px; line-height: 1.5; }
.ew-directory .ew-d-shop { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 9px; min-height: 44px; border: 1px solid #a9c7c9; border-radius: 5px; background: #f6fbfb; color: #075b60; font-weight: 700; font-size: 13px; }
.ew-directory .ew-d-shop:hover { background: #e9f4f4; border-color: #4b8a8e; }
.ew-d-shop-status { color: var(--muted); font-size: 12px; }

@media (max-width: 830px) {
    .ew-directory .ew-d-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 690px) {
    .ew-directory .ew-d-width { width: calc(100% - 32px); }
    .ew-d-bar { min-height: 59px; }
    .ew-d-brand { font-size: 19px; }
    .ew-d-brand .ew-whale-mark { width: 36px; height: 36px; }
    .ew-d-hero { background-position: center, 64% bottom; }
    .ew-d-intro { padding-block: 35px; }
    .ew-d-hero h1 em { display: block; }
    .ew-d-mobile-break { display: initial; }
    .ew-d-group > summary { padding: 15px 14px; }
    .ew-directory .ew-d-group h2 { gap: 8px; }
    .ew-directory .ew-d-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
    .ew-d-card { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-content: start; }
    .ew-d-cover { grid-column: 2; grid-row: 1; align-self: start; margin: 15px 10px 0 0; border-radius: 5px; }
    .ew-d-card-heading { grid-column: 1; grid-row: 1; align-self: center; padding: 14px 9px 0 13px; }
    .ew-d-copy { grid-column: 1 / -1; grid-row: 2; padding: 0 13px; }
    .ew-directory .ew-d-card-heading h3 { font-size: 21px; }
    .ew-directory .ew-d-copy p { margin-top: 11px; font-size: 14px; }
    .ew-directory .ew-d-tags { margin-top: 9px; }
    .ew-d-tags li { padding: 3px 5px; font-size: 11px; }
    .ew-d-current { margin-top: 14px; }
    .ew-d-pick-line { grid-template-columns: 4.1em minmax(0, 1fr) auto; column-gap: 5px; }
    .ew-d-actions { grid-column: 1 / -1; grid-row: 3; margin: 11px 12px 12px; }
    .ew-directory .ew-d-empty { padding: 15px; font-size: 14px; }
    .ew-d-catalog-tools { padding: 12px 12px 0; }
    .ew-directory .ew-d-products { gap: 10px; padding: 12px; }
}
@media (max-width: 550px) {
    .ew-directory .ew-d-products { grid-template-columns: minmax(0, 1fr); }
    .ew-d-product { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 11px; padding: 12px; align-items: start; }
    .ew-d-product-photo { height: 76px; border: 1px solid #e1e9eb; border-radius: 5px; }
    .ew-d-product-photo img { padding: 3px; }
    .ew-d-product-text { grid-template-columns: minmax(0, 1fr); }
    .ew-d-product-info { padding: 0; }
    .ew-directory .ew-d-product-info h3 { font-size: 16px; }
    .ew-directory .ew-d-spec { margin-top: 5px; }
    .ew-d-product-offer { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding-block: 9px 0; margin: 0; }
}
@media (min-width: 480px) and (max-width: 690px) {
    .ew-d-card { grid-template-columns: minmax(0, 1fr) 155px; }
}
@media (max-width: 380px) {
    .ew-directory .ew-d-width { width: calc(100% - 24px); }
    .ew-d-card { grid-template-columns: minmax(0, 1fr) 84px; }
}
