/* Keeps the embedded profile documents aligned with the studio theme. */
:root {
  --panel: #142325;
  --primary: #ffd99a;
  --header-start: #0b2427;
  --header-end: #60422b;
  --text: #f3f7f4;
  --muted: #aebfba;
  --line: #2b4140;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

body { background: #0d1718; color: var(--text); font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 15px; }
html,
body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.embedded-profile .profile-navbar { display: none; }
.profile-navbar { position: relative; z-index: 1002; display: flex; max-width: 1120px; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 10px 20px; }
.profile-navbar-brand { display: flex; min-width: 0; align-items: center; gap: 9px; color: var(--text); font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.profile-navbar-brand img { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; object-fit: cover; }
.profile-navbar-brand span { color: var(--primary); }
.profile-navbar .site-navigation { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); }
.profile-navbar .site-navigation a { padding: 10px 0; color: var(--text); font-size: 0.9rem; text-decoration: none; }
.profile-navbar .site-navigation a:hover { color: var(--primary); }
.profile-navbar .menu-toggle { display: none; width: 48px; height: 48px; flex: 0 0 48px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #172a2b; color: var(--text); }
.profile-navbar .menu-toggle span { display: block; width: 21px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.profile-navbar .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
.profile-navbar .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.profile-navbar .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-8px) rotate(-45deg); }
.page { max-width: 1120px; margin: 24px auto; background: var(--panel); border-color: var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.top { background: linear-gradient(115deg, var(--header-start), var(--header-end)); padding: 30px clamp(22px, 4vw, 48px); }
h1, .section-header h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; }
.content { grid-template-columns: minmax(220px, 28%) 1fr; }
.sidebar { background: #102021; border-color: var(--line); padding: 28px clamp(18px, 3vw, 30px); }
.main { padding: 32px clamp(22px, 4vw, 44px); }
.section-title { color: var(--primary); border-color: var(--line); }
.summary, .list { color: var(--text); }
.small-text, .section-header p, .about-card p { color: var(--muted); }
table, .skill-list li, .language-list li, .about-card, .contact-box { background: #172a2b; border-color: var(--line); }
th { background: #1c3837; color: var(--primary); }
td { border-color: var(--line); }
.level, .skill-list span, .contact-links a { background: rgba(242, 184, 102, 0.14); color: var(--primary); border-color: var(--line); }
.is-leaving { opacity: 0; transition: opacity 220ms ease; }
.profile-legal-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; padding: 18px 20px 26px; }
.profile-legal-footer a { color: #dce8f3; font-size: 0.82rem; text-decoration: none; }
.profile-legal-footer a:hover { color: var(--primary); }
@media (max-width: 760px) {
  .page { margin: 0; border-width: 0; border-radius: 0; }
  .top { padding: 24px 20px; }
  .content { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .main, .sidebar { padding: 24px 20px; }
}
@media (max-width: 768px) {
  .profile-navbar { min-height: 68px; gap: 12px; padding: 10px 16px; }
  .profile-navbar .menu-toggle { position: relative; z-index: 1004; display: flex; margin-left: auto; }
  .profile-navbar .site-navigation { position: fixed; inset: 0; z-index: 1003; display: flex; width: 100%; height: 100vh; height: 100dvh; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; overflow-y: auto; padding: 88px 24px 32px; background: rgba(13, 23, 24, .99); opacity: 0; pointer-events: none; transform: translateX(100%); transition: opacity 220ms ease, transform 260ms ease, visibility 260ms ease; visibility: hidden; }
  body.menu-open .profile-navbar .site-navigation { opacity: 1; pointer-events: auto; transform: translateX(0); visibility: visible; }
  .profile-navbar .site-navigation a { display: flex; min-height: 56px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.1rem; }
  .profile-navbar .site-navigation a:focus-visible, .profile-navbar .menu-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
}
@media (max-width: 380px) {
  .profile-navbar { padding-right: 12px; padding-left: 12px; }
  .profile-navbar-brand { gap: 6px; font-size: .96rem; }
  .profile-navbar-brand img { width: 34px; height: 34px; flex-basis: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-navbar .site-navigation, .profile-navbar .menu-toggle span { transition: none; }
}