/* News & Blogs: listing page (news.html) and article page (news-detail.html). Loaded only on those two pages.
   Cards, filter chips and pager are used by the listing; .art, .prose and .side by the article page. */

  .news-sec { padding-block: clamp(56px, 6.4vw, 118px) clamp(64px, 7vw, 130px); }
  .news-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: end; }
  .news-top p { margin: 0; font-size: clamp(14.5px, 1.05vw, 17.5px); line-height: 1.95; color: #1f2622; max-width: 44em; }

  /* category filter */
  .nfilter { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(28px, 3vw, 48px) 0 0; padding: 0; list-style: none; }
  .nfilter button { font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .03em; padding: 9px 20px; border-radius: 999px; border: 1px solid #d5dbd8; background: #fff; color: var(--ink); cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
  .nfilter button:hover { border-color: var(--green); color: var(--green-deep); }
  .nfilter button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
  .nfilter button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

  /* shared bits */
  .ncat { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
  .nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--muted, #5b6561); }
  .nmeta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #b7c0bb; margin-right: 14px; vertical-align: middle; }
  .nmore { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green-deep); }
  .nmore svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }

  /* featured post */
  .nfeat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); align-items: center; margin-top: clamp(28px, 3vw, 48px); background: var(--card); border-radius: 14px 14px 56px 14px; overflow: hidden; }
  .nfeat-img { aspect-ratio: 3 / 2; overflow: hidden; }
  .nfeat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
  .nfeat-body { padding: clamp(8px, 1vw, 16px) clamp(24px, 3vw, 56px) clamp(24px, 3vw, 44px) 0; }
  .nfeat-body h2 { margin: 12px 0 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 2.6vw, 46px); line-height: 1.08; color: var(--navy); }
  .nfeat-body p { margin: 16px 0 22px; font-size: clamp(14.5px, 1.05vw, 17px); line-height: 1.85; color: #1f2622; }
  .nfeat a.nlnk { color: inherit; text-decoration: none; }
  .nfeat:hover .nfeat-img img { transform: scale(1.05); }
  .nfeat:hover .nmore svg, .npost:hover .nmore svg { transform: translateX(4px); }

  /* post grid */
  .npgrid { list-style: none; margin: clamp(28px, 3vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 1.8vw, 32px); }
  .npgrid > li[hidden] { display: none; }
  .npost { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid #dfe4e1; border-radius: 14px 14px 40px 14px; overflow: hidden; transition: border-color .3s ease, box-shadow .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
  .npost:hover { border-color: var(--green); box-shadow: 0 22px 36px -24px rgba(8,81,42,.45); transform: translateY(-4px); }
  .npost-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #0d1511; }
  .npost-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
  .npost:hover .npost-img img { transform: scale(1.06); }
  .npost-date { position: absolute; top: 14px; left: 14px; background: #101a15; color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
  .npost-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
  .npost-body h3 { margin: 8px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 1.55vw, 27px); line-height: 1.15; color: var(--navy); }
  .npost-body p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.75; color: #3a443f; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .npost-body .nmore { margin-top: auto; }
  .npost a.nlnk { color: inherit; text-decoration: none; }
  .npost a.nlnk::after { content: ""; position: absolute; inset: 0; }   /* whole card is clickable */
  .npost { position: relative; }
  .nfeat { position: relative; }
  .nfeat a.nlnk::after { content: ""; position: absolute; inset: 0; }

  /* pager */
  .pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: clamp(32px, 3.6vw, 60px); }
  .pager a { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d5dbd8; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--ink); background: #fff; transition: background .25s ease, color .25s ease, border-color .25s ease; }
  .pager a:hover { border-color: var(--green); color: var(--green-deep); }
  .pager svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .pager a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }

  /* ===== article page ===== */
  .phero .panel .ptitle { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 4.6vw, 84px); line-height: .98; text-transform: uppercase; color: #fff; }
  .art-sec { padding-block: clamp(48px, 5.4vw, 100px) clamp(48px, 5vw, 90px); }
  .art-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 25vw, 360px); gap: clamp(28px, 4vw, 72px); align-items: start; }
  .art-head h1 { margin: 12px 0 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 3.4vw, 58px); line-height: 1.05; color: var(--navy); }
  .art-hero { margin: clamp(22px, 2.4vw, 36px) 0 0; border-radius: 14px 14px 56px 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #0d1511; }
  .art-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .prose { margin-top: clamp(24px, 2.6vw, 40px); font-size: clamp(15.5px, 1.1vw, 18px); line-height: 1.95; color: #1f2622; }
  .prose p { margin: 0 0 1.2em; }
  .prose .lead { font-size: 1.15em; line-height: 1.8; color: var(--navy); font-weight: 500; }
  .prose h2 { margin: 1.7em 0 .6em; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.2vw, 36px); line-height: 1.1; color: var(--navy); }
  .prose h3 { margin: 1.5em 0 .5em; font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 1.7vw, 27px); color: var(--navy); }
  .prose ul { margin: 0 0 1.3em; padding: 0; list-style: none; }
  .prose li { position: relative; padding: 2px 0 2px 28px; }
  .prose li::before { content: ""; position: absolute; left: 4px; top: .85em; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--green); }
  .prose blockquote { margin: 1.8em 0; padding: 20px 26px; border-left: 4px solid var(--orange); background: var(--card); border-radius: 0 12px 12px 0; font-size: 1.12em; line-height: 1.7; font-weight: 500; color: var(--navy); }
  .prose blockquote cite { display: block; margin-top: 10px; font-size: .78em; font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); }
  .prose figure { margin: 1.8em 0; }
  .prose figure img { width: 100%; height: auto; display: block; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
  .prose figcaption { margin-top: 10px; font-size: 13.5px; color: #5b6561; }

  .art-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; margin-top: clamp(28px, 3vw, 44px); padding-top: 22px; border-top: 1px solid #dfe4e1; }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
  .tags a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink); transition: background .25s ease, color .25s ease; }
  .tags a:hover { background: var(--green); color: #fff; }
  .share { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5b6561; }
  .share a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d5dbd8; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: background .25s ease, color .25s ease, border-color .25s ease; }
  .share a:hover { background: var(--green); border-color: var(--green); color: #fff; }
  .share svg { width: 18px; height: 18px; fill: currentColor; }

  .art-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(24px, 2.6vw, 40px); }
  .art-nav a { display: block; padding: 18px 22px; border: 1px solid #dfe4e1; border-radius: 12px; transition: border-color .3s ease, transform .3s ease; }
  .art-nav a:hover { border-color: var(--green); transform: translateY(-2px); }
  .art-nav small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
  .art-nav b { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 20px; line-height: 1.2; color: var(--navy); }
  .art-nav .next { text-align: right; }

  /* sidebar */
  .side { position: sticky; top: 130px; display: grid; gap: 22px; }
  .sbox { background: var(--card); border-radius: 14px; padding: 24px 24px 26px; }
  .sbox h2 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--navy); }
  .srecent { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
  .srecent a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
  .srecent img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
  .srecent b { display: block; font-size: 15px; line-height: 1.3; color: var(--ink); transition: color .25s ease; }
  .srecent small { display: block; margin-top: 4px; font-size: 12.5px; color: #5b6561; }
  .srecent a:hover b { color: var(--green); }
  .scats { list-style: none; margin: 0; padding: 0; }
  .scats a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #d6dbd8; font-size: 15px; font-weight: 600; color: var(--ink); transition: color .25s ease, padding-left .25s ease; }
  .scats li:last-child a { border-bottom: 0; }
  .scats a:hover { color: var(--green); padding-left: 6px; }
  .scats span { color: #5b6561; font-weight: 500; }
  .scta { background: var(--navy); color: #fff; }
  .scta h2 { color: #fff; }
  .scta p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.85); }

  .rel-sec { padding-block: 0 clamp(64px, 7vw, 130px); }
  .rel-sec .head { margin-bottom: 0; }

  @media (max-width: 1100px) {
    .art-grid { grid-template-columns: minmax(0, 1fr); }
    .side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scta { grid-column: 1 / -1; }
  }
  @media (max-width: 1020px) {
    .news-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .npgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nfeat { grid-template-columns: minmax(0, 1fr); }
    .nfeat-body { padding: 4px 24px 30px; }
  }
  @media (max-width: 640px) {
    .npgrid { grid-template-columns: minmax(0, 1fr); }
    .phero .panel .ptitle { font-size: clamp(34px, 9.5vw, 46px); }
    .side { grid-template-columns: minmax(0, 1fr); }
    .art-nav { grid-template-columns: minmax(0, 1fr); }
    .art-nav .next { text-align: left; }
    .nfilter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
    .nfilter button { white-space: nowrap; }
  }
  @media (prefers-reduced-motion: reduce) {
    .npost, .npost-img img, .nfeat-img img, .nmore svg { transition: none; }
  }
