/* Wonder Flavours file archive | September 2026
   Replace /_h5ai/public/ext/wf-horizon.css with this entire file.
   Uses the existing h5ai structure, icons, controls and configuration.
*/

:root {
  --wf-purple: #734393;
  --wf-purple-dark: #512c6a;
  --wf-blue: #0071f3;
  --wf-blue-dark: #005ecb;
  --wf-lavender: #f3edf8;
  --wf-ink: #26232a;
  --wf-muted: #66616b;
  --wf-border: #e4e1e6;
  --wf-hover: #f7f5f9;
  --wf-surface: #ffffff;
  --wf-width: 90rem;
  --wf-gutter: 16px;
  --wf-topbar-height: 56px;
  --wf-font-family: Helvetica, Arial, sans-serif;
  --wf-search-border: rgba(115, 67, 147, 0.28);
}

html, body, #root { background: var(--wf-surface); }

#root, input, select, button, textarea {
  font-family: var(--wf-font-family) !important;
  color: var(--wf-ink);
  font-size: 16px;
}

#root { line-height: 1.5; }
::selection { color: #fff; background: var(--wf-purple); text-shadow: none; }
input, textarea { caret-color: var(--wf-purple); }
a, a:active, a:visited { color: var(--wf-purple); }
a:hover, a:visited:hover { color: var(--wf-purple-dark); }

/* Inset outlines stay visible inside h5ai's clipped toolbar and file rows. */
#root a:focus-visible,
#root button:focus-visible,
#root input:focus-visible,
#root select:focus-visible,
#root [tabindex]:focus-visible {
  outline: 2px solid var(--wf-purple);
  outline-offset: -2px;
}

/* Existing toolbar and breadcrumbs. */
#topbar {
  height: var(--wf-topbar-height);
  background: #fff;
  border-bottom: 1px solid var(--wf-border);
  box-shadow: none;
}
#toolbar, #flowbar, #crumbbar { height: var(--wf-topbar-height); }
#toolbar .tool img { width: 24px; height: 24px; padding: 16px 12px; }
#toolbar .tool:hover, #backlink:hover { background: var(--wf-hover); }
#crumbbar { padding: 0 8px; font-size: 15px; }
#crumbbar a, #crumbbar a:visited { color: var(--wf-ink); }
#crumbbar a:hover { color: var(--wf-purple); }
#crumbbar a.active { font-weight: 600; }
/* h5ai retains visited descendants after the current folder. */
#crumbbar .crumb.active ~ .crumb { display: none; }
#crumbbar .label { line-height: var(--wf-topbar-height); padding: 0 8px; }
#crumbbar .sep { width: 20px; height: 20px; padding: 18px 0; }
#crumbbar .hint { width: 20px; height: 20px; padding-top: 20px; }
#search input, #filter input {
  box-sizing: border-box;
  width: min(280px, 42vw);
  height: var(--wf-topbar-height);
  line-height: var(--wf-topbar-height);
  font-size: 16px;
  color: var(--wf-ink);
}
#search input::placeholder, #filter input::placeholder,
#search.pending input, #filter.pending input { color: var(--wf-muted); opacity: 1; }
#backlink {
  box-sizing: border-box;
  height: var(--wf-topbar-height);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#backlink div { line-height: 1; }
#backlink img { display: block; height: 32px; width: auto; max-width: 112px; object-fit: contain; }

/* One shared content edge, without enclosing panels. */
#content-header, #content-footer, #wf-archive-search,
#view.view-details, #view.view-grid, #view.view-icons,
#fallback table {
  box-sizing: border-box;
  width: calc(100% - var(--wf-gutter) * 2);
  max-width: var(--wf-width);
  margin-inline: auto;
  padding: 0;
}
#content-header { margin-top: 32px; margin-bottom: 24px; }
#content-footer {
  width: 100%;
  max-width: none;
  margin-top: 24px;
  margin-bottom: 0;
  padding: 16px 0;
  background: var(--wf-lavender);
}
#content-header .wf-h5ai-header h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--wf-ink);
}
#content-header .wf-h5ai-header p {
  max-width: 72ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--wf-muted);
}
#content-header .wf-h5ai-header .wf-h5ai-help { margin-top: 8px; font-size: 14px; }
#content-header .wf-h5ai-header .wf-h5ai-language-note { margin-top: 8px; font-size: 14px; color: var(--wf-ink); }
#content-header a, #content-header a:visited,
#content-footer a, #content-footer a:visited { color: var(--wf-purple); }
#content-header a { text-decoration: underline; text-underline-offset: 3px; }
#content-header a:hover, #content-footer a:hover { color: var(--wf-purple-dark); }
.wf-h5ai-footer {
  box-sizing: border-box;
  width: calc(100% - var(--wf-gutter) * 2);
  max-width: var(--wf-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
#content-footer .wf-h5ai-footer p { margin: 0; font-size: 14px; color: var(--wf-muted); }
.wf-h5ai-footer__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
#content-footer .wf-h5ai-footer__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
}
#content-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The original h5ai search control is moved here by wf-title.js. */
#wf-archive-search { margin-top: 0; margin-bottom: 24px; }
#wf-archive-search > label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wf-ink);
}
#root #wf-archive-search #search {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 520px;
  min-height: 48px;
  border: 1px solid #938b9a;
  border-radius: 4px;
  background: #fff;
  cursor: text;
}
#root #wf-archive-search #search:focus-within {
  outline: 2px solid var(--wf-purple);
  outline-offset: 2px;
}
#root #wf-archive-search #search > img {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0 12px;
  padding: 0;
  pointer-events: none;
}
#root #wf-archive-search #search input {
  box-sizing: border-box;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  height: auto;
  padding: 10px 8px 10px 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 24px;
  color: var(--wf-ink);
}
#root #wf-archive-search #search input:focus-visible { outline: none; }
#root #wf-archive-search .wf-search-clear {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--wf-purple);
  font-size: 14px;
  cursor: pointer;
}
#root #wf-archive-search .wf-search-clear[hidden] { display: none; }
#root #wf-archive-search .wf-search-clear:hover { background: var(--wf-hover); color: var(--wf-purple-dark); }

/* Details view. h5ai injects !important size rules after extension CSS.
   The #root scope deliberately outranks them only in the details view,
   keeping filenames, row height and metadata usable at every saved size. */
#view.view-details { margin-top: 0; margin-bottom: 0; border-top: 1px solid var(--wf-border); }
#view.view-details .header {
  min-height: 44px;
  background: #fff;
  border-bottom: 1px solid var(--wf-border);
  border-radius: 0;
}
#root #view.view-details .header .label,
#root #view.view-details .header .date,
#root #view.view-details .header .size {
  margin: 0 !important;
  padding: 0;
  line-height: 44px !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--wf-muted);
  opacity: 1;
}
#root #view.view-details .header .label { padding-left: 44px; }
#view.view-details .header .sort { width: 16px; height: 16px; padding: 0 4px; top: -1px; }
#view.view-details .header .label:hover,
#view.view-details .header .date:hover,
#view.view-details .header .size:hover { color: var(--wf-purple); }

#view.view-details .item {
  min-height: 56px;
  border-bottom: 1px solid var(--wf-border);
  border-radius: 0;
  background: #fff;
}
#view.view-details .item:last-child { border-radius: 0; }
#view.view-details .item:hover { background: var(--wf-hover); color: var(--wf-ink); box-shadow: none; }
#root #view.view-details .item > a {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 16px;
  align-content: center;
  align-items: center;
  min-height: 56px;
  padding: 12px 4px;
  color: inherit;
}
#root #view.view-details .item .label {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0 !important;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5 !important;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
#root #view.view-details .item.folder:not(.folder-parent) .label { font-weight: 500; }
#root #view.view-details .item .square {
  position: static;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px !important;
  height: 24px !important;
  padding: 0;
  background: none;
  border-radius: 0;
  transform: none;
}
#root #view.view-details .item .square img,
#root #view.view-details .item .square .thumb {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#root #view.view-details .item .date,
#root #view.view-details .item .size {
  position: static;
  width: auto;
  padding: 0;
  font-size: 13px;
  line-height: 1.5 !important;
  font-variant-numeric: tabular-nums;
  color: var(--wf-muted);
}
#root #view.view-details .item .date,
#root #view.view-details .header .date { display: none; }
#root #view.view-details .item .size { display: block; grid-column: 2; grid-row: 2; margin-top: 3px; text-align: left; }
#root #view.view-details .item .size:empty { display: none; }
#root #view.view-details .header .size { display: none; }

/* Existing image and icon modes keep their native size controls. */
#view.view-grid, #view.view-icons { margin-top: 0; margin-bottom: 0; }
#view.view-grid .item, #view.view-icons .item { border-radius: 4px; box-shadow: none; }
#view.view-grid .item:hover, #view.view-icons .item:hover { background: var(--wf-hover); color: var(--wf-ink); box-shadow: none; }
#view.view-icons .landscape img, #view.view-grid .square img { object-fit: contain; box-shadow: none; }
#view.view-grid .label, #view.view-icons .label { font-weight: 400; }
#view #view-hint, #view .no-match { margin-top: 24px; font-size: 16px; font-weight: 400; color: var(--wf-muted); }

/* Selection, menus and previews remain native h5ai features. */
#view .selector,
#view .item.selected:not(.selecting), #view .item.selecting:not(.selected),
#view .item.selected:not(.selecting):hover, #view .item.selecting:not(.selected):hover {
  color: #fff;
  background: var(--wf-purple);
}
#root #view .item.selected:not(.selecting) .label,
#root #view .item.selected:not(.selecting) .date,
#root #view .item.selected:not(.selecting) .size,
#root #view .item.selecting:not(.selected) .label,
#root #view .item.selecting:not(.selected) .date,
#root #view .item.selecting:not(.selected) .size { color: #fff; }
#selection-rect { border-color: var(--wf-purple); background: rgba(115, 67, 147, 0.12); }
.el-button { background: var(--wf-blue); border-radius: 999px; }
.el-button:hover { background: var(--wf-blue-dark); box-shadow: none; }
#root .el-button:focus-visible { outline-color: #fff; outline-offset: -4px; }
.el-input { border: 1px solid var(--wf-muted); border-radius: 4px; background: #fff; }
#cm-overlay .cm-panel { border-radius: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
#cm-overlay .cm-entry:hover { color: var(--wf-purple); background: var(--wf-hover); }
#pv-content-img { background-color: #fff; background-image: none; }
#pv-content-img.loading { background: #fff; }
#notification { background: var(--wf-purple); }

/* Server-rendered fallback stays a readable table if JavaScript is off. */
#fallback { max-width: none; padding: 0; }
#fallback table { margin-top: 24px; border-collapse: collapse; }
#fallback th, #fallback td { padding: 12px 8px; border-bottom: 1px solid var(--wf-border); }
#fallback th { color: var(--wf-muted); font-size: 13px; }
#fallback td { color: var(--wf-ink); font-size: 15px; }
#fallback td.fb-n { overflow-wrap: anywhere; }
#fallback td.fb-n a { display: inline-block; padding-block: 6px; }

@media (min-width: 701px) {
  :root { --wf-gutter: 40px; }
  #content-header { margin-top: 40px; margin-bottom: 24px; }
  #content-header .wf-h5ai-header h1 { font-size: 28px; }
  .wf-h5ai-footer { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  #root #view.view-details .item > a { grid-template-columns: 24px minmax(0, 1fr) 80px; }
  #root #view.view-details .item .square { grid-row: 1; }
  #root #view.view-details .item .size { grid-column: 3; grid-row: 1; text-align: right; margin-top: 0; }
  #root #view.view-details .header .label { margin-right: 100px !important; }
  #root #view.view-details .header .size { display: block; right: 4px; width: 80px; text-align: right; }
}

@media (min-width: 1001px) {
  #root #view.view-details .item > a { grid-template-columns: 24px minmax(0, 1fr) 160px 80px; }
  #root #view.view-details .item .date { display: block; grid-column: 3; grid-row: 1; text-align: right; }
  #root #view.view-details .item .size { grid-column: 4; }
  #root #view.view-details .header .label { margin-right: 276px !important; }
  #root #view.view-details .header .date { display: block; right: 100px; width: 160px; text-align: right; }
}

@media (max-width: 700px) {
  #topbar { height: auto; flex-wrap: wrap; }
  #toolbar { flex: 0 0 auto; }
  #flowbar { order: 100; flex-basis: 100%; height: 44px; border-top: 1px solid var(--wf-border); }
  #crumbbar { height: 44px; padding: 0 12px; }
  #crumbbar .label { line-height: 44px; }
  #crumbbar .sep { padding: 12px 0; }
  #crumbbar .hint { padding-top: 14px; }
  #backlink { margin-left: auto; padding-inline: 16px; }
  #search input, #filter input { width: calc(100vw - 232px); min-width: 80px; padding-right: 4px; }
  #fallback .fb-d { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #root *, #root *::before, #root *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  #wf-archive-search { display: none; }
  #content-header, #content-footer, #view.view-details, #fallback table { width: 100%; max-width: none; }
  #content { overflow: visible; }
  #content-footer .wf-h5ai-footer__links { display: none; }
  #content-footer { background: transparent; padding: 0; margin-bottom: 32px; }
  .wf-h5ai-footer { width: 100%; max-width: none; }
  #view.view-details .item { break-inside: avoid; }
}

/* v10: Horizon-related archive shell. h5ai scrolls #content independently,
   so the topbar remains visible without another fixed-position layer. */
#root.wf-branded, #root.wf-branded input, #root.wf-branded button, #root.wf-branded select { font-family: var(--wf-font-family) !important; }
.wf-branded #topbar { height: auto; min-height: 80px; display: block; }
#wf-header-inner, #wf-folder-navigation {
  box-sizing: border-box;
  width: calc(100% - var(--wf-gutter) * 2);
  max-width: var(--wf-width);
  margin-inline: auto;
}
#wf-header-inner { display: flex; align-items: center; gap: 32px; min-height: 80px; padding-block: 8px; }
.wf-brand { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.wf-branded #backlink { order: 0; flex: none; height: auto; margin: 0; padding: 0; min-height: 44px; }
.wf-branded #backlink img { width: 152px; height: auto; aspect-ratio: 152 / 58; max-width: 152px; }
.wf-archive-name {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 44px;
  gap: 2px;
  max-width: 11.5rem;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--wf-ink) !important;
}
.wf-branded .wf-archive-name { text-decoration: none; }
.wf-archive-name__title { white-space: nowrap; }
.wf-archive-name:hover .wf-archive-name__title { text-decoration: underline; text-underline-offset: 3px; }
#root .wf-archive-name:focus-visible { outline-offset: 2px; }
.wf-contact, .wf-shop { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; white-space: nowrap; font-size: 16px; font-weight: 700; }
#root .wf-contact, #root .wf-shop { color: var(--wf-ink); text-decoration: none; }
#root .wf-contact:hover, #root .wf-shop:hover { color: var(--wf-purple); text-decoration: underline; text-underline-offset: 3px; }
.wf-shop > svg { flex: none; }
#wf-header-inner #wf-archive-search { flex: 1 1 520px; width: auto; max-width: 600px; margin: 0 auto; padding: 0; min-width: 0; }
#wf-header-inner #wf-archive-search > label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#root #wf-header-inner #wf-archive-search #search { max-width: none; border-color: var(--wf-search-border); border-radius: 999px; }
#root #wf-header-inner .wf-search-clear { border-radius: 999px; margin-right: 2px; }
#wf-folder-navigation { margin-top: 32px; margin-bottom: 8px; }
#wf-folder-title { font-size: 24px; font-weight: 700; line-height: 1.3; margin: 0 0 12px; color: var(--wf-ink); }
.wf-folder-controls { display: flex; align-items: center; min-width: 0; gap: 16px; }
.wf-branded #flowbar { order: 0; flex: 1 1 auto; min-width: 0; height: 44px; border: 0; }
.wf-branded #crumbbar { height: 44px; padding: 0; overflow-x: auto; white-space: nowrap; }
.wf-branded #crumbbar .label { line-height: 44px; padding-inline: 6px; }
.wf-branded #crumbbar .sep { padding-block: 12px; }
.wf-branded #crumbbar .hint { padding-top: 14px; }
.wf-branded #toolbar { order: 1; height: 44px; flex: 0 0 auto; }
.wf-branded #toolbar .tool img { width: 20px; height: 20px; padding: 12px; }
/* Native customization uses the initial response on the first navigation. */
.wf-branded #content-header { margin-top: 32px; margin-bottom: 24px; }
.wf-branded #content-header .wf-h5ai-header h1 { font-size: 26px; font-weight: 700; }
.wf-branded #content-header:has(.wf-h5ai-header) + #wf-folder-navigation { margin-top: 0; }
#wf-folder-title[hidden] { display: none; }
.wf-branded #wf-folder-title:is(h2) { font-size: 22px; }
.wf-branded #content { scrollbar-color: #b8a0c9 #fff; scrollbar-width: thin; }
@media (max-width: 749px) {
  :root { --wf-gutter: 16px; }
  #wf-header-inner { flex-wrap: wrap; gap: 8px 16px; padding-block: 8px 12px; }
  .wf-brand { gap: 12px; }
  .wf-branded #backlink img { width: 110px; height: auto; max-width: 110px; }
  .wf-archive-name { font-size: 14px; }
  #wf-header-inner #wf-archive-search { order: 3; flex-basis: 100%; max-width: none; }
  .wf-branded #flowbar { flex-basis: auto; }
  .wf-branded #content-header { margin-top: 24px; }
  .wf-branded #content-header .wf-h5ai-header h1 { font-size: 24px; }
  #wf-folder-navigation { margin-top: 24px; }
  #wf-folder-title { font-size: 22px; }
}
@media (max-width: 359px) {
  #wf-header-inner { column-gap: 12px; }
  .wf-brand { gap: 8px; }
}
@media print { .wf-branded #topbar, .wf-branded #toolbar { display: none; } }

/* v12: persistent search scope and compact, descriptive file navigation. */
.wf-search-context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; font-size: 12px; line-height: 1.4; color: var(--wf-muted); }
#wf-search-scope { flex: 1 1 170px; padding-block: 3px; }
.wf-search-scope-button { flex: 0 0 auto; min-height: 44px; border: 0; padding: 8px 2px; background: transparent; color: var(--wf-purple); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wf-search-scope-button:hover { color: var(--wf-purple-dark); }
.wf-search-scope-button[hidden], #wf-search-status[hidden], .wf-h5ai-header[hidden] { display: none; }
#wf-search-status { font-size: 13px; line-height: 1.4; color: var(--wf-ink); margin: 0; max-width: 65ch; }
.wf-branded #content-header.wf-compact-header { margin-block: 0; }
.wf-branded #content-header.wf-compact-header + #wf-folder-navigation { margin-top: 24px; }
#root #view .item .wf-file-detail { display: block; white-space: normal; font-size: 12px; line-height: 1.5; font-weight: 400; color: var(--wf-muted); margin-top: 3px; }
#root #view.view-grid .item .label, #root #view.view-icons .item .label { white-space: normal; overflow-wrap: anywhere; line-height: 1.4 !important; padding-block: 8px; }
.wf-branded #crumbbar .crumb { display: inline-block; }
.wf-branded #crumbbar .crumb.active ~ .crumb { display: none; }
.wf-branded #crumbbar .crumb.active .label { font-weight: 600; }
@media (max-width: 749px) {
  .wf-search-context { gap: 0 8px; }
  #wf-search-scope { flex-basis: 155px; }
}

/* v13: direct SDS bundle access and native preview controls. */
#wf-sds-bundle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-block: 0 12px; }
#wf-sds-bundle[hidden] { display: none; }
#wf-sds-bundle .wf-bundle-download {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--wf-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
#wf-sds-bundle .wf-bundle-download:hover { background: var(--wf-blue-dark); }
#wf-sds-bundle .wf-bundle-download:focus-visible { outline-color: #fff; outline-offset: -4px; }
#wf-bundle-size { min-width: 8.5em; font-size: 13px; color: var(--wf-muted); }
#pv-buttons button.bar-button { border: 0; border-radius: 0; background: transparent; color: #fff; padding: 0; font: inherit; }
#pv-buttons .bar-button { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; }
#pv-buttons .bar-button img { display: block; padding: 12px; }
#pv-buttons .bar-button:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: -3px; }
#pv-overlay.fullscreen #pv-bottombar:focus-within { opacity: 1; }

/* v14: language-only Horizon-style disclosure, with a native language select. */
.wf-branded #topbar { overflow: visible; }
#wf-header-inner { display: grid; grid-template-columns: auto minmax(200px, 1fr) auto auto auto; gap: 8px 24px; }
#wf-header-inner #wf-archive-search { width: 100%; }
.wf-brand { min-width: 0; }
.wf-archive-name__title { white-space: normal; overflow-wrap: anywhere; }
.wf-contact { margin-left: 0; }
#wf-language { position: relative; justify-self: end; font-size: 14px; }
#wf-language-summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding-inline: 4px; list-style: none; cursor: pointer; color: var(--wf-ink); font-size: 16px; font-weight: 700; }
#wf-language-summary::-webkit-details-marker { display: none; }
#wf-language-summary:hover { color: var(--wf-purple); }
#wf-language-summary:focus-visible { outline: 2px solid var(--wf-purple); outline-offset: -2px; border-radius: 4px; }
#wf-language[open] > summary > .wf-language-caret { transform: rotate(180deg); }
#wf-language-panel { position: absolute; z-index: 100; right: 0; top: calc(100% + 8px); box-sizing: border-box; width: 272px; max-width: calc(100vw - 32px); padding: 20px; background: #fff; border: 1px solid var(--wf-border); border-radius: 12px; box-shadow: 0 6px 20px rgb(38 35 42 / 12%); }
#wf-language-panel > label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.wf-language-control { position: relative; display: flex; align-items: center; }
.wf-language-control > svg { position: absolute; pointer-events: none; }
.wf-language-control > svg:first-child { left: 12px; }
.wf-language-control > svg:last-child { right: 12px; }
#root #wf-language-select { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 100%; min-height: 48px; margin: 0; padding: 10px 34px 10px 42px; border: 1px solid #b8a0c9; border-radius: 8px; background: #fff; color: var(--wf-ink); font-size: 16px; cursor: pointer; }
.wf-language-note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--wf-muted); }
.wf-search-context { font-size: 14px; }
#wf-search-status { font-size: 14px; }
@media (max-width: 1099px) {
  #wf-header-inner { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 16px; padding-block: 8px; }
  #wf-header-inner #wf-archive-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .wf-shop { display: none; }
}
@media (max-width: 600px) {
  #wf-header-inner { column-gap: 8px; }
  .wf-brand { flex-direction: column; align-items: flex-start; gap: 4px; }
  .wf-archive-name { min-height: 24px; font-size: 14px; }
  .wf-contact { max-width: 7em; white-space: normal; line-height: 1.4; }
}
@media (max-width: 359px) {
  .wf-contact { max-width: 5rem; }
}

#wf-language-summary > svg { flex: none; }
.no-js #fallback { max-width: 1280px; margin: 24px auto; padding: 0 20px; }
.wf-fallback-languages { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0; }
.wf-fallback-languages a { padding-block: 8px; }
