/* Explicit GS constrained rebrand; Metronic component CSS remains unchanged. */
#gs-exam-locator {
  --primary: #1EA9EC;
  --primary-foreground: #1C1C1C;
  --foreground: #1C1C1C;
  --card-foreground: #1C1C1C;
  --secondary-foreground: #4A4A4A;
  --accent: #EAF7FD;
  --accent-foreground: #1C1C1C;
  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
}
/* The blog may style headings and inputs; retain the native font in this tool. */
#gs-exam-locator :is(h2, h3, button, input, select) { font-family: inherit; }
/* Enhancement visibility must also override template display declarations. */
#gs-exam-locator [hidden] { display: none !important; }
/* Approved wordmark replacement: intrinsic dimensions remain on the image. */
[data-gs-preview] #header img { height: 32px; width: auto; max-width: 100%; }
/* Native link shape; official dark text avoids blue-on-white AA failures. */
#gs-exam-locator .kt-link, #gs-exam-locator .kt-link:hover { color: var(--foreground); }
/* Approved restrained GS accents; native component geometry is inherited. */
#gs-exam-locator #filters { background-color: var(--accent); }
#gs-exam-locator #filters .kt-btn[type="reset"] {
  border-color: #1887BC;
  color: var(--foreground);
}
#gs-exam-locator #filters .kt-btn[type="reset"]:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
#gs-exam-locator .kt-btn[href="https://app.grile-specialitate.ro/login"] {
  background-color: var(--primary);
  border-color: #1887BC;
  color: var(--primary-foreground);
}
#gs-exam-locator .kt-btn[href="https://app.grile-specialitate.ro/login"]:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}
/* Accessibility additions do not restyle the inherited component geometry. */
#gs-exam-locator :focus-visible { outline: 2px solid #1887BC; outline-offset: 3px; }
[data-gs-preview] .skip-link { position: fixed; top: -100px; left: 24px; z-index: 100; padding: 12px; background: #EAF7FD; color: #1C1C1C; }
[data-gs-preview] .skip-link:focus { top: 12px; }
/* Approved onUI boundary: native cards sit on a restrained GS editorial surface. */
#gs-exam-locator #gs-exam-editorial { background-color: var(--accent); }
#gs-exam-locator #gs-preparation .kt-card-header {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
#gs-exam-locator #gs-preparation .kt-card-title { color: var(--primary-foreground); }
/* Documented accessibility exception: native dense controls need touch space. */
@media (max-width: 767px) {
  #gs-exam-locator .kt-btn, #gs-exam-locator .kt-input, #gs-exam-locator .kt-select { min-height: 44px; }
  #gs-exam-locator .kt-input > input { min-height: 42px; }
}
/* Narrow-screen reflow: preserve the official wordmark's aspect ratio. */
@media (max-width: 374px) {
  [data-gs-preview] #header img { max-width: 160px; height: auto; }
  #gs-exam-locator #result-list .kt-table-auto td:first-child { min-width: 80px; }
  #gs-exam-locator #result-list .kt-table-auto td:last-child { overflow-wrap: anywhere; }
}
/* Metronic FullCalendar anatomy: native card/toolbar, token borders and day grid.
   Lightweight read-only month selector; no FullCalendar runtime is needed. */
#gs-exam-locator .exam-view-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
#gs-exam-locator .calendar-view-toggle { display: flex; gap: 0.5rem; }
#gs-exam-locator .calendar-view-toggle [aria-pressed="true"] { background: var(--accent); border-color: #1887BC; }
#gs-exam-locator #exam-layout { min-width: 0; }
#gs-exam-locator #exam-layout.calendar-view { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
#gs-exam-locator #results, #gs-exam-locator #exam-calendar { min-width: 0; }
#gs-exam-locator #exam-calendar { position: sticky; top: 1rem; }
#gs-exam-locator .calendar-toolbar { min-height: 4rem; padding: 1rem; flex-wrap: wrap; gap: 0.75rem; }
#gs-exam-locator .calendar-arrows { display: flex; gap: 0.5rem; }
#gs-exam-locator .calendar-content { padding: 1rem; display: flex; flex-direction: column; align-items: start; gap: 1rem; }
#gs-exam-locator .calendar-grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
#gs-exam-locator .calendar-grid th { padding: 0.5rem 0; background: var(--muted, #f5f5f5); font-size: 0.75rem; font-weight: 500; }
#gs-exam-locator .calendar-grid abbr { text-decoration: none; }
#gs-exam-locator .calendar-grid td, #gs-exam-locator .calendar-grid th { border: 1px solid var(--border, #e5e7eb); text-align: center; }
#gs-exam-locator .calendar-grid td { padding: 0; }
#gs-exam-locator .calendar-day, #gs-exam-locator .calendar-blank { display: flex; min-height: 3.25rem; width: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem; }
#gs-exam-locator .calendar-day { cursor: pointer; color: var(--foreground); background: var(--background, #fff); border: 0; font-size: 0.875rem; }
#gs-exam-locator .calendar-day-number { font-weight: 500; }
#gs-exam-locator .calendar-day-count { font-size: 0.6875rem; color: var(--secondary-foreground); }
#gs-exam-locator .calendar-day[data-has-entries="true"] { background: var(--accent); }
#gs-exam-locator .calendar-day:hover:not(:disabled) { background: #D4EFFB; }
#gs-exam-locator .calendar-day[aria-pressed="true"] { background: var(--primary); box-shadow: inset 0 0 0 2px #1887BC; }
#gs-exam-locator .calendar-day[aria-pressed="true"] .calendar-day-count { color: var(--foreground); }
#gs-exam-locator .calendar-day:disabled { color: #767676; background: var(--muted, #f5f5f5); cursor: default; }
#gs-exam-locator .calendar-day:focus-visible { position: relative; outline-offset: -3px; z-index: 1; }
#gs-exam-locator .calendar-content > .kt-btn:disabled { opacity: 0.5; }
#gs-exam-locator #selected-day-names { line-height: 1.75; overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  #gs-exam-locator #exam-layout.calendar-view { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  #gs-exam-locator #exam-calendar { position: static; }
}
@media (max-width: 374px) {
  #gs-exam-locator .calendar-content, #gs-exam-locator .calendar-toolbar { padding: 0.75rem; }
  #gs-exam-locator .calendar-grid th { font-size: 0.6875rem; }
}
