/* WittyWriter Phase 5 | Archive, author and custom-content views. Scoped to avoid admin regressions. */
.ww5{--ww5-navy:#121d3b;--ww5-accent:#6558ee;--ww5-ink:#1b2a45;--ww5-muted:#718099;--ww5-border:#e4e9f3;--ww5-paper:#fff;background:linear-gradient(180deg,#f5f7fe 0%,#fbfcff 85%);color:var(--ww5-ink);min-height:64vh;font-family:inherit;overflow-wrap:anywhere}
.ww5 *{box-sizing:border-box}.ww5 a{text-decoration:none}.ww5 :is(a,button,input,select,summary):focus-visible{outline:3px solid #fbbf24!important;outline-offset:3px}.ww5-wrap{width:min(1320px,calc(100% - 48px));margin-inline:auto;padding-bottom:68px}.ww5-breadcrumb{padding:23px 0 21px;display:flex;align-items:center;gap:12px;color:#8c98ac;font-size:12px;font-weight:750}.ww5-breadcrumb a{color:#485878}.ww5-breadcrumb a:hover{color:var(--ww5-accent)}
.ww5-hero{background:radial-gradient(circle at 88% 15%,#35448b 0%,transparent 30%),linear-gradient(112deg,#101c3a,#1b2853 62%,#2a286c);border-radius:24px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:clamp(32px,5vw,66px);color:#fff;box-shadow:0 20px 46px rgba(21,30,65,.13);position:relative;overflow:hidden}.ww5-hero:after{position:absolute;right:-55px;bottom:-120px;content:"";width:300px;height:300px;border:1px solid rgba(169,186,255,.14);box-shadow:0 0 0 50px rgba(169,186,255,.025),0 0 0 105px rgba(169,186,255,.025);border-radius:50%;pointer-events:none}.ww5-hero-copy{max-width:680px;position:relative;z-index:1}.ww5-kicker{display:inline-flex;align-items:center;gap:10px;font-size:11px;font-weight:800;letter-spacing:.13em;color:#a9bbef}.ww5-live{width:8px;height:8px;background:#61dfb0;border-radius:50%;box-shadow:0 0 0 5px rgba(97,223,176,.1)}.ww5-hero h1{color:#fff;font-size:clamp(32px,4.5vw,60px);letter-spacing:-.055em;line-height:1.08;font-weight:850;margin:18px 0}.ww5-hero h1 span{color:#b3a8ff}.ww5-hero p{color:#c0ccea;font-size:14px;line-height:1.85;max-width:600px;margin-bottom:26px}.ww5-hero-actions{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.ww5-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;font-size:12px;font-weight:800;min-height:42px;padding:11px 18px;border:1px solid transparent;border-radius:11px;transition:background-color .18s,border-color .18s,color .18s,transform .18s;cursor:pointer}.ww5-btn:hover{transform:translateY(-2px)}.ww5-btn-primary{background:#6558ee;color:#fff!important;box-shadow:0 7px 20px rgba(59,41,187,.15)}.ww5-btn-primary:hover{background:#5142dd}.ww5-btn-glass{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.22);color:#e7ebff!important}.ww5-btn-glass:hover{background:rgba(255,255,255,.16)}.ww5-hero-counter{border:1px solid rgba(196,205,255,.2);background:rgba(255,255,255,.06);border-radius:20px;min-width:220px;min-height:200px;padding:30px;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:1}.ww5-hero-counter strong{font-size:58px;line-height:1;letter-spacing:-.07em;color:#fff}.ww5-hero-counter span{font-size:14px;margin-top:10px;color:#e6eafa;font-weight:700}.ww5-hero-counter small{font-size:9px;letter-spacing:.13em;color:#acb9d8;margin-top:22px}
.ww5-archive-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:30px;align-items:start;margin-top:35px}.ww5-filters{position:sticky;top:105px;min-width:0}.ww5-mobile-filter{border:1px solid var(--ww5-border);background:#fff;border-radius:18px;box-shadow:0 10px 28px rgba(25,41,87,.035);overflow:hidden}.ww5-mobile-filter summary{list-style:none;display:flex;justify-content:space-between;align-items:center;background:#fff;color:#263857;padding:21px;font-size:14px;font-weight:800;cursor:pointer;border-bottom:1px solid var(--ww5-border)}.ww5-mobile-filter summary::-webkit-details-marker{display:none}.ww5-mobile-filter summary i{color:#6558ee;margin-right:9px}.ww5-filter-form{padding:20px;display:flex;flex-direction:column;gap:9px}.ww5-filter-form label{color:#43516b;font-size:11px;font-weight:800;letter-spacing:.02em;margin-top:7px}.ww5-filter-form :is(select,input){background:#fafbff;border:1px solid #dfe5f1;border-radius:10px;min-height:41px;max-width:100%;width:100%;padding:9px 11px;color:#2a3953;font-size:12px}.ww5-filter-form :is(select,input):hover{border-color:#aca8e8}.ww5-filter-pair{display:grid;grid-template-columns:1fr 1fr;gap:11px}.ww5-filter-pair>div{min-width:0;display:flex;flex-direction:column;gap:9px}.ww5-filter-actions{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin-top:13px}.ww5-filter-actions>a{text-align:center;color:#65738a;font-weight:750;font-size:12px}.ww5-filter-note{display:flex;gap:10px;background:#ecf0fd;border:1px solid #e1e6f9;color:#4f5f81;border-radius:14px;padding:17px;margin-top:16px;font-size:12px;line-height:1.6}.ww5-filter-note i{font-size:17px;color:#6154e6}.ww5-filter-note p{margin:0}.ww5-filter-note a{font-weight:800;color:#4e41cb}.ww5-results{min-width:0}.ww5-results-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:21px}.ww5-section-label{color:#8d91b9;font-size:10px;letter-spacing:.14em;font-weight:800}.ww5-results-heading h2{font-size:clamp(25px,3vw,34px);font-weight:850;letter-spacing:-.045em;margin:9px 0 7px;color:#1b2945;overflow-wrap:anywhere}.ww5-results-heading p{font-size:12px;color:#8a96aa;margin:0}.ww5-view-toggle{display:flex;padding:5px;gap:4px;border:1px solid var(--ww5-border);background:#fff;border-radius:11px;flex-shrink:0}.ww5-view-toggle>a{display:flex;gap:7px;align-items:center;padding:9px 11px;min-height:36px;font-size:11px;font-weight:750;color:#70809b;border-radius:8px}.ww5-view-toggle>a.is-active{background:#6558ee;color:#fff;box-shadow:0 3px 12px rgba(101,88,238,.15)}.ww5-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ww5-article-card{display:flex;flex-direction:column;border:1px solid var(--ww5-border);background:#fff;box-shadow:0 9px 28px rgba(22,39,84,.035);border-radius:17px;overflow:hidden;min-width:0;transition:transform .18s,box-shadow .18s}.ww5-article-card:hover{transform:translateY(-3px);box-shadow:0 12px 35px rgba(22,39,84,.1)}.ww5-article-cover{display:block;position:relative;aspect-ratio:16/9;background:linear-gradient(135deg,#19274f,#4b49a5);overflow:hidden}.ww5-article-cover img{height:100%;width:100%;object-fit:cover}.ww5-cover-placeholder{color:#c9d0ff;font-size:48px;display:grid;place-items:center;height:100%}.ww5-card-arrow{display:grid;place-items:center;position:absolute;right:13px;top:13px;background:#fff;color:#5445da;width:31px;height:31px;border-radius:9px;font-size:16px;box-shadow:0 4px 14px rgba(22,30,61,.08)}.ww5-card-body{padding:18px;display:flex;flex-direction:column;flex:1;min-width:0}.ww5-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;color:#92a0b3;font-weight:650}.ww5-pill{background:#eeedff;border:1px solid #e6e3ff;color:#5c4ccf!important;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:800}.ww5-article-card h3{font-size:16px;letter-spacing:-.022em;font-weight:800;line-height:1.4;overflow-wrap:anywhere;margin:13px 0 9px}.ww5-article-card h3 a{color:#253452}.ww5-article-card h3 a:hover{color:#5445da}.ww5-card-body>p{font-size:12px;line-height:1.7;color:#7b899f;margin:0 0 20px}.ww5-card-bottom{margin-top:auto;padding-top:13px;border-top:1px solid #edf0f7;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#8491a6}.ww5-card-bottom a{font-size:11px;font-weight:800;color:#6255dc}.ww5-article-grid.is-list{grid-template-columns:1fr}.ww5-article-grid.is-list .ww5-article-card{display:grid;grid-template-columns:220px minmax(0,1fr)}.ww5-article-grid.is-list .ww5-article-cover{aspect-ratio:auto;min-height:190px}.ww5-article-grid.is-list .ww5-card-body{padding:21px}.ww5-article-grid.is-list .ww5-article-card h3{font-size:20px}.ww5-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:24px 0;flex-wrap:wrap}.ww5-pagination>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ww5-pagination a{display:inline-grid;place-items:center;min-width:38px;min-height:38px;padding:9px 12px;border:1px solid #dfe6f1;background:#fff;border-radius:9px;color:#425373;font-size:12px;font-weight:800}.ww5-pagination a.is-current{background:#6558ee;color:#fff;border-color:#6558ee}.ww5-pagination a:hover{border-color:#6558ee}.ww5-empty{text-align:center;padding:70px 24px;background:#fff;border:1px dashed #d2dbeb;border-radius:18px;color:#6f7e96}.ww5-empty i{font-size:30px;color:#6558ee;margin-bottom:16px}.ww5-empty h3{font-size:21px;color:#1d2b47;font-weight:800}.ww5-empty p{font-size:13px;margin:12px 0 20px}
/* Author profile: retain the original functional layout and controls, replace floating 3D styling. */
.ww5-author{background:linear-gradient(180deg,#f5f7fe,#fff)}.ww5-author .author-profile-header{background:radial-gradient(circle at 90% 14%,#38498f,transparent 32%),linear-gradient(115deg,#111c39,#26265f);border-radius:22px;margin:0 auto;max-width:1320px;padding:44px 32px;color:#fff;overflow:hidden}.ww5-author .author-profile-header::before,.ww5-author .author-profile-header::after{animation:none!important;opacity:.5}.ww5-author .author-profile-header :is(h1,p){color:#fff}.ww5-author .author-profile-header h1{font-size:clamp(27px,3.5vw,44px);letter-spacing:-.04em;font-weight:850}.ww5-author .author-stats-card{transform:none!important;background:rgba(255,255,255,.08)!important;box-shadow:none!important;border:1px solid rgba(255,255,255,.19);border-radius:15px}.ww5-author .author-stats-card:hover{transform:none!important}.ww5-author .stat-number{color:#b2a8ff}.ww5-author .author-profile-header .stat-label{color:#e5e9fd}.ww5-author .post-card,.ww5-author .sidebar-section{transform:none!important;background:#fff!important;backdrop-filter:none!important;border:1px solid #e3e9f3;border-radius:15px;box-shadow:0 9px 28px rgba(20,37,70,.04);overflow:hidden}.ww5-author .post-card:hover{transform:translateY(-3px)!important;box-shadow:0 14px 31px rgba(20,37,70,.09)}.ww5-author .post-image{aspect-ratio:16/9;height:auto;min-height:175px;object-fit:cover}.ww5-author .layout-toggle{box-shadow:none;background:#fff;border:1px solid #e0e5f0;backdrop-filter:none}.ww5-author .layout-btn.active{background:#6255e9}.ww5-author .sidebar-title{color:#1a2a47}.ww5-author .category-tag{background:#6558ee}.ww5-author .stat-item{padding:9px}.ww5-author>.container{max-width:1320px}.ww5-author>.container>.row{row-gap:22px}.ww5-author .breadcrumb a{color:#5144d0}
/* Custom-page collection: calm dashboard panels, no animated rainbow overlays. */
.ww5-custom{background:linear-gradient(180deg,#f5f7fe,#fff);min-height:60vh}.ww5-custom>.row{max-width:1320px;margin-inline:auto}.ww5-custom .ww5-custom-hero{padding:40px 40px 34px;margin-bottom:26px!important;text-align:left!important;background:radial-gradient(circle at 85% 0,#343b86,transparent 40%),linear-gradient(115deg,#121d3b,#2b275f);border-radius:22px;position:relative;overflow:hidden}.ww5-custom .ww5-custom-hero:before{content:'COLLECTION / WITTYWRITER';font-size:11px;font-weight:800;letter-spacing:.15em;color:#a7b8ef;display:block;margin-bottom:13px}.ww5-custom .ww5-custom-hero h1{color:#fff!important;font-weight:850;letter-spacing:-.045em;font-size:clamp(30px,4vw,52px)}.ww5-custom .ww5-custom-hero p{color:#c3cceb!important;max-width:720px;line-height:1.7}.ww5-custom :is(.card,.clickable-card,.hover-card-dynamic){background:#fff!important;box-shadow:0 8px 26px rgba(19,37,82,.05)!important;border:1px solid #e3e9f3!important;border-radius:14px!important;transform:none!important;min-width:0}.ww5-custom :is(.card,.clickable-card,.hover-card-dynamic):hover{transform:translateY(-2px)!important;box-shadow:0 13px 28px rgba(19,37,82,.11)!important;background:#fdfdff!important;animation:none!important}.ww5-custom .hover-card-dynamic::before{display:none!important}.ww5-custom .icon-circle{background:#eeedff!important;color:#6255db!important;flex-shrink:0}.ww5-custom .card-title{font-size:14px!important;line-height:1.4!important;letter-spacing:-.01em;color:#243653!important}.ww5-custom .card-text{color:#74849c!important;opacity:1!important;line-height:1.65!important}.ww5-custom h2{color:#1f2d4a;letter-spacing:-.03em;font-weight:820}.ww5-custom .btn-outline-primary{border-color:#b3aaf8;color:#5747d9}.ww5-custom .btn-outline-primary:hover{background:#6255e9;color:#fff}.ww5-custom a:focus-visible{outline:3px solid #fbbf24!important;outline-offset:3px}
@media(max-width:1199px){.ww5-article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ww5-hero-counter{min-width:178px;padding:22px}.ww5-hero-counter strong{font-size:46px}}
@media(max-width:900px){.ww5-archive-layout{grid-template-columns:1fr}.ww5-filters{position:static}.ww5-mobile-filter:not([open]) summary{border-bottom:0}.ww5-mobile-filter summary{padding:16px 19px}.ww5-filter-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}.ww5-filter-form>label{grid-column:auto}.ww5-filter-form>input,.ww5-filter-form>select{margin-top:0}.ww5-filter-form :is(label[for="ww5-search"],input[name="search"]),.ww5-filter-actions{grid-column:1/-1}.ww5-filter-note{display:none}.ww5-hero{padding:35px}.ww5-hero-counter{min-height:160px}}
@media(max-width:650px){.ww5-wrap{width:calc(100% - 28px)}.ww5-hero{padding:31px 23px;flex-direction:column;align-items:stretch;gap:22px;border-radius:18px}.ww5-hero h1{font-size:38px}.ww5-hero-counter{flex-direction:row;align-items:center;gap:15px;min-height:0;padding:16px}.ww5-hero-counter strong{font-size:35px}.ww5-hero-counter small{display:none}.ww5-hero-counter span{margin-top:0}.ww5-article-grid{grid-template-columns:1fr}.ww5-article-grid.is-list .ww5-article-card{grid-template-columns:112px minmax(0,1fr)}.ww5-article-grid.is-list .ww5-article-cover{min-height:150px}.ww5-article-grid.is-list .ww5-card-body{padding:12px}.ww5-article-grid.is-list .ww5-article-card h3{font-size:14px}.ww5-article-grid.is-list .ww5-card-body>p{display:none}.ww5-article-grid.is-list .ww5-card-bottom{font-size:10px}.ww5-results-heading{align-items:flex-end}.ww5-view-toggle>a{font-size:0}.ww5-view-toggle>a i{font-size:14px}.ww5-filter-form{display:flex}.ww5-author .author-profile-header{padding:30px 19px;border-radius:18px}.ww5-custom .ww5-custom-hero{padding:32px 22px;border-radius:18px}.ww5-custom .ww5-custom-hero h1{font-size:32px}.ww5-pagination{justify-content:center}}
@media(prefers-reduced-motion:reduce){.ww5 *{scroll-behavior:auto!important;transition:none!important;animation:none!important}.ww5-author .author-profile-header::before,.ww5-author .author-profile-header::after{animation:none!important}}

.ww5-custom .icon-circle{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;font-size:16px}
.ww5-custom .clickable-card{display:flex;align-items:center;min-height:80px;overflow:hidden}
.ww5-custom .clickable-card .card-body{width:100%;padding:12px 14px}
.ww5-custom .hover-card-dynamic{overflow:hidden}
.ww5-custom .hover-card-dynamic .card-body{position:relative}
.ww5-custom .bg-success-light,.ww5-custom .bg-warning-light,.ww5-custom .bg-info-light{background:#eeedff!important}
