/* Editorial design system. Content continues to come from the shared CMS renderers. */
:root {
  --cream: #f8f6ef;
  --cream-card: #fffdf7;
  --cream-sheet: #fffefb;
  --sand: #eeeadd;
  --sand-deep: #eae5d7;
  --ink: #263e36;
  --ink-soft: #37463e;
  --muted: #62695e;
  --faint: #6e7165;
  --teal: #284f42;
  --teal-dark: #193b30;
  --rust: #a34e34;
  --rust-dark: #883d27;
  --line: #dedfd1;
  --line-input: #c9cbbb;
  --track: #e4e5d8;
}
.portfolio-page { background: var(--cream); }
.portfolio-page :is(h1, h2, .sheet-heading)[tabindex="-1"]:focus { outline: none; }
.portfolio-page .site-header { background: #f8f6eff5; border-bottom: 1px solid var(--line); }
.portfolio-page .header-inner { max-width: 1280px; height: 90px; padding: 0 48px; gap: 30px; }
.portfolio-page .brand { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 19px; letter-spacing: -.04em; white-space: nowrap; }
.brand-seal { display: grid; place-items: center; width: 44px; height: 48px; border: 1px solid #b6beaa; border-radius: 24px 24px 8px 8px; font-family: Georgia,serif; font-style: italic; font-size: 27px; color: var(--teal); }
.brand-subtitle { display: block; margin-top: 5px; font-family: 'Karla',sans-serif; text-transform: uppercase; font-size: 8px; letter-spacing: .18em; color: var(--muted); }
.portfolio-page .tabs { gap: 5px; }
.portfolio-page .tab { padding: 10px 12px; min-height: 44px; border: 0; border-radius: 7px; font-size: 12px; letter-spacing: 0; }
.portfolio-page .tab.is-active { color: var(--teal); background: #e6eade; }
.header-contact { display: flex; align-items: center; gap: 22px; white-space: nowrap; color: var(--teal); font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--teal); padding: 12px 0; }
.header-contact span { font-size: 20px; font-weight: 400; }
.portfolio-page .hero { max-width: 1280px; padding: 84px 70px 76px 48px; grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr); gap: 90px; }
.portfolio-page .hero-copy .kicker { font-size: 10px; letter-spacing: .15em; display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero-copy .kicker::before { content: ''; width: 24px; height: 1px; background: var(--teal); flex-shrink: 0; }
.portfolio-page .hero-title { font-size: clamp(44px,5.25vw,72px); line-height: 1.1; letter-spacing: -.045em; margin-bottom: 26px; max-width: 12ch; }
.hero-title-accent { display: block; font-family: Georgia,'Times New Roman',serif; font-style: italic; font-weight: 400; color: #58705a; letter-spacing: -.05em; }
.portfolio-page .hero-lede { font-size: 15px; line-height: 1.85; max-width: 49ch; }
.portfolio-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border-radius: 7px; letter-spacing: 0; font-size: 13px; font-weight: 600; padding: 14px 22px; min-height: 48px; transition: background .2s, box-shadow .2s; }
.portfolio-page .btn--primary { background: var(--teal); color: #fffdf7; }
.portfolio-page .btn--primary:hover { background: var(--teal-dark); box-shadow: 0 5px 15px #284f4225; }
.hero-actions .btn--primary::after { content: '↗'; font-size: 19px; }
.portfolio-page .btn--outline { border: 1px solid #b4bcac; }
.portfolio-page .hero-actions { gap: 12px; margin-bottom: 34px; }
.portfolio-page .greetings { padding-top: 24px; gap: 26px; }
.portfolio-page .greeting-word { font-size: 20px; color: var(--teal); }
.portfolio-page .greeting-lang { font-size: 8px; letter-spacing: .15em; margin-top: 6px; }
.portfolio-page .hero-photo { max-width: 385px; margin-top: 20px; }
.portfolio-page .hero-photo::before { inset: -25px -25px 40px; border: 1px solid #d4d8c9; border-radius: 220px 220px 0 0; background: none; }
.portfolio-page .photo-frame { top: 14px; left: 14px; bottom: -14px; right: -14px; border-radius: 220px 220px 5px 5px; border-color: #b9bd9f; }
.portfolio-page .portrait { aspect-ratio: 4/5.2; border-radius: 220px 220px 5px 5px; box-shadow: none; }
.portfolio-page .portrait-placeholder { background: repeating-linear-gradient(90deg, transparent 0 46px, #ffffff2b 46px 47px), linear-gradient(145deg,#e6e4d4,#cdd5bf); }
.portfolio-page .portrait-placeholder::before { inset: 25px; border-color: #ffffff73; border-radius: 200px 200px 3px 3px; }
.portfolio-page .portrait-monogram { font-family: Georgia,serif; font-style: italic; font-size: clamp(100px,13vw,175px); font-weight: 400; color: #48624b; transform: translateX(-8px); }
.portfolio-page .portrait-caption { font-size: 8px; letter-spacing: .19em; }
.portfolio-page .badge { background: #fcfbf2f5; box-shadow: 0 5px 20px #34462f08; }
.portfolio-page .badge--bangkok { width: 90px; height: 90px; top: 15px; left: -32px; border: 1px dashed #66806a; }
.portfolio-page .badge--seoul { width: 82px; height: 82px; bottom: 115px; left: -40px; border: 1px dashed #a48b50; }
.portfolio-page .badge--tangier { width: 100px; height: 100px; bottom: -22px; right: -26px; border: 1px dashed var(--rust); }
.portfolio-page .badge-city { font-size: 9px; letter-spacing: .12em; }
.portfolio-page .badge-years { font-size: 8px; margin-top: 4px; }
.portfolio-page .home-highlights { max-width: 1280px; padding: 0 48px 46px; gap: 24px; }
.portfolio-page .stats-strip { border-radius: 0; border-width: 1px 0; background: transparent; padding: 27px 0; gap: 0; }
.portfolio-page .stat { padding: 6px 18px; }
.portfolio-page .stat + .stat { border-left: 1px solid var(--line); }
.portfolio-page .stat-value { font-size: 30px; letter-spacing: -.04em; }
.portfolio-page .stat-label { font-size: 9px; margin-top: 8px; letter-spacing: .12em; }
.portfolio-page .specialties { display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; }
.portfolio-page .specialties-title { margin-bottom: 0; font-size: 9px; color: var(--muted); }
.portfolio-page .specialties-chips { justify-content: flex-end; gap: 8px; }
.portfolio-page .chip { font-size: 11px; background: transparent; border-radius: 5px; padding: 8px 12px; }
.portfolio-page .availability { background: #e8ecdf; border: 1px solid #d4decb; border-radius: 8px; color: var(--teal); padding: 20px 26px; }
.portfolio-page .availability-status { font-family: 'Karla',sans-serif; font-weight: 600; font-size: 14px; }
.portfolio-page .availability-detail { color: #5d6c57; font-size: 12px; margin-left: 20px; }
.portfolio-page .availability-dot { height: 7px; width: 7px; background: #5b8150; box-shadow: 0 0 0 3px #5b815012; }
.portfolio-page .availability-cta { background: transparent; border: 1px solid #adbea2; color: var(--teal); font-size: 12px; min-height: 42px; padding: 10px 16px; }
.section-index { max-width: 1184px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 25px 0; border-top: 1px solid var(--line); }
.index-label { text-transform: uppercase; font-size: 9px; letter-spacing: .15em; color: var(--muted); }
.section-index a { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink); min-height: 44px; }
.section-index a > span:first-child { color: var(--rust); font-size: 10px; font-variant-numeric: tabular-nums; }
.section-index a:hover { text-decoration: underline; text-underline-offset: 6px; }
.portfolio-page .band-inner, .portfolio-page .split, .portfolio-page .gallery-section { max-width: 1280px; padding: 80px 48px; }
.portfolio-page .section-title { font-size: clamp(30px,3vw,42px); line-height: 1.2; letter-spacing: -.045em; max-width: 23ch; }
.portfolio-page .kicker { font-size: 10px; letter-spacing: .17em; }
.portfolio-page .card-grid { gap: 18px; }
.portfolio-page .card { border-radius: 8px; background: #fbfaf4; padding: 30px; box-shadow: none; border-color: #dfe0d3; }
.portfolio-page .card:hover { transform: none; box-shadow: none; }
.experience-band { background: #eeeee4; }
.experience-number { font-family: Georgia,serif; font-style: italic; font-size: 36px; color: #9caa91; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 26px; }
.portfolio-page .card-city { font-size: 24px; line-height: 1.25; letter-spacing: -.03em; margin-bottom: 12px; }
.portfolio-page .card-role { font-size: 12px; line-height: 1.6; }
.portfolio-page .card-years { font-size: 10px; letter-spacing: .1em; }
.portfolio-page .card-copy { font-size: 13px; line-height: 1.85; }
.portfolio-page .pill--current { font-size: 8px; padding: 4px 7px; }
.portfolio-page .band-footnote { font-size: 12px; max-width: 70ch; line-height: 1.7; }
.portfolio-page .split { gap: 80px; }
.portfolio-page .section-copy { line-height: 1.85; font-size: 14px; }
.portfolio-page .lang-list { padding: 30px; background: #efefe5; border-radius: 8px; }
.portfolio-page .lang-name { font-size: 15px; }
.portfolio-page .lang-level { font-size: 9px; }
.portfolio-page .lang-track { height: 5px; }
.portfolio-page .lang-fill { background: #708369; }
.portfolio-page .lang-footnote { font-size: 11px; line-height: 1.7; }
.portfolio-page .band--teal { background: #294b3e; margin: 0 32px; border-radius: 10px; position: relative; overflow: hidden; }
.portfolio-page .band--teal::before, .portfolio-page .band--teal::after { content: ''; position: absolute; width: 270px; height: 380px; border: 1px solid #e4ecd317; border-radius: 150px 150px 0 0; top: 50%; transform: translateY(-50%); pointer-events: none; }
.portfolio-page .band--teal::before { left: -90px; }
.portfolio-page .band--teal::after { right: -90px; }
.portfolio-page .philosophy { padding: 76px 32px; z-index: 1; }
.portfolio-page .philosophy-quote { font-size: clamp(27px,3.2vw,43px); line-height: 1.35; letter-spacing: -.035em; max-width: 25ch; margin-left: auto; margin-right: auto; }
.portfolio-page .philosophy-sub { font-size: 13px; color: #d8dfcc; line-height: 1.85; max-width: 54ch; margin-left: auto; margin-right: auto; }
.portfolio-page .stamp { background: transparent; }
.portfolio-page .card--quote { display: flex; flex-direction: column; padding: 32px; }
.portfolio-page .quote-mark { font-size: 58px; color: #86977a; }
.portfolio-page .quote-copy { font-size: 14px; }
.portfolio-page .quote-byline { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.portfolio-page .quote-name { font-size: 12px; }
.portfolio-page .quote-role { font-size: 11px; line-height: 1.6; }
.portfolio-page .split--contact { align-items: start; padding-top: 100px; padding-bottom: 100px; }
.portfolio-page .section-title--big { font-size: clamp(36px,4.3vw,58px); max-width: 13ch; }
.portfolio-page .contact-email { font-size: clamp(17px,2vw,24px); color: var(--rust); border-bottom: 1px solid #c89c85; padding-bottom: 6px; display: inline-block; overflow-wrap: anywhere; }
.portfolio-page .contact-meta { font-size: 11px; margin-top: 24px; }
.portfolio-page .contact-card { border-radius: 10px; background: #fffef9; padding: 32px; border: 1px solid var(--line); box-shadow: 0 14px 40px #35483105; }
.contact-card-heading { font-family: 'Marcellus',serif; font-size: 24px; letter-spacing: -.025em; }
.contact-card-heading > span { display: block; font-family: 'Karla',sans-serif; font-size: 12px; letter-spacing: 0; color: var(--muted); margin-top: 8px; }
.inquiry-options { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; }
.inquiry-options button { border: 1px solid var(--line); border-radius: 5px; color: var(--teal); padding: 9px 11px; min-height: 44px; background: #f5f5ec; cursor: pointer; font-size: 11px; }
.inquiry-options button:hover { background: #e6ecdd; }
.portfolio-page .contact-form { gap: 10px; }
.portfolio-page .contact-form label { font-size: 11px; margin-top: 6px; }
.portfolio-page .contact-form input, .portfolio-page .contact-form textarea { background: #fcfcf7; border-radius: 5px; border-color: #d9ddcf; font-size: 14px; padding: 13px; }
.portfolio-page .contact-form .btn { margin-top: 6px; }
.portfolio-page .form-note { font-size: 11px; line-height: 1.6; }
.portfolio-page .site-footer { background: #eeeee5; }
.portfolio-page .footer-inner { max-width: 1280px; padding: 32px 48px; }
.portfolio-page .footer-route { font-size: 9px; letter-spacing: .16em; }
.portfolio-page .footer-copy, .portfolio-page .footer-email { font-size: 11px; }
.portfolio-page .resume-wrap { background: #eeeee5; padding-top: 56px; }
.portfolio-page .resume-inner { max-width: 1040px; }
.resume-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 35px; }
.resume-page-heading h2 { font-family: 'Marcellus',serif; font-weight: 400; font-size: clamp(34px,4vw,50px); letter-spacing: -.04em; line-height: 1.12; margin: 0; }
.resume-page-heading em { font-family: Georgia,serif; color: #607556; }
.resume-page-heading p { font-size: 13px; line-height: 1.8; max-width: 23ch; color: var(--muted); }
.resume-section-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.resume-section-nav button { min-height: 44px; background: transparent; border: 1px solid #c8cebb; border-radius: 5px; padding: 8px 13px; color: var(--teal); font-size: 12px; cursor: pointer; }
.resume-section-nav button:hover { background: #e0e6d6; }
.portfolio-page .resume-toolbar { justify-content: flex-start; }
.portfolio-page .sheet { border-radius: 7px; box-shadow: 0 12px 40px #35483106; border-color: #d9ddcf; }
.portfolio-page .sheet-heading { scroll-margin-top: 120px; }
.portfolio-page .certifications-wrap, .portfolio-page .videos-wrap { max-width: 1184px; padding-top: 70px; padding-bottom: 90px; min-height: 72vh; }
.portfolio-page .certifications-title, .portfolio-page .videos-title { font-size: clamp(36px,4.6vw,60px); letter-spacing: -.04em; max-width: 18ch; line-height: 1.15; }
.portfolio-page .certifications-lede, .portfolio-page .videos-lede { font-size: 15px; line-height: 1.8; max-width: 60ch; }
.portfolio-page .lock-card { border: 1px solid #d7ddca; border-radius: 10px; box-shadow: none; background: #eeeee3; }
.request-access { display: inline-block; padding: 16px 0 0; font-size: 12px; color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.portfolio-page .pw-input { border-radius: 5px; }
.admin-body #panel { display: grid; grid-template-columns: 210px minmax(0,1fr); max-width: 1440px; margin: auto; }
.admin-body .admin-header { grid-column: 1/-1; }
.admin-body .admin-header-inner { max-width: none; min-height: 78px; }
.admin-body .admin-tabs { flex-direction: column; flex-wrap: nowrap; margin: 26px 0 0; padding: 0 18px; position: sticky; top: 104px; align-self: start; gap: 8px; }
.admin-body .admin-tab { text-align: left; border-radius: 7px; border: 0; background: transparent; padding: 13px 18px; letter-spacing: 0; font-size: 13px; }
.admin-body .admin-tab:hover { background: #dfe5d5; }
.admin-body .admin-tab.is-active { background: var(--teal); color: white; }
.admin-body .admin-main { width: 100%; max-width: none; padding: 26px 28px 70px 0; }
.admin-body .admin-card { box-shadow: none; border-color: var(--line); padding: 30px; border-radius: 10px; }
.admin-body .home-group, .admin-body .resume-section-card { background: #f7f7f0; border-radius: 7px; border-color: var(--line); }
.admin-body .home-input, .admin-body .settings-form input, .admin-body .settings-form textarea { border-radius: 5px; border-color: #c9cebc; }
.admin-body .admin-card-sub { line-height: 1.8; }
.admin-body .btn { border-radius: 6px; }
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-photo { animation: editorial-enter .6s both; }
  .hero-photo { animation-delay: .1s; }
  @keyframes editorial-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 1100px) {
  .portfolio-page .header-inner { padding: 0 28px; gap: 18px; }
  .header-contact { display: none; }
  .portfolio-page .hero { gap: 50px; padding-left: 36px; padding-right: 56px; }
  .section-index { margin: 0 48px; }
  .portfolio-page .specialties { align-items: flex-start; flex-direction: column; gap: 14px; }
  .portfolio-page .specialties-chips { justify-content: flex-start; }
  .portfolio-page .split { gap: 40px; }
}
@media (max-width: 900px) {
  .portfolio-page .hero { grid-template-columns: minmax(0,1fr) minmax(0,.8fr); padding: 55px 48px 64px 28px; gap: 36px; }
  .portfolio-page .hero-title { font-size: 46px; }
  .portfolio-page .hero-lede { font-size: 14px; }
  .portfolio-page .greetings { gap: 14px; }
  .portfolio-page .greeting-word { font-size: 16px; }
  .portfolio-page .hero-photo { width: 100%; }
  .portfolio-page .card-grid { grid-template-columns: 1fr; }
  .experience-band .card { display: grid; grid-template-columns: 40px 1fr; column-gap: 24px; }
  .experience-number { grid-column: 1; grid-row: 1/6; border: 0; margin: 0; padding: 0; font-size: 30px; }
  .experience-band .card > :not(.experience-number) { grid-column: 2; }
  .portfolio-page .band-inner, .portfolio-page .split { padding: 60px 32px; }
  .section-index { margin: 0 32px; }
  .index-label { display: none; }
  .portfolio-page .contact-card { padding: 24px; }
  .admin-body #panel { grid-template-columns: 170px minmax(0,1fr); }
  .admin-body .admin-tabs { padding: 0 12px; }
  .admin-body .admin-main { padding-right: 20px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 126px; }
  .portfolio-page .header-inner { height: auto; padding: 12px 20px 10px; gap: 12px; flex-direction: column; align-items: stretch; }
  .portfolio-page .brand { font-size: 18px; gap: 10px; }
  .brand-seal { width: 34px; height: 38px; font-size: 22px; }
  .brand-subtitle { font-size: 7px; margin-top: 3px; }
  .portfolio-page .tabs { display: grid; grid-template-columns: .7fr .8fr 1.15fr 1.35fr; width: 100%; gap: 3px; }
  .portfolio-page .tab { min-height: 44px; padding: 8px 3px; font-size: 11px; }
  .portfolio-page .hero { grid-template-columns: 1fr; padding: 38px 24px 58px; gap: 42px; }
  .portfolio-page .hero-copy .kicker { font-size: 8px; line-height: 1.7; gap: 8px; margin-bottom: 22px; letter-spacing: .12em; }
  .hero-copy .kicker::before { width: 14px; }
  .portfolio-page .hero-title { font-size: clamp(42px,11vw,62px); max-width: 14ch; margin-bottom: 22px; }
  .portfolio-page .hero-lede { font-size: 15px; max-width: 52ch; }
  .portfolio-page .hero-actions { flex-wrap: nowrap; gap: 8px; margin-bottom: 26px; }
  .portfolio-page .hero-actions .btn { padding: 12px 14px; font-size: 12px; gap: 10px; }
  .portfolio-page .greetings { justify-content: space-between; gap: 10px; padding-top: 20px; }
  .portfolio-page .greeting-word { font-size: 18px; }
  .portfolio-page .greeting-lang { font-size: 7px; }
  .portfolio-page .hero-photo { max-width: 270px; width: calc(100% - 56px); margin: 0 auto; }
  .portfolio-page .portrait { aspect-ratio: 1/1.08; }
  .portfolio-page .portrait-monogram { font-size: 115px; }
  .portfolio-page .portrait-caption { font-size: 6px; }
  .portfolio-page .badge--bangkok { width: 72px; height: 72px; left: -22px; top: 8px; }
  .portfolio-page .badge--seoul { width: 68px; height: 68px; left: -25px; bottom: 40px; }
  .portfolio-page .badge--tangier { width: 82px; height: 82px; right: -24px; bottom: -16px; }
  .portfolio-page .badge-city { font-size: 8px; }
  .portfolio-page .badge-years { font-size: 7px; }
  .portfolio-page .hero-photo::before { inset: -14px -14px 24px; }
  .portfolio-page .home-highlights { padding: 0 24px 28px; gap: 22px; }
  .portfolio-page .stats-strip { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px 0; }
  .portfolio-page .stat { padding: 20px 6px; }
  .portfolio-page .stat + .stat { border-left: 0; }
  .portfolio-page .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .portfolio-page .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .portfolio-page .stat-value { font-size: 25px; }
  .portfolio-page .stat-label { font-size: 8px; }
  .portfolio-page .specialties-chips { gap: 6px; }
  .portfolio-page .chip { font-size: 10px; padding: 7px 9px; }
  .portfolio-page .availability { padding: 18px; gap: 14px; }
  .portfolio-page .availability-copy { flex-basis: 100%; }
  .portfolio-page .availability-status { font-size: 13px; }
  .portfolio-page .availability-detail { font-size: 11px; line-height: 1.7; }
  .portfolio-page .availability-cta { width: 100%; }
  .section-index { margin: 0 24px; display: grid; grid-template-columns: 1fr 1fr; padding: 14px 0; gap: 0 12px; }
  .section-index a { font-size: 11px; gap: 10px; }
  .portfolio-page .band-inner, .portfolio-page .split, .portfolio-page .gallery-section { padding: 52px 24px; }
  .portfolio-page .band--sand:last-of-type .band-inner { padding: 52px 24px; }
  .portfolio-page .split { gap: 30px; grid-template-columns: minmax(0,1fr); }
  .portfolio-page .section-title { font-size: 32px; }
  .portfolio-page .card { padding: 24px 20px; }
  .experience-band .card { column-gap: 14px; grid-template-columns: 28px minmax(0,1fr); }
  .experience-number { font-size: 25px; }
  .portfolio-page .card-city { font-size: 22px; }
  .portfolio-page .lang-list { padding: 24px; }
  .portfolio-page .band--teal { margin: 0 12px; }
  .portfolio-page .philosophy { padding: 48px 24px; }
  .portfolio-page .philosophy-quote { font-size: 28px; }
  .portfolio-page .philosophy-sub { font-size: 12px; }
  .portfolio-page .stamps { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .portfolio-page .stamp { width: 94px; height: 94px; }
  .portfolio-page .stamp-title { font-size: 19px; }
  .portfolio-page .stamp-sub { font-size: 7px; }
  .portfolio-page .contact-card { padding: 22px; }
  .portfolio-page .contact-form input, .portfolio-page .contact-form textarea { font-size: 16px; }
  .portfolio-page .section-title--big { font-size: 42px; }
  .portfolio-page .footer-inner { padding: 26px 24px; gap: 14px; flex-direction: column; align-items: flex-start; }
  .resume-page-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .resume-page-heading p { max-width: none; margin: 0; }
  .resume-section-nav { gap: 6px; }
  .resume-section-nav button { font-size: 11px; padding: 8px 10px; text-align: left; }
  .portfolio-page .resume-toolbar .btn { font-size: 11px; padding: 10px 13px; }
  .portfolio-page .sheet-heading { scroll-margin-top: 140px; }
  .portfolio-page .certifications-wrap, .portfolio-page .videos-wrap { padding: 42px 24px 60px; }
  .admin-body #panel { display: block; }
  .admin-body .admin-tabs { flex-direction: row; top: 0; margin: 0; padding: 12px 16px; }
  .admin-body .admin-main { padding: 0 16px 48px; }
  .admin-body .admin-card { padding: 24px 20px; }
  .admin-body .admin-header-inner { min-height: 0; }
}
@media print {
  .portfolio-page .resume-wrap { padding: 0; background: white; }
  .portfolio-page .sheet { box-shadow: none; color: #111; }
}

/* ===================== Admin UX upgrades ===================== */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Sticky save bar — save/publish stay reachable on long forms. */
.admin-body .editor-savebar {
  position: sticky; top: 86px; z-index: 20;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 16px 0 18px; padding: 10px 12px 10px 16px;
  background: rgba(255, 253, 248, 0.96); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 6px 18px #2e241810;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.admin-body .editor-savebar.is-dirty { border-color: var(--rust); box-shadow: 0 6px 18px #bf5b3b1f; }
.admin-body .editor-savebar .editor-save-state { padding: 0; font-weight: 700; }
.admin-body .editor-save-hint { font-size: 12px; color: var(--faint); }
.admin-body .editor-savebar.is-dirty .editor-save-hint { display: none; }
.admin-body .editor-savebar-actions { display: flex; gap: 10px; margin-left: auto; }
.admin-body .editor-savebar-actions .btn { padding: 10px 20px; }

/* Collapsible editor sections. */
.admin-body details.home-group { padding: 0; scroll-margin-top: 170px; }
.admin-body details.home-group > summary {
  list-style: none; cursor: pointer; margin: 0; padding: 16px 48px 16px 20px;
  border-bottom: 1px solid transparent; position: relative; border-radius: 7px;
}
.admin-body details.home-group > summary::-webkit-details-marker { display: none; }
.admin-body details.home-group > summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s ease;
}
.admin-body details.home-group[open] > summary { border-bottom-color: var(--line); border-radius: 7px 7px 0 0; }
.admin-body details.home-group[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.admin-body details.home-group > summary:hover { background: #eef0e6; }
.admin-body details.home-group > :not(summary) { margin-left: 20px; margin-right: 20px; }
.admin-body details.home-group > :not(summary):first-of-type { margin-top: 16px; }
.admin-body details.home-group[open] { padding-bottom: 20px; }

/* Jump-to-section bar above the Home editor. */
.admin-body .editor-jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-body .editor-jump .btn-mini { min-height: 34px; }
.admin-body .editor-jump-all { margin-left: auto; border-style: dashed; }

/* Unsaved-changes dot on sidebar tabs. */
.admin-body .admin-tab { position: relative; }
.admin-body .admin-tab.has-changes::after {
  content: ''; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px;
  margin-top: -4px; border-radius: 50%; background: var(--rust);
}
.admin-body .admin-tab.is-active.has-changes::after { background: #fff; }

/* Settings helpers. */
.settings-count { font-size: 12px; color: var(--faint); margin-top: -2px; }
.settings-count.is-over { color: var(--rust-dark); font-weight: 700; }

@media (max-width: 720px) {
  /* All eight tabs visible at once instead of a sideways-scrolling strip. */
  .admin-body .admin-tabs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    position: static; overflow: visible; gap: 6px;
  }
  .admin-body .admin-tab { text-align: center; padding: 10px 6px; font-size: 12.5px; }
  .admin-body .admin-tab.has-changes::after { right: 6px; top: 8px; margin-top: 0; }
  /* The admin header is static at this width, so the bar can sit at the very top. */
  .admin-body .editor-savebar { top: 0; border-radius: 0 0 8px 8px; margin-left: -20px; margin-right: -20px; }
  .admin-body .editor-save-hint { display: none; }
  .admin-body .editor-savebar-actions { width: 100%; }
  .admin-body .editor-savebar-actions .btn { flex: 1; }
  .admin-body details.home-group > :not(summary) { margin-left: 14px; margin-right: 14px; }
  .admin-body .editor-jump-all { margin-left: 0; }
}

/* ===================== Public UX upgrades ===================== */

/* Videos password: show/hide toggle inside the field. */
.pw-field { position: relative; }
.lock-card .pw-field input { padding-left: 64px; padding-right: 64px; }
.pw-toggle {
  position: absolute; right: 6px; top: 6px; height: calc(100% - 24px); min-width: 52px;
  border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; color: var(--teal);
}
.pw-toggle:hover { background: #e3e8da; }

/* First paint: js/boot.js hides the body until the saved content has loaded
   (see js/app.js), so the built-in defaults never flash. The header stays
   visible; visibility (not display) keeps layout, so #anchors still scroll. */
html.content-loading #main-content,
html.content-loading .site-footer { visibility: hidden; }
html.content-ready #main-content,
html.content-ready .site-footer { animation: content-in .22s ease-out; }
@keyframes content-in { from { opacity: 0; } to { opacity: 1; } }
