:root {
  --pmd-blue: #0b6595;
  --pmd-blue-dark: #084d73;
  --pmd-green: #4f8a45;
  --pmd-green-dark: #3f7038;
  --ink: #263238;
  --muted: #5f6b73;
  --line: #dce4e8;
  --surface: #ffffff;
  --surface-soft: #f5f8f9;
  --content-width: 1080px;
  --shadow: 0 2px 12px rgba(18, 52, 70, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font: 16px/1.72 Arial, Helvetica, sans-serif; }
a { color: var(--pmd-blue); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--pmd-green-dark); }
.site-header { background: #fff; border-bottom: 5px solid var(--pmd-blue); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 10; }
.header-inner { width: min(var(--content-width), calc(100% - 32px)); min-height: 104px; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.site-logo { display: block; width: min(330px, 46vw); height: 82px; object-fit: contain; object-position: left center; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.site-identity { text-align: right; }
.participation-buttons { display: flex; align-items: center; gap: 10px; }
.action-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 2px solid transparent; border-radius: 999px; font-size: .92rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 7px rgba(18,52,70,.14); transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
.action-button:hover { transform: translateY(-1px); box-shadow: 0 4px 11px rgba(18,52,70,.2); }
.action-button:focus-visible { outline: 3px solid rgba(11,101,149,.3); outline-offset: 3px; }
.action-subscribe { color: #fff; background: var(--pmd-green); border-color: var(--pmd-green); }
.action-subscribe:hover { color: #fff; background: var(--pmd-green-dark); border-color: var(--pmd-green-dark); }
.action-unsubscribe { color: var(--pmd-blue-dark); background: #fff; border-color: var(--pmd-blue); }
.action-unsubscribe:hover { color: #fff; background: var(--pmd-blue); }
.action-icon { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }
.site-title { margin: 0; color: var(--pmd-blue-dark); font-size: clamp(1.05rem, 2vw, 1.45rem); line-height: 1.25; }
.site-subtitle { margin: .25rem 0 0; color: var(--pmd-green-dark); font-size: .92rem; }
.accent-bar { height: 5px; background: linear-gradient(90deg, var(--pmd-green) 0 38%, var(--pmd-blue) 38% 100%); }
.layout { width: min(var(--content-width), calc(100% - 32px)); margin: 34px auto 64px; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 48px; align-items: start; }
.content { min-width: 0; }
.content h1 { color: var(--pmd-blue-dark); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 1.4rem; padding-bottom: .65rem; border-bottom: 3px solid var(--pmd-green); }
.content h2 { color: var(--pmd-blue); margin: 2.5rem 0 .75rem; font-size: 1.65rem; }
.content h3 { color: var(--pmd-blue); margin: 2.2rem 0 .65rem; font-size: 1.38rem; }
.content h4 { color: var(--pmd-blue-dark); margin: 2rem 0 .55rem; font-size: 1.24rem; border-left: 5px solid var(--pmd-green); padding-left: .7rem; }
.content p { margin: .75rem 0 1rem; }
.content ul, .content ol { margin: .65rem 0 1.25rem; padding-left: 1.65rem; }
.content li { margin: .35rem 0; padding-left: .2rem; }
.content li::marker { color: var(--pmd-green); }
.content strong { color: #17252c; }
.content code { background: #eef3f5; border-radius: 4px; padding: .12rem .35rem; }
.content blockquote { margin: 1.2rem 0; padding: .7rem 1rem; border-left: 5px solid var(--pmd-green); background: var(--surface-soft); color: var(--muted); }
.toc { position: sticky; top: 138px; border-left: 1px solid var(--line); padding-left: 22px; }
.toc-title { color: var(--pmd-blue-dark); font-weight: 700; margin-bottom: .6rem; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: .36rem 0; }
.toc a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.toc a:hover { color: var(--pmd-blue); }
.site-footer { color: #fff; background: var(--pmd-blue-dark); border-top: 5px solid var(--pmd-green); }
.footer-inner { width: min(var(--content-width), calc(100% - 32px)); margin: auto; padding: 24px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer a { color: #fff; }
@media (max-width: 820px) {
  .header-inner { min-height: 88px; }
  .site-logo { width: min(260px, 58vw); height: 68px; }
  .site-subtitle { display: none; }
  .layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 520px) {
  .site-identity { display: none; }
  .site-logo { width: min(330px, 86vw); }
}

@media (max-width: 1080px) {
  .site-identity { display: none; }
}
@media (max-width: 820px) {
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; padding: 10px 0 12px; }
  .header-actions, .participation-buttons { width: 100%; margin: 0; }
  .action-button { flex: 1 1 0; }
}
@media (max-width: 520px) {
  .action-button { padding: 9px 10px; font-size: .86rem; }
}
