/* ==========================================================================
   NAVAL ORIENTATION: News & Insights

   Blog index, archives and the single article. Reuses the page hero, the
   article card and the previous/next component from the service pages, so
   nothing new is introduced beyond the article body itself.
   ========================================================================== */

/* Article hero carries a date and reading time under the title. */
/* -------------------------------------------------------------------------
   ARTICLE HERO
   -------------------------------------------------------------------------
   The headline is a sentence, not a page name, so it is set well below the
   page-title scale the section heroes use: at 5rem a two-line article title
   filled the whole hero and pushed the date off the fold.
   ---------------------------------------------------------------------- */
.no-phero--article .no-phero__title {
  font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.875rem);
  line-height: 1.16;
  max-width: 34ch;
}
@media (max-width: 640px) {
  .no-phero--article .no-phero__title { font-size: clamp(1.5rem, 1.2rem + 2.4vw, 1.875rem); }
}

/* The article's photograph slider, between the body and the share row. */
.no-article__gallery {
  margin-top: clamp(2rem, 1.5rem + 1.8vw, 3rem);
}

.no-phero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem;
  margin-top: var(--no-s-5);
  font-family: var(--no-font-mono);
  font-size: var(--no-fs-3xs);
  letter-spacing: var(--no-tr-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.no-phero__meta svg { color: var(--no-accent); }

/* =========================================================================
   ARTICLE BODY
   ========================================================================= */
.no-article__body {
  max-width: 72ch;
  margin-inline: auto;
  font-size: var(--no-fs-base);
  line-height: var(--no-lh-relaxed);
  color: var(--no-text-muted);
}
.no-article__body > * + * { margin-top: 1.15em; }

.no-article__body h2 {
  margin-top: 2.25em;
  font-size: var(--no-fs-2xl);
  line-height: 1.24;
  color: var(--no-ink-800);
}
.no-article__body h3 {
  margin-top: 1.9em;
  font-size: var(--no-fs-lg);
  line-height: 1.3;
  color: var(--no-ink-800);
}
.no-article__body h2 + p,
.no-article__body h3 + p { margin-top: .7em; }

.no-article__body a {
  color: var(--no-primary-action);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--no-dur) var(--no-ease);
}
.no-article__body a:hover { color: var(--no-primary-700); }

.no-article__body ul,
.no-article__body ol { padding-left: 1.35em; }
.no-article__body ul { list-style: disc; }
.no-article__body ol { list-style: decimal; }
.no-article__body li + li { margin-top: .5em; }
.no-article__body li::marker { color: var(--no-primary-action); }

.no-article__body strong { color: var(--no-ink-800); font-weight: 650; }

.no-article__body blockquote {
  margin-inline: 0;
  padding: 1.125rem 1.375rem;
  background: var(--no-bg-soft);
  border-left: 3px solid var(--no-primary-action);
  border-radius: 0 var(--no-r-md) var(--no-r-md) 0;
  font-size: var(--no-fs-md);
  line-height: 1.6;
  color: var(--no-ink-800);
}
.no-article__body blockquote p { margin: 0; }

.no-article__body img {
  width: 100%;
  height: auto;
  border-radius: var(--no-r-md);
  object-fit: cover;
  object-position: center center;
}

.no-article__body table {
  font-size: var(--no-fs-sm);
  border: 1px solid var(--no-border);
  border-radius: var(--no-r-md);
  overflow: hidden;
}
.no-article__body th,
.no-article__body td { padding: .75rem .875rem; text-align: left; border-bottom: 1px solid var(--no-border); }
.no-article__body th { background: var(--no-bg-soft); color: var(--no-ink-800); font-weight: 650; }

/* A long table would otherwise force the page sideways on a phone. */
.no-article__body > table { display: block; overflow-x: auto; }

.no-article__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--no-s-4);
  max-width: 72ch;
  margin: var(--no-s-10) auto 0;
  padding-top: var(--no-s-8);
  border-top: 1px solid var(--no-border);
}
@media (max-width: 560px) {
  .no-article__foot { flex-direction: column; }
  .no-article__foot .no-btn { width: 100%; }
}

/* Insights block on a service page sits on the soft background like the
   related-services block it follows. */
.no-svcinsights { background: var(--no-bg-soft); }

/* =========================================================================
   NEWS TOOLS: section navigation + search

   One row on a desktop, stacked on a phone. Both are built from the tokens
   already in use elsewhere, so nothing new is introduced here.
   ========================================================================= */
.no-newstools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
}
.no-newstools .no-cnav { flex: 1 1 clamp(18rem, 55%, 40rem); min-width: 0; }
.no-newstools .no-search { flex: 0 1 22rem; min-width: 0; }

/* -------- Section navigation -------- */
.no-cnav__row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.no-cnav__row--sub {
  gap: .375rem .875rem;
  margin-top: .875rem;
  padding-top: .875rem;
  border-top: 1px solid var(--no-border);
}

.no-cnav__chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1rem;
  font-family: var(--no-font-mono);
  font-size: var(--no-fs-3xs);
  font-weight: 700;
  letter-spacing: var(--no-tr-wide);
  text-transform: uppercase;
  color: var(--no-ink-700);
  background: #fff;
  border: 1px solid var(--no-border);
  border-radius: var(--no-r-pill);
  transition: color var(--no-dur) var(--no-ease),
              background-color var(--no-dur) var(--no-ease),
              border-color var(--no-dur) var(--no-ease);
}
.no-cnav__chip:hover,
.no-cnav__chip:focus-visible {
  color: var(--no-primary-action);
  border-color: var(--no-primary-300);
  background: var(--no-bg-soft);
}
.no-cnav__chip.is-active {
  color: #fff;
  background: var(--no-ink-800);
  border-color: var(--no-ink-800);
}
.no-cnav__chip span {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  padding: .0625rem .3125rem;
  font-size: var(--no-fs-3xs);
  line-height: 1.4;
  color: var(--no-text-muted);
  background: var(--no-bg-soft);
  border-radius: var(--no-r-xs);
}
.no-cnav__chip.is-active span { color: var(--no-ink-800); background: rgba(255, 255, 255, .9); }

/* Children of the open section: quieter than the section chips above them. */
.no-cnav__sub {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: var(--no-fs-sm);
  color: var(--no-text-muted);
  border-bottom: 2px solid transparent;
}
.no-cnav__sub:hover,
.no-cnav__sub:focus-visible { color: var(--no-primary-action); }
.no-cnav__sub.is-active {
  color: var(--no-ink-800);
  font-weight: 650;
  border-bottom-color: var(--no-primary-action);
}

/* -------- Search form -------- */
.no-search { display: flex; gap: .5rem; }
.no-search__field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.no-search__ico {
  position: absolute;
  left: .875rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--no-text-muted);
  pointer-events: none;
}
.no-search__ico svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}
.no-search__input {
  width: 100%;
  min-height: 46px;
  padding: .625rem .875rem .625rem 2.875rem;
  font: inherit;
  font-size: var(--no-fs-sm);
  color: var(--no-ink-800);
  background: #fff;
  border: 1px solid var(--no-border);
  border-radius: var(--no-r-sm);
  transition: border-color var(--no-dur) var(--no-ease), box-shadow var(--no-dur) var(--no-ease);
}
.no-search__input::placeholder { color: var(--no-text-faint); }
.no-search__input:focus {
  outline: none;
  border-color: var(--no-primary-action);
  box-shadow: 0 0 0 3px rgba(19, 134, 179, .16);
}
/* The browser's own clear button sits badly against the border radius. */
.no-search__input::-webkit-search-cancel-button { margin-right: .125rem; }
.no-search__submit { flex: none; }

@media (max-width: 520px) {
  .no-search { flex-direction: column; }
  .no-search__submit { width: 100%; }
}

/* =========================================================================
   SEARCH RESULTS
   ========================================================================= */
.no-results {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--no-border);
}
.no-result {
  padding: clamp(1.125rem, .9rem + .7vw, 1.5rem) 0;
  border-bottom: 1px solid var(--no-border);
}
.no-result__type {
  font-family: var(--no-font-mono);
  font-size: var(--no-fs-3xs);
  font-weight: 700;
  letter-spacing: var(--no-tr-wide);
  text-transform: uppercase;
  color: var(--no-primary-action);
}
.no-result__title { margin-top: .375rem; font-size: var(--no-fs-lg); line-height: 1.3; }
.no-result__title a { color: inherit; }
.no-result__title a:hover { color: var(--no-primary-action); }
.no-result__text {
  margin-top: .5rem;
  max-width: 76ch;
  font-size: var(--no-fs-sm);
  line-height: var(--no-lh-relaxed);
  color: var(--no-text-muted);
}
.no-result__url {
  margin-top: .5rem;
  font-family: var(--no-font-mono);
  font-size: var(--no-fs-3xs);
  color: var(--no-text-faint);
  overflow-wrap: anywhere;
}

.no-noresult { margin-top: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }
.no-noresult__hint {
  margin-top: 1.25rem;
  font-family: var(--no-font-mono);
  font-size: var(--no-fs-3xs);
  letter-spacing: var(--no-tr-wide);
  text-transform: uppercase;
  color: var(--no-text-muted);
}
.no-noresult__links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .875rem;
}
@media (max-width: 520px) {
  .no-noresult__links { flex-direction: column; }
  .no-noresult__links .no-btn { width: 100%; }
}

/* =========================================================================
   SHARE AN ARTICLE

   Sits inside the article column, above the two closing actions.
   ========================================================================= */
.no-share {
  max-width: 72ch;
  margin: var(--no-s-10) auto 0;
  padding-top: var(--no-s-8);
  border-top: 1px solid var(--no-border);
}
.no-share__label {
  font-family: var(--no-font-mono);
  font-size: var(--no-fs-3xs);
  font-weight: 700;
  letter-spacing: var(--no-tr-wide);
  text-transform: uppercase;
  color: var(--no-text-muted);
}
.no-share__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
}
.no-share__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--no-ink-700);
  background: #fff;
  border: 1px solid var(--no-border);
  border-radius: var(--no-r-sm);
  transition: color var(--no-dur) var(--no-ease),
              background-color var(--no-dur) var(--no-ease),
              border-color var(--no-dur) var(--no-ease),
              transform .24s var(--no-ease-out);
}
.no-share__btn:hover,
.no-share__btn:focus-visible {
  color: #fff;
  background: var(--no-primary-action);
  border-color: var(--no-primary-action);
  transform: translateY(-2px);
}
.no-share__btn.is-copied {
  color: #fff;
  background: #0B5D33;
  border-color: #0B5D33;
}
.no-share__status {
  min-height: 1.25rem;
  margin-top: .5rem;
  font-size: var(--no-fs-xs);
  color: var(--no-ink-700);
}

/* The related band is a shared primitive; only the grid inside it needs a gap. */
.no-related .no-grid { margin-top: 1.25rem; }

/* Group headings when search returns more than one kind of thing. */
.no-results__group {
  margin-top: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  margin-bottom: .625rem;
  font-family: var(--no-font-mono);
  font-size: var(--no-fs-3xs);
  font-weight: 700;
  letter-spacing: var(--no-tr-wide);
  text-transform: uppercase;
  color: var(--no-text-muted);
}
