:root {
  --orange: #ff9630;
  --line: #77715c;
  --blue: #1018cf;
  --green: #009f47;
  --red: #97001e;
  --black: #111;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body.events-body {
  min-height: 100vh;
  margin: 0;
  background: var(--orange);
  color: var(--black);
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
}
a { color: var(--blue); text-decoration: underline; }

.board-header {
  display: flex;
  min-height: 138px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 20px 18px 0;
}
.event-board-header {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: start;
}
.event-board-header .otppv-button {
  justify-self: center;
  align-self: start;
  position: relative;
  left: clamp(76px, 13vw, 190px);
  top: 44px;
}
.event-board-header .board-title { justify-self: end; }
.board-logo img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.15);
}
.board-title {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  padding-top: 8px;
  font-family: Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
.board-title span { font-size: clamp(1.85rem, 4vw, 2.9rem); }
.board-title small { font-size: .8rem; }
.board-main { padding: 0 8px 12px; }
.edition { margin: 0 0 14px; }
.ascii-rule { margin: 0 0 16px; font-family: monospace; }
.board-links { margin-bottom: 22px; font-family: Arial, Helvetica, sans-serif; line-height: 1.25; }
.board-links a { margin-right: .18rem; }
.add-listing { color: var(--green); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.message-board { color: var(--blue); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.add-place-link { color: var(--red); font-size: clamp(1.05rem, 2.3vw, 1.55rem); font-weight: 900; white-space: nowrap; }
.edit-listing { color: var(--red); }

.event-table-hint { display: none; margin: 0 0 4px; font: 800 .72rem/1 monospace; text-align: right; }
.event-table-wrap {
  width: calc(100% + 8px);
  margin-left: -8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.event-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 4px 6px;
  table-layout: fixed;
}
.event-table th,
.event-table td {
  border: 1px solid var(--line);
  padding: 8px 7px;
  text-align: center;
  vertical-align: middle;
}
.event-table th { font: 700 1.45rem/1 Arial, Helvetica, sans-serif; }
.event-table th:nth-child(1) { width: 12%; }
.event-table th:nth-child(2) { width: 22%; }
.event-table th:nth-child(3) { width: 16%; }
.event-table th:nth-child(4) { width: 34%; }
.event-table th:nth-child(5) { width: 10%; }
.event-table th:nth-child(6) { width: 6%; }
.event-table td { min-height: 58px; }
.event-edit-cell { padding-inline: 3px !important; }
.event-row-edit { display: inline-block; border: 1px solid var(--black); background: #ffffff66; color: var(--red); padding: 3px 5px; font: 900 .62rem/1 Arial, Helvetica, sans-serif; text-decoration: none; }
.event-row-edit:hover, .event-row-edit:focus-visible { background: var(--black); color: var(--cream); }
.event-time { display: block; margin-top: 5px; color: #4f3428; font: 800 .78rem/1.2 Arial, Helvetica, sans-serif; }
.event-etc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; }
.event-flyer { display: block; flex: 0 0 auto; }
.event-flyer img { display: block; width: 92px; height: 112px; border: 1px solid var(--black); background: #111; object-fit: cover; }
.event-contact-list { display: grid; gap: 5px; justify-items: center; }
.event-contact-list a, .event-contact-list span { color: #171717a8; font: 800 .74rem/1.15 Arial, Helvetica, sans-serif; overflow-wrap: anywhere; }
.event-contact-list a:hover, .event-contact-list a:focus-visible { color: var(--blue); }
.empty-row td { padding: 30px 12px; }
.board-footer { padding: 0 0 8px; text-align: center; }
.stealth-admin {
  position: fixed;
  z-index: 50;
  top: 46%;
  right: 0;
  display: grid;
  width: 28px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  background: transparent;
  color: transparent;
  font: 700 .72rem Arial, Helvetica, sans-serif;
  text-decoration: none;
  writing-mode: vertical-rl;
  opacity: 0;
}
.stealth-admin:hover,
.stealth-admin:focus-visible {
  border-color: #111;
  background: #111;
  color: #fff;
  opacity: .9;
  outline: 2px solid #fff;
  outline-offset: -4px;
}
body.directory-body:not(.art-bazar-body) .stealth-admin {
  right: auto;
  left: 0;
}
.publish-success {
  border: 2px solid var(--green);
  background: #fff6;
  padding: 10px 12px;
  font: 700 1rem/1.35 Arial, Helvetica, sans-serif;
}

.otppv-button {
  display: inline-flex;
  min-width: min(100%, 340px);
  margin: 4px 0 24px;
  border: 3px solid var(--black);
  background: #f7ef38;
  color: var(--black);
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--black);
  transform: rotate(-.45deg);
}
.otppv-button strong { font: 900 2rem/1 Arial, Helvetica, sans-serif; letter-spacing: -.08em; }
.otppv-button span { max-width: 160px; font: 700 .88rem/1.05 Arial, Helvetica, sans-serif; text-transform: uppercase; }
.otppv-button:hover, .otppv-button:focus-visible { transform: rotate(.35deg) translate(2px, 2px); box-shadow: 3px 3px 0 var(--black); }

body.directory-body {
  min-height: 100vh;
  margin: 0;
  background: #f4f0df;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, #1111 31px 32px);
}
body.directory-body:not(.art-bazar-body) {
  background-color: #fff;
  background-image: none;
}
.directory-shell { width: min(1180px, calc(100% - 24px)); margin: 0 auto; padding-bottom: 70px; }
.directory-header { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: start; padding: 18px 0 16px; border-bottom: 5px solid #111; }
.otppv-header { position: relative; grid-template-columns: auto auto 1fr; align-items: center; }
.directory-header img { width: 88px; height: 88px; border-radius: 50%; filter: grayscale(1) contrast(1.35); }
.directory-title h1 { margin: 0; font: 900 clamp(3.2rem, 10vw, 7.6rem)/.8 Arial Black, Arial, sans-serif; letter-spacing: -.1em; }
.directory-title p { margin: 10px 0 0; font: 700 clamp(.9rem, 2vw, 1.25rem)/1.1 monospace; text-transform: uppercase; }
.directory-platform-controls { display: grid; grid-template-columns: repeat(3, 20px); align-items: center; justify-self: end; gap: 3px 6px; margin-top: 2px; }
.directory-platform-controls .platform-download-label { grid-column: 1 / -1; justify-self: end; color: #555; font: 800 .44rem/1 ui-monospace, monospace; letter-spacing: .03em; white-space: nowrap; }
.directory-platform-button { display: grid; width: 20px; height: 20px; place-items: center; border: 0; background: transparent; color: #111; padding: 1px; font: 900 .75rem/1 Arial, sans-serif; text-decoration: none; cursor: pointer; }
.directory-platform-button.android { color: #777300; }
.directory-platform-button.support { font-size: .58rem; }
.directory-platform-button svg { width: 17px; height: 17px; fill: currentColor; }
.directory-platform-button:hover, .directory-platform-button:focus-visible { color: #d42172; outline: 1px dotted #111; outline-offset: 2px; }
.directory-nav { display: grid; gap: 8px; justify-items: end; text-align: right; font-weight: 800; text-transform: uppercase; }
.otppv-add-header .directory-nav { padding-top: 2.5rem; }
@media (min-width: 761px) {
  .otppv-header .directory-nav { padding-top: 2rem; }
}
.directory-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; padding: 24px 0; border-bottom: 2px solid #111; }
.directory-intro h2 { margin: 0; font: 900 clamp(1.7rem, 4vw, 3.2rem)/.95 Arial, sans-serif; text-transform: uppercase; }
.directory-intro p { margin: 0; line-height: 1.45; }
.directory-intro-copy { display: grid; gap: 12px; }
.otppv-header + .directory-intro { padding: 16px 0 12px; }
.otppv-wave-lockup {
  width: clamp(110px, 12vw, 145px);
  margin: 0;
  padding: 0;
  background: transparent;
}
.otppv-wave-lockup img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; filter: none; }
.directory-filter { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 8px; padding: 16px 0; border-bottom: 2px solid #111; }
.directory-filter input, .directory-filter select, .directory-form input, .directory-form select, .directory-form textarea {
  width: 100%; min-height: 44px; border: 2px solid #111; border-radius: 0; background: #fffef7; color: #111; padding: 9px; font: inherit;
}
.directory-filter button, .directory-form button { min-height: 44px; border: 2px solid #111; border-radius: 0; background: #111; color: #fff; padding: 9px 16px; font: 900 .95rem Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
.directory-count { margin: 18px 0 10px; font: 800 .9rem monospace; text-transform: uppercase; }
.place-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid #111; border-left: 2px solid #111; }
.place-card { min-width: 0; padding: 18px; border-right: 2px solid #111; border-bottom: 2px solid #111; background: #f4f0dfdd; }
.place-card:nth-child(4n+2), .place-card:nth-child(4n+3) { background: #efe66b99; }
.place-card h2 { margin: 4px 0 6px; font: 900 clamp(1.35rem, 3vw, 2rem)/.95 Arial, sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
.place-card p { margin: 7px 0; line-height: 1.35; }
.place-meta { font: 700 .8rem monospace; text-transform: uppercase; }
.place-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.place-tags span { border: 1px solid #111; padding: 3px 6px; font: 700 .72rem monospace; text-transform: uppercase; background: #fff8; }
.place-links { display: flex; flex-wrap: wrap; gap: 12px; font-weight: 800; text-transform: uppercase; }
.place-contact-label { margin-bottom: 2px !important; font: 700 .72rem/1 monospace; text-transform: uppercase; }
.place-card .place-contact-label + .place-links { margin-top: 0; }
.place-contact-note { font: 700 .75rem/1.3 monospace; text-transform: uppercase; }
.directory-empty { grid-column: 1/-1; padding: 42px 20px; border-right: 2px solid #111; border-bottom: 2px solid #111; text-align: center; font: 900 1.2rem monospace; }
.directory-install-dialog { width: min(90vw, 390px); border: 3px solid #fff; border-radius: 0; background: #0a0a0a; color: #fff; padding: 27px 20px 20px; box-shadow: 8px 8px 0 #f2ed35; }
.directory-install-dialog::backdrop { background: #000b; }
.directory-install-dialog strong { font: 900 1.45rem/1 Arial Black, Arial, sans-serif; }
.directory-install-dialog p { margin: 14px 0; line-height: 1.4; }
.directory-install-dialog ol { display: grid; gap: 9px; margin: 18px 0; padding-left: 25px; line-height: 1.35; }
.directory-install-dialog li::marker { color: #f2ed35; font-weight: 900; }
.directory-install-dialog a { color: #f2ed35; font-weight: 900; text-underline-offset: 3px; }
.directory-install-note { color: #ddd; font-size: .88rem; }
.directory-install-close { position: absolute; top: 5px; right: 7px; border: 0; background: transparent; color: #fff; padding: 0; font-size: 1.8rem; cursor: pointer; }
.directory-form-shell { width: min(840px, calc(100% - 24px)); margin: 0 auto 70px; }
.directory-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; border: 2px solid #111; background: #f4f0dfeb; }
.directory-form label { display: grid; align-content: start; gap: 5px; font-weight: 800; }
.directory-form .wide { grid-column: 1/-1; }
.tag-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tag-checks label { display: flex; align-items: center; gap: 7px; border: 1px solid #111; padding: 8px; font-size: .85rem; }
.tag-checks input { width: auto; min-height: auto; }
.directory-note { border: 2px solid #111; background: #efe66b; padding: 12px; font-weight: 800; }
.directory-admin-list { border-top: 3px solid #111; }
.directory-admin-item { border-bottom: 2px solid #111; padding: 14px 0; }
.directory-admin-item summary { cursor: pointer; font-weight: 900; }

.art-bazar-body {
  background-color: #dce51c;
  background-image:
    linear-gradient(#f4f0dfd9, #f4f0dfd9),
    url("art-bazar-button.webp");
  background-size: auto, 680px auto;
  background-attachment: scroll, fixed;
}
.art-bazar-header { border-bottom-width: 7px; }
.art-bazar-header .directory-nav { padding-top: .45rem; }
@media (min-width: 761px) {
  .art-bazar-header .directory-nav { padding-top: 2rem; }
}
.art-bazar-header .directory-title h1 { max-width: 900px; font-size: clamp(2.15rem, 6.4vw, 5.6rem); letter-spacing: -.075em; }
.art-bazar-header .directory-title p { color: #496000; }
.art-manifesto { border: 3px solid #111; background: #f4f0dfef; padding: clamp(16px, 3vw, 30px); margin: 22px 0; }
.art-manifesto h2 { margin: 0 0 12px; font: 900 clamp(1.8rem, 4vw, 3.8rem)/.92 Arial, sans-serif; text-transform: uppercase; }
.art-manifesto p { max-width: 940px; margin: 8px 0; font-size: 1.05rem; line-height: 1.45; }
.art-list { display: grid; gap: 22px; }
.art-state-group { display: grid; gap: 8px; }
.art-state-heading { margin: 0; padding: 5px 8px; border: 2px solid #111; background: #111; color: #f4f0df; font: 900 .88rem/1 monospace; letter-spacing: .12em; text-transform: uppercase; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.art-card { display: flex; min-width: 0; flex-direction: column; border: 3px solid #111; background: #f4f0df; box-shadow: 5px 5px 0 #111; }
.art-card:nth-child(3n+2) { transform: rotate(.35deg); }
.art-card:nth-child(3n+3) { transform: rotate(-.3deg); }
.art-image { display: block; width: 100%; aspect-ratio: 4 / 3; border-bottom: 3px solid #111; background: #151515; object-fit: contain; cursor: zoom-in; }
.art-image:focus-visible { outline: 5px solid #97001e; outline-offset: -5px; }
.art-lightbox { width: min(95vw, 76rem); max-width: none; max-height: 95dvh; margin: auto; border: 3px solid #111; padding: 3rem 1rem 1rem; overflow: hidden; background: #111; color: #f4f0df; box-shadow: 8px 8px 0 #dce51c, 0 2rem 7rem #000b; }
.art-lightbox::backdrop { background: #090909e8; backdrop-filter: blur(4px); }
.art-lightbox img { display: block; width: 100%; height: auto; max-height: calc(95dvh - 7rem); object-fit: contain; background: #080808; }
.art-lightbox p { margin: .75rem .2rem 0; font: 700 .9rem/1.35 monospace; text-transform: uppercase; }
.art-lightbox button { position: absolute; top: .55rem; right: .7rem; border: 2px solid #f4f0df; background: #111; color: #f4f0df; padding: .35rem .55rem; font: 900 .82rem Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
.art-lightbox button:hover, .art-lightbox button:focus-visible { background: #dce51c; color: #111; outline: none; }
.art-card-copy { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.art-card h2 { margin: 4px 0 6px; font: 900 clamp(1.05rem, 1.8vw, 1.35rem)/1 Arial, sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
.art-card p { margin: 5px 0; font-size: .88rem; line-height: 1.35; }
.art-price { margin-top: auto !important; padding-top: 10px; font: 900 1.12rem/1 Arial, sans-serif !important; }
.art-badge { display: inline-block; align-self: flex-start; border: 2px solid #111; padding: 4px 7px; background: #dce51c; font: 900 .76rem monospace; text-transform: uppercase; transform: rotate(-2deg); }
.art-badge.the-best { background: #111; color: #fff; transform: rotate(1.5deg); }
.art-badge.fresa { background: #ff95c8; }
.art-contact { overflow-wrap: anywhere; font-weight: 800; }
.art-posted { color: #575143; font: 700 .72rem monospace !important; text-transform: uppercase; }
.art-status { display: inline-block; align-self: flex-start; padding: 4px 7px; border: 2px solid #111; font: 900 .72rem monospace !important; }
.art-status.available { background: #a9ed7b; }
.art-status.sold { background: #ff7a82; }
.art-comments-link { font-weight: 900; }
.art-empty { grid-column: 1/-1; border: 3px solid #111; background: #f4f0df; padding: 40px 20px; text-align: center; font: 900 1.1rem monospace; }
.art-upload-note { border: 3px solid #111; background: #dce51c; padding: 12px 14px; font-weight: 800; }
.art-form input[type="file"] { padding: 8px; background: #fff; }
.price-warning { color: #97001e; font-weight: 900; }
.commented-art { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; margin: 22px 0 14px; border: 3px solid #111; background: #f4f0df; padding: 12px; }
.commented-art img { width: 100%; max-height: 160px; object-fit: contain; background: #111; }
.commented-art h2 { margin: 4px 0; font: 900 1.35rem/1 Arial, sans-serif; text-transform: uppercase; }
.comment-form { margin-bottom: 26px; }
.comment-feed { border-top: 5px solid #111; padding-top: 14px; }
.comment-feed > h2 { margin: 0 0 12px; font: 900 1rem monospace; letter-spacing: .08em; }
.comment-item { border: 2px solid #111; background: #f4f0df; padding: 12px 14px; margin-bottom: 9px; }
.comment-item p { margin: 4px 0; line-height: 1.35; }
.comment-piece, .comment-by { font: 700 .76rem monospace; text-transform: uppercase; }
.comment-by { color: #575143; }
.admin-comment { border-bottom: 2px solid #111; padding: 12px 0; }
.admin-comment p { margin: 5px 0; }

@media (max-width: 760px) {
  .directory-header { grid-template-columns: 70px 1fr; }
  .otppv-header { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .directory-platform-controls { grid-column: 1/-1; justify-self: end; }
  .directory-header img { width: 66px; height: 66px; }
  .directory-nav { grid-column: 1/-1; grid-template-columns: repeat(3, auto); justify-items: start; text-align: left; }
  .otppv-add-header .directory-nav { padding-top: .75rem; }
  .directory-intro { grid-template-columns: 1fr; gap: 14px; }
  .otppv-wave-lockup { width: 76px; margin: 0; padding: 0; }
  .directory-filter { grid-template-columns: 1fr; }
  .place-grid { grid-template-columns: 1fr; }
  .directory-form { grid-template-columns: 1fr; padding: 12px; }
  .directory-form .wide { grid-column: auto; }
  .tag-checks { grid-template-columns: 1fr 1fr; }
  .art-bazar-header .directory-title h1 { font-size: clamp(1.6rem, 8.2vw, 2.65rem); }
  .art-grid { grid-template-columns: 1fr; gap: 18px; }
  .art-card:nth-child(n) { transform: none; }
  .art-manifesto p { font-size: 1rem; }
  .commented-art { grid-template-columns: 90px 1fr; gap: 10px; }
  .commented-art h2 { font-size: 1.05rem; }
}

.public-submit {
  width: min(860px, calc(100% - 28px));
  margin: 0 auto 70px;
  font-family: Arial, Helvetica, sans-serif;
}
.public-submit h1 { margin: 12px 0 8px; }
.public-submit > p { max-width: 720px; line-height: 1.45; }
.form-error { border: 2px solid var(--red); background: #fff4; padding: 12px 14px; font-weight: 700; }
.trap-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.admin-body { font-family: Arial, Helvetica, sans-serif; }
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px clamp(14px, 4vw, 50px);
  border-bottom: 2px solid var(--black);
}
.admin-header img { width: 78px; height: 78px; border-radius: 50%; filter: grayscale(1) contrast(1.15); }
.admin-header > div { text-align: right; }
.admin-shell { width: min(980px, calc(100% - 28px)); margin: 28px auto 70px; }
.admin-shell h1,
.admin-shell h2 { margin: 0 0 18px; font-family: Arial, Helvetica, sans-serif; }
.admin-shell section { margin-bottom: 46px; }
.admin-notice { border: 2px solid var(--black); background: #fff4; padding: 12px 14px; font-weight: 700; }
.event-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
}
.event-form label { display: grid; gap: 5px; font-weight: 700; }
.mobile-event-example { display: none; color: #4f463d; font-size: .82rem; font-weight: 400; line-height: 1.3; }
.event-form .wide { grid-column: 1 / -1; }
.event-date-time { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contact-fields { margin: 0; border: 1px solid var(--line); padding: 12px; }
.contact-fields legend { padding: 0 6px; font-weight: 900; }
.contact-fields > p { margin: 0 0 10px; color: #473f36; font-size: .84rem; }
.contact-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-fields-grid label { min-width: 0; }
.saved-venue-picker small { color: #4f463d; font-size: .78rem; font-weight: 400; }
.flyer-reader {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  border: 2px solid var(--black);
  background: #ffed28;
  padding: 16px;
}
.flyer-reader-copy h2 { margin: 4px 0 8px; font-size: clamp(1.2rem, 3vw, 1.7rem); line-height: 1; text-transform: uppercase; }
.flyer-reader-copy p { margin: 0; line-height: 1.35; }
.flyer-reader-kicker { font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.flyer-reader-fields { display: grid; gap: 11px; }
.flyer-reader-fields small { font-size: .78rem; font-weight: 400; }
.flyer-reader-action { display: flex; align-items: center; gap: 12px; }
.flyer-reader-action button { flex: 0 0 auto; background: var(--red); }
.flyer-reader-action button:disabled { cursor: not-allowed; opacity: .48; }
.flyer-reader-status { margin: 0; font-size: .82rem; font-weight: 700; line-height: 1.3; }
.flyer-reader-status[data-state="error"] { color: #9f0712; }
.flyer-reader-status[data-state="success"] { color: #105d2e; }
.flyer-reader-preview { width: min(180px, 100%); max-height: 180px; border: 2px solid var(--black); object-fit: cover; }
.event-form input,
.event-form textarea,
.event-form select {
  width: 100%;
  border: 1px solid #333;
  border-radius: 0;
  background: #fff7e9;
  color: #111;
  padding: 10px;
  font: inherit;
}
.event-form input::placeholder,
.event-form textarea::placeholder { color: #4d463e88; opacity: 1; }
.edit-key-notice { border: 3px solid var(--black); background: #ffed28; padding: 14px; margin: 14px 0; }
.edit-key-notice p { margin: 5px 0 0; }
.saved-place-list { margin: 24px 0; border-top: 2px solid var(--black); padding-top: 12px; }
.saved-place-list summary { cursor: pointer; font-weight: 900; }
.saved-place-list ul { columns: 2; padding-left: 20px; }
.publish-check { display: flex !important; grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; }
.publish-check input { width: auto; }
.form-actions { display: flex; gap: 10px; }
.event-form button,
.delete-form button {
  border: 2px solid var(--black);
  border-radius: 0;
  background: var(--black);
  color: white;
  padding: 10px 16px;
  font: 700 1rem Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.saved-events { border-top: 2px solid var(--black); padding-top: 26px; }
.event-editor { border-bottom: 1px solid var(--line); padding: 12px 0; }
.event-editor summary { cursor: pointer; font-family: "Times New Roman", Times, serif; font-size: 1.1rem; }
.event-editor summary span { display: inline-block; min-width: 110px; }
.event-editor summary strong { float: right; font: 700 .75rem Arial, Helvetica, sans-serif; }
.compact-form { margin-top: 14px; }
.delete-form { margin: 10px 0 4px; text-align: right; }
.delete-form button { border-color: var(--red); background: transparent; color: var(--red); font-size: .85rem; }
.public-delete-event { margin-top: 28px; border: 2px solid var(--red); padding: 14px; }
.public-delete-event h2 { margin: 0 0 6px; color: var(--red); font: 900 1rem/1 Arial, Helvetica, sans-serif; }
.public-delete-event p { margin: 0; }
.admin-empty { border: 1px solid var(--line); padding: 20px; }

@media (min-width: 701px) and (max-width: 1100px) {
  .event-board-header .otppv-button { left: clamp(50px, 7vw, 80px); top: 40px; }
}

@media (max-width: 700px) {
  .board-header { min-height: 108px; padding: 12px 10px 0; gap: .5rem; }
  .event-board-header { position: relative; grid-template-columns: auto 1fr; min-height: 118px; }
  .event-board-header .board-logo { grid-column: 1; grid-row: 1; }
  .event-board-header .board-title { grid-column: 2; grid-row: 1; }
  .event-board-header .otppv-button {
    position: absolute;
    right: clamp(12px, 4vw, 18px);
    top: 67px;
    width: min(46vw, 160px);
    min-width: 0;
    margin: 0;
    padding: 4px 6px;
    gap: 5px;
    left: auto;
    box-shadow: 2px 2px 0 var(--black);
  }
  .event-board-header .otppv-button strong { font-size: 1rem; }
  .event-board-header .otppv-button span { max-width: 84px; font-size: .5rem; }
  .board-logo img { width: 78px; height: 78px; }
  .board-title { display: grid; justify-items: end; padding-top: 3px; white-space: normal; }
  .board-title span { font-size: clamp(1.5rem, 8.5vw, 2.25rem); }
  .board-title small { font-size: .68rem; }
  .edition { font-size: .92rem; }
  .add-listing, .message-board { font-size: 1.27rem; }
  .add-place-link { display: inline-block; margin-top: 4px; font-size: 1.05rem; }
  .event-table-hint { display: block; }
  .event-table-wrap { width: calc(100% + 16px); margin-left: -8px; overflow-x: auto; }
  .event-table {
    min-width: 690px;
    width: 690px;
    border-spacing: 2px 4px;
  }
  .event-table th,
  .event-table td {
    padding: 5px 3px;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .event-table th { font-size: .76rem; line-height: 1.05; }
  .event-table td { min-height: 0; font-size: .75rem; line-height: 1.22; }
  .event-table th:nth-child(1) { width: 12%; }
  .event-table th:nth-child(2) { width: 22%; }
  .event-table th:nth-child(3) { width: 16%; }
  .event-table th:nth-child(4) { width: 34%; }
  .event-table th:nth-child(5) { width: 10%; }
  .event-table th:nth-child(6) { width: 6%; }
  .event-row-edit { padding: 2px 3px; font-size: .54rem; }
  .event-flyer img { width: 76px; height: 94px; }
  .empty-row td { padding: 20px 5px; }
  .event-form { grid-template-columns: 1fr; padding: 12px; }
  .event-form .wide, .publish-check { grid-column: auto; }
  .event-date-time, .contact-fields-grid { grid-template-columns: 1fr; }
  .saved-place-list ul { columns: 1; }
  .mobile-event-example { display: block; }
  .event-editor summary strong { float: none; display: block; margin-top: 4px; }
}

@media (max-width: 700px) {
  .flyer-reader { grid-template-columns: 1fr; padding: 13px; }
  .flyer-reader-action { align-items: flex-start; flex-direction: column; }
  .flyer-reader-action button { width: 100%; }
}

/* Header without logo; OTPPV far left and a plain "Nido" link right above the table */
.event-board-header { display: flex; justify-content: flex-end; min-height: 0; padding-bottom: 6px; }
.event-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 22px 0 14px; }
.event-topbar .otppv-button { margin: 0; }
.nido-word { color: var(--black); font: 900 1.6rem/1 Arial, Helvetica, sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.nido-word:hover, .nido-word:focus-visible { color: #fff; }
@media (max-width: 700px) {
  .event-board-header { display: flex; min-height: 0; padding-top: 44px; }
  .event-topbar .otppv-button { min-width: 0; padding: 7px 10px; gap: 10px; box-shadow: 3px 3px 0 var(--black); }
  .event-topbar .otppv-button strong { font-size: 1.35rem; }
  .event-topbar .otppv-button span { max-width: 110px; font-size: .62rem; }
  .nido-word { font-size: 1.35rem; }
}

/* Nido on the left in yellow, smaller OTPPV on the right */
.nido-word { color: #f7ef38; -webkit-text-stroke: 1.5px var(--black); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--black); text-decoration-color: var(--black); }
.nido-word:hover, .nido-word:focus-visible { color: #fff; }
.event-topbar .otppv-button { min-width: 0; padding: 6px 10px; gap: 10px; box-shadow: 3px 3px 0 var(--black); }
.event-topbar .otppv-button strong { font-size: 1.3rem; }
.event-topbar .otppv-button span { max-width: 100px; font-size: .58rem; }
@media (max-width: 700px) {
  .event-topbar .otppv-button { padding: 5px 8px; gap: 7px; }
  .event-topbar .otppv-button strong { font-size: 1.1rem; }
  .event-topbar .otppv-button span { max-width: 84px; font-size: .52rem; }
}

/* Plain yellow "Nido" in the same font as the page text */
.nido-word { color: #f7ef38; -webkit-text-stroke: 0; text-shadow: none; font: 400 1.3rem/1.2 inherit; font-family: inherit; text-decoration: none; }
.nido-word:hover, .nido-word:focus-visible { color: #fff; text-decoration: underline; }
/* Cat photo under GUANAJUATO [ARTE + UNDERGROUND] */
.board-title-col { display: grid; justify-items: end; gap: 8px; }
.event-cat { display: block; width: 144px; height: auto; border: 2px solid var(--black); }
@media (max-width: 700px) {
  .nido-word { font-size: 1.1rem; }
  .event-cat { width: 40px; border-width: 1px; }
}
.board-title-col .board-title { grid-column: auto; grid-row: auto; }
@media (max-width: 700px) {
  .event-board-header { padding-top: 34px; }
  .event-topbar .otppv-button { padding: 4px 7px; gap: 6px; box-shadow: 2px 2px 0 var(--black); }
  .event-topbar .otppv-button strong { font-size: 1rem; }
  .event-topbar .otppv-button span { max-width: 78px; font-size: .5rem; }
}
.event-board-header .board-title-col { grid-template-columns: auto; }
.event-board-header .board-title-col .board-title { grid-column: 1; grid-row: auto; }
.event-board-header .board-title-col .event-cat { grid-column: 1; }
@media (max-width: 700px) {
  main .event-topbar a.otppv-button { padding: 4px 7px; gap: 6px; min-width: 0; box-shadow: 2px 2px 0 var(--black); }
  main .event-topbar a.otppv-button strong { font-size: 1rem; }
  main .event-topbar a.otppv-button span { max-width: 78px; font-size: .5rem; }
}

/* Right column: title, cat, OTPPV, Nido. Left text starts at the top. */
.event-board-header { float: right; display: block; min-height: 0; padding: 40px 18px 10px 14px; }
.event-board-header .board-title-col { display: grid; justify-items: end; gap: 10px; }
.event-board-header .board-title-col a.otppv-button { position: static; left: auto; top: auto; margin: 4px 0 0; min-width: 0; padding: 5px 9px; gap: 8px; box-shadow: 3px 3px 0 var(--black); }
.event-board-header .board-title-col a.otppv-button strong { font-size: 1.2rem; }
.event-board-header .board-title-col a.otppv-button span { max-width: 92px; font-size: .55rem; }
.event-board-header .nido-word { margin-top: 2px; }
.board-main { padding-top: 14px; }
.event-table-hint, .event-table-wrap { clear: both; }
@media (max-width: 700px) {
  .event-board-header { padding: 40px 8px 6px 8px; }
  .event-board-header .board-title-col { gap: 6px; }
  .event-board-header .board-title span { font-size: 1.35rem; }
  .event-board-header .board-title small { font-size: .55rem; }
  .event-board-header .board-title-col a.otppv-button { padding: 3px 6px; gap: 5px; box-shadow: 2px 2px 0 var(--black); }
  .event-board-header .board-title-col a.otppv-button strong { font-size: .9rem; }
  .event-board-header .board-title-col a.otppv-button span { max-width: 64px; font-size: .45rem; }
  .event-board-header .nido-word { font-size: 1rem; }
  .board-main { padding-top: 10px; }
}
/* Phones: beat the language-switcher sheet; flags back in the top-right corner */
@media (max-width: 700px) {
  .event-board-header .board-title-col .board-title { grid-column: 1; }
  .event-board-header .board-title-col .board-title span { font-size: 22px; }
  .event-board-header .board-title-col .board-title small { font-size: 9px; }
  .event-board-header .board-title-col a.otppv-button strong { font-size: 14px; }
  .event-board-header .board-title-col a.otppv-button span { max-width: 60px; font-size: 7px; }
  .event-board-header .board-title-col .nido-word { font-size: 16px; }
  .event-board-header .event-language-switcher.global-language-switcher { position: absolute; top: 8px; right: 8px; margin: 0; }
  .event-board-header { position: static; padding-top: 32px; }
}
@media (max-width: 700px) {
  .event-board-header .board-title-col a.otppv-button { width: auto; right: auto; }
}

.event-board-header .board-title-col a.otppv-button { justify-self: end; }


@media (max-width: 700px) {
  .event-board-header.language-switcher-host { position: static; }
}

/* The ===== line runs edge to edge */
.ascii-rule { display: block; width: auto; overflow: hidden; white-space: nowrap; text-overflow: clip; }
@media (max-width: 700px) {
  .ascii-rule { clear: both; margin-left: -8px; margin-right: -8px; padding: 0 8px; }
}

/* Places list and place pages */
.venue-add { margin: 18px 0 22px; border: 3px solid var(--black); background: #ffb066; box-shadow: 4px 4px 0 var(--black); }
.venue-add > summary { cursor: pointer; padding: 12px 14px; font: 900 1.15rem/1.1 Arial, Helvetica, sans-serif; list-style: none; }
.venue-add > summary::-webkit-details-marker { display: none; }
.venue-add[open] > summary { border-bottom: 2px solid var(--black); }
.venue-add .event-form { padding: 14px; }
.venue-add .opt { font-weight: 400; font-size: .85em; opacity: .75; }
.venue-search { display: flex; align-items: center; gap: 8px; max-width: 720px; padding: 2px 10px; border: 2px solid var(--black); background: #fff7ec; }
.venue-search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; font: inherit; font-size: 1rem; outline: none; }
.venue-count { margin: 10px 0 6px; font: 800 .8rem/1 monospace; text-transform: uppercase; }
.venue-list { display: grid; gap: 10px; max-width: 720px; margin: 0; padding: 0; list-style: none; }
.venue-item a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border: 2px solid var(--black); background: #fff7ec; color: var(--black); text-decoration: none; }
.venue-item a:hover, .venue-item a:focus-visible { background: #f7ef38; }
.venue-item strong { font: 900 1.15rem/1.15 Arial, Helvetica, sans-serif; }
.venue-item .venue-kind { grid-column: 1; font: 700 .72rem/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.venue-item .venue-address { grid-column: 1; font-size: .95rem; }
.venue-item .venue-more { grid-column: 2; grid-row: 1 / span 3; align-self: center; font: 900 .8rem/1 Arial, sans-serif; }
.venue-empty { padding: 14px; border: 2px dashed var(--black); }
.venue-detail h1 { margin-bottom: 2px; }
.venue-detail .venue-kind { margin: 0 0 14px; font: 800 .8rem/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.venue-facts { display: grid; gap: 10px; max-width: 720px; margin: 0 0 18px; }
.venue-facts div { padding: 10px 12px; border: 2px solid var(--black); background: #fff7ec; }
.venue-facts dt { font: 800 .72rem/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.venue-facts dd { margin: 4px 0 0; font-size: 1.02rem; line-height: 1.4; }
.venue-btn { display: inline-block; margin-top: 8px; padding: 8px 12px; background: var(--black); color: #fff !important; font: 800 .9rem/1 Arial, sans-serif; text-decoration: none; }
.venue-about { max-width: 720px; line-height: 1.5; }
.venue-detail h2 { margin: 22px 0 8px; font: 900 1.1rem/1.2 Arial, Helvetica, sans-serif; text-transform: uppercase; }
.venue-events { display: grid; gap: 8px; max-width: 720px; margin: 0; padding: 0; list-style: none; }
.venue-events a { display: grid; gap: 2px; padding: 10px 12px; border: 2px solid var(--black); background: #f7ef38; color: var(--black); text-decoration: none; }
.venue-events.past a { background: #fff7ec; opacity: .8; }
.ve-date { font: 700 .8rem/1.2 monospace; text-transform: uppercase; }
.venue-admin { margin-top: 26px; }
.venue-link { color: inherit; }

/* Event details in the table: 4 lines, then "ver más" */
.event-details { min-width: 0; }
.event-details-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.event-details.open .event-details-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.event-more { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--blue, #1b1bd8); font: 700 .85rem/1.2 Arial, sans-serif; text-decoration: underline; cursor: pointer; }
.event-form textarea { overflow: hidden; resize: vertical; min-height: 6em; }

/* Phones: keep the flags from sitting on top of the page title */
@media (max-width: 700px) {
  .board-header.submit-header { padding-top: 36px; }
}

/* Bigger, easier text in the events list; tap the description to open it */
.event-details.can-open .event-details-text { cursor: pointer; }
.event-table td { font-size: 1.05rem; line-height: 1.35; }
.event-time { font-size: .9rem; }

/* Phones: every event is a card that fits the screen — no sideways scrolling */
@media (max-width: 700px) {
  .event-table-hint { display: none !important; }
  .event-table-wrap { width: auto; margin: 0; overflow: visible; }
  .event-table, .event-table tbody, .event-table tr, .event-table td { display: block; width: auto !important; min-width: 0; }
  .event-table { min-width: 0 !important; border: 0; }
  .event-table thead { display: none; }
  .event-table tr { position: relative; margin: 0 0 14px; padding: 12px 12px 10px; border: 2px solid var(--black); background: #ffb066; box-shadow: 4px 4px 0 var(--black); }
  .event-table td { padding: 0; border: 0 !important; text-align: left; font-size: 1.02rem; line-height: 1.38; min-height: 0; }
  .event-table td.event-date-cell { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding-right: 64px; }
  .event-table td.event-date-cell strong { font: 800 1rem/1.25 Arial, Helvetica, sans-serif; text-transform: capitalize; }
  .event-table td.event-date-cell .event-time { display: inline; margin: 0; font-size: .95rem; }
  .event-table td.event-title-cell { margin: 6px 0 4px; font: 900 1.35rem/1.15 Arial, Helvetica, sans-serif; }
  .event-table td.event-title-cell a { color: var(--black); }
  .event-table td.event-venue-cell { margin-bottom: 8px; font-size: 1rem; }
  .event-table td.event-venue-cell br { display: none; }
  .event-table td.event-venue-cell strong::after { content: " · "; font-weight: 400; }
  .event-table td.event-etc-cell .event-etc { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; }
  .event-flyer img { width: 84px; height: 104px; }
  .event-details-text { font-size: 1rem; line-height: 1.4; }
  .event-table td.event-contact-cell { margin-top: 8px; font-size: .95rem; }
  .event-table td.event-edit-cell { position: absolute; top: 10px; right: 10px; }
  .event-table tr.empty-row td { text-align: center; }
}
@media (max-width: 700px) {
  .event-table td.event-date-cell strong { text-transform: none; }
  .event-table td.event-date-cell strong::first-letter { text-transform: uppercase; }
}
@media (max-width: 700px) { .event-table td.event-contact-cell.is-empty { display: none; } }

/* Place page: map */
.venue-map { margin: 10px 0 8px; border: 2px solid var(--black); background: #ddd; aspect-ratio: 4 / 3; max-height: 320px; overflow: hidden; }
.venue-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.venue-map-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.venue-btn.ghost { background: #fff7ec; color: var(--black) !important; border: 2px solid var(--black); }

/* Phones: a little smaller so more events fit while scrolling */
@media (max-width: 700px) {
  .event-table tr { margin-bottom: 10px; padding: 9px 10px 8px; box-shadow: 3px 3px 0 var(--black); }
  .event-table td { font-size: .92rem; line-height: 1.32; }
  .event-table td.event-date-cell strong { font-size: .88rem; }
  .event-table td.event-date-cell .event-time { font-size: .85rem; }
  .event-table td.event-title-cell { margin: 4px 0 3px; font-size: 1.12rem; }
  .event-table td.event-venue-cell { margin-bottom: 6px; font-size: .9rem; }
  .event-flyer img { width: 70px; height: 86px; }
  .event-details-text { font-size: .9rem; line-height: 1.35; -webkit-line-clamp: 3; line-clamp: 3; }
  .event-table td.event-contact-cell { margin-top: 6px; font-size: .85rem; }
  .venue-detail h1 { font-size: 1.7rem; }
  .venue-events a { padding: 8px 10px; }
  .venue-events strong { font-size: .95rem; }
  .ve-date { font-size: .72rem; }
}

.venue-facts .venue-map-btns { padding: 0; border: 0; background: none; }
.venue-facts .venue-map { padding: 0; }

/* Events grouped by day: the date sits above its events */
.event-table tr.event-day-row th { padding: 14px 10px 8px; border-left: 0; border-right: 0; background: #fff7ec; text-align: left; font: 900 1.6rem/1.15 Arial, Helvetica, sans-serif; letter-spacing: -.01em; }
.event-table tr.event-day-row:first-child th { padding-top: 10px; }
.event-table td.event-date-cell .event-time { display: block; margin: 0; font-weight: 800; }
@media (max-width: 700px) {
  .event-table tr.event-day-row { margin: 18px 0 8px; padding: 0; border: 0; background: none; box-shadow: none; }
  .event-table tr.event-day-row:first-child { margin-top: 4px; }
  .event-table tr.event-day-row th { display: block; padding: 0 0 4px; border: 0; border-bottom: 3px solid var(--black); background: none; font-size: 1.3rem; }
  .event-table td.event-date-cell { padding-right: 64px; }
  .event-table td.event-date-cell.no-time { display: none; }
  .event-table td.event-date-cell .event-time { display: inline; font-size: .95rem; }
  .event-table td.event-date-cell.no-time + td.event-title-cell { margin-top: 0; padding-right: 64px; }
}
.event-table tr.event-day-row th { width: auto !important; }
@media (max-width: 700px) { .event-table tr.event-day-row th { width: auto !important; min-width: 0; white-space: normal; } }
