/* Redakset follows the site's global design tokens and inherits typography. */
.rdx-wrap{--rdx-accent:var(--theme-color,var(--global-palette1,var(--e-global-color-primary,var(--wp--preset--color--primary,currentColor))));--rdx-text:var(--wp--preset--color--contrast,inherit);--rdx-bg:var(--wp--preset--color--base,#fff);--rdx-border:color-mix(in srgb,currentColor 16%,transparent);max-width:1100px;margin:32px auto;padding:24px;color:var(--rdx-text);font-family:inherit}.rdx-wrap *{box-sizing:border-box}.rdx-header{margin-bottom:24px}.rdx-header h2{margin:0 0 8px}.rdx-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:20px}.rdx-panel{border:1px solid var(--rdx-border);border-radius:12px;padding:20px;margin:0 0 18px;background:transparent}.rdx-panel h3{margin-top:0}.rdx-wrap label{display:block;margin:12px 0;font-weight:600}.rdx-wrap input:not([type=checkbox]),.rdx-wrap textarea,.rdx-wrap select{display:block;width:100%;padding:10px 12px;margin-top:5px;border:1px solid var(--rdx-border);border-radius:7px;background:var(--rdx-bg);color:inherit;font:inherit}.rdx-wrap button{border:0;border-radius:7px;padding:11px 18px;background:var(--rdx-accent);color:var(--rdx-bg);font:inherit;cursor:pointer;border:1px solid currentColor}.rdx-wrap a{color:var(--rdx-accent)}.rdx-review{padding:12px 0;border-bottom:1px solid var(--rdx-border)}.rdx-profile-top{display:flex;gap:20px;align-items:center}.rdx-profile-top img{border-radius:50%}.rdx-medal{border:1px solid var(--rdx-border);border-radius:20px;padding:4px 12px;font-weight:700}.rdx-card{border:2px solid var(--rdx-border);border-radius:14px;max-width:450px;padding:22px;margin:12px 0 18px;aspect-ratio:1.6}.rdx-adv{display:inline-block;font-size:.8em;font-weight:700;letter-spacing:.02em;border:1px solid currentColor;border-radius:4px;padding:4px 8px}.rdx-note{font-size:.85em;opacity:.75}.rdx-profile-page{max-width:1100px;margin:auto}@media(max-width:640px){.rdx-wrap{padding:16px;margin:12px auto}.rdx-panel{padding:16px}.rdx-profile-top{align-items:flex-start}.rdx-profile-top img{width:70px;height:70px}}@media print{body *{visibility:hidden!important}.rdx-card,.rdx-card *{visibility:visible!important}.rdx-card{position:absolute;left:0;top:0;border:1px solid #444;color:#111;background:#fff!important}.rdx-wrap button{display:none!important}}

/* Redakset 1.1: uncluttered workspace, theme palette inherited */
.rdx-page .main-sidebar,.rdx-page aside.sidebar,.rdx-page .sidebar,.rdx-page .post-sidebar{display:none!important}
.rdx-page .main-content,.rdx-page .content-area,.rdx-page .ts-row .main-content,.rdx-page .main-wrap .main-content{width:100%!important;max-width:100%!important;flex:1 1 100%!important}
.rdx-page .page-title,.rdx-page .entry-header,.rdx-page .breadcrumbs,.rdx-page .breadcrumb,.rdx-page .post-title,.rdx-page .the-post-header{display:none!important}
.rdx-page .rdx-studio h2,.rdx-page .rdx-studio h3{display:block!important}
.rdx-studio{max-width:1320px;margin:0 auto;padding:20px 16px 60px}
.rdx-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--rdx-border);padding:8px 0 20px;gap:12px}
.rdx-top span,.rdx-muted{color:inherit;opacity:.65;font-size:.9em}
.rdx-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:42px;margin-top:28px}
.rdx-nav{display:flex;flex-direction:column;gap:4px;align-self:start;position:sticky;top:28px}
.rdx-nav a{padding:10px 12px;text-decoration:none;border-radius:7px;color:inherit!important;font-weight:500}
.rdx-nav a[aria-current]{background:color-mix(in srgb,var(--rdx-accent) 10%,transparent);color:var(--rdx-accent)!important;font-weight:700}
.rdx-main{min-width:0}.rdx-main h2{font-size:1.65em;margin:0 0 8px}.rdx-main h3{margin:28px 0 12px;font-size:1.2em}
.rdx-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;border-bottom:1px solid var(--rdx-border);padding:24px 0}
.rdx-stats>div{display:flex;flex-direction:column;gap:8px}.rdx-stats small,.rdx-list small{opacity:.6}.rdx-stats strong{font-size:1.3em}
.rdx-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin-top:14px}
.rdx-fields label:first-child{grid-column:1/-1}.rdx-actions{display:flex;gap:10px;margin-top:24px;flex-wrap:wrap}
.rdx-wrap button.rdx-secondary{background:transparent;color:inherit;border:1px solid var(--rdx-border)}
.rdx-list>div{display:flex;justify-content:space-between;gap:15px;padding:17px 0;border-bottom:1px solid var(--rdx-border)}
.rdx-list small{display:block;margin-top:6px}.rdx-review{margin:15px 0;padding-bottom:20px}
.rdx-studio .wp-editor-wrap{margin-top:10px}.rdx-studio .wp-editor-container{border:1px solid var(--rdx-border)}
@media(max-width:760px){.rdx-layout{grid-template-columns:1fr;gap:16px}.rdx-nav{position:static;display:flex;flex-direction:row;overflow-x:auto;border-bottom:1px solid var(--rdx-border);padding-bottom:8px}.rdx-nav a{white-space:nowrap}.rdx-fields{grid-template-columns:1fr}.rdx-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 1.1.1 compact visual refinements */
body.rdx-page .rdx-wrap.rdx-studio{max-width:1320px;margin:0 auto;padding:12px 12px 38px}
body.rdx-page .rdx-top{padding:0 0 12px}
body.rdx-page .rdx-layout{margin-top:18px;gap:26px;grid-template-columns:205px minmax(0,1fr)}
body.rdx-page .rdx-main h2{font-size:1.45rem;line-height:1.25;margin:0 0 18px}
body.rdx-page .rdx-wrap label{margin:8px 0;font-size:14px;line-height:1.4}
body.rdx-page .rdx-wrap input:not([type=checkbox]),body.rdx-page .rdx-wrap textarea,body.rdx-page .rdx-wrap select{padding:8px 11px;margin-top:4px;min-height:39px;font-size:14px}
body.rdx-page .rdx-nav a{padding:9px 11px;font-size:14px}
body.rdx-page .rdx-studio .wp-editor-wrap{margin:4px 0 0}
body.rdx-page .rdx-studio .wp-editor-container{border:1px solid #d5d8dd;border-radius:0 0 6px 6px;overflow:hidden}
body.rdx-page .rdx-studio .wp-editor-tabs{margin-bottom:0}
body.rdx-page .rdx-studio .wp-switch-editor{font-size:12px;line-height:25px;height:29px;padding:0 12px}
body.rdx-page .rdx-studio .quicktags-toolbar{background:#f6f7f7!important;border-bottom:1px solid #d5d8dd!important;min-height:38px;padding:5px!important}
body.rdx-page .rdx-studio .quicktags-toolbar input.button{display:inline-block!important;width:auto!important;min-height:26px!important;height:27px!important;margin:2px 3px 2px 0!important;padding:0 8px!important;background:#fff!important;color:#333!important;border:1px solid #c3c4c7!important;border-radius:3px!important;font-size:12px!important;box-shadow:none!important}
body.rdx-page .rdx-studio .mce-toolbar-grp{background:#f6f7f7!important;border-color:#d5d8dd!important}
body.rdx-page .rdx-studio .mce-btn{background:transparent!important;border:1px solid transparent!important;box-shadow:none!important}
body.rdx-page .rdx-studio .mce-btn button{background:transparent!important;color:#30343b!important;border:0!important;padding:3px 6px!important}
body.rdx-page .rdx-studio .mce-ico{color:#30343b!important}
body.rdx-page .rdx-studio .mce-btn:hover{background:#e6e8eb!important}
body.rdx-page .rdx-studio .mce-edit-area iframe{min-height:280px!important}
body.rdx-page .rdx-extra{margin-top:14px;border-top:1px solid var(--rdx-border);padding-top:10px}
body.rdx-page .rdx-extra summary{cursor:pointer;font-weight:650;font-size:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0}
body.rdx-page .rdx-extra summary span{font-size:12px;font-weight:400;opacity:.6}
body.rdx-page .rdx-fields{gap:0 16px;margin-top:6px}
body.rdx-page .rdx-fields textarea{height:70px;min-height:70px}
body.rdx-page .rdx-actions{margin-top:14px;align-items:center}
body.rdx-page .rdx-actions button{padding:9px 16px;font-size:13px}
body.rdx-page .rdx-main form + p.rdx-muted{margin:10px 0 0;font-size:12px}
body.rdx-page .rdx-main .rdx-title-field input{font-weight:600}
body.rdx-page .rdx-wrap button{border-color:transparent}
body.rdx-page .rdx-wrap button.rdx-secondary{border-color:var(--rdx-border)}
/* SmartMag: remove title container and surplus margins only on Redakset pages */
body.rdx-page .main-wrap .post-header,body.rdx-page .main-wrap .page-heading,body.rdx-page .main-wrap .post-title-alt,body.rdx-page .main-wrap .page-title-wrap,body.rdx-page .main-wrap .post-title-main{display:none!important}
body.rdx-page .main-wrap .post-content,body.rdx-page .main-wrap .entry-content{margin-top:0!important}
body.rdx-page .main-wrap .post-content > .rdx-wrap:first-child{margin-top:0!important}
@media(max-width:760px){body.rdx-page .rdx-layout{grid-template-columns:minmax(0,1fr);gap:10px}body.rdx-page .rdx-nav{gap:2px}body.rdx-page .rdx-extra summary span{display:none}body.rdx-page .rdx-studio .mce-edit-area iframe{min-height:240px!important}}

.rdx-category-manager{max-width:100%}.rdx-cat-group{padding:15px 0;border-bottom:1px solid #ddd}.rdx-cat-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:12px 0 18px}.rdx-cat-checks label{display:flex;gap:8px;align-items:center}.rdx-cat-checks input{width:auto!important;min-height:0!important;margin:0!important}

/* Author Rank: public-facing medal and name only */
.rdx-author-rank{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:650;line-height:1.3;white-space:nowrap;color:var(--rdx-rank-color,#64748b)}
.rdx-rank-icon{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;border:2px solid currentColor;background:color-mix(in srgb,currentColor 10%,transparent);font-size:13px}
.rdx-rank-newbie{--rdx-rank-color:#64748b}.rdx-rank-bronze{--rdx-rank-color:#a56b40}.rdx-rank-silver{--rdx-rank-color:#788a9b}.rdx-rank-golden{--rdx-rank-color:#ae811e}.rdx-rank-platinum{--rdx-rank-color:#7955ac}
/* Author profile v1.2.4 */
.rdx-profile-edit{display:grid;gap:10px;max-width:100%;min-width:0}.rdx-profile-edit>label{font-weight:650;margin-top:12px}.rdx-profile-edit input,.rdx-profile-edit textarea,.rdx-profile-edit select{box-sizing:border-box;width:100%;max-width:100%;border:1px solid #cbd1d8;border-radius:7px;padding:11px;font:inherit}.rdx-profile-edit select{min-height:115px}.rdx-profile-edit .wp-editor-wrap{min-width:0;max-width:100%}.rdx-hint{font-size:13px;color:#68717c;margin:0}.rdx-profile-save{padding:12px 22px;border:0;border-radius:7px;background:#3346d3;color:white;cursor:pointer}.rdx-success{padding:12px;background:#eff9f0}.rdx-author-page{max-width:1100px;margin:auto}.rdx-author-page section{margin-top:32px}.rdx-author-page .rdx-profile-top{display:flex;gap:20px;align-items:center}.rdx-author-page .rdx-profile-top img{border-radius:50%;flex-shrink:0}.rdx-author-page h1{margin:0 0 6px}.rdx-author-page .rdx-headline{font-size:1.1rem;font-weight:600;margin:4px 0}.rdx-author-page .rdx-short-bio{max-width:72ch;line-height:1.7}.rdx-rich-text{overflow-wrap:anywhere;line-height:1.8}.rdx-rich-text img,.rdx-rich-text iframe{max-width:100%;height:auto}.rdx-article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.rdx-article-item{min-width:0;border-bottom:1px solid #e5e7eb;padding-bottom:15px}.rdx-article-item a{text-decoration:none}.rdx-article-item strong{display:block;line-height:1.45}.rdx-article-item time{display:block;color:#747b85;font-size:12px;margin-top:7px}.rdx-article-image img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px}@media(max-width:700px){.rdx-author-page .rdx-profile-top{align-items:flex-start;gap:12px}.rdx-author-page .rdx-profile-top img{width:68px;height:68px}.rdx-author-page h1{font-size:1.4rem}.rdx-article-grid{grid-template-columns:1fr}.rdx-profile-edit .wp-editor-tools{max-width:100%}.rdx-profile-edit .mce-toolbar-grp{overflow-x:auto}.rdx-author-page section{margin-top:24px}}

/* Magview author archive integration */
.rdx-author-page{width:100%;max-width:100%;box-sizing:border-box;margin:0;padding:0;background:transparent;box-shadow:none;border:0}
.rdx-author-page .rdx-profile-top{padding:20px 0 24px;border-bottom:1px solid #e5e7eb}
.rdx-author-page .rdx-profile-top>div{min-width:0}
.rdx-author-page .rdx-profile-top h1{overflow-wrap:anywhere;font-size:clamp(1.45rem,2.5vw,2.1rem)}
.rdx-author-page .rdx-about,.rdx-author-page .rdx-latest-section{clear:both}
.rdx-author-page .rdx-rich-text{max-width:100%;overflow-wrap:anywhere}
.rdx-author-page .rdx-rich-text table{display:block;max-width:100%;overflow-x:auto}
.rdx-author-page .rdx-article-item{min-width:0}
.rdx-author-page .rdx-pagination ul{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none;margin:24px 0}
.rdx-author-page .rdx-pagination a,.rdx-author-page .rdx-pagination span{display:inline-block;padding:8px 12px;border:1px solid #d9dce2;border-radius:5px;text-decoration:none}
.rdx-author-page .rdx-pagination .current{font-weight:700;border-color:currentColor}
@media(max-width:767px){.rdx-author-page .rdx-profile-top{gap:12px;align-items:flex-start}.rdx-author-page .rdx-profile-top img{width:68px;height:68px}.rdx-author-page .rdx-article-grid{grid-template-columns:minmax(0,1fr)}.rdx-author-page .rdx-profile-top h1{font-size:1.4rem}}

/* Public author identity: avatar-mounted medal and inline rank */
.rdx-author-page .rdx-profile-top .rdx-avatar-wrap{position:relative;flex:0 0 104px;width:104px;height:104px;min-width:0;overflow:visible}
.rdx-author-page .rdx-profile-top .rdx-avatar-wrap>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.rdx-author-page .rdx-avatar-medal{position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:36px;height:36px;border:3px solid #fff;border-radius:50%;background:var(--rdx-rank-color,#64748b);color:#fff;font-size:20px;line-height:1;box-sizing:border-box;box-shadow:0 2px 7px #0002}
.rdx-author-page .rdx-author-identity{min-width:0;flex:1}
.rdx-author-page .rdx-author-position{display:flex;align-items:center;flex-wrap:wrap;gap:9px;color:var(--rdx-rank-color,#64748b);font-size:clamp(14px,1.7vw,18px);font-weight:650;line-height:1.45;margin-top:7px}
.rdx-author-page .rdx-position-divider{opacity:.65}
@media(max-width:700px){.rdx-author-page .rdx-profile-top .rdx-avatar-wrap{flex-basis:68px;width:68px;height:68px}.rdx-author-page .rdx-avatar-medal{width:27px;height:27px;font-size:15px;border-width:2px;right:-3px;bottom:-3px}.rdx-author-page .rdx-author-position{gap:6px;font-size:14px}}
