/*
Theme Name: GolfOrFun
Theme URI: https://golforfun.net/
Author: GolfOrFun
Author URI: https://golforfun.net/
Description: A custom WordPress theme based on the GolfOrFun Japan golf community landing page design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golforfun
*/

:root {
  --green-950: #042e20;
  --green-900: #073d28;
  --green-800: #0a5632;
  --green-700: #116f3b;
  --gold: #d9a63b;
  --gold-dark: #bd8525;
  --ink: #17211d;
  --muted: #68736f;
  --line: #e8ece9;
  --surface: #ffffff;
  --soft: #f5f7f5;
  --shadow: 0 18px 40px rgba(15, 38, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f3f5f3;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  color: #fff;
  background: linear-gradient(90deg, #04321f, #075633 58%, #02331f);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.admin-bar .site-header {
  top: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 235px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: #f1c66a;
  font-size: 10px;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 34px;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding: 26px 0 22px;
  font-size: 14px;
}

.main-nav a.active::after {
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 18px;
  height: 3px;
  content: "";
  transform: translateX(-50%);
  border-radius: 99px;
  background: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button,
.login-button,
.outline-button,
.search-button,
.primary-button,
.ghost-button,
.wide-button,
.event-card a,
.map-block a,
.site-footer button {
  min-height: 38px;
  border-radius: 4px;
  cursor: pointer;
}

.icon-button {
  display: grid;
  width: 32px;
  place-items: center;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 25px;
}

.login-button {
  padding: 0 18px;
  border: 1px solid transparent;
  color: #143226;
  background: #fff;
}

.outline-button {
  padding: 0 18px;
  border: 1px solid var(--gold);
  color: #fff;
  background: transparent;
}

.hero {
  min-height: 327px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 22, 19, 0.56), rgba(4, 22, 19, 0.22) 48%, rgba(4, 22, 19, 0.06)),
    url("assets/hero.jpg") center / cover no-repeat;
}

.hero-inner {
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
  padding: 68px 0 62px;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  margin: 12px 0 28px;
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 700;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-bottom: 24px;
}

.hero-points article {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.hero-points span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--gold);
  border: 2px solid #fff;
  border-radius: 50%;
  font-weight: 800;
}

.hero-points strong,
.hero-points small {
  display: block;
}

.hero-points small {
  margin-top: 3px;
  opacity: 0.88;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 135px;
  padding: 0 30px;
  font-weight: 700;
}

.primary-button {
  background: var(--gold);
  color: #fff;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: #fff;
  background: rgba(6, 52, 34, 0.58);
}

.ghost-button.muted {
  background: rgba(16, 31, 28, 0.35);
}

.search-panel {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 14px;
  width: min(1120px, calc(100% - 96px));
  margin: -28px auto 28px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-panel label,
.site-footer label {
  position: relative;
  display: block;
}

.search-panel label span,
.site-footer label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  color: #6d7670;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.search-button,
.wide-button {
  border: 0;
  color: #fff;
  background: var(--green-700);
  font-weight: 700;
}

.search-button {
  padding: 0 24px;
}

.content-section,
.dashboard-grid {
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto 20px;
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.panel-heading h2,
.score-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.section-heading a,
.panel-heading a {
  color: #555f59;
  font-size: 13px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.course-card,
.panel,
.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(26, 45, 38, 0.06);
}

.course-image {
  position: relative;
  height: 112px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-image b {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  color: #fff;
  border-radius: 99px;
  background: var(--gold);
  font-size: 11px;
}

.card-body {
  padding: 14px 14px 16px;
}

.card-body h3 {
  min-height: 32px;
  margin: 0 0 4px;
  font-size: 15px;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.meta-row strong {
  font-size: 16px;
}

.meta-row span {
  color: #171f1c;
  font-weight: 700;
}

.meta-row span::first-letter {
  color: #f7ad18;
}

.meta-row small {
  color: var(--muted);
  font-weight: 400;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tags span,
.news-list span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  color: #4e5c55;
  background: #eef1ef;
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.1fr;
  gap: 16px;
  margin-top: 20px;
}

.panel {
  padding: 16px;
}

.news-list,
.friend-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
}

.news-list img {
  width: 68px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}

.news-list strong,
.friend-list strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}

.news-list strong a,
.friend-list strong a,
.tournament-card h2 a {
  color: inherit;
}

.news-list time {
  color: var(--muted);
  font-size: 12px;
}

.friend-list li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
}

.friend-avatar-link {
  display: inline-flex;
  width: fit-content;
  border-radius: 50%;
}

.friend-list img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.friend-avatar-link:hover img {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(9, 58, 37, 0.18);
}

.friend-list span,
.friend-list small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.friend-list em {
  color: var(--green-700);
  font-size: 12px;
  font-style: normal;
}

.friend-list em::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  content: "";
  border-radius: 50%;
  background: #8ad08d;
}

.friend-profile {
  width: min(900px, calc(100% - 96px));
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 45, 38, 0.07);
}

.friend-profile-hero {
  display: flex;
  gap: 22px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.friend-profile-hero img {
  width: 110px;
  height: 110px;
  flex: 0 0 110px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16), 0 6px 18px rgba(0, 0, 0, 0.1);
}

.friend-profile-hero h1 {
  margin: 4px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

.profile-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 99px;
  color: var(--green-700);
  background: #eaf8ed;
  font-size: 13px;
  font-weight: 800;
}

.profile-status::before {
  width: 8px;
  height: 8px;
  margin-right: 6px;
  content: "";
  border-radius: 50%;
  background: #8ad08d;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  margin-top: 22px;
}

.profile-detail-grid section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfa;
}

.profile-detail-grid h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.profile-detail-grid dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-detail-grid dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
}

.profile-detail-grid dt {
  color: #24312b;
  font-weight: 800;
}

.profile-detail-grid dd {
  margin: 0;
  color: var(--muted);
}

.profile-content {
  color: var(--muted);
  line-height: 1.8;
}

.profile-content p:first-child {
  margin-top: 0;
}

.profile-extra-grid {
  margin-top: 22px;
}

.gear-list dd {
  color: #334039;
  font-weight: 700;
}

.gear-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gear-form label {
  display: grid;
  gap: 6px;
}

.gear-form span {
  color: #4f5d57;
  font-size: 12px;
  font-weight: 800;
}

.gear-form input,
.gear-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  font: inherit;
}

.gear-form textarea {
  min-height: 76px;
  padding-top: 10px;
  resize: vertical;
}

.gear-form .full-field,
.gear-form button {
  grid-column: 1 / -1;
}

.gear-form button {
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--green-700);
  font-weight: 800;
  cursor: pointer;
}

.member-events-panel {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compact-heading {
  width: auto;
  margin: 0 0 14px;
}

.member-event-list {
  display: grid;
  gap: 10px;
}

.member-event-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fafbfa;
}

.member-event-card time {
  grid-row: span 2;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #fff;
  background: var(--green-700);
  font-size: 13px;
  font-weight: 800;
}

.member-event-card strong,
.member-event-card small,
.member-event-card em {
  display: block;
}

.member-event-card small,
.member-event-card em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.wide-button {
  display: flex;
  width: 76%;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin: 14px auto 0;
}

.score-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.best-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.best-score strong {
  grid-row: span 2;
  font-size: 44px;
}

.best-score span {
  font-weight: 800;
}

.best-score small {
  color: var(--muted);
}

.score-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 15px 0;
}

.score-stats div {
  padding: 0 14px;
  border-right: 1px solid var(--line);
}

.score-stats div:last-child {
  border-right: 0;
}

.score-stats span,
.score-stats small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.score-stats strong {
  display: block;
  margin: 4px 0;
  font-size: 23px;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.bar-list p {
  display: grid;
  grid-template-columns: 72px 1fr 38px;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 12px;
}

.bar-list b {
  position: relative;
  height: 5px;
  border-radius: 99px;
  background: #e6e8e6;
}

.bar-list b::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  content: "";
  border-radius: inherit;
  background: var(--green-700);
}

.bar-list em {
  font-style: normal;
  text-align: right;
}

.events-section {
  margin-top: 12px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  min-height: 116px;
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card time {
  position: absolute;
  top: 12px;
  left: 18px;
  display: grid;
  width: 44px;
  min-height: 56px;
  place-items: center;
  color: #1f2b25;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.event-card time span {
  font-size: 12px;
}

.event-card time strong {
  font-size: 23px;
}

.event-card div {
  padding: 14px 14px 12px;
}

.event-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.event-card p,
.event-card span {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.event-card a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--green-700);
  color: var(--green-700);
  background: #fff;
  font-weight: 700;
}

.featured-event {
  grid-template-columns: 1fr;
  color: #fff;
}

.featured-event img {
  position: absolute;
  inset: 0;
}

.featured-event::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 40, 27, 0.18), rgba(0, 40, 27, 0.78));
}

.featured-event div {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-left: auto;
  width: 58%;
}

.featured-event p,
.featured-event span {
  color: rgba(255, 255, 255, 0.88);
}

.featured-event a {
  color: #fff;
  border-color: #fff;
  background: rgba(0, 0, 0, 0.24);
}

.map-social {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  min-height: 172px;
  margin-top: 18px;
  color: #fff;
  background: linear-gradient(90deg, #053d2a, #086039 58%, #04341f);
}

.map-block {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  padding-left: max(64px, calc((100vw - 1120px) / 2));
}

.map-block > div {
  position: relative;
  z-index: 1;
  padding: 28px 0;
}

.map-block h2,
.social-block h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

.map-block p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.85);
}

.map-block a {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.map-block img {
  width: 100%;
  height: 172px;
  object-fit: cover;
  opacity: 0.86;
}

.social-block {
  padding: 28px max(64px, calc((100vw - 1120px) / 2)) 24px 38px;
}

.social-block .section-heading a {
  color: #fff;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.social-grid img {
  width: 100%;
  height: 102px;
  border-radius: 4px;
  object-fit: cover;
}

.site-footer {
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(90deg, #063724, #075535 58%, #04331f);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.7fr 0.7fr 0.8fr 1.15fr;
  gap: 42px;
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
  padding: 24px 0 22px;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
}

.site-footer nav a {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
}

.site-footer form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-content: start;
}

.site-footer form h3,
.site-footer form p {
  grid-column: 1 / -1;
}

.site-footer input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: transparent;
}

.site-footer input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer button {
  padding: 0 18px;
  border: 0;
  color: #fff;
  background: var(--gold);
}

.copyright {
  width: min(1120px, calc(100% - 96px));
  max-width: none;
  margin: 0 auto;
  padding: 13px 0 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.directory-page {
  min-height: calc(100vh - 70px);
  padding: 46px 0 64px;
  background: #f3f5f3;
}

.directory-hero,
.directory-grid,
.notice-success {
  width: min(1120px, calc(100% - 96px));
  margin-right: auto;
  margin-left: auto;
}

.directory-hero {
  margin-bottom: 24px;
}

.directory-hero h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
}

.directory-hero p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.directory-grid {
  display: grid;
  gap: 18px;
}

.friend-directory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-directory {
  grid-template-columns: 1fr;
}

.course-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
}

.pagination-nav {
  display: flex;
  width: min(1120px, calc(100% - 96px));
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px auto 0;
}

.pagination-nav .page-numbers {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--green-700);
  background: #fff;
  font-weight: 800;
}

.pagination-nav .current {
  color: #fff;
  border-color: var(--green-700);
  background: var(--green-700);
}

.directory-course-card h2 {
  min-height: 44px;
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.22;
}

.directory-course-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.official-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--green-700);
  border-radius: 4px;
  color: var(--green-700);
  font-weight: 800;
}

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
}

.tournament-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 14px;
}

.tournament-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border-radius: 6px;
  object-fit: cover;
}

.tournament-card > a {
  display: block;
  min-height: 210px;
}

.tournament-card time {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 10px;
  color: #fff;
  border-radius: 4px;
  background: var(--green-700);
  font-weight: 800;
}

.tournament-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.25;
}

.tournament-card dl {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
}

.tournament-card dl div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
}

.tournament-card dt {
  color: #26342e;
  font-weight: 800;
}

.tournament-card dd {
  margin: 0;
  color: var(--muted);
}

.tournament-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.news-detail {
  overflow: hidden;
  width: min(900px, calc(100% - 96px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 45, 38, 0.07);
}

.news-detail > img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.news-detail-body {
  padding: 26px;
}

.news-detail-body > span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--green-700);
  background: #eaf8ed;
  font-size: 13px;
  font-weight: 800;
}

.news-detail-body h1 {
  margin: 14px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.news-detail-body time {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
}

.page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.community-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.community-layout,
.chat-layout,
.discussion-detail,
.reply-thread {
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
}

.community-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
}

.community-form,
.chat-sidebar,
.chat-panel,
.discussion-detail,
.reply-thread {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 45, 38, 0.07);
}

.community-form {
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 18px;
}

.community-form h2,
.chat-sidebar h2,
.chat-panel h2,
.reply-thread h2 {
  margin: 0;
  font-size: 22px;
}

.community-form label,
.chat-form {
  display: grid;
  gap: 8px;
}

.community-form span {
  color: #24312b;
  font-weight: 800;
}

.community-form input,
.community-form select,
.community-form textarea,
.chat-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.topic-list {
  display: grid;
  gap: 14px;
}

.topic-card {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 18px;
  padding: 18px;
}

.topic-card span,
.discussion-detail > span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--green-700);
  background: #eaf8ed;
  font-size: 13px;
  font-weight: 800;
}

.topic-card h2 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.topic-card h2 a {
  color: inherit;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.topic-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.topic-card dt {
  color: #24312b;
  font-weight: 800;
}

.topic-card dd {
  margin: 3px 0 0;
  color: var(--muted);
}

.discussion-detail {
  padding: 24px;
}

.discussion-detail h1 {
  margin: 14px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}

.discussion-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.reply-thread {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
}

.reply-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfa;
}

.reply-card strong,
.reply-card time {
  display: block;
}

.reply-card time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.reply-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.reply-form {
  box-shadow: none;
}

.chat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
}

.chat-sidebar,
.chat-panel {
  padding: 18px;
}

.chat-sidebar {
  display: grid;
  gap: 10px;
  align-self: start;
}

.chat-sidebar a {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.chat-sidebar a.active {
  border-color: var(--green-700);
  background: #eaf8ed;
}

.chat-sidebar img {
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.chat-sidebar small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.message-thread {
  display: grid;
  gap: 12px;
  min-height: 280px;
  padding: 18px 0;
}

.message-bubble {
  max-width: 72%;
  justify-self: start;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f1f4f2;
}

.message-bubble.is-me {
  justify-self: end;
  color: #fff;
  background: var(--green-700);
}

.message-bubble p {
  margin: 6px 0;
  line-height: 1.6;
}

.message-bubble time {
  color: inherit;
  opacity: 0.72;
  font-size: 12px;
}

.chat-form {
  grid-template-columns: 1fr auto;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.social-page {
  min-height: calc(100vh - 70px);
  padding: 28px 0 64px;
  background: #f3f2ef;
}

.social-notice,
.social-layout {
  width: min(1180px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.social-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

.social-sidebar,
.social-feed,
.social-rightbar {
  display: grid;
  gap: 14px;
}

.social-profile-card,
.social-shortcuts,
.composer-card,
.feed-card,
.social-widget {
  border: 1px solid #d7d3cc;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.social-profile-card {
  position: relative;
  overflow: hidden;
  padding: 0 18px 18px;
  text-align: center;
}

.social-profile-cover {
  height: 62px;
  margin: 0 -18px;
  background: linear-gradient(135deg, #0b5d3a 0%, #0a66c2 100%);
}

.network-avatar,
.social-profile-card img {
  width: 76px;
  height: 76px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.social-profile-card .avatar-lg {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  margin-top: -43px;
}

.social-profile-card h2 {
  margin: 10px 0 4px;
  font-size: 20px;
  line-height: 1.2;
}

.social-profile-card p {
  margin: 0;
  color: #4f5d57;
  font-weight: 700;
}

.social-profile-card small {
  display: block;
  margin-top: 6px;
  color: #6f7a75;
  font-size: 12px;
  line-height: 1.45;
}

.social-shortcuts {
  display: grid;
  gap: 2px;
  padding: 8px;
}

.social-shortcuts a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  border-radius: 4px;
  color: #38413d;
  font-weight: 800;
}

.social-shortcuts a:hover {
  background: #eef3f8;
  color: #0a66c2;
}

.composer-card {
  padding: 14px 16px 16px;
}

.composer-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
}

.composer-head img,
.feed-card header img,
.mini-member img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.composer-head label {
  display: grid;
  gap: 8px;
}

.composer-head span {
  color: #24312b;
  font-weight: 800;
}

.composer-head textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border: 1px solid #d0d7de;
  border-radius: 24px;
  padding: 14px 16px;
  background: #fff;
  font: inherit;
}

.composer-head textarea:focus,
.inline-comment-form input:focus {
  outline: 2px solid rgba(10, 102, 194, 0.18);
  border-color: #0a66c2;
}

.composer-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.composer-actions select {
  min-height: 38px;
  border: 1px solid #d0d7de;
  border-radius: 20px;
  padding: 0 12px;
  background: #fff;
  font: inherit;
}

.feed-card {
  overflow: hidden;
}

.feed-card > header {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 16px 16px 0;
  align-items: center;
}

.feed-card h2 {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.25;
}

.feed-card h2 a {
  color: #1f1f1f;
}

.feed-card h2 a:hover {
  color: #0a66c2;
  text-decoration: underline;
}

.feed-card header p,
.feed-stats,
.mini-topic small {
  color: #6f7a75;
  font-size: 13px;
}

.feed-card header p {
  margin: 0;
}

.feed-card header p span {
  color: #0b5d3a;
  font-weight: 800;
}

.feed-content {
  padding: 14px 16px 12px;
  color: #1f1f1f;
  line-height: 1.75;
}

.feed-content p {
  margin: 0;
}

.feed-stats {
  display: flex;
  justify-content: space-between;
  padding: 0 16px 10px;
  border-bottom: 1px solid #e3e0da;
}

.feed-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #e3e0da;
}

.feed-actions form {
  margin: 0;
}

.feed-actions button,
.feed-actions a {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #5f6f68;
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.feed-actions button:hover,
.feed-actions a:hover {
  color: #0a66c2;
  background: #eef3f8;
}

.feed-comments {
  display: grid;
  gap: 8px;
  padding: 12px 16px 0;
}

.feed-comments article {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f3f2ef;
}

.comment-avatar {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #6f7a75;
  font-size: 13px;
  font-weight: 900;
}

.feed-comments strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.feed-comments p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.inline-comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 16px 16px;
}

.inline-comment-form input {
  min-height: 38px;
  border: 1px solid #d0d7de;
  border-radius: 99px;
  padding: 0 14px;
  background: #fff;
  font: inherit;
}

.inline-comment-form button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  padding: 0 14px;
  color: #fff;
  background: var(--green-700);
  font-weight: 800;
  cursor: pointer;
}

.social-widget {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.social-widget h2 {
  margin: 0 0 4px;
  color: #1f1f1f;
  font-size: 18px;
}

.mini-member,
.mini-topic {
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.mini-member {
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #e3e0da;
}

.mini-member img {
  width: 46px;
  height: 46px;
}

.mini-member small,
.mini-topic small {
  display: block;
  margin-top: 3px;
}

.mini-member em {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid #0a66c2;
  border-radius: 99px;
  padding: 0 10px;
  color: #0a66c2;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.mini-member:hover em {
  background: #eef3f8;
}

.mini-topic {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.event-feed-list {
  display: grid;
  gap: 8px;
}

.event-feed-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.event-feed-item time {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
}

.event-feed-item small {
  color: var(--muted);
  line-height: 1.45;
}

.event-feed-item.history time {
  color: #7b8780;
}

.event-block {
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto 34px;
}

.event-tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.event-tab-nav {
  display: flex;
  width: min(1120px, calc(100% - 96px));
  gap: 8px;
  margin: 0 auto 24px;
  border-bottom: 1px solid var(--line);
}

.event-tab-nav label {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  padding: 0 16px;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.event-tab-nav span {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  color: #52615a;
  background: #eef1ef;
  font-size: 12px;
}

#event-tab-upcoming:checked ~ .event-tab-nav label[for="event-tab-upcoming"],
#event-tab-history:checked ~ .event-tab-nav label[for="event-tab-history"] {
  color: var(--green-700);
  border-bottom-color: var(--green-700);
}

#event-tab-upcoming:checked ~ .event-tab-nav label[for="event-tab-upcoming"] span,
#event-tab-history:checked ~ .event-tab-nav label[for="event-tab-history"] span {
  color: #fff;
  background: var(--green-700);
}

.event-tab-panel {
  display: none;
}

#event-tab-upcoming:checked ~ .upcoming-panel,
#event-tab-history:checked ~ .history-panel {
  display: block;
}

.directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.directory-heading h2 {
  margin: 0;
  font-size: 24px;
}

.directory-heading span {
  color: var(--muted);
  font-weight: 700;
}

.directory-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 45, 38, 0.07);
}

.friend-card-large {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.friend-card-large img {
  width: 68px;
  height: 68px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16), 0 3px 10px rgba(0, 0, 0, 0.08);
}

.friend-card-large h2,
.event-card-large h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.event-card-large h2 a,
.history-event-card h3 a {
  color: inherit;
}

.friend-card-large p,
.event-card-large p {
  margin: 0 0 7px;
  color: var(--muted);
}

.friend-card-large span,
.friend-card-large small,
.event-card-large span,
.event-card-large small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.friend-card-large em {
  align-self: start;
  color: var(--green-700);
  font-style: normal;
  font-weight: 700;
}

.friend-card-large em::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  content: "";
  border-radius: 50%;
  background: #8ad08d;
}

.event-card-large {
  display: grid;
  grid-template-columns: 220px 1fr 360px;
  gap: 20px;
  overflow: hidden;
  padding: 16px;
}

.event-card-large > img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 6px;
  object-fit: cover;
}

.event-detail-page {
  display: grid;
  grid-template-columns: 300px 1fr 360px;
  gap: 22px;
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 45, 38, 0.07);
}

.event-detail-page > img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 6px;
  object-fit: cover;
}

.event-detail-main {
  align-self: center;
}

.event-detail-main time {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 10px;
  color: #fff;
  border-radius: 4px;
  background: var(--green-700);
  font-weight: 800;
}

.event-detail-main h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.event-recap-card {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfa;
}

.event-recap-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.event-recap-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.event-card-content {
  align-self: center;
}

.event-card-content time {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 10px;
  color: #fff;
  border-radius: 4px;
  background: var(--green-700);
  font-weight: 700;
}

.event-detail-list {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}

.event-detail-list p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  margin: 0;
  color: var(--muted);
}

.event-detail-list strong,
.history-event-card strong {
  color: #24312b;
}

.participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.participant-list.compact {
  margin: 8px 0;
}

.participant-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  color: #334039;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.participant-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.participant-avatar.fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #6f7a75;
  font-size: 12px;
  font-weight: 900;
}

.participant-avatar-link {
  display: inline-flex;
  border-radius: 50%;
}

.participant-tooltip {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 10px);
  display: grid;
  min-width: 160px;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #d7d3cc;
  border-radius: 8px;
  color: #1f1f1f;
  background: #fff;
  box-shadow: 0 12px 30px rgba(26, 45, 38, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.participant-tooltip::after {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid #d7d3cc;
  border-bottom: 1px solid #d7d3cc;
  content: "";
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.participant-tooltip strong,
.participant-tooltip small,
.participant-tooltip em {
  display: block;
}

.participant-tooltip small {
  color: #0a66c2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.participant-tooltip em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.participant-badge:hover .participant-tooltip,
.participant-badge:focus-within .participant-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.participant-badge a {
  color: inherit;
  text-decoration: none;
}

.event-score-panel,
.event-community-panel {
  width: min(1120px, calc(100% - 96px));
  margin: 24px auto 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 45, 38, 0.07);
}

.score-table-wrap {
  overflow-x: auto;
}

.event-score-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.event-score-table th,
.event-score-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.event-score-table th {
  color: #24312b;
  background: #f4f7f5;
  font-size: 12px;
  text-transform: uppercase;
}

.event-score-table td {
  color: var(--muted);
}

.event-score-table td:first-child,
.event-score-table td strong {
  color: var(--green-700);
  font-weight: 900;
}

.event-comment-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

.event-comment-list {
  display: grid;
  gap: 12px;
}

.event-comment-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfa;
}

.event-comment-card header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.event-comment-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.event-comment-card p {
  margin: 0;
  color: #24312b;
  line-height: 1.7;
}

.event-comment-card > img {
  width: 100%;
  max-height: 260px;
  margin-top: 12px;
  border-radius: 6px;
  object-fit: cover;
}

.event-comment-form {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfa;
}

.event-comment-form h2 {
  margin: 0;
  font-size: 20px;
}

.event-comment-form label {
  display: grid;
  gap: 6px;
}

.event-comment-form span {
  color: #4f5d57;
  font-size: 12px;
  font-weight: 800;
}

.event-comment-form input,
.event-comment-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font: inherit;
}

.event-comment-form textarea {
  min-height: 112px;
  padding-top: 10px;
  resize: vertical;
}

.event-comment-form button,
.score-sheet-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  padding: 0 14px;
  color: #fff;
  background: var(--green-700);
  font-weight: 800;
  cursor: pointer;
}

.score-sheet-link {
  width: max-content;
  margin-top: 8px;
  font-size: 13px;
}

.score-record-page {
  min-height: calc(100vh - 70px);
  padding: 38px 0 70px;
  background: #f3f2ef;
}

.score-record-hero,
.score-record-layout,
.score-history-panel,
.score-notice {
  width: min(1040px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
}

.score-record-hero {
  margin-bottom: 18px;
}

.score-record-hero h1 {
  margin: 4px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
}

.score-record-hero p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.score-record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.score-record-form,
.score-summary-panel,
.score-history-panel {
  border: 1px solid #d7d3cc;
  border-radius: 8px;
  background: #fff;
}

.score-record-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  padding: 20px;
}

.score-record-form h2,
.score-summary-panel h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: #1f1f1f;
  font-size: 22px;
}

.score-record-form label {
  display: grid;
  gap: 6px;
}

.score-record-form .full-field {
  grid-column: 1 / -1;
}

.score-record-form span {
  color: #4f5d57;
  font-size: 12px;
  font-weight: 900;
}

.score-record-form input {
  min-height: 42px;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  padding: 0 12px;
  background: #fff;
  font: inherit;
}

.score-record-form input:focus {
  outline: 2px solid rgba(10, 102, 194, 0.18);
  border-color: #0a66c2;
}

.score-record-form button {
  grid-column: 1 / -1;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--green-700);
  font-weight: 900;
  cursor: pointer;
}

.score-summary-panel {
  padding: 20px;
}

.score-summary-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.score-summary-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfa;
}

.score-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.score-summary-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--green-700);
  font-size: 32px;
  line-height: 1;
}

.score-history-panel {
  margin-top: 22px;
  padding: 20px;
}

.personal-score-table td:first-child {
  color: var(--muted);
  font-weight: 700;
}

.score-course-link {
  color: #0a66c2;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.score-notice.warning {
  border-color: #efd59c;
  color: #7a5312;
  background: #fff7e5;
}

.registration-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfa;
}

.registration-form label {
  display: grid;
  gap: 5px;
}

.registration-form span {
  color: #4f5d57;
  font-size: 12px;
  font-weight: 700;
}

.registration-form input,
.registration-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.registration-form textarea {
  min-height: 72px;
  padding-top: 9px;
  resize: vertical;
}

.registration-form .full-field,
.registration-form button {
  grid-column: 1 / -1;
}

.registration-form button {
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--green-700);
  font-weight: 800;
  cursor: pointer;
}

.notice-success {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #b8dfbd;
  border-radius: 6px;
  color: #0d5c2f;
  background: #eaf8ed;
  font-weight: 700;
}

.empty-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.history-event-block {
  margin-top: 44px;
}

.history-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.history-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 16px;
  overflow: hidden;
  padding: 14px;
}

.history-event-card img {
  width: 100%;
  height: 138px;
  border-radius: 6px;
  object-fit: cover;
  filter: saturate(0.72);
}

.history-event-card time {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 9px;
  color: #52615a;
  border-radius: 4px;
  background: #eef1ef;
  font-size: 12px;
  font-weight: 800;
}

.history-event-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.history-event-card p,
.history-event-card span,
.history-event-card small {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.55;
}

.history-event-card b {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #fff;
  border-radius: 99px;
  background: #7b8780;
  font-size: 12px;
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px 24px;
  }

  .main-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .hero-inner,
  .search-panel,
  .content-section,
  .dashboard-grid,
  .footer-grid,
  .directory-hero,
  .directory-grid,
  .course-directory,
  .tournament-grid,
  .event-block,
  .notice-success,
  .community-layout,
  .chat-layout,
  .discussion-detail,
  .reply-thread,
  .copyright {
    width: min(100% - 36px, 720px);
  }

  .search-panel,
  .course-grid,
  .dashboard-grid,
  .event-grid,
  .map-social,
  .footer-grid,
  .friend-directory,
  .course-directory,
  .tournament-grid,
  .history-event-grid,
  .event-card-large {
    grid-template-columns: 1fr 1fr;
  }

  .event-card-large {
    grid-template-columns: 180px 1fr;
  }

  .event-detail-page {
    width: min(100% - 36px, 720px);
    grid-template-columns: 1fr;
  }

  .event-score-panel,
  .event-community-panel,
  .event-tab-nav {
    width: min(100% - 36px, 720px);
  }

  .event-comment-grid {
    grid-template-columns: 1fr;
  }

  .score-record-hero,
  .score-record-layout,
  .score-history-panel,
  .score-notice {
    width: min(100% - 36px, 720px);
  }

  .score-record-layout,
  .score-record-form {
    grid-template-columns: 1fr;
  }

  .community-layout,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .topic-card {
    grid-template-columns: 1fr;
  }

  .topic-card dl {
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .social-layout {
    width: min(100% - 36px, 720px);
    grid-template-columns: 1fr;
  }

  .social-sidebar {
    display: none;
  }

  .registration-form {
    grid-column: 1 / -1;
  }

  .search-button {
    grid-column: 1 / -1;
  }

  .score-panel,
  .featured-event {
    grid-column: 1 / -1;
  }

  .friend-profile {
    width: min(100% - 36px, 720px);
  }

  .news-detail {
    width: min(100% - 36px, 720px);
  }

  .map-block,
  .social-block {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 640px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    gap: 14px;
  }

  .brand {
    min-width: 0;
  }

  .header-actions {
    width: 100%;
  }

  .hero-inner {
    padding: 46px 0 58px;
  }

  .hero-points,
  .hero-actions {
    gap: 10px;
  }

  .community-hero,
  .chat-panel header {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-panel,
  .course-grid,
  .dashboard-grid,
  .event-grid,
  .map-social,
  .map-block,
  .footer-grid,
  .friend-directory,
  .event-card-large,
  .course-directory,
  .tournament-grid,
  .history-event-grid,
  .site-footer form {
    grid-template-columns: 1fr;
  }

  .friend-card-large {
    grid-template-columns: 58px 1fr;
  }

  .friend-profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .message-bubble {
    max-width: 100%;
  }

  .composer-actions,
  .inline-comment-form {
    grid-template-columns: 1fr;
  }

  .composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .friend-card-large em {
    grid-column: 2;
  }

  .event-card-large > img {
    min-height: 180px;
  }

  .event-detail-page > img {
    min-height: 220px;
  }

  .registration-form {
    grid-template-columns: 1fr;
  }

  .gear-form,
  .member-event-card {
    grid-template-columns: 1fr;
  }

  .member-event-card time {
    grid-row: auto;
    justify-content: flex-start;
    padding: 0 10px;
  }

  .history-event-card {
    grid-template-columns: 1fr;
  }

  .history-event-card img {
    height: 180px;
  }

  .tournament-card {
    grid-template-columns: 1fr;
  }

  .news-detail > img {
    height: 230px;
  }

  .news-list li {
    grid-template-columns: 68px 1fr;
  }

  .news-list time {
    grid-column: 2;
  }

  .event-card,
  .featured-event {
    grid-template-columns: 96px 1fr;
  }

  .featured-event img {
    position: static;
  }

  .featured-event::after {
    display: none;
  }

  .featured-event div {
    width: auto;
    margin: 0;
    color: var(--ink);
  }

  .featured-event p,
  .featured-event span {
    color: var(--muted);
  }

  .featured-event a {
    color: var(--green-700);
    border-color: var(--green-700);
    background: #fff;
  }

  .map-block img {
    height: 210px;
  }

  .social-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   NEW FEATURES: History events same style as coming events
   ============================================================ */

.history-event-ended {
  position: relative;
  opacity: 0.92;
}

.history-event-ended::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(0,0,0,0.04);
  pointer-events: none;
  z-index: 1;
}

.history-badge {
  display: inline-block;
  background: #757575;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.history-event-ended .registration-form {
  display: none;
}

.score-sheet-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.score-sheet-link:hover {
  text-decoration: underline;
}

/* ============================================================
   NEW FEATURES: Create event bar
   ============================================================ */

.event-actions-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0 var(--section-padding);
  margin-bottom: 8px;
}

/* ============================================================
   NEW FEATURES: Course search autocomplete
   ============================================================ */

#score-course-input:focus {
  outline: none;
  border-color: var(--green-700);
}

#course-suggestions div:last-child {
  border-bottom: none;
}

/* ============================================================
   NEW FEATURES: Admin course meta box table
   ============================================================ */

.form-table td input[type="text"],
.form-table td input[type="url"],
.form-table td input[type="number"] {
  border-radius: 5px;
  border: 1.5px solid #ddd;
  padding: 7px 10px;
}

/* ============================================================
   NEW: + 发起活动 button inside tab nav
   ============================================================ */

.event-tab-nav {
  display: flex;
  align-items: center;
}

.create-event-tab-btn {
  margin-left: auto;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.15s;
}

.create-event-tab-btn:hover {
  background: #1b5e20;
}

/* Hide old standalone bar if still present */
.event-actions-bar {
  display: none;
}

/* ============================================================
   HAMBURGER MENU — mobile
   ============================================================ */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  margin-left: auto;
  flex-shrink: 0;
  transition: background 0.15s;
  order: 2;
}

.hamburger-btn:hover {
  background: rgba(0,0,0,0.06);
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink, #1a1a1a);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.15s ease;
  transform-origin: center;
}

.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  /* Show hamburger */
  .hamburger-btn {
    display: flex;
  }

  /* Header becomes a 2-col grid: logo | hamburger
     Below that: nav (hidden until open), then actions */
  .site-header {
    display: grid;
    grid-template-areas:
      "brand hamburger"
      "nav   nav"
      "actions actions";
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 0;
    column-gap: 0;
    padding: 12px 18px;
  }

  .brand          { grid-area: brand; min-width: 0; }
  .hamburger-btn  { grid-area: hamburger; margin-left: 8px; }
  .main-nav       { grid-area: nav; }
  .header-actions { grid-area: actions; }

  /* Brand: tighten on small screens */
  .brand strong { font-size: 1rem; }
  .brand small  { display: none; }

  /* NAV: hidden by default, slides in when .nav-open */
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 4px 0 8px;
    margin-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.08);
    gap: 0;
    animation: navSlideIn 0.18s ease;
  }

  @keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .main-nav.nav-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 6px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--ink, #1a1a1a);
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    border-radius: 0;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a:hover {
    background: rgba(0,0,0,0.04);
    padding-left: 10px;
  }

  /* Active link in mobile nav — left green bar */
  .main-nav a.active {
    color: var(--green-700, #2e7d32);
    font-weight: 700;
    border-left: 3px solid var(--green-700, #2e7d32);
    padding-left: 10px;
    background: rgba(46,125,50,0.04);
  }

  /* Header actions: show beneath nav when open, always visible otherwise */
  .header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    padding: 10px 0 2px;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 4px;
  }

  .header-actions .login-button,
  .header-actions .outline-button {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  /* User widget in mobile: compact */
  .header-user-widget {
    width: 100%;
  }

  .header-user-avatar-link {
    width: 100%;
    justify-content: flex-start;
    padding: 6px 0;
  }

  .header-user-name {
    display: block;
    max-width: none;
  }

  .header-user-dropdown {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-radius: 0;
    padding: 0;
  }

  .header-user-dropdown a {
    padding: 11px 6px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }

  .header-user-dropdown a:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   HISTORY EVENT: 已结束 badge — refined style
   ============================================================ */

.history-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: #888;
  border: 1.5px solid #ddd;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.history-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bbb;
  flex-shrink: 0;
}

/* ============================================================
   SCORE SHEET LINK — ghost pill style
   ============================================================ */

a.score-sheet-link,
.score-sheet-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 16px;
  background: transparent;
  color: var(--green-700, #2e7d32) !important;
  border: 1.5px solid var(--green-700, #2e7d32);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
  width: auto;
  min-height: auto;
  cursor: pointer;
}

a.score-sheet-link:hover,
.score-sheet-link:hover {
  background: var(--green-700, #2e7d32);
  color: #fff !important;
  text-decoration: none !important;
}

/* ============================================================
   PROFILE: score section + chart
   ============================================================ */

.member-score-panel {
  width: min(100% - 36px, 900px);
  margin: 32px auto 0;
}

.profile-score-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.profile-score-stats div {
  background: #f7f7f5;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.profile-score-stats span {
  display: block;
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-score-stats strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-700, #2e7d32);
}

.score-chart-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 20px 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.profile-add-score {
  margin-top: 24px;
  background: #f7f7f5;
  border-radius: 14px;
  padding: 22px 20px;
}

.profile-add-score h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
}

.profile-score-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.profile-score-form .full-field {
  grid-column: 1;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
}

.profile-avatar-wrap img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.avatar-edit-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-700, #2e7d32);
  color: #fff;
  border: 2px solid #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 640px) {
  .profile-score-form {
    grid-template-columns: 1fr 1fr;
  }

  .profile-score-form .full-field {
    grid-column: 1 / -1;
  }

  .profile-score-form button {
    grid-column: 1 / -1;
  }

  .profile-score-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   HEADER USER WIDGET — logged-in avatar + dropdown
   ============================================================ */

.header-user-widget {
  position: relative;
  display: flex;
  align-items: center;
}

.header-user-avatar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 24px;
  transition: background 0.15s;
  cursor: pointer;
}

.header-user-avatar-link:hover {
  background: rgba(0,0,0,0.06);
}

.header-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
  flex-shrink: 0;
}

.header-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  min-width: 160px;
  z-index: 1000;
  overflow: hidden;
  padding: 6px 0;
}

.header-user-widget:hover .header-user-dropdown,
.header-user-widget:focus-within .header-user-dropdown {
  display: block;
}

.header-user-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--ink, #1a1a1a);
  text-decoration: none;
  transition: background 0.12s;
  white-space: nowrap;
}

.header-user-dropdown a:hover {
  background: #f5f5f5;
}

.header-user-dropdown a:last-child {
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
  padding-top: 10px;
  color: #d32f2f;
}

@media (max-width: 820px) {
  .header-user-name {
    display: none;
  }

  .header-user-dropdown {
    right: -10px;
  }
}

/* ============================================================
   AUTH PAGES: /login/ and /register/
   ============================================================ */

.auth-page-main {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 80px;
  background: #f3f2ef;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
}

.auth-card-header {
  background: var(--green-700, #2e7d32);
  color: #fff;
  padding: 32px 36px 28px;
}

.auth-card-header h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.auth-card-header p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.85;
  color: #fff;
}

.auth-form {
  padding: 28px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.88rem;
}

.auth-form label span {
  font-weight: 600;
  color: #444;
}

.auth-form label span em {
  color: #d32f2f;
  font-style: normal;
  margin-left: 2px;
}

.auth-form label small {
  font-size: 0.78rem;
  color: #999;
  margin-top: 2px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="url"],
.auth-form input[type="number"] {
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 9px;
  font-size: 0.95rem;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--green-700, #2e7d32);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.auth-divider {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #aaa;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  margin-top: 2px;
}

.auth-remember {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  font-size: 0.88rem;
  color: #666;
  cursor: pointer;
}

.auth-remember input {
  width: auto !important;
}

.auth-submit {
  width: 100%;
  padding: 13px;
  background: var(--green-700, #2e7d32);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
}

.auth-submit:hover {
  background: #1b5e20;
}

.auth-switch {
  text-align: center;
  font-size: 0.88rem;
  color: #888;
  margin: 0;
}

.auth-switch a {
  color: var(--green-700, #2e7d32);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-error {
  margin: 0 36px;
  padding: 12px 16px;
  background: #fff3f3;
  border: 1.5px solid #ffcdd2;
  border-radius: 9px;
  color: #c62828;
  font-size: 0.88rem;
  font-weight: 600;
}

@media (max-width: 520px) {
  .auth-form {
    padding: 20px 20px 28px;
  }

  .auth-card-header {
    padding: 24px 20px 20px;
  }

  .auth-error {
    margin: 0 20px;
  }
}
