@charset "UTF-8";
/* ==========================================================================
   C&C SRL High-Tech — news.css
   News hero, compact cards (homepage grid), wide rows (News archive),
   pagination, post navigation, editor prose, comments, search and 404.

   Enqueue handle: ccsrl-news. Depends on ccsrl-base.
   Design source: News.dc.html (desktop only — the three breakpoints below
   are authored here, not in the design).

   Rule: no raw hex colour in this file. Tokens come from base.css :root.
   The few rgba() values reproduce the translucent overlays of the design
   (grid lines, drop shadows) and follow the precedent set in base.css.
   ========================================================================== */

/* ==========================================================================
   1. NEWS HERO   (navy band with the faint yellow blueprint grid)
   ========================================================================== */

.cc-news-hero{
  position: relative;
  overflow: hidden;
  background: var(--cc-navy);
}

/* 64px blueprint grid, 6% yellow — decorative, aria-hidden in the markup. */
.cc-news-hero__grid{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(252,211,77,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252,211,77,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.cc-news-hero__inner{
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 56px;
}

.cc-news-hero__eyebrow{
  margin: 0 0 18px;
  font-family: var(--cc-font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cc-yellow);
}

.cc-news-hero__title{
  margin: 0 0 18px;
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 60px);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--cc-surface);
  text-wrap: balance;
}

.cc-news-hero__rule{
  display: block;
  width: 110px;
  height: 4px;
  background: var(--cc-yellow);
}

/* --- Single article variant: category + date above the title ------------- */

.cc-news-hero__meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  font-family: var(--cc-font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cc-news-hero__cat{
  color: var(--cc-yellow);
}

.cc-news-hero__date{
  color: var(--cc-on-navy-dim);
  letter-spacing: 1.5px;
}

.cc-news-hero--article .cc-news-hero__inner{
  padding-top: 64px;
  padding-bottom: 60px;
}

.cc-news-hero--article .cc-news-hero__title{
  max-width: 18ch;
  font-size: clamp(28px, 4.6vw, 52px);
}

/* --- Search results: the form sits under the rule ------------------------ */

.cc-news-hero__search{
  margin-top: 26px;
  max-width: 520px;
}

/* ==========================================================================
   2. HOMEPAGE GRID + COMPACT CARD
   ========================================================================== */

.cc-news-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.cc-news-card{
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  transition:
    transform .3s var(--cc-ease),
    box-shadow .3s var(--cc-ease),
    border-color .3s var(--cc-ease);
}

.cc-news-card:hover,
.cc-news-card:focus-within{
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(14,34,64,.12);
  border-color: var(--cc-navy);
}

.cc-news-card__media{
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--cc-navy);
  flex: 0 0 auto;
}

.cc-news-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--cc-ease);
}

.cc-news-card:hover .cc-news-card__img{
  transform: scale(1.05);
}

.cc-news-card__placeholder{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 4px;
  color: var(--cc-navy-line);
}

.cc-news-card__body{
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px 28px;
}

.cc-news-card__meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.cc-news-card__date,
.cc-news-card__cat{
  font-family: var(--cc-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cc-news-card__date{ color: var(--cc-text-faint); }
.cc-news-card__cat{  color: var(--cc-orange); }

.cc-news-card__title{
  margin: 0;
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--cc-navy);
}

.cc-news-card__link{
  color: inherit;
}

/* Stretched hit area: one real link in the DOM, the whole card is clickable. */
.cc-news-card__link::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cc-news-card__link:hover,
.cc-news-card__link:focus-visible{
  color: var(--cc-navy);
}

.cc-news-card__link:focus-visible{
  outline: 2px solid var(--cc-orange);
  outline-offset: 4px;
}

.cc-news-card__excerpt{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cc-text-muted);
}

/* ==========================================================================
   3. NEWS ARCHIVE — LIST + WIDE ROW
   ========================================================================== */

/* The archive body is tighter than the standard 96px section rhythm,
   matching the 64px of the design. */
.cc-news-archive{
  padding: 64px 0;
}

.cc-news-list{
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cc-news-row{
  position: relative;
  display: grid;
  grid-template-columns: 480px 1fr;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  color: var(--cc-navy);
  transition:
    transform .3s var(--cc-ease),
    box-shadow .3s var(--cc-ease),
    border-color .3s var(--cc-ease);
}

/* Without a cover the body takes the full width. */
.cc-news-row--noimg{
  grid-template-columns: 1fr;
}

.cc-news-row:hover,
.cc-news-row:focus-within{
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(14,34,64,.12);
  border-color: var(--cc-navy);
}

.cc-news-row__media{
  position: relative;
  overflow: hidden;
  height: 260px;
  background: var(--cc-navy);
}

.cc-news-row__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--cc-ease);
}

.cc-news-row:hover .cc-news-row__img{
  transform: scale(1.04);
}

.cc-news-row__placeholder{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 5px;
  color: var(--cc-navy-line);
}

.cc-news-row__body{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 36px;
}

.cc-news-row__meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.cc-news-row__date,
.cc-news-row__cat{
  font-family: var(--cc-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cc-news-row__date{ color: var(--cc-text-faint); }
.cc-news-row__cat{  color: var(--cc-orange); }

.cc-news-row__title{
  margin: 0;
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--cc-navy);
}

.cc-news-row__link{
  color: inherit;
}

.cc-news-row__link::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cc-news-row__link:hover,
.cc-news-row__link:focus-visible{
  color: var(--cc-navy);
}

.cc-news-row__link:focus-visible{
  outline: 2px solid var(--cc-orange);
  outline-offset: 4px;
}

.cc-news-row__excerpt{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cc-text-muted);
}

.cc-news-row__more{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-orange);
}

.cc-news-row__more::after{
  content: "\2192";
  display: inline-block;
  transition: transform .25s var(--cc-ease);
}

.cc-news-row:hover .cc-news-row__more::after,
.cc-news-row:focus-within .cc-news-row__more::after{
  transform: translateX(5px);
}

/* --- Empty state --------------------------------------------------------- */

.cc-news-empty{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 620px;
  padding: 40px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-left: 4px solid var(--cc-yellow);
}

.cc-news-empty__text{
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--cc-text-muted);
}

/* ==========================================================================
   4. PAGINATION   (the_posts_pagination / the_comments_navigation)
   ========================================================================== */

.cc-pagination,
.cc-comments__nav{
  margin-top: 48px;
}

.cc-pagination .nav-links,
.cc-comments__nav .nav-links{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cc-pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  font-family: var(--cc-font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--cc-navy);
  transition:
    background-color .25s var(--cc-ease),
    border-color .25s var(--cc-ease),
    color .25s var(--cc-ease);
}

.cc-pagination a.page-numbers:hover,
.cc-pagination a.page-numbers:focus-visible{
  background: var(--cc-navy);
  border-color: var(--cc-navy);
  color: var(--cc-surface);
}

.cc-pagination .page-numbers.current{
  background: var(--cc-yellow);
  border-color: var(--cc-yellow);
  color: var(--cc-ink);
  font-weight: 500;
}

.cc-pagination .page-numbers.dots{
  background: transparent;
  border-color: transparent;
  color: var(--cc-text-faint);
  min-width: 0;
  padding: 0 4px;
}

.cc-pagination .page-numbers.prev,
.cc-pagination .page-numbers.next{
  font-family: var(--cc-font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cc-comments__nav .nav-links{
  justify-content: space-between;
}

.cc-comments__nav a{
  font-family: var(--cc-font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-orange);
}

/* WordPress prints its own visually-hidden heading inside these navs. */
.screen-reader-text{
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus{
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
}

/* ==========================================================================
   5. SINGLE ARTICLE
   ========================================================================== */

.cc-article__media{
  margin: 0;
  padding: 56px 0 0;
  background: var(--cc-bg);
}

.cc-article__img{
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border: 1px solid var(--cc-border);
}

.cc-article__caption{
  margin-top: 12px;
  font-family: var(--cc-font-mono);
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--cc-text-faint);
}

.cc-article__media + .cc-article__content{
  padding-top: 56px;
}

.cc-article__tags{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--cc-border);
}

.cc-article__tags-label{
  font-family: var(--cc-font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cc-text-faint);
}

.cc-article__tags a{
  padding: 5px 12px;
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--cc-navy);
}

.cc-article__tags a:hover,
.cc-article__tags a:focus-visible{
  background: var(--cc-yellow);
  border-color: var(--cc-yellow);
  color: var(--cc-ink);
}

.cc-page-links{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  margin: 36px auto 0;
}

.cc-page-links__label{
  font-family: var(--cc-font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cc-text-faint);
}

.cc-page-links__item{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--cc-border);
  font-family: var(--cc-font-mono);
  font-size: 13px;
  color: var(--cc-navy);
}

.cc-page-links a .cc-page-links__item:hover{
  border-color: var(--cc-navy);
}

.cc-article__nav{
  padding: 56px 0;
}

/* --- Prev / next article ------------------------------------------------- */

.cc-post-nav .nav-links{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* When only one neighbour exists WordPress prints a single child. */
.cc-post-nav .nav-links > *{
  min-width: 0;
}

.cc-post-nav .nav-next{
  grid-column: 2;
  text-align: right;
}

.cc-post-nav a{
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 24px 26px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  transition:
    border-color .25s var(--cc-ease),
    box-shadow .25s var(--cc-ease),
    transform .25s var(--cc-ease);
}

.cc-post-nav a:hover,
.cc-post-nav a:focus-visible{
  transform: translateY(-3px);
  border-color: var(--cc-navy);
  box-shadow: 0 14px 28px rgba(14,34,64,.10);
}

.cc-post-nav__label{
  font-family: var(--cc-font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cc-orange);
}

.cc-post-nav__title{
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--cc-navy);
}

.cc-article__back{
  margin-top: 32px;
  text-align: center;
}

/* ==========================================================================
   6. PROSE  (editor content)
   ========================================================================== */

.cc-prose{
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--cc-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--cc-text);
  overflow-wrap: break-word;
}

.cc-prose > * + *{
  margin-top: 1.25em;
}

.cc-prose h2,
.cc-prose h3,
.cc-prose h4,
.cc-prose h5,
.cc-prose h6{
  font-family: var(--cc-font-display);
  text-transform: uppercase;
  color: var(--cc-navy);
  line-height: 1.15;
}

.cc-prose h2{
  margin-top: 1.9em;
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 32px);
}

.cc-prose h3{
  margin-top: 1.7em;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 25px);
}

.cc-prose h4{
  margin-top: 1.6em;
  font-weight: 700;
  font-size: 19px;
}

.cc-prose h5,
.cc-prose h6{
  margin-top: 1.5em;
  font-family: var(--cc-font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--cc-orange);
}

/* A short yellow rule under every H2, echoing the section heads. */
.cc-prose h2::after{
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 14px;
  background: var(--cc-yellow);
}

.cc-prose p{
  margin: 0;
}

.cc-prose a{
  color: var(--cc-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--cc-border-str);
}

.cc-prose a:hover,
.cc-prose a:focus-visible{
  color: var(--cc-orange);
  text-decoration-color: var(--cc-orange);
}

.cc-prose ul,
.cc-prose ol{
  padding-left: 1.4em;
}

.cc-prose ul{ list-style: disc; }
.cc-prose ol{ list-style: decimal; }

.cc-prose li + li{
  margin-top: .5em;
}

.cc-prose li::marker{
  color: var(--cc-orange);
}

.cc-prose blockquote{
  margin: 1.9em 0;
  padding: 4px 0 4px 26px;
  border-left: 4px solid var(--cc-yellow);
  font-family: var(--cc-font-display);
  font-weight: 500;
  font-size: clamp(19px, 2.4vw, 22px);
  line-height: 1.45;
  color: var(--cc-navy);
}

.cc-prose blockquote cite,
.cc-prose blockquote .wp-block-quote__citation{
  display: block;
  margin-top: 12px;
  font-family: var(--cc-font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-text-faint);
}

.cc-prose img,
.cc-prose video,
.cc-prose iframe{
  max-width: 100%;
}

.cc-prose figure{
  margin: 1.9em 0;
}

.cc-prose figcaption,
.cc-prose .wp-caption-text{
  margin-top: 10px;
  font-family: var(--cc-font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--cc-text-faint);
}

.cc-prose hr{
  margin: 2.4em 0;
  border-top: 1px solid var(--cc-border);
}

.cc-prose table{
  display: block;
  overflow-x: auto;
  font-size: 15px;
}

.cc-prose th,
.cc-prose td{
  padding: 12px 14px;
  border: 1px solid var(--cc-border);
  text-align: left;
  vertical-align: top;
}

.cc-prose th{
  background: var(--cc-bg);
  font-family: var(--cc-font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-navy);
}

.cc-prose code{
  padding: 2px 6px;
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  font-size: .9em;
}

.cc-prose pre{
  overflow-x: auto;
  padding: 20px 22px;
  background: var(--cc-navy);
  color: var(--cc-on-navy);
  font-size: 13px;
  line-height: 1.6;
}

.cc-prose pre code{
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
}

.cc-prose > :first-child{
  margin-top: 0;
}

/* --- WordPress alignment helpers ---------------------------------------- */

.cc-prose .aligncenter,
.cc-prose .wp-block-image.aligncenter{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cc-prose .alignleft{
  float: left;
  margin: .4em 1.6em 1.2em 0;
  max-width: 50%;
}

.cc-prose .alignright{
  float: right;
  margin: .4em 0 1.2em 1.6em;
  max-width: 50%;
}

.cc-prose .alignwide{
  width: calc(100% + 120px);
  max-width: calc(100vw - (var(--cc-gutter) * 2));
  margin-left: -60px;
  margin-right: -60px;
}

.cc-prose .alignfull{
  width: calc(100vw - (var(--cc-gutter) * 2));
  max-width: calc(100vw - (var(--cc-gutter) * 2));
  margin-left: calc(50% - 50vw + var(--cc-gutter));
  margin-right: calc(50% - 50vw + var(--cc-gutter));
}

.cc-prose::after{
  content: "";
  display: table;
  clear: both;
}

/* ==========================================================================
   7. COMMENTS
   ========================================================================== */

.cc-comments{
  max-width: 760px;
  margin: 0 auto;
}

.cc-comments__title{
  margin: 0 0 26px;
  font-family: var(--cc-font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  text-transform: uppercase;
  color: var(--cc-navy);
}

.cc-comments__list,
.cc-comments__list .children{
  list-style: none;
  margin: 0;
  padding: 0;
}

.cc-comments__list .children{
  margin-top: 20px;
  padding-left: 26px;
  border-left: 2px solid var(--cc-border);
}

.cc-comments__list .comment,
.cc-comments__list .pingback,
.cc-comments__list .trackback{
  margin-bottom: 20px;
}

.cc-comments__list .comment-body{
  padding: 24px 26px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
}

.cc-comments__list .comment-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cc-comments__list .comment-author{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  color: var(--cc-navy);
}

.cc-comments__list .comment-author img{
  border: 1px solid var(--cc-border);
}

.cc-comments__list .says{
  display: none;
}

.cc-comments__list .comment-metadata,
.cc-comments__list .comment-metadata a{
  font-family: var(--cc-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-text-faint);
}

.cc-comments__list .comment-content{
  font-size: 16px;
  line-height: 1.7;
  color: var(--cc-text);
}

.cc-comments__list .comment-content > * + *{
  margin-top: 1em;
}

.cc-comments__list .comment-awaiting-moderation{
  display: block;
  margin-bottom: 10px;
  font-family: var(--cc-font-mono);
  font-size: 12px;
  color: var(--cc-orange);
}

.cc-comments__list .reply{
  margin-top: 14px;
}

.cc-comments__list .comment-reply-link{
  font-family: var(--cc-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-orange);
}

.cc-comments__closed{
  margin-top: 20px;
  font-size: 15px;
  color: var(--cc-text-muted);
}

/* --- Comment form -------------------------------------------------------- */

.cc-comment-form{
  margin-top: 44px;
  padding: 32px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-top: 4px solid var(--cc-yellow);
}

.cc-comment-form__title{
  margin-bottom: 20px;
}

.cc-comment-form__notes,
.cc-comment-form .comment-notes,
.cc-comment-form .logged-in-as{
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cc-text-muted);
}

.cc-comment-form__field,
.cc-comment-form .comment-form-author,
.cc-comment-form .comment-form-email,
.cc-comment-form .comment-form-url{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.cc-comment-form label{
  font-family: var(--cc-font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cc-text-muted);
}

.cc-comment-form input[type="text"],
.cc-comment-form input[type="email"],
.cc-comment-form input[type="url"],
.cc-comment-form textarea{
  width: 100%;
  padding: 14px 16px;
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  font-family: var(--cc-font-body);
  font-size: 15px;
  color: var(--cc-text);
  transition: border-color .25s var(--cc-ease), background-color .25s var(--cc-ease);
}

.cc-comment-form input[type="text"]:focus,
.cc-comment-form input[type="email"]:focus,
.cc-comment-form input[type="url"]:focus,
.cc-comment-form textarea:focus{
  background: var(--cc-surface);
  border-color: var(--cc-navy);
}

.cc-comment-form .comment-form-cookies-consent{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}

.cc-comment-form .comment-form-cookies-consent label{
  font-family: var(--cc-font-body);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
}

.cc-comment-form .form-submit{
  margin: 0;
}

.cc-comment-form__submit{
  cursor: pointer;
}

#cancel-comment-reply-link{
  margin-left: 12px;
  font-family: var(--cc-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-orange);
}

/* ==========================================================================
   8. SEARCH FORM
   ========================================================================== */

.cc-search{
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 520px;
}

.cc-search__input{
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-right: 0;
  font-family: var(--cc-font-body);
  font-size: 15px;
  color: var(--cc-text);
  transition: border-color .25s var(--cc-ease);
}

.cc-search__input::placeholder{
  color: var(--cc-text-faint);
  opacity: 1;
}

.cc-search__input:focus{
  border-color: var(--cc-navy);
}

.cc-search__submit{
  flex: 0 0 auto;
  padding: 14px 26px;
  background: var(--cc-yellow);
  border: 1px solid var(--cc-yellow);
  font-family: var(--cc-font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-ink);
  transition: background-color .25s var(--cc-ease), border-color .25s var(--cc-ease);
}

.cc-search__submit:hover,
.cc-search__submit:focus-visible{
  background: var(--cc-yellow-dk);
  border-color: var(--cc-yellow-dk);
}

/* On navy the input needs its own contrast treatment. */
.cc-news-hero .cc-search__input,
.cc-404__search .cc-search__input{
  background: var(--cc-navy-mid);
  border-color: var(--cc-navy-line);
  color: var(--cc-surface);
}

.cc-news-hero .cc-search__input::placeholder,
.cc-404__search .cc-search__input::placeholder{
  color: var(--cc-on-navy-dim);
}

.cc-news-hero .cc-search__input:focus,
.cc-404__search .cc-search__input:focus{
  border-color: var(--cc-yellow);
}

/* ==========================================================================
   9. 404
   ========================================================================== */

.cc-news-hero--404 .cc-news-hero__inner{
  padding-top: 80px;
  padding-bottom: 80px;
}

.cc-404__code{
  display: block;
  margin: 0 0 6px;
  font-family: var(--cc-font-display);
  font-weight: 800;
  font-size: clamp(90px, 18vw, 200px);
  line-height: .85;
  letter-spacing: -.02em;
  color: var(--cc-navy-line);
  user-select: none;
  -webkit-user-select: none;
}

@supports ((-webkit-text-stroke: 2px currentColor) or (text-stroke: 2px currentColor)){
  .cc-404__code{
    color: transparent;
    -webkit-text-stroke: 2px var(--cc-navy-line);
  }
}

.cc-404__text{
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--cc-on-navy-soft);
}

.cc-404__search{
  margin-top: 28px;
}

.cc-404__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.cc-404__recent-title{
  margin: 0 0 30px;
  font-family: var(--cc-font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.8vw, 28px);
  text-transform: uppercase;
  color: var(--cc-navy);
}

/* ==========================================================================
   10. RESPONSIVE — max-width 1100px
   ========================================================================== */

@media (max-width: 1100px){

  .cc-news-row{
    grid-template-columns: 380px 1fr;
  }

  .cc-news-row__body{
    padding: 30px;
  }

  .cc-news-grid{
    gap: 22px;
  }

  .cc-prose .alignwide{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ==========================================================================
   11. RESPONSIVE — max-width 900px
   ========================================================================== */

@media (max-width: 900px){

  .cc-news-hero__inner,
  .cc-news-hero--article .cc-news-hero__inner{
    padding-top: 54px;
    padding-bottom: 44px;
  }

  .cc-news-hero--404 .cc-news-hero__inner{
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .cc-news-hero--article .cc-news-hero__title{
    max-width: none;
  }

  .cc-news-archive{
    padding: 48px 0;
  }

  /* The 480px / 1fr row collapses to a single column. */
  .cc-news-row{
    grid-template-columns: 1fr;
  }

  .cc-news-row__media{
    height: 240px;
  }

  .cc-news-row__body{
    padding: 28px;
  }

  /* Homepage grid: 3 → 2 columns. */
  .cc-news-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .cc-news-list{
    gap: 22px;
  }

  .cc-article__media{
    padding-top: 40px;
  }

  .cc-article__media + .cc-article__content{
    padding-top: 40px;
  }

  .cc-article__nav{
    padding: 44px 0;
  }

  .cc-post-nav .nav-links{
    grid-template-columns: 1fr;
  }

  .cc-post-nav .nav-next{
    grid-column: 1;
    text-align: left;
  }

  .cc-prose{
    font-size: 16px;
  }

  .cc-comment-form{
    padding: 26px;
  }

  .cc-comments__list .children{
    padding-left: 16px;
  }
}

/* ==========================================================================
   12. RESPONSIVE — max-width 640px
   ========================================================================== */

@media (max-width: 640px){

  .cc-news-hero__inner,
  .cc-news-hero--article .cc-news-hero__inner{
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .cc-news-hero__eyebrow{
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 14px;
  }

  .cc-news-hero__meta{
    gap: 10px;
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .cc-news-archive{
    padding: 40px 0;
  }

  /* Homepage grid: 2 → 1 column. */
  .cc-news-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cc-news-card__media{
    height: 190px;
  }

  .cc-news-card__body{
    padding: 22px 20px 24px;
  }

  .cc-news-card__title{
    font-size: 18px;
  }

  .cc-news-row__media{
    height: 200px;
  }

  .cc-news-row__body{
    padding: 22px 20px 24px;
  }

  .cc-news-row__meta{
    gap: 12px;
  }

  .cc-news-row__excerpt{
    font-size: 14px;
  }

  .cc-news-empty{
    padding: 26px 22px;
  }

  /* Pagination: keep the row scannable on a phone. */
  .cc-pagination{
    margin-top: 34px;
  }

  .cc-pagination .nav-links{
    gap: 8px;
  }

  .cc-pagination .page-numbers{
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .cc-pagination .page-numbers.prev,
  .cc-pagination .page-numbers.next{
    flex: 1 1 100%;
  }

  .cc-article__media{
    padding-top: 28px;
  }

  .cc-article__media + .cc-article__content{
    padding-top: 32px;
  }

  .cc-article__img{
    max-height: 320px;
  }

  .cc-article__nav{
    padding: 36px 0;
  }

  .cc-post-nav a{
    padding: 20px;
  }

  .cc-post-nav__title{
    font-size: 16px;
  }

  .cc-prose blockquote{
    padding-left: 18px;
  }

  .cc-prose .alignleft,
  .cc-prose .alignright{
    float: none;
    max-width: 100%;
    margin: 1.4em 0;
  }

  .cc-prose .alignfull{
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Search form stacks so the 44px touch targets stay full width. */
  .cc-search{
    flex-wrap: wrap;
  }

  .cc-search__input{
    flex: 1 1 100%;
    border-right: 1px solid var(--cc-border);
  }

  .cc-news-hero .cc-search__input,
  .cc-404__search .cc-search__input{
    border-right-color: var(--cc-navy-line);
  }

  .cc-search__submit{
    flex: 1 1 100%;
    margin-top: 10px;
  }

  .cc-404__actions .cc-btn{
    width: 100%;
  }

  .cc-comment-form{
    padding: 22px 20px;
  }

  .cc-comments__list .comment-body{
    padding: 20px;
  }
}

/* ==========================================================================
   13. PRINT
   ========================================================================== */

@media print{

  .cc-news-hero{
    background: none;
    border-bottom: 2px solid var(--cc-ink);
  }

  .cc-news-hero__grid,
  .cc-news-hero__rule,
  .cc-404__code,
  .cc-pagination,
  .cc-post-nav,
  .cc-comment-form,
  .cc-search{
    display: none !important;
  }

  .cc-news-hero__title,
  .cc-news-hero__eyebrow,
  .cc-news-hero__meta,
  .cc-news-hero__cat,
  .cc-news-hero__date{
    color: var(--cc-ink);
  }

  .cc-news-row,
  .cc-news-card{
    break-inside: avoid;
    border-color: var(--cc-border-str);
    box-shadow: none;
    transform: none;
  }
}
