*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: #fff;
  color: #333;
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  font-family: inherit;
}

.wrap {
  width: 980px;
  max-width: 100%;
  margin: 0 auto;
}

.flex {
  display: flex;
  align-items: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-image-link {
  display: block;
  cursor: pointer;
}

#beggin,
#instructions,
#form {
  scroll-margin-top: 60px;
}

.header-top {
  height: 50px;
  background: #0b72b5;
  color: #fff;
}

.header-top .wrap {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.header-date {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 14px;
  white-space: nowrap;
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 16px;
}

.header-logo img {
  width: 160px;
  height: 18px;
}

.todays-paper {
  display: flex;
  align-items: center;
}

.todays-paper img {
  width: 107px;
  height: 18px;
}

.search-btn {
  border-left: 1px solid #fff;
  padding: 0 10px;
  display: flex;
  align-items: center;
  height: 24px;
}

.search-btn img {
  width: 18px;
  height: 18px;
}

.nav-main {
  height: 35px;
  background: #f5f5f5;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #666;
  overflow: hidden;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.nav-sub {
  height: 25px;
  background: #ebebeb;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #666;
  overflow: hidden;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.site-header.compact .nav-main,
.site-header.compact .nav-sub {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.nav-main .wrap,
.nav-sub .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-main a:hover,
.nav-sub a:hover {
  color: #0b72b5;
}

/* Expand menu */
.menu-panel {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #d8d8d8;
  padding: 16px 20px 24px;
  z-index: 120;
}

.menu-panel.open {
  display: block;
}

.menu-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d8d8d8;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.menu-panel-head img {
  width: 123px;
  height: 13px;
}

.menu-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

.menu-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  border-bottom: 1px solid #d8d8d8;
  padding-bottom: 12px;
}

.menu-cols a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: #666;
  padding: 4px 0;
}

.page {
  padding: 24px 0 0;
}

.layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.article-col {
  width: 640px;
  max-width: 100%;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
}

.article-category {
  font-size: 14px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.article-headline {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin-bottom: 16px;
}

.byline {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.byline .author {
  color: #0b72b5;
  font-weight: 700;
}

.byline .handle {
  color: #666;
  font-weight: 400;
}

.dateline {
  font-size: 12px;
  color: #333;
  margin-bottom: 16px;
}

.dateline a {
  color: #666;
}

.share-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 22px;
}

.share-icons span {
  font-size: 16px;
  color: #333;
  letter-spacing: 0.02em;
}

.share-icons a {
  display: flex;
  align-items: center;
}

.share-icons img {
  height: 18px;
  width: auto;
}

.main-image {
  margin: 0 0 8px;
}

.main-image img {
  width: 100%;
}

.main-image figcaption {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #686868;
  margin-top: 6px;
}

.article-body p {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: #333;
  margin: 0 0 28px;
}

.article-body a {
  color: #004985;
  font-weight: 700;
}

.article-body h2 {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 1.25;
  margin: 8px 0 18px;
}

.article-body h3 {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 4px 0 12px;
}

.article-body ul,
.article-body ol {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: #333;
  margin: 0 0 28px 22px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body blockquote {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  color: #222;
  border-left: 3px solid #0b72b5;
  padding: 4px 0 4px 16px;
  margin: 0 0 28px;
}

.article-body .inline-image {
  margin: 0 0 28px;
}

.article-body .inline-image img {
  width: 100%;
  display: block;
}

.editor-note {
  background: #f4f7fa;
  border-left: 4px solid #0b72b5;
  padding: 16px 18px 6px;
  margin: 0 0 28px;
}

.editor-note h3 {
  margin-top: 0;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.editor-note p,
.editor-note li {
  font-size: 16px;
}

.important-note {
  background: #fff8e8;
  border: 1px solid #ead9a8;
  padding: 14px 16px;
  font-size: 16px;
}

.related-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #222;
  background: #f0f7ff;
  border-left: 4px solid #1a56db;
  padding: 16px 18px;
  margin: 0 0 20px;
}

.related-note-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.related-note > span > strong:first-child {
  color: #1a56db;
}

.newsletter {
  width: 80%;
  margin: 10px auto 36px;
  text-align: center;
}

.newsletter h3 {
  color: #0b72b5;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.newsletter input[type="email"] {
  width: 100%;
  height: 38px;
  border: 1px solid #e3e3e3;
  background: #ededed;
  border-radius: 5px;
  padding: 0 15px;
  font-size: 15px;
  margin-bottom: 8px;
  outline: none;
}

.newsletter .nl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  border: none;
  border-radius: 5px;
  background: #1677be;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.newsletter .legal {
  font-size: 11px;
  line-height: 1.3;
  color: #666;
  margin-top: 10px;
}

.newsletter .legal a {
  color: #1677be;
  text-decoration: underline;
  font-weight: 500;
}

.read-next {
  margin: 10px 0 30px;
}

.read-next-label {
  border-bottom: 2px solid #004985;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.read-next-label span {
  display: inline-block;
  background: #004985;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 7px;
}

.read-next-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.read-next-item {
  width: 48%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.read-next-item + .read-next-item {
  border-left: 1px solid #ddd;
  padding-left: 16px;
}

.read-next-item > a {
  width: 32%;
  min-width: 90px;
  flex-shrink: 0;
}

.read-next-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.read-next-item p {
  width: 65%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #333;
}

.mobile-news {
  display: none;
}

.mobile-news-block {
  margin: 10px auto 18px;
}

.mobile-news-label {
  width: 100%;
  height: 30px;
  background: #004985;
  margin-bottom: 10px;
  overflow: hidden;
}

.mobile-news-label span {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 8px 0;
}

.mobile-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 4%;
}

.mobile-news-card img {
  width: 100%;
  height: 25vw;
  object-fit: cover;
}

.mobile-news-card p {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #333;
  margin-top: 6px;
}

.article-tags {
  border-top: 1px solid #989898;
  margin: 20px 0 10px;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.article-tags a {
  color: #0b72b5;
}

.mobile-nl {
  margin-top: 16px;
}

/* Comments */
.conversation {
  margin: 20px 0 30px;
}

.conversation h2 {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
}

.comment-bar {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}

.comment-bar a {
  color: #0b72b5;
}

.comment-compose {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.avatar.guest {
  background: #7b5ea7;
}

.avatar.azriel {
  background: #2e7d32;
}

.avatar.kukut {
  background: #5b9bd5;
}

.comment-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-height: 54px;
  padding: 10px 12px;
  color: #999;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.comment-tools {
  display: flex;
  gap: 8px;
  color: #888;
  font-size: 11px;
  font-weight: 700;
}

.sort-row {
  font-size: 13px;
  color: #555;
  margin-bottom: 16px;
}

.comment {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.comment-body strong {
  font-size: 14px;
  color: #111;
}

.comment-meta {
  font-size: 12px;
  color: #888;
  margin-left: 6px;
  font-weight: 400;
}

.comment-body p {
  font-size: 14px;
  line-height: 1.45;
  color: #222;
  margin: 6px 0 8px;
}

.comment-update {
  background: #eff5ff;
  border-left: 4px solid #2e7cf6;
  border-radius: 4px;
  padding: 10px 12px;
  margin: 8px 0 10px;
  color: #1a1a1a;
}

.comment-actions {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #777;
}

.comment-actions a {
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  font-size: 12px;
}

.openweb {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #999;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 8px;
}

.openweb a {
  color: #888;
}

.disclaimer {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 12px;
  line-height: 1.6;
  color: #686868;
  margin: 18px 0 40px;
}

.disclaimer a {
  color: #0b72b5;
  font-weight: 700;
}

/* Sidebar */
.sidebar-tabs {
  display: flex;
  gap: 5px;
}

.sidebar-tabs a {
  background: #ededed;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  border-radius: 10px 10px 0 0;
}

.sidebar-tabs a.active,
.sidebar-tabs a:hover {
  background: #0b72b5;
  color: #fff;
}

.sidebar-panel {
  display: none;
  border: 1px solid #ededed;
  padding: 10px 8px 6px;
}

.sidebar-panel.active {
  display: block;
}

.sidebar-item {
  display: flex;
  gap: 10px;
  margin: 8px 6px 14px;
}

.sidebar-item a {
  flex-shrink: 0;
}

.sidebar-item img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-item .cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #c41230;
  letter-spacing: 0.03em;
}

.sidebar-item h4 {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 14px;
  line-height: 18px;
  color: #000;
  font-weight: 700;
  margin-top: 4px;
}

.sidebar-nl {
  margin-top: 28px;
  background: #f2f2f2;
  border-radius: 8px;
  padding: 22px 18px 18px;
}

.sidebar-nl h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.sidebar-nl input[type="email"] {
  width: 100%;
  height: 40px;
  border: 1px solid #e3e3e3;
  background: #fff;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
}

.sidebar-nl .nl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 4px;
  background: #0b72b5;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.sidebar-nl .legal {
  font-size: 11px;
  line-height: 1.35;
  color: #666;
  margin-top: 10px;
}

.sidebar-nl .legal a {
  color: #0b72b5;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #ddd;
  margin-top: 40px;
  padding: 50px 0 20px;
}

.footer-cols {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-cols section {
  width: 22%;
}

.footer-cols h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid #aaa;
  padding: 10px 0;
  margin-bottom: 10px;
}

.footer-cols li {
  list-style: none;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 14px;
  padding-top: 5px;
}

.footer-cols a {
  color: inherit;
  text-decoration: none;
}

.copyright {
  background: #ddd;
  text-align: center;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 12px;
  color: #000;
  padding: 10px 0 28px;
}

@media (max-width: 1023px) {
  .wrap {
    width: 93%;
  }

  .header-date,
  .todays-paper,
  .nav-main,
  .nav-sub {
    display: none;
  }

  #beggin,
  #instructions,
  #form {
    scroll-margin-top: 60px;
  }

  .menu-panel {
    left: 16px;
    transform: none;
    margin-left: 0;
  }

  .layout {
    flex-direction: column;
  }

  .article-col,
  .sidebar {
    width: 100%;
    padding-top: 0;
  }

  .article-headline {
    font-size: 26px;
  }

  .sidebar {
    margin-top: 20px;
  }

  .footer-cols {
    flex-wrap: wrap;
  }

  .footer-cols section {
    width: 46%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .mobile-news {
    display: block;
    width: 100%;
    margin: 10px auto 20px;
  }

  .sidebar {
    display: none;
  }

  .read-next-grid {
    flex-direction: column;
  }

  .read-next-item,
  .read-next-item + .read-next-item {
    width: 100%;
    border: none;
    padding-left: 0;
  }

  .newsletter {
    width: 100%;
  }

  .footer-cols section {
    width: 100%;
  }
}
