:root {
  --navy: #032856;
  --blue: #06a6eb;
  --green: #00d894;
  --pink: #ff2d6f;
  --orange: #ff8618;
  --yellow: #ffc41f;
  --muted: #52657b;
  --line: #d7e5ee;
  --soft: #f2fbff
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--navy)
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 5vw;
  background: #fffffff2;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line)
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: inherit;
  text-decoration: none
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain
}

nav {
  display: flex;
  gap: 1.2rem
}

nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 700
}

#menu {
  display: none
}

section {
  padding: 6rem max(5vw, 1.2rem);
  scroll-margin-top: 75px
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 4rem
}

.hero-logo {
  width: 100%;
  max-height: 550px;
  object-fit: contain
}

.kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 900;
  color: #007fbf
}

.hero h1,
h2 {
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.05em;
  margin: .5rem 0 1.4rem
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--pink), var(--orange));
  color: transparent;
  background-clip: text
}

.lead,
.head>p:last-child {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 850px
}

.actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 2rem
}

.btn {
  display: inline-block;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #028cd2, var(--blue));
  color: white;
  text-decoration: none;
  font-weight: 850
}

.outline {
  background: none;
  border: 1px solid var(--line);
  color: var(--navy)
}

.head {
  max-width: 950px;
  margin-bottom: 3rem
}

.head h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem)
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem
}

.stats div {
  padding: 1.4rem;
  border-top: 4px solid var(--blue)
}

.stats div:nth-child(2) {
  border-color: var(--green)
}

.stats div:nth-child(3) {
  border-color: var(--pink)
}

.stats b {
  display: block;
  font-size: 2.8rem
}

.stats span {
  color: var(--muted)
}

.featured {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 30px;
  background: var(--navy);
  color: white
}

.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem
}

.photos button,
.events button {
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in
}

.photos img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px
}

.featured h3 {
  font-size: 2.2rem;
  line-height: 1.1
}

.featured a {
  color: #72dcff;
  font-weight: 800
}

.cards,
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem
}

.cards article,
.grid article {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 22px
}

.soft {
  background: var(--soft)
}

.events {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem
}

.events article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  padding-bottom: 1rem
}

.events img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top
}

.events h3,
.events p {
  padding: 0 1.1rem
}

.callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  border: 1px solid #bce8da;
  border-radius: 22px;
  background: #eefff9
}

.grid article>b {
  font-size: .8rem;
  color: var(--pink)
}

.grid h3 {
  font-size: 1.4rem
}

.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem
}

.people article {
  padding: 1.3rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px
}

.people article>b {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e5f8ff;
  color: #0088c8
}

.people p {
  color: var(--muted)
}

.people small {
  color: #0088c8;
  font-weight: 800
}

.presenter {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--green);
  background: white
}

.cta {
  margin: 2rem 4vw;
  border-radius: 35px;
  background: linear-gradient(115deg, var(--navy), #0071bd, #00a67a);
  color: white
}

.cta h2 {
  font-size: clamp(2.4rem, 5vw, 4rem)
}

.white {
  background: white;
  color: var(--navy)
}

.white.outline {
  background: transparent;
  color: white;
  border-color: #ffffff99
}

footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 3rem 5vw
}

footer img {
  width: 70px
}

dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  max-width: 92vw;
  max-height: 92vh
}

dialog::backdrop {
  background: #001a33dd
}

dialog img {
  display: block;
  max-width: 90vw;
  max-height: 88vh
}

.close {
  position: absolute;
  right: .7rem;
  top: .7rem;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  width: 40px;
  height: 40px;
  font-size: 1.5rem
}

@media(max-width:900px) {
  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: white;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 15px
  }

  nav.open {
    display: flex
  }

  #menu {
    display: block
  }

  .hero,
  .featured {
    grid-template-columns: 1fr
  }

  .events,
  .people {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:600px) {
  section {
    padding: 4rem 1rem
  }

  .hero {
    gap: 1rem
  }

  .stats,
  .cards,
  .grid,
  .events,
  .people,
  .photos {
    grid-template-columns: 1fr
  }

  .callout {
    display: block
  }

  .actions {
    flex-direction: column
  }

  .btn {
    text-align: center
  }

  .photos img {
    height: 220px
  }

  .cta {
    margin: 1rem
  }

  .hero-logo {
    max-height: 360px
  }
}

.future-room {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.2rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(120deg, #f4fbff, #f1fff9)
}

.future-room button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in
}

.future-room img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 18px
}

.future-room h3 {
  font-size: 1.8rem;
  line-height: 1.15;
  margin: .4rem 0
}

.presenter h3 {
  margin: .1rem 0 .5rem
}

.presenter p {
  margin: .2rem 0;
  color: var(--muted)
}

@media(max-width:700px) {
  .future-room {
    grid-template-columns: 1fr
  }

  .future-room img {
    height: 240px
  }
}

.results-title {
  max-width: 1050px;
  font-size: clamp(2.35rem, 4.6vw, 4.25rem)
}

.people .presenter-card {
  border: 2px solid var(--green);
  background: linear-gradient(135deg, #fff, #effff9)
}

.presenter-card p {
  margin: .35rem 0
}

.events a {
  color: #007fbf;
  font-weight: 750
}

.event-link {
  display: inline-block;
  margin-top: .2rem
}

.events article {
  display: flex;
  flex-direction: column
}

.events article>p:last-child {
  margin-top: auto
}

.events article>button {
  flex: none
}

@media(min-width:901px) {
  .people .presenter-card {
    grid-column: span 2
  }
}

.text-link {
  align-self: center;
  color: #007fbf;
  font-weight: 800;
  text-decoration: none
}

.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

.ind-grid article {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff
}

.department-details {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f8fcff;
  overflow: hidden
}

.department-details summary {
  cursor: pointer;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  font-weight: 900;
  font-size: 1.3rem;
  list-style: none
}

.department-details summary::-webkit-details-marker {
  display: none
}

.department-details summary:after {
  content: '+';
  position: absolute;
  right: max(7vw, 2rem);
  font-size: 1.6rem
}

.department-details[open] summary:after {
  content: '−'
}

.department-details summary small {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 600
}

.department-content {
  padding: 0 1rem 1rem
}

.status {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase
}

.achieved {
  background: #e8fff6;
  color: #00744e
}

.proposal {
  background: #fff4df;
  color: #8b5700
}

.telegram {
  display: block;
  margin-top: .65rem;
  color: #007fbf;
  font-weight: 800;
  text-decoration: none
}

.presenter-band {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.3rem 1.6rem;
  border-left: 5px solid var(--green);
  background: #fff;
  border-radius: 0 18px 18px 0
}

.presenter-band h3,
.presenter-band p {
  margin: .2rem 0
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px #001b3566
}

.events button {
  width: 100%;
  background: #f4f8fb
}

.events img {
  height: 300px;
  object-fit: contain
}

.people article {
  min-width: 0
}

.people h3 {
  overflow-wrap: anywhere
}

@media(max-width:1050px) {
  .events {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .events img {
    height: 360px
  }

  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:700px) {
  section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem
  }

  .hero {
    min-height: auto
  }

  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 4rem)
  }

  .hero-logo {
    max-height: 300px
  }

  .stats {
    gap: .4rem
  }

  .stats div {
    padding: 1rem .5rem
  }

  .stats b {
    font-size: 2.1rem
  }

  .events {
    grid-template-columns: 1fr
  }

  .events img {
    height: auto;
    max-height: none;
    object-fit: contain
  }

  .ind-grid {
    grid-template-columns: 1fr
  }

  .people {
    grid-template-columns: 1fr
  }

  .presenter-band {
    grid-template-columns: 1fr
  }

  .department-details summary:after {
    right: 2rem
  }

  .future-room img {
    height: auto
  }

  .photos img {
    height: auto;
    aspect-ratio: 4/3
  }

  .cta {
    padding: 3rem 1.2rem
  }

  .back-top {
    width: 44px;
    height: 44px
  }

  .head {
    margin-bottom: 2rem
  }
}

@media(max-width:380px) {
  header {
    padding: .65rem .7rem
  }

  .brand b {
    font-size: .92rem
  }

  .brand img {
    width: 42px;
    height: 42px
  }

  .stats {
    grid-template-columns: 1fr
  }

  .actions {
    gap: .55rem
  }
}

.back-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .2s
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none
}

.text-link {
  align-self: center;
  color: #007fbf;
  font-weight: 800;
  text-decoration: none
}

.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

.ind-grid article {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 22px
}

.department-details {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f8fcff;
  overflow: hidden
}

.department-details summary {
  cursor: pointer;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  font-weight: 900;
  font-size: 1.3rem;
  list-style: none
}

.department-details summary small {
  font-size: .9rem;
  color: var(--muted)
}

.department-content {
  padding: 0 1rem 1rem
}

.status {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase
}

.achieved {
  background: #e8fff6;
  color: #075
}

.proposal {
  background: #fff4df;
  color: #850
}

.telegram {
  display: block;
  margin-top: .65rem;
  color: #0780bf;
  font-weight: 800;
  text-decoration: none
}

.presenter-band {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.3rem 1.6rem;
  border-left: 5px solid var(--green);
  background: #fff
}

.presenter-band h3,
.presenter-band p {
  margin: .2rem 0
}

.events button {
  width: 100%;
  background: #f4f8fb
}

.events img {
  height: 300px;
  object-fit: contain
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px #001b3566;
  opacity: 0;
  pointer-events: none;
  transition: .2s
}

.back-top.show {
  opacity: 1;
  pointer-events: auto
}

@media(max-width:1050px) {
  .events {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:700px) {
  section {
    padding: 3.5rem 1rem
  }

  .events,
  .ind-grid,
  .people {
    grid-template-columns: 1fr
  }

  .events img {
    height: auto;
    width: 100%;
    object-fit: contain
  }

  .presenter-band {
    grid-template-columns: 1fr
  }

  .future-room img,
  .photos img {
    height: auto
  }

  .department-details summary {
    padding: 1.1rem
  }

  .cta {
    padding: 3rem 1.2rem
  }

  .hero {
    min-height: auto
  }

  .hero-logo {
    max-height: 300px
  }
}

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.single-card {
  grid-template-columns: 1fr
}

.people .presenter-card {
  border: 3px solid var(--green);
  background: linear-gradient(135deg, #fff, #effff9);
  box-shadow: 0 12px 30px rgba(0, 216, 148, .12)
}

.role-badge {
  display: inline-block;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: #e5fff5;
  color: #00744e;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase
}

.presenter-card p {
  margin: .7rem 0 .2rem
}

.department-details+.department-details {
  margin-top: 1rem
}

@media(max-width:900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:520px) {
  .stats {
    grid-template-columns: 1fr
  }

  .role-badge {
    line-height: 1.35
  }
}


.stats {
  display: none
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start
}

.proposal-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(3, 40, 86, .05);
  transition: transform .18s, box-shadow .18s
}

.proposal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(3, 40, 86, .09)
}

.proposal-card summary {
  display: grid;
  grid-template-columns: 2.2rem 1fr 2rem;
  gap: .8rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  cursor: pointer;
  list-style: none
}

.proposal-card summary::-webkit-details-marker {
  display: none
}

.proposal-card summary b {
  font-size: .75rem;
  color: var(--pink)
}

.proposal-card summary h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2
}

.proposal-toggle {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #edf8fd;
  color: #007fbf;
  font-size: 1.25rem;
  font-weight: 800
}

.proposal-card[open] .proposal-toggle {
  transform: rotate(45deg)
}

.proposal-body {
  padding: 0 1.35rem 1.3rem 4.35rem;
  color: var(--muted)
}

.proposal-body p {
  margin: 0
}

.people .presenter-card {
  grid-column: auto !important;
  border: 1px solid #b9ddd1;
  background: #f8fffc;
  box-shadow: none
}

.people .presenter-card:hover {
  box-shadow: none
}

.role-badge {
  font-size: .65rem;
  padding: .2rem .5rem
}

.presenter-card p {
  font-size: .92rem
}

.people {
  align-items: stretch
}

.people article {
  height: 100%
}

@media(max-width:700px) {
  .grid {
    grid-template-columns: 1fr
  }

  .proposal-body {
    padding-left: 1.35rem
  }

  .proposal-card summary {
    grid-template-columns: 2rem 1fr 1.8rem
  }
}


.hero .actions {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: center;
  gap: .75rem
}

.hero .btn {
  margin: 0;
  border: 1px solid #079bdc;
  box-shadow: none;
  white-space: nowrap
}

.hero .primary-action {
  background: #00a67a;
  color: #fff;
  border-color: #00a67a
}

.hero .secondary-action {
  background: #0071bd;
  color: #fff;
  border-color: #0071bd
}

.hero .secondary-action:hover {
  border-color: #075f9e;
  background: #075f9e;
  color: #fff
}

.ind-grid {
  align-items: start
}

.method-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(3, 40, 86, .04)
}

.method-card summary {
  display: grid;
  grid-template-columns: 1fr 2rem;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  cursor: pointer;
  list-style: none
}

.method-card summary::-webkit-details-marker {
  display: none
}

.method-card h3 {
  margin: 0
}

.method-toggle {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #edf8fd;
  color: #007fbf;
  font-size: 1.25rem;
  font-weight: 800
}

.method-card[open] .method-toggle {
  transform: rotate(45deg)
}

.method-body {
  padding: 0 1.4rem 1.3rem;
  color: var(--muted)
}

.method-body p {
  margin: 0
}

.proposal-body a {
  color: #007fbf;
  font-weight: 800
}

.people .service-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none
}

.people .service-card>b {
  background: #eef3f6;
  color: #53697c
}

.service-label {
  display: block;
  margin: .45rem 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750
}

.service-card p {
  font-size: .9rem;
  margin: .35rem 0
}

.service-card .telegram {
  font-size: .9rem
}

@media(max-width:960px) {
  .hero .actions {
    grid-template-columns: 1fr 1fr
  }

  .hero .actions .btn {
    width: 100%;
    text-align: center
  }

  .hero .actions .btn:first-child {
    grid-column: 1/-1
  }
}

@media(max-width:600px) {
  .hero .actions {
    grid-template-columns: 1fr
  }

  .hero .actions .btn:first-child {
    grid-column: auto
  }

  .hero .btn {
    white-space: normal
  }

  .method-card summary {
    padding: 1.05rem 1.15rem
  }

  .method-body {
    padding: 0 1.15rem 1.15rem
  }
}


#risultati .events-achievement {
  padding: 5rem 0 0;
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px
}

.events-achievement .head {
  margin-bottom: 2.2rem
}

.events-achievement .callout {
  margin-bottom: 0
}

@media(max-width:700px) {
  #risultati .events-achievement {
    padding-top: 3.5rem;
    margin-top: 3rem
  }
}


#risultati .achievement-block {
  padding: 3.5rem 0 0;
  margin-top: 3.5rem;
  border-top: 1px solid var(--line)
}

#risultati .achievement-block>.head {
  margin-bottom: 2rem
}

#risultati .achievement-block>.head h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin-bottom: 1rem
}

#risultati .achievement-block>.head p {
  font-size: 1.08rem;
  max-width: 900px
}

@media(max-width:700px) {
  #risultati .achievement-block {
    padding-top: 2.5rem;
    margin-top: 2.5rem
  }
}


.proposal-body p+p {
  margin-top: .85rem
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-left: auto;
  margin-right: .8rem;
  padding: .52rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(3, 40, 86, .07)
}

.theme-toggle:hover {
  border-color: var(--blue);
  color: #007fbf
}

.theme-icon {
  font-size: 1rem;
  line-height: 1
}

html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #e9f5ff;
  --muted: #b5c7d8;
  --line: #29475e;
  --soft: #0c2638
}

html[data-theme="dark"] body {
  background: #071a29;
  color: var(--navy)
}

html[data-theme="dark"] header {
  background: rgba(7, 26, 41, .94);
  border-bottom-color: var(--line)
}

html[data-theme="dark"] nav a,
html[data-theme="dark"] .brand {
  color: var(--navy)
}

html[data-theme="dark"] .theme-toggle {
  background: #102b3e;
  color: #e9f5ff;
  border-color: #36566d
}

html[data-theme="dark"] .proposal-card,
html[data-theme="dark"] .method-card,
html[data-theme="dark"] .people article,
html[data-theme="dark"] .events article {
  background: #0d2738;
  border-color: var(--line)
}

html[data-theme="dark"] .proposal-toggle,
html[data-theme="dark"] .method-toggle {
  background: #17384d;
  color: #68d7ff
}

html[data-theme="dark"] .featured {
  background: #0b3856
}

html[data-theme="dark"] .callout,
html[data-theme="dark"] .future-room {
  background: #0e302d;
  border-color: #28574e
}

html[data-theme="dark"] .department-details {
  background: #0a2232;
  border-color: var(--line)
}

html[data-theme="dark"] .people .service-card {
  background: #102635;
  border-color: #365064
}

html[data-theme="dark"] .events button {
  background: #132d3e
}

html[data-theme="dark"] .cta {
  background: linear-gradient(115deg, #061827, #07527a, #08715a)
}

html[data-theme="dark"] footer {
  color: #bfd0de
}

@media(max-width:900px) {
  .theme-toggle {
    margin-left: auto
  }

  .theme-label {
    display: none
  }

  .theme-toggle {
    padding: .58rem
  }
}


.callout > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta {
  background: linear-gradient(115deg, var(--navy) 0%, #0071bd 58%, #00a67a 100%);
}

html[data-theme="dark"] .cta {
  background: linear-gradient(115deg, #061827 0%, #07527a 58%, #08715a 100%);
}

html[data-theme="dark"] .cta .white {
  background: #ffffff;
  color: #032856;
  border-color: #ffffff;
}

html[data-theme="dark"] .cta .white.outline {
  background: rgba(3, 40, 86, 0.72);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .back-top {
  background: #e9f5ff;
  color: #032856;
}



.department-content > .cards {
  grid-template-columns: 1fr;
}


.voting {
  padding-bottom: 4rem;
}

.voting-head > p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.voting-schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.voting-schedule article {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.voting-days {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 92px;
  min-height: 76px;
  padding: .5rem .8rem;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--navy), #0071bd);
  color: white;
  font-size: 1.65rem;
  font-weight: 900;
}

.voting-schedule h3 {
  margin: 0 0 .25rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.voting-schedule p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.voting-closing {
  max-width: 900px;
  margin: 2.4rem auto 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

html[data-theme="dark"] .voting-schedule article {
  background: var(--card);
}

html[data-theme="dark"] .voting-schedule h3,
html[data-theme="dark"] .voting-closing {
  color: var(--text);
}

@media(max-width:700px) {
  .voting-schedule {
    grid-template-columns: 1fr;
  }

  .voting-schedule article {
    align-items: stretch;
  }

  .voting-days {
    min-width: 78px;
  }
}


.vote-action {
  background: linear-gradient(135deg, #0071bd, #00a67a);
  color: white;
  border-color: transparent;
}

.vote-action:hover {
  color: white;
}

.voting-closing-logo {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  margin-left: .18em;
  object-fit: contain;
  vertical-align: -.32em;
}
