/* Pamatstili redaktoriem un pārlūkiem bez CSS Grid atbalsta. */
html { background: #fff; color: #24332f; font: 100%/1.6 Arial, sans-serif; }
body { margin: 0; }
h1, h2, h3, h4 { color: #146b62; font-family: "Trebuchet MS", Arial, sans-serif; line-height: 1.16; }
h1 { font-size: 2em; }
h2 { font-size: 1.4em; }
h3 { font-size: 1.15em; }
a { color: #146b62; text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }
.line-icon { vertical-align: middle; }
.wrap { padding: 0 16px; }
.masthead { border-top: 5px solid #146b62; border-bottom: 1px solid #a6c2b9; }
.identity { margin: 8px 0; }
.identity a { font-weight: bold; }
.nav ul { list-style: none; margin: 0 0 8px; padding: 0; }
.nav li { display: inline; margin-right: 12px; }
.document-section { margin: 12px 0; padding: 8px 12px; border: 1px solid #a6c2b9; }
.table { border-collapse: collapse; }
.table th, .table td { border: 1px solid #a6c2b9; padding: 4px 8px; }
.hero-address { font-style: normal; }
#jauns-logs { display: none; }

@supports (display: grid) {
/* Izkārtojums pārlūkiem ar CSS Grid atbalstu. */
* { box-sizing: border-box; }
html { background: #fff; color: #24332f; font: 100%/1.6 Arial, sans-serif; }
body { margin: 0; }
h1, h2, h3, h4 { color: #146b62; font-family: "Trebuchet MS", Arial, sans-serif; line-height: 1.16; }
h1 { margin: 0 0 .45em; font-size: 2.5rem; }
h2 { margin: 1.35em 0 .45em; font-size: 1.65rem; }
h3 { margin: 1.1em 0 .35em; font-size: 1.2rem; }
p, ul, ol, dl { margin: .4em 0 1em; }
a { color: #146b62; text-decoration: underline; text-underline-offset: .17em; }
a:hover { color: #24332f; }
a:focus, [tabindex]:focus, button:focus, input:focus { outline: 3px solid #24332f; outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
img { max-width: 100%; height: auto; border: 0; }
p, li, dd, td, th, a, h1, h2, h3 { overflow-wrap: anywhere; }
.wrap { width: auto; max-width: 72rem; margin: auto; padding: 0 1.5rem; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .6rem .9rem; background: #fff; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { background: #fff; border-top: .35rem solid #146b62; border-bottom: 1px solid #a6c2b9; }
.masthead .wrap { padding-top: .55rem; }
.identity { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; min-height: 5rem; }
.identity a { color: #146b62; font: bold 1.65rem/1.15 "Trebuchet MS", Arial, sans-serif; text-decoration: none; }
.identity a:hover, .nav a:hover { text-decoration: underline; }
.identity img { width: 4.75rem; flex: 0 0 auto; }
.home-identity { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .15rem 1rem; align-items: center; padding: .45rem 0; }
.home-title { margin: 0; }
.identity .home-title a { font: inherit; }
.identity-calendar { grid-area: 2 / 1; font-size: .97rem; line-height: 1.45; }
.identity-calendar p { margin: .15rem 0 0; }
.identity-logos { grid-area: 1 / 2 / 3 / 3; display: flex; align-items: center; gap: .55rem; }
.identity .municipality-logo { width: clamp(84px, 11vw, 152px); }
.identity-logos .school-logo { width: clamp(44px, 6vw, 76px); }
.masthead-controls { display: flex; align-items: center; gap: .4rem .8rem; padding: .2rem 0; }
.masthead-controls .nav { flex: 1; min-width: 0; }
.nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; padding: 0; margin: 0; list-style: none; }
.nav li { display: block; margin: 0; }
.nav a { display: inline-block; padding: .55rem .15rem; border-bottom: .2rem solid transparent; text-decoration: none; font-weight: bold; }
.nav a[aria-current="page"] { border-color: #146b62; }
.main { padding-top: 2.4rem; padding-bottom: 3.5rem; }
.main:focus { outline-offset: -3px; }
.lead { font-size: 1.15rem; max-width: 44rem; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: 2rem; background: #f1f5ef; border: 1px solid #a6c2b9; border-radius: 1rem; }
.hero-photo { display: block; width: 100%; border-radius: .7rem; }
.hero-address { font-style: normal; line-height: 1.45; }
.hero-address strong { font-size: 1.2rem; }
.hero .button { margin: .3rem .65rem .35rem 0; }
.button { display: inline-block; padding: .63rem .95rem; background: #146b62; border: 2px solid #146b62; border-radius: .6rem; color: #fff; font-weight: bold; text-decoration: none; }
.button:hover { background: #24332f; border-color: #24332f; color: #fff; }
.button.secondary { background: #fff; color: #146b62; }
.button.secondary:hover { text-decoration: underline; }
.cards, .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.card, .gallery li { display: block; min-width: 0; padding: 1rem 1.15rem; border: 1px solid #a6c2b9; border-radius: .75rem; }
.card h3, .card h2 { margin: 0 0 .45em; }
.card p:last-child, .gallery p:last-child { margin-bottom: 0; }
.home-shortcuts { grid-auto-rows: 1fr; }
.home-shortcuts .card { height: 100%; }
.hero .line-icon, .home-shortcuts .line-icon, .main .links .line-icon { margin-right: .2em; }
.useful-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; list-style: none; padding: 0; }
.useful-link { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .5rem; height: 100%; min-height: 7rem; padding: .8rem; border: 1px solid #a6c2b9; border-radius: .75rem; text-align: center; }
.useful-link img { width: min(9rem,100%); height: 3rem; object-fit: contain; }
.gallery a { display: block; }
.gallery img { display: block; margin: .2rem 0 .55rem; border-radius: .3rem; }
.gallery .caption { display: block; }
.notice { background: #f1f5ef; border-left: .3rem solid #146b62; padding: .75rem 1rem; max-width: 56rem; }
.links li, .documents li { margin: .45rem 0; }
.document-section { max-width: 60rem; margin: 1rem 0; padding: .9rem 1rem; border: 1px solid #a6c2b9; border-left: .25rem solid #146b62; border-radius: .5rem; }
.document-section h2 { margin-top: 0; }
.document-section > :last-child { margin-bottom: 0; }
.album-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; padding: 0; }
.section-index { display: flex; gap: .4rem 1.25rem; flex-wrap: wrap; list-style: none; padding: 0; }
.details, .facts { max-width: 54rem; }
.details dt, .facts dt { font-weight: bold; }
.details dd, .facts dd { margin: 0 0 .55rem; }
.table { border-collapse: collapse; margin: .7rem 0 1.2rem; width: 100%; max-width: 60rem; }
.table caption { text-align: left; font-weight: bold; padding: .3rem 0; }
.table th, .table td { border: 1px solid #a6c2b9; text-align: left; padding: .35rem .55rem; }
.table .programme-code { white-space: nowrap; overflow-wrap: normal; }
.class-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; max-width: 60rem; }
.table thead th { background: #146b62; color: #fff; }
.table tbody tr:nth-child(even) { background: #f1f5ef; }
.footer { background: #f1f5ef; border-top: 1px solid #a6c2b9; padding: 1.1rem 0; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; align-items: baseline; justify-content: space-between; }
.footer p { margin: 0; }
.footer ul { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 47em) {
  .wrap { padding-left: 1rem; padding-right: 1rem; }
  .main { padding-top: 1.6rem; padding-bottom: 2rem; }
  .hero { grid-template-columns: 1fr; gap: 1rem; padding: 1.1rem; }
  .cards, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .useful-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .class-groups { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}
@media (max-width: 32em) {
  .identity a { font-size: 1.35rem; }
  .identity img { width: 3.5rem; }
  .nav ul { gap: .2rem .8rem; }
  .nav a { padding-top: .45rem; padding-bottom: .45rem; }
  .cards, .gallery { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.45rem; }
  .table th, .table td { padding: .26rem .28rem; }
}
.image-link { display: inline-block; vertical-align: top; min-width: 24px; min-height: 24px; margin: .3rem .35rem .35rem 0; max-width: 100%; }
.image-link img { display: block; }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
#jauns-logs { display: inline; }
.line-icon {
  display: inline-block; width: 1.25rem; height: 1.25rem; vertical-align: -.25em; flex: 0 0 auto;
}
:root {
  --icon-black: brightness(0);
  --icon-white: brightness(0) invert(1);
  --icon-yellow: brightness(0) invert(1) sepia(1) saturate(10);
}
.button:not(.secondary) .line-icon { filter: var(--icon-white); }
.new-window-icon { display: inline-block; position: relative; width: .85em; height: .85em; vertical-align: -.05em; }
.new-window-icon::before, .new-window-icon::after { content: ""; position: absolute; }
.new-window-icon::before { top: .06em; right: .05em; width: .42em; height: .42em; border-top: .09em solid; border-right: .09em solid; }
.new-window-icon::after { top: .39em; left: .02em; width: .8em; height: .09em; background: currentColor; transform: rotate(-45deg); }
.schedule-scroll, .programme-scroll { max-width: 100%; overflow-x: auto; margin: .7rem 0 1.2rem; }
.schedule-scroll:focus, .programme-scroll:focus { outline-offset: -3px; }
.programme-scroll .table { margin: 0; }
.schedule { margin: 0; min-width: 34rem; }
.schedule th, .schedule td { white-space: nowrap; }
.schedule td { min-width: 6.7rem; }
.contact-list { margin: 1rem 0 1.65rem; max-width: 53rem; }
.contact-row {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  column-gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #a6c2b9;
}
.contact-row dt { display: flex; align-items: baseline; gap: .6rem; font-weight: bold; }
.contact-row dt .line-icon { align-self: center; }
.contact-row dd { margin: 0; overflow-wrap: anywhere; }
.school-map { display: block; width: 100%; max-width: 35rem; height: 240px; border: 1px solid #a6c2b9; border-radius: .55rem; }

.masthead-controls .access-trigger { flex: 0 0 auto; }
.access-trigger, .access-panel button {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem;
  padding: .5rem .75rem; border: 1px solid #146b62; border-radius: .5rem;
  background: #fff; color: #146b62; font: inherit; font-weight: bold;
  text-align: left; cursor: pointer; max-width: 100%; overflow-wrap: anywhere;
}
.access-trigger[aria-expanded="true"], .access-trigger:hover, .access-panel button:hover { background: #f1f5ef; }
.access-panel {
  margin: .5rem 0 1rem auto; padding: 1rem;
  max-width: 38rem; background: #f1f5ef;
  border: 1px solid #a6c2b9; border-radius: .85rem;
}
.access-panel-heading { display: flex; flex-wrap: wrap; gap: .45rem 1rem; align-items: center; justify-content: space-between; }
.access-panel-heading h2 { margin: 0; font-size: 1.25rem; }
.access-panel fieldset { min-width: 0; padding: 0; margin: .9rem 0 1rem; border: 0; }
.access-panel legend { font-weight: bold; padding: 0; margin: 0 0 .4rem; }
.access-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.access-contrasts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.access-option {
  display: flex; align-items: center; gap: .4rem; border: 1px solid #146b62;
  border-radius: .42rem; padding: .42rem .6rem; min-height: 2.75rem; max-width: 100%;
  background: #fff; color: #24332f; cursor: pointer; overflow-wrap: anywhere;
}
.access-option input { margin: 0; width: 1rem; height: 1rem; flex: 0 0 auto; accent-color: #146b62; }
.access-option:focus-within { outline: 2px solid #146b62; outline-offset: 2px; }
.access-white-black { background: #000; color: #fff; }
.access-black-yellow { background: #ffec55; color: #000; }
.access-yellow-black { background: #000; color: #ffec55; }
.access-lens {
  position: fixed; z-index: 6; inset: auto 1rem 1rem; max-width: 54rem;
  margin: auto; padding: .6rem .85rem; border: 2px solid #146b62; border-radius: .5rem;
  background: #fff; color: #24332f; font-size: 1.4rem; line-height: 1.3;
  overflow-wrap: anywhere; pointer-events: none;
}
.access-lens.at-top { inset: 1rem 1rem auto; }
.access-shade { position: fixed; z-index: 5; left: 0; right: 0; background: rgba(0,0,0,.28); pointer-events: none; }
.access-shade.top { top: 0; }
.access-shade.bottom { bottom: 0; }
[data-font="150"] { font-size: 150%; }
[data-font="200"] { font-size: 200%; }
[data-contrast="white-black"] { --access-bg: #000; --access-fg: #fff; --icon-fg: var(--icon-white); --icon-bg: var(--icon-black); color-scheme: dark; }
[data-contrast="black-yellow"] { --access-bg: #ffec55; --access-fg: #000; --icon-fg: var(--icon-black); --icon-bg: var(--icon-yellow); color-scheme: light; }
[data-contrast="yellow-black"] { --access-bg: #000; --access-fg: #ffec55; --icon-fg: var(--icon-yellow); --icon-bg: var(--icon-black); color-scheme: dark; }
[data-contrast]:not([data-contrast="normal"]),
[data-contrast]:not([data-contrast="normal"]) :is(body, .masthead, .hero, .card, .gallery li, .notice, .document-section, .useful-link, .footer, .table tbody tr, .skip, .access-panel, .access-panel button, .access-trigger, .access-lens) {
  background: var(--access-bg); color: var(--access-fg); border-color: var(--access-fg);
}
[data-contrast]:not([data-contrast="normal"]) :where(h1, h2, h3, h4, a) { color: var(--access-fg); }
[data-contrast]:not([data-contrast="normal"]) :is(.button, .table thead th) { background: var(--access-fg); color: var(--access-bg); border-color: var(--access-fg); }
[data-contrast]:not([data-contrast="normal"]) .line-icon { filter: var(--icon-fg); }
[data-contrast]:not([data-contrast="normal"]) .button .line-icon { filter: var(--icon-bg); }
[data-contrast]:not([data-contrast="normal"]) :is(.table td, .contact-row, .access-option, .school-map) { border-color: var(--access-fg); }
[data-contrast]:not([data-contrast="normal"]) .nav a[aria-current="page"] { border-color: var(--access-fg); }
[data-contrast]:not([data-contrast="normal"]) :is(a, [tabindex], button, input):focus,
[data-contrast]:not([data-contrast="normal"]) .access-option:focus-within {
  outline-color: var(--access-fg); box-shadow: 0 0 0 3px var(--access-bg);
}
[data-contrast]:not([data-contrast="normal"]) :is(.identity img,.useful-link img) { background: #fff; border-radius: .3rem; }

@media (max-width: 54em) {
  .masthead-controls .nav ul { gap: .15rem .65rem; }
}
@media (max-width: 36em) {
  .masthead-controls { align-items: start; }
  .masthead-controls .nav a { padding-top: .28rem; padding-bottom: .28rem; }
  .masthead-controls .access-trigger { padding: .45rem; min-width: 2.75rem; justify-content: center; }
  .access-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .home-identity { column-gap: .55rem; }
  .identity-calendar { grid-column: 1 / -1; }
  .identity-logos { grid-row: 1; }
  [data-font="200"] .home-identity { grid-template-columns: minmax(0,1fr); }
  [data-font="200"] .identity-logos { grid-area: 3 / 1; }
  [data-font="200"] .useful-links { grid-template-columns: 1fr; }
}
@media (min-width: 36.01em) and (max-width: 54em) {
  [data-font="200"] .masthead-controls { align-items: start; }
  [data-font="200"] .masthead-controls .access-trigger { padding: .45rem; min-width: 2.75rem; justify-content: center; }
  [data-font="200"] .access-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

@media (max-width: 32em) {
  .contact-row { grid-template-columns: 1fr; row-gap: .25rem; }
  .contact-row dd { padding-left: 1.85rem; }
  .access-panel { padding: .65rem; }
  .access-contrasts { grid-template-columns: 1fr; }
  .access-options .access-option { min-width: 0; }
}

}
