/* ==========================================================================
   Base: element defaults every page builds on
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

hr {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: inherit;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-top: 0;
  margin-bottom: .5rem;
  line-height: 1.2;
}

h1, .h1 { font-size: calc(1.375rem + 1.5vw); }
h2, .h2 { font-size: calc(1.325rem + .9vw); }
h3, .h3 { font-size: calc(1.3rem + .6vw); }
h4, .h4 { font-size: calc(1.275rem + .3vw); }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }

@media (min-width: 1200px) {
  h1, .h1 { font-size: 2.5rem; }
  h2, .h2 { font-size: 2rem; }
  h3, .h3 { font-size: 1.75rem; }
  h4, .h4 { font-size: 1.5rem; }
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

abbr[title] {
  cursor: help;
  text-decoration: underline dotted;
  text-decoration-skip-ink: none;
}

address {
  margin-bottom: 1rem;
  font-style: normal;
  line-height: inherit;
}

ol,
ul {
  padding-left: 2rem;
}

ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin-bottom: .5rem;
  margin-left: 0;
}

blockquote {
  margin: 0 0 1rem;
}

b,
strong {
  font-weight: bolder;
}

small,
.small {
  font-size: .875em;
}

mark,
.mark {
  background-color: var(--watch-tint);
  color: inherit;
  padding: .1875em;
}

sub,
sup {
  position: relative;
  font-size: .75em;
  line-height: 0;
  vertical-align: baseline;
}

sub { bottom: -.25em; }
sup { top: -.5em; }

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

pre,
code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 1em;
}

pre {
  display: block;
  overflow: auto;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: .875em;
}

pre code {
  font-size: inherit;
  word-break: normal;
}

kbd {
  border-radius: var(--radius-sm);
  background-color: var(--ink);
  color: #fff;
  font-size: .875em;
  padding: .1875rem .375rem;
}

figure {
  margin: 0 0 1rem;
}

img,
svg {
  vertical-align: middle;
}

table {
  border-collapse: collapse;
  caption-side: top;
}

caption {
  padding: .5rem 0;
  color: var(--text-muted);
  text-align: left;
}

th {
  text-align: inherit;
  text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

label {
  display: inline-block;
}

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: 0;
}

input,
button,
select,
optgroup,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button,
select {
  text-transform: none;
}

[role="button"] {
  cursor: pointer;
}

select {
  word-wrap: normal;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
  cursor: pointer;
}

::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

textarea {
  resize: vertical;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

legend {
  float: left;
  width: 100%;
  margin-bottom: .5rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: inherit;
}

legend + * {
  clear: left;
}

::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
  padding: 0;
}

::-webkit-inner-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::file-selector-button {
  font: inherit;
  -webkit-appearance: button;
}

output {
  display: inline-block;
}

iframe {
  border: 0;
}

summary {
  display: list-item;
  cursor: pointer;
}

progress {
  vertical-align: baseline;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  /* Keeps anchor jumps clear of the environment banner */
  scroll-padding-top: var(--env-banner-height);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink-2);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--signal);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--signal-deep);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

::selection {
  background: var(--signal-tint);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  padding: .55rem .9rem;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* Only rendered on the local and staging sites, pinned above everything so it can't be missed */
:root:has([data-env-banner]) {
  --env-banner-height: 30px;
}

.env-banner {
  position: sticky;
  top: 0;
  z-index: 1035;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: var(--env-banner-height);
  overflow: hidden;
  background: repeating-linear-gradient(-45deg, var(--watch-ink) 0 14px, #6a4706 14px 28px);
  color: #fff;
  font-size: .8125rem;
  line-height: 1;
  padding: 0 1rem;
  white-space: nowrap;
}

.env-banner strong {
  letter-spacing: .04em;
  text-transform: uppercase;
}

.env-banner-detail {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The banner spans both columns of the signed-in layout, above the sidebar */
.app-shell > .env-banner {
  grid-column: 1 / -1;
}

/* Schibsted's tabular figures widen the decimal point, so keep them to integer columns */
.tabular {
  font-variant-numeric: tabular-nums;
}

.app-main h1:not(.page-title),
.app-main h2,
.app-main h3 {
  color: var(--ink);
  font-weight: 700;
}

.app-main h1:not(.page-title) {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.app-main h2 {
  font-size: 1.3rem;
}
