/**
 * Remove default WordPress background color in Theme > Customize
 */
 body {
  background-color: #ffffff;
}

.ucla-prose > *:first-child {
  margin-block-start: 0;
}

.ucla-prose > *:last-child {
  margin-block-end: 0;
}

.aligncenter {
  text-align: center;
}
.alignright {
  text-align: right;
}

.wp-block-image.alignleft {
  float: left;
  margin: 1rem 1rem 1rem 0
}

.wp-block-image.alignright {
  float: right;
  margin: 1rem 0 1rem 1rem
}

/* TODO: eliminate CSS specificity war */
body .ucla-content .entry-content.ucla-prose ul:not([class]),
body .ucla-content .entry-content.ucla-prose ol:not([class]) {
  padding-left: 1.5rem;
}

/* Block Quote Styles when right align */
.wp-block-quote.has-text-align-right {
  border-right: unset;
  border-right-style: solid;
  border-right-width: var(--wp--preset--spacing--40);
  border-right-color: var(--wp--preset--color--ucla-blue);
}

/* Detail Summary Styles */
.wp-block-details summary {
    cursor: pointer;
}

.wp-block-details {
    box-sizing: border-box;
}

details {
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
}

details summary {
    cursor: pointer;
    background: #f3f6f8
}

details summary,details[open] p {
    padding: 1rem
}

details .answer {
    padding: .5rem 1rem;
}

details[open] *:not(summary) {
    font-size: .875rem;
    margin-bottom: 0;
    padding: .5rem 1rem
}

details[open] > summary:first-of-type {
    list-style-type: disclosure-open;
}

details[open] p:first-of-type {
	margin-top: 0;
}

details[open] p:last-of-type {
	margin-bottom: 1rem;
}

summary {
    display: block;
    unicode-bidi: isolate;
}

details > summary:first-of-type {
    display: list-item;
    counter-increment: list-item 0;
    list-style: inside disclosure-closed;
}

.wp-block-details summary {
    cursor: pointer;
}

/* List Styles */

ol[type="1"] {
  list-style-type: decimal;
}
ol[type="A"] {
  list-style-type: upper-alpha;
}
ol[type="a"] {
  list-style-type: lower-alpha;
}
ol[type="I"] {
  list-style-type: upper-roman;
}
ol[type="i"] {
  list-style-type: lower-roman;
}

/* Pagination */
.navigation.pagination {
  grid-area: pagination;
}
.pagination .page-numbers {
  display: flex;
  gap: 2px;
  margin: 0;
  list-style: none;
}
.pagination .page-numbers>li {
  margin: 0;
}

.pagination .page-numbers>li>.page-numbers {
  border: 2px solid transparent;
  width: 44px;
  height: 44px;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination .page-numbers>li>span.current {
  background-color: #003b5c;
  border-color: #003b5c;
  color: #fff;
}

.pagination .page-numbers>li>a.page-numbers {
  text-decoration: none;
  border-color: #00598c;
  color: #00598c;
}

.pagination .page-numbers>li>a.page-numbers:hover {
  border-color: #00568C;
  background-color: #00568C;
  color: #fff;
}

.pagination .page-numbers>li>a.page-numbers>svg>path {
  fill: #00598c;
}

.pagination .page-numbers>li>a.page-numbers:hover>svg>path {
  fill: #fff;
}

/* Page List Block Styles */
.wp-block-page-list {
  --indent-level: 0.75rem;
  list-style: none;
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
  margin-left: 0;
}


.wp-block-page-list .wp-block-pages-list__item__link {
  display: block;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-left: 4px solid transparent;
  padding-left: var(--indent-level);
}

.wp-block-navigation__submenu-container .wp-block-pages-list__item__link {
  padding-left: calc(var(--indent-level) * 2.66666667);
  background-color: #f2f2f2;
}

.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-pages-list__item__link {
  padding-left: calc(var(--indent-level) * 4);
  background-color: #e5e5e5;
}

.wp-block-page-list .wp-block-navigation__submenu-container {
  list-style: none;
  margin: 0;
  border-top: 1px solid #ccc;
}

li.wp-block-pages-list__item + li.wp-block-pages-list__item {
  margin: 0;
}

li.wp-block-pages-list__item:not(:last-child) {
  border-bottom: 1px solid #ccc;
}

.wp-block-pages-list__item.current-menu-item > .wp-block-pages-list__item__link {
  border-color: #ffd100;
}

.wp-block-pages-list__item__link:hover,
.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-pages-list__item__link:hover {
  background-color: #0079bf;
  color: #fff;
}

/* Table styles */
.ucla-table td, .ucla-table th {
  line-height: normal;
}

.ucla-card__title>a {text-decoration: none;}

.wp-block-table > figcaption {
  margin-top: 0.5rem;
}

.post-thumbnail {
  margin-bottom: 1.5rem;
}

/* Add Design System styles to inputs */
input[type='text'], input[type='input'], input[type='password'], input[type='email'], input[type='number'], input[type='url'], input[type='tel'], input[type='search'], textarea, select {
    border: 1px solid #666;
    background-color: #f2f2f2;
    border-radius: 4px;
    font-size: 1rem;
}

@media (min-width: 768px) {
  .post-thumbnail {
    margin-bottom: 2rem;
  } 
}

pre.wp-block-code code {
  background-color: transparent;
}

.wp-block-cover > .ucla__cover_button-control {
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: #ffffff;
  z-index: 5;
  line-height: 0;
  cursor: pointer;
}

.wp-block-cover > .ucla__cover_button-control:focus {
  outline-color: #FFE500;
}

.ucla-ribbon-text-body {
  z-index: 3;
  position: relative;
  width: 100%;
}

p[class*="-color"] > a,
p[class*="-color"] > a:visited {
  color: inherit;
  text-decoration: none;
}

.is-style-related-link.wp-block-button {
    margin-bottom: 0;
}

.is-style-related-link.wp-block-button + .is-style-related-link.wp-block-button > .wp-block-button__link.wp-element-button {
    border-top: 0;
}

/* Block pattern styles */

/* .wp-block-cover.ribbon-banner.alignfull > .wp-block-cover__inner-container.wp-block-cover-is-layout-flow, */
/* .wp-block-cover.has-custom-content-position.has-custom-content-position[class*='is-position-'] .wp-block-cover__inner-container.is-layout-constrained {
  width: 100%;
} */

.ucla-gateway-legacy a::after {
	position: absolute;
	display:block;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	content: '';
}

.ucla-gateway-legacy .wp-block-cover__inner-container {
  z-index: 99;
  position: unset;
}

.ucla-news-legacy .ucla-card.ucla-card__story {
  background-color: white;
}

.wp-block-cover.alignfull.has-custom-content-position.ribbon-banner {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.wp-block-query > ul.wp-block-post-template {
  margin-left: 0;
}

.wp-block-query.ucla-query-grid-cards > ul.wp-block-post-template > .wp-block-post .wp-block-post-title > a {
  text-decoration: none;
}

.wp-block-query.ucla-query-grid-cards > ul.wp-block-post-template > .wp-block-post .wp-block-post-title > a:visited {
  color: inherit;
}

/*
.ribbon-banner.wp-block-cover:not(.alignfull) > .wp-block-cover__inner-container {
  padding-left: 1.5rem;
}

.wp-block-cover.ribbon-banner.alignfull .wp-block-cover__inner-container > * {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto;
  margin-right: auto;
}
.wp-block-cover.ribbon-banner.alignfull
  .wp-block-cover__inner-container
  > .alignfull {
  max-width: none;
}
.wp-block-cover.ribbon-banner.alignfull
  .wp-block-cover__inner-container
  > .alignwide {
  max-width: var(--wp--style--global--wide-size);
} */