/* knigonova2 - Cassiopeia child template for knigonova.com.
 * The whole template is this file, in sections 1-12.
 * Read CLAUDE.md, "Editing user.css", before changing anything here. */


/* 1. Palette and type tokens ------------------------------------------------ */

:root {
	/* Site palette */
	--kn-page-bg:         #2D1401;  /* behind and below the bookshelf photo   */
	--kn-band:            rgba(34, 29, 4, .64);   /* translucent header wash  */
	--kn-headline:        #EAEDF0;  /* site title in the band                 */
	--kn-slogan:          #9BA8B5;  /* tagline under it                       */
	--kn-nav-rule:        #A3B4C8;  /* dotted line under the menu row         */
	--kn-menu-sep:        #9CAFC4;  /* hairline between menu buttons          */
	--kn-submenu-bg:      rgba(28, 23, 18, .8);
	--kn-submenu-rule:    #EDEFF2;
	--kn-sheet:           #FFFFFF;  /* article sheet and sidebar column       */
	--kn-shadow:          0 0 3px 2px rgba(0, 0, 0, .1);
	--kn-text:            #303F50;
	--kn-title:           #4E6883;  /* article title                          */
	--kn-link:            #38424C;
	--kn-link-visited:    #839BB4;
	--kn-link-hover:      #839BB4;
	--kn-block-title:     #758799;  /* module heading                         */
	--kn-block-link:      #FB7C3C;  /* module links are the orange accent     */
	--kn-block-link-vis:  #A9BACB;
	--kn-block-link-hov:  #FA5705;
	--kn-block-text:      #4E6883;
	--kn-quote-bg:        #EFF2F5;
	--kn-button:          #A1ADBA;
	--kn-button-hover:    #8A99A8;
	--kn-input-bg:        #F9FAFB;
	--kn-input-border:    #B9C2CB;
	--kn-input-text:      #3D5166;
	--kn-pager:           #D9DEE3;
	--kn-pager-active:    #B6BFC9;
	--kn-footer-rule:     #9CAFC4;
	--kn-footer-link:     #96AAC0;
	--kn-footer-visited:  #7C96B1;
	--kn-footer-hover:    #FC905A;
	--kn-image-border:    #9CAFC4;

	--kn-font: Arial, "Arial Unicode MS", Helvetica, sans-serif;

	/* Cassiopeia's own tokens, repointed */
	--cassiopeia-color-primary: #2D1401;
	--cassiopeia-color-link:    #38424C;
	--cassiopeia-color-hover:   #839BB4;
	--cassiopeia-font-family-body:     Arial, "Arial Unicode MS", Helvetica, sans-serif;
	--cassiopeia-font-family-headings: Arial, "Arial Unicode MS", Helvetica, sans-serif;
	--cassiopeia-font-weight-normal:   400;
	--cassiopeia-font-weight-headings: 700;

	/* Bootstrap 5.2 tokens (Joomla 4) */
	--bs-font-sans-serif:   Arial, "Arial Unicode MS", Helvetica, sans-serif;
	--bs-body-font-family:  Arial, "Arial Unicode MS", Helvetica, sans-serif;
	--bs-body-font-size:    13px;
	--bs-body-color:        #303F50;
	--bs-link-color:        #38424C;
	--bs-link-hover-color:  #839BB4;
	--bs-border-radius:     3px;

	/* Bootstrap 5.3 dropped the --bs- prefix (Joomla 5) */
	--body-font-family:  Arial, "Arial Unicode MS", Helvetica, sans-serif;
	--body-font-size:    13px;
	--body-color:        #303F50;
	--link-color:        #38424C;
	--link-hover-color:  #839BB4;
	--border-radius:     3px;
}


/* 2. Page shell ------------------------------------------------------------- */
/* The bookshelf photo is a page background with the wordmark baked into it, not
 * a header band - the sheet is pushed down far enough to clear the wordmark. */

html {
	background-color: var(--kn-page-bg);
	background-repeat: no-repeat;
	background-position: top center;
	background-image: url("../images/page.jpg");
	background-image: image-set(url("../images/page.webp") type("image/webp"),
	                            url("../images/page.jpg")  type("image/jpeg"));
}

/* The 900px cap goes on <body>, never on .site-grid. min-height clears
 * Cassiopeia's 100vh, which would otherwise add the 200px offset on top of a
 * full viewport; the original had no sticky footer either. */
body.site {
	max-width: 900px;
	min-height: 0;
	margin: 200px auto 0;
	background: none;
	color: var(--kn-text);
	font-family: var(--kn-font);
	font-size: 13px;
	line-height: 1.25;
}

a {
	color: var(--kn-link);
	text-decoration: none;
}

a:visited {
	color: var(--kn-link-visited);
}

a:hover,
a:focus {
	color: var(--kn-link-hover);
	text-decoration: underline;
}


/* 3. Header band and brand -------------------------------------------------- */
/* header.png was a single flat colour at 64% alpha, so it ships as a colour. */

.container-header {
	position: relative;
	min-height: 80px;
	padding: 0;
	background: var(--kn-band);
	color: #FFFFFF;
	box-shadow: none;
	overflow: visible;   /* never clip the menu fly-out (§4) */
}

.container-header .grid-child {
	max-width: none;
	padding: 0;
	margin: 0;
}

/* The brand overlays the left of the band while the menu row spans its full
 * width - the same arrangement .art-nav got from position: absolute. Keyed to
 * 992px, not 768px: below that Cassiopeia stacks the menu vertically and an
 * absolute brand lands on top of it. */
@media (min-width: 992px) {
	.container-header > .grid-child:not(.container-nav) {
		position: absolute;
		top: 2px;
		left: 12px;
		z-index: 2;
		display: block;
		width: auto;
		max-width: 42%;
	}
}

.container-header .navbar-brand {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 36px;
	line-height: 40px;
}

.container-header .navbar-brand a,
.container-header .navbar-brand .brand-logo,
.container-header .site-title {
	color: var(--kn-headline);
	font-size: 36px;
	font-weight: 400;
	line-height: 40px;
	text-decoration: none;
	white-space: nowrap;
}

.container-header .navbar-brand a:hover,
.container-header .navbar-brand a:focus {
	color: var(--kn-headline);
	text-decoration: none;
}

.container-header .site-description {
	margin-top: 3px;
	color: var(--kn-slogan);
	font-size: 16px;
	line-height: 1.2;
	white-space: nowrap;
}

/* A logo image would overflow the 80px band; the design has no logo file. */
.container-header .navbar-brand img.logo {
	max-height: 44px;
	width: auto;
}

/* Menu row on top, search under it, both spanning the band. */
.container-header .container-nav {
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	margin: 0;
}

.container-header .container-nav > nav,
.container-header .container-nav > .mod-menu {
	width: 100%;
	margin: 0;
}


/* 4. Top menu --------------------------------------------------------------- */

.container-header .mod-menu {
	justify-content: flex-end;   /* ul.art-hmenu was floated right */
	margin: 0;
	padding: 0;
	border-bottom: 1px dotted var(--kn-nav-rule);
	list-style: none;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .mod-menu > li > .mod-menu__heading {
	display: block;
	height: 34px;
	padding: 0 17px;
	border-radius: 3px;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 700;
	line-height: 34px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
}

.container-header .mod-menu > li + li {
	margin-left: 11px;
}

.container-header .mod-menu > li:first-child {
	margin-left: 5px;
}

/* Clears Cassiopeia's .metismenu-item padding: .5em 1em, which is 17.6px there
 * because the same class also sets font-size: 1.1rem. */
.container-header .metismenu.mod-menu > li {
	padding: 0;
	font-size: 13px;
}

/* Cassiopeia grows a 2px underline out of these; this design underlines the
 * label instead. Killing content removes the box the later rules would paint. */
.container-header .mod-menu > li::after,
.container-header .metismenu.mod-menu > li > a::after,
.container-header .metismenu.mod-menu > li > button::before {
	content: none;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
	color: #FFFFFF;
	text-decoration: underline;
}

/* menuseparator.png was a 1px hairline on an otherwise empty 1x34 canvas. */
@media (min-width: 992px) {
	.container-header .mod-menu > li + li::before {
		content: "";
		position: absolute;
		top: 50%;
		left: -6px;
		width: 1px;
		height: 10px;
		margin-top: -5px;
		background: var(--kn-menu-sep);
	}
}

/* The original leaves the current item looking like the rest. */
.container-header .metismenu.mod-menu > li.active > a,
.container-header .metismenu.mod-menu > li > a.active {
	text-decoration: none;
}

/* The .mod-menu rules serve mod_menu's plain _:default layout. .parent > ul is
 * restated because Cassiopeia colours and hides that at one class more. */
.container-header .mod-menu ul,
.container-header .mod-menu .parent > ul {
	padding: 5px 0;
	border-radius: 3px;
	background: var(--kn-submenu-bg);
	color: #FFFFFF;
	list-style: none;
}

.container-header .mod-menu ul li {
	margin: 9px 0;
}

.container-header .mod-menu ul li:first-child { margin-top: 0; }
.container-header .mod-menu ul li:last-child  { margin-bottom: 0; }

.container-header .mod-menu ul li + li {
	border-top: 1px dotted var(--kn-submenu-rule);
}

.container-header .mod-menu ul a {
	display: block;
	min-height: 25px;
	padding: 0 10px;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 400;
	line-height: 25px;
	text-align: left;
	text-transform: none;
}

.container-header .mod-menu ul a:hover,
.container-header .mod-menu ul a:focus {
	color: #FFFFFF;
	text-decoration: underline;
}

/* The .metismenu-prefixed set restates the same values a notch above
 * Cassiopeia's own metismenu block, which always carries one class more.
 * Edit a value in one and it must be changed in the other. */
.container-header .metismenu.mod-menu .mm-collapse {
	padding: 5px 0;
	border-radius: 3px;
	background: var(--kn-submenu-bg);
	box-shadow: none;
	color: #FFFFFF;
	font-size: 14px;   /* the em basis for min-width below */
}

/* Cassiopeia flexes these rows and sizes them 1.1rem, which shrink-wraps the
 * hover target and leaks 17.6px into anything the row measures in em. */
.container-header .metismenu.mod-menu .mm-collapse > li {
	display: block;
	margin: 9px 0;
	padding: 0;
	font-size: 14px;
}

.container-header .metismenu.mod-menu .mm-collapse > li:first-child { margin-top: 0; }
.container-header .metismenu.mod-menu .mm-collapse > li:last-child  { margin-bottom: 0; }

.container-header .metismenu.mod-menu .mm-collapse > li + li {
	border-top: 1px dotted var(--kn-submenu-rule);
}

.container-header .metismenu.mod-menu .mm-collapse > li > a {
	display: block;
}

/* Desktop fly-out, asserted here because Cassiopeia has no hover option; below
 * 992px metismenu's accordion is left alone. Needs mod_menu's Show Sub-menu
 * Items = Yes and End Level = All, or there is no child <ul> to open. */
@media (min-width: 992px) {
	.container-header .mod-menu li {
		position: relative;
	}

	.container-header .mod-menu ul {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 500;
		display: none;
		min-width: 7em;
	}

	.container-header .mod-menu ul ul {
		top: 0;
		left: 100%;
	}

	.container-header .mod-menu li:hover > ul,
	.container-header .mod-menu li:focus-within > ul {
		display: block;
	}

	/* Restates Cassiopeia's .mm-collapse:not(.mm-show) gate. Dropping
	 * :not(.mm-show) is deliberate - it re-closes a tap-latched panel.
	 * li.level-1 > ul carries min-width because Cassiopeia pins 12rem there. */
	.container-header .metismenu.mod-menu .mm-collapse,
	.container-header .metismenu.mod-menu > li.level-1 > ul {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 500;
		display: none;
		min-width: 7em;
	}

	/* Level 2+ flies right; repainted because Cassiopeia's own rule does too. */
	.container-header .metismenu.mod-menu .mm-collapse > li.parent > ul {
		position: absolute;
		top: 0;
		left: 100%;
		margin: 0;
		background: var(--kn-submenu-bg);
		box-shadow: none;
	}

	/* !important beats the inline height/overflow metismenu's JS writes here. */
	.container-header .metismenu.mod-menu li:hover > ul,
	.container-header .metismenu.mod-menu li:focus-within > ul {
		display: block;
		height: auto !important;
		overflow: visible !important;
	}

	/* Hover drives the fly-out, so the toggler is redundant and its click would
	 * latch .mm-show open. Two selectors: Cassiopeia re-shows the nested ones. */
	.container-header .metismenu.mod-menu .mm-toggler,
	.container-header .metismenu.mod-menu .mm-collapse > li.parent .mm-toggler {
		display: none;
	}
}

/* Search box sits under the menu, at the right of the band. */
.container-header .container-search {
	margin-top: 4px;
	margin-left: auto;
	margin-bottom: 5px;
	padding-right: 5px;
}

.container-header .container-search input[type="text"],
.container-header .container-search input[type="search"],
.container-header .container-search .form-control {
	width: 200px;
	max-width: 100%;
	padding: 4px 6px;
	background: #FFFFFF;
	border: 1px solid #CCD6E0;
	border-radius: 4px;
	color: #364049;
	font-size: 13px;
}


/* 5. Component area --------------------------------------------------------- */
/* One sheet wraps the whole component output, so it goes on <main> rather than
 * on each article - .art-post was ArtxPage::componentWrapper, not per-item. */

.container-component > main,
.container-component main {
	display: block;
	padding: 20px;
	background: var(--kn-sheet);
	box-shadow: var(--kn-shadow);
}

main .page-header h1,
main .page-header h2,
main .item-title,
main .com-content-article__title {
	margin: 5px 10px;
	color: var(--kn-title);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
}

main .page-header h1 a,
main .item-title a,
main .com-content-article__title a {
	color: #627384;
	text-decoration: none;
}

main .page-header h1 a:visited,
main .item-title a:visited {
	color: #708BA9;
}

main .page-header h1 a:hover,
main .item-title a:hover {
	color: var(--kn-block-link);
	text-decoration: none;
}

main .article-info {
	margin: 0 10px 8px;
	padding: 0;
	color: #647587;
	font-size: 12px;
}

main .article-info a {
	color: #4C5967;
}


/* 6. Content typography, lists, tables, blockquote -------------------------- */

main {
	color: var(--kn-text);
	font-size: 14px;
	line-height: 1.25;
}

main a          { color: var(--kn-link); text-decoration: none; }
main a:visited  { color: var(--kn-link-visited); }
main a:hover    { color: var(--kn-link-hover); text-decoration: underline; }

main h1 { margin: 10px 0 0; color: #6C7F93; font-size: 22px; font-weight: 700; line-height: 1.2; }
main h2 { margin: 10px 0 0; color: #8D9CAA; font-size: 20px; font-weight: 700; line-height: 1.2; }
main h3 { margin: 10px 0 0; color: #607E9F; font-size: 18px; font-weight: 700; line-height: 1.2; }
main h4 { margin: 10px 0 0; color: #4E6883; font-size: 16px; font-weight: 700; line-height: 1.2; }
main h5 { margin: 10px 0 0; color: #4E6883; font-size: 14px; font-weight: 700; line-height: 1.2; }
main h6 { margin: 10px 0 0; color: #A6B7C9; font-size: 14px; font-weight: 700; line-height: 1.2; }

main p {
	margin: 10px 0;
}

main ul {
	margin: 1em 0 1em 11px;
	padding-left: 12px;
	list-style-image: url("../images/postbullets.png");
}

main ol {
	margin: 1em 0 1em 11px;
}

main li {
	margin: 3px 0 0;
	color: var(--kn-text);
}

main li ul,
main li ol {
	margin: .5em 0 .5em 11px;
}

/* Structural lists keep Cassiopeia's reset. */
main .nav,
main .mod-menu,
main .mod-list,
main .list-unstyled,
main .pagination,
main .breadcrumb,
main nav ul {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

/* No cell borders in this design - the catalogue's own tables rely on that. */
main table {
	border-collapse: collapse;
	margin: 1px;
}

main table th,
main table td {
	padding: 2px;
	vertical-align: top;
	text-align: left;
}

main table th {
	padding: 7px;
	text-align: center;
	vertical-align: middle;
}

blockquote {
	margin: 0 0 0 10px;
	padding: 10px 10px 10px 47px;
	background: var(--kn-quote-bg) url("../images/postquote.png") no-repeat left top;
	color: #0D1216;
	font-style: italic;
	overflow: auto;
	clear: both;
}

blockquote p {
	margin: 5px 0;
}


/* 7. Modules in the content column ------------------------------------------ */
/* Everything outside the sheet sits on a dark photo, so these carry the same
 * white sheet .art-post gave position-23. Titles get the .art-postheader look. */

/* Deliberately no margin here - Cassiopeia's own container spacing (1em in the
 * component column, .5em in top/bottom) is what separates these sheets. */
:is(.container-below-top, .container-top-a, .container-top-b,
    .container-main-top, .container-main-bottom,
    .container-bottom-a, .container-bottom-b, .container-component) > .card {
	padding: 20px;
	border: 0;
	border-radius: 0;
	background: var(--kn-sheet);
	box-shadow: var(--kn-shadow);
	color: var(--kn-text);
	font-size: 14px;
	line-height: 1.25;
}

:is(.container-below-top, .container-top-a, .container-top-b,
    .container-main-top, .container-main-bottom,
    .container-bottom-a, .container-bottom-b, .container-component) > .card > .card-header {
	margin: 0 0 5px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--kn-title);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
}

:is(.container-below-top, .container-top-a, .container-top-b,
    .container-main-top, .container-main-bottom,
    .container-bottom-a, .container-bottom-b, .container-component) > .card > .card-header > * {
	margin: 0;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

:is(.container-below-top, .container-top-a, .container-top-b,
    .container-main-top, .container-main-bottom,
    .container-bottom-a, .container-bottom-b, .container-component) > .card > .card-body {
	padding: 0;
	border: 0;
	background: none;
}

/* topbar and banner hold tracking scripts and must stay invisible. */
.container-topbar .card,
.container-banner .card {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}


/* 8. Sidebar column and its modules ----------------------------------------- */
/* .art-sidebar1 was a white table cell with transparent .art-block modules in
 * it, so the sheet is the column and the cards carry no chrome of their own. */

.container-sidebar-left,
.container-sidebar-right {
	background: var(--kn-sheet);
	box-shadow: var(--kn-shadow);
}

:is(.container-sidebar-left, .container-sidebar-right) > .card {
	margin: 10px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

:is(.container-sidebar-left, .container-sidebar-right) > .card > .card-header {
	margin: 0;
	padding: 6px 7px;
	border: 0;
	background: none;
	color: var(--kn-block-title);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

:is(.container-sidebar-left, .container-sidebar-right) > .card > .card-header > * {
	margin: 0 5px;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

:is(.container-sidebar-left, .container-sidebar-right) > .card > .card-body {
	padding: 7px;
	border: 0;
	background: none;
	color: var(--kn-text);
	font-size: 13px;
	line-height: 1.25;
}

:is(.container-sidebar-left, .container-sidebar-right) .card-body a         { color: var(--kn-block-link); }
:is(.container-sidebar-left, .container-sidebar-right) .card-body a:visited { color: var(--kn-block-link-vis); text-decoration: none; }
:is(.container-sidebar-left, .container-sidebar-right) .card-body a:hover   { color: var(--kn-block-link-hov); text-decoration: none; }

:is(.container-sidebar-left, .container-sidebar-right) .card-body ul {
	margin: 0;
	padding-left: 16px;
	list-style-image: url("../images/blockbullets.png");
}

:is(.container-sidebar-left, .container-sidebar-right) .card-body li {
	margin: 5px 0 0 10px;
	color: var(--kn-block-text);
	line-height: 1.75;
}

:is(.container-sidebar-left, .container-sidebar-right) .card-body img {
	margin: 3px;
	border: 1px solid var(--kn-image-border);
	max-width: 100%;
	height: auto;
}

/* A sidebar mod_menu is a metismenu here but was a plain ul.menu in .art-block,
 * so the rows are flattened back to list items and keep the block bullet. */
:is(.container-sidebar-left, .container-sidebar-right) .metismenu.mod-menu > li,
:is(.container-sidebar-left, .container-sidebar-right) .metismenu.mod-menu .mm-collapse > li {
	display: list-item;
	padding: 0;
	font-size: 13px;
}

:is(.container-sidebar-left, .container-sidebar-right) .metismenu.mod-menu .mm-collapse {
	padding-left: 16px;
	background: none;
	box-shadow: none;
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu a {
	display: inline;
}


/* 9. Breadcrumbs and pagination --------------------------------------------- */

/* padding is a fallback only - mod_breadcrumbs prints px-3 py-2 on the <ol> and
 * Bootstrap's utilities carry !important, so today they win. */
.container-component .breadcrumb {
	margin: 0;
	padding: 6px 10px;
	background: var(--kn-sheet);
	box-shadow: var(--kn-shadow);
	border-radius: 0;
	font-size: 13px;
}

.pagination {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 10px 0;
	padding: 6px;
}

/* No border-radius here: Bootstrap rounds the first and last items at one
 * element more, so setting it would round the middle ones differently. */
.pagination .page-link,
.pagination .page-item > span {
	padding: 10px;
	background: var(--kn-pager);
	border: 0;
	color: #1C2126;
	font-size: inherit;
	text-decoration: none;
}

.pagination .page-link:hover {
	background: #B9C2CB;
	color: #21262C;
}

.pagination .page-item.active .page-link,
.pagination .page-item.active > span {
	background: var(--kn-pager-active);
	color: #FFFFFF;
}


/* 10. Forms and buttons ----------------------------------------------------- */

.btn,
button,
input[type="submit"],
input[type="button"],
.button {
	height: auto;
	min-height: 24px;
	padding: 0 21px;
	background: var(--kn-button);
	border: 0;
	border-radius: 3px;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 400;
	line-height: 24px;
	text-decoration: none;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	background: var(--kn-button-hover);
	color: #FFFFFF;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
select,
textarea,
.form-control {
	padding: 4px 6px;
	background: var(--kn-input-bg);
	border: 1px solid var(--kn-input-border);
	border-radius: 4px;
	color: var(--kn-input-text);
	font-size: 13px;
}


/* 11. Footer ---------------------------------------------------------------- */
/* The footer sits on the page background, not on a sheet, so its text is white. */

.container-footer {
	margin: 20px 0 0;
	padding: 25px;
	background: none;
	border-top: 1px dotted var(--kn-footer-rule);
	color: #FFFFFF;
	font-size: 13px;
	line-height: 1.75;
	text-align: center;
}

.container-footer .grid-child {
	display: block;
	max-width: none;
	padding: 0;
}

.container-footer p {
	padding: 0;
	text-align: center;
}

.container-footer a:not(.btn)          { color: var(--kn-footer-link); text-decoration: none; }
.container-footer a:not(.btn):visited  { color: var(--kn-footer-visited); }
.container-footer a:not(.btn):hover,
.container-footer a:not(.btn):focus    { color: var(--kn-footer-hover); text-decoration: underline; }

.container-footer img {
	margin: 0;
	border: 0;
	max-width: 100%;
	height: auto;
}

/* Counter / analytics modules live here and must not get card chrome. */
.container-footer .card {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
}


/* 12. Responsive ------------------------------------------------------------ */
/* Cassiopeia's breakpoints do the layout work; these keep the sheet sitting on
 * the same spot of the photo once either stops being its design size. */

/* Below the photo's own 1280px the whole image scales instead of being cropped,
 * so the wordmark never loses its ends - and the sheet offset scales with it. */
@media (max-width: 1280px) {
	html {
		background-size: 100% auto;
	}

	body.site {
		margin-top: 15.625vw;   /* 200 / 1280 */
	}
}

@media (max-width: 920px) {
	body.site {
		margin-right: 1%;
		margin-left: 1%;
	}
}

/* Below 992px the menu is a stacked accordion, so the brand goes back into the
 * flow above it and everything in the band gets its own gutter. */
@media (max-width: 991px) {
	.container-header > .grid-child {
		padding: 4px 10px;
	}

	.container-header .navbar-brand,
	.container-header .navbar-brand a,
	.container-header .site-title {
		font-size: 28px;
		line-height: 32px;
		white-space: normal;
	}

	.container-header .site-description {
		white-space: normal;
	}

	.container-header .mod-menu > li,
	.container-header .mod-menu > li:first-child {
		margin: 1px 0;
	}

	.container-header .mod-menu > li > a {
		height: auto;
		padding: 4px 12px;
		line-height: 1.5;
		text-align: left;
	}

	.container-header .container-search {
		margin-left: 0;
	}

	.container-header .container-search input[type="text"],
	.container-header .container-search input[type="search"],
	.container-header .container-search .form-control {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.container-component > main,
	.container-component main,
	:is(.container-below-top, .container-top-a, .container-top-b,
	    .container-main-top, .container-main-bottom,
	    .container-bottom-a, .container-bottom-b, .container-component) > .card {
		padding: 10px;
	}

	.container-footer {
		padding: 15px;
	}
}

main img,
main video {
	max-width: 100%;
	height: auto;
}

/* No height: auto here - an iframe has no intrinsic ratio and would collapse to
 * the 150px default. Video embeds get the ratio explicitly instead, matched by
 * host so maps and forms keep the height they ask for. */
main iframe {
	max-width: 100%;
}

main iframe[src*="youtube.com"],
main iframe[src*="youtube-nocookie.com"],
main iframe[src*="youtu.be"],
main iframe[src*="player.vimeo.com"] {
	height: auto;
	aspect-ratio: 16 / 9;
}
