@font-face {
  font-family: Spectral;
  src: url(../fonts/spectral.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url(../fonts/notonaskharabic.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --background-color: var(--surface);
  --color-primary-text: var(--ink);
  --color-secondary-text: var(--muted);
  --color-darker-gray: var(--ink);
  --color-border: var(--line);
  --font-sans: system-ui, sans-serif;
  --font-serif: var(--font-latin);
  --measure: 1120px;
}
body {
  font-family: var(--gh-font-body, var(--font-latin));
  color: var(--ink);
  background: var(--surface);
  font-size: 18px;
}
h1,
h2,
h3,
h4,
.is-title,
.gh-card-title,
.identity {
  font-family: var(--gh-font-heading, var(--font-latin));
  font-weight: 400;
}
.system-headings {
  --font-latin-heading: system-ui, sans-serif;
}
.system-headings :is(h1, h2, h3, h4, .is-title, .identity) {
  font-family: var(--gh-font-heading, var(--font-latin-heading));
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 4px;
}
.wrap {
  width: min(var(--measure), calc(100% - 40px));
  margin-inline: auto;
}
.skip,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  width: auto;
  height: auto;
  clip-path: none;
  background: var(--surface);
  z-index: 20;
  padding: 10px;
}
.mast,
.end-row,
.feed-head,
.feed-head nav,
.mast .nav,
.end-row .nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
}
.mast {
  border-bottom: 1px solid var(--line);
  padding-block: 14px;
  min-height: 68px;
}
.identity {
  margin-inline-end: auto;
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}
.identity img {
  max-height: 54px;
  width: auto;
}
.identity .crest img {
  border-radius: 3px;
}
.nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li {
  margin: 0;
}
.mast nav,
.site-end,
.feed-head nav,
.gh-card-meta,
.subscribe {
  font:
    15px/1.5 system-ui,
    sans-serif;
}
.nav a,
.feed-head a {
  text-decoration: none;
}
.nav a[aria-current],
.nav a:hover,
.feed-head a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.find,
.subscribe button {
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: clamp(22px, 4vw, 56px) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero .crest {
  width: clamp(195px, 24vw, 305px);
  display: block;
}
.crest img {
  display: block;
  width: 100%;
  height: auto;
}
.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.28;
}
.feed-head {
  justify-content: space-between;
  padding: 35px 0 16px;
}
.feed-head h2,
.section-name {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.035em;
}
.section-name {
  margin-block: 42px 16px;
}
.entries .gh-card {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.entries .gh-card-link {
  display: grid;
  grid-template-columns: minmax(130px, 30%) 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  color: var(--ink);
}
.entries .gh-card-link:not(:has(.gh-card-image)),
.entries .no-image .gh-card-link {
  grid-template-columns: 1fr;
}
.no-image .gh-card-image {
  display: none;
}
.entries .gh-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gh-card-title {
  font-size: clamp(26px, 3.3vw, 40px);
  line-height: 1.15;
}
.gh-card-excerpt {
  font-family: var(--gh-font-body, var(--font-latin));
  color: var(--muted);
  font-size: 18px;
}
.gh-card-meta,
.gh-card-tag,
.gh-article-tag {
  color: var(--link);
}
.gh-card-tag {
  font:
    14px/1.5 system-ui,
    sans-serif;
}
.grid-feed .entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.grid-feed .entries .gh-card-link {
  display: flex;
  align-items: stretch;
  flex-direction: column;
}
.gh-content {
  font-family: var(--gh-font-body, var(--font-latin));
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.gh-content a:not([class]),
.pagination a,
.locked a,
.err a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.gh-content :is(blockquote, .kg-blockquote-alt, aside) {
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 1em;
  color: var(--ink);
}
.gh-content
  :is(
    .kg-audio-card,
    .kg-file-card,
    .kg-toggle-card,
    .kg-bookmark-container,
    .kg-product-card-container
  ) {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius-small);
}
.gh-content .kg-bookmark-description,
.gh-content figcaption {
  color: var(--muted);
}
.gh-content
  :is(.kg-image-card, .kg-gallery-card, .kg-embed-card, .kg-video-card)
  :is(img, iframe, video) {
  max-width: 100%;
}
.gh-content img {
  height: auto;
}
.gh-content .kg-embed-card iframe[src*="youtu"],
.gh-content .kg-embed-card iframe[src*="vimeo"] {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}
.gh-content
  :is(.kg-callout-card, .kg-header-card, .kg-signup-card, .kg-cta-card) {
  overflow-wrap: anywhere;
}
.gh-content :is(.kg-button-card .kg-btn, .kg-product-card-button),
.subscribe button,
.gh-button {
  color: #fff;
  background: #81541f;
}
.gh-content .kg-width-full {
  max-width: 100vw;
}
.gh-content hr {
  border: 0;
  border-top: 1px solid var(--line);
}
.gh-content .footnotes {
  font-size: 0.82em;
  color: var(--muted);
}
.gh-content pre {
  background: #202939;
  color: #f8f4eb;
  padding: 18px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  border-radius: 4px;
}
.gh-content code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
}
.token.comment {
  color: #b8c1ce;
}
.token.keyword,
.token.tag {
  color: #edbd76;
}
.token.string,
.token.attr-value {
  color: #a1d5b2;
}
.token.number,
.token.function {
  color: #bbcff5;
}
[lang="ar"]:is(article, .gh-card),
[lang="ar"]
  :is(.is-title, .is-body, h1, h2, h3, h4, .gh-card-excerpt, .gh-content) {
  font-family: var(--font-arabic);
  letter-spacing: normal;
  line-height: 1.65;
}
[lang="ar"] .gh-card-meta {
  direction: rtl;
}
.gh-content [dir="ltr"] {
  unicode-bidi: isolate;
}
.site-end {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 24px 0 36px;
}
.end-row nav {
  margin-inline-start: auto;
}
.site-end details {
  margin-top: 20px;
}
.subscribe {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.subscribe input,
.subscribe button {
  padding: 8px 16px;
  border-radius: 4px;
}
.subscribe .sent,
.subscribe .failed {
  display: none;
}
.subscribe.success .sent {
  display: block;
  color: var(--success);
}
.subscribe.error .failed {
  display: block;
  color: var(--error);
}
.signup-hidden
  :is(.kg-signup-card, [data-portal="signup"], a[href*="#/portal/signup"]) {
  display: none !important;
}
.locked {
  padding: 24px;
  border: 1px solid var(--line);
}
.err {
  padding-block: 72px;
}
.pagination {
  padding: 20px 0;
}
.gh-content a,
.gh-card-title-link,
.find {
  transition:
    color var(--motion-hover),
    transform var(--motion-hover);
}
@media (hover: hover) {
  .entries .gh-card:hover .gh-card-title-link,
  .find:hover {
    color: var(--link);
  }
  .find:hover {
    transform: translateY(-2px);
  }
}
@keyframes arrive {
  from {
    opacity: 0.6;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .feed-head,
  .entries .gh-card:first-child {
    animation: arrive var(--motion-reveal) ease-out both;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .find:hover {
    transform: none;
  }
}
@media (max-width: 640px) {
  .entries .gh-card-link,
  .grid-feed .entries {
    grid-template-columns: 1fr;
  }
  .mast {
    gap: 12px;
  }
  .mast .nav {
    gap: 12px;
  }
  .hero .crest {
    width: 195px;
  }
  .gh-archive {
    margin-block: 36px;
  }
  .gh-article-title {
    font-size: 38px;
  }
}
/* Keep the configured accent for brand rules and blend it into the mode's
   high-contrast link shade for small interactive text. */
.feed-head {
  border-bottom: 2px solid var(--ghost-accent-color, var(--gold));
}
.gh-content a:not([class]),
.feed-head a {
  color: color-mix(
    in srgb,
    var(--link) 90%,
    var(--ghost-accent-color, var(--gold))
  );
}
.signup-hidden .kg-card a[href*="#/portal"]:not([href*="account"]) {
  display: none !important;
}

.gh-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.gh-card .gh-card-title-link::after {
  inset: 0;
}
.gh-card[dir="rtl"] .gh-card-title {
  font-family: var(--font-arabic);
}
/* Keep the link visible in each mode, including across the Koenig card CSS. */
.gh-content .kg-bookmark-title,
.gh-content .kg-file-card-title {
  color: var(--ink);
}
@media (min-width: 641px) {
  .journal-feed:has(.entries:empty) {
    padding-block: 0;
  }
}
[dir="rtl"] time {
  direction: ltr;
  unicode-bidi: isolate;
}
@media (max-width: 440px) {
  .mast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 40px;
    gap: 8px;
  }
  .mast .identity {
    font-size: clamp(19px, 5vw, 23px);
  }
  .mast .nav {
    gap: 8px;
  }
  .mast nav {
    font-size: 14px;
  }
  .mast .find {
    width: 40px;
    height: 44px;
    min-width: 40px;
  }
}
