/* Sayarii Tabs (folder style): replaces the tabs block's style_2 template.
   Change the colours here to tune the look; every style below uses them. */
.sy-tabs {
  --sy-ink: #3a2614;        /* active tab text, headings */
  --sy-muted: #7a6248;      /* inactive tab text */
  --sy-accent: #b4532a;     /* terracotta: active marker */
  --sy-line: #d3bf98;       /* borders */
  --sy-panel: #fbf7ee;      /* content panel */
  --sy-tab-bg: #efe5d0;     /* inactive tab fill */
  --sy-radius: 8px;
  margin: 0 0 1.5em;
}

/* ---------- Shared ---------- */
.sy-tabs__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.sy-tabs__list::-webkit-scrollbar { height: 4px; }
.sy-tabs__list::-webkit-scrollbar-thumb { background: var(--sy-line); border-radius: 2px; }

.sy-tabs__tab {
  flex: none;
  margin: 0;
  padding: 12px 22px;
  font: inherit;
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--sy-muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color .15s, background-color .15s, border-color .15s;
}
.sy-tabs__tab:hover { color: var(--sy-ink); }
.sy-tabs__tab:focus-visible { outline: 2px solid var(--sy-accent); outline-offset: -2px; }
.sy-tabs__tab[aria-selected="true"] { color: var(--sy-ink); }

.sy-tabs__panel { display: none; }
.sy-tabs__panel.is-active { display: block; animation: sy-tabs-in .25s ease-out; }
.sy-tabs__body { padding: clamp(14px, 2.5vw, 28px); }
.sy-tabs__body > :first-child { margin-top: 0; }
.sy-tabs__body > :last-child { margin-bottom: 0; }
.sy-tabs__body img { max-width: 100%; height: auto; display: block; border-radius: calc(var(--sy-radius) - 3px); }

@keyframes sy-tabs-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sy-tabs__panel.is-active { animation: none; } }

/* ---------- Folder look: tabs like file-folder tabs on a panel ---------- */
.sy-tabs--folder .sy-tabs__list { gap: 6px; padding: 0 10px; }
.sy-tabs--folder .sy-tabs__tab {
  background: var(--sy-tab-bg);
  border: 1px solid var(--sy-line);
  border-bottom: 0;
  border-radius: var(--sy-radius) var(--sy-radius) 0 0;
  box-shadow: inset 0 3px 0 transparent;
  position: relative;
  top: 1px;
}
.sy-tabs--folder .sy-tabs__tab:hover { background: #f6eedd; }
.sy-tabs--folder .sy-tabs__tab[aria-selected="true"] {
  background: var(--sy-panel);
  box-shadow: inset 0 3px 0 var(--sy-accent);
  font-weight: 600;
}
.sy-tabs--folder .sy-tabs__panels {
  background: var(--sy-panel);
  border: 1px solid var(--sy-line);
  border-radius: var(--sy-radius);
  box-shadow: 0 2px 10px rgba(58, 38, 20, .08);
}

@media (max-width: 600px) {
  .sy-tabs__tab { padding: 11px 16px; }
}