* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    16px/1.7 "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
}
a {
  color: #98482c;
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #c68143;
  outline-offset: 3px;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  line-height: 1.3;
}
.innerbar {
  max-width: 1160px;
  width: calc(100% - 40px);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid;
}
.innerbar a,
.button {
  text-decoration: none;
}
.brand {
  font-weight: bold;
}
.brand i {
  color: #a1a79a;
}
.formwrap {
  margin: 35px auto;
  padding: 0 22px 45px;
}
.formwrap h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 10px 0 16px;
}
.eyebrow {
  font: bold 12px/1.5 Arial;
  letter-spacing: 0.15em;
}
.formwrap form,
.formwrap #done {
  margin-top: 28px;
}
.panel,
fieldset,
.adminbox {
  background: #fffdfa;
  border: 1px solid #d9d7cb;
  border-radius: 16px;
  padding: clamp(18px, 3vw, 32px);
}
fieldset {
  margin: 0 0 22px;
  min-width: 0;
}
fieldset p {
  margin: 0 0 14px;
}
legend {
  padding: 0 8px;
  font-size: 22px;
  font-weight: bold;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fields label {
  font-weight: 600;
}
input:not([type="checkbox"]),
select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #c9b49e;
  border-radius: 8px;
  margin-top: 6px;
  background: #fff;
  color: #493329;
}
input:disabled {
  opacity: 0.5;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-top: 5px;
}
#status {
  color: #944127;
  margin: 12px 0;
}
.button {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  background: #994a2e;
  padding: 10px 22px;
  color: white;
  font-weight: 700;
}
[hidden] {
  display: none !important;
}
.adminwrap {
  max-width: 1300px;
  margin: 36px auto;
  padding: 0 22px;
}
.adminbox {
  margin-top: 18px;
}
.adminwrap button {
  margin: 6px;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #e4d5c5;
  white-space: nowrap;
}
@media (max-width: 650px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .innerbar {
    font-size: 14px;
  }
}
body.inner {
  color: #493329;
  background: #f8f5ec url("../images/journal/paper.png");
  min-height: 100vh;
}
.innerbar {
  border-color: #d7d3c8;
}
.formwrap {
  max-width: 940px;
}
.formintro {
  position: relative;
  isolation: isolate;
  background: #f0e1ce;
  border: 1px solid #d5d8cb;
  border-radius: 16px;
  overflow: hidden;
  min-height: 210px;
  padding: 30px 36% 30px 26px;
}
.formintro h1 {
  font-family: Georgia, "SimSun", serif;
  color: #493329;
}
.formintro img {
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.formintro .eyebrow {
  color: #99482e;
}
.formwrap fieldset {
  border-color: #d9d7cb;
  background: #fffdf7;
}
.formwrap legend {
  font-family: Georgia, "SimSun", serif;
  color: #493329;
}
.formwrap .button {
  border-radius: 8px;
  background: #994a2e;
}
.formwrap input:focus,
.formwrap select:focus {
  outline: 2px solid #a96337;
  outline-offset: 1px;
}
@media (max-width: 650px) {
  .formintro {
    padding: 0 18px 20px;
    display: flex;
    flex-direction: column;
  }
  .formintro img {
    position: static;
    order: -1;
    width: calc(100% + 36px);
    height: 145px;
    margin: 0 -18px 15px;
  }
  .formintro h1 {
    margin: 8px 0;
  }
  .formwrap {
    padding-inline: 16px;
  }
}

a:hover { color: #703320; }
.button:hover { background: #793a28; color: #fffaf2; }
input[type="checkbox"] { accent-color: #a96337; }
.adminwrap button:not(.button) { color: #854228; background: #f6e8d7; border: 1px solid #cbb299; border-radius: 6px; padding: 5px 12px; }
.adminwrap button:not(.button):hover { background: #ecd5ba; }

.flight-reminder { display: grid; gap: 6px; background: #f5e5cf; border-left: 4px solid #a96337; border-radius: 8px; padding: 18px 22px; margin: 0 0 22px; color: #613822; }
.flight-reminder strong { font-size: clamp(22px, 3vw, 30px); }
.flight-reminder b { font-size: clamp(28px, 4vw, 40px); line-height: 1.3; color: #923f25; }
.flight-reminder span { font-size: 15px; }

/* Prominent Telegram contact, also shown before the registration form. */
.support-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0; padding: 24px 28px; border: 2px solid #a96337; border-radius: 14px; background: #f4e3cb; color: #613822; }
.support-banner strong { display: block; font-size: clamp(24px, 3vw, 30px); line-height: 1.4; }
.support-banner p { margin: 8px 0 0; font-size: 16px; }
.support-banner a { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; padding: 14px 26px; border-radius: 10px; background: #994a2e; color: #fffaf2; text-decoration: none; }
.support-banner a:hover { background: #793a28; color: #fffaf2; }
.support-banner a b { font-size: clamp(30px, 4vw, 40px); line-height: 1.3; }
.support-banner a span { font-size: 14px; }
.formwrap > .support-banner:first-child { margin-top: 0; }
@media (max-width: 650px) { .support-banner { flex-direction: column; align-items: stretch; padding: 20px; gap: 16px; } }

textarea { display:block; width:100%; min-width:0; margin-top:6px; padding:10px 12px; border:1px solid #c9b49e; border-radius:8px; font:inherit; color:#493329; resize:vertical; }
.fields label:has(textarea) { grid-column:1 / -1; }
textarea:focus-visible { outline:2px solid #a96337; outline-offset:2px; }

.required-mark { color: #994a2e; }

/* Registration deadline, cash fee and transfer airport. */
.event-notice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; padding: 24px; border: 2px solid #a96337; border-radius: 16px; background: #f5e5cf; color: #613822; }
.event-notice > div { min-width: 0; }
.event-notice span { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.event-notice strong { display: block; font-size: clamp(22px, 2.1vw, 29px); line-height: 1.4; color: #873c25; }
.event-notice p { margin: 8px 0 0; font-size: 16px; }
.formwrap > .event-notice { margin-top: 24px; }
@media (max-width: 760px) { .event-notice { grid-template-columns: 1fr; gap: 18px; padding: 20px; } .event-notice > div + div { padding-top: 16px; border-top: 1px solid #d5b697; } }

/* Deadline is the first, high-contrast announcement on both pages. */
.deadline-wrap { padding-top: 24px; padding-bottom: 24px; }
.deadline-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px; padding: 24px 28px; border: 2px solid #a65e36; border-radius: 14px; background: #7b321f; color: #fff8ed; text-align: center; box-shadow: 0 6px 18px #61382220; }
.deadline-label { font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; }
.deadline-banner strong { font-size: clamp(28px, 3vw, 40px); line-height: 1.3; }
.deadline-banner strong b { font-size: clamp(36px, 4.4vw, 58px); color: #ffe0a3; white-space: nowrap; }
.deadline-hint { flex-basis: 100%; font-size: 17px; }
.formwrap > .deadline-banner { margin-bottom: 24px; }
.event-notice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .event-notice { grid-template-columns: 1fr; } .deadline-banner { flex-direction: column; padding: 20px 14px; gap: 8px; } .deadline-banner strong { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; } }

/* Place Telegram support alongside the prominent deadline. */
.deadline-support { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 22px; border: 1px solid #ffe0a3; border-radius: 10px; background: #ffe0a3; color: #61301e; text-decoration: none; line-height: 1.4; }
.deadline-support span { font-size: 18px; font-weight: 700; }
.deadline-support b { font-size: 26px; white-space: nowrap; }
.deadline-support:hover { background: #fff2d8; color: #492216; }
.deadline-support:focus-visible { outline: 3px solid #fff8ed; outline-offset: 4px; }
