/* ---- A design entry (views/designerSubmission/publicView_new.php, redesign; 16 Nov 2026): one scrolling page. A large
 * viewer whose filmstrip also holds the video, a sticky panel with the vote beside it, an anchor bar instead of tabs,
 * then About, Renderings, Drawings, Video, Evaluations and the other entries one under the other ---- */
.dx { --dx-top: 0px; max-width: 1600px; margin: 0 auto; padding: 0 var(--hr-gutter, 32px); color: var(--hr-text, #222); font-size: 15px; line-height: 1.6; text-align: left; }
.dx p { font-size: inherit; }
.dx-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; padding: 10px 0 30px; }

/* the viewer */
.dx-viewer { min-width: 0; }
.dx-stage { position: relative; aspect-ratio: 3 / 2; max-height: 78vh; width: 100%; border-radius: 18px; overflow: hidden; background: #161616; }
.dx-stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.dx-stage__video, .dx-stage__media > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* an entry with only a video: no picture to zoom, the video fills the viewer (16 Nov 2026) */
.dx-stage:fullscreen { max-height: none; border-radius: 0; }
.dx-btn { position: absolute; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fffffff0; color: #222; box-shadow: 0 2px 12px #0003; cursor: pointer; transition: transform .15s; }
.dx-btn:hover { transform: scale(1.06); }
.dx-btn:disabled { opacity: 0; pointer-events: none; }
.dx-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dx-btn--prev { left: 16px; top: 50%; margin-top: -22px; }
.dx-btn--next { right: 16px; top: 50%; margin-top: -22px; }
.dx-btn--full { right: 16px; top: 16px; width: 40px; height: 40px; }
.dx-counter { position: absolute; z-index: 3; left: 16px; bottom: 16px; padding: 4px 12px; border-radius: 999px; background: #000000a6; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.dx-stage .sc-place { top: 16px; left: 16px; }
.dx-stage .sc-place--voters { left: auto; right: 68px; }
.dx-stage.is-video :is(.dx-btn--full, .sc-place) { display: none; }
.dx-strip { display: flex; gap: 8px; margin: 10px 0 0; padding: 2px 2px 6px; overflow-x: auto; scrollbar-width: thin; list-style: none; }
.dx-strip li { flex: none; margin: 0; }
.dx-thumb { position: relative; display: block; width: 92px; height: 66px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--hr-soft, #f7f7f7); cursor: pointer; opacity: .62; outline: 2px solid transparent; outline-offset: 1px; transition: opacity .15s; }
.dx-thumb:hover { opacity: 1; }
.dx-thumb.is-active { opacity: 1; outline-color: var(--hr-text, #222); }
.dx-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dx-thumb--video::after { content: ""; position: absolute; inset: 0; background: #0000004d; }
.dx-thumb__play { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin: -18px 0 0 -14px; border-radius: 50%; background: #fff; }
.dx-thumb__play svg { width: 12px; height: 12px; margin-left: 2px; fill: #222; }
.dx-thumb__label { position: absolute; z-index: 1; left: 0; right: 0; bottom: 3px; font-size: 10px; font-weight: 800; color: #fff; text-align: center; letter-spacing: .3px; }

/* the panel */
.dx-panel { position: sticky; top: calc(var(--dx-top) + 70px); display: flex; flex-direction: column; gap: 16px; }
.dx-panel .hr-eyebrow { margin: 0; text-transform: uppercase; }
.dx-panel h1 { margin: -8px 0 0; font-size: 30px; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.dx-panel .sc-meta { margin: -8px 0 0; }
.dx-who { display: flex; align-items: center; gap: 12px; margin: 0; }
.dx-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--hr-soft, #f7f7f7); }
.dx-who__name { display: block; font-weight: 700; color: var(--hr-text, #222); line-height: 1.3; }
.dx-who__sub { display: block; font-size: 13px; color: var(--hr-muted, #717171); line-height: 1.3; }
.dx-card { padding: 16px 18px; border: 1px solid var(--hr-line, #e8e8e8); border-radius: 16px; }
.dx-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.dx-facts dt { font-size: 12px; font-weight: 600; color: var(--hr-muted, #717171); }
.dx-facts dd { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; }
.dx-facts dd small { font-size: 13px; font-weight: 600; color: var(--hr-muted, #717171); }
.dx-facts a { color: inherit; text-decoration: none; }
.dx-place { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--hr-soft, #f7f7f7); }
.dx-place--first { background: #e9c85c; } .dx-place--second { background: #d9d9de; } .dx-place--third { background: #eaa25b; }
.dx-panel .vote-btn { margin: 0; }
.dx-panel .vote-btn .btn, .dx-votebar .vote-btn .btn { display: block; width: 100%; padding: 12px 22px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 700; text-align: center; }
.dx-panel .vote-btn .btn-primary, .dx-votebar .vote-btn .btn-primary { background: var(--hr-accent, #bb344c); color: #fff; }
.dx-tools { display: flex; gap: 10px; margin: -4px 0 0; }
/* the bookmark script needs .img-action around Save; here it is a row, not the pictures' corner buttons */
.dx-panel .dx-tools.img-action { position: static; inset: auto; width: auto; z-index: auto; opacity: 1; visibility: visible; transform: none; }
.dx-tools:empty { display: none; }
.dx-tool { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--hr-line, #e8e8e8); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--hr-text, #222); text-decoration: none; cursor: pointer; }
.dx-tool:hover { border-color: var(--hr-text, #222); color: var(--hr-text, #222); }
.dx-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dx-tool.is-saved svg { fill: var(--hr-accent, #bb344c); stroke: var(--hr-accent, #bb344c); }
.dx-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: 14px; }
.dx-links a { font-weight: 700; color: var(--hr-text, #222); }
.dx-panel .ai-judge { margin: 0; }
/* the client above the designer; "Latest Scores" with "Score project" beside it and room under it (16 Nov 2026) */
.dx-who--client { margin-bottom: -6px; }
.dx-panel .box-jury__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.dx-panel .box-jury__head .jury-header { margin: 0; }
.dx-panel .box-jury > .jury-header { display: block; margin: 0 0 12px; }
.dx-score { font-size: 14px; font-weight: 700; color: var(--hr-text, #222); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.dx-score:hover { color: var(--hr-accent, #bb344c); }
.dx-score.is-done, .dx-score.has-voted-btn { color: var(--hr-muted, #717171) !important; text-decoration: none; background: none !important; border: 0 !important; padding: 0 !important; }
/* Evaluations: the jurors and their scores at once, the comments folded (16 Nov 2026) */
.dx-jurors { margin-top: 28px; }

/* the anchor bar */
.dx-nav { position: sticky; top: var(--dx-top); z-index: 20; margin: 0 calc(-1 * var(--hr-gutter, 32px)); padding: 0 var(--hr-gutter, 32px); background: #fff; border-bottom: 1px solid var(--hr-line, #e8e8e8); }
.dx-nav ul { display: flex; gap: 4px 28px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; list-style: none; white-space: nowrap; }
.dx-nav li { flex: none; margin: 0; }
.dx-nav a { display: block; padding: 14px 0 12px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 700; color: var(--hr-muted, #717171); text-decoration: none; }
.dx-nav a:hover { color: var(--hr-text, #222); }
.dx-nav a.is-active { color: var(--hr-text, #222); border-bottom-color: var(--hr-text, #222); }
.dx-nav a span { margin-left: 4px; font-weight: 600; color: var(--hr-muted, #717171); }

/* the sections */
.dx-sec { padding: 44px 0 0; scroll-margin-top: calc(var(--dx-top) + 50px); }
.dx-sec > h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; font-size: 26px; line-height: 1.2; font-weight: 800; }
.dx-sec > h2 small { font-size: 15px; font-weight: 600; color: var(--hr-muted, #717171); }
.dx-sec > h2.dx-sec__next { margin-top: 40px; }
.dx-sec h3 { margin: 26px 0 12px; font-size: 17px; font-weight: 800; }
.dx-about { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.dx-about__text { max-width: 760px; white-space: normal; overflow-wrap: anywhere; }
.dx-about__text.is-clamped { max-height: 330px; overflow: hidden; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.dx-more { margin-top: 8px; padding: 0; border: 0; background: none; font-weight: 700; color: var(--hr-text, #222); text-decoration: underline; cursor: pointer; }
.dx-specs { display: grid; gap: 12px; margin: 0; }
.dx-specs > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--hr-line, #e8e8e8); }
.dx-specs dt { font-size: 14px; font-weight: 600; color: var(--hr-muted, #717171); }
.dx-specs dd { margin: 0; font-size: 14px; font-weight: 700; text-align: right; }
.dx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.dx-grid--drawings { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dx-grid li { margin: 0; }
.dx-tile { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--hr-soft, #f7f7f7); cursor: zoom-in; }
.dx-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.dx-grid--drawings .dx-tile { background: #fff; border: 1px solid var(--hr-line, #e8e8e8); }
.dx-grid--drawings .dx-tile img { object-fit: contain; }
.dx-tile:hover img { transform: scale(1.03); }
.dx-tile__type { position: absolute; left: 10px; bottom: 10px; padding: 2px 9px; border-radius: 999px; background: #ffffffeb; font-size: 11px; font-weight: 800; color: #222; }
.dx-tile .tagged-icon { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #00000059; color: #fff; font-size: 12px; }
.dx-downloads { margin-top: 18px; }
.dx-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.dx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* the files to buy or download (_files_for_sale_redesign.php; 16 Nov 2026) */
.dx-files__lead { max-width: 720px; margin: -8px 0 18px; color: var(--hr-muted, #717171); }
.dx-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.dx-files__group { padding: 6px 18px 10px; border: 1px solid var(--hr-line, #e8e8e8); border-radius: 16px; }
.dx-sec .dx-files__group h3 { margin: 12px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--hr-muted, #717171); }
.dx-files__group ul { margin: 0; padding: 0; list-style: none; }
.dx-file { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hr-line, #e8e8e8); }
.dx-files__group h3 + ul .dx-file:first-child { border-top: 0; }
.dx-file__ext { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--hr-soft, #f7f7f7); font-size: 11px; font-weight: 800; color: var(--hr-muted, #717171); }
.dx-file__name { flex: 1; min-width: 0; line-height: 1.35; }
.dx-file__name b { display: block; font-size: 15px; }
.dx-file__name small { display: block; font-size: 12px; color: var(--hr-muted, #717171); overflow-wrap: anywhere; }
.dx-file__get { flex: none; padding: 8px 14px; border: 1px solid var(--hr-text, #222); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--hr-text, #222); text-decoration: none; white-space: nowrap; }
.dx-file__get:hover { background: var(--hr-text, #222); color: #fff; }
.dx-file__get.is-buy { border-color: var(--hr-accent, #bb344c); background: var(--hr-accent, #bb344c); color: #fff; }
.dx-file__get.is-buy:hover { background: var(--hr-accent-dark, #a82b42); }
.dx-file__get.is-off { border-color: var(--hr-line, #e8e8e8); color: var(--hr-muted, #717171); cursor: help; }
.dx-file__get.is-off:hover { background: none; color: var(--hr-muted, #717171); }
@media (max-width: 500px) { .dx-files { grid-template-columns: minmax(0, 1fr); } .dx-files__group { padding: 4px 14px 8px; } }

/* evaluations */
.dx-eval { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 40px; align-items: start; }
.dx-eval .sc-ratings { margin: 0; }
.dx-quote { margin: 0; padding: 16px 20px; border-left: 3px solid var(--hr-accent, #bb344c); border-radius: 0 14px 14px 0; background: var(--hr-soft, #f7f7f7); }
.dx-quote .translate-block-text { font-size: 15px; font-style: italic; }
.dx-quote__by { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12px; font-weight: 800; color: var(--hr-muted, #717171); text-transform: uppercase; letter-spacing: .4px; }
.dx-reply { margin-top: 12px; }
.dx-all { margin-top: 22px; }
.dx-all > summary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--hr-text, #222); border-radius: 999px; font-weight: 700; cursor: pointer; list-style: none; }
.dx-all > summary::-webkit-details-marker { display: none; }
.dx-all[open] > summary { margin-bottom: 20px; }
.dx-all .entry .message { margin-bottom: 14px; }

/* other entries */
.dx-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 16px; margin: 0; padding: 0; list-style: none; }
.dx-entry { position: relative; display: block; color: var(--hr-text, #222); text-decoration: none; }
.dx-entry__img { position: relative; display: block; aspect-ratio: 1.1; border-radius: 14px; overflow: hidden; background: var(--hr-soft, #f7f7f7); }
.dx-entry__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.dx-entry:hover .dx-entry__img img { transform: scale(1.04); }
.dx-entry .sc-place { top: 10px; left: 10px; padding: 4px 11px; }
.dx-entry__name { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.dx-entry__sub { display: block; font-size: 12px; color: var(--hr-muted, #717171); }
.dx-entry__sub b { color: var(--hr-text, #222); }
.dx-entry.is-hidden, .dx-other.is-hidden { display: none; }
.dx-seeall { margin-top: 22px; }
.dx-seeall .hr-btn, .dx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 1px solid var(--hr-text, #222); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--hr-text, #222); text-decoration: none; cursor: pointer; }

/* the phone's vote bar */
.dx-votebar { display: none; }
.dx-end { height: 60px; }

@media (max-width: 1100px) {
    .dx-top { grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; }
    .dx-about { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 991px) {
    .dx { --hr-gutter: 16px; }
    .dx-top { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .dx-viewer { margin: 0 -16px; }
    .dx-stage { border-radius: 0; aspect-ratio: 4 / 3; }
    .dx-strip { padding-left: 16px; padding-right: 16px; }
    .dx-btn--prev, .dx-btn--next { width: 38px; height: 38px; margin-top: -19px; }
    .dx-btn--prev { left: 10px; } .dx-btn--next { right: 10px; }
    .dx-panel { position: static; }
    .dx-panel h1 { font-size: 26px; }
    .dx-eval { grid-template-columns: minmax(0, 1fr); }
    .dx-sec { padding-top: 34px; }
    .dx-sec > h2 { font-size: 22px; }
    .dx-grid, .dx-grid--drawings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dx-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
    .dx-votebar { position: fixed; z-index: 1030; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hr-line, #e8e8e8); background: #fffffff5; box-shadow: 0 -4px 20px #0000000f; transform: translateY(110%); transition: transform .25s; }
    .dx-votebar.is-shown { transform: none; }
    .dx-votebar__avg { flex: none; font-size: 12px; line-height: 1.2; color: var(--hr-muted, #717171); }
    .dx-votebar__avg b { display: block; font-size: 18px; color: var(--hr-text, #222); }
    .dx-votebar .vote-btn { flex: 1; margin: 0; }
    .dx-end { height: 90px; }
}

/* ---- full screen (16 Nov 2026): the viewer over the whole window, dark; click to zoom; the picture's product tags,
 * heart, share and caption in a bar on top ---- */
html.dx-noscroll, html.dx-noscroll body { overflow: hidden; }
.dx-strip--single { display: none; }
.dx-fullbar { display: none; }
.dx-viewer.is-full { position: fixed; inset: 0; z-index: 99990; display: flex; flex-direction: column; margin: 0; background: #0d0d0d; }
.dx-viewer.is-full .dx-stage { flex: 1; min-height: 0; max-height: none; aspect-ratio: auto; border-radius: 0; background: #0d0d0d; }
.dx-viewer.is-full .dx-stage__img { cursor: zoom-in; transition: transform .25s ease; }
.dx-viewer.is-full .dx-stage.is-zoomed .dx-stage__img { transform: scale(2.4); cursor: zoom-out; }
.dx-viewer.is-full .dx-btn--full, .dx-viewer.is-full .sc-place { display: none; }
.dx-viewer.is-full .dx-strip { flex: none; margin: 0; padding: 10px 14px 12px; background: #0d0d0d; }
.dx-viewer.is-full .dx-strip--single { display: none; }
.dx-viewer.is-full .dx-thumb { opacity: .5; }
.dx-viewer.is-full .dx-thumb.is-active { opacity: 1; outline-color: #fff; }
.dx-viewer.is-full .dx-counter { bottom: 14px; }
.dx-viewer.is-full .dx-fullbar { display: flex; align-items: center; gap: 16px; flex: none; order: -1; padding: 10px 14px 10px 20px; color: #fff; }
.dx-fullbar__caption { flex: 1; min-width: 0; overflow: hidden; font-size: 14px; color: #ddd; white-space: nowrap; text-overflow: ellipsis; }
.dx-fullbar__tools { display: flex; align-items: center; gap: 8px; }
.dx-fbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; padding: 0 12px; border: 0; border-radius: 999px; background: #ffffff1f; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.dx-fbtn:hover { background: #ffffff38; color: #fff; }
.dx-fbtn[hidden] { display: none; }
.dx-fbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dx-fbtn.dx-tagsbtn:not(.is-on) { opacity: .6; }
.dx-fbtn.dx-heart.is-saved svg { fill: var(--hr-accent, #bb344c); stroke: var(--hr-accent, #bb344c); }
.dx-close { padding: 0; }
/* the product tags on a picture: a dot, the product on hover or tap */
.dx-tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.dx-tag { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border: 3px solid #fff; border-radius: 50%; background: var(--hr-accent, #bb344c); box-shadow: 0 2px 10px #0008; pointer-events: auto; }
.dx-tag::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid #ffffff99; animation: dx-pulse 2s infinite; }
@keyframes dx-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.dx-tag__card { position: absolute; left: 50%; bottom: calc(100% + 10px); display: none; width: 190px; padding: 10px; border-radius: 12px; background: #fff; color: #222; box-shadow: 0 8px 30px #0006; transform: translateX(-50%); text-align: left; }
.dx-tag:hover .dx-tag__card, .dx-tag:focus .dx-tag__card { display: block; }
.dx-tag__card img { display: block; width: 100%; height: 110px; margin-bottom: 8px; border-radius: 8px; object-fit: contain; background: #f4f4f4; }
.dx-tag__card b { display: block; font-size: 13px; line-height: 1.3; }
.dx-tag__card small { display: block; margin-top: 2px; font-size: 12px; color: #717171; }
@media (max-width: 991px) {
    .dx-viewer.is-full { margin: 0; }
    .dx-viewer.is-full .dx-stage { aspect-ratio: auto; }
    .dx-viewer.is-full .dx-fullbar { gap: 8px; padding: 8px 8px 8px 14px; }
    .dx-fbtn span { display: none; }
    .dx-fbtn { padding: 0; width: 40px; }
}
