/* YCRH website palette. Preserve Gitea's native forms, code/diff semantics and dark theme. */
.ycrh-home-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:28px;font-size:13px}.ycrh-home-actions .ui.button{padding:16px 24px}.ycrh-hub h2{font-size:29px;line-height:1.5;color:var(--ycrh-blue);margin:20px 0 24px}.ycrh-hub>a{display:flex;align-items:center;gap:18px;padding:20px 0;border-bottom:1px solid var(--ycrh-border);color:var(--ycrh-blue)}.ycrh-hub>a>span{font-size:12px;color:var(--ycrh-orange)}.ycrh-hub>a strong{font-size:17px}.ycrh-hub>a p{font-size:12px;color:var(--ycrh-muted);margin:6px 0 0;line-height:1.7}.ycrh-hub>a b{margin-left:auto;color:var(--ycrh-orange)}.ycrh-hub>a:hover strong{text-decoration:underline}
:root{--ycrh-blue:#194f90;--ycrh-orange:#a95100;--ycrh-accent:#f39200;--ycrh-surface:#f0f6fd;--ycrh-border:#d7e2ef;--ycrh-text:#233b57;--ycrh-muted:#53677e;--ycrh-paper:#fff;--color-primary:#194f90;--color-primary-hover:#103b70;--color-primary-active:#103b70;--color-primary-contrast:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
html[data-theme="gitea-light"]{--color-body:#fff;--color-box-header:#f0f6fd;--color-box-body:#fff;--color-nav-bg:#fff;--color-secondary:#d7e2ef;--color-text:#233b57;--color-text-light:#53677e;--color-text-dark:#194f90;--color-input-background:#fff;--color-active:#eaf2fc}
#navbar{min-height:76px;padding-inline:clamp(16px,3vw,48px);border-bottom:1px solid var(--ycrh-border);box-shadow:none;gap:12px}
#navbar-logo{width:65px;min-height:50px;background:url('../img/yichen-logo.jpg') center 41.5%/176.55% auto no-repeat;border-radius:4px;background-color:white}
#navbar-logo img{visibility:hidden}
#navbar .ycrh-center-link{font-size:17px;font-weight:650;letter-spacing:.08em;color:var(--ycrh-blue);order:-1}
#navbar .navbar-left #navbar-logo{order:-2}
#navbar .ycrh-website-link{font-size:13px;color:var(--ycrh-muted)}
.ui.primary.button{background:var(--ycrh-blue);color:#fff;border-radius:5px;box-shadow:0 3px 10px #194f9014}
.ui.primary.button:hover{background:#103b70;color:#fff}
.ui.segment,.ui.attached.header,.ui.menu{border-radius:5px}
.ui.form input:focus,.ui.form textarea:focus{border-color:var(--ycrh-blue)!important;box-shadow:0 0 0 3px #194f9015!important}
a:focus-visible,button:focus-visible{outline:3px solid var(--ycrh-accent);outline-offset:3px}
.repository .repo-header{border-bottom:1px solid var(--ycrh-border)}
.page-footer{border-top:1px solid var(--ycrh-border);padding:22px 32px;gap:16px}
.ycrh-footer-brand{font-size:11px;letter-spacing:.1em;color:var(--ycrh-muted)}
.ycrh-signin{background:var(--ycrh-paper);padding:0!important;color:var(--ycrh-text)}
.ycrh-entry{width:min(1220px,calc(100% - 80px));margin:70px auto 64px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.85fr);gap:70px;align-items:start}
.ycrh-eyebrow{font-size:11px;font-weight:650;letter-spacing:.13em;margin:0 0 28px;line-height:1.8;color:var(--ycrh-blue)}
.ycrh-eyebrow:before{content:"";display:inline-block;width:25px;height:2px;vertical-align:middle;margin-right:10px;background:var(--ycrh-accent)}
.ycrh-story h1{font-size:clamp(32px,3.5vw,52px);font-weight:650;line-height:1.4;letter-spacing:-.035em;margin:0;color:var(--ycrh-blue)}
.ycrh-story h1 span{color:var(--ycrh-orange)}
.ycrh-intro{font-size:19px;margin:26px 0 10px;font-weight:550;color:var(--ycrh-blue)}
.ycrh-description{font-size:15px;line-height:1.9;color:var(--ycrh-muted);margin:0}
.ycrh-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;background:var(--ycrh-surface);border:1px solid var(--ycrh-border);border-radius:6px;padding:24px;margin-top:36px}
.ycrh-workflow div{display:flex;flex-direction:column;gap:10px}
.ycrh-workflow small{font-size:10px;letter-spacing:.1em;color:var(--ycrh-orange)}
.ycrh-workflow strong{font-size:16px;font-weight:600;color:var(--ycrh-blue)}
.ycrh-workflow span{font-size:11px;color:var(--ycrh-muted);line-height:1.7}
.ycrh-story-foot{border-top:1px solid var(--ycrh-border);padding-top:20px;margin-top:28px;display:flex;justify-content:space-between;gap:15px;font-size:12px;color:var(--ycrh-muted);line-height:1.8}
.ycrh-story-foot a{color:var(--ycrh-blue);white-space:nowrap}
.ycrh-auth{border:1px solid var(--ycrh-border);border-top:3px solid var(--ycrh-blue);border-radius:6px;padding:30px;background:var(--ycrh-paper);box-shadow:0 12px 40px #194f9008}
.ycrh-index{font-size:10px;letter-spacing:.14em;color:var(--ycrh-orange)}
.ycrh-auth-heading h2{font-size:24px;font-weight:600;color:var(--ycrh-blue);margin:13px 0 10px}
.ycrh-auth-heading p{font-size:13px;color:var(--ycrh-muted);line-height:1.8;margin:0 0 24px}
.ycrh-auth>.ui.container{width:100%!important;margin:0 0 16px!important}
.ycrh-auth .ui.attached.segment,.ycrh-auth .ui.top.attached.header{border:0!important;box-shadow:none;background:transparent;margin:0!important;width:100%;padding:0}
.ycrh-auth .ui.top.attached.header{font-size:14px;text-align:left;margin-bottom:18px!important;color:var(--ycrh-blue)}
.ycrh-auth .ui.form .field{margin-bottom:20px}
.ycrh-auth .ui.form input:not([type="checkbox"]):not([type="hidden"]){min-height:44px;border-radius:5px}
.ycrh-auth .ui.primary.button{min-height:44px}
.ycrh-access-note{border-top:1px solid var(--ycrh-border);padding-top:18px;margin:22px 0 0;font-size:12px;line-height:1.8;color:var(--ycrh-muted)}
html[data-theme="gitea-dark"]{--ycrh-blue:#8cbbf4;--ycrh-orange:#ffbe63;--ycrh-surface:#202e40;--ycrh-border:#354860;--ycrh-text:#dfebf9;--ycrh-muted:#aec0d6;--ycrh-paper:#18222f;--color-primary:#3978c4;--color-primary-hover:#4689dc}
html[data-theme="gitea-dark"] .ui.primary.button{background:#245c9f}
@media(prefers-color-scheme:dark){html[data-theme="gitea-auto"]{--ycrh-blue:#8cbbf4;--ycrh-orange:#ffbe63;--ycrh-surface:#202e40;--ycrh-border:#354860;--ycrh-text:#dfebf9;--ycrh-muted:#aec0d6;--ycrh-paper:#18222f;--color-primary:#3978c4}html[data-theme="gitea-auto"] .ui.primary.button{background:#245c9f}}
@media(max-width:1000px){.ycrh-entry{gap:32px;width:calc(100% - 48px);grid-template-columns:minmax(0,1fr) minmax(300px,.9fr)}.ycrh-auth{padding:24px}.ycrh-workflow{padding:18px;gap:10px}.ycrh-story-foot{flex-direction:column}}
@media(max-width:767px){#navbar{padding-inline:16px}.ycrh-entry{grid-template-columns:1fr;width:calc(100% - 32px);margin:32px auto;gap:28px}.ycrh-story h1{font-size:34px}.ycrh-eyebrow{font-size:9px;margin-bottom:18px}.ycrh-intro{margin-top:18px}.ycrh-workflow{margin-top:22px}.ycrh-story-foot{display:none}.ycrh-auth{padding:24px 20px}.page-footer{padding:20px 16px}.ycrh-description{font-size:14px}}
