/* Make the content and tables full width */
@layer base {
  [data-page-template=article] {
    --_content-width: 95%
  }
  .theme-table {
    --_theme-table-width: 95%;
  }
}

/* Fix for non-100% width tables (XSD Viewer) */
#main-content > .table-wrap {
  max-inline-size: 100%;
}

.banner {
  background-position-y: 59%;
}

/* Subset of fonts that are actually used */

@font-face { font-family: "HelveticaNeueLTStd"; src: url("/public/fonts/HelveticaNeueLTStd/HelveticaNeueLTStd-Lt.otf") format("opentype"); font-style: normal; font-weight: 300; }
@font-face { font-family: "HelveticaNeueLTStd"; src: url("/public/fonts/HelveticaNeueLTStd/HelveticaNeueLTStd-LtIt.otf") format("opentype"); font-style: oblique; font-weight: 300; }
@font-face { font-family: "HelveticaNeueLTStd"; src: url("/public/fonts/HelveticaNeueLTStd/HelveticaNeueLTStd-Bd.otf") format("opentype"); font-style: normal; font-weight: 600; }
@font-face { font-family: "HelveticaNeueLTStd"; src: url("/public/fonts/HelveticaNeueLTStd/HelveticaNeueLTStd-BdIt.otf") format("opentype"); font-style: oblique; font-weight: 600; }

/* Fix heading sizes 2025-09-15 */
h1 { font-size: 28px }
h2 { font-size: 26px }
h3 { font-size: 23px }
h4 { font-size: 19px }
h5 { font-size: 16px }
h6 { font-size: 14px; font-weight: 600 }

/* h3 override for portal page tiles */
section.spaces .tile-body h3 {
  font-size: 18px;
}

/* h2 override for TOC */
nav.toc h2 {
  font-size: 13px;
  font-weight: 700;
}

/* TOC colours */
[data-component="toc"] {
  --foreground-color-selected: var(--vpt-theme-primary-color);
}

.code-macro pre code { font-size: 14px }

.code-macro pre { 
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

code-snippet { margin-bottom: 1.5rem }

:root {
  /* Always use your font with a fallback like serif or sans-serif */
  --theme-text-font: "HelveticaNeueLTStd", Arial, sans-serif;  
  --theme-headline-font: "HelveticaNeueLTStd", Arial, sans-serif;  
  --theme-text-color: #67737A;
  --theme-primary-color: #009cdd;
  --theme-on-brand-color: #ffffff;
  --K15t-foreground-on-brand: #ffffff;
  --K15t-link: #009cdd;
  --K15t-background-brand-selected: #009cdd;
  /* Make header taller so there is compliant white space above and below logo (min 28px) */
  --theme-header-height: max(calc(var(--theme-header-logo-size) + 2 * 28px), 60px);
}

article header h1 {
  color: #001e62;
}

/* Override the above for portal homepage. */
main>header>hgroup>h1 {
  color: #ffffff;
  font-size: 48px;
}

/* To make the portal page title show up better against the background image */
main>header>hgroup>h1 {
	text-shadow: 0 0 20px black, 0 0 10px black, 0 0 5px black;
}

/* Add right margin to logo in header/footer so there is compliant white space (min 28px) */
/* It only needs to be 12px because there is already a 1rem gap between the <li>s. */
img.header-logo {
  margin-right: 12px;
}

img.footer-logo {
  margin-right: 10px;
}

/* Bump up font size for nav to increase legibility */
theme-page-tree {
  font-size: 14px !important;
}

/* Hide tiles that should be hidden */
ul.tiles>li[data-order-value="Nagra Doc Portal (General)"], 
ul.tiles>li[data-order-value="Nagra Doc Portal (Login)"], 
ul.tiles>li[data-order-value="Multi-DRM and Player Integration"], 
ul.tiles>li[data-order-value="PlayReady Remote Provisioning Documentation"] {
	display: none;
}

/* Hide MDRM tile if it has been published with the wrong name (SSP Documentation) */
/* This is a janky way of doing it, as it relies on the position of the tile. */
ul.tiles>li[data-order-value="Security Services Platform Documentation"]:nth-of-type(2) {
	display: none;
}


/* Fix for tile hyphenation issue on Mac/Safari */
ul.tiles>li a {
  hyphens: none;
  -webkit-hyphens: none;
}


/* For child page macros that use an excerpt, to differentiate the link (bold) from the excerpt (not bold). */
.child-pages article>a {
	font-weight: bold;
}

[data-component="child-pages"] article > :nth-child(2)::before {
	display: block;
	content: "";
	margin-inline: 1ch;
}

/* Style <dl> (XSD Viewer) */
dl::before {
	content: "Attributes";
	font-weight: bold;
}

dl {
	margin-top: 1rem;
}

dt {
	font-family: "Atlassian Mono", ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
  background-color: rgba(5, 21, 36, 0.06);
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: .5ch;
  padding-right: .5ch;
}

dd {
	margin-left: 2rem;
}


/* Hide code block "toolbar" */
code-snippet div.theme-code-snippet-header {
	display: none;
}

/* Fix so non-<strong> text is not bold in table heads*/
th {
  font-weight: initial;
}

/* Inline images -- make smaller. */
.inline-image img {
	inline-size: 16px;
	block-size: 16px;
	min-block-size: 16px;
}
