/* The common result foot (src/client/result-foot.js; owner rules C1–C3, 2026-11-16). Under every result card, in this order:
   자세히 보기 → 결과 공유하기 + 이미지로 저장 → one row of small equal buttons → (출처 line) → comments; one share sheet.
   The look is the KR job page's 자세히 보기 and the survive result's buttons (LIVE src/apps/career/style.css .yn-more, .btn,
   .btn-shine, .sv-acts, .sv-again-row), scoped to .yrf so a page's own button/details rules never reach it. Dark site tokens;
   a page may override any --yrf-* property. */
.yrf, .yrf-sheet, .yrf-back {
  --yrf-text: #F2F4F8;
  --yrf-muted: #A3A9BA;
  --yrf-faint: #858CA0;
  --yrf-surface: #12151E;
  --yrf-surface-2: #191D29;
  --yrf-surface-3: #232838;
  --yrf-border: rgba(255, 255, 255, .08);
  --yrf-border-2: rgba(255, 255, 255, .20);
  --yrf-glass: rgba(255, 255, 255, .05);
  --yrf-glass-b: rgba(255, 255, 255, .10);
  --yrf-inv: #F5F6FA;
  --yrf-inv-text: #0B0D12;
  --yrf-shadow-1: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 24px rgba(0, 0, 0, .35);
  --yrf-shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 64px rgba(0, 0, 0, .6);
  --yrf-ring: #3DE8C6;
  --yrf-font: var(--f-body, 'Instrument Sans', yn-is-a, yn-is-r, 'Noto Sans KR', yn-kr-m, system-ui, -apple-system, 'Segoe UI', sans-serif);
  --yrf-font-display: var(--f-display, 'Sora', yn-so-a, yn-so-r, 'Noto Sans KR', yn-kr-m, system-ui, -apple-system, sans-serif);
}
.yrf {
  display: block; position: relative; z-index: 2; /* above a card's glow that spills over the next block */
  width: auto; max-width: none; margin: var(--yrf-top, 12px) 0 0; padding: 0; border: 0; background: none;
  color: var(--yrf-text); font: 400 15px/1.5 var(--yrf-font); letter-spacing: normal; text-align: left; text-transform: none;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
.yrf.yrf-nomore { margin-top: var(--yrf-top, 18px); }
.yrf *, .yrf *::before, .yrf *::after, .yrf-sheet *, .yrf-sheet *::before, .yrf-sheet *::after { box-sizing: border-box; }
.yrf button, .yrf-sheet button { margin: 0; font-family: inherit; letter-spacing: normal; text-transform: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.yrf svg, .yrf-sheet svg { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.yrf :focus-visible, .yrf-sheet :focus-visible { outline: 2px solid var(--yrf-ring); outline-offset: 2px; }

/* 자세히 보기: the job result's full-width toggle (centred label + chevron in a soft disc); the page's own panel opens 12px under it */
.yrf .yrf-more { display: block; margin: 0; padding: 0; border: 0; background: none; }
.yrf .yrf-more > summary {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px;
  margin: 0; padding: 0 18px; border: 1px solid var(--yrf-border-2); border-radius: 14px; background: var(--yrf-surface-3);
  color: var(--yrf-text); font: 700 15px/1.3 var(--yrf-font); text-align: center; list-style: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .15s, transform .12s;
}
@supports (color: color-mix(in srgb, red 9%, blue)) {
  .yrf .yrf-more > summary { border-color: color-mix(in srgb, var(--yrf-text) 22%, transparent); background: color-mix(in srgb, var(--yrf-text) 9%, var(--yrf-more-base, #0B0D12)); }
}
.yrf .yrf-more > summary::-webkit-details-marker { display: none; }
.yrf .yrf-more > summary::marker { content: ''; }
.yrf .yrf-more > summary::after {
  content: ''; flex: 0 0 auto; display: block; width: 26px; height: 26px; border-radius: 50%; background: currentColor;
  -webkit-mask: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") center/16px 16px no-repeat, radial-gradient(circle closest-side, rgba(0, 0, 0, .13) calc(100% - .75px), transparent 100%);
  mask: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") center/16px 16px no-repeat, radial-gradient(circle closest-side, rgba(0, 0, 0, .13) calc(100% - .75px), transparent 100%);
  transition: transform .2s ease;
}
.yrf .yrf-more[open] > summary::after { transform: rotate(180deg); }
@media (hover: hover) {
  .yrf .yrf-more > summary:hover { background: var(--yrf-surface-3); }
  @supports (color: color-mix(in srgb, red 9%, blue)) { .yrf .yrf-more > summary:hover { background: color-mix(in srgb, var(--yrf-text) 14%, var(--yrf-more-base, #0B0D12)); } }
}
.yrf .yrf-more > summary:active { transform: scale(.99); }
.yrf .yrf-more-b { margin: 12px 0 0; padding: 0; }
.yrf .yrf-more-b > :first-child { margin-top: 0; }

/* 출처 확인하기: one small text line, the last line of the opened panel (or under the small buttons where there is no panel) */
.yrf .yrf-src { margin: 18px 0 0; padding: 0; text-align: left; line-height: 1.3; }
.yrf .yrf-srcline { margin-top: 10px; }
.yrf .yrf-srcline > .yrf-src { margin: 0; }
.yrf .yrf-src-link {
  display: inline; margin: 0; padding: 4px 0; border: 0; background: none; color: var(--yrf-faint);
  font: 500 12px/1.3 var(--yrf-font); letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; cursor: pointer;
}
.yrf .yrf-src-link:hover { color: var(--yrf-text); }

/* buttons: the survive result's .btn / .btn-primary / .btn-secondary / .btn-sm */
.yrf .yrf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px;
  border: 1px solid transparent; font: 600 15px/1.2 var(--yrf-font); text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, opacity .15s, border-color .15s;
}
.yrf .yrf-btn svg { width: 18px; height: 18px; }
.yrf .yrf-btn:active { transform: scale(.98); }
.yrf .yrf-share { background: var(--yrf-inv); color: var(--yrf-inv-text); box-shadow: var(--yrf-shadow-1); }
.yrf .yrf-share:hover { transform: translateY(-1px); box-shadow: var(--yrf-shadow-2); }
.yrf .yrf-sm {
  height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14px;
  background: var(--yrf-glass); border-color: var(--yrf-glass-b); color: var(--yrf-text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.yrf .yrf-sm:hover { border-color: var(--yrf-border-2); background: var(--yrf-surface); }
/* 이미지로 저장: gradient outline + a passing light + three twinkling stars in the corners (only transform/opacity move) */
.yrf .yrf-image {
  position: relative; overflow: hidden; isolation: isolate; border: 1.5px solid transparent; font-weight: 700; color: var(--yrf-text);
  background: linear-gradient(var(--yrf-surface-2), var(--yrf-surface-2)) padding-box, linear-gradient(90deg, #3DE8C6 0%, #FFC83D 38%, #FF7A45 66%, #FF3D8A 100%) border-box;
  box-shadow: 0 0 20px -6px rgba(255, 61, 138, .55), 0 0 20px -8px rgba(61, 232, 198, .5);
}
.yrf .yrf-image:hover {
  background: linear-gradient(#1F2433, #1F2433) padding-box, linear-gradient(90deg, #3DE8C6 0%, #FFC83D 38%, #FF7A45 66%, #FF3D8A 100%) border-box;
  box-shadow: 0 0 26px -4px rgba(255, 61, 138, .7), 0 0 26px -6px rgba(61, 232, 198, .6);
}
.yrf .yrf-image::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; z-index: -1; width: 42%; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .26) 50%, transparent 100%);
  transform: translateX(-140%) skewX(-18deg); animation: yrfSweep 3.2s cubic-bezier(.4, 0, .2, 1) infinite;
}
.yrf .yrf-stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.yrf .yrf-stars i {
  position: absolute; width: 15px; height: 15px; background: #FFE9A8; opacity: 0; transform: scale(.2);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: yrfTwinkle 2.1s ease-in-out infinite;
}
.yrf .yrf-stars i:nth-child(1) { top: 4px; right: 6px; }
.yrf .yrf-stars i:nth-child(2) { bottom: 4px; right: 12px; width: 9px; height: 9px; background: #9FF5E3; animation-delay: .7s; }
.yrf .yrf-stars i:nth-child(3) { bottom: 6px; left: 9px; width: 11px; height: 11px; background: #FFB3D1; animation-delay: 1.3s; }
.yrf .yrf-image[aria-busy="true"]::before { animation-play-state: paused; opacity: 0; }
.yrf .yrf-image[aria-busy="true"] { cursor: progress; }
@keyframes yrfSweep { 0% { transform: translateX(-140%) skewX(-18deg); } 55%, 100% { transform: translateX(380%) skewX(-18deg); } }
@keyframes yrfTwinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 45%, 55% { opacity: 1; transform: scale(1) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) {
  .yrf .yrf-image::before { animation: none; opacity: 0; }
  .yrf .yrf-stars i { animation: none; opacity: .9; transform: none; }
  .yrf .yrf-more > summary, .yrf .yrf-more > summary::after, .yrf .yrf-btn { transition: none; }
}

/* the share pair: two equal buttons side by side, stacked full width under 480px (survive's .sv-acts) */
.yrf .yrf-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.yrf > .yrf-acts:first-child { margin-top: 0; }
.yrf .yrf-acts .yrf-btn { flex: 1 1 40%; min-width: 0; }
@media (max-width: 479px) { .yrf .yrf-acts .yrf-btn { flex-basis: 100%; } }
.yrf .yrf-status { margin: 10px 0 0; font: 500 13px/1.4 var(--yrf-font); color: var(--yrf-muted); text-align: center; }
.yrf .yrf-status:empty { display: none; }

/* the small-button row: one button sits on the right, exactly survive's ← 다시 하기; two or three share the row in equal widths,
   icons kept, one line each (result-foot.js steps the variables below down until every label fits) */
.yrf .yrf-row { display: flex; justify-content: flex-end; gap: var(--yrf-gap, 8px); margin: 12px 0 0; }
.yrf > .yrf-row:first-child { margin-top: 0; }
.yrf .yrf-row .yrf-btn svg { width: var(--yrf-ic, 18px); height: var(--yrf-ic, 18px); }
.yrf .yrf-row.yrf-multi { align-items: stretch; }
.yrf .yrf-row.yrf-multi .yrf-btn {
  flex: 1 1 0; min-width: 0; padding: 0 var(--yrf-pad, 14px); gap: var(--yrf-icg, 8px);
  font-size: var(--yrf-fs, 14px); letter-spacing: var(--yrf-ls, 0em);
}
.yrf .yrf-row .yrf-btn > span { min-width: 0; overflow: hidden; white-space: nowrap; }
/* a row whose labels cannot share equal widths: each button as wide as its label (never narrower), the spare room shared */
.yrf .yrf-row.yrf-multi.yrf-auto .yrf-btn { flex: 1 0 auto; min-width: max-content; }

/* comments: the slot takes no room until the comments module fills it */
.yrf .yrf-cmt { margin: 28px 0 0; }
.yrf .yrf-cmt:empty { display: none; }
@media (min-width: 768px) { .yrf .yrf-cmt { margin-top: 36px; } }

/* the back link above a card (YNResultFoot.back): the job page's '← 다른 직업 검색' */
.yrf-back {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; margin: 0 0 16px -6px; padding: 6px 10px 6px 6px; border-radius: 999px;
  color: var(--yrf-muted); font: 500 13px/1 var(--yrf-font); text-decoration: none; transition: color .15s, background-color .15s;
}
.yrf-back:is(:lang(ko), :lang(ja), :lang(zh)) { height: 31px; }
.yrf-back:lang(th) { height: 32px; }
.yrf-back svg { width: 16px; height: 16px; flex: 0 0 auto; }
.yrf-back:hover { color: var(--yrf-text); background: var(--yrf-glass); }

/* the one share sheet: bottom sheet on phones, centred dialog from 700px (the site's dialog surface) */
dialog.yrf-sheet, .yrf-sheet {
  position: fixed; inset: auto 0 0 0; z-index: 2147483600; display: block; width: 100%; max-width: 560px; max-height: none; height: auto;
  margin: 0 auto; padding: 0; border: 1px solid var(--yrf-glass-b); border-bottom: 0; border-radius: 22px 22px 0 0;
  background: var(--yrf-surface); color: var(--yrf-text); font: 400 15px/1.5 var(--yrf-font); box-shadow: 0 -18px 48px rgba(0, 0, 0, .5);
  overscroll-behavior: contain; -webkit-font-smoothing: antialiased; word-break: keep-all;
}
.yrf-sheet:not([open]) { display: none; }
.yrf-sheet::backdrop { background: rgba(4, 6, 10, .58); }
.yrf-sheet:focus { outline: none; }
.yrf-sheet .yrf-sh { padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
.yrf-sheet .yrf-sh-grab { display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.yrf-sheet .yrf-sh-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.yrf-sheet .yrf-sh-t { margin: 0; font: 700 18px/1.3 var(--yrf-font-display); letter-spacing: -.01em; color: var(--yrf-text); }
.yrf-sheet .yrf-sh-x { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 -6px 0 0; padding: 0; border: 0; border-radius: 50%; background: var(--yrf-glass); color: var(--yrf-muted); }
.yrf-sheet .yrf-sh-x svg { width: 18px; height: 18px; }
.yrf-sheet .yrf-sh-x:hover { color: var(--yrf-text); background: rgba(255, 255, 255, .09); }
.yrf-sheet .yrf-sh-grid { display: grid; grid-template-columns: repeat(var(--yrf-sh-n, 5), minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; }
.yrf-sheet .yrf-sh-grid + .yrf-sh-grid { margin-top: 16px; }
.yrf-sheet .yrf-sh-grid[hidden] { display: none; }
.yrf-sheet .yrf-sh-ch {
  display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; padding: 2px 0 4px; border: 0; background: none;
  color: var(--yrf-text); font: 500 12.5px/1.25 var(--yrf-font); text-align: center; white-space: nowrap;
}
.yrf-sheet .yrf-sh-ch[disabled] { opacity: .55; cursor: default; }
.yrf-sheet .yrf-sh-ic {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yrf-surface-3); color: var(--yrf-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .12s, filter .15s;
}
.yrf-sheet .yrf-sh-ch:hover .yrf-sh-ic { filter: brightness(1.08); }
.yrf-sheet .yrf-sh-ch:active .yrf-sh-ic { transform: scale(.95); }
.yrf-sheet .yrf-sh-ic svg { width: 24px; height: 24px; }
.yrf-sheet .yrf-sh-ch[data-ch="kakao"] .yrf-sh-ic { background: #FEE500; color: #191919; box-shadow: none; }
.yrf-sheet .yrf-sh-ch[data-ch="kakao"] .yrf-sh-ic svg { width: 27px; height: 27px; }
.yrf-sheet .yrf-sh-ch[data-ch="x"] .yrf-sh-ic, .yrf-sheet .yrf-sh-ch[data-ch="th"] .yrf-sh-ic { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.yrf-sheet .yrf-sh-ch[data-ch="x"] .yrf-sh-ic svg { width: 21px; height: 21px; }
.yrf-sheet .yrf-sh-ch[data-ch="th"] .yrf-sh-ic svg { width: 26px; height: 26px; }
.yrf-sheet .yrf-sh-ch[data-ch="line"] .yrf-sh-ic { background: #06C755; color: #fff; box-shadow: none; }
.yrf-sheet .yrf-sh-ch[data-ch="line"] .yrf-sh-ic svg { width: 28px; height: 28px; }
.yrf-sheet .yrf-sh-ch[data-ch="wa"] .yrf-sh-ic { background: #25D366; color: #fff; box-shadow: none; }
.yrf-sheet .yrf-sh-ch[data-ch="wa"] .yrf-sh-ic svg { width: 27px; height: 27px; }
.yrf-sheet .yrf-sh-ch[data-ch="fb"] .yrf-sh-ic { background: #1877F2; color: #fff; box-shadow: none; }
.yrf-sheet .yrf-sh-ch[data-ch="fb"] .yrf-sh-ic svg { width: 26px; height: 26px; }
.yrf-sheet .yrf-sh-ch[data-ch="reddit"] .yrf-sh-ic { background: #FF4500; color: #fff; box-shadow: none; }
.yrf-sheet .yrf-sh-ch[data-ch="reddit"] .yrf-sh-ic svg { width: 27px; height: 27px; }
.yrf-sheet .yrf-sh-ch[data-ch="li"] .yrf-sh-ic { background: #0A66C2; color: #fff; box-shadow: none; }
.yrf-sheet .yrf-sh-ch[data-ch="tg"] .yrf-sh-ic { background: #229ED9; color: #fff; box-shadow: none; }
.yrf-sheet .yrf-sh-n {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; overflow: hidden; color: #C9CEDA;
  white-space: normal; overflow-wrap: normal;
}
.yrf-sheet .yrf-sh-msg { min-height: 0; margin: 0; font: 500 13px/1.4 var(--yrf-font); color: var(--yrf-muted); text-align: center; }
.yrf-sheet .yrf-sh-msg:not(:empty) { margin-top: 14px; }
/* six cells (US, CA): a little tighter on a phone, a little wider as a dialog, so one row still fits */
@media (max-width: 699px) {
  .yrf-sheet.yrf-sh-dense .yrf-sh { padding-left: 16px; padding-right: 16px; }
  .yrf-sheet.yrf-sh-dense .yrf-sh-grid { gap: 2px; }
  .yrf-sheet.yrf-sh-dense .yrf-sh-ch { gap: 8px; font-size: 11.5px; letter-spacing: -.01em; }
  .yrf-sheet.yrf-sh-dense .yrf-sh-ic { width: 50px; height: 50px; }
}
@media (min-width: 700px) {
  dialog.yrf-sheet, .yrf-sheet { inset: 0; width: calc(100% - 32px); max-width: 440px; height: fit-content; margin: auto; border-bottom: 1px solid var(--yrf-glass-b); border-radius: 22px; box-shadow: 0 24px 64px rgba(0, 0, 0, .55); }
  dialog.yrf-sheet.yrf-sh-dense, .yrf-sheet.yrf-sh-dense { max-width: 480px; }
  .yrf-sheet .yrf-sh { padding: 22px 24px 26px; }
  .yrf-sheet .yrf-sh-grab { display: none; }
  .yrf-sheet .yrf-sh-h { margin-bottom: 22px; }
}
.yrf-sheet .yrf-sh:focus { outline: none; }
/* the fallback for a browser without <dialog>: a fixed layer with its own backdrop */
.yrf-sheet-bg { position: fixed; inset: 0; z-index: 2147483599; background: rgba(4, 6, 10, .58); }
.yrf-sheet-bg[hidden] { display: none; }
