/* Quiet whites and soft blue; all widget colors remain editable in Elementor. */
.ym,
.ym-shell {
    --ym-bg: #fff;
    --ym-soft: #f2f7f9;
    --ym-accent: #bdd6df;
    --ym-button: #456b7b;
    --ym-text: #354e5b;
    --ym-muted: #587380;
    --ym-border: #dbe7ec;
    --ym-radius: 18px;
    --ym-gap: 24px;
    --ym-font: 16px;
    box-sizing: border-box;
    color: var(--ym-text);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Noto Sans KR", sans-serif;
    font-size: var(--ym-font);
    font-weight: 400;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.ym *,
.ym-shell * {
    box-sizing: border-box;
}

.ym-site {
    margin: 0;
    background: #fff;
}

/* The page canvas fills the viewport; Elementor containers own content spacing. */
.ym-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.ym a {
    color: var(--ym-button);
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

.ym a:hover {
    color: var(--ym-hover, var(--ym-button));
}

.ym button,
.ym input,
.ym textarea {
    font: inherit;
}

.ym button,
.ym .ym-button {
    min-height: 48px;
    border: 1px solid var(--ym-accent);
    border-radius: 999px;
    background: var(--ym-bg);
    color: var(--ym-button);
    padding: 10px 24px;
    cursor: pointer;
    line-height: 1.65;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ym .ym-button {
    display: inline-block;
    border-color: var(--ym-fill, var(--ym-button));
    background: var(--ym-fill, var(--ym-button));
    color: var(--ym-on-fill, #fff);
    text-align: center;
    text-decoration: none;
}

.ym button:hover,
.ym button:focus,
.ym button:focus-visible {
    border-color: var(--ym-button);
    background: var(--ym-soft);
}

.ym .ym-button:hover,
.ym .ym-button:focus,
.ym .ym-button:focus-visible,
.ym button[aria-pressed="true"] {
    border-color: var(--ym-fill, var(--ym-button));
    background: var(--ym-fill, var(--ym-button));
    color: var(--ym-on-fill, #fff);
    box-shadow: 0 3px 12px rgb(53 78 91 / 10%);
}

.ym button:disabled {
    opacity: .6;
    cursor: wait;
}

.ym :focus-visible,
.ym-skip:focus {
    outline: 3px solid var(--ym-button, #456b7b);
    outline-offset: 4px;
}

.ym h1,
.ym h2,
.ym h3,
.ym p {
    margin-top: 0;
}

.ym h1,
.ym h2 {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif KR", Georgia, serif;
    font-weight: 500;
    letter-spacing: .055em;
}

.ym h1 {
    margin-bottom: 28px;
    font-size: clamp(27px, 4.5vw, 38px);
    line-height: 1.6;
}

.ym h2 {
    margin-bottom: 22px;
    font-size: 1.45em;
    line-height: 1.6;
}

.ym h3 {
    font-weight: 500;
}

/* A restrained masthead keeps the food and the author's words in focus. */
.ym-brand {
    border-top: 1px solid var(--ym-accent);
    padding: 34px 0 18px;
}

.ym .ym-brand-name {
    display: inline-block;
    color: var(--ym-button);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif KR", Georgia, serif;
    font-size: clamp(34px, 5.5vw, 50px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .13em;
    text-decoration: none;
}

.ym-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(240px, 100%);
    max-height: 110px;
    object-fit: contain;
}

.ym-brand > p {
    margin: 10px 0 0;
    color: var(--ym-muted);
    font-size: .875em;
    letter-spacing: .12em;
}

.ym-languages,
.ym-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ym-languages {
    gap: 5px;
    margin: 0 0 14px;
    font-size: .8125em;
    letter-spacing: .035em;
}

.ym-languages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 7px 15px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
}

.ym-languages a:hover,
.ym-languages a:focus-visible {
    background: var(--ym-soft);
}

.ym-languages [aria-current="page"] {
    border-color: var(--ym-border);
    background: var(--ym-soft);
    font-weight: 600;
}

.ym-nav {
    gap: 12px 28px;
    margin: 0;
    padding: 9px 20px;
    border: 1px solid var(--ym-border);
    border-radius: var(--ym-radius);
    background: var(--ym-soft);
    font-size: .875em;
    letter-spacing: .04em;
}

.ym-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 3px 0;
    border-bottom: 1px solid transparent;
    font-weight: 500;
    text-decoration: none;
}

.ym-nav a:hover,
.ym-nav a:focus-visible,
.ym-nav a[aria-current="page"] {
    border-bottom-color: var(--ym-button);
}

/* Recipe lists */
.ym-recipes {
    margin: 42px 0;
}

.ym-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 24px;
}

.ym-section-head h2 {
    margin: 0;
    padding-left: 14px;
    border-left: 3px solid var(--ym-accent);
}

.ym-section-head a {
    font-size: .8125em;
    text-decoration: none;
}

.ym-section-head a:hover {
    text-decoration: underline;
}

.ym-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px var(--ym-gap);
}

.ym-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ym-border);
    border-radius: var(--ym-radius);
    background: var(--ym-bg);
    box-shadow: 0 3px 15px rgb(53 78 91 / 4%);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ym-card:hover,
.ym-card:focus-within {
    border-color: var(--ym-accent);
    box-shadow: 0 7px 24px rgb(53 78 91 / 9%);
}

.ym-card > a {
    display: block;
    flex: 1;
    height: auto;
    color: var(--ym-text);
    text-decoration: none;
}

.ym-card > a:focus-visible {
    outline-offset: -4px;
}

.ym-photo {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--ym-soft);
    place-items: center;
}

.ym-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.ym-rank {
    position: absolute;
    z-index: 1;
    top: 14px;
    left: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    border: 1px solid var(--ym-border);
    border-radius: 50%;
    background: var(--ym-bg);
    color: var(--ym-button);
    font-size: .875em;
    font-weight: 500;
    place-items: center;
}

.ym-card-body {
    padding: 18px 18px 12px;
}

.ym-card h3 {
    margin: 0 0 12px;
    font-size: 1.0625em;
    line-height: 1.8;
    letter-spacing: .015em;
}

.ym-card p {
    margin: 0;
    color: var(--ym-button);
    font-size: .8125em;
    letter-spacing: .035em;
}

.ym-empty {
    margin: 0;
    padding: 38px 24px;
    border: 1px solid var(--ym-border);
    border-radius: var(--ym-radius);
    background: var(--ym-soft);
    color: var(--ym-muted);
    text-align: center;
    font-size: .9375em;
    line-height: 2;
}

.ym-sort,
.ym-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
    font-size: .875em;
}

.ym-sort a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 18px;
    border: 1px solid var(--ym-border);
    border-radius: 999px;
    text-decoration: none;
}

.ym-sort a:hover,
.ym-sort a:focus-visible {
    background: var(--ym-soft);
}

.ym-sort .ym-selected {
    border-color: var(--ym-fill, var(--ym-button));
    background: var(--ym-fill, var(--ym-button));
    color: var(--ym-on-fill, #fff);
}

.ym-sort .ym-selected:hover,
.ym-sort .ym-selected:focus-visible {
    background: var(--ym-fill, var(--ym-button));
    color: var(--ym-on-fill, #fff);
}

.ym-pagination {
    justify-content: center;
    gap: 24px;
    margin-top: 36px;
}

.ym-pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Recipe details */
.ym-prose,
.ym-detail {
    max-width: 860px;
    margin: 44px auto;
}

.ym-prose {
    max-width: 700px;
}

.ym-prose > p {
    margin-bottom: 28px;
    white-space: pre-line;
}

.ym-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--ym-radius);
    background: var(--ym-soft);
}

.ym-gallery figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.ym-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 30px;
}

.ym-thumbnails button {
    min-height: 0;
    padding: 4px;
    border-radius: 12px;
}

.ym-thumbnails img {
    display: block;
    width: 70px;
    height: 60px;
    border-radius: 7px;
    object-fit: cover;
}

.ym-intro {
    margin: 28px 0 38px;
    font-size: 1.025em;
    line-height: 2;
}

.ym-recipe-body {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 40px;
    margin: 38px 0;
}

.ym-recipe-body > :only-child { grid-column: 1 / -1; }

.ym-ingredients {
    padding: 0;
    list-style: none;
}

.ym-ingredients li {
    padding: 12px 0;
    border-bottom: 1px solid var(--ym-border);
}

.ym-steps {
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.ym-steps li {
    position: relative;
    padding: 0 0 28px 46px;
    counter-increment: step;
    white-space: normal;
}

.ym-steps li::before {
    position: absolute;
    top: 2px;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid var(--ym-border);
    border-radius: 50%;
    background: var(--ym-soft);
    color: var(--ym-button);
    content: counter(step);
    font-size: .8125em;
    font-weight: 500;
    line-height: 28px;
    text-align: center;
}

.ym-notes {
    margin-bottom: 30px;
    padding: 26px 28px;
    border: 1px solid var(--ym-border);
    border-radius: var(--ym-radius);
    background: var(--ym-soft);
}

.ym-notes p:last-child {
    margin-bottom: 0;
}

.ym-video {
    margin: 28px 0;
}

.ym-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--ym-radius);
}

.ym-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 28px 0;
    border-top: 1px solid var(--ym-border);
}

.ym-status {
    flex-basis: 100%;
    min-height: 1.5em;
    margin: 8px 0;
    font-size: .875em;
    white-space: pre-line;
}

.ym-back {
    display: inline-block;
    margin-top: 16px;
    font-size: .875em;
}

/* Requests and supporting information */
.ym-request-form {
    margin-top: 30px;
}

.ym-request-form label {
    display: block;
    margin: 24px 0;
    font-size: .9375em;
    font-weight: 500;
}

.ym-request-form input,
.ym-request-form textarea {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 13px 16px;
    border: 1px solid var(--ym-accent);
    border-radius: 12px;
    background: var(--ym-bg);
    color: var(--ym-text);
    line-height: 1.8;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ym-request-form textarea {
    resize: vertical;
    min-height: 100px;
}

.ym-request-form input:focus,
.ym-request-form textarea:focus {
    border-color: var(--ym-button);
    box-shadow: 0 0 0 3px var(--ym-soft);
}

.ym-request-form small {
    color: var(--ym-muted);
    font-size: .8125em;
    font-weight: 400;
}

.ym-request-form > p {
    font-size: .875em;
}

.ym-honey {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ym-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px clamp(8px, 2vw, 24px);
    margin-top: 48px;
    padding: 28px 0 34px;
    border-top: 1px solid var(--ym-border);
    color: var(--ym-muted);
    font-size: .8125em;
    letter-spacing: .035em;
}

.ym-footer a {
    text-decoration: none;
}

.ym-footer-privacy {
    justify-self: start;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ym-footer-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    white-space: nowrap;
}

.ym-footer-copyright {
    justify-self: end;
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.ym-footer a:hover {
    text-decoration: underline;
}

.ym-notice {
    padding: 16px;
    border-radius: 10px;
    background: #fff4d6;
}

.ym-skip {
    position: absolute;
    left: -10000px;
}

.ym-skip:focus {
    z-index: 99999;
    top: 10px;
    left: 20px;
    padding: 10px;
    background: #fff;
}

.ym [hidden] {
    display: none !important;
}

.ym-image-fallback {
    padding: 24px;
    color: var(--ym-muted);
    text-align: center;
}

.ym img.ym-broken {
    display: none;
}

/* Individual Elementor widgets share the same public design. */
.ym-recipe-part {
    width: 100%;
    min-width: 0;
}

.ym-design-placeholder {
    padding: 28px;
    border: 1px dashed var(--ym-accent);
    border-radius: var(--ym-radius);
    background: var(--ym-soft);
    text-align: center;
}

.ym-part-intro .ym-intro,
.ym-part-notes .ym-notes,
.ym-part-video .ym-video {
    margin: 0;
}

.ym-part-back .ym-back {
    margin-top: 0;
}

.ym-shell .elementor-widget {
    min-width: 0;
}

@media (max-width: 900px) {
    .ym-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ym-brand {
        padding: 26px 0 16px;
    }

    .ym .ym-brand-name {
        letter-spacing: .1em;
    }

    .ym-brand > p {
        font-size: .8125em;
    }

    .ym-languages {
        gap: 2px;
    }

    .ym-nav {
        gap: 4px 20px;
        padding: 8px 14px;
        font-size: .8125em;
    }

    .ym-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .ym-recipes {
        margin: 30px 0;
    }

    .ym-section-head {
        gap: 10px 16px;
        margin-bottom: 20px;
    }

    .ym-section-head h2 {
        padding-left: 11px;
        font-size: 1.25em;
    }

    .ym-section-head a {
        font-size: .75em;
    }

    .ym-card-body {
        padding: 15px 14px 10px;
    }

    .ym-empty {
        padding: 30px 20px;
    }

    .ym-recipe-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .ym-detail,
    .ym-prose {
        margin-top: 32px;
    }

    .ym-notes {
        padding: 22px;
    }

    .ym-reactions {
        flex-direction: column;
    }

    .ym-footer {
        margin-top: 32px;
        padding: 24px 0 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ym * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}


/* Editing previews appear only while Elementor is open. */
.ym-preview-notice {
    margin: 0 0 20px;
    padding: 10px 14px;
    border-left: 2px solid var(--ym-accent);
    background: var(--ym-soft);
    color: var(--ym-muted);
    font-size: .9375em;
    line-height: 1.8;
}

.ym-sample-photo {
    display: grid;
    place-items: center;
    background: var(--ym-soft);
    color: var(--ym-muted);
    font-size: .9375em;
    letter-spacing: .08em;
}


/* Simple recipe-led home: a photo, three lists, and a small request form. */
.ym-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: center;
    gap: 64px;
    margin: 0 0 32px;
    padding: 34px 0 42px;
}

.ym-hero-copy,
.ym-hero-media {
    min-width: 0;
}

.ym .ym-hero-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    color: var(--ym-button);
    text-decoration: none;
}

.ym-hero-name {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
    font-size: clamp(34px, 4.2vw, 46px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .12em;
}

.ym-hero-english {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .3em;
}

.ym .ym-hero-title {
    margin: 34px 0 20px;
    font-size: clamp(27px, 3.1vw, 36px);
    line-height: 1.8;
    letter-spacing: .035em;
    white-space: normal;
}

.ym-hero-subtitle {
    margin: 0;
    color: var(--ym-muted);
    font-size: .9375em;
    line-height: 2.1;
    white-space: normal;
}

.ym-hero-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 6 / 5;
    border-radius: var(--ym-radius);
    background: var(--ym-soft);
}

.ym-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ym-hero-empty {
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--ym-muted);
    text-align: center;
}

.ym-section-head > div {
    min-width: 0;
}

.ym-section-description {
    margin: 10px 0 0;
    color: var(--ym-muted);
    font-size: .8125em;
    line-height: 1.9;
}

.ym-card-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
    padding: 0 18px 16px;
}

.ym-card-meta > .ym-card-date {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ym-card-meta > .ym-card-reactions {
    grid-column: 2;
    justify-self: end;
}

.ym-card-date,
.ym-published {
    display: block;
    color: var(--ym-muted);
    font-size: .75em;
    letter-spacing: .035em;
}

.ym-published {
    margin: 16px 0 24px;
    font-size: .875em;
}

.ym-reactions.ym-card-reactions {
    flex-direction: row;
    align-items: center;
    gap: 0;
    min-width: 0;
    padding: 0;
    border: 0;
}

.ym .ym-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.ym .ym-card-reactions .ym-like {
    min-height: 44px;
    padding: 8px 11px;
    border-color: var(--ym-border);
    font-size: .75em;
    line-height: 1.5;
}

.ym-heart {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 1.45em;
    line-height: 1;
}

.ym-card-reactions .ym-status {
    margin: 4px 0 0;
    font-size: .6875em;
}

.ym-card-reactions .ym-status:empty {
    display: none;
}

/* Video previews stay within their own horizontal viewport. Recipe grids are unchanged. */
.ym-video-carousel { min-width: 0; max-width: 100%; }
.ym .ym-video-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    gap: var(--ym-gap);
    padding: 3px 2px 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--ym-accent) transparent;
}
.ym-video-track > .ym-video-card { flex: 0 0 max(240px, 32%); }
.ym .ym-video-track[data-ym-loop] {
    scrollbar-width: none;
    overflow-anchor: none;
    scroll-behavior: auto;
    scroll-snap-type: none;
}
.ym-video-track[data-ym-loop]::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
    .ym-video-track > .ym-video-card { flex-basis: 46%; min-width: 230px; }
}
@media (max-width: 600px) {
    .ym-video-track > .ym-video-card { flex-basis: 85%; min-width: 0; }
}

.ym-video-media {
    overflow: hidden;
    background: var(--ym-soft);
}

.ym .ym-video-play {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--ym-soft);
    color: var(--ym-button);
    text-align: inherit;
}

.ym-video-play .ym-photo {
    aspect-ratio: 16 / 9;
}

.ym-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 50px;
    height: 50px;
    padding-left: 3px;
    border: 1px solid var(--ym-border);
    border-radius: 50%;
    background: var(--ym-bg);
    color: var(--ym-button);
    font-size: 18px;
    line-height: 1;
    place-items: center;
    transform: translate(-50%, -50%);
}

.ym-video-play:hover .ym-play-icon,
.ym-video-play:focus-visible .ym-play-icon {
    border-color: var(--ym-fill, var(--ym-button));
    background: var(--ym-fill, var(--ym-button));
    color: var(--ym-on-fill, #fff);
}

.ym-video-play:focus-visible {
    outline-offset: -4px;
}

.ym-video-media iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.ym-video-card .ym-card-body {
    flex: 1;
    padding-bottom: 18px;
}

.ym-card .ym-video-title {
    margin-bottom: 0;
}

.ym-request-cta {
    margin: 60px 0;
    padding: 40px 36px;
    border: 1px solid var(--ym-border);
    border-radius: var(--ym-radius);
    background: var(--ym-soft);
}

.ym-request-cta h2 {
    margin-bottom: 12px;
}

.ym-request-cta > p {
    margin: 0 0 24px;
    color: var(--ym-muted);
    font-size: .9375em;
}

.ym-request-panel {
    max-width: 640px;
}

.ym-request-panel .ym-request-form {
    margin-top: 24px;
}

.ym-request-panel .ym-request-form > label:first-child {
    margin-top: 0;
}

.ym-request-panel textarea {
    min-height: 150px;
}

.ym-footer .ym-languages {
    margin: 0;
}

.ym-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Elementor owns spacing between widgets; saved widget controls still win. */
:where(.elementor-widget) .ym-recipes,
:where(.elementor-widget) .ym-prose,
:where(.elementor-widget) .ym-hero,
:where(.elementor-widget) .ym-request-cta {
    margin: 0;
}

:where(.elementor-widget) .ym-prose {
    max-width: none;
}

@media (max-width: 900px) {
    .ym-hero {
        gap: 32px;
    }
}

@media (max-width: 700px) {
    .ym-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 20px 0 32px;
    }

    .ym .ym-hero-title {
        margin-top: 24px;
        font-size: clamp(26px, 5vw, 34px);
    }

    .ym-hero-media {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 600px) {
    .ym-card h3 {
        font-size: .9375em;
        line-height: 1.75;
    }

    .ym-card-meta {
        padding: 0 14px 14px;
    }

    .ym-section-description {
        font-size: .8125em;
    }

    .ym-request-cta {
        margin: 40px 0;
        padding: 28px 22px;
    }

    .ym-request-cta .ym-request-toggle,
    .ym-request-panel [type="submit"] {
        width: 100%;
    }

    .ym-play-icon {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 359px) {
    .ym-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Video viewing pages share the existing player, palette and reaction controls. */
.ym-video-detail { max-width:1040px; margin:32px auto; padding:0 24px; }
.ym-video-detail > * + * { margin-top:20px; }
.ym .ym-video-player { width:100%; aspect-ratio:16/9; border-radius:18px; overflow:hidden; }
.ym-video-player .ym-photo { aspect-ratio:16/9; }
.ym-video-player iframe { display:block; width:100%; height:100%; }
.ym-video-detail h1, .ym-video-part h1 { overflow-wrap:anywhere; line-height:1.5; }
.ym-video-notice { font-size:13px; color:var(--ym-muted); margin:8px 0 0; }
.ym-video-title a { color:inherit; text-decoration:none; }
.ym-video-title a:hover { text-decoration:underline; }
@media(max-width:700px){ .ym-video-detail{margin:20px auto;padding:0 16px;} }

.ym [data-ym-match-width] .ym-video-track { padding-inline:0; }
.ym [data-ym-match-width] .ym-video-card { flex-basis:var(--ym-matched-video-width, calc((100% - 3 * var(--ym-gap)) / 4)); min-width:0; }
@media(max-width:1024px){.ym [data-ym-match-width] .ym-video-card{flex-basis:var(--ym-matched-video-width,calc((100% - var(--ym-gap)) / 2));}}
@media(max-width:767px){.ym [data-ym-match-width] .ym-video-card{flex-basis:var(--ym-matched-video-width,100%);}}

/* Uploaded recipe clips live inside the existing photos widget. */
.ym .ym-short-video{min-width:0;margin-top:20px}
.ym .ym-short-video video{display:block;width:100%;max-width:100%;height:auto;max-height:600px;object-fit:contain;border-radius:var(--ym-radius);background:var(--ym-soft)}
.ym .ym-short-video-link{margin:8px 0 0;font-size:.875em}
.ym .ym-short-video-link a{display:inline-flex;align-items:center;min-height:44px}
