#language-switch{display:flex;flex-shrink:0;align-items:center;gap:3px;padding:3px;border:1px solid #c6d4cb;border-radius:24px;background:#fff}
#language-switch button{min-height:40px;padding:8px 12px;border:0;border-radius:20px;background:transparent;color:#244433;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
#language-switch button[aria-pressed="true"]{background:#133d2a;color:#fff}
#language-switch button:focus-visible{outline:3px solid #6aab34;outline-offset:2px}
@media(max-width:600px){body>header{gap:8px}#language-switch button{padding:8px 10px;font-size:12px}}

.field-options { display:flex; gap:4px; padding:4px; margin:0 0 20px; border-radius:12px; background:var(--paper); }
.field-options button { flex:1; min-height:44px; border:0; border-radius:8px; background:transparent; color:var(--ink); }
.field-options button[aria-pressed="true"] { background:var(--green); color:white; }

.slot.half-occupied {
  background: linear-gradient(to right, #a9d9ad 50%, #fff 50%);
  color: #183d2b;
  border: 1px solid #859e87;
}
.slot.half-occupied small { display: block; margin-top: 2px; font-size: 12px; }
.slot.half-occupied:disabled { border-style: dashed; }
.slot.half-occupied.selected {
  background: linear-gradient(to right, #17482e 50%, #306943 50%);
  color: white;
  box-shadow: inset 0 0 0 2px #143923;
}
.field-rules-reader { width:min(92vw,38rem); max-height:85dvh; box-sizing:border-box; padding:0; border:0; border-radius:16px; color:var(--ink); overflow:hidden; }
.field-rules-reader[open] { display:flex; flex-direction:column; }
.field-rules-reader::backdrop { background:#10291fc4; }
.field-rules-reader > button { align-self:flex-start; margin:.75rem 1rem; flex:none; }
.field-rules-reader article { padding:0 1.25rem 1rem; overflow:auto; overscroll-behavior:contain; line-height:1.5; }
.field-rules-reader ul { padding-inline-start:1.3rem; }
.field-options .field-format { display:block; font-size:.875em; line-height:1.3; }

.header-tools { display: flex; align-items: center; gap: 6px; }
.field-location { position: relative; }
.field-location summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c6d4cb;
  border-radius: 50%;
  background: white;
  color: #133d2a;
  cursor: pointer;
  list-style: none;
}
.field-location summary::-webkit-details-marker { display: none; }
.field-location[open] summary { background: #edf4ea; }
.field-address {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: -68px;
  width: max-content;
  max-width: 85vw;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid #c6d4cb;
  border-radius: 12px;
  box-shadow: 0 4px 16px #133d2a22;
  background: white;
  color: #133d2a;
  text-decoration: none;
}
.map-action { text-decoration: underline; font-size: 14px; }


.field-rules-preview {
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--paper);
  color:var(--green);
  text-decoration:none;
  font-weight:700;
}
.field-rules-preview span:first-of-type { flex:1; }
.field-rules-preview:focus-visible { outline:3px solid var(--green); outline-offset:3px; }
.field-rules-reader { font:inherit; background:#fff; }
.field-rules-reader article > h2 { margin:8px 0 20px; font-size:24px; line-height:1.2; color:var(--green); }
.field-rules-reader .field-rules-highlights {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  list-style:none;
  padding:0;
  margin:0 0 20px;
}
.field-rules-highlights li {
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--paper);
}
.field-rules-highlights li:first-child { grid-column:1 / -1; border-left:4px solid var(--green); }
.field-rules-highlights h3 { margin:0 0 6px; color:var(--green); font:inherit; font-weight:700; }
.field-rules-highlights p { margin:0; font-size:14px; line-height:1.5; color:var(--muted); }
.field-rules-reader details { border-top:1px solid var(--line); }
.field-rules-reader details > summary { padding:16px 0; color:var(--green); font-weight:700; cursor:pointer; }
@media(max-width:380px) {
  .field-rules-reader .field-rules-highlights { grid-template-columns:1fr; }
}
