/* Novus Conceptus brand layer for MkDocs Material */
:root {
  --nc-navy: #0b1f33;
  --nc-navy-2: #12304d;
  --nc-cyan: #36b5e0;
  --nc-cyan-dark: #1b8fba;
}

[data-md-color-primary="custom"] {
  --md-primary-fg-color: var(--nc-navy);
  --md-primary-fg-color--light: var(--nc-navy-2);
  --md-primary-fg-color--dark: #07192a;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffffb3;
}

[data-md-color-accent="custom"] {
  --md-accent-fg-color: var(--nc-cyan-dark);
  --md-accent-fg-color--transparent: #1b8fba1a;
}

[data-md-color-scheme="default"] {
  --md-typeset-a-color: var(--nc-cyan-dark);
}

[data-md-color-scheme="slate"] {
  --md-typeset-a-color: var(--nc-cyan);
  --md-default-bg-color: #0d1720;
}

.md-header, .md-tabs { background-color: var(--nc-navy); }
.md-header__button.md-logo img { height: 1.9rem; }

/* Greek subtitle under English headings */
.nc-subtitle { display: block; margin-top: -0.8rem; color: var(--md-default-fg-color--light); font-size: .85rem; }

/* HTTP method pills */
.nc-method { display: inline-block; font: 700 .72rem/1 var(--md-code-font-family); padding: .3em .55em; border-radius: .3em; color: #fff; vertical-align: middle; letter-spacing: .02em; }
.nc-post { background: #1f8a4c; }
.nc-get { background: #1b6fba; }
.nc-delete { background: #b3261e; }
.nc-put { background: #a36400; }
.nc-endpoint { font-family: var(--md-code-font-family); font-size: .82rem; background: var(--md-code-bg-color); padding: .5rem .75rem; border-radius: .3rem; display: block; margin: .6rem 0 1rem; }

/* Required / optional markers in field tables */
.nc-req { color: #b3261e; font-weight: 700; font-size: .7rem; text-transform: uppercase; }
.nc-opt { color: var(--md-default-fg-color--light); font-size: .7rem; text-transform: uppercase; }
.nc-new { background: var(--nc-cyan-dark); color: #fff; font-size: .62rem; font-weight: 700; padding: .1em .45em; border-radius: .25em; text-transform: uppercase; vertical-align: middle; }

/* ---------- Home page ---------- */
.md-typeset .grid.cards > ul > li { border-radius: .5rem; }

.md-typeset .nc-hero {
  margin: .4rem 0 1.2rem; padding: 2.2rem 2.4rem 2rem; border-radius: .7rem; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #1b8fba 0%, rgba(27,143,186,0) 55%), linear-gradient(135deg, #0b1f33 0%, #12304d 100%);
}
.md-typeset .nc-hero h1 { color: #fff; font-weight: 700; font-size: 1.85rem; line-height: 1.25; margin: .5rem 0 .6rem; max-width: 34rem; }
.md-typeset .nc-hero p.lead { font-size: .95rem; line-height: 1.6; color: rgba(255,255,255,.86); max-width: 40rem; margin: 0 0 1.4rem; }
.md-typeset .nc-eyebrow { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fd3f0; }
.md-typeset .nc-hero .md-button { color: #fff; border-color: rgba(255,255,255,.6); margin: 0 .5rem .5rem 0; }
.md-typeset .nc-hero .md-button:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.md-typeset .nc-hero .md-button--primary { background: #36b5e0; border-color: #36b5e0; color: #0b1f33; }
.md-typeset .nc-hero .md-button--primary:hover { background: #7fd3f0; border-color: #7fd3f0; color: #0b1f33; }

@media screen and (max-width: 45em) {
  .md-typeset .nc-hero { padding: 1.4rem 1.2rem 1.2rem; }
  .md-typeset .nc-hero h1 { font-size: 1.4rem; }
}

.md-typeset .nc-badges { margin: 0 0 1.6rem; }
.md-typeset .nc-badges p { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.md-typeset .nc-badges p > span { display: inline-flex; align-items: center; gap: .4em; font-size: .68rem; padding: .4em .9em; border-radius: 2em; background: var(--md-code-bg-color); color: var(--md-default-fg-color--light); }
.md-typeset .nc-badges p > span strong { color: var(--md-default-fg-color); }
.md-typeset .nc-badges .twemoji { color: var(--md-accent-fg-color); }
.md-typeset .nc-badges .twemoji svg { width: 1.25em; height: 1.25em; }

.md-typeset .nc-tasks > ul > li .twemoji.lg { color: var(--md-accent-fg-color); }
.md-typeset .nc-tasks > ul > li p { margin: .4em 0; }

/* Numbered steps in a row */
.md-typeset .nc-steps > ol { list-style: none; counter-reset: ncstep; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.md-typeset .nc-steps > ol > li { counter-increment: ncstep; margin: 0; padding: 1rem 1rem .6rem; border: .05rem solid var(--md-default-fg-color--lightest); border-radius: .5rem; position: relative; }
.md-typeset .nc-steps > ol > li::before { content: counter(ncstep); display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #0b1f33; color: #fff; font-weight: 700; font-size: .75rem; margin-bottom: .5rem; }
[data-md-color-scheme="slate"] .md-typeset .nc-steps > ol > li::before { background: #36b5e0; color: #0b1f33; }
.md-typeset .nc-steps > ol > li p { margin: .3em 0; font-size: .74rem; }
.md-typeset .nc-steps > ol > li p:first-child { font-size: .8rem; }
@media screen and (max-width: 60em) { .md-typeset .nc-steps > ol { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 30em) { .md-typeset .nc-steps > ol { grid-template-columns: 1fr; } }

/* "Who we are": text left, licence table right */
.md-typeset .nc-about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.6rem; align-items: start; }
@media screen and (max-width: 60em) { .md-typeset .nc-about { grid-template-columns: 1fr; } }
.md-typeset .nc-about .md-typeset__scrollwrap { margin-top: 0; }
.md-typeset .nc-about table thead { display: none; }
.md-typeset .nc-about table:not([class]) td:first-child { width: auto; white-space: nowrap; }

/* Wider page, so tables have room */
.md-grid { max-width: 78rem; }

/* Tables: full width, text wraps inside the cell; nothing hides behind a horizontal scrollbar */
.md-typeset__table { display: block; }
.md-typeset__table table:not([class]),
.md-typeset table:not([class]) { display: table; width: 100%; font-size: .74rem; }
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td { overflow-wrap: break-word; vertical-align: top; }
.md-typeset table:not([class]) code { white-space: normal; overflow-wrap: break-word; }
/* The first column holds field names / codes: never split a name, wrap only at spaces */
.md-typeset table:not([class]) td:first-child code { white-space: normal; overflow-wrap: normal; word-break: normal; }
.md-typeset table:not([class]) td:first-child { width: 1%; }
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td { padding: .65em .8em; }
.md-typeset table:not([class]) a { overflow-wrap: anywhere; }

/* "On this page" jump list on the AADE table pages */
.md-typeset .nc-jump { border-left: .2rem solid var(--md-accent-fg-color); background: var(--md-code-bg-color); padding: .5rem .9rem; border-radius: 0 .3rem .3rem 0; margin: 1rem 0 1.4rem; font-size: .76rem; line-height: 1.9; }
.md-typeset .nc-jump p { margin: 0; }

/* Tables written with an empty header row (| | |): hide that empty row */
.md-typeset table:not([class]) thead:not(:has(th:not(:empty))) { display: none; }
