/* Phase 2: logo, dropdown menus, footer brand row, inner pages, archives, 404. */

/* Logo */
.yoc-brand { flex: 0 1 auto; min-width: 0; }
.yoc .yoc-brand__img { display: block; height: 56px; width: auto; max-width: 260px; }
.yoc-menu-btn { flex: 0 0 auto; text-decoration: none; }
@media (max-width: 1100px) { .yoc .yoc-brand__img { height: 40px; max-width: 100%; } }
@media (max-width: 380px) { .yoc .yoc-brand__img { height: 34px; } }
/* Without JavaScript (or while a cache plugin delays it): the menu opens via #yoc-nav, with submenus expanded */
@media (max-width: 1100px) {
	.yoc-nav:target { display: block; }
}

/* Dropdown menus (desktop) */
.yoc-nav__list > li { position: relative; }
.yoc-nav__list .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: -12px; top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--yoc-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(12, 36, 81, .14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 60; }
.yoc-nav__list > li:hover > .sub-menu, .yoc-nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.yoc-nav__list .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--yoc-ink); }
.yoc-nav__list .sub-menu a:hover { background: var(--yoc-tint); color: var(--yoc-blue); text-decoration: none; }
.yoc-nav__list > .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .6; }
.yoc-nav__list > li:hover > a { color: var(--yoc-blue); }
.yoc-sub-toggle { display: none; }
@media (min-width: 1101px) { .yoc-nav { display: block !important; } .yoc-nav__list .sub-menu { display: block !important; } }

/* Dropdown menus (mobile accordion) */
@media (max-width: 1100px) {
	.yoc-nav__list > li { display: flex; flex-wrap: wrap; align-items: center; }
	.yoc-nav__list > li > a { flex: 1; }
	.yoc-nav__list > .menu-item-has-children > a::after { display: none; }
	.yoc-sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--yoc-navy); cursor: pointer; }
	.yoc-sub-toggle::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
	.yoc-nav__list li.is-open > .yoc-sub-toggle::before { transform: rotate(-135deg); }
	.yoc-nav__list .sub-menu { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 12px; display: none; min-width: 0; }
	.yoc-nav__list li.is-open > .sub-menu { display: block; }
	.yoc-nav__list .sub-menu a { padding: 11px 0; font-size: 16px; border-bottom: 1px solid var(--yoc-line); white-space: normal; border-radius: 0; }
}

/* Footer brand row */
.yoc-footer__brand { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.yoc-footer__brand img { display: block; height: 50px; width: auto; margin-bottom: 12px; }
.yoc-footer__brand p { margin: 0; max-width: 460px; font-size: 14px; line-height: 1.6; color: #C9D6EE; }
.yoc .yoc-footer__contact { text-align: right; }
@media (max-width: 782px) { .yoc .yoc-footer__contact { text-align: left; } }

/* Inner pages */
.yoc-page { padding: 28px 0 var(--yoc-sec); }
.yoc-page__wrap { max-width: 920px; }
.yoc-page__wrap--wide { max-width: 1260px; }
.yoc-crumbs { font-size: 14px; color: var(--yoc-muted); margin: 0 0 18px; }
.yoc-crumbs a { color: var(--yoc-muted); }
.yoc-crumbs a:hover { color: var(--yoc-blue); }
.yoc-crumbs__sep { margin: 0 6px; opacity: .6; }
.yoc-article__head { margin-bottom: 26px; }
.yoc-article__title { font: 400 clamp(32px, 4vw, 48px)/1.15 var(--yoc-head); color: var(--yoc-navy); margin: 0 0 8px; }
.yoc-article__meta { color: var(--yoc-muted); font-size: 14px; }

/* Content typography for Gutenberg blocks and older content */
.yoc-content { font-size: 18px; line-height: 1.75; color: var(--yoc-body); }
.yoc-content p, .yoc-content li { overflow-wrap: break-word; }
.yoc-content > * + * { margin-top: 1.1em; }
.yoc-content h2, .yoc-content h3, .yoc-content h4 { font-family: var(--yoc-head); font-weight: 400; color: var(--yoc-navy); line-height: 1.25; margin: 1.6em 0 .5em; }
.yoc-content h2 { font-size: clamp(26px, 3vw, 34px); }
.yoc-content h3 { font-size: 24px; }
.yoc-content h4 { font-size: 20px; }
.yoc-content p { margin: 0 0 1em; }
.yoc-content ul, .yoc-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.yoc-content li { margin: .3em 0; }
.yoc-content a { color: var(--yoc-blue); text-decoration: underline; text-underline-offset: 3px; }
.yoc-content img { max-width: 100%; height: auto; border-radius: 12px; }
.yoc-content blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 4px solid var(--yoc-blue); background: var(--yoc-tint); border-radius: 0 12px 12px 0; }
.yoc-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.yoc-content .wp-block-table, .yoc-content .tablepress-table-wrapper, .yoc-content .dataTables_wrapper { overflow-x: auto; }
/* Tables: never break words; scroll sideways when wider than the screen */
.yoc-content table, .yoc-content th, .yoc-content td { overflow-wrap: normal; word-break: normal; hyphens: none; }
.yoc-content table.tablepress { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.yoc-content table.tablepress td { min-width: 90px; }
.yoc-content table:not(.tablepress) th, .yoc-content table:not(.tablepress) td { padding: 10px 12px; border: 1px solid var(--yoc-line); text-align: left; }
.yoc-content table:not(.tablepress) th { background: var(--yoc-tint); color: var(--yoc-navy); }
.yoc-content .wp-block-button__link { border-radius: 999px; padding: 12px 24px; font-weight: 700; text-decoration: none; }
.yoc-content .wp-block-details { border: 1px solid var(--yoc-line); border-radius: 12px; padding: 14px 18px; }
.yoc-content .wp-block-details summary { cursor: pointer; font-weight: 700; color: var(--yoc-navy); }
.yoc-content .alignwide { max-width: 1180px; }
.yoc-content .aligncenter { margin-left: auto; margin-right: auto; }
.yoc-content .alignleft { float: left; margin: 0 1.2em 1em 0; }
.yoc-content .alignright { float: right; margin: 0 0 1em 1.2em; }
/* Design-kit pages manage their own spacing */
.yoc-content > .yo-lp { margin-top: 0; }

/* Archives and search */
.yoc-postlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.yoc-postcard { background: #fff; border: 1px solid var(--yoc-line); border-radius: 16px; overflow: hidden; }
.yoc-postcard__img img { width: 100%; height: 190px; object-fit: cover; display: block; }
.yoc-postcard__body { padding: 18px 20px; }
.yoc-postcard__title { font: 400 22px/1.3 var(--yoc-head); margin: 0 0 8px; }
.yoc-postcard__title a { color: var(--yoc-navy); }
.yoc-postcard__excerpt { font-size: 15px; color: var(--yoc-muted); margin: 0; }
.yoc-pagination { margin-top: 30px; }
.yoc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.yoc-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--yoc-line); border-radius: 10px; color: var(--yoc-navy); }
.yoc-pagination .current { background: var(--yoc-blue); color: #fff; border-color: var(--yoc-blue); }
.yoc .search-form { display: flex; gap: 8px; max-width: 520px; margin: 16px 0; }
.yoc .search-form label { flex: 1; }
.yoc .search-form .search-field { width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid var(--yoc-line-2); border-radius: 999px; font: 16px var(--yoc-font); }
.yoc .search-form .search-submit { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--yoc-blue); color: #fff; font: 700 15px var(--yoc-font); cursor: pointer; }
.yoc-empty { color: var(--yoc-muted); }
@media (max-width: 1100px) { .yoc-postlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .yoc-postlist { grid-template-columns: 1fr; } .yoc-content { font-size: 17px; } }

/* 404 */
.yoc-404 { text-align: center; padding-top: 30px; }
.yoc-404__code { font: 400 96px/1 var(--yoc-head); color: var(--yoc-blue); margin: 0 0 10px; }
.yoc-404 .search-form { margin: 22px auto; }
.yoc-404 .yoc-chips { justify-content: center; margin: 18px 0 26px; }
