/* ==========================================================================
   Shahin Amani — About page
   Design tokens
   ========================================================================== */

:root {
  /* Brand */
  --deep-blue: #013885;
  --midnight: #162155;
  --sun: #f9ed69;

  /* Derived neutrals (kept close to the brand hues, not generic greys) */
  --paper: #eef3fb;      /* page background */
  --panel: #ffffff;      /* card/panel background */
  --panel-tint: #f4f7fc; /* subtle alternate panel */
  --ink: #101528;        /* body text */
  --ink-soft: #3c4560;   /* secondary text */
  --line: rgba(1, 56, 133, 0.16);
  --line-strong: rgba(1, 56, 133, 0.32);
  --focus: #0a5fd1;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(16, 21, 40, 0.06), 0 8px 24px rgba(16, 21, 40, 0.07);

  /* Single shared width for every section — previously .theme (960px) and
     the header/main/footer shells (1080px) used two different values, so
     inner content sat off-center from its own panel edges. */
  /* --content-max: 1320px; */

  color-scheme: light;
}

/* ==========================================================================
   Dark mode
   Toggled by JS setting data-theme="dark" on <html>. Same structure, only
   the neutrals move — the three brand colors stay put so the palette still
   reads as this brand in either mode.
   ========================================================================== */

:root[data-theme="dark"] {
  --paper: #0b0f1c;
  --panel: #131a2c;
  --panel-tint: #1a2338;
  --ink: #eef1fb;
  --ink-soft: #aab3d0;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --focus: #6ea8ff;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

:root[data-theme="dark"] body {
  background: #05070d;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3 {
  color: #f4f6ff;
}

:root[data-theme="dark"] h2 {
  border-bottom-color: var(--sun);
}

:root[data-theme="dark"] a {
  color: #7fb0ff /* var(--sun) */;
}

:root[data-theme="dark"] .footer-container {
  background: var(--deep-blue);
  color: #1a1400;
}

/* :root[data-theme="dark"] .footer-container a,
:root[data-theme="dark"] .footer-font,
:root[data-theme="dark"] .footer-brand p {
  color: var(--sun);
} */

:root[data-theme="dark"] .footer-nav a:hover,
:root[data-theme="dark"] .footer-nav a:focus-visible {
  border-bottom-color: var(--sun);
  text-decoration: none;
}

:root[data-theme="dark"] .btn-submit,
:root[data-theme="dark"] .btn-primary {
  background: var(--focus);
  border-color: var(--focus);
  color: #0b0f1c;
}

:root[data-theme="dark"] .btn-submit:hover,
:root[data-theme="dark"] .btn-primary:hover {
  background: #9cc4ff;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea {
  color: var(--ink);
}

:root[data-theme="dark"] .trust-row img {
  background: #fff;
}

/* Headings/labels set an explicit brand-navy color rather than the --ink
   token, since on the light panel that navy reads as "brand". On a dark
   panel that same navy has almost no contrast, so give these a light
   color in dark mode specifically. */
:root[data-theme="dark"] .toc p,
:root[data-theme="dark"] .skill h3,
:root[data-theme="dark"] .form-card legend,
:root[data-theme="dark"] .form-card h3,
:root[data-theme="dark"] .footer-brand p {
  color: #f4f6ff;
}

:root[data-theme="dark"] .viewport-toggle button[aria-pressed="true"] {
  background: var(--focus);
  color: #0b0f1c;
}

/* :root[data-theme="dark"] .banner .btn-ghost {
  border-color: rgba(0, 0, 0, 0.35);
  color: #1a1400;
}

:root[data-theme="dark"] .viewport-toggle button[aria-pressed="true"] {
  background: var(--focus);
  color: #0b0f1c;
} */


footer ::selection{
  background:var(--midnight);
  color:var(--sun);
}

::selection{
  background:var(--sun);
  color:var(--midnight);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Anchor targets (#Skills, #Forms...) must clear the sticky bar, or the
     heading lands underneath it. */
  /* scroll-padding-top: 90px; */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  padding: clamp(10px, 2vw, 20px);
  background: var(--midnight);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--deep-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--midnight);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.35rem, 1.4vw + 1rem, 1.85rem);
  padding-bottom: var(--space-1);
  border-bottom: 2px solid var(--sun);
  display: inline-block;
}

p {
  /* max-width: 68ch; */
  margin: 0 0 var(--space-2);
  color: var(--ink-soft);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

hr{
  max-width: 70vw;
  margin: var(--space-4) auto var(--space-3) auto;
}

.theme {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--content-max);
}

/* ==========================================================================
   Layout shells
   ========================================================================== */

.header-container,
.main-container,
.footer-container {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-lg);
}

/* The sticky wrapper: banner on top, compact bar below, both travel together. */
.topbar-stack {
  position: sticky;
  top: var(--space-2);
  z-index: 100;
  /* Cancel the body's side padding so the stack spans the full viewport
     while the inner .header-bar stays aligned to the content width. */
  /* width: 100vw; */
  /* margin-left: calc(50% - 50vw); */
  /* margin-right: calc(50% - 50vw); */
  margin-bottom: var(--space-3);
  /* border-radius: 0 0 var(--radius-lg) var(--radius-lg); */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.header-container {
  background: linear-gradient(160deg, var(--midnight), var(--deep-blue));
  color: #fff;
  /* padding: 0;
  margin: 0; */
  text-align: center;
  padding: var(--space-2) 0 var(--space-2);
}

.header-container p {
  color: rgba(255, 255, 255, 0.85);
}

.header-container a {
  color: #fff;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  /* min-height: 60px; 
  justify-content: space-between;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: var(--space-3); */
  padding: 0 var(--space-3);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.header-brand:hover {
  text-decoration: none;
}

.header-brand img[alt="Shahin Amani site logo"] {
  /* width: 36px;
  height: 36px; */
  border-radius: 50%;
  border: 2px solid var(--sun);
}

.header-brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center; /*   line-height: 1.15; */
}

.header-brand__text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}

.header-brand__text small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.header-nav {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.header-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  /* font-size: 0.9rem; */
  padding: 0.4em 0.2em; /* 0.35em 0 */
  border-bottom: 2px solid transparent;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  border-bottom-color: var(--sun);
  text-decoration: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Hamburger — hidden on desktop, appears when the inline nav collapses. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-inline-start: auto;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-bars {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.main-container {
  background: var(--paper);
  padding: var(--space-4) var(--space-3);
}

.footer-container {
  background: var(--sun);
  color: var(--midnight);
  padding: var(--space-4) var(--space-3) var(--space-3);
}

.footer-container a {
  color: var(--midnight);
  text-decoration: none;
}

/* ==========================================================================
   Language switcher & suggestion banner
   ========================================================================== */

.lang-switch {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #fff;
  font-family: var(--font-body);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  min-width: 190px;
  padding: 6px;
  display: none;
  z-index: 20;
  text-align: left;
}

.lang-menu.open {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--font-body);
}

.lang-option:hover {
  background: var(--panel-tint);
}

.lang-option[aria-current="true"] {
  font-weight: 700;
}

.lang-option img {
  flex-shrink: 0;
  border-radius: 2px;
}

.lang-native {
  color: var(--ink-soft);
  font-size: 12px;
  margin-inline-start: auto;
}

.banner {
  display: none;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 0 0 var(--space-3);
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  /* max-width: 1080px; */
  margin-inline: auto;
}

.banner.show {
  display: flex;
}

.banner-text {
  flex: 1;
}

.banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.banner button {
  cursor: pointer;
  font-size: 13px;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--deep-blue);
  color: #fff;
  border: 1px solid var(--deep-blue);
}

.btn-primary:hover {
  background: var(--midnight);
}

.btn-ghost {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* ==========================================================================
   Table of contents
   ========================================================================== */

.toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  display: inline-block;
  /* width: 100%; */
  text-align: center;
  margin: 0 0 var(--space-4);
}

.toc p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--midnight);
  text-align: center;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-1);
  flex-direction: column;
}

/* ==========================================================================
   Article copy
   ========================================================================== */

article > img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.main-font {
  /* text-align: left; */
  padding-top: var(--space-2);
}

.main-font p {
  /* max-width: 72ch; */
  text-align: justify;
  hyphens: auto;
}

.section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: center;
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.section p {
  max-width: none;
}

/* ==========================================================================
   Social networks
   ========================================================================== */

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 427px));
  gap: var(--space-3);
  justify-content: center;
  /* align-items: start; */
}

.social-grid > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}

/* ==========================================================================
   Website preview
   ========================================================================== */

.site-preview {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  text-align: center;
}

.site-preview__frame {
  width: 100%;
  max-width: 960px;
  min-height: 500px;
  margin: var(--space-2) auto 0;
  aspect-ratio: 16 / 9;
  zoom: 0.5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--sun);
  box-shadow: var(--shadow-card);
  transition: max-width 0.25s ease;
}

/* "TV / large screen" mode breaks out of the card padding and the page's
   own max-width to actually use a wide monitor's width, the way the
   original four-breakpoint preview intended for its "Smart TV" view. */
.site-preview__frame.is-fullbleed {
  /* max-width: 100%; */
  /* width: 100vw; */
  /* margin-left: calc(50% - 50vw); */
  /* margin-right: calc(50% - 50vw); */
  /* border-radius: 0; */
  aspect-ratio: 21 / 9;
}

.site-preview__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.viewport-toggle {
  display: inline-flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
  background: var(--panel-tint);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.viewport-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.viewport-toggle button[aria-pressed="true"] {
  background: var(--deep-blue);
  color: #fff;
}

/* ==========================================================================
   Skills
   ========================================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.skill {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  text-align: left;
}

.skill h3 {
  margin-bottom: var(--space-2);
}

.skill-row {
  padding-top: var(--space-2);
}

.skill-row:first-of-type {
  padding-top: 0;
}

.skill-row__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--ink);
}

.skill-row__level {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.empty-bar {
  border-radius: 999px;
  width: 100%;
  height: 6px;
  background: var(--line);
  overflow: hidden;
}

.filled-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--deep-blue), var(--focus));
  border-radius: 999px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
  text-align: left;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

.form-card legend,
.form-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--midnight);
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
  padding: 0;
}

.field {
  margin-bottom: var(--space-2);
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

input,
textarea {
  width: 100%;
  background: var(--panel-tint);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.65em 0.8em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-soft);
}

.btn-submit {
  appearance: none;
  background: var(--deep-blue);
  color: #fff;
  border: 1px solid var(--deep-blue);
  border-radius: var(--radius-sm);
  padding: 0.6em 1.4em;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--midnight);
}

.recaptcha-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.recaptcha-holder {
  display: flex;
  justify-content: center;
  margin: var(--space-1) 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
  text-align: left;
}

.footer-brand {
  display: flex;
  /* gap: var(--space-2); */
  align-items: center;
  margin-bottom: var(--space-2);
  justify-content: space-evenly;
}

.footer-brand img {
  border-radius: 50%;
  border: 2px solid var(--deep-blue);
}

.footer-brand p {
  color: var(--midnight);
}

.footer-about {
  text-align: justify;
  hyphens: auto;
  max-width: 60ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin-top: var(--space-2);
  justify-content: center;
}

.footer-nav a {
  padding-bottom: 0.4em;
  border-bottom: 2px solid transparent;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  border-bottom-color: var(--deep-blue);
  text-decoration: none;
}

.footer-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line-strong);
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

.contact-column{
  justify-items: center;
}

.trust-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
}

.trust-row img {
  height: 90px; /* 80 80 - 90 70*/
  width: 70px;
  border-radius: var(--radius-sm);
  background: #fff;
  object-fit: contain;
  padding: 5px 5px;
}

.contact-list {
  margin-top: var(--space-3);
}

.contact-list li {
  display: flex;
  margin: 0 0 var(--space-1);
  width: 150px;
  background-color: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.contact-list li:hover {
  transform: translateY(-2px);
}

.contact-list a {
  color: var(--midnight);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-2);
}

.social-icons li {
  margin: 0;
  transition: transform 0.2s ease;
}

.social-icons li:hover {
  transform: translateY(-2px);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.icon {
  width: 22px;
  height: 22px;
}

.footer-font {
  /* padding-top: var(--space-1);
  padding-bottom: var(--space-1); */
  /* color: var(--midnight); */
  text-align: center;
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */

@media (max-width: 900px) {
  .header-brand__text small {
    /* display: none; */
  }

  .nav-toggle {
    display: flex;
  }

  /* The dropdown is positioned against this row. */
  .header-bar {
    position: relative;
  }

  /* Nav becomes a dropdown panel under the bar instead of disappearing. */
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--space-1) var(--space-2) var(--space-2);
    background: var(--midnight);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg) var(--radius-lg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }

  .header-nav.open {
    display: flex;
    margin-top: var(--space-3);
    flex-direction: row;
    justify-content: space-around;
  }

  .header-nav a {
    padding: 0.7em 0.5em;
    font-size: 0.95rem;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
  }

  /* .header-nav a:last-child {
    border-bottom: 0;
  } */

  .header-nav a:hover,
  .header-nav a:focus-visible {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
  }

  .viewport-toggle {
    display: none;
  }

  .switch-row {
    display: none;
  }
}

/* @media (max-width: 640px) {
  .header-bar {
    / flex-direction: column; /
    gap: var(--space-1);
    / align-items: flex-start; /
  }

  h2 {
    font-size: 1.3rem;
  }
} */

@media (max-width: 560px) {
  .banner {
    flex-direction: column;
    align-items: stretch;
  }

  .banner-actions {
    justify-content: flex-end;
  }

  h2 {
    font-size: 1.3rem;
  }
}









.mysite{
    margin: 2px 0px;
    border-radius: 8px;
    background-color: #F9ED69;
}

.siteiframe{
    zoom: 0.5;
    border: 5px solid #F9ED69;
    border-radius: 8px;
}



/* ==========================================================================
   Preview source: switch, picker, and the full-page previewer
   ========================================================================== */

.switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-2) 0 var(--space-3);
}

.switch-row__label {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--line-strong);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.switch[aria-checked="true"] {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
}

.switch[aria-checked="true"] .switch__knob {
  transform: translateX(20px);
}




.source-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin: 0 0 var(--space-3);
  text-align: left;
}

.source-section[hidden] {
  display: none;
}

.source-section__more {
  margin: var(--space-2) 0 0;
  font-size: 0.9rem;
}

.source-picker__presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.source-chip {
  padding: 0.5em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel-tint);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.source-chip:hover {
  border-color: var(--deep-blue);
}

.source-chip[aria-pressed="true"] {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: #fff;
}

.source-picker__custom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: flex-end;
}

.source-picker__field {
  flex: 1 1 260px;
}

.source-picker p,
.source-picker__field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.source-picker__input[aria-invalid="true"] {
  border-color: #b3261e;
}

.source-picker__status {
  margin: var(--space-2) 0 0;
  max-width: none;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.source-picker__status:empty {
  display: none;
}

.source-picker__status.is-error {
  color: #b3261e;
}

:root[data-theme="dark"] .switch[aria-checked="true"],
:root[data-theme="dark"] .source-chip[aria-pressed="true"] {
  background: var(--focus);
  border-color: var(--focus);
  color: #0b0f1c;
}

:root[data-theme="dark"] .source-chip:hover {
  border-color: var(--focus);
}

:root[data-theme="dark"] .source-picker__status.is-error {
  color: #ff9a92;
}

:root[data-theme="dark"] .source-picker__input[aria-invalid="true"] {
  border-color: #ff9a92;
}




/* ==========================================================================
   Source picker while a load is in flight (.is-busy, set by script.js):
   preset buttons and Load are locked, the used control shows a spinner, and
   a sweep runs along the top of the picker.
   ========================================================================== */

@keyframes frame-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes picker-sweep {
  from {
    background-position: -60% 0;
  }
  to {
    background-position: 160% 0;
  }
}

.source-picker {
  position: relative;
}

.source-picker.is-busy {
  cursor: progress;
}

.source-picker.is-busy::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 3px;
  border-radius: 3px;
  background-image: linear-gradient(90deg, transparent, var(--deep-blue), var(--sun), transparent);
  background-size: 45% 100%;
  background-repeat: no-repeat;
  animation: picker-sweep 1.1s linear infinite;
}

.source-picker.is-busy .source-chip,
.source-picker.is-busy .btn-submit {
  pointer-events: none;
}

.source-picker.is-busy .source-chip:not(.is-working),
.source-picker.is-busy .btn-submit:not(.is-working),
.source-picker.is-busy .source-picker__input {
  opacity: 0.5;
}

.source-chip.is-working::after,
.btn-submit.is-working::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-inline-start: 0.55em;
  vertical-align: -0.12em;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: frame-spin 0.7s linear infinite;
}

:root[data-theme="dark"] .source-picker.is-busy::before {
  background-image: linear-gradient(90deg, transparent, var(--focus), var(--sun), transparent);
}
