/*
Theme Name: Dopamino žurnalas
Template: kadence
Version: 0.9.1
Description: Dopamino.lt redakcinio dizaino peržiūra.
Text Domain: dopamino-zurnalas
*/

/* Shared design for native account screens and pages using the parent layout. */
:where(.dop-classic-frame,.dop-lookup,body.login){--dop-paper:#fffaf1;--dop-ink:#281d25;--dop-lilac:#eae2f4;--dop-rule:#cbbdc5;--dop-green:#e0edb4;--dop-focus:#713e82}
body.dop-classic-frame,body.dop-classic-frame #wrapper,body.dop-classic-frame #inner-wrap{background:var(--dop-paper);color:var(--dop-ink)}
.dop-classic-frame .foot{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;margin:clamp(36px,5vw,72px) auto 0;padding:24px max(4.5vw,calc((100% - 1340px)/2)) 30px;border-top:2px solid var(--dop-ink);color:var(--dop-ink);background:var(--dop-paper);font:600 .9rem/1.5 system-ui,sans-serif}
.dop-classic-frame .foot .footer-nav{display:flex;flex-wrap:wrap;gap:12px 22px}.dop-classic-frame .foot a{color:inherit;text-decoration:none}.dop-classic-frame .foot a:hover{text-decoration:underline}.dop-classic-frame .foot a:focus-visible,.dop-lookup a:focus-visible,.dop-lookup input:focus-visible,.dop-lookup button:focus-visible{outline:3px solid var(--dop-focus);outline-offset:4px}
.dop-legacy-content #inner-wrap{--global-palette1:#613572;--global-palette2:#452447;--global-palette3:#281d25;--global-palette4:#392e36;--global-palette7:#eee5f1;--global-palette8:#fffaf1;--global-palette9:#fffdf8;--global-palette-btn-bg:#281d25;--global-palette-btn:#fffaf1;--global-palette-btn-bg-hover:#573755;--global-palette-btn-hover:#fffaf1;font-family:system-ui,-apple-system,sans-serif}
.dop-legacy-content #inner-wrap .entry-hero{background:var(--dop-lilac);border-bottom:2px solid var(--dop-ink)}.dop-legacy-content #inner-wrap .entry-hero-container-inner,.dop-legacy-content #inner-wrap .hero-section-overlay{background:transparent}.dop-legacy-content #inner-wrap .hero-container{min-height:0;padding-block:clamp(28px,5vw,65px)}
.dop-legacy-content #inner-wrap :is(h1,h2,h3){color:var(--dop-ink);letter-spacing:-.038em;line-height:1.15}.dop-legacy-content #inner-wrap h1{font:800 clamp(2rem,5.6vw,4.6rem)/1.05 system-ui,sans-serif;letter-spacing:-.055em;overflow-wrap:anywhere}
.dop-legacy-content #inner-wrap .content-area{margin-block:clamp(26px,4.5vw,65px)}.dop-legacy-content #inner-wrap .content-bg{background:#fffdf8;border:1px solid var(--dop-rule);border-radius:12px;box-shadow:none}.dop-legacy-content #inner-wrap .entry-content-wrap{padding:clamp(18px,4vw,58px)}
.dop-legacy-content #inner-wrap :where(input[type=text],input[type=email],input[type=password],input[type=search],textarea,select){max-width:100%;border:1.5px solid #776973;border-radius:6px;background:#fffdf8;color:var(--dop-ink);font:inherit;padding:.62em .78em}.dop-legacy-content #inner-wrap :where(button[type=submit],input[type=submit],.ld-button,.forminator-button-submit){border-radius:999px;background:var(--dop-ink);color:#fffaf1;padding:.65em 1.2em;font-weight:700}.dop-legacy-content #inner-wrap :focus-visible{outline:3px solid var(--dop-focus);outline-offset:3px}
.dop-lookup{max-width:1150px;margin:clamp(30px,6vw,90px) auto;padding:0 clamp(16px,3vw,36px)}.dop-lookup .dop-lookup-intro{background:var(--dop-lilac);border:2px solid var(--dop-ink);border-radius:6px;padding:clamp(24px,6vw,72px)}.dop-lookup h1{font:800 clamp(2.25rem,6vw,5rem)/1.04 system-ui,sans-serif;letter-spacing:-.06em;color:var(--dop-ink);margin:0 0 .36em;overflow-wrap:anywhere}.dop-lookup p{font-size:clamp(1rem,1.65vw,1.15rem);max-width:60ch}.dop-lookup .dop-find{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.dop-lookup .dop-find input{box-sizing:border-box;flex:1 1 16rem;max-width:32rem;min-width:0;background:#fffdf8;color:var(--dop-ink);border:1.5px solid var(--dop-ink);border-radius:6px;padding:12px 14px}.dop-lookup .dop-find button{background:var(--dop-ink);color:#fffaf1;border:1.5px solid var(--dop-ink);border-radius:999px;padding:10px 22px;font-weight:750}.dop-lookup .dop-return,.dop-lookup .dop-results a{color:var(--dop-ink);text-underline-offset:.2em}.dop-lookup .dop-results{padding:0;list-style:none}.dop-lookup .dop-results li{padding:18px 0;border-bottom:1px solid var(--dop-rule)}.dop-lookup .dop-results h2{font-size:clamp(1.25rem,2.5vw,1.8rem);margin:0}.dop-lookup .dop-results p{margin:6px 0}
body.login{background:#fffaf1;color:#281d25;font:16px/1.5 system-ui,-apple-system,sans-serif}body.login #login{width:min(420px,calc(100% - 38px));padding:clamp(28px,6vh,72px) 0 30px}body.login .wp-login-logo a{width:190px;height:56px;max-width:75vw;margin:0 auto 24px;background:transparent url('/wp-content/uploads/dopamino-rankrastis.png') center/contain no-repeat}body.login #login form{margin:18px 0;padding:clamp(20px,5vw,32px);border:1.5px solid #281d25;border-radius:10px;background:#fffdf8;box-shadow:4px 4px 0 #e5d9ec;color:#281d25}body.login #login label{color:#281d25;font-size:.94rem;font-weight:650}body.login #login :is(.input,input[type=text],input[type=email],input[type=password]){box-sizing:border-box;width:100%;border:1.5px solid #776973;border-radius:6px;background:#fffaf1;color:#281d25;font-family:inherit;box-shadow:none}body.login #login .wp-pwd .input{padding-inline-end:2.7rem}body.login :is(#login,.language-switcher) .button-primary,body.login .language-switcher .button{border:1.5px solid #281d25;border-radius:999px;background:#281d25;color:#fffaf1;font-family:inherit;font-weight:700;text-shadow:none;box-shadow:none;padding:4px 18px}body.login #login .button-primary:hover{background:#51334f}body.login #login .button.wp-hide-pw{color:#51334f}body.login #login :is(.message,.notice,.success,#login_error){border:1px solid #c3b0cb;border-left:4px solid #775183;border-radius:5px;background:#f1eaf6;color:#281d25;box-shadow:none}body.login #login :is(#nav,#backtoblog){padding:0;margin:14px 0}body.login :is(#nav,#backtoblog,.privacy-policy-page-link,#login) a{color:#58365e}body.login #login :focus-visible,body.login .language-switcher :focus-visible{outline:3px solid #713e82;outline-offset:3px}body.login #login .dop-auth-title{color:#281d25;font:800 clamp(1.7rem,5vw,2.45rem)/1.12 system-ui,sans-serif;letter-spacing:-.05em;text-align:center;margin:0 0 16px}
@media(max-width:600px){.dop-classic-frame .foot{align-items:flex-start;flex-direction:column}.dop-classic-frame .foot .footer-nav{gap:8px 16px}.dop-lookup .dop-find input{flex-basis:100%}}
@media(forced-colors:active){body.login .wp-login-logo a{background:none;text-indent:0;font-size:1.4rem;color:LinkText}}

/* Account dialog supplied by the login extension on guest-facing forms. */
body .xoo-el-container .xoo-el-inmodal,body .xoo-el-notice-inmodal{background:#fffaf1;color:#281d25;border:2px solid #281d25;border-radius:10px;box-shadow:5px 5px 0 #281d25}body .xoo-el-container .xoo-el-sidebar{display:none}body .xoo-el-container .xoo-el-srcont{width:100%;min-width:0}body .xoo-el-container .xoo-el-main,body .xoo-el-form-container{background:#fffaf1;color:#281d25;font-family:system-ui,-apple-system,sans-serif}body .xoo-el-container .xoo-el-main:before{content:'';width:155px;aspect-ratio:808/220;display:block;margin:0 auto 18px;background:url('/wp-content/uploads/dopamino-rankrastis.png') center/contain no-repeat}body .xoo-el-container img.xoo-el-head-img{display:none}body .xoo-el-form-container .xoo-el-tabs li{background:#f4edf7;color:#281d25;border:1px solid #cbbdc5}body .xoo-el-form-container .xoo-el-tabs li.xoo-el-active{background:#e4d8f0;color:#281d25;border-color:#55394e}body .xoo-el-form-container :is(input[type=email],input[type=text],input[type=password]){background:#fffdf8;color:#281d25;border-color:#776973;border-radius:6px}body .xoo-el-form-container button.button.btn.xoo-el-action-btn{border:1px solid #281d25;border-radius:999px;background:#281d25;color:#fffaf1;font-weight:750}body .xoo-el-form-container button.button.btn.xoo-el-action-btn:hover{background:#51334f}body .xoo-el-form-container a{color:#593860;text-underline-offset:.18em}body .xoo-el-form-container :focus-visible{outline:3px solid #713e82;outline-offset:3px}body .xoo-el-main .xoo-el-notice-error{background:#fae1eb;color:#64233f}body .xoo-el-main .xoo-el-notice-success{background:#e0edb4;color:#27351d}

/* Account verification takes up its own row in the document. */
body .xoo-uv-verified-success,
body .xoo-uv-verify-notice {
    position: static;
    inset: auto;
    z-index: auto;
}
.dop-mast + .xoo-uv-verified-success,
.dop-mast + .xoo-uv-verify-notice {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 10px clamp(16px, 4.5vw, 72px);
    border-bottom: 1px solid #b6c89e;
    background: #e7f0d9;
    color: #294221;
    font: 500 1rem/1.5 system-ui, sans-serif;
    overflow-wrap: anywhere;
}

/* Newsletter postcard shared by the journal archive and article pages. */
.dop-editorial #main .dop-letter { --ink:#281d25; --rule:#a5b28a; --leaf:#e3edc9; background:var(--leaf); color:var(--ink); max-width:1100px; margin:0 auto; padding:clamp(30px,4.7vw,64px) clamp(24px,5vw,72px); display:grid; grid-template-columns:minmax(0,1.18fr) minmax(0,1fr); align-items:stretch; column-gap:clamp(26px,4vw,64px); border-block:1px solid #74815f; font-family:system-ui,-apple-system,sans-serif; box-sizing:border-box; }
.dop-editorial #main .dop-letter *, .dop-editorial #main .dop-letter *::before, .dop-editorial #main .dop-letter *::after { box-sizing:border-box; }
.dop-editorial #main .dop-letter h2 { margin:0; color:var(--ink); font:850 clamp(37px,4.8vw,70px)/1.01 system-ui,-apple-system,sans-serif; letter-spacing:-.065em; text-transform:none; }
.dop-editorial #main .dop-letter h2 em { display:block; font:italic 500 1.13em/.98 Georgia,'Times New Roman',serif; letter-spacing:-.07em; }
.dop-editorial #main .dop-letter .dop-letter-copy { align-self:center; min-width:0; }
.dop-editorial #main .dop-letter .dop-letter-copy p { margin:19px 0 0; max-width:39ch; color:var(--ink); font:400 clamp(16px,1.45vw,19px)/1.55 system-ui,-apple-system,sans-serif; }
.dop-editorial #main .dop-letter .dop-letter-copy .dop-letter-signature { margin-top:14px; font:italic 500 22px/1.2 Georgia,serif; color:#653b54; }
.dop-editorial #main .dop-letter .dop-letter-reply { min-width:0; border-inline-start:1px solid var(--rule); padding-inline-start:clamp(24px,3.3vw,50px); display:flex; flex-direction:column; align-items:stretch; justify-content:center; }
.dop-editorial #main .dop-letter .dop-letter-entry { margin:0; display:flex; flex-direction:column; align-items:flex-start; gap:25px; }
.dop-editorial #main .dop-letter .dop-letter-stamp { position:relative; width:116px; height:58px; display:block; margin-inline-start:2px; pointer-events:none; }
.dop-editorial #main .dop-letter .dop-letter-stamp i { position:absolute; display:block; left:0; top:0; width:53px; height:58px; background:#e7d7ed; transform:rotate(-7deg); mask:radial-gradient(circle at 3px 0,transparent 2px,#000 2.3px) 0 0 / 6px 51% repeat-x,radial-gradient(circle at 3px 100%,transparent 2px,#000 2.3px) 0 100% / 6px 51% repeat-x; }
.dop-editorial #main .dop-letter .dop-letter-stamp i::before { content:''; position:absolute; inset:6px; border:1px solid #895e84; }
.dop-editorial #main .dop-letter .dop-letter-stamp i::after { content:''; position:absolute; left:12px; top:19px; width:29px; height:20px; border:1.5px solid #653b54; background:linear-gradient(33deg,transparent 48%,#653b54 50% 53%,transparent 55%) 0 0 / 52% 56% no-repeat,linear-gradient(-33deg,transparent 48%,#653b54 50% 53%,transparent 55%) 100% 0 / 52% 56% no-repeat; }
.dop-editorial #main .dop-letter .dop-letter-stamp b { position:absolute; left:46px; top:14px; width:62px; height:20px; border-block:1px solid #8b8b76; transform:rotate(-5deg) skewX(-15deg); border-radius:36% 12%; }
.dop-editorial #main .dop-letter .dop-letter-stamp b::before { content:'';display:block;margin-top:8px;border-top:1px solid #8b8b76;border-radius:50%; }
.dop-editorial #main .dop-letter .dop-letter-entry button { min-height:48px; margin:0; padding:12px 22px; display:inline-flex; gap:13px; align-items:center; justify-content:center; max-width:100%; border:1px solid var(--ink); border-radius:999px; background:var(--ink); color:#fffaf1; font:700 16px/1.3 system-ui,-apple-system,sans-serif; box-shadow:none; cursor:pointer; }
.dop-editorial #main .dop-letter .dop-letter-entry button::after { content:'→'; font-weight:500; }
.dop-editorial #main .dop-letter .dop-letter-entry button:hover { background:#56394c; }
.dop-editorial #main .dop-letter .dop-letter-entry button:focus-visible, .dop-editorial #main .dop-letter iframe:focus-visible { outline:3px solid #744767;outline-offset:4px; }
.dop-editorial #main .dop-letter .journal-newsletter-form { display:block; width:100%; min-width:0; max-width:100%; height:282px; border:0; border-radius:0; background:var(--leaf); margin:0; }
@media(max-width:720px) { .dop-editorial #main .dop-letter { grid-template-columns:1fr; gap:24px; } .dop-editorial #main .dop-letter .dop-letter-reply { border:0; border-top:1px solid var(--rule); padding:19px 0 0; } .dop-editorial #main .dop-letter .dop-letter-entry { flex-direction:row-reverse; align-items:center; justify-content:space-between; gap:8px; } .dop-editorial #main .dop-letter .dop-letter-stamp { flex:0 0 54px; width:54px; transform:scale(.75); transform-origin:right center; } .dop-editorial #main .dop-letter .dop-letter-stamp b { display:none; } .dop-editorial #main .dop-letter .journal-newsletter-form { height:276px; width:calc(100% + 32px); max-width:none; margin-inline:-16px; } }
@media(max-width:390px) { .dop-editorial #main .dop-letter .dop-letter-entry button { padding-inline:16px; } .dop-editorial #main .dop-letter .dop-letter-stamp { display:none; } }
.studio-archive .cards > .dop-letter { grid-column: 1 / -1; width:100%; margin-block:6px; }
.dop-editorial.studio-article #main .dop-letter { width:min(calc(100% - 9vw), 1100px); margin-bottom:clamp(32px,5vw,68px); }
@media(max-width:720px) { .dop-editorial.studio-article #main .dop-letter { width:calc(100% - 36px); } }

/* Sender forms embedded directly in older article bodies. */
.journal-newsletter-form { display:block; width:100%; max-width:100%; height:286px; border:0; }
@media(max-width:760px) { .journal-newsletter-form { height:304px; } }
@media(max-width:400px) { .journal-newsletter-form { height:348px; } }

/* Numbered navigation below the journal's article grid. */
.studio-archive .journal-pages {
    margin: clamp(28px, 4vw, 48px) auto;
    text-align: center;
    color: #281d25;
    font-variant-numeric: tabular-nums;
    scroll-margin-block: 5rem;
}
.studio-archive .journal-pages__count {
    margin: 0 0 12px;
    color: #594c54;
    font-size: .94rem;
    line-height: 1.45;
}
.studio-archive .journal-pages__controls,
.studio-archive .journal-pages__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.studio-archive .journal-pages__controls { gap: 10px 14px; }
.studio-archive .journal-pages__number,
.studio-archive .journal-pages__next {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border: 1px solid #bbaeb5;
    color: #281d25;
    background: #fffaf1;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
}
.studio-archive .journal-pages__number { min-width: 44px; padding: 4px 8px; border-radius: 5px; }
.studio-archive .journal-pages__next { gap: 7px; padding: 6px 15px; border: 1.5px solid #281d25; border-radius: 999px; background: #ded3f4; font-weight: 700; }
.studio-archive .journal-pages__next span { font-size: 1.2em; }
.studio-archive .journal-pages a:hover { background: #eae2f4; border-color: #281d25; }
.studio-archive .journal-pages [aria-current="page"] { color: #fffaf1; background: #281d25; border-color: #281d25; }
.studio-archive .journal-pages a:focus-visible { outline: 3px solid #713e82; outline-offset: 2px; }
.studio-archive .journal-pages__gap { color: #655761; }
@media (max-width: 700px) {
    .studio-archive .journal-pages__links { gap: 4px; }
    .studio-archive .journal-pages__number { border: 1.5px solid #281d25; border-radius: 50%; padding: 0; }
}
@media (max-width: 359px) {
    .studio-archive .journal-pages__number { min-width: 37px; min-height: 37px; }
    .studio-archive .journal-pages__links { gap: 3px; }
}

/* Text-led article cards in the blog archive and related reading. */
:is(.studio-archive, .next-reads) .cards > .card {
    min-height: 0;
    padding: clamp(18px, 1.7vw, 26px);
}
:is(.studio-archive, .next-reads) .cards > .card h3 {
    margin: 12px 0 8px;
}
:is(.studio-archive, .next-reads) .cards > .card p {
    margin: 0;
}
:is(.studio-archive, .next-reads) .cards > .card .card-bottom {
    margin-top: auto;
    padding-top: 16px;
}
