/* MERINAL — light glass, quiet blue motion, editorial reading surfaces. */
:root{--glass-ink:#182d4b;--glass-muted:#526782;--glass-line:rgba(255,255,255,.9);--glass-shadow:0 12px 36px rgba(48,83,136,.075),0 2px 5px rgba(48,83,136,.035);background:#f0f5ff;color:var(--glass-ink)}
body{min-height:100dvh;isolation:isolate;background:transparent}
body::before,body::after{content:'';position:fixed;pointer-events:none;z-index:-1}
body::before{inset:-16vh -16vw;background:radial-gradient(ellipse at 16% 18%,rgba(150,192,255,.37),transparent 43%),radial-gradient(ellipse at 83% 54%,rgba(181,213,255,.38),transparent 42%),radial-gradient(ellipse at 32% 93%,rgba(205,218,255,.38),transparent 42%),linear-gradient(125deg,#f5f8ff 8%,#edf5ff 53%,#f4f7ff 100%);animation:merinal-blue-drift 30s ease-in-out infinite alternate;transform:translate3d(0,0,0);will-change:transform}
body::after{inset:0;background:linear-gradient(125deg,rgba(255,255,255,.17),transparent 42%,rgba(255,255,255,.3));}
@keyframes merinal-blue-drift{0%{transform:translate3d(-3%,-2%,0) scale(1)}50%{transform:translate3d(3%,2%,0) scale(1.04)}100%{transform:translate3d(-1%,4%,0) scale(1.025)}}
#app{position:relative;min-height:100dvh}
.main-shell{position:relative}#content{max-width:1140px;padding:44px 40px 72px}
.sidebar{background:rgba(255,255,255,.67);border-right:1px solid rgba(255,255,255,.9);box-shadow:7px 0 38px rgba(71,110,165,.035);-webkit-backdrop-filter:blur(24px) saturate(1.25);backdrop-filter:blur(24px) saturate(1.25)}
.logo img{filter:drop-shadow(0 1px 0 rgba(255,255,255,.7))}.logo>span{color:#526781}
.nav-item{border-radius:14px;color:#526781}.nav-item.active{color:#145dbd;background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(219,235,255,.65));box-shadow:inset 0 1px 0 #fff,0 4px 15px rgba(37,91,160,.055)}
.profile{border-top-color:rgba(105,140,183,.13)}.menu-toggle{border-radius:14px;border-color:rgba(255,255,255,.9);background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(236,244,255,.7));box-shadow:0 3px 10px rgba(45,89,145,.055),inset 0 1px 0 #fff;color:#284667}
.feed-heading{margin-bottom:25px;align-items:center}.feed-heading h1{font-size:38px;letter-spacing:-.055em;line-height:1.1;color:#173052}.feed-heading .primary{border-radius:999px;padding:12px 18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.38),0 5px 15px rgba(23,105,232,.18);background:linear-gradient(145deg,#3787fa,#1769e8);border:1px solid rgba(255,255,255,.25)}
.feed-tools{display:flex;flex-direction:column;gap:15px;margin-bottom:26px;min-width:0}
.feed-tools .search{background:linear-gradient(115deg,rgba(255,255,255,.87),rgba(255,255,255,.56));border:1px solid rgba(255,255,255,.97);box-shadow:inset 0 1px 0 #fff,0 5px 18px rgba(47,91,151,.045);border-radius:18px;min-height:52px;padding:0 18px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#6680a1}
.feed-tools .search:focus-within{border-color:#93baf3;box-shadow:0 0 0 4px rgba(57,124,235,.08),inset 0 1px 0 #fff}.feed-tools .search input{color:#244362;font-size:15px}.feed-tools .search input::placeholder{color:#667e9c}
.category-rail{display:flex;align-items:center;gap:8px;max-width:100%;min-width:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scroll-padding-inline:4px;scrollbar-width:none;padding:3px 3px 9px;margin:-3px -3px -9px;touch-action:pan-x pan-y;isolation:isolate}
.category-rail::-webkit-scrollbar{display:none}
.category-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;white-space:nowrap;scroll-snap-align:center;min-height:44px;padding:10px 17px;border:1px solid rgba(255,255,255,.9);border-radius:999px;background:rgba(255,255,255,.48);color:#48617e;font-size:12px;font-weight:500;line-height:1.5;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 2px 5px rgba(48,83,136,.025);transition:background .22s,color .22s,box-shadow .22s,transform .22s var(--ease),border-color .22s}
.category-chip.selected,.category-chip[aria-pressed=true]{background:linear-gradient(135deg,#387ff0,#1d62cf);color:#fff;border-color:rgba(255,255,255,.45);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 5px 13px rgba(41,104,202,.19)}
.category-chip:active{transform:scale(.96)}.category-chip:focus-visible{outline:3px solid #8ab6fa;outline-offset:0}
.section-label{margin-bottom:17px}.section-label h2{font-size:15px;font-family:Geist,Arial,sans-serif;font-weight:600;letter-spacing:-.025em;color:#294565}.section-label>span{font-size:11px;color:#5c7390;background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.85);padding:5px 9px;border-radius:999px;white-space:nowrap}
#postList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch}
.post-card,.post-card.no-cover{padding:0;border:1px solid rgba(255,255,255,.98);border-radius:25px;background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(255,255,255,.69));box-shadow:var(--glass-shadow);-webkit-backdrop-filter:blur(15px) saturate(1.15);backdrop-filter:blur(15px) saturate(1.15);overflow:hidden;transition:transform .32s var(--ease),box-shadow .32s,border-color .32s}
.post-card.no-cover{border-top:3px solid #bad5fc}.post-card.no-cover[data-tone=teal]{border-top-color:#a9d7cc}.post-card.no-cover[data-tone=amber]{border-top-color:#ead1a3}
.post-card .post-cover{aspect-ratio:1.85;background:linear-gradient(130deg,#dfeaf8,#edf5ff);border-radius:0}
.post-card .post-cover::after{border:0;background:linear-gradient(0deg,rgba(15,48,85,.1),transparent 35%)}
.post-card .post-content,.post-card.with-cover .post-content{padding:24px;display:flex;flex-direction:column;position:relative;flex:1}
.post-card .post-content::before{content:'';position:absolute;top:0;left:20px;right:20px;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.9),transparent);pointer-events:none}
.post-card .post-meta,.post-card.with-cover .post-meta{margin-bottom:14px;gap:7px;min-height:24px;color:#60728b}.post-card .post-meta time{font-size:10px;color:#60728b}.post-card .reading-time,.post-card.with-cover .reading-time{font-size:10px;color:#60728b;width:auto;margin-left:auto;white-space:nowrap}
.post-card .category{border-radius:999px;padding:5px 9px;font-size:9px;background:#e8f1ff;color:#255d9f;font-weight:600}.post-card[data-tone=teal] .category{background:#e5f4ee;color:#2b715c}.post-card[data-tone=amber] .category{background:#fff1d8;color:#8c621d}
.unread-badge{border-radius:999px;background:#216bd7;padding:4px 8px;font-size:9px;font-weight:550;box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}
.post-card h3,.post-card.with-cover h3{font-size:25px;line-height:1.22;letter-spacing:-.045em;margin-bottom:12px;max-width:none}.post-card h3 button{color:#1b3455;transition:color .2s}
.post-card .post-content>p{font-size:13px;line-height:1.8;color:#526782;margin-bottom:21px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.post-bottom{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;padding-top:17px;margin-top:auto;border-top:1px solid rgba(90,129,177,.11);color:#526782;min-height:62px}
.post-author{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.post-author-name{font-size:11px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#526782}.post-author .author-avatar{width:28px;height:28px;font-size:10px;color:#3c6aab;background:linear-gradient(135deg,#fff,#e3eeff);border:1px solid #fff;box-shadow:0 2px 5px rgba(49,92,146,.04)}
.post-card .read-link,.post-bottom .read-link{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:9px;width:auto;min-height:44px;white-space:nowrap;margin:0 0 0 auto;padding:10px 14px;border:1px solid rgba(255,255,255,.6);border-radius:999px;background:linear-gradient(145deg,#3989fa,#1766df);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 4px 11px rgba(23,105,232,.17);color:#fff;font-size:11px;font-weight:550;line-height:1.4;overflow:hidden;transition:background .22s,box-shadow .22s,transform .22s var(--ease)}
.post-card .read-link::before{content:'';position:absolute;inset:0;background:linear-gradient(115deg,transparent 20%,rgba(255,255,255,.2) 48%,transparent 75%);translate:-130% 0;transition:translate .5s ease;pointer-events:none}
.post-card .read-link .icon{width:16px;height:16px;stroke-width:1.8;transition:transform .22s var(--ease)}.post-card .read-link:active{transform:scale(.96)}.attachment-count{color:#617a99}
.post-card{display:flex;flex-direction:column}.post-card.with-cover:first-child{grid-column:1/-1;display:grid;grid-template-columns:1.06fr 1fr}.post-card.with-cover:first-child .post-cover{aspect-ratio:auto;min-height:330px;height:100%}.post-card.with-cover:first-child .post-content{padding:29px}.post-card.with-cover:first-child h3{font-size:31px}.post-card.with-cover:first-child .post-content>p{font-size:14px;-webkit-line-clamp:3}
.article-detail,.editor-main,.editor-side,.audit-toolbar,.audit-event,.audit-loading,.category-create,.category-list,.management-list,.empty{background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(255,255,255,.84));border-color:rgba(255,255,255,.95);box-shadow:var(--glass-shadow);border-radius:21px}
.article-detail{padding:36px 40px}.article-detail h1{color:#1b3455}.file-link{background:rgba(244,249,255,.7);border-radius:14px;border-color:#e1eaf6}.primary,.secondary,.danger{border-radius:13px}.editor-side .primary,.editor-side .secondary{border-radius:13px}.back{color:#3f6597}.login{background:transparent}.login-story{background:rgba(232,242,255,.45)}.login-form{background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.9);border-radius:28px;box-shadow:var(--glass-shadow);margin:40px auto}.login-form .notice{background:rgba(230,240,255,.65)}
@media(hover:hover){.category-chip:hover:not(.selected){background:rgba(255,255,255,.95);border-color:#fff;box-shadow:0 4px 12px rgba(45,89,150,.07);color:#1d59a2}.post-card:hover{transform:translateY(-3px);box-shadow:0 18px 44px rgba(48,83,136,.1),0 2px 6px rgba(48,83,136,.035);border-color:#fff}.post-card .read-link:hover{background:linear-gradient(145deg,#2978ee,#135bce);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 6px 16px rgba(23,105,232,.22)}.post-card .read-link:hover::before{translate:130% 0}.post-card .read-link:hover .icon{transform:translateX(3px)}}
@media(max-width:1100px){#content{padding:36px 28px 64px}.post-card .post-content,.post-card.with-cover .post-content{padding:22px}.post-card.with-cover:first-child .post-content{padding:25px}.post-card.with-cover:first-child h3{font-size:28px}.post-card h3,.post-card.with-cover h3{font-size:24px}.post-bottom>.attachment-count{display:none}}
@media(max-width:950px){.sidebar{top:12px;margin:12px 18px 0;width:calc(100% - 36px);padding:12px 17px;border:1px solid rgba(255,255,255,.95);border-radius:22px;box-shadow:0 6px 23px rgba(42,80,131,.075),inset 0 1px 0 #fff;background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(22px) saturate(1.25);backdrop-filter:blur(22px) saturate(1.25)}.logo{gap:0}.logo img{width:118px}.logo>span{display:none}.menu-toggle{min-height:44px;padding:9px 13px;font-size:12px}.main-shell{margin-left:0}#content{padding:30px 22px 64px;max-width:900px}.feed-heading h1{font-size:34px}.sidebar .menu-panel nav{margin-top:17px}.sidebar.menu-open{max-height:calc(100dvh - 24px)}.sidebar .menu-panel .nav-item{border-radius:13px}.post-card.with-cover:first-child h3{font-size:29px}.post-card.with-cover:first-child .post-cover{min-height:320px}}
@media(max-width:700px){#postList{grid-template-columns:1fr;gap:20px}.post-card.with-cover:first-child{display:flex;grid-template-columns:none}.post-card.with-cover:first-child .post-cover{height:auto;aspect-ratio:1.8;min-height:0}.post-card.with-cover:first-child .post-content{padding:24px}.post-card.with-cover:first-child h3{font-size:27px}.post-card .post-cover{aspect-ratio:1.8}.post-card .post-content,.post-card.with-cover .post-content{padding:24px}.post-card h3,.post-card.with-cover h3{font-size:27px}.post-card .post-content>p{font-size:14px}.post-bottom>.attachment-count{display:flex}}
@media(max-width:600px){body::before{inset:-10vh -25vw;animation-duration:34s}.sidebar{top:10px;margin:10px 14px 0;width:calc(100% - 28px);padding:10px 14px;border-radius:20px}.logo img{width:112px}.menu-toggle{min-height:44px;border-radius:13px;padding:10px 12px;gap:7px}.menu-toggle .icon{width:17px;height:17px}#content{padding:27px 16px 48px}.feed-heading{margin-bottom:22px;gap:12px;flex-wrap:nowrap}.feed-heading h1{font-size:32px;letter-spacing:-.055em}.feed-heading .primary{font-size:11px;padding:10px 13px;min-height:44px;gap:6px}.feed-heading .primary .icon{width:15px;height:15px}.feed-tools{display:flex;flex-direction:column;gap:14px;margin-bottom:24px}.feed-tools .search{min-height:51px;border-radius:17px;padding-inline:15px}.feed-tools .search input{font-size:16px}.category-rail{gap:8px;margin-right:-16px;padding-right:16px;max-width:calc(100% + 16px);scroll-padding-inline:3px 16px}.category-chip{font-size:12px;padding:10px 16px;min-height:44px}.section-label{margin-bottom:16px;gap:8px}.section-label h2{font-size:14px}.section-label>span{font-size:10px;padding:5px 8px}#postList{gap:21px}.post-card,.post-card.no-cover{border-radius:24px;-webkit-backdrop-filter:none;backdrop-filter:none}.post-card .post-cover,.post-card.with-cover:first-child .post-cover{aspect-ratio:1.65}.post-card .post-content,.post-card.with-cover .post-content,.post-card.with-cover:first-child .post-content{padding:21px 19px 20px}.post-card h3,.post-card.with-cover h3,.post-card.with-cover:first-child h3{font-size:24px;line-height:1.23;letter-spacing:-.043em;margin-bottom:11px}.post-card .post-meta,.post-card.with-cover .post-meta{gap:6px;margin-bottom:13px}.post-card .category{font-size:9px;padding:4px 8px;max-width:100%}.unread-badge{font-size:9px;padding:4px 7px}.post-card .post-meta time{font-size:10px}.post-card .reading-time,.post-card.with-cover .reading-time{margin-left:0;width:auto;font-size:10px}.post-card .reading-time::before{content:'·';margin-right:6px;color:#8497b0}.post-card .post-content>p,.post-card.with-cover:first-child .post-content>p{font-size:13px;line-height:1.8;margin-bottom:18px;-webkit-line-clamp:3;color:#526782}.post-bottom{gap:8px;padding-top:15px;min-height:60px;flex-wrap:nowrap}.post-author{gap:7px}.post-author-name{font-size:10px}.post-author .author-avatar{width:27px;height:27px}.post-bottom>.attachment-count{display:none}.post-card .read-link,.post-bottom .read-link{min-height:44px;font-size:11px;padding:10px 13px;gap:8px;width:auto;margin:0 0 0 auto;justify-content:center}.post-card .read-link .icon{width:15px;height:15px}.article-detail{padding:27px 21px;border-radius:23px}.article-detail h1{font-size:29px;line-height:1.18}.editor-main,.editor-side,.audit-toolbar,.category-create,.management-list,.category-list{border-radius:20px}.login-story{padding:30px 24px}.login-form{width:calc(100% - 28px);padding:30px 24px;margin:12px 14px 30px;border-radius:24px}.primary,.secondary{min-height:44px}.login-form .primary{border-radius:13px}}
@media(max-width:370px){.sidebar{margin:9px 12px 0;top:9px;width:calc(100% - 24px);padding:9px 12px}#content{padding:25px 13px 44px}.feed-heading h1{font-size:30px}.feed-heading .primary{font-size:0;gap:0;padding:12px;width:44px;min-width:44px}.feed-heading .primary .icon{width:18px;height:18px}.category-rail{margin-right:-13px;padding-right:13px;max-width:calc(100% + 13px)}.post-card .post-content,.post-card.with-cover .post-content,.post-card.with-cover:first-child .post-content{padding:19px 16px 18px}.post-card h3,.post-card.with-cover h3,.post-card.with-cover:first-child h3{font-size:23px}.post-card .read-link,.post-bottom .read-link{width:auto;min-height:44px;margin:0 0 0 auto;padding:10px 11px;justify-content:center;font-size:10px;gap:6px}.post-author-name{max-width:84px}.post-card .post-meta{column-gap:6px}.post-card .reading-time,.post-card.with-cover .reading-time{margin-left:0;width:auto}.section-label h2{font-size:13px}.section-label>span{font-size:9px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.sidebar{background:#f8fbff}.post-card,.post-card.no-cover,.article-detail,.editor-main,.editor-side,.audit-toolbar,.audit-event,.management-list,.category-list,.empty{background:#fbfdff}.feed-tools .search{background:#fff}.category-chip{background:#f8fbff}.category-chip.selected,.category-chip[aria-pressed=true]{background:#236bdc}.login-form{background:#fff}}
@media(prefers-reduced-motion:reduce){body::before{animation:none!important;transform:none!important;will-change:auto}.post-card,.post-card .read-link,.category-chip,.post-card .read-link .icon,.post-card .read-link::before{transition:none!important;animation:none!important}.post-card:hover,.post-card .read-link:hover,.post-card .read-link:active,.category-chip:active{transform:none!important}.category-rail{scroll-behavior:auto;scroll-snap-type:none}.post-card .read-link::before{display:none}}

/* Fade only the scrollable edges; keep complete chips crisp at each end. */
.category-rail{-webkit-mask-image:linear-gradient(to right,var(--rail-edge-left,#000),#000 22px,#000 calc(100% - 22px),var(--rail-edge-right,#000));mask-image:linear-gradient(to right,var(--rail-edge-left,#000),#000 22px,#000 calc(100% - 22px),var(--rail-edge-right,#000))}.category-rail.can-scroll-start{--rail-edge-left:transparent}.category-rail.can-scroll-end{--rail-edge-right:transparent}
@media(max-width:600px){.post-card .post-content>p,.post-card.with-cover:first-child .post-content>p{font-size:14px;line-height:1.7}}
