:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --fg: #1a1a1a;
  --muted: #666666;
  --accent: #d90000;
  --link: #c40000;
  --gold: #e8a33d;
  --border: #e4e4e4;
  --logo-chip: transparent;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --surface: #1e1e1e;
    --fg: #f5f5f5;
    --muted: #a6a6a6;
    --accent: #ff5c5c;
    --link: #ff7a7a;
    --border: #333333;
    --logo-chip: #ffffff;
  }
}

:root[data-theme="dark"] {
  --bg: #121212;
  --surface: #1e1e1e;
  --fg: #f5f5f5;
  --muted: #a6a6a6;
  --accent: #ff5c5c;
  --link: #ff7a7a;
  --border: #333333;
  --logo-chip: #ffffff;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  margin: 0;
  padding: 20px;
  background: var(--bg);
  color: var(--fg);
}

a {
  color: var(--link);
}

h2 {
  color: var(--accent);
}

p.BigFirst {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: medium;
}

p.BigFirst:first-letter {
  font-size: large;
}

#header-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 24px 4px 200px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

#logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

#header-logo {
  display: block;
  max-height: 64px;
  padding: 3px;
  background: var(--logo-chip);
  border-radius: 50%;
}

#site-title {
  color: var(--fg);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
}

#top {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

#lang_options {
  font-size: 12px;
  text-align: right;
}

#lang_options p {
  margin: 0;
}

#lang_options a {
  color: var(--muted);
  text-decoration: none;
}

#lang_options a.active {
  color: var(--link);
  font-weight: 700;
}

#theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  padding: 7px 14px;
}

#theme-toggle:hover {
  color: var(--fg);
}

#menu {
  float: left;
  margin-top: 30px;
  width: 200px;
}

#menu h2 {
  color: var(--accent);
  font-weight: bold;
  font-size: small;
}

#menu a {
  color: var(--link);
  font-size: small;
  text-decoration: none;
}

#menu a:hover {
  text-decoration: underline;
}

#menu ul {
  margin-top: -5px;
  padding-left: 20px;
}

#menu li {
  list-style-type: none;
  margin-left: -20px;
}

.content {
  padding-left: 15px;
  margin-left: 200px;
  padding-right: 15px;
  border-left: 1px dotted var(--accent);
}

.content blockquote {
  font-size: large;
  color: var(--accent);
  border-top: 1px solid;
  border-bottom: 1px solid;
  padding-top: 15px;
  padding-bottom: 15px;
  float: right;
  width: 250px;
}

#events .event-card {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
}

#events .event-details h3 {
  margin: 0 0 6px;
  color: var(--fg);
  font-size: 22px;
}

#events .event-meta {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}

#events .event-venue {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  max-width: 620px;
}

#events .event-register {
  margin: 0;
  font-size: 14px;
}

#footer {
  clear: left;
  border-top: 1px dotted var(--accent);
  color: var(--muted);
  font-size: 12px;
  padding: 18px 0;
  text-align: center;
}

@media (max-width: 640px) {
  #header-bar {
    flex-wrap: wrap;
    padding: 6px 16px;
  }

  #site-title {
    font-size: 17px;
  }

  #header-logo {
    max-height: 52px;
  }

  #menu {
    float: none;
    margin: 12px 16px 0;
    width: auto;
  }

  #menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-left: 0;
  }

  #menu li {
    margin-left: 0;
  }

  .content {
    border-left: none;
    margin-left: 0;
    padding: 0 16px 24px;
  }

  .content blockquote {
    float: none;
    width: auto;
  }

  #events .event-card {
    flex-direction: column;
    padding: 18px;
  }
}

* {
  box-sizing: border-box;
}
body {
  font-size: 14px;
  line-height: 1.6;
}
#header-logo {
  width: 52px;
  height: 60px;
  object-fit: contain;
}
#site-title {
  margin: 0;
  line-height: 1.3;
}
#site-title small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 4px;
}
.content {
  margin-top: 18px;
}
.content h2 {
  font-size: 22px;
  margin: 22px 0 12px;
  line-height: 1.4;
}
.content p {
  margin: 0 0 15px;
}
.content section {
  scroll-margin-top: 20px;
}
.pending {
  color: var(--muted);
}
.pending small {
  font-size: 11px;
}
#events .event-details h3 {
  font-size: 20px;
}
#events .event-card p:last-child {
  margin-bottom: 0;
}
#menu h2 {
  margin-bottom: 10px;
}
#menu ul {
  line-height: 1.75;
}
.content ul {
  padding-left: 20px;
}
#footer {
  margin-top: 28px;
}
.preview-note {
  font-size: 10px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
#lang_options button {
  font: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
}
#lang_options button.active {
  color: var(--link);
  font-weight: bold;
}
@media (max-width: 640px) {
  body {
    padding: 8px;
    font-size: 14px;
  }
  #header-bar {
    gap: 10px;
  }
  #top {
    width: 100%;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 7px;
  }
  #site-title {
    font-size: 18px;
  }
  #menu {
    margin-bottom: 20px;
  }
  #menu .items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 25px;
  }
  #menu h2 {
    margin: 8px 0 10px;
  }
  .content {
    margin-top: 0;
  }
  .content h2 {
    font-size: 21px;
  }
  #events .event-details h3 {
    font-size: 18px;
  }
  .pending small {
    display: block;
  }
}

/* Identitas header mengikuti AMP. */
#header-bar {
  gap: 7px;
  min-height: 64px;
}
#header-logo.tpj-mark {
  width: 25px;
  height: 25px;
  max-height: none;
  padding: 0;
  border: 1px solid #cf0000;
  border-radius: 50%;
  background: transparent;
  color: #bd0000;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font:
    700 9px Arial,
    sans-serif;
}
#site-title {
  font:
    800 13px/1.3 Arial,
    sans-serif;
  letter-spacing: -0.4px;
}
:root[data-theme="dark"] #header-logo.tpj-mark {
  color: #ff8c8c;
  border-color: #e25656;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #header-logo.tpj-mark {
    color: #ff8c8c;
    border-color: #e25656;
  }
}
@media (max-width: 640px) {
  #site-title {
    font-size: 13px;
  }
}
