/*
 * Blocks — the site's shared design layer.
 *
 * Loaded on every page after style.css (tokens live there), so a page composes
 * its sections from these classes instead of writing its own. The home page is
 * the reference the other pages follow: hairline section rules, an eyebrow above
 * every block title, 8px cards on a white surface, one accent used sparingly,
 * and motion that can be switched off.
 *
 * Hierarchy per block: .cyth-sec > .cyth-wrap > .cyth-sechead + a .cyth-grid.
 * A quiet variant of a block sits on .cyth-band (surface-subtle) instead.
 */

/* ==========================================================================
   0. Base
   ========================================================================== */
/* Text is drawn thinner on screens that support it, so the type reads at the
   weight the design was checked at rather than the platform default. */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. Type & section frame
   ========================================================================== */
.cyth-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cyth-accent);
}

.cyth-sec {
  padding: 88px 0;
  border-bottom: 1px solid var(--cyth-border);
}
.cyth-sec--tight { padding: 64px 0; }
.cyth-sec:last-of-type { border-bottom: 0; }

.cyth-band {
  padding: 64px 0;
  background: var(--cyth-surface-subtle);
  border-bottom: 1px solid var(--cyth-border);
}

.cyth-sechead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  margin: 0 0 32px;
}
.cyth-sechead__title {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 44px;
  letter-spacing: -.015em;
}
.cyth-sechead__sub {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 26px;
  color: var(--cyth-text-2);
}

.cyth-morelink {
  flex: none;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  color: var(--cyth-brand);
  text-decoration: none;
  border-bottom: 1px solid var(--cyth-border);
  padding-bottom: 2px;
  transition: color var(--cyth-transition), border-color var(--cyth-transition);
}
.cyth-morelink:hover { color: var(--cyth-accent); border-color: var(--cyth-accent); }
.cyth-morelink span { display: inline-block; transition: transform var(--cyth-transition); }
.cyth-morelink:hover span { transform: translateX(3px); }

.cyth-sec__note {
  margin: 24px 0 0;
  max-width: 74ch;
  font-size: 13px;
  line-height: 21px;
  color: var(--cyth-text-2);
}

/* ==========================================================================
   2. Grids
   ========================================================================== */
.cyth-grid { display: grid; gap: 20px; }
.cyth-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cyth-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cyth-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cyth-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
}
.cyth-split--top { align-items: start; }
.cyth-split h2 { font-size: 34px; line-height: 44px; letter-spacing: -.015em; margin: 0 0 16px; }
.cyth-split > div > p { max-width: 56ch; color: var(--cyth-text-2); }

/* ==========================================================================
   3. Image slots
   Every picture on the reference page is a slot that says what belongs in it
   and at which pixel size, so it can be replaced without reading the template.
   ========================================================================== */
.cyth-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  text-align: center;
  color: #5A6B7A;
  background:
    repeating-linear-gradient(135deg, #F1F4F6, #F1F4F6 10px, #E9EEF2 10px, #E9EEF2 20px);
  border: 1px dashed var(--cyth-border-control);
  border-radius: var(--cyth-radius-sm);
}
.cyth-slot--card { aspect-ratio: 4 / 3; border: 0; border-bottom: 1px solid var(--cyth-border); border-radius: 0; }
.cyth-slot--hero { aspect-ratio: 4 / 3; }
.cyth-slot--doc { width: 96px; aspect-ratio: 3 / 4; flex: none; }

.cyth-slot__name {
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cyth-slot__size {
  font-size: 11px;
  line-height: 16px;
  color: #6D7E8D;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   4. Cards
   ========================================================================== */
.cyth-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cyth-surface);
  border: 1px solid var(--cyth-border);
  border-radius: var(--cyth-radius-md);
  text-decoration: none;
  transition: border-color var(--cyth-transition), box-shadow var(--cyth-transition),
    transform var(--cyth-transition);
}
.cyth-tile:hover,
.cyth-tile:focus-within {
  border-color: var(--cyth-border-control);
  box-shadow: var(--cyth-shadow);
  transform: translateY(-2px);
}

.cyth-tile__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 20px 20px; }
.cyth-tile__title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 25px;
  font-weight: 600;
  color: var(--cyth-brand);
}
.cyth-tile:hover .cyth-tile__title { color: var(--cyth-accent); }
.cyth-tile__text {
  margin: 0;
  max-width: none;
  font-size: 14px;
  line-height: 22px;
  color: var(--cyth-text-2);
}
.cyth-tile__more {
  display: inline-block;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: var(--cyth-accent);
}
.cyth-tile__more span { display: inline-block; transition: transform var(--cyth-transition); }
.cyth-tile:hover .cyth-tile__more span { transform: translateX(3px); }

/* A card that is not a link to somewhere: values, applications, markets. */
.cyth-panel {
  padding: 20px;
  background: var(--cyth-surface);
  border: 1px solid var(--cyth-border);
  border-radius: var(--cyth-radius-md);
}
.cyth-panel h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 25px;
}
.cyth-panel p {
  margin: 0;
  max-width: none;
  font-size: 14px;
  line-height: 22px;
  color: var(--cyth-text-2);
}
.cyth-panel--stack { margin-top: 20px; }
.cyth-panel__no {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--cyth-accent);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   5. Check list, numbered steps, FAQ
   ========================================================================== */
.cyth-checks { margin: 0 0 20px; padding: 0; list-style: none; }
.cyth-checks li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 15px;
  line-height: 24px;
  color: var(--cyth-text);
}
.cyth-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--cyth-accent);
}
.cyth-checks b { font-weight: 600; }
.cyth-checks--last { margin-bottom: 0; }

.cyth-steps { margin: 0; padding: 0; list-style: none; counter-reset: cythstep; }
.cyth-steps li {
  position: relative;
  padding: 0 0 22px 44px;
  counter-increment: cythstep;
}
.cyth-steps li:last-child { padding-bottom: 0; }
.cyth-steps li::before {
  content: counter(cythstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cyth-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cyth-steps b { display: block; font-size: 15px; line-height: 24px; color: var(--cyth-brand); }
.cyth-steps span { display: block; font-size: 14px; line-height: 22px; color: var(--cyth-text-2); }

.cyth-faq { max-width: 920px; }
.cyth-faq details { border-bottom: 1px solid var(--cyth-border); }
.cyth-faq details:first-of-type { border-top: 1px solid var(--cyth-border); }
.cyth-faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
  color: var(--cyth-brand);
  transition: color var(--cyth-transition);
}
.cyth-faq summary::-webkit-details-marker { display: none; }
.cyth-faq summary:hover { color: var(--cyth-accent); }
.cyth-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  color: var(--cyth-accent);
}
.cyth-faq details[open] summary::after { content: '\2212'; }
.cyth-faq p {
  margin: 0;
  padding: 0 40px 18px 0;
  max-width: 74ch;
  font-size: 15px;
  line-height: 25px;
  color: var(--cyth-text-2);
}

/* ==========================================================================
   6. Motion
   Elements marked with data-rv are hidden and slid in by assets/reveal.js once
   they are below the first screen. When the script does not run — or the
   visitor asked for reduced motion — nothing is hidden and nothing moves.
   ========================================================================== */
[data-rv] {
  transition: opacity 560ms cubic-bezier(.22, .61, .36, 1),
    transform 560ms cubic-bezier(.22, .61, .36, 1);
}
.cyth-rv-pending { opacity: 0; transform: translateY(18px); }
[data-rv].is-in { opacity: 1; transform: none; }

/* Cards arriving together stagger in reading order, by position in the grid —
   no per-element inline style, so a card added in the admin needs nothing. */
.cyth-grid > [data-rv]:nth-child(2) { transition-delay: 70ms; }
.cyth-grid > [data-rv]:nth-child(3) { transition-delay: 140ms; }
.cyth-grid > [data-rv]:nth-child(4) { transition-delay: 210ms; }
.cyth-grid > [data-rv]:nth-child(5) { transition-delay: 280ms; }
.cyth-grid > [data-rv]:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  [data-rv],
  .cyth-rv-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cyth-tile:hover,
  .cyth-tile:focus-within { transform: none; }
}

/* ==========================================================================
   7. Narrower screens
   ========================================================================== */
@media (max-width: 1023px) {
  .cyth-sec { padding: 64px 0; }
  .cyth-band { padding: 48px 0; }
  .cyth-sechead__title { font-size: 28px; line-height: 37px; }
  .cyth-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cyth-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cyth-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cyth-split h2 { font-size: 28px; line-height: 37px; }
}

@media (max-width: 639px) {
  .cyth-sec { padding: 48px 0; }
  .cyth-band { padding: 40px 0; }
  .cyth-sechead { margin-bottom: 24px; }
  .cyth-sechead__title { font-size: 25px; line-height: 33px; }
  .cyth-sechead__sub { font-size: 15px; line-height: 24px; }
  .cyth-grid--2,
  .cyth-grid--3,
  .cyth-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .cyth-faq summary { font-size: 15px; line-height: 24px; }
}

/* ==========================================================================
   8. Page head
   The band every inner page opens with: crumb, eyebrow, title, one sentence.
   Same surface as a listing's head strip, so an inner page and a product
   listing begin the same way.
   ========================================================================== */
.cyth-pagehead {
  padding: 16px 0 34px;
  background: var(--cyth-surface-subtle);
  border-bottom: 1px solid var(--cyth-border);
}
.cyth-pagehead .cyth-crumbs { margin-bottom: 22px; }
.cyth-pagehead__title {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 52px;
  letter-spacing: -.02em;
}
.cyth-pagehead__lede {
  margin: 0;
  max-width: 64ch;
  font-size: 18px;
  line-height: 28px;
  color: var(--cyth-text-2);
}

/* A plain card: the surface an inquiry form sits on, on any page. */
.cyth-card {
  padding: 24px;
  background: var(--cyth-surface);
  border: 1px solid var(--cyth-border);
  border-radius: var(--cyth-radius-md);
}
.cyth-card .cyth-form {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cyth-card .cyth-form__field--wide,
.cyth-card .cyth-form__captcha,
.cyth-card .cyth-form__submit,
.cyth-card .cyth-form__status { grid-column: 1 / -1; }
.cyth-card .cyth-form__submit { justify-self: start; }
@media (max-width: 639px) {
  .cyth-card { padding: 18px; }
  .cyth-card .cyth-form { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   9. Fact rows
   A label and its value, one per line — company details, and anything else
   that reads better as a table than as a sentence.
   ========================================================================== */
.cyth-facts { margin: 0; border-top: 1px solid var(--cyth-border); }
.cyth-facts > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 4px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cyth-border);
}
.cyth-facts dt {
  font-size: 12px;
  line-height: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cyth-text-2);
}
.cyth-facts dd { margin: 0; font-size: 15px; line-height: 24px; }
.cyth-facts a { color: var(--cyth-brand); text-decoration: none; border-bottom: 1px solid var(--cyth-border); }
.cyth-facts a:hover { color: var(--cyth-accent); border-color: var(--cyth-accent); }

/* ==========================================================================
   10. Closing band
   The one dark block of a page: two buttons on the brand surface, so a page
   ends with the same invitation the home page closes with.
   ========================================================================== */
.cyth-cta {
  padding: 56px 0;
  background: var(--cyth-brand);
  color: #C7D5E3;
}
.cyth-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
}
.cyth-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: -.015em;
}
.cyth-cta p { margin: 0; max-width: 58ch; font-size: 16px; line-height: 26px; color: #C7D5E3; }
.cyth-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cyth-btn--onbrand { background: #fff; color: var(--cyth-brand); border-color: #fff; }
.cyth-btn--onbrand:hover { background: var(--cyth-surface-muted); color: var(--cyth-brand); }
.cyth-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cyth-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

@media (max-width: 1023px) {
  .cyth-pagehead { padding: 12px 0 28px; }
  .cyth-pagehead__title { font-size: 32px; line-height: 41px; }
  .cyth-cta { padding: 44px 0; }
  .cyth-cta h2 { font-size: 25px; line-height: 34px; }
  .cyth-cta__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 639px) {
  .cyth-pagehead__title { font-size: 28px; line-height: 36px; }
  .cyth-pagehead__lede { font-size: 16px; line-height: 26px; }
  .cyth-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ==========================================================================
   11. Document card
   One file: a cover at the upload size that suits a PDF, the title, and the
   line that says what it is. Used by the downloads page and by any block that
   offers a document.
   ========================================================================== */
.cyth-doc {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  background: var(--cyth-surface);
  border: 1px solid var(--cyth-border);
  border-radius: var(--cyth-radius-md);
}
.cyth-doc__cover { width: 96px; height: auto; flex: none; border-radius: var(--cyth-radius-sm); }
.cyth-doc__body { min-width: 0; }
.cyth-doc h3 { margin: 0 0 4px; font-size: 17px; line-height: 26px; }
.cyth-doc__meta { margin: 0 0 12px; font-size: 13px; line-height: 20px; color: var(--cyth-text-2); }
.cyth-doc__note { margin: 0; font-size: 14px; line-height: 22px; color: var(--cyth-text-2); }
.cyth-doc .cyth-morelink { font-size: 14px; }
.cyth-doc--stack { margin-top: 14px; }
.cyth-chips-row { margin-bottom: 24px; }

@media (max-width: 639px) {
  .cyth-doc { gap: 14px; padding: 14px; }
  .cyth-doc__cover { width: 72px; }
  .cyth-doc h3 { font-size: 16px; line-height: 24px; }
}

/* ==========================================================================
   12. Article card and list count
   The Learning Center list: a 4:3 image at the top of the card, then the
   title, the date and the excerpt, with the link pushed to the footer.
   ========================================================================== */
.cyth-lc__count {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--cyth-text-2);
}

.cyth-acard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cyth-surface);
  border: 1px solid var(--cyth-border);
  border-radius: var(--cyth-radius-md);
  transition: transform var(--cyth-transition), box-shadow var(--cyth-transition), border-color var(--cyth-transition);
}
.cyth-acard:hover {
  transform: translateY(-2px);
  border-color: var(--cyth-border-control);
  box-shadow: 0 10px 28px rgba(23, 50, 77, .08);
}
.cyth-acard__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--cyth-border);
  background: var(--cyth-surface-subtle);
}
.cyth-acard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.cyth-acard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}
.cyth-acard h3 {
  margin: 0;
  font-size: 17px;
  line-height: 26px;
}
.cyth-acard h3 a { color: inherit; text-decoration: none; }
.cyth-acard h3 a:hover { color: var(--cyth-accent); }
.cyth-acard__meta {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyth-text-2);
}
.cyth-acard__text {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--cyth-text-2);
}
.cyth-acard .cyth-morelink { margin-top: auto; padding-top: 12px; font-size: 14px; }

@media (max-width: 639px) {
  .cyth-acard__body { padding: 14px; }
  .cyth-acard h3 { font-size: 16px; line-height: 24px; }
}
