/* Extracted legacy public page styles from penguin_news/detail.php. */
:root {
      --news-accent: #0f5d92;
      --news-accent-strong: #0b4269;
      --news-canvas: #fbfbfa;
      --news-heading: #17212b;
      --news-text: #394550;
      --news-muted: #737d86;
      --news-border: #dfe3e6;
    }
    html[data-theme="dark"] {
      --news-accent: #78b9eb;
      --news-accent-strong: #a8d6f7;
      --news-canvas: #0f141b;
      --news-heading: #f4f7fb;
      --news-text: #dbe4ee;
      --news-muted: #a9b5c2;
      --news-border: #303b48;
    }
    * { box-sizing: border-box; }
    html { background: var(--news-canvas); }
    body {
      min-height: 100vh;
      margin: 0;
      display: flex;
      flex-direction: column;
      background: var(--news-canvas);
      color: var(--news-text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      -webkit-font-smoothing: antialiased;
    }
    a, button { -webkit-tap-highlight-color: transparent; }
.site-header {
      width: 100%;
      max-width: 1180px;
      min-height: 66px;
      margin: 0 auto;
      padding: 10px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--news-heading);
      text-decoration: none;
      font-size: 1.28rem;
      font-weight: 750;
      letter-spacing: -.02em;
    }
    .brand img {
      width: 42px;
      height: 42px;
      border-radius: 7px;
      object-fit: cover;
    }
    .nav {
      display: flex;
      align-items: center;
      gap: 22px;
      flex-wrap: nowrap;
    }
    .nav a {
      padding: 6px 0;
      color: #52687d;
      border-bottom: 1px solid transparent;
      text-decoration: none;
      font-size: .9rem;
      font-weight: 600;
      white-space: nowrap;
    }
    .nav a:hover,
    .nav a:focus-visible,
    .nav a[aria-current="page"] {
      color: var(--news-heading);
      border-bottom-color: var(--news-heading);
      outline: none;
    }
    .page {
      width: 100%;
      max-width: 960px;
      margin: 0 auto;
      padding: 0 24px 72px;
    }
    .qn-site-footer {
      width: 100%;
      margin-top: auto;
      padding: 20px 24px;
      color: #666;
      background: transparent;
      text-align: center;
    }
    .qn-site-footer .footer-links {
      line-height: 1.9;
      text-align: center;
    }
    .qn-site-footer .footer-content { text-align: center; }
    .article {
      width: 100%;
      max-width: 820px;
      margin: 0 auto;
      padding: 42px 0 0;
      background: transparent;
    }
    .meta {
      margin: 0 0 18px;
      padding-top: 15px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      color: #858e96;
      border-top: 1px solid #aeb5bb;
      font-size: .75rem;
      font-variant-numeric: tabular-nums;
    }
    .tag {
      padding: 0;
      color: #506777;
      background: transparent;
      font-size: .73rem;
      font-weight: 700;
    }
    h1 {
      max-width: 100%;
      margin: 0 0 27px;
      color: #090c0f;
      font-size: clamp(1.35rem, 2.2vw, 1.65rem);
      font-weight: 500;
      line-height: 1.45;
      letter-spacing: -.03em;
      text-wrap: pretty;
    }
    .content {
      max-width: 72ch;
      color: #3f4a53;
      font-size: 1.06rem;
      line-height: 2;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
    }
    .main-image {
      display: block;
      width: 100%;
      max-width: 100%;
      height: auto;
      margin: 30px 0 0;
      border-radius: 2px;
      object-fit: cover;
    }
    .actions {
      margin-top: 38px;
      padding: 16px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      color: var(--news-muted);
      border-top: 1px solid var(--news-border);
      border-bottom: 1px solid var(--news-border);
      font-size: .8rem;
    }
    .action-group {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .action-btn {
      min-height: 34px;
      padding: 4px 5px 4px 0;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--news-muted);
      background: transparent;
      border: 0;
      border-radius: 0;
      cursor: pointer;
      font: inherit;
      font-variant-numeric: tabular-nums;
    }
    .action-btn:hover,
    .action-btn:focus-visible {
      color: var(--news-accent-strong);
      outline: none;
    }
    .action-btn:active { transform: translateY(1px); }
    .liked,
    .liked:hover,
    .liked:focus-visible { color: #b43a5d; }
    .back {
      min-height: 34px;
      padding: 5px 0;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: #536a7a;
      text-decoration: none;
      font-size: .8rem;
      font-weight: 650;
      white-space: nowrap;
    }
    .back:hover,
    .back:focus-visible {
      color: var(--news-accent-strong);
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 5px;
      outline: none;
    }
    .site-links {
      width: 100%;
      max-width: 820px;
      margin: 58px auto 0;
      padding: 22px 0 0;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 18px 24px;
      flex-wrap: wrap;
      background: transparent;
      border-top: 2px solid var(--news-heading);
    }
    .site-links a {
      min-height: 36px;
      padding: 6px 0;
      color: #4b6175;
      border-bottom: 1px solid transparent;
      text-decoration: none;
      font-size: .84rem;
      font-weight: 600;
    }
    .site-links a:hover,
    .site-links a:focus-visible {
      color: var(--news-accent-strong);
      border-bottom-color: var(--news-accent-strong);
      outline: none;
    }
    ::selection {
      color: var(--news-heading);
      background: #cfe7f7;
    }
    html[data-theme="dark"] .nav a,
    html[data-theme="dark"] .tag,
    html[data-theme="dark"] .back,
    html[data-theme="dark"] .site-links a { color: #aebdcb; }
    html[data-theme="dark"] .meta { border-top-color: #46515f; }
    html[data-theme="dark"] h1 { color: var(--news-heading); }
    html[data-theme="dark"] .content { color: var(--news-text); }
    @media (max-width: 640px) {
      .site-header { min-height: 62px; padding: 9px 14px; gap: 12px; }
      .brand { font-size: 1.2rem; }
      .brand img { width: 40px; height: 40px; }
      .nav { gap: 2px; overflow-x: auto; scrollbar-width: none; }
      .nav::-webkit-scrollbar { display: none; }
      .nav a { padding: 7px 8px; font-size: .82rem; }
      .page { padding: 0 14px 42px; }
      .article { padding-top: 28px; }
      .meta { margin-bottom: 14px; padding-top: 12px; font-size: .71rem; }
      h1 { margin-bottom: 21px; font-size: 1.28rem; line-height: 1.5; }
      .content { font-size: 1rem; line-height: 1.9; }
      .main-image { margin-top: 24px; }
      .actions { margin-top: 30px; padding: 14px 0; gap: 10px; }
      .action-group { gap: 8px; }
      .site-links { margin-top: 44px; padding-top: 18px; gap: 8px 18px; }
      .site-links a { font-size: .82rem; }
      .qn-site-footer { padding: 18px 14px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .action-btn:active { transform: none; }
    }

