/*
Theme Name: 여기여
Theme URI: https://xn--ok0b408ae3ad3fba918b75i.org/
Description: 한국어 공식 링크를 검색하고 분야별로 살펴보는 여기여 테마입니다.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: yeogiyeo
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --yg-paper: #f5f7f3;
    --yg-white: #fff;
    --yg-ink: #172d24;
    --yg-muted: #50635a;
    --yg-line: #dce6dc;
    --yg-deep: #153b30;
    --yg-green: #1b604b;
    --yg-soft: #e8f1e8;
    --yg-lime: #d8f69a;
    --yg-focus: #247d60;
    --yg-gutter: clamp(1rem, 3.6vw, 2.5rem);
    --yg-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6.5rem; }
body {
    margin: 0;
    color: var(--yg-ink);
    background: var(--yg-paper);
    font: 400 1rem/1.65 var(--yg-sans);
    overflow-wrap: break-word;
    -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.24; letter-spacing: -.045em; word-break: keep-all; }
p { word-break: keep-all; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yg-focus); outline-offset: 4px; }
main:focus { outline: none; }
.yg-wrap { width: min(100% - 2 * var(--yg-gutter), 1200px); margin-inline: auto; }
.yg-icon { display: inline-block; width: 1.25rem; height: 1.25rem; flex-shrink: 0; vertical-align: middle; }
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.yg-skip:focus {
    width: auto;
    height: auto;
    padding: .75rem 1rem;
    inset: .5rem auto auto .5rem;
    background: var(--yg-white);
    color: var(--yg-ink);
    clip-path: none;
    z-index: 100100;
    border-radius: .5rem;
}
.yg-status {
    position: fixed;
    z-index: 30;
    inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) auto;
    max-width: min(25rem, calc(100% - 2rem));
    padding: .65rem 1rem;
    border-radius: .7rem;
    background: var(--yg-deep);
    color: var(--yg-white);
    box-shadow: 0 5px 20px #0a241d20;
}
.yg-status:empty { padding: 0; box-shadow: none; }

.yg-header {
    position: sticky;
    z-index: 15;
    top: 0;
    background: var(--yg-paper);
    border-bottom: 1px solid var(--yg-line);
}
.admin-bar .yg-header { top: 32px; }
.yg-header-inner {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(.8rem, 2.1vw, 2rem);
}
.yg-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    flex: none;
    width: fit-content;
    font-size: 1.48rem;
    font-weight: 850;
    letter-spacing: -.08em;
    line-height: 1.1;
}
.yg-brand img { display: block; border-radius: 11px; flex-shrink: 0; }
.yg-menu-list, .yg-service-grid, .yg-topic-grid, .yg-related-grid, .yg-quick-links, .yg-footer-topics, .yg-picks ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.yg-nav .yg-menu-list { display: flex; align-items: center; justify-content: center; gap: .22rem; }
.yg-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .35rem clamp(.5rem, 1vw, .85rem);
    border-radius: .55rem;
    white-space: nowrap;
    font-size: .94rem;
    font-weight: 670;
}
.yg-nav a:is(:hover, [aria-current="page"]), .yg-nav .current-menu-ancestor > a { color: var(--yg-green); background: var(--yg-soft); }
.yg-header-actions { display: flex; align-items: center; gap: .45rem; }
.yg-header-save, .yg-menu-button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .4rem .72rem;
    border: 1px solid #cbdccf;
    border-radius: .65rem;
    background: var(--yg-white);
    color: var(--yg-ink);
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 750;
}
.yg-header-save:is(:hover, [aria-current="page"]), .yg-menu-button:hover { color: var(--yg-green); background: var(--yg-soft); }
.yg-header-save .yg-icon { width: 1.07rem; height: 1.07rem; }
.yg-menu-button { display: none; }
.yg-saved-badge { min-width: 1.25rem; padding: .02rem .22rem; border-radius: 1rem; text-align: center; background: var(--yg-lime); font-size: .75rem; }

.yg-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .8fr);
    min-height: 438px;
    align-items: stretch;
    overflow: hidden;
    margin-top: 1.65rem;
    background: var(--yg-deep);
    color: var(--yg-white);
    border-radius: 29px;
}
.yg-hero-main {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: clamp(2rem, 4.5vw, 4.1rem) 0 clamp(2rem, 4.5vw, 4.1rem) clamp(1.7rem, 5vw, 4.25rem);
}
.yg-hero-label {
    margin-bottom: .68rem;
    color: var(--yg-lime);
    font-size: .9rem;
    font-weight: 760;
    letter-spacing: .015em;
}
.yg-hero h1 { font-size: clamp(2.7rem, 5.35vw, 4.7rem); line-height: 1.09; font-weight: 870; letter-spacing: -.086em; }
.yg-hero-copy { margin-top: 1.15rem; max-width: 27rem; color: #deece3; font-size: clamp(.97rem, 1.45vw, 1.14rem); }
.yg-hero-bottom { display: flex; align-items: center; gap: .5rem 1.15rem; flex-wrap: wrap; margin-top: .87rem; color: #d4e7d9; font-size: .87rem; }
.yg-hero-bottom a { display: inline-flex; min-height: 40px; align-items: center; gap: .36rem; color: var(--yg-lime); font-weight: 740; }
.yg-hero-bottom a:hover { text-decoration: underline; text-underline-offset: .2em; }
.yg-hero-bottom .yg-icon { width: 1.03rem; height: 1.03rem; }
.yg-hero :focus-visible, .yg-footer :focus-visible { outline-color: var(--yg-lime); }

.yg-search {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .6rem;
    padding: .32rem .35rem .32rem .95rem;
    min-height: 60px;
    border: 1px solid #aebfb4;
    border-radius: .8rem;
    background: var(--yg-white);
    color: var(--yg-ink);
}
.yg-hero .yg-search { margin-top: 1.35rem; max-width: 32.5rem; border-color: transparent; }
.yg-search:focus-within { outline: 2px solid var(--yg-focus); outline-offset: 3px; }
.yg-hero .yg-search:focus-within { outline-color: var(--yg-lime); }
.yg-search > .yg-icon { color: var(--yg-green); }
.yg-search input {
    width: 100%;
    min-width: 0;
    padding: .42rem .1rem;
    border: 0;
    outline: 0;
    color: var(--yg-ink);
    background: transparent;
    font-size: 1rem;
}
.yg-search input::placeholder { color: #5c6c62; opacity: 1; }
.yg-search button, .yg-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 46px;
    padding: .55rem 1.08rem;
    border: 0;
    border-radius: .6rem;
    background: var(--yg-deep);
    color: var(--yg-white);
    white-space: nowrap;
    font-size: .94rem;
    font-weight: 760;
}
.yg-search button:hover, .yg-button:hover { background: var(--yg-green); }
.yg-hero .yg-search button { background: var(--yg-lime); color: #173326; }
.yg-hero .yg-search button:hover { background: #c8ed79; }
.yg-search button:focus-visible { outline-color: var(--yg-focus); outline-offset: 2px; }

.yg-hero-side {
    position: relative;
    display: grid;
    align-items: center;
    padding: 2.2rem clamp(1.4rem, 4.5vw, 4rem) 2.2rem clamp(1rem, 3.1vw, 2.4rem);
    min-width: 0;
}
.yg-map-rings {
    pointer-events: none;
    position: absolute;
    inset: 0 -1px 0 -2rem;
    opacity: .92;
    background: radial-gradient(ellipse at 80% 52%, #32765c 0, #245946 42%, transparent 70%);
    z-index: -1;
}
.yg-map-rings::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#b7deb583 1px, transparent 1px);
    background-size: 17px 17px;
    mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.yg-map-rings i {
    position: absolute;
    width: 32rem;
    height: 16rem;
    top: 14%;
    right: -27%;
    border: 1px solid #c6e2be50;
    border-radius: 50%;
    transform: rotate(-28deg);
}
.yg-map-rings i:nth-child(2) { transform: translateY(2.5rem) rotate(-28deg) scale(1.12); }
.yg-map-rings i:nth-child(3) { transform: translateY(5rem) rotate(-28deg) scale(1.22); }
.yg-picks {
    position: relative;
    padding: 1.15rem;
    background: #eff6e9;
    color: var(--yg-ink);
    border: 1px solid #e1eddf;
    border-radius: 1.24rem;
    box-shadow: 0 15px 32px #0b2d2750;
}
.yg-picks h2 { margin: .22rem .15rem .85rem; font-size: 1.17rem; font-weight: 840; }
.yg-picks li + li { margin-top: .42rem; }
.yg-picks li a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    padding: .47rem .62rem;
    min-height: 54px;
    border: 1px solid #e2ebe1;
    border-radius: .66rem;
    background: var(--yg-white);
}
.yg-picks li a:hover { border-color: #8caf9b; }
.yg-picks li a > .yg-icon { width: 1rem; color: #53685e; }
.yg-picks li strong, .yg-picks li small { display: block; }
.yg-picks li strong { font-size: .96rem; line-height: 1.25; }
.yg-picks li small { font-size: .76rem; color: var(--yg-muted); overflow-wrap: anywhere; }
.yg-pick-icon { display: grid; place-items: center; width: 34px; height: 34px; background: #e3efe2; color: var(--yg-green); border-radius: .5rem; }
.yg-pick-icon .yg-icon { width: 1.1rem; height: 1.1rem; }
.yg-picks-more { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: .45rem; margin: .4rem .18rem -.22rem; font-size: .87rem; color: var(--yg-green); font-weight: 750; }
.yg-picks a:focus-visible { outline-color: var(--yg-focus); }

.yg-section { margin-block: clamp(2.35rem, 5vw, 3.9rem); }
.yg-section-heading { display: flex; align-items: end; justify-content: space-between; gap: .6rem 1.3rem; margin-bottom: 1.08rem; }
.yg-section-heading h2, .yg-related h2, .yg-home-faq h2 { font-size: clamp(1.45rem, 2.65vw, 2.15rem); font-weight: 820; }
.yg-section-heading p, .yg-home-faq p { color: var(--yg-muted); margin-top: .32rem; font-size: .96rem; }
.yg-text-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: .2rem;
    min-height: 44px;
    color: var(--yg-green);
    font-size: .92rem;
    font-weight: 770;
    white-space: nowrap;
}
.yg-text-link:hover, .yg-picks-more:hover { text-decoration: underline; text-underline-offset: .22em; }
.yg-text-link .yg-icon { width: 1rem; height: 1rem; }

.yg-topic-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .72rem; }
.yg-topic-tile {
    height: 100%;
    min-height: 134px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr auto;
    align-items: start;
    gap: .22rem .35rem;
    padding: .92rem .95rem .69rem;
    border: 1px solid var(--yg-line);
    border-radius: 13px;
    background: var(--yg-white);
}
.yg-topic-tile:hover { border-color: #91b4a0; background: #fbfdfa; }
.yg-topic-icon, .yg-service-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: .62rem;
    background: var(--yg-soft);
    color: var(--yg-green);
}
.yg-tone-lime { background: #edf5d7; color: #476322; }
.yg-tone-peach { background: #f9ebdd; color: #7f4b31; }
.yg-tone-lilac { background: #ebeaf7; color: #534d86; }
.yg-tone-fern { background: #e5f0e5; color: #245b45; }
.yg-topic-tile > .yg-icon { grid-column: 2; grid-row: 1; margin-top: .35rem; color: #657870; width: 1.06rem; }
.yg-topic-name { grid-column: 1 / -1; font-weight: 820; letter-spacing: -.035em; margin-top: .3rem; font-size: clamp(.97rem, 1.3vw, 1.11rem); }
.yg-topic-summary { grid-column: 1 / -1; color: var(--yg-muted); font-size: .85rem; line-height: 1.46; word-break: keep-all; }
.yg-topic-count { grid-column: 1 / -1; margin-top: .22rem; color: var(--yg-green); font-size: .81rem; font-weight: 690; }

.yg-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .72rem; }
.yg-service {
    min-width: 0;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--yg-line);
    border-radius: .86rem;
    background: var(--yg-white);
}
.yg-service:hover { border-color: #a6bfad; }
.yg-service-link { display: flex; flex: 1; min-width: 0; align-items: flex-start; gap: .68rem; padding: .83rem .55rem .83rem .8rem; border-radius: .85rem; }
.yg-service-icon { width: 37px; height: 37px; flex: none; }
.yg-service-icon .yg-icon { width: 1.1rem; }
.yg-service-copy { flex: 1; min-width: 0; }
.yg-service-copy strong { display: block; font-weight: 800; letter-spacing: -.027em; line-height: 1.33; }
.yg-service-link:hover strong { color: var(--yg-green); text-decoration: underline; text-underline-offset: .17em; }
.yg-host, .yg-service-description, .yg-service-topic { display: block; color: var(--yg-muted); font-size: .83rem; line-height: 1.45; overflow-wrap: anywhere; }
.yg-host { font-size: .77rem; margin-top: .12rem; }
.yg-service-description { margin-top: .32rem; word-break: keep-all; }
.yg-service-topic { color: var(--yg-green); margin-top: .22rem; font-weight: 680; }
.yg-service-external { color: #65786d; padding-top: .07rem; }
.yg-service-external .yg-icon { width: .93rem; height: .93rem; }
.yg-save {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    align-self: flex-start;
    min-width: 44px;
    min-height: 44px;
    margin: .3rem .26rem .25rem 0;
    border: 0;
    background: transparent;
    border-radius: .55rem;
    color: #50655b;
}
.yg-save .yg-icon { width: 1.13rem; height: 1.13rem; }
.yg-save:is(:hover, [aria-pressed="true"]) { background: var(--yg-soft); color: var(--yg-green); }
.yg-save[aria-pressed="true"] .yg-icon { fill: currentColor; }

.yg-home-strip, .yg-tip, .yg-home-faq {
    display: flex;
    align-items: center;
    gap: .95rem 1.25rem;
    padding: 1.18rem clamp(1rem, 2.65vw, 1.95rem);
    background: #e8f1e4;
    border: 1px solid #d9e8d8;
    border-radius: 1rem;
}
.yg-strip-icon {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    height: 52px;
    border-radius: .82rem;
    color: var(--yg-green);
    background: #f9fcf6;
}
.yg-strip-icon .yg-icon { width: 1.55rem; height: 1.55rem; }
.yg-home-strip div, .yg-home-faq div { flex: 1; min-width: 0; }
.yg-home-strip h2, .yg-tip h2 { font-weight: 800; font-size: 1.25rem; }
.yg-home-strip p, .yg-tip p { color: var(--yg-muted); margin-top: .23rem; font-size: .94rem; }
.yg-home-faq { margin-block: 2.5rem 4.5rem; background: transparent; border: 0; border-top: 1px solid var(--yg-line); border-radius: 0; padding-inline: 0; }
.yg-home-faq h2 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); }
.yg-related { margin-block: clamp(2.4rem, 4.7vw, 3.7rem); }
.yg-related:not(:last-child) { margin-bottom: 1.8rem; }
.yg-related h2 { margin-bottom: .95rem; }
.yg-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.yg-related-grid li { min-width: 0; }
.yg-related-grid a {
    display: grid;
    height: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .42rem .45rem;
    align-items: start;
    padding: .98rem 1.05rem;
    border: 1px solid var(--yg-line);
    background: var(--yg-white);
    border-radius: .8rem;
}
.yg-related-grid a:hover { border-color: #93b39d; }
.yg-related-grid strong { line-height: 1.43; letter-spacing: -.035em; font-size: 1.03rem; font-weight: 800; word-break: keep-all; }
.yg-related-grid span { grid-column: 1 / -1; color: var(--yg-muted); font-size: .9rem; word-break: keep-all; }
.yg-related-grid .yg-icon { grid-row: 1; grid-column: 2; width: .95rem; height: .95rem; margin-top: .23rem; color: var(--yg-green); }

.yg-page-banner { padding-block: clamp(1.95rem, 5vw, 3.8rem); background: #eaf2e8; border-bottom: 1px solid #dce9db; }
.yg-page-banner h1 { font-size: clamp(2rem, 4.4vw, 3.67rem); font-weight: 850; letter-spacing: -.07em; max-width: 19ch; }
.yg-page-banner p { max-width: 46rem; color: var(--yg-muted); margin-top: .74rem; font-size: clamp(1rem, 1.63vw, 1.15rem); }
.yg-page-banner .yg-post-date { display: block; color: var(--yg-muted); margin-top: .7rem; font-size: .91rem; }
.yg-crumbs { color: #40584b; margin-bottom: .72rem; font-size: .85rem; }
.yg-crumbs ol, .yg-reading-side ul { display: flex; flex-wrap: wrap; align-items: center; padding: 0; margin: 0; gap: .18rem; list-style: none; }
.yg-crumbs li { display: flex; align-items: center; gap: .18rem; }
.yg-crumbs a { min-height: 32px; display: inline-flex; align-items: center; padding-inline: .18rem; }
.yg-crumbs a:hover { text-decoration: underline; text-underline-offset: .22em; }
.yg-crumbs .yg-icon { width: .8rem; height: .8rem; }
.yg-crumbs [aria-current] { font-weight: 760; }

.yg-directory-search { max-width: 45rem; margin-top: 1.55rem; }
.yg-directory-search + .yg-section { margin-top: 1.95rem; }
.yg-category-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.yg-preview { padding: .75rem .95rem .9rem; border: 1px solid var(--yg-line); background: var(--yg-white); border-radius: .86rem; }
.yg-preview-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.yg-preview-header h3 { font-size: 1.12rem; }
.yg-quick-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.yg-quick-links a { display: flex; gap: .35rem; align-items: center; min-height: 44px; padding: .42rem .63rem; border-radius: .54rem; background: var(--yg-paper); font-size: .87rem; font-weight: 680; }
.yg-quick-links a:hover { color: var(--yg-green); background: var(--yg-soft); }
.yg-quick-links .yg-icon { width: .88rem; height: .88rem; }
.yg-topic-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.35rem; }
.yg-topic-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .7rem; background: var(--yg-white); border: 1px solid var(--yg-line); border-radius: .55rem; font-weight: 690; font-size: .88rem; }
.yg-topic-nav a:hover { border-color: #8ab09b; color: var(--yg-green); }
.yg-topic-nav a[aria-current] { background: var(--yg-deep); color: var(--yg-white); border-color: var(--yg-deep); }
.yg-topic-page .yg-section { margin-block: 1.7rem 1.4rem; }
.yg-tip { align-items: flex-start; }
.yg-tip .yg-topic-icon { flex: none; }
.yg-saved-page { margin-block: 1.8rem 2.8rem; }
.yg-empty { display: grid; justify-items: start; gap: .68rem; border: 1px solid var(--yg-line); border-radius: 1rem; background: var(--yg-white); padding: clamp(1.1rem, 3.25vw, 2.05rem); }
.yg-empty > .yg-icon { color: var(--yg-green); width: 1.65rem; height: 1.65rem; }
.yg-empty h2, .yg-empty h3 { font-size: 1.31rem; font-weight: 790; }
.yg-empty p { color: var(--yg-muted); }
.yg-empty a { margin-top: .3rem; }

.yg-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 270px); grid-template-areas: "article toc"; align-items: start; gap: clamp(1.3rem, 5vw, 4.5rem); margin-block: 2rem 2.5rem; }
.yg-prose { grid-area: article; max-width: 49rem; min-width: 0; font-size: 1.05rem; line-height: 1.83; }
.yg-prose > * + * { margin-top: .83rem; }
.yg-prose h2 { margin-top: 2.1rem; font-size: clamp(1.27rem, 2vw, 1.64rem); font-weight: 830; }
.yg-prose h2:first-child { margin-top: .3rem; }
.yg-prose li { margin-top: .37rem; }
.yg-prose ul, .yg-prose ol { padding-inline-start: 1.3rem; }
.yg-prose a { color: var(--yg-green); text-decoration: underline; text-underline-offset: .23em; font-weight: 710; }
.yg-reading-side { grid-area: toc; position: sticky; top: 7.25rem; }
.yg-reading-side nav { background: var(--yg-white); border: 1px solid var(--yg-line); border-radius: .8rem; padding: 1.02rem; }
.yg-reading-side h2 { font-size: 1rem; margin-bottom: .46rem; }
.yg-reading-side ul { align-items: stretch; flex-direction: column; }
.yg-reading-side li a { display: flex; min-height: 41px; align-items: center; border-radius: .4rem; color: var(--yg-muted); font-size: .91rem; line-height: 1.4; }
.yg-reading-side li a:hover { color: var(--yg-green); text-decoration: underline; text-underline-offset: .2em; }
.yg-faq { border: 1px solid var(--yg-line); border-radius: .82rem; padding: 0 1rem; background: var(--yg-white); }
.yg-faq[open] { padding-bottom: .9rem; }
.yg-faq summary { padding: .8rem 0; min-height: 48px; cursor: pointer; font-weight: 790; line-height: 1.42; }
.yg-faq p + p { margin-top: .62rem; }
.yg-error, .yg-index { padding-block: 3rem 4rem; }
.yg-error h1 { font-size: 2.2rem; margin-block: .78rem .45rem; }
.yg-error .yg-search { margin-block: 1.2rem; max-width: 38rem; }
.yg-index h1 { margin-bottom: 1.2rem; }

.yg-footer { color: #e0ede5; background: #132f26; }
.yg-footer-main { display: grid; grid-template-columns: minmax(200px, 1.15fr) minmax(140px, .95fr) minmax(150px, 1fr); gap: clamp(1rem, 3vw, 2.8rem); padding-block: 2.15rem 1.5rem; }
.yg-footer .yg-brand { color: var(--yg-white); }
.yg-footer-brand p { color: #b9cfc2; max-width: 18.5rem; margin-top: .86rem; font-size: .88rem; }
.yg-footer nav h2 { margin-bottom: .48rem; font-size: .98rem; color: var(--yg-white); letter-spacing: -.017em; }
.yg-footer nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .44rem; }
.yg-footer nav li a { display: inline-flex; min-height: 35px; align-items: center; color: #c6dbce; font-size: .87rem; }
.yg-footer a:hover { color: var(--yg-lime); text-decoration: underline; text-underline-offset: .2em; }
.yg-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: .7rem; border-top: 1px solid #416557; font-size: .83rem; color: #b9cfc2; padding-block: .6rem .75rem; }
.yg-footer-bottom a { min-height: 40px; display: flex; align-items: center; gap: .3rem; }
.yg-footer-bottom .yg-icon { width: .92rem; height: .92rem; transform: rotate(-90deg); }

@media (max-width: 980px) {
    .yg-header-inner { gap: .65rem; }
    .yg-nav a { font-size: .88rem; padding-inline: .48rem; }
    .yg-topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .yg-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .admin-bar .yg-header { top: 46px; }
    .yg-header-inner { min-height: 65px; grid-template-columns: minmax(0, 1fr) auto; }
    .yg-header-actions { grid-column: 2; grid-row: 1; }
    .yg-menu-button { display: inline-flex; }
    .yg-nav { grid-column: 1 / -1; margin-top: -.35rem; padding-bottom: .65rem; }
    .yg-js .yg-nav:not([data-open]) { display: none; }
    .yg-nav .yg-menu-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; justify-content: stretch; }
    .yg-nav a { justify-content: center; background: var(--yg-white); border: 1px solid var(--yg-line); }
    .yg-hero { min-height: 390px; }
    .yg-hero-main { padding-left: 1.65rem; }
    .yg-hero-side { padding-right: 1.4rem; }
}
@media (max-width: 680px) {
    html { scroll-padding-top: 5.5rem; }
    .yg-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 1.25rem; margin-top: .95rem; }
    .yg-hero-main { padding: 1.45rem 1.17rem .65rem; }
    .yg-hero-side { padding: .35rem 1.17rem 1.2rem; }
    .yg-map-rings { inset: -5rem -1px 0 -1rem; }
    .yg-hero-copy { margin-top: .82rem; }
    .yg-hero .yg-search { margin-top: 1rem; max-width: none; }
    .yg-hero-bottom { margin-top: .43rem; }
    .yg-picks { padding: .72rem .8rem; border-radius: .8rem; }
    .yg-picks h2 { font-size: 1rem; margin: .13rem .15rem .44rem; }
    .yg-picks li + li { margin-top: .24rem; }
    .yg-picks li a { min-height: 46px; padding: .28rem .5rem; }
    .yg-pick-icon { width: 29px; height: 29px; }
    .yg-pick-icon .yg-icon { width: .94rem; height: .94rem; }
    .yg-picks li strong { font-size: .91rem; }
    .yg-picks li small { font-size: .73rem; }
    .yg-picks-more { margin-top: .14rem; }
    .yg-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
    .yg-topic-tile { min-height: 122px; padding: .73rem .76rem .63rem; }
    .yg-related-grid { grid-template-columns: minmax(0, 1fr); gap: .53rem; }
    .yg-home-strip {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: .75rem .8rem;
    }
    .yg-home-strip .yg-button {
        grid-column: 2;
        justify-self: start;
        white-space: normal;
    }
    .yg-reading-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toc" "article"; margin-block: 1.2rem; }
    .yg-reading-side { position: static; }
    .yg-reading-side nav { padding: .75rem .92rem; }
    .yg-reading-side ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .65rem; }
    .yg-reading-side li a { min-height: 43px; font-size: .85rem; }
    .yg-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 1.45rem; }
    .yg-footer-brand { grid-column: 1 / -1; }
    .yg-footer nav li a { min-height: 40px; }
}
@media (max-width: 600px) {
    .admin-bar .yg-header { top: 0; position: relative; }
}
@media (max-width: 505px) {
    .yg-header-inner { min-height: 60px; }
    .yg-brand { font-size: 1.38rem; }
    .yg-brand img { width: 35px; height: 35px; }
    .yg-header-save-label { display: none; }
    .yg-hero h1 { font-size: clamp(2.36rem, 10vw, 3.2rem); }
    .yg-search { gap: .42rem; padding-left: .54rem; min-height: 54px; }
    .yg-search > .yg-icon { width: 1.04rem; height: 1.04rem; }
    .yg-search input { font-size: 1rem; }
    .yg-search button { padding-inline: .67rem; min-height: 44px; }
    .yg-service-grid, .yg-category-previews { grid-template-columns: minmax(0, 1fr); gap: .54rem; }
    .yg-service-link { padding-block: .73rem; }
    .yg-section-heading { align-items: flex-start; flex-direction: column; gap: .1rem; margin-bottom: .8rem; }
    .yg-section-heading .yg-text-link { min-height: 40px; }
    .yg-home-faq { flex-wrap: wrap; margin-bottom: 2.25rem; }
    .yg-home-faq div { flex-basis: 100%; }
    .yg-page-banner { padding-block: 1.3rem 1.5rem; }
    .yg-footer nav ul { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
