/* NYD studio – dark, works-first home page and gallery (with base.css). Everything is inside .nyd-s */
/* the main colour: these are the defaults (gold); the admin's colours come in the page (NydShowcase::colorCss) */
:root { --nyd-p: #F2C14E; --nyd-p-rgb: 242, 193, 78; --nyd-p-hi: #FFD978; --nyd-on-p: #14110A; --nyd-p-txt: #F2C14E; --nyd-p-ink: #9A6A06;
	--nyd-p-deep: #2A220E; --nyd-p-pale: #FFF3D1; --nyd-grad: #FFE08A, #F2C14E 50%, #E8A93A; --nyd-grad-light: #D49A1E, #A8700A 55%, #8C5A04; --nyd-glow-rgb: 242, 193, 78; }
body:has(.nyd-s) { background: #0B0B0F; }
.nyd-s { --ink: #F5F5F7; --muted: #A3A3B2; --line: rgba(255, 255, 255, .08); --soft: #0B0B0F; --dark: #0B0B0F; --s1: #14141A; --s2: #1C1C24; --accent: var(--nyd-p); --gold: var(--nyd-p); --gold-txt: var(--nyd-p-txt); background: #0B0B0F; color: var(--ink); }
.nyd-s-gold { background: linear-gradient(90deg, var(--nyd-grad)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nyd-s .nyd-kicker { color: var(--gold-txt); }
.nyd-s .nyd-sub { color: var(--muted); }
.nyd .nyd-btn-gold { background: linear-gradient(180deg, var(--nyd-p-hi), var(--nyd-p)); color: var(--nyd-on-p); box-shadow: 0 10px 30px -10px rgba(var(--nyd-p-rgb), .55); }
.nyd-s .nyd-btn-ghost { border-color: rgba(255, 255, 255, .22); }
.nyd-s .nyd-btn-lg { font-size: 17px; padding: 15px 28px; }

/* header */
.nyd-s-top { position: sticky; top: 0; z-index: 60; background: rgba(11, 11, 15, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nyd-s .nyd-bar { background: #14141A; color: #E9E6D8; }
.nyd-s .nyd-bar-tag { background: var(--gold); color: var(--nyd-on-p); }
.nyd-s .nyd-head { padding: 12px 24px; }
.nyd-s .nyd-nav { max-width: 1400px; }
.nyd-s .nyd-links a { color: var(--muted); }
.nyd-s .nyd-links a:hover, .nyd-s .nyd-links a.is-on { color: #fff; background: rgba(255, 255, 255, .08); }
.nyd-s .nyd-link-plain { color: var(--muted); }
.nyd-s .nyd-icon-btn { color: #fff; }

/* hero */
.nyd-s-hero { position: relative; overflow: hidden; padding: 84px 0 40px; }
.nyd-s-hero::before { content: ''; position: absolute; top: -280px; left: 50%; width: 1100px; height: 700px; margin-left: -550px; background: radial-gradient(closest-side, rgba(var(--nyd-glow-rgb), .18), transparent); pointer-events: none; }
.nyd-s-hero > * { position: relative; }
.nyd-s .nyd-h1 { font-size: clamp(44px, 7vw, 104px); line-height: 1; letter-spacing: -.035em; }
.nyd-s-lead { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 640px; margin: 22px auto 0; }
.nyd-s-prompt-bar { display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 32px auto 0; padding: 8px 8px 8px 8px; border-radius: 999px; background: var(--s1); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .2s; }
.nyd-s-prompt-bar:hover { border-color: rgba(var(--nyd-p-rgb), .6); }
.nyd-s-prompt-bar > span:first-child { flex: 1; text-align: start; padding: 0 18px; color: #7E7E8C; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nyd-s-models { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.nyd-s-models span { font-size: 13px; color: #C9C9D4; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }

/* a video behind the title (chosen by the admin): white text on a darkened video, fading into the page at the bottom */
.nyd-s-hero-top { position: relative; }
.nyd-s-hero.has-video { padding-top: 0; }
.nyd-s-hero.has-video::before { display: none; }
.nyd-s-hero.has-video .nyd-s-hero-top { padding: 150px 0 120px; color: #fff; }
.nyd-s-hero-top > .nyd-wrap { position: relative; z-index: 1; }
.nyd-s-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.nyd-s-hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.nyd-s-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, var(--dim, .55)) 0%, rgba(0, 0, 0, var(--dim, .55)) 60%, var(--soft) 100%); }
html .nyd-s-hero.has-video .nyd-s-gold { background-image: linear-gradient(90deg, var(--nyd-grad)); }
.nyd-s-hero.has-video .nyd-s-lead { color: rgba(255, 255, 255, .85); }
html .nyd-s-hero.has-video .nyd-s-models span { color: #fff; background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }

/* the hero rail */
.nyd-s-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 48px max(24px, calc((100vw - 1400px) / 2)) 10px; scrollbar-width: none; }
.nyd-s-rail::-webkit-scrollbar { display: none; }
.nyd-s-card.is-rail { flex: 0 0 auto; height: min(440px, 62vw); width: auto; aspect-ratio: var(--r); max-width: 82vw; scroll-snap-align: center; margin: 0; }

/* a work */
.nyd-s-card { position: relative; display: block; width: 100%; aspect-ratio: var(--r); overflow: hidden; border: 0; padding: 0; margin: 0 0 14px; border-radius: 18px; background: var(--s1); color: #fff; font: inherit; text-align: start; cursor: pointer; isolation: isolate; }
.nyd-s-card > video, .nyd-s-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nyd-s-card:hover > video, .nyd-s-card:hover > img { transform: scale(1.04); }
.nyd-s-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .78)); opacity: .9; transition: opacity .25s; z-index: 1; }
.nyd-s-card-meta { position: absolute; inset-inline: 14px; bottom: 14px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.nyd-s-card-meta b { font-family: Rubik, sans-serif; font-weight: 600; font-size: 16px; line-height: 1.3; }
.nyd-s-card-meta small { font-size: 12px; color: #D8D8E2; }
.nyd-s-tag { align-self: flex-start; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.nyd-s-card-cta { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--gold); color: var(--nyd-on-p); opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
.nyd-s-card:hover .nyd-s-card-cta, .nyd-s-card:focus-visible .nyd-s-card-cta { opacity: 1; transform: none; }
.nyd-s-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nyd-s-card.is-audio, .nyd-s-audio-art { background: radial-gradient(circle at 30% 25%, var(--nyd-p), #6B3FA0 55%, #14141A); }
.nyd-s-audio-art { display: block; width: 100%; aspect-ratio: 1; border-radius: 18px; }
.nyd-s-wave { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 5px; height: 46px; padding: 0 16px; border-radius: 999px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.nyd-s-wave i { width: 4px; height: 14px; border-radius: 2px; background: var(--gold); animation: nydSWave 1.1s ease-in-out infinite; }
.nyd-s-wave i:nth-child(2) { height: 26px; animation-delay: .12s; }
.nyd-s-wave i:nth-child(3) { height: 32px; animation-delay: .24s; }
.nyd-s-wave i:nth-child(4) { height: 22px; animation-delay: .36s; }
.nyd-s-wave i:nth-child(5) { height: 12px; animation-delay: .48s; }

/* the grid (masonry) */
/* the grid: up to 4 columns, laid out by nydStudio.masonry() into .nyd-s-col (CSS columns hide cards in iPhone Safari);
   without script, a plain grid */
.nyd-s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 14px; align-items: start; margin-top: 34px; }
.nyd-s-grid.is-cols { display: flex; align-items: flex-start; gap: 14px; }
.nyd-s-col { flex: 1 1 0; min-width: 0; }
.nyd-s-more { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nyd-s-share-cta { margin-top: 18px; }

/* tools */
.nyd-s-tools { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.nyd-s-tool { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 300px; border-radius: 22px; padding: 20px; background: var(--s1); border: 1px solid var(--line); isolation: isolate; }
.nyd .nyd-s-tool { color: #fff; } /* not the page's text colour – the card is always dark */
.nyd-s-tool-m { opacity: 0; transition: opacity .9s ease, transform .6s ease; }
.nyd-s-tool-m.is-on { opacity: 1; }
.nyd-s-tool > video, .nyd-s-tool > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.nyd-s-tool:hover > video, .nyd-s-tool:hover > img { transform: scale(1.06); }
.nyd-s-tool::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 15, .05), rgba(11, 11, 15, .85)); }
.nyd-s-tool.tool-image { background: radial-gradient(circle at 30% 20%, #7A4BFF, #241650 60%, #14141A); }
.nyd-s-tool.tool-video { background: radial-gradient(circle at 70% 20%, #E8603C, #3A1A12 60%, #14141A); }
.nyd-s-tool.tool-music { background: radial-gradient(circle at 30% 30%, #20B486, #0E3328 60%, #14141A); }
.nyd-s-tool.tool-voice { background: radial-gradient(circle at 60% 30%, #2D8CFF, #0E2540 60%, #14141A); }
.nyd-s-tool.tool-chat { background: radial-gradient(circle at 40% 25%, var(--nyd-p), var(--nyd-p-deep) 60%, #14141A); }
.nyd-s-tool.tool-fashion { background: radial-gradient(circle at 50% 20%, #E84393, #3A1230 60%, #14141A); }
.nyd-s-tool-in { display: flex; flex-direction: column; gap: 4px; }
.nyd-s-tool-in b { font-family: Rubik, sans-serif; font-weight: 700; font-size: 22px; }
.nyd-s-tool-in small { font-size: 14px; color: #D2D2DC; }
.nyd-s-tool-go { position: absolute; top: 16px; inset-inline-end: 16px; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); transition: background-color .2s, color .2s; }
.nyd-s-tool:hover .nyd-s-tool-go { background: var(--gold); color: var(--nyd-on-p); }

/* the window */
.nyd-s-viewer { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.nyd-s-viewer-bg { position: absolute; inset: 0; background: rgba(5, 5, 8, .82); backdrop-filter: blur(8px); }
.nyd-s-viewer-in { position: relative; display: flex; width: min(1240px, 100%); height: min(86vh, 840px); border-radius: 22px; overflow: hidden; background: var(--s1); border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.nyd-s-viewer-media { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.nyd-s-viewer-media video, .nyd-s-viewer-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nyd-s-audio { display: flex; flex-direction: column; align-items: center; gap: 18px; width: min(460px, 90%); }
.nyd-s-audio img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.nyd-s-audio audio { width: 100%; }
.nyd-s-viewer-side { flex: 0 0 380px; display: flex; flex-direction: column; gap: 14px; padding: 24px; overflow-y: auto; }
.nyd-s-viewer-side h3 { margin: 0; font-family: Rubik, sans-serif; font-weight: 700; font-size: 22px; }
.nyd-s-viewer-side > small { color: var(--muted); }
.nyd-s-x { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 16px; cursor: pointer; }
.nyd-s-prompt { border-radius: 16px; background: var(--s2); border: 1px solid var(--line); }
.nyd-s-prompt-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.nyd-s-prompt-head button { border: 0; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.nyd-s-prompt p { margin: 0; padding: 14px; max-height: 280px; overflow-y: auto; font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.nyd-s-details { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.nyd-s-details div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.nyd-s-details dt { color: var(--muted); }
.nyd-s-details dd { margin: 0; }
.nyd-s-again { width: 100%; padding: 15px; font-size: 16px; margin-top: auto; }
.nyd-s-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.nyd-s-share { border: 0; background: none; color: var(--gold-txt); font: inherit; font-size: 14px; cursor: pointer; }

/* pricing / FAQ on dark */
.nyd-s .nyd-seg { background: var(--s1); border-color: var(--line); }
.nyd-s .nyd-seg button { color: var(--muted); }
.nyd-s .nyd-seg button.is-on { background: #fff; color: #0B0B0F; }
/* the full gallery's filter: links (a page per tool) that look like the buttons */
.nyd-s .nyd-seg a { font-family: Rubik, sans-serif; font-size: 15px; padding: 10px 18px; border-radius: 999px; color: var(--muted); display: inline-flex; align-items: center; }
.nyd-s .nyd-seg a.is-on { background: #fff; color: #0B0B0F; }
.nyd-s .nyd-sec-head .nyd-seg { margin: 0; }
.nyd-s .nyd-plan { background: var(--s1); border-color: var(--line); color: var(--ink); }
.nyd-s .nyd-plan .text-heading-foreground { color: inherit; }
/* the "i" list of a plan (features / credits): MagicAI draws it on the site's light background – here on the design's own surface */
.nyd-s .nyd-plan .lqd-price-table-info { background: var(--s2); border-color: var(--line); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.nyd-s .nyd-plan .lqd-price-table-info :is(h5, li, span, p) { color: inherit; }
.nyd-s .nyd-plan.is-featured { background: linear-gradient(170deg, var(--nyd-p-deep), #14141A 60%); border-color: rgba(var(--nyd-p-rgb), .45); }
.nyd-s .nyd-plan.is-featured::before { background: radial-gradient(circle, rgba(var(--nyd-p-rgb), .35), transparent 65%); }
.nyd-s .nyd-plan-badge { background: var(--gold); color: var(--nyd-on-p); }
.nyd-s .nyd-plan-btn { background: rgba(255, 255, 255, .08); color: #fff; }
.nyd-s .nyd-plan-btn:hover { background: rgba(255, 255, 255, .14); }
.nyd-s .nyd-plan.is-featured .nyd-plan-btn { background: linear-gradient(180deg, var(--nyd-p-hi), var(--nyd-p)); color: var(--nyd-on-p); }
.nyd-s .nyd-faq-item { background: var(--s1); border-color: var(--line); }
.nyd-s .nyd-faq-q { color: var(--ink); }
.nyd-s .nyd-faq-sign { color: var(--gold-txt); }

/* CTA, page head, footer */
.nyd-s-cta { position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: 80px 24px; background: radial-gradient(700px 300px at 50% 0%, rgba(var(--nyd-glow-rgb), .22), transparent 70%), var(--s1); border: 1px solid var(--line); }
.nyd-s-cta p { color: var(--muted); font-size: 18px; margin: 16px 0 30px; }
.nyd-s-page-head { padding: 56px 0 0; }
.nyd-s-page-head .nyd-seg { margin: 26px 0 0; }
.nyd-s-page { padding-top: 0; }
.nyd-s-foot { background: #0B0B0F; border-top: 1px solid var(--line); padding: 44px 0 30px; color: var(--muted); }
.nyd-s-foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.nyd-s-foot-top .nyd-logo { color: #fff; }
.nyd-s-foot-top p { margin: 12px 0 0; font-size: 15px; max-width: 320px; }
.nyd-s-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; align-content: flex-start; }
.nyd-s-foot nav a:hover { color: var(--gold-txt); }
.nyd-s-foot-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }

/* the languages menu (base.css draws it white – on the dark studio its words were white on white) */
.nyd-s .nyd-lang-menu { background: var(--s2); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 20px 44px rgba(0, 0, 0, .5); }
.nyd-s .nyd-lang-menu a { color: var(--ink); }
.nyd-s .nyd-lang-menu a:hover, .nyd-s .nyd-lang-menu a:focus-visible { background: rgba(255, 255, 255, .07); }

/* light mode (html.nyd-light – the admin's choice or the visitor's) */
html.nyd-light body:has(.nyd-s) { background: #F7F6F2; }
html.nyd-light .nyd-s { --ink: #17151C; --muted: #5F5C68; --line: rgba(23, 21, 28, .1); --soft: #F7F6F2; --dark: #F7F6F2; --s1: #FFFFFF; --s2: #F1EFE9; --gold-txt: var(--nyd-p-ink); background: #F7F6F2; }
html.nyd-light .nyd-s-gold { background-image: linear-gradient(90deg, var(--nyd-grad-light)); }
html.nyd-light .nyd-s .nyd-btn-ghost { border-color: rgba(23, 21, 28, .2); color: var(--ink); }
html.nyd-light .nyd-s-top { background: rgba(247, 246, 242, .85); }
html.nyd-light .nyd-s .nyd-bar { background: #17151C; color: #F1EFE9; }
html.nyd-light .nyd-s .nyd-links a:hover, html.nyd-light .nyd-s .nyd-links a.is-on { color: var(--ink); background: rgba(23, 21, 28, .06); }
html.nyd-light .nyd-s .nyd-icon-btn { color: var(--ink); }
html.nyd-light .nyd-s .nyd-lang-menu { background: #fff; box-shadow: 0 20px 40px rgba(23, 21, 28, .16); }
html.nyd-light .nyd-s .nyd-lang-menu a:hover, html.nyd-light .nyd-s .nyd-lang-menu a:focus-visible { background: var(--s2); }
.nyd-s-mode .is-moon, html.nyd-light .nyd-s-mode .is-sun { display: none; }
html.nyd-light .nyd-s-mode .is-moon { display: block; }
html.nyd-light .nyd-s-hero::before { background: radial-gradient(closest-side, rgba(var(--nyd-glow-rgb), .28), transparent); }
html.nyd-light .nyd-s-prompt-bar { border-color: var(--line); box-shadow: 0 14px 40px -18px rgba(23, 21, 28, .25); }
html.nyd-light .nyd-s-models span { color: var(--muted); background: #fff; }
html.nyd-light .nyd-s-card { box-shadow: 0 10px 30px -18px rgba(23, 21, 28, .35); }
html.nyd-light .nyd-s-tool { border: 0; }
html.nyd-light .nyd-s-viewer-bg { background: rgba(23, 21, 28, .55); }
html.nyd-light .nyd-s-viewer-in { box-shadow: 0 40px 120px rgba(23, 21, 28, .35); }
html.nyd-light .nyd-s-prompt-head button { background: rgba(23, 21, 28, .07); color: var(--ink); }
html.nyd-light .nyd-s .nyd-seg button.is-on, html.nyd-light .nyd-s .nyd-seg a.is-on { background: #17151C; color: #fff; }
html.nyd-light .nyd-s .nyd-plan.is-featured { background: linear-gradient(170deg, var(--nyd-p-pale), #fff 60%); }
html.nyd-light .nyd-s .nyd-plan-btn { background: rgba(23, 21, 28, .07); color: var(--ink); }
html.nyd-light .nyd-s .nyd-plan-btn:hover { background: rgba(23, 21, 28, .12); }
html.nyd-light .nyd-s-foot { background: #F1EFE9; }
html.nyd-light .nyd-s-foot-top .nyd-logo { color: var(--ink); }

@keyframes nydSWave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.4); } }

@media (max-width: 1100px) {
	.nyd-s-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: repeat(min(var(--n, 3), 3), minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
	.nyd-s .nyd-links { background: var(--s1); border: 1px solid var(--line); }
	.nyd-s .nyd-links a { color: var(--ink); }
}
@media (max-width: 760px) {
	.nyd-s .nyd-head { padding: 10px 16px; }
	.nyd-s .nyd-actions { gap: 6px; }
	.nyd-s .nyd-icon-btn { width: 38px; height: 38px; }
	.nyd-s .nyd-actions .nyd-btn-gold { padding: 9px 14px; font-size: 14px; }
	.nyd-s .nyd-logo-img { height: 32px; max-width: 96px; }
	.nyd-s-hero { padding-top: 48px; }
	.nyd-s-hero.has-video .nyd-s-hero-top { padding: 90px 0 80px; }
	.nyd-s-lead { font-size: 16px; }
	.nyd-s-prompt-bar > span:first-child { font-size: 15px; padding: 0 10px; }
	.nyd-s-rail { padding: 32px 16px 6px; }
	.nyd-s-card.is-rail { height: 300px; }
	.nyd-s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
	.nyd-s-grid.is-cols { gap: 10px; }
	/* the tool filter: one line that scrolls sideways, instead of a pill that breaks into two rows */
	.nyd-s .nyd-seg:is([role=tablist], nav) { display: flex; flex-wrap: nowrap; justify-content: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
	.nyd-s .nyd-seg:is([role=tablist], nav)::-webkit-scrollbar { display: none; }
	.nyd-s .nyd-seg:is([role=tablist], nav) :is(button, a) { flex: 0 0 auto; white-space: nowrap; padding: 9px 14px; }
	.nyd-s-card { margin-bottom: 10px; border-radius: 14px; }
	.nyd-s-card-cta { display: none; }
	.nyd-s-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-columns: repeat(min(var(--n, 2), 2), minmax(0, 1fr)); gap: 10px; }
	.nyd-s-tool { min-height: 200px; padding: 14px; }
	.nyd-s-tool-in b { font-size: 18px; }
	.nyd-s-viewer { padding: 0; }
	.nyd-s-viewer-in { flex-direction: column; height: 100%; border-radius: 0; }
	.nyd-s-viewer-media { flex: 0 0 auto; max-height: 52vh; }
	.nyd-s-viewer-side { flex: 1 1 auto; padding: 18px; }
	.nyd-s-again { position: sticky; bottom: 0; }
	.nyd-s-cta { padding: 56px 18px; border-radius: 24px; }
}
@media (max-width: 380px) {
	.nyd-s .nyd-actions { gap: 4px; }
	.nyd-s .nyd-icon-btn { width: 34px; height: 34px; }
	.nyd-s .nyd-logo-img { max-width: 78px; }
	.nyd-s .nyd-head { padding-inline: 12px; }
	.nyd-s .nyd-actions .nyd-btn-gold { padding: 8px 11px; font-size: 13px; }
}

/* 1.7.6: more than 5 tool cards – rows of up to 5 (not 10 narrow ones) */
.nyd-s-tools { grid-template-columns: repeat(min(var(--n, 5), 5), minmax(0, 1fr)); }
@media (max-width: 1100px) { .nyd-s-tools { grid-template-columns: repeat(min(var(--n, 3), 3), minmax(0, 1fr)); } }
@media (max-width: 760px) { .nyd-s-tools { grid-template-columns: repeat(min(var(--n, 2), 2), minmax(0, 1fr)); } }
.nyd-s-tool.tool-keys { background: radial-gradient(circle at 30% 20%, #2F8F6B, #0F2A22 60%, #14141A); }
.nyd-s-tool.tool-editor { background: radial-gradient(circle at 70% 20%, #4B6BFF, #141E4A 60%, #14141A); }
.nyd-s-tool.tool-cover { background: radial-gradient(circle at 30% 20%, #E85C9A, #3A1228 60%, #14141A); }
.nyd-s-tool.tool-writer { background: radial-gradient(circle at 70% 20%, #F2C14E, #3A2A0E 60%, #14141A); }

/* 1.7.6: "חדש באתר" – text and a picture of the site itself (one for dark, one for light) */
.nyd-s-new-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 34px; border-radius: 28px; background: var(--s1); border: 1px solid var(--line); }
.nyd-s-new-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.nyd-s-new-txt .nyd-h2 { margin: 0; }
.nyd-s-new-txt .nyd-sub { margin: 0; }
.nyd-s-new-eb { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--nyd-on-p); }
.nyd-s-new-list { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--ink); font-size: 16px; line-height: 1.55; }
.nyd-s-new-list li { position: relative; padding-inline-start: 28px; }
.nyd-s-new-list li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(var(--nyd-p-rgb), .18); color: var(--gold-txt); }
.nyd-s-new-pic { position: relative; min-width: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6); background: var(--s2); }
.nyd-s-new-pic img { display: block; width: 100%; height: auto; }
.nyd-s-new-pic .is-light { display: none; }
html.nyd-light .nyd-s-new-pic .is-light { display: block; }
html.nyd-light .nyd-s-new-pic .is-dark { display: none; }
html.nyd-light .nyd-s-new-pic { box-shadow: 0 24px 60px -28px rgba(23, 21, 28, .35); }
@media (max-width: 900px) {
	.nyd-s-new-in { grid-template-columns: 1fr; gap: 22px; padding: 20px; border-radius: 20px; }
	.nyd-s-new-pic { order: -1; }
	.nyd-s-new-list { font-size: 15px; }
	.nyd-s-new-txt .nyd-btn-gold { align-self: stretch; text-align: center; justify-content: center; }
}
