﻿/* ==========================================================================
   NEWS & EVENTS
   Palette: page #EFE1D5 · cream #EFE0D2 · peach #EEC08D
            orange #CC8428 · rust #B06A1C · brown #8A6840 · ink #0A0A0A
   ========================================================================== */
.page-news {
  --n-sand: #EFE1D5;
  --n-cream: #EFE0D2;
  --n-peach: #EEC08D;
  --n-orange: #CC8428;
  --n-rust: #B06A1C;
  --n-brown: #8A6840;
  --n-ink: #0A0A0A;
  --n-ink-70: rgba(10, 10, 10, .7);
  --n-ink-55: rgba(10, 10, 10, .55);
  --n-shadow: 60, 38, 16;
  --n-radius: 22px;
  --n-ease: cubic-bezier(.2, .8, .2, 1);
  background: var(--n-sand);
}
.page-news .site-footer { --footer-curve: clamp(72px, 12vw, 120px); }
.page-news .footer-curve { top: -2px; }

/* Solid dark bar: the sand background would make a transparent header unreadable */
.page-news .site-header,
.page-news .site-header.is-scrolled {
  background: rgba(10, 10, 10, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
  border-bottom: 1px solid rgba(238, 192, 141, .2);
}

.news-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 2%, rgba(238, 192, 141, .55), transparent 30%),
    radial-gradient(circle at 0% 55%, rgba(239, 224, 210, .4), transparent 34%),
    var(--n-sand);
  color: var(--n-ink);
  padding: calc(102px + clamp(2.2rem, 4.5vw, 4rem)) 0 clamp(5rem, 9vw, 8.5rem);
}
.news-page a { text-decoration: none; color: inherit; }
.news-inner {
  position: relative;
  z-index: 1;
  width: calc(100% - clamp(2rem, 4vw, 3.5rem));
  max-width: none;
  margin: 0 auto;
}

/* ---- Breadcrumb ---- */
.news-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: clamp(1.4rem, 2.6vw, 2.2rem);
  font-family: var(--font-th);
  font-size: .82rem;
  color: var(--n-ink-55);
}
.news-breadcrumb a { transition: color .2s ease; }
.news-breadcrumb a:hover { color: var(--n-rust); }
.news-breadcrumb span[aria-hidden="true"] { color: var(--n-brown); }
.news-breadcrumb-current {
  max-width: min(38rem, 70vw);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--n-ink);
  font-weight: 500;
}

/* ---- Shared ---- */
.news-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--n-rust);
}
.news-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--n-rust);
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin: 0;
  font-family: var(--font-th);
  font-size: .8rem;
  font-weight: 500;
  color: var(--n-brown);
}
.news-meta time { display: inline-flex; align-items: center; gap: .4rem; }
.news-meta time::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--n-orange);
}
.news-pill {
  display: inline-flex;
  align-items: center;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--n-ink);
  color: var(--n-peach);
  font-family: var(--font-th);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}

/* Primary button */
.news-page .news-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  min-height: 52px;
  padding: 0 .45rem 0 1.7rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--n-orange), var(--n-rust));
  color: var(--n-cream);
  font-family: var(--font-th);
  font-size: .96rem;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(176, 106, 28, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .3s var(--n-ease), box-shadow .3s ease;
}
.news-page .news-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--n-peach), var(--n-orange));
  opacity: 0;
  transition: opacity .3s ease;
}
.news-page .news-btn svg {
  flex: none;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(239, 224, 210, .18);
  transition: transform .3s var(--n-ease), background .3s ease;
}
.news-page .news-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(176, 106, 28, .42); }
.news-page .news-btn:hover::before { opacity: 1; }
.news-page .news-btn:hover svg { transform: translateX(3px); background: rgba(10, 10, 10, .18); }
.news-page .news-btn:focus-visible { outline: 2px solid var(--n-ink); outline-offset: 3px; }

/* ---- Page header, same treatment as the Why PETPAL heading ---- */
.news-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.news-kicker--ornament {
  justify-content: center;
  gap: .75rem;
  margin-bottom: .55rem;
  letter-spacing: .32em;
  color: #8a6848;
}
.news-kicker--ornament::before { content: none; }
.news-kicker--ornament span {
  position: relative;
  width: clamp(1.7rem, 4vw, 2.65rem);
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.news-kicker--ornament span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.news-title {
  margin: 0;
  font-family: var(--font-th);
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #1a120c;
}
.news-rule {
  display: block;
  width: 3.15rem;
  height: 3px;
  margin: .75rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #e2a44c 18%, #f4d08a 50%, #c4842a 82%, transparent);
  box-shadow: 0 0 10px rgba(202, 134, 39, .45);
}
.news-sub {
  max-width: 42rem;
  margin: 1.1rem auto 0;
  font-family: var(--font-th);
  font-size: clamp(.88rem, 1.1vw, 1rem);
  line-height: 1.75;
  color: #6d5c4c;
}

/* ---- Browse panel: category buttons and search ---- */
.news-browse {
  margin: 0 0 clamp(1.4rem, 2.5vw, 2rem);
}
.news-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
.news-section-heading h2 {
  margin: .4rem 0 0;
  font-family: var(--font-th);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--n-ink);
}
.news-section-heading > p {
  margin: 0 0 .25rem;
  font-family: var(--font-th);
  font-size: .86rem;
  color: var(--n-brown);
}
.news-section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .3rem;
  font-family: var(--font-th);
  font-size: .9rem;
  font-weight: 600;
  color: var(--n-rust);
  transition: gap .25s ease, color .25s ease;
}
.news-section-heading > a:hover { gap: .75rem; color: var(--n-ink); }
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  width: 100%;
  margin: 0;
}
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  padding: .22rem;
  border-radius: 999px;
  background: #f4eee6;
}
.news-tab {
  min-height: 36px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #6d5a48;
  font-family: var(--font-th);
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.news-tab:hover { background: rgba(255, 255, 255, .7); color: var(--n-ink); }
.news-tab.is-active {
  background: #1a120c;
  color: #f6efe4;
  box-shadow: 0 4px 10px rgba(26, 18, 12, .18);
}
.news-tab:focus-visible { outline: 2px solid var(--n-rust); outline-offset: 2px; }
.news-tools {
  display: flex;
  flex: 1 1 20rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  max-width: 100%;
  margin-left: auto;
}
.news-dates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  max-width: 100%;
  min-height: 42px;
  padding: .28rem .45rem .28rem .35rem;
  border-radius: 12px;
  background: #f7f3ee;
  border: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.news-dates:focus-within {
  background: #fff;
  border-color: var(--n-orange);
  box-shadow: 0 0 0 3px rgba(204, 132, 40, .16);
}
.news-date {
  position: relative;
  display: flex;
  align-items: center;
  gap: .15rem;
  min-width: 0;
  height: 34px;
  padding: 0 .3rem 0 .6rem;
  border-radius: 9px;
  background: #fff;
  border: 1px solid rgba(138, 104, 64, .14);
}
.news-date.is-invalid {
  border-color: #c2410c;
}
.news-date > span {
  flex: none;
  font-family: var(--font-th);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #8a6848;
}
.news-date select {
  appearance: none;
  -webkit-appearance: none;
  height: 28px;
  margin: 0;
  padding: 0 .9rem 0 .05rem;
  border: 0;
  border-radius: 6px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%238a6848' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .12rem center;
  color: var(--n-ink);
  font-family: var(--font-th);
  font-size: .78rem;
  line-height: 28px;
  cursor: pointer;
}
.news-date select[data-part="day"] { width: 3.2rem; }
.news-date select[data-part="month"] { width: 4.15rem; }
.news-date select[data-part="year"] { width: 4.55rem; }
.news-date select:focus-visible {
  outline: 2px solid var(--n-orange);
  outline-offset: 1px;
}
.news-date-sep {
  flex: none;
  width: 10px;
  height: 1px;
  background: #c4ad96;
}
.news-search { position: relative; flex: 1 1 220px; width: auto; min-width: 0; max-width: 280px; }
.news-search svg {
  position: absolute;
  left: .9rem;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: #8a6848;
  pointer-events: none;
}
.news-search input {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  padding: 0 1rem 0 2.45rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f7f3ee;
  color: var(--n-ink);
  font-family: var(--font-th);
  font-size: .86rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.news-search input::placeholder { color: #a08b76; }
.news-search input:focus {
  background: #fff;
  border-color: var(--n-orange);
  box-shadow: 0 0 0 3px rgba(204, 132, 40, .16);
}

/* ---- Cards: tag + badge on image, title, excerpt, date + read more ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.9rem, 1.5vw, 1.25rem);
}
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(138, 104, 64, .12);
  box-shadow: 0 4px 14px rgba(var(--n-shadow), .08);
  transition: transform .3s var(--n-ease), box-shadow .3s ease;
}
.news-card:hover,
.news-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(var(--n-shadow), .16);
}
.news-card.is-hidden { display: none; }
.news-card.is-entering { animation: news-card-in .45s var(--n-ease) both; }
@keyframes news-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.news-card-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  color: inherit;
  outline: none;
}
.news-card-link:focus-visible { outline: 3px solid var(--n-orange); outline-offset: -3px; border-radius: 12px; }
.news-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--n-cream);
}
.news-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--n-ease);
}
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card-tag,
.news-card-badge {
  position: absolute;
  top: .6rem;
  max-width: calc(100% - 5.5rem);
  overflow: hidden;
  padding: .22rem .6rem;
  border-radius: 6px;
  font-family: var(--font-th);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.news-card-tag { left: .6rem; background: rgba(10, 10, 10, .78); color: var(--n-peach); }
.news-card-badge { right: .6rem; background: var(--n-orange); color: #fff; }
.news-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: .85rem .95rem .8rem;
}
.news-card-title {
  margin: 0;
  font-family: var(--font-th);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.45;
  color: #171717;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .25s ease;
}
.news-card:hover .news-card-title { color: var(--n-rust); }
.news-card-desc {
  margin: .4rem 0 0;
  font-family: var(--font-th);
  font-size: .8rem;
  line-height: 1.6;
  color: #6d5c4c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-top: auto;
  padding-top: .85rem;
  font-family: var(--font-th);
  font-size: .74rem;
}
.news-card-foot time { color: #8a7562; line-height: 1.4; }
.news-card-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 600;
  color: var(--n-rust);
  white-space: nowrap;
}
.news-card-more > span[aria-hidden] { font-size: 1.05rem; line-height: 1; transition: transform .25s ease; }
.news-card:hover .news-card-more > span[aria-hidden] { transform: translateX(3px); }

/* ---- Numbered pager ---- */
.news-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
  font-family: var(--font-th);
}
.news-pager[hidden] { display: none; }
.news-pager-pages { display: flex; gap: .3rem; }
.news-pager button {
  min-width: 34px;
  height: 34px;
  padding: 0 .55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--n-ink);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.news-pager .news-pager-step { padding: 0 .8rem; color: var(--n-brown); }
.news-pager button:hover:not(:disabled):not(.is-active) { background: rgba(204, 132, 40, .14); color: var(--n-rust); }
.news-pager .news-pager-num.is-active {
  background: var(--n-orange);
  color: #fff;
  box-shadow: 0 6px 14px rgba(204, 132, 40, .35);
  cursor: default;
}
.news-pager button:disabled { opacity: .4; cursor: default; }
.news-pager button:focus-visible { outline: 2px solid var(--n-rust); outline-offset: 2px; }
#newsGrid { scroll-margin-top: 120px; }
.news-empty {
  display: none;
  margin: 1.5rem 0 0;
  padding: clamp(2.6rem, 5vw, 4rem) 1.5rem;
  border: 1px dashed rgba(138, 104, 64, .6);
  border-radius: 24px;
  background: rgba(239, 224, 210, .55);
  text-align: center;
  font-family: var(--font-th);
  color: var(--n-ink-70);
}
.news-empty.is-visible { display: block; }

/* ---- Article card ---- */
.news-article {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
  gap: 0 1.1rem;
  width: 100%;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(138, 104, 64, .12);
  box-shadow: 0 18px 44px rgba(var(--n-shadow), .1);
}
.news-article-body:only-child { grid-column: 1 / -1; }
.news-gallery {
  position: sticky;
  top: 112px;
  padding: 1.15rem 0 1.15rem 1.15rem;
}
.news-gallery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f1ea;
}
.news-gallery-stage img {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
}
.news-gallery-nav {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .75rem;
}
.news-gallery-thumbs {
  display: flex;
  flex: 1 1 auto;
  gap: .5rem;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.news-gallery-thumbs::-webkit-scrollbar { display: none; }
.news-gallery-thumb {
  flex: none;
  width: 74px;
  height: 74px;
  padding: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.news-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-gallery-thumb.is-active { border-color: #ee4d2d; }
.news-gallery-thumb:focus-visible { outline: 2px solid var(--n-rust); outline-offset: 2px; }
.news-gallery-arrow {
  flex: none;
  width: 28px;
  height: 56px;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.news-gallery-arrow:hover { background: rgba(0, 0, 0, .75); }
.news-gallery-arrow:focus-visible { outline: 2px solid var(--n-rust); outline-offset: 2px; }
.news-article-body { min-width: 0; padding: 1.35rem 1.45rem 1.6rem 0; }
.news-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.news-article-meta time {
  font-family: var(--font-th);
  font-size: .84rem;
  color: #8b8178;
}
.news-article-tag {
  display: inline-flex;
  align-items: center;
  padding: .28rem .75rem;
  border-radius: 999px;
  background: #e7f6df;
  color: #3c8f32;
  font-family: var(--font-th);
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
}
.news-article-title {
  margin: .85rem 0 0;
  font-family: var(--font-th);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  color: #171717;
}
.news-article-lead {
  margin: .8rem 0 0;
  font-family: var(--font-th);
  font-size: .95rem;
  line-height: 1.75;
  color: #6b7280;
}
.news-article-copy {
  min-width: 0;
  margin-top: 1rem;
  font-family: var(--font-th);
  font-size: 1rem;
  line-height: 1.9;
  color: #3f3f46;
  overflow-wrap: anywhere;
}
.news-article-copy p { margin: 0 0 1.15em; }
.news-article-copy h2, .news-article-copy h3 { margin: 1.4em 0 .5em; line-height: 1.4; color: #171717; }
.news-article-copy h2 { font-size: 1.28em; }
.news-article-copy h3 { font-size: 1.12em; }
.news-article-copy ul, .news-article-copy ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.news-article-copy li { margin-bottom: .35em; }
.news-article-copy blockquote {
  margin: 1.4em 0;
  padding: .8em 1.1em;
  border-left: 3px solid var(--n-orange);
  border-radius: 0 12px 12px 0;
  background: #f8f3ec;
  color: #6d5a48;
}
.news-article-copy a { color: var(--n-rust); text-decoration: underline; text-underline-offset: .2em; }
.news-detail-nav { margin-top: clamp(1.4rem, 2.5vw, 2rem); }
.news-article-body .news-btn { margin: 1rem 0 0; padding-right: 1.7rem; }
.news-back {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 46px;
  padding: 0 1.25rem 0 .9rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, .18);
  background: rgba(239, 224, 210, .6);
  font-family: var(--font-th);
  font-weight: 600;
  color: var(--n-ink);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.news-back:hover { background: var(--n-cream); border-color: var(--n-rust); transform: translateX(-3px); }
.news-related { margin-top: clamp(3.4rem, 6vw, 5.5rem); }
.news-related .news-section-heading { margin-bottom: 1.4rem; }

.news-not-found {
  margin: 1rem 0;
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  border-radius: 30px;
  background: var(--n-cream);
  text-align: center;
  box-shadow: 0 30px 70px rgba(var(--n-shadow), .18);
}
.news-not-found .news-kicker { justify-content: center; }
.news-not-found h1 { margin: .7rem 0; font-family: var(--font-th); font-size: clamp(2rem, 5vw, 3.4rem); color: var(--n-ink); }
.news-not-found > p:not(.news-kicker) { font-family: var(--font-th); color: var(--n-ink-70); }
.news-not-found .news-btn { margin-top: 1.2rem; padding-right: 1.7rem; }


/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .news-page { padding-top: calc(78px + 2.4rem); }
  #newsGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-toolbar { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 820px) {
  .news-grid, #newsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-article { grid-template-columns: 1fr; }
  .news-gallery { position: static; padding: 1rem 1rem 0; }
  .news-article-body { padding: 1.1rem 1.15rem 1.45rem; }
}
@media (max-width: 600px) {
  .news-grid, #newsGrid { grid-template-columns: 1fr; }
  .news-breadcrumb { margin-bottom: 1.4rem; }
  .news-head { margin-bottom: 1.8rem; }
  .news-section-heading { flex-direction: column; align-items: start; gap: .35rem; }
  .news-toolbar { align-items: stretch; }
  .news-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
  .news-tabs::-webkit-scrollbar { display: none; }
  .news-tab { flex: none; }
  .news-tools, .news-dates, .news-search { flex: 1 1 100%; }
  .news-dates { height: auto; padding: .4rem; }
  .news-date { flex: 1 1 100%; min-width: 0; }
  .news-card-title { font-size: 1.02rem; }
  .news-article { border-radius: 18px; }
  .news-gallery, .news-article-body { padding: .85rem .9rem 1.15rem; }
  .news-gallery { padding-bottom: 0; }
  .news-gallery-thumb { width: 60px; height: 60px; }
}
@media (max-width: 560px) {
  .news-page { padding-top: calc(70px + 1.8rem); }
}
@media (prefers-reduced-motion: reduce) {
  .news-card, .news-card-media img, .news-btn, .news-btn::before, .news-btn svg,
  .news-tab, .news-back {
    transition: none !important;
    animation: none !important;
  }
}

/* Job posts stay ordinary news cards. The application opens in a dialog. */
.news-card:has(.news-apply-btn) .news-card-link { height: auto; }
.news-apply-btn {
  border: 0;
  border-radius: 999px;
  background: var(--n-orange, #cc8428);
  color: #fff;
  font-family: var(--font-th);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.news-apply-btn:hover { background: var(--n-rust, #b06a1c); }
.news-apply-btn:focus-visible { outline: 2px solid #4a3423; outline-offset: 3px; }
.news-card > .news-apply-btn { margin: 0 .95rem .9rem; padding: .62rem 1rem; }
.news-detail-apply {
  display: flex;
  justify-content: center;
  margin: 1.6rem 0 .2rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(138, 104, 64, .16);
}
.news-detail-apply .news-apply-btn {
  min-width: 220px;
  padding: .9rem 2rem;
  font-size: 1.05rem;
  box-shadow: 0 10px 22px rgba(204, 132, 40, .32);
}

.apply-dialog {
  width: min(640px, calc(100vw - 1.5rem));
  max-height: min(92vh, 860px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(238, 192, 141, .55), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fffaf6 100%);
  color: #1a120c;
  box-shadow: 0 30px 80px rgba(26, 18, 12, .38);
}
.apply-dialog::backdrop { background: rgba(10, 10, 10, .62); }
.apply-dialog .apply-form {
  position: relative;
  max-height: min(92vh, 860px);
  overflow: auto;
  gap: .85rem;
  padding: 1.45rem 1.5rem 1.4rem;
}
.apply-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .15rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(138, 104, 64, .14);
}
.apply-dialog-head h2 {
  margin: .1rem 0 0;
  font-family: var(--font-th);
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.apply-kicker {
  margin: 0;
  font-family: var(--font);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #a68462;
}
.apply-job-name {
  display: inline-flex;
  margin: .55rem 0 0;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(204, 132, 40, .12);
  font-family: var(--font-th);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--n-rust, #b06a1c);
}
.apply-job-name:empty { display: none; }
.apply-close {
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(138, 104, 64, .18);
  border-radius: 999px;
  background: #fff;
  color: #3b2a1c;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.apply-close:hover { background: #f6eee4; border-color: rgba(176, 106, 28, .4); }
.apply-dialog .careers-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.apply-dialog .contact-field { gap: .32rem; }
.apply-dialog .contact-field label {
  font-size: .82rem;
  color: #5c4634;
}
.apply-dialog .contact-field input,
.apply-dialog .contact-field textarea {
  min-height: 46px;
  border-radius: 14px;
  border-color: rgba(138, 104, 64, .22);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.apply-dialog .contact-field textarea { min-height: 96px; }
.apply-dialog .contact-field.is-error input,
.apply-dialog .contact-field.is-error textarea,
.apply-dialog .apply-file.is-error .apply-file-box {
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, .12);
}
.apply-file-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 58px;
  padding: .55rem .7rem;
  border: 1.5px dashed rgba(176, 106, 28, .45);
  border-radius: 16px;
  background: rgba(255, 250, 246, .8);
  cursor: pointer;
}
.apply-file-box:hover { border-color: #cc8428; background: #fff; }
.apply-dialog .apply-file-box .apply-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  box-shadow: none;
}
.apply-file-btn {
  flex: none;
  padding: .42rem .8rem;
  border-radius: 999px;
  background: #1a120c;
  color: #fff;
  font-family: var(--font-th);
  font-size: .8rem;
  font-weight: 600;
}
.apply-file-name {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-th);
  font-size: .86rem;
  color: #8a7562;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.apply-file-name.has-file { color: #1a120c; font-weight: 600; }
.apply-dialog .careers-file-note {
  font-family: var(--font-th);
  font-size: .75rem;
  color: #a08b76;
}
.apply-dialog .contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: .15rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #d4923a, #b06a1c);
  color: #fff;
  font-family: var(--font-th);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(176, 106, 28, .28);
}
.apply-dialog .contact-submit:hover { filter: brightness(1.05); }
.apply-dialog .contact-submit:disabled { opacity: .7; cursor: progress; }
.apply-dialog .contact-alert[hidden] { display: none; }
.apply-dialog .contact-alert { margin: 0; }
.apply-dialog #applyOk:not([hidden]) {
  flex-direction: column;
  align-items: center;
  margin: .4rem 0 .2rem;
  padding: 1.5rem 1rem;
  text-align: center;
}
.apply-dialog #applyOk:not([hidden])::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: .15rem;
  border-radius: 999px;
  background: #1f6b34;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}
@media (max-width: 640px) {
  .apply-dialog .careers-pair { grid-template-columns: 1fr; }
  .apply-dialog .apply-form { padding: 1.15rem 1rem 1.15rem; }
}
