/*
Theme Name: OPERS
Description: OPERS theme for the Ohio Public Employees Retirement System. A block theme with full site editing support, merged from the Planeteria Base parent theme and the OPERS child theme.
Author: Planeteria Media (Keegan Ortiz-deKramer)
Author URI: https://www.planeteria.com
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: opers
Tags: block-styles, custom-colors, custom-logo, custom-menu, featured-images, full-site-editing, full-width-template, one-column, two-columns, three-columns, left-sidebar, right-sidebar, responsive-design, accessibility-ready, translation-ready, rtl-language-support, style-variations, wide-blocks, blog, news, portfolio, sticky-post, threaded-comments
*/

html {
	scroll-behavior: smooth;
	scroll-padding-top: 150px;
}

/*
 * Screen-reader-only utility: visually hides content while keeping it
 * available to assistive technology. Use for accessible labels on
 * icon-only controls and other visually-implicit text.
 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Primary button: focus, disabled, and pressed states */
.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
.wp-element-button:not(.is-style-outline *):focus {
    background-color: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--background);
    outline: 2px solid #c942ff;
    outline-offset: 1px;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:disabled,
.wp-block-button:not(.is-style-outline) .wp-block-button__link[aria-disabled="true"],
.wp-element-button:not(.is-style-outline *):disabled,
.wp-element-button:not(.is-style-outline *)[aria-disabled="true"] {
    background-color: var(--wp--preset--color--silver);
    color: var(--wp--preset--color--tertiary);
    cursor: not-allowed;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:active,
.wp-element-button:not(.is-style-outline *):active {
    background-color: var(--wp--preset--color--deepest-lagoon);
    color: var(--wp--preset--color--background);
}

/* Secondary (outline) button: hover, focus, disabled, and pressed states */
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color: var(--wp--preset--color--deep-lagoon);
    color: var(--wp--preset--color--deep-lagoon);
    background-color: transparent !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:focus {
    border-color: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--secondary);
    background-color: transparent;
    outline: 2px solid #c942ff;
    outline-offset: 1px;
}

.wp-block-button.is-style-outline .wp-block-button__link:active {
    border-color: var(--wp--preset--color--deepest-lagoon);
    color: var(--wp--preset--color--deepest-lagoon);
    background-color: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:disabled,
.wp-block-button.is-style-outline .wp-block-button__link[aria-disabled="true"] {
    border-color: var(--wp--preset--color--tertiary);
    background-color: var(--wp--preset--color--silver);
    color: var(--wp--preset--color--tertiary);
    cursor: not-allowed;
}

/* Tertiary button: hover, focus, disabled, and pressed states */
.wp-block-button.is-style-tertiary .wp-block-button__link:hover {
    background: linear-gradient(to bottom, #ffffff, #f3f7fd);
    color: var(--wp--preset--color--deep-lagoon);
}

.wp-block-button.is-style-tertiary .wp-block-button__link:focus {
    background-color: transparent;
    color: var(--wp--preset--color--secondary);
    outline: 2px solid #c942ff;
    outline-offset: 1px;
}

.wp-block-button.is-style-tertiary .wp-block-button__link:active {
    background-color: transparent;
    color: var(--wp--preset--color--deepest-lagoon);
}

.wp-block-button.is-style-tertiary .wp-block-button__link:disabled,
.wp-block-button.is-style-tertiary .wp-block-button__link[aria-disabled="true"] {
    background-color: transparent;
    color: var(--wp--preset--color--tertiary);
    cursor: not-allowed;
}

/*
 * Arrow-icon button (.arrow_icon): renders a Font Awesome arrow after the
 * button label using the theme's self-hosted webfont. Replaces the inline
 * SVG that the (now-deactivated) Font Awesome plugin baked into the markup,
 * so the icon is editor-independent and consistent across arrow buttons.
 */
.wp-block-button.arrow_icon .wp-block-button__link::after {
    content: "\f0a9"; /* circle-arrow-right (Font Awesome 7 solid) */
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    margin-inline-start: 0.5em;
    line-height: 1;
}

/* Checkmark list style for plan comparison pattern */
.is-style-checkmark-list {
    list-style: none;
    padding-left: 0;
}

.is-style-checkmark-list li {
    position: relative;
    padding-left: 28px;
}

.is-style-checkmark-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background-color: var(--wp--preset--color--blue);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Aside callout box */
/*
.opers-aside-box {
    overflow: hidden;
}
*/
/*
.opers-aside-box__heading::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Crect x='7' y='14' width='3' height='3'/%3E%3Crect x='14' y='14' width='3' height='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
*/

/* Contribution callout */
/*
.opers-callout__content {
    align-items: stretch;
}
.opers-callout__text {
    border-top: 3px solid #3f7fc4;
    padding: 15px 20px;
}

.opers-callout-largebox {
    color: #fff;
    height: 100%;
    margin-top: -10px;
    margin-bottom: -10px;
}

.opers-callout-largebox__inner {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}

.opers-callout-largebox__item {
    position: relative;
    padding: 2px 8px;
}

.opers-callout-largebox__number {
    font-size: inherit;
    font-weight: inherit;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    display: inline;
}

.opers-callout-largebox__label {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    display: inline;
}

.opers-callout-largebox__item--add {
    position: relative;
}

.opers-callout-largebox__item--add::before {
    content: "+";
    color: #fff;
    position: absolute;
    top: 8px;
    left: -16px;
    font-size: 20px;
    font-weight: 700;
}

.opers-callout-largebox__item--sum {
    border-top: 2px solid #1b4a79;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 36px;
}

.opers-callout-largebox__item--sum .opers-callout-largebox__label {
    font-size: 15px;
}
*/

/* Benefit Formulas pattern styles live in assets/css/opers-benefit-formulas.css */

.float-right {
    float: right;
}

/* Alert System */
.alert-area {
    position: relative;
    z-index: 1001;
    display: block;
    margin-bottom: 0;
}

.alert-area.alert-dismissed {
    display: none !important;
}

/* Alert container for stacking multiple alerts */
.alert-container {
    position: relative;
    z-index: 1001;
}

.alert-container .alert-area {
    margin-bottom: 0;
}

.alert-bar {
    margin: 0;
    border-radius: 0;
    border: none;
    padding: 0;
    background-color: var(--wp--preset--color--blue);
    color: var(--wp--preset--color--background);
    width: 100%;
    position: relative;
    box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2);
}

/* Alert content wrapper to constrain content to wide width */
.alert-content {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin: 0 auto;
    padding: 16px 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Warning icon */
.alert-content::before {
    content: "!";
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--buttercup);
    color: var(--wp--preset--color--background);
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

/* Alert text */
.alert-text {
    flex: 1;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 21px;
    color: var(--wp--preset--color--background);
}

.alert-text strong,
.alert-text b {
    font-size: 16px;
    font-weight: 700;
    line-height: 22.4px;
    display: block;
}

.alert-text p {
    margin: 0;
}
/*
.alert-text p:first-child {
    font-size: 16px;
    font-weight: 700;
    line-height: 22.4px;
}
*/
.alert-text p + p {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

.alert-bar a {
    color: var(--wp--preset--color--background);
    text-decoration: underline;
}

.alert-bar a:hover {
    color: var(--wp--preset--color--light-blue);
}

/* Close button */
.alert-bar .close {
    background: none;
    border: none;
    color: var(--wp--preset--color--background);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 33px;
    border-radius: 15px;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.alert-bar .close:hover {
    opacity: 0.7;
}

.alert-bar .close span {
    display: block;
    width: 20px;
    height: 20px;
    line-height: 1;
    text-align: center;
}

/* Alert positioning containers */
#alert-container-before {
    position: relative;
    z-index: 1001;
    width: 100%;
}

#alert-container-after {
    position: relative;
    z-index: 999;
    width: 100%;
}

/* Hide alert containers when all alerts inside are dismissed */
#alert-container-before:not(:has(.alert-area:not(.alert-dismissed))),
#alert-container-after:not(:has(.alert-area:not(.alert-dismissed))) {
    display: none;
}

/* header navigation border on flyout menu items */
header ul.wp-block-navigation__submenu-container li.wp-block-navigation-item {
    border-bottom-color: var(--wp--preset--color--light-blue);
    border-bottom-width: 1px;
    border-bottom-style: solid;
}
.wp-block-navigation :where(a:hover) {
  text-decoration: underline !important
}
.wp-block-image.alignright {
  float: right;
}
.wp-block-image.alignleft {
  float: left;
}
.opacity-80 {
  opacity: 0.8;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-20 {
  opacity: 0.2;
}
.opacity-10 {
  opacity: 0.1;
}
.opacity-0 {
  opacity: 0;
}
.fa-li {
  left: 25px;
}

/* Search block: style inner wrapper */
.wp-block-search__inside-wrapper {
	padding: 0;
	border-color: var(--wp--preset--color--secondary);
	border-radius: 4px;
}

.wp-block-search__inside-wrapper input.wp-block-search__input {
	border-radius: 4px 0 0 4px;
	padding: 8px 12px;
}

.wp-block-search__inside-wrapper .wp-block-search__button {
	border-radius: 0 4px 4px 0;
}

:root :where(.wp-block-post-content) > p.is-style-sub-title:first-child {
	margin-block-start: calc(var(--wp--preset--spacing--6) * -1) !important;
    margin-bottom: var(--wp--preset--spacing--6);
}

/* Expandable grid card: pale-blue must fill entire card width */
.card-header {
    align-items: stretch;
}

/* Expandable grid card: white background on hover and expanded */
.expandable-image-grid-card:hover .card-info,
.expandable-image-grid-card.expanded .card-info {
    background-color: #fff;
}

/* ==========================================================================
   Moved from Customizer > Additional CSS
   ========================================================================== */
/*.wp-block-column p:not(.has-text-color):not(.is-style-sub-title) {margin:5px}*/
.opers-latest-articles__link a:hover {
	text-decoration: none;
}
.opers-docs__col-title a:hover {
	text-decoration: none;
}
.kb-table-container th {background: var(--wp--preset--color--blue);}
.wp-block-column .kb-table-container th p:not(.has-text-color):not(.is-style-sub-title) {
  color: #fff !important;
}
/* .opers-calculation* styles live in assets/css/opers-benefit-formulas.css */
:root :where(.wp-block-post-content) > p.is-style-sub-title:first-child {
  margin-block-start: inherit;
}
@media (max-width: 1250px) {
.wp-block-columns.break-1250 {
  flex-direction: column;
}
}

/* =============================================================================
   Search results page
   ============================================================================= */

/* "You searched for:" hero bar */
.opers-search-bar {
    margin-block: 0;
}

.opers-search-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.opers-search-hero__label {
    color: var(--wp--preset--color--primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.opers-search-hero__input-group {
    display: flex;
    align-items: stretch;
    height: 42px;
    border: 1px solid var(--wp--preset--color--secondary);
    border-radius: 4px;
    background-color: #fff;
    overflow: hidden;
}

.opers-search-hero__input-group:focus-within {
    outline: 2px solid #c942ff;
    outline-offset: 1px;
}

.opers-search-hero__input-group input[type="search"] {
    width: clamp(220px, 40vw, 380px);
    padding: 0 14px;
    border: 0;
    background-color: transparent;
    color: var(--wp--preset--color--primary);
    font-size: 1rem;
}

.opers-search-hero__input-group input[type="search"]:focus {
    outline: none;
    background-color: #fff;
}

.opers-search-hero__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 0;
    background-color: var(--wp--preset--color--secondary);
    color: #fff;
    cursor: pointer;
}

.opers-search-hero__submit:hover {
    filter: brightness(1.08);
}

/* Sidebar: search + filter */
.opers-search-sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.opers-search-sidebar__search {
    display: flex;
    align-items: stretch;
    height: 42px;
    border: 1px solid var(--wp--preset--color--secondary);
    border-radius: 4px;
    background-color: #fff;
    overflow: hidden;
}

.opers-search-sidebar__search:focus-within {
    outline: 2px solid #c942ff;
    outline-offset: 1px;
}

.opers-search-sidebar__search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    border: 0;
    background-color: transparent;
    color: var(--wp--preset--color--primary);
    font-size: 0.95rem;
}

.opers-search-sidebar__search input[type="search"]:focus {
    outline: none;
    background-color: #fff;
}

.opers-search-sidebar__search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 0;
    background-color: var(--wp--preset--color--secondary);
    color: #fff;
    cursor: pointer;
}

.opers-search-sidebar__search button:hover {
    filter: brightness(1.08);
}

.opers-search-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.opers-search-filter__label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--primary);
}

.opers-search-filter__select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.opers-search-filter__submit {
    padding: 8px 16px;
    border-radius: 4px;
    background-color: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--background);
    border: 0;
    cursor: pointer;
}

/* Result card */
.opers-search-result {
    position: relative;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    background-color: #fff;
    margin-bottom: 18px;
    padding: 0 0 32px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.opers-search-result:hover {
    background-color: #2a4b7b;
    border-color: #2a4b7b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.opers-search-result:hover .wp-block-post-title a,
.opers-search-result:hover .wp-block-post-excerpt,
.opers-search-result:hover .wp-block-post-excerpt p {
    color: #fff;
}

.opers-search-result__body {
    padding: 0 40px;
}

.opers-search-result .wp-block-post-title {
    margin: 0 0 8px;
}

.opers-search-result .wp-block-post-title a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

/* Expand the title link's clickable area to fill the whole card. */
.opers-search-result .wp-block-post-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.opers-search-result:hover .wp-block-post-title a {
    text-decoration: underline;
}

.opers-search-result .wp-block-post-excerpt {
    margin: 0;
}

.opers-search-result .wp-block-post-excerpt p {
    margin: 0;
    color: var(--wp--preset--color--primary);
}

/* Tab-style type badge flush with the top of the card body. */
.opers-search-result .opers-post-type-label-wrap {
    margin: 0 0 22px;
    line-height: 0;
}

.opers-search-result .opers-post-type-label {
    display: inline-block;
    padding: 10px 26px;
    background-color: #e4e9f2;
    color: var(--wp--preset--color--primary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: capitalize;
    letter-spacing: 0;
    border-radius: 0;
}

/* Standalone (non-card) post-type label keeps the small pill style. */
.opers-post-type-label {
    display: inline-block;
    padding: 2px 10px;
    background-color: var(--wp--preset--color--blue);
    color: var(--wp--preset--color--background);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 3px;
}

/* Search pagination: match opers-docs__pagination style. */
.opers-search-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 0;
}

.opers-search-pagination .wp-block-query-pagination-numbers {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.opers-search-pagination .page-numbers,
.opers-search-pagination .wp-block-query-pagination-previous,
.opers-search-pagination .wp-block-query-pagination-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #89a1c4;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 1.2;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
}

.opers-search-pagination .page-numbers:hover,
.opers-search-pagination .wp-block-query-pagination-previous:hover,
.opers-search-pagination .wp-block-query-pagination-next:hover {
    background: #e8f4fc;
    border-color: #3696da;
}

.opers-search-pagination .page-numbers.current {
    background: #1d3c68;
    color: #fff;
    border-color: #1d3c68;
}

.opers-search-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.opers-search-pagination .page-numbers.dots:hover {
    background: transparent;
    border-color: transparent;
}

/* Stack columns on mobile */
@media (max-width: 781px) {
    .wp-block-column.opers-search-sidebar {
        flex-basis: 100% !important;
        margin-bottom: 24px;
    }
}

/* Retirement plans comparison: when columns stack, move the divider
   from the right of the first column to the bottom. */
@media (max-width: 781px) {
    .retirement_plans > .wp-block-columns:first-of-type > .wp-block-column:first-child {
        border-right: 0 !important;
        padding-right: 0 !important;
        border-bottom: 1px solid #4097db;
        padding-bottom: 30px;
    }
}
