.faradon-news,
.news-home {
  border-top: 1px solid var(--line);
  background: var(--paper);
  scroll-margin-top: 76px;
}
.news-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.news-intro {
  color: var(--slate);
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.news-text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  flex-shrink: 0;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}
.news-text-link:hover { text-decoration: underline; }
.news-arrow { display: inline-block; transition: transform .2s ease; }
.news-text-link:hover .news-arrow,
.news-card__link:hover .news-arrow { transform: translate(2px, -2px); }
.news-results:focus { outline: none; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.news-card { min-width: 0; border-top: 1px solid var(--ink); }
.news-card__link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem 0 1rem;
  border-radius: 2px;
}
.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .055em;
  color: var(--slate);
}
.news-card__category { text-transform: uppercase; color: var(--graphite); }
.news-card__title {
  margin-top: 1.5rem;
  font-size: clamp(1.375rem, 1.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.news-card__link:hover .news-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.news-card__excerpt {
  margin: 1rem 0 1.75rem;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--slate);
  overflow-wrap: anywhere;
}
.news-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: .8125rem;
}
.news-card__author { color: var(--slate); }
.news-card__read { display: inline-flex; align-items: center; gap: .25rem; font-weight: 500; }
.news-image { min-width: 0; margin: 0; }
.news-image__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #e8eaee;
  border-radius: 4px;
}
.news-image__picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.news-image--card { margin-bottom: 1.5rem; }
.news-image--card .news-image__picture { object-fit: cover; }
.news-image--cover { margin-top: 2.5rem; }
.news-image--cover .news-image__media,
.news-image--body .news-image__media { max-height: 900px; }
.news-image__caption {
  margin-top: .75rem;
  color: var(--slate);
  font-size: .8125rem;
  line-height: 1.55;
  letter-spacing: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.news-image__placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  text-align: center;
  color: var(--slate);
}
.news-image__unavailable { font-size: .875rem; font-weight: 500; color: var(--graphite); }
.news-image__alt { max-width: 42ch; font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.news-image--card .news-image__alt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.news-image--cover .is-unavailable,
.news-image--body .is-unavailable { min-height: 160px; }
.news-state {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 168px;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.news-state__copy { flex: 1; }
.news-state__title { font-size: 1.125rem; font-weight: 500; letter-spacing: -.015em; }
.news-state__description { margin-top: .5rem; color: var(--slate); font-size: .9375rem; }
.news-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1rem;
  border: 1px solid var(--mist);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.news-button:hover { border-color: var(--ink); background: #10141805; }
.news-loading-indicator {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--mist);
  border-top-color: var(--graphite);
  border-radius: 50%;
  animation: news-loading .8s linear infinite;
}
@keyframes news-loading { to { transform: rotate(360deg); } }
.faradon-news a:focus-visible,
.faradon-news button:focus-visible,
.news-home a:focus-visible,
.news-home button:focus-visible,
.news-page a:focus-visible,
.news-page button:focus-visible,
.news-page summary:focus-visible {
  outline: 2px solid var(--gp);
  outline-offset: 6px;
}
.news-page { min-height: 100svh; display: flex; flex-direction: column; }
.news-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: #f4f5f7ed;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.news-site-header__inner { display: flex; align-items: center; gap: 2.5rem; min-height: 76px; }
.news-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.25rem; letter-spacing: -.03em; white-space: nowrap; }
.news-brand img { width: 28px; height: 28px; }
.news-brand-group { display: flex; align-items: center; gap: .9rem; }
.news-brand-parent { font-size: .75rem; color: var(--slate); white-space: nowrap; }
.news-desktop-nav { display: flex; gap: 1.75rem; align-items: center; font-size: .9375rem; font-weight: 500; }
.news-desktop-nav a { white-space: nowrap; }
.news-desktop-nav a:hover,
.news-desktop-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .45em; }
.news-site-header__action { margin-left: auto; }
.news-site-header__actions { display: flex; gap: .5rem; margin-left: auto; }
.news-mobile-menu { display: none; }
.news-mobile-menu summary { list-style: none; cursor: pointer; font-size: .875rem; padding: .6rem 0 .6rem .6rem; }
.news-mobile-menu summary::-webkit-details-marker { display: none; }
.news-mobile-menu summary::after { content: "+"; display: inline-block; width: 1rem; text-align: right; }
.news-mobile-menu[open] summary::after { content: "−"; }
.news-mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100svh - 76px); overflow-y: auto; padding: 1.25rem var(--gutter) 1.5rem; display: flex; flex-direction: column; gap: 1rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px #1014180a; }
body[data-news-brand] .nav .menu-btn { z-index: 2; }
body[data-news-brand] .nav .menu-btn.is-open { color: var(--paper); }
body[data-news-brand] .nav .mobile-menu { overflow-y: auto; justify-content: flex-start; padding-top: 100px; padding-bottom: 2rem; }
.news-page-main { width: 100%; flex: 1; padding: clamp(4rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem); }
.news-page-heading { padding-bottom: clamp(3rem, 6vw, 5rem); }
.news-page-heading h1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -.045em; }
.news-page .news-grid { row-gap: 4rem; }
.news-back-link { margin-bottom: 3rem; }
.news-article { max-width: 850px; margin-inline: auto; }
.news-article__header { padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.news-article__title {
  max-width: 22ch;
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.news-article__deck { margin-top: 1.75rem; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.55; color: var(--graphite); text-wrap: pretty; }
.news-article__byline { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; font-size: .8125rem; color: var(--slate); }
.news-article__author { color: var(--ink); font-weight: 500; }
.news-article__body { max-width: 730px; margin: 3rem auto 0; font-size: 1.0625rem; line-height: 1.8; color: var(--graphite); overflow-wrap: anywhere; }
.news-article__body > * + * { margin-top: 1.5rem; }
.news-article__body p { white-space: pre-line; }
.news-article__body h2,
.news-article__body h3 { color: var(--ink); margin-top: 3rem; margin-bottom: 1.25rem; text-wrap: pretty; }
.news-article__body h2 { font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1.2; }
.news-article__body h3 { font-size: 1.5rem; line-height: 1.25; }
.news-article__body ul,
.news-article__body ol { padding-left: 1.4em; }
.news-article__body ul { list-style: disc; }
.news-article__body ol { list-style: decimal; }
.news-article__body li + li { margin-top: .65rem; }
.news-article__body blockquote { margin: 2.5rem 0; padding: .5rem 0 .5rem 1.5rem; border-left: 2px solid var(--gp); color: var(--ink); font-size: 1.25rem; line-height: 1.6; }
.news-article__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; color: var(--ink); }
.news-article__link:hover { color: var(--gp); }
.news-article__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.news-site-footer { padding: 3rem 0; background: var(--void); color: var(--paper); }
.news-site-footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.news-site-footer__wordmark { font-size: 1.25rem; font-weight: 600; letter-spacing: -.03em; }
.news-site-footer p { max-width: 26rem; margin-top: .75rem; color: #f4f5f7a8; font-size: .875rem; }
.news-site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-size: .875rem; }
.news-site-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
@media (min-width: 861px) and (max-width: 1080px) {
  .nav .nav-links { gap: 1.1rem; }
  .nav .nav-inner { gap: 1.5rem; }
  .news-desktop-nav { gap: 1.1rem; }
  .news-site-header__inner { gap: 1.5rem; }
}
@media (max-width: 1240px) {
  body[data-news-brand="GridPilot AI"] .nav-links,
  body[data-news-brand="GridPilot AI"] .nav-actions,
  body[data-news-brand="GridPilot AI"] .nav-divider,
  body[data-news-brand="GridPilot AI"] .nav-brand > .by-faradon,
  body[data-news-brand="GridPilot AI"] .news-desktop-nav,
  body[data-news-brand="GridPilot AI"] .news-brand-parent { display: none; }
  body[data-news-brand="GridPilot AI"] .menu-btn { display: block; }
  body[data-news-brand="GridPilot AI"] .news-mobile-menu { display: block; margin-left: auto; }
  body[data-news-brand="GridPilot AI"] .news-site-header__inner { gap: 1rem; }
  body[data-news-brand="GridPilot AI"] .news-site-header__actions { margin-left: 0; }
}
@media (max-width: 860px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
  .news-desktop-nav { display: none; }
  .news-site-header__inner { gap: 1rem; min-height: 68px; }
  .news-mobile-menu { display: block; margin-left: auto; }
  .news-site-header__action { margin-left: 0; }
}
@media (max-width: 600px) {
  .news-section-head { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .news-grid { grid-template-columns: 1fr; gap: 2rem; }
  .news-card__title { font-size: 1.625rem; }
  .news-card__link { padding-top: 1.25rem; }
  .news-card__excerpt { margin-bottom: 1rem; }
  .news-card__footer { padding-top: .5rem; }
  .news-state { flex-wrap: wrap; gap: 1rem; }
  .news-state .news-button { margin-left: 0; }
  .news-site-header__action { display: none; }
  .news-site-header__actions { display: none; }
  .news-site-footer__inner { flex-direction: column; gap: 2rem; }
  .news-article__body { font-size: 1rem; line-height: 1.8; }
  .news-article__body blockquote { padding-left: 1rem; font-size: 1.125rem; }
  .news-back-link { margin-bottom: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .news-loading-indicator { animation: none; }
  .news-arrow { transition: none; }
}
