/* Phoenix news and admin use the existing CodeBeasts palette and fonts. */
[hidden] { display: none !important; }
.skip-link { position: fixed; left: -9999px; top: 8px; z-index: 100; padding: 12px; background: var(--accent); color: var(--ink); }
.skip-link:focus { left: 8px; }
.sound-notice { position: fixed; top: 90px; right: 20px; z-index: 30; background: var(--bg-panel); padding: 14px; font-size: 12px; }
.news-shell { padding-top: 80px; padding-bottom: 100px; min-height: 65vh; }
.news-heading { max-width: 850px; margin-bottom: 60px; }
.news-shell h1, .editor-shell h1 { font-size: clamp(32px, 5vw, 60px); line-height: 1.15; overflow-wrap: anywhere; }
.intro { color: var(--text-dim); line-height: 1.9; font-size: 14px; margin-top: 22px; }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.news-card { border: 1px solid #8863ac66; background: linear-gradient(135deg,#20132d,#100c18); padding: 34px; box-shadow: 5px 5px 0 #07050c; min-width: 0; }
.news-card time, .article-shell > time { color: var(--accent); font-size: 10px; }
.news-card h2 { font-size: clamp(24px,3vw,34px); margin: 24px 0 18px; overflow-wrap: anywhere; }
.news-card p { font-size: 13px; color: var(--text-dim); line-height: 1.9; margin-bottom: 26px; overflow-wrap: anywhere; }
.empty-state { padding: 45px; border: 1px dashed #8863ac80; max-width: 800px; background: #171020; }
.empty-state h2 { margin: 20px 0; font-size: 30px; }
.empty-state p { font-size: 13px; color: var(--text-dim); line-height: 1.9; margin-bottom: 26px; }
.article-shell { max-width: 850px; }
.article-shell > .kicker { margin-top: 50px; }
.article-shell h1 { margin: 24px 0; }
.article-summary { font-size: 18px; color: var(--border-light); line-height: 1.8; border-bottom: 1px solid #8863ac60; padding-bottom: 30px; overflow-wrap: anywhere; }
.article-body { margin: 40px 0 55px; font-size: 15px; line-height: 2; color: var(--text-dim); overflow-wrap: anywhere; }
.article-body p { margin: 0 0 24px; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 { color: var(--text); margin: 36px 0 18px; line-height: 1.4; }
.article-body h1, .article-body h2 { font-size: clamp(22px, 3vw, 30px); }
.article-body h3 { font-size: 21px; }
.article-body h4, .article-body h5, .article-body h6 { font-size: 17px; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 28px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-block: 6px; }
.article-body li > p { margin-bottom: 8px; }
.article-body blockquote { margin: 24px 0; padding: 12px 20px; border-left: 3px solid var(--accent); background: #8061e60d; }
.article-body blockquote > :last-child { margin-bottom: 0; }
.article-body code { font-family: monospace; background: #8061e61a; padding: 2px 5px; border-radius: 3px; }
.article-body pre { overflow-x: auto; padding: 18px; margin-bottom: 24px; background: #07050c; border: 1px solid #8863ac44; line-height: 1.6; }
.article-body pre code { padding: 0; background: none; }
.article-body img { display: block; max-width: 100%; max-height: 720px; width: auto; height: auto; margin: 24px auto; border-radius: 6px; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-bottom: 24px; }
.article-body th, .article-body td { padding: 8px 12px; border: 1px solid #8863ac66; text-align: left; }
.article-body hr { border: 0; border-top: 1px solid #8863ac66; margin: 32px 0; }
.pagination { margin-top: 45px; display: flex; flex-wrap: wrap; gap: 30px; font-size: 12px; }
.admin-bar { background: #241533; border-bottom: 1px solid #8863ac70; }
.admin-bar > div { display: flex; align-items: center; gap: 20px; min-height: 45px; flex-wrap: wrap; padding-block: 10px; font-size: 11px; }
.admin-bar span { margin-left: auto; color: var(--text-dim); overflow-wrap: anywhere; }
.admin-bar button { color: var(--accent); background: transparent; border: 0; padding: 5px; font: inherit; cursor: pointer; }
.editor-shell { width: calc(100% - 44px); max-width: 850px; margin: 65px auto 100px; min-height: 55vh; }
.wide-editor { max-width: 1100px; }
.login-shell { max-width: 540px; }
.editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 30px 0; }
.editor-heading h1 { font-size: clamp(30px,4vw,48px); }
.editor-form { display: flex; flex-direction: column; gap: 12px; margin-top: 35px; }
.editor-form > label { font-size: 13px; margin-top: 14px; color: var(--text); }
.editor-form label span { color: var(--text-faint); font-size: 10px; }
.editor-form input:not([type=hidden]):not([type=checkbox]), .editor-form textarea { width: 100%; border: 1px solid #8863ac99; border-radius: 0; background: #100c18; color: var(--text); padding: 15px; font: 15px/1.7 var(--font-body, monospace); }
.editor-form textarea { resize: vertical; min-height: 100px; }
.editor-form input:focus-visible, .editor-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.field-help { color: var(--text-faint); font-size: 11px; line-height: 1.8; margin: 0; }
.action-button { display: inline-flex; align-items: center; justify-content: center; padding: 3px 8px; min-height: 24px; border: 1px solid var(--accent); background: var(--accent); color: #0b0912; font: 12px/1.25 var(--font-body, monospace); text-decoration: none; cursor: pointer; width: fit-content; flex-shrink: 0; }
.action-button:hover { background: #e8d0f8; color: #0b0912; box-shadow: 4px 4px 0 #9d6bff55; }
.login-shell .action-button { margin-top: 18px; }
.editor-buttons { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 24px; font-size: 12px; }
.publish-control { display: grid; grid-template-columns: 22px 1fr; gap: 12px; border: 1px solid #8863ac66; background: #20132d; padding: 22px; margin-top: 16px; }
.publish-control input { width: 20px; height: 20px; accent-color: var(--accent); }
.publish-control label { font-size: 13px; line-height: 1.6; }
.publish-control p { grid-column: 2; color: var(--text-dim); font-size: 11px; line-height: 1.8; margin: 0; }
.site-flash { padding: 18px 24px; max-width: 1000px; margin: 25px auto; border: 1px solid var(--accent); color: var(--accent); background: #181122; font-size: 12px; line-height: 1.8; }
.form-error { color: #ffb5b5; border: 1px solid #d27171; background: #2e1721; padding: 18px; font-size: 12px; line-height: 1.8; }
.form-error p { margin: 0 0 5px; }
.preview-notice { background: #282118; color: #f4d78c; border: 1px solid #9f823d; padding: 20px; font-size: 12px; line-height: 1.8; margin-bottom: 30px; }
.preview-notice a { text-decoration: underline; margin-left: 12px; }
.post-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 30px 0; border-bottom: 1px solid #8863ac66; }
.post-row > div:first-child { min-width: 0; }
.post-row h2 { margin: 13px 0; font-size: 26px; overflow-wrap: anywhere; }
.post-row p { font-size: 10px; color: var(--text-faint); }
.post-status { display: inline-block; background: #2b2139; color: var(--border-light); padding: 6px 10px; font-size: 9px; }
.post-status.published { background: #281c3a; color: var(--accent); }
.row-actions { display: flex; gap: 22px; font-size: 11px; flex-shrink: 0; }
.danger-link { color: #ffaaaa; }
.danger-button { background: #662b3e; color: #ffe0e0; border-color: #d27171; }
.danger-button:hover { background: #81394e; color: white; }
@media (max-width:1100px) { .site-header .bar > nav { display: flex; } .site-header .bar > nav > a:not(.news-nav) { display: none; } }
@media (max-width:700px) { .news-list { grid-template-columns: 1fr; } .news-shell { padding-top: 50px; padding-bottom: 65px; } .news-heading { margin-bottom: 35px; } .news-card { padding: 26px; } .editor-heading { align-items: flex-start; flex-direction: column; } .post-row { align-items: flex-start; flex-direction: column; } .admin-bar span { display: none; } .admin-bar form { margin-left: auto; } .empty-state { padding: 28px; } .article-summary { font-size: 15px; } .article-body { font-size: 14px; } }
@media (max-width:600px) { .site-header .bar > nav { margin-right: 82px; font-size: 10px; } .sound-notice { top: 130px; } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }

.mobile-news { display: none; }
@media (max-width:600px) {
  .site-header .bar > nav { display: none; }
  .site-header .mobile-news { display: block; font-size: 10px; padding: 10px 2px; }
  .site-header .header-actions { gap: 8px; }
  .site-header .store-shortcut { width: 120px; }
  .site-header .social-link { width: 36px; height: 36px; padding: 7px; }
}

.login-page > main { min-height: 100svh; display: grid; place-items: center; padding: 48px 24px; }
.minimal-login { width: 100%; max-width: 340px; }
.login-brand { text-align: center; font-size: 22px; margin: 0 0 36px; }
.minimal-login-form { margin: 0; gap: 22px; }
.login-field { display: grid; gap: 9px; }
.login-field label { font-size: 12px; }
.minimal-login-form .remember-choice { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; cursor: pointer; }
.remember-choice input[type=checkbox] { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.minimal-login-form .action-button { align-self: flex-start; }
.minimal-login > .form-error { margin-bottom: 22px; }

/* Quiet circuit traces behind the standalone login's black glass panel. */
.login-page {
  background: radial-gradient(ellipse at 25% 20%, #160f21 0, transparent 60%),
    radial-gradient(ellipse at 85% 80%, #130d1d 0, transparent 55%), #08070c;
  isolation: isolate;
}
.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('/assets/images/login-circuit-5901e5a2ed5870a5ecbf82fc58611a8c.svg?vsn=d') center / cover no-repeat;
  opacity: .19;
  mask-image: radial-gradient(ellipse at center, #0008, #000 65%, #0006);
}
.login-page .minimal-login {
  max-width: 406px;
  padding: 36px 32px 32px;
  border: 1px solid #ffffff16;
  border-top-color: #ffffff29;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff06, transparent 45%), #03030540;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 18px 60px #0005, 0 1px 0 #ffffff0a inset;
}
.login-page .editor-form input:not([type=hidden]):not([type=checkbox]) {
  background: #0006;
  border-color: #ffffff26;
  border-radius: 4px;
}
@media (max-width: 420px) {
  .login-page > main { padding: 32px 20px; }
  .login-page .minimal-login { padding: 30px 24px 26px; }
}
.login-page .editor-form input:not([type=hidden]):not([type=checkbox]) {
  height: 30px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 20px;
}
.minimal-login-form { gap: 16px; }
.login-field { gap: 6px; }
.login-page .login-brand { margin-bottom: 28px; font-size: 20px; }
.login-page .minimal-login { max-width: 370px; }

.author-byline { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-dim); margin: 20px 0; }
.author-avatar { width: 32px; height: 32px; flex: none; object-fit: cover; border-radius: 50%; border: 1px solid #8061e666; }
.avatar-placeholder { display: grid; place-items: center; color: var(--border-light); background: #21162e; font-size: 13px; }
.account-shell { max-width: 580px; }
.account-shell > h1 { font-size: 34px; }
.account-panel { margin-top: 32px; padding: 26px; border: 1px solid #8061e644; background: #07050c66; border-radius: 8px; }
.account-panel h2 { font-size: 23px; }
.account-form { gap: 8px; margin-top: 20px; }
.account-form .action-button { margin-top: 10px; }
.account-shell .editor-form input:not([type=hidden]):not([type=checkbox]) { min-width: 0; height: 32px; padding: 4px 8px; font-size: 12px; line-height: 22px; }
.account-shell .editor-form input[type=file] { height: auto !important; font-size: 11px !important; }
.avatar-remove { margin-top: 14px; }
@media (max-width: 380px) {
  .site-header .header-actions { gap: 6px; }
  .site-header .store-shortcut { width: 104px; }
}

/* Social links share one component; small screens use a labelled disclosure. */
.desktop-socials { display: flex; align-items: center; gap: 10px; }
.mobile-socials, .social-label { display: none; }
.bluesky-link.port-12qhfyh { --social-gradient: linear-gradient(135deg, #208bfe, #0560ff); --social-border: #70adff; --social-glow: #0560ff40; }
.youtube-link.port-12qhfyh { --social-gradient: linear-gradient(135deg, #f33, #b51128); --social-border: #ff7777; --social-glow: #ff333340; }
@media (max-width: 900px) {
  .site-header .bar { height: auto; flex-wrap: wrap; gap: 8px; padding: 10px 22px; }
  .site-header .brand { min-height: 36px; }
  .site-header .bar > nav { display: none; }
  .site-header .header-actions { width: 100%; gap: 12px; }
  .site-header .sound { position: absolute; top: 8px; right: 22px; min-height: 40px; padding: 8px 0; }
  .site-header .store-shortcut { width: 120px; flex: none; margin-right: auto; }
  .site-header .mobile-news { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px; font-size: 11px; }
  .site-header .desktop-socials { display: none; }
  .site-header .mobile-socials { display: block; position: relative; flex: none; }
  .mobile-socials summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 6px 10px; border: 1px solid #8061e655; border-radius: 6px; font-size: 11px; cursor: pointer; list-style: none; }
  .mobile-socials summary::-webkit-details-marker { display: none; }
  .mobile-socials[open] summary { background: #21162e; border-color: var(--accent); }
  .mobile-socials[open] .arrow-down { transform: rotate(225deg); }
  .mobile-socials .social-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 200px; max-width: calc(100vw - 44px); padding: 8px; background: #14101f; border: 1px solid #8061e666; border-radius: 8px; box-shadow: 0 12px 30px #0008; flex-direction: column; gap: 4px; }
  .site-header .social-menu .social-link { width: 100%; height: 44px; padding: 10px 12px; gap: 14px; justify-content: flex-start; border-color: transparent; border-radius: 4px; font-size: 12px; }
  .social-menu .social-label { display: inline; }
  .social-menu svg, .social-menu img { width: 24px; flex: none; }
}
@media (max-width: 360px) {
  .site-header .bar { padding-inline: 16px; }
  .site-header .sound { right: 16px; }
  .site-header .header-actions { gap: 8px; }
  .site-header .store-shortcut { width: 112px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .site-header .bar > nav > a:not(.news-nav) { display: none; }
}
