/* ==========================================================================
   Recreated from goparoo-bk/includes/header-css.php and content-css.php
   Trimmed to the rules the homepage actually uses.
   ========================================================================== */

/* ---- Breadcrumbs (continent/country/city pages) ---- */

.breadcrumbs-container {
  width: 100%;
  background: #f5f5f5;
  padding: 6px 0;
  border-bottom: solid 1px #ddd;
}

.breadcrumbs {
  max-width: 1156px;
  margin: 0 0 0 2%;
  color: #999;
  font-size: 0.85em;
  padding: 0 4px;
  line-height: 1.6em;
}

.breadcrumbs a,
.breadcrumbs .current {
  color: #444;
  display: inline-block;
  padding: 0 10px;
}

.breadcrumbs a:hover {
  color: #009944;
  cursor: pointer;
}

.breadcrumbs .path-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: solid 2px #bbb;
  border-right: solid 2px #bbb;
  transform: rotate(45deg);
  vertical-align: middle;
  margin: 0 2px;
}

body {
  margin: 0px;
  height: 100%;
  font-family: "Georgia", serif;
  font-size: 1.15em;
  color: #333;
  background-color: #fff;
  z-index: -2;
  line-height: 1.8em;
  letter-spacing: 0.62px;
}

a {
  font-family: "Tahoma", sans-serif;
  text-decoration: none;
  color: #005c9a;
}

a:hover {
  color: #007acc;
}

b {
  color: #000;
}

ul {
  display: block;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Every other <ul> on the site is a nav/card list with its own bullet-free
   styling -- this is the one place (privacy policy) with real bulleted
   prose, so it opts back into normal browser list rendering instead. */
.list-disc {
  list-style-type: disc;
  margin: 0 0 16px;
  padding-left: 24px;
}

.list-disc li {
  margin-bottom: 6px;
}

.inline-block,
.ib {
  display: inline-block;
}
.hide {
  display: none !important;
}
.left {
  text-align: left;
}
.center {
  text-align: center;
}
.middle {
  vertical-align: middle;
}
.mtop16 {
  margin-top: 16px;
}

/* ---- Header ---- */

.header {
  display: flex;
  justify-content: space-between;
  border-bottom: solid 1px #ddd;
  background: #fff;
  z-index: 99;
}

.logo {
  height: 60px;
  line-height: 0;
  position: relative;
  margin-left: 8px;
}

.logo img {
  width: 151px;
  height: 42px;
}

.logo .logo-sub {
  font-family: times;
  color: #595959;
  font-size: 11px;
  letter-spacing: 1px;
  margin: 8px 0 0 16px;
}

.skip-to-content {
  display: block;
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  text-align: center;
}

.skip-to-content a:focus {
  display: inline-block;
  margin-top: 116px;
  background: #fff;
  border: solid 1px #ccc;
  font-size: 1.2rem;
}

.menu-right {
  top: 0;
  right: 16px;
  position: absolute;
  height: 64px;
  line-height: 64px;
  text-align: right;
}

.profile-icon {
  display: inline-block;
  vertical-align: middle;
  background: url("//cdn.goparoo.com/images/profile-icon.png") no-repeat center;
  width: 32px;
  height: 32px;
  background-size: 32px;
}

.profile-icon:hover {
  opacity: 0.7;
}

.explorer-mode-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  line-height: normal;
}

.explorer-mode-toggle__control {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.explorer-mode-toggle__label {
  font-family: "Tahoma", sans-serif;
  font-size: 0.8rem;
  color: #555;
}

/* Icon-only "more info" trigger for the popover below -- a real focusable
   button (not another title attribute) so the explanation is reachable by
   keyboard and touch, not just a mouse-hover audience. */
.explorer-mode-info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: solid 1px #999;
  border-radius: 50%;
  background: none;
  color: #666;
  font: italic 600 12px Georgia, serif;
  line-height: 1;
  cursor: pointer;
}

.explorer-mode-info-btn:hover {
  border-color: #005c9a;
  color: #005c9a;
}

.explorer-mode-info-popover {
  position: fixed;
  /* The UA stylesheet's default [popover] rule sets inset: 0 (all four
     sides) -- without resetting it first, that left-over "left: 0"
     out-positions the top/right below and pins this to the left edge
     instead. */
  inset: auto;
  top: 64px;
  right: 16px;
  margin: 0;
  max-width: 280px;
  padding: 14px 16px;
  border: solid 1px #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-family: "Tahoma", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #444;
}

.explorer-mode-info-popover p {
  margin: 0 0 10px;
}

.explorer-mode-info-popover p:last-child {
  margin-bottom: 0;
}

.explorer-mode-info-popover a {
  font-weight: bold;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 20px;
  transition: background-color 0.15s;
}

.switch__slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
}

.switch input:checked + .switch__slider {
  background-color: #009944;
}

.switch input:checked + .switch__slider::before {
  transform: translateX(16px);
}

/* The checkbox itself is visually hidden (opacity: 0, 0x0) so its own
   native focus ring would render at zero size -- draw it on the visible
   slider sibling instead so keyboard users can actually see where focus is. */
.switch input:focus-visible + .switch__slider {
  outline: 2px solid #005c9a;
  outline-offset: 2px;
}

@media (min-width: 480px) {
  .logo {
    margin-left: 16px;
    padding: 0 0 4px 0;
  }

  .logo .logo-sub {
    letter-spacing: 2px;
    width: 420px;
    top: 52px;
    left: 48px;
  }

  .menu-right {
    display: flex;
    align-items: center;
  }

  .explorer-mode-toggle {
    display: flex;
  }
}

main {
  padding-top: 0;
}

h1 {
  font-family: "Tahoma", sans-serif;
  font-weight: 500;
  color: #333;
  font-size: 2em;
  line-height: 1.5em;
  margin: 24px 0 16px 0;
}

h2 {
  font-size: 1.3em;
  font-weight: normal;
  color: #333;
  font-family: "Tahoma", sans-serif;
}

@media (min-width: 480px) {
  h1 {
    font-size: 2.2em;
  }
  h2 {
    font-size: 1.5em;
  }
}

@media (min-width: 850px) {
  h1 {
    font-size: 2.5em;
  }
  h2 {
    font-size: 1.6em;
  }
}

/* ---- Layout / container ---- */

#container {
  position: relative;
  width: 100%;
  min-height: 80vh;
  margin: 48px auto 0;
  background-color: #fff;
}

#container.homepage {
  margin-top: 16px;
}

.col2 {
  display: inline-block;
  text-align: left;
}

.grid-1col .col {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 32px 0;
  font-family: "Tahoma", sans-serif;
}

.pagination a {
  padding: 6px 16px;
  border: solid 1px #005c9a;
  border-radius: 4px;
  background: #e6eef3;
}

.pagination a:hover {
  background: #fff;
  color: #0088cc;
}

.pagination .disabled {
  padding: 6px 16px;
  border: solid 1px #ddd;
  border-radius: 4px;
  color: #bbb;
}

.pagination .page-status {
  color: #666;
  font-size: 0.9em;
}

.grid-2col .col2 {
  width: 90%;
  max-width: 750px;
}

.grid-2col .col3 {
  display: inline-block;
  width: 90%;
  max-width: 750px;
  margin-top: -10px;
}

@media (min-width: 980px) {
  .grid-2col .col2 {
    width: 60%;
    max-width: 820px;
    padding-right: 2%;
  }

  .grid-2col .col3 {
    vertical-align: top;
    display: inline-block;
    width: 340px;
    padding: 0 0 0 2%;
    background: url("//cdn.goparoo.com/images/gradient-line-vertical.gif")
      no-repeat left top #fff;
  }
}

/* ---- Hero map placeholder ---- */

#mapcontainer {
  width: 100vw;
  height: 172px;
  margin-left: -5%;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 4px;
}

#mapcontainer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 420px) {
  #mapcontainer {
    width: 100%;
    height: 200px;
    margin-left: 0;
  }
}

@media (min-width: 520px) {
  #mapcontainer {
    height: 252px;
  }
}
@media (min-width: 600px) {
  #mapcontainer {
    height: 290px;
  }
}
@media (min-width: 680px) {
  #mapcontainer {
    height: 330px;
  }
}
@media (min-width: 820px) {
  #mapcontainer {
    height: 350px;
  }
}
@media (min-width: 1220px) {
  #mapcontainer {
    height: 388px;
  }
}

/* ---- Accordion sections ---- */

.section-accordion {
  height: 48px;
  overflow: hidden;
  margin-bottom: 2px;
}

.section-accordion.opened {
  height: auto;
  overflow: hidden;
}

.section-accordion h2 {
  border: solid 1px #ddd;
  color: #333;
  cursor: pointer;
  background: #f5f5f5;
  margin: 0;
  padding: 4px 16px;
  border-radius: 4px;
  font-size: 18px;
}

.section-accordion h2:after {
  content: "\002B";
  color: #999;
  font-weight: bold;
  float: right;
  margin-top: -2px;
}

.section-accordion.opened h2:after {
  content: "\2212";
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Groups the Text/Html diff tabs with the Edit button on the far right --
   margin-left: auto lives here (not on .section-edit-btn) so the group is
   pushed right as a unit whether or not the tabs happen to be hidden (an
   unchanged section, or the live page, where only Edit is present). */
.section-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.section-edit-btn {
  flex-shrink: 0;
  border: solid 1px #ccc;
  background: #fff;
  color: #006644;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  line-height: normal;
}

.section-edit-btn:hover {
  background: #f0faf5;
}

.section-edit-form {
  padding: 8px 16px 16px;
}

/* Formatting toolbar for the contenteditable box below -- hidden along
   with it when the "Html" tab's raw textarea is showing instead, since raw
   markup editing has no use for a WYSIWYG toolbar. */
.section-edit-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.section-edit-format {
  font-family: "Tahoma", sans-serif;
  font-size: 0.85rem;
  padding: 4px 6px;
  border: solid 1px #ccc;
  border-radius: 4px;
  background: #fff;
}

.section-edit-cmd {
  border: solid 1px #ccc;
  background: #fff;
  color: #333;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.section-edit-cmd:hover {
  background: #f5f5f5;
}

/* A contenteditable box, not a <textarea> -- shows the section's actual
   formatted headings/paragraphs while editing (no visible <h4>/<p> tags),
   with real line breaks on Enter, rather than raw HTML source. */
.section-edit-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  padding: 8px 12px;
  border: solid 1px #ccc;
  border-radius: 4px;
  overflow-y: auto;
}

.section-edit-textarea:focus {
  outline: none;
  border-color: #005c9a;
}

.section-edit-textarea p,
.section-edit-textarea h2,
.section-edit-textarea h3,
.section-edit-textarea h4 {
  margin: 0 0 12px;
}

/* The "Html" tab's editor -- a real textarea (not contenteditable) showing
   the raw markup as literal, editable text, monospaced to match the
   read-only Html diff view's .section-html-diff. */
.section-edit-raw {
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 8px 12px;
  border: solid 1px #ccc;
  border-radius: 4px;
  resize: vertical;
}

.section-edit-raw:focus {
  outline: none;
  border-color: #005c9a;
}

.section-edit-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.section-edit-actions button {
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
}

.section-edit-save {
  border: none;
  background: #009944;
  color: #fff;
}

.section-edit-save:hover {
  background: #007a37;
}

.section-edit-cancel {
  border: solid 1px #ccc;
  background: #fff;
  color: #333;
}

.section-edit-cancel:hover {
  background: #f5f5f5;
}

.section-accordion-subtitle {
  color: #444;
  font-size: 14px;
  margin: 0 0 16px;
}

.section-accordion-content {
  padding: 8px 16px 24px;
}

@media (min-width: 480px) {
  .section-accordion {
    height: auto;
    overflow: hidden;
  }

  .section-accordion h2 {
    background: none;
    border: none;
    color: #006644;
    font-size: 24px;
    padding-left: 0;
  }

  .section-accordion h2:after {
    display: none;
  }
}

.wiki-updates-box {
  padding: 16px;
  border: solid 1px #eee;
  border-radius: 8px;
  background: #f5f5f5;
  margin-bottom: 32px;
}

/* ---- list-table (continents / city guides / heat maps) ---- */

.list-table li {
  display: inline-block;
  font-size: 0.85em;
}

.list-table li:not(:last-child)::after {
  content: "\00b7";
  display: inline-block;
  color: #ccc;
  margin: 0 10px;
  font-weight: normal;
}

.list-table li a {
  display: inline-block;
  padding: 6px 0;
  color: #005c9a;
  font-weight: normal;
}

.list-table li a:hover {
  color: #007acc;
  text-decoration: underline;
}

@media (min-width: 480px) {
  .list-table li {
    font-size: 0.9em;
  }
}
@media (min-width: 850px) {
  .list-table li {
    font-size: 1em;
  }
}

/* ---- article rows (Latest Travel Articles) ---- */

.article-item {
  display: block;
  margin-bottom: 16px;
}

.article-item small {
  color: #444;
  margin-bottom: 4px;
}

.article-item small.small-grey {
  display: block;
  font-size: 0.8rem;
  color: #999;
}

/* ---- Individual article page ---- */

.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

/* ---- <pic> shortcode embeds, inline within article/attraction rich text ---- */

.article-embedded-pic {
  margin: 20px 0;
  text-align: center;
}

.article-embedded-pic img {
  max-width: 100%;
  height: auto;
  border: solid 1px #999;
  border-radius: 4px;
}

.article-embedded-pic figcaption {
  font-size: 0.85em;
  color: #666;
  margin-top: 6px;
}

.thumb-big {
  display: inline-block;
  text-align: center;
}

.thumb-big img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: solid 1px #999;
  border-radius: 4px;
}

.thumb-info {
  display: block;
  line-height: 1.5rem;
  text-align: center;
  padding-top: 4px;
}

.article-item .thumb-info {
  text-align: left;
}

@media (min-width: 480px) {
  .thumb-big {
    display: inline-block;
    vertical-align: top;
  }

  .thumb-big img {
    width: 200px;
    height: 120px;
    border: solid 1px #999;
  }

  .thumb-info {
    display: inline-block;
    width: 200px;
    text-align: left;
  }

  .article-item .thumb-info {
    width: calc(100% - 232px);
    margin-left: 16px;
  }
}

.thumb-author-small {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  border: solid 1px #444;
  vertical-align: middle;
  object-fit: cover;
}

.read-more-arrow {
  display: inline-block;
  padding: 0 16px 0 4px;
  vertical-align: middle;
}

.see-more-area {
  margin-top: 8px;
}

/* ---- Top attractions sidebar (col3) ---- */

.top-attractions-box {
  padding: 0 0 16px;
}

.top-attractions-box h3 {
  font-family: "Tahoma", sans-serif;
  color: #006644;
  font-size: 1.1em;
  font-weight: normal;
  margin: 0 0 8px;
}

.top-attractions-box ul {
  margin-bottom: 24px;
}

.top-attractions-box li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.top-attractions-box li img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}

.top-attractions-box li a {
  font-size: 0.95rem;
}

/* ---- Mission / plain text sections ---- */

.mission-text {
  color: #333;
}

.loading-placeholder {
  color: #999;
  font-size: 0.9rem;
  padding: 8px 0;
}

/* ---- Hero image + credit (country/region/city pages) ----
   The original computes a per-image aspect-ratio server-side from the
   physical file (PHP's getimagesize()) and swaps in a fixed height at a
   couple dozen viewport-width breakpoints to match it. We don't have local
   image files to inspect, and modern CSS aspect-ratio does the same job
   in three lines instead of ~20 media queries. */

#hero-image {
  position: relative;
  overflow: hidden;
  background: #555;
  margin-bottom: 16px;
  border-radius: 4px;
}

#hero-image figure {
  /* Reset the browser default figure margin (1em 40px) -- otherwise it
       insets the image well inside #hero-image's own edges. */
  margin: 0;
}

#hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

/* ---- Patchy vintage wash overlay (hero + single-picture views only) ----
   A static, irregularly-transparent WebP (see
   claude-scripts/generate-patchy-overlay.js) layered on top via a blend
   mode when Explorer Picture Mode is showing one of the two vintage-look
   variants (see image-filters.js) -- "vintage" ("-vint", full color) or
   "vintage-black-and-white" ("-vintbw", the same look desaturated).
   Complements vintage-look.js's ImageMagick pixel filter with a softer,
   more organic unevenness that's easier to get looking natural from a real
   texture + CSS blend than from parametric filters alone. Not applied to
   the oil-painting or plain black-and-white variants, which aren't built
   on the vintage look and shouldn't carry its wash texture. Only applied
   here and on .main-pic below (real full-size photos), never on
   thumbnails (.thumb-big, .thumbnail-grid) -- at thumbnail size the patchy
   pattern just reads as noise, and stays off entirely once a visitor
   switches back to the real photo.

   The warm corner light-leak glow is a plain radial-gradient() layered on
   top of that image, not baked into it -- it's a true mathematical
   gradient, so CSS renders it perfectly smoothly for free, rather than
   competing for bytes in a file already trading fidelity for size (WebP's
   lossy alpha channel bands visibly on smooth gradients once compressed
   this small; keeping this gradient out of the raster file avoids adding a
   second banding source on top of the one already inherent to the wash). */

#hero-image:has(img[src*="-vint."])::after,
.main-pic:has(img[src*="-vint."])::after,
#hero-image:has(img[src*="-vintbw."])::after,
.main-pic:has(img[src*="-vintbw."])::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 97% 4%,
      rgba(255, 235, 190, 0.55) 0%,
      rgba(255, 150, 60, 0.35) 20%,
      rgba(255, 90, 30, 0.15) 40%,
      transparent 65%
    ),
    url("/images/patchy-wash-overlay.webp");
  background-size: cover, cover;
  background-position: center, center;
  /* Normal blending, not multiply -- multiply only darkens/tints (it's a
     no-op for a pure-white layer, since multiplying by 1.0 changes
     nothing); a white wash needs to actually blend over the photo via its
     own alpha to read as a faded patch. */
  opacity: 0.25;
  pointer-events: none;
}

#hero-image figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
}

#hero-image figcaption a {
  display: inline-block;
  color: #fff;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 10px;
  border-radius: 3px;
}

#hero-image figcaption a:hover {
  color: #00aff8;
}

/* ---- Expandable text (region overview "Read more") ---- */

.expandable-text-container {
  position: relative;
  overflow: hidden;
}

.expandable-text-container__mask {
  text-align: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  padding-top: 90px;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 1)
  );
}

.expandable-text-container__btn {
  border: solid 1px #ccc;
  padding: 4px 16px;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9em;
  color: #555;
}

.expandable-text-container__btn:hover {
  background: #f5f5f5;
  color: #000;
}

@media (min-width: 480px) {
  .expandable-text-container {
    height: 380px;
  }

  .expandable-text-container.expanded {
    height: auto;
  }

  .expandable-text-container__mask {
    display: block;
  }

  .expandable-text-container.expanded .expandable-text-container__mask {
    height: auto;
    background-image: none;
    position: relative;
    padding-top: 16px;
  }
}

/* ---- Thumbnail grid (region page "Cities and Areas") ---- */

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.thumbnail-grid .thumb-big img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.thumbnail-grid .thumb-info {
  text-align: center;
  margin-top: 4px;
  font-size: 0.95rem;
}

/* ---- Attractions list page: thumbnails centered as a card ---- */

#attractions-list {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  row-gap: 32px;
  column-gap: 24px;
}

#attractions-list .thumb-item,
#attractions-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#attractions-list .thumb-item {
  width: 100%;
}

#attractions-list .thumb-big {
  width: 200px;
}

#attractions-list .thumb-big img {
  width: 200px;
  height: 120px;
  border-radius: 4px;
}

#attractions-list .thumb-info {
  text-align: center;
}

.thumb-location {
  color: #595959;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.25rem;
}

/* ---- Attraction page ---- */

.bigrating {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 36px;
  color: #006644;
  font-weight: bold;
}

@media (min-width: 700px) {
  .page-titles {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* A <details>/<summary> disclosure rather than a <select> -- the type
   links inside need to be real <a> tags present in the server-rendered
   HTML for a crawler to ever find /europe/mountains-style pages at all
   (nothing else on the site links to them), and <details> gets the same
   compact, closed-by-default dropdown feel with zero JS. */
.type-filter {
  position: relative;
  margin: 12px 0;
  font-family: "Tahoma", sans-serif;
  font-size: 0.9rem;
}

.type-filter summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px;
  border: solid 1px #ccc;
  border-radius: 4px;
  background: #fff;
  color: #444;
  list-style: none;
}

.type-filter summary::-webkit-details-marker {
  display: none;
}

.type-filter summary::after {
  content: "\25BE";
  color: #888;
}

.type-filter[open] summary::after {
  content: "\25B4";
}

.type-filter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  border: solid 1px #ccc;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.type-filter-menu a {
  padding: 4px 8px;
  border-radius: 3px;
  color: #333;
  white-space: nowrap;
}

.type-filter-menu a:hover {
  background: #f0faf5;
}

.type-filter-menu a.active {
  color: #006644;
  font-weight: bold;
}

.card2 {
  border: solid 1px #ddd;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 4px;
  font-size: 1rem;
  margin: 16px 0 32px;
}

.card2 h2 {
  margin: 0 0 16px;
}

.card2 li {
  margin-bottom: 12px;
  line-height: 24px;
}

/* ---- Footer ---- */

.footer-container {
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  padding: 24px 16px 48px;
  border-top: solid 1px #ddd;
  margin-top: 32px;
}

nav.footer a.footer {
  color: #555;
  font-size: 0.85rem;
}

nav.footer a.footer:hover {
  color: #0088cc;
}

/* ---- Picture gallery / single picture pages ---- */

.main-pic {
  position: relative;
  display: inline-block;
  max-width: 100%;
  text-align: center;
  margin: 16px 0;
}

.main-pic img {
  max-width: 100%;
  max-height: 70vh;
  border: solid 1px #999;
  border-radius: 4px;
}

/* ---- Sign up / sign in / verify / account ---- */

.auth-form-container {
  max-width: 420px;
  margin: 0 auto;
}

.auth-form {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.auth-form label {
  font-size: 0.9em;
  color: #444;
  margin-top: 12px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  padding: 10px 12px;
  margin-top: 4px;
  border: solid 1px #ccc;
  border-radius: 4px;
  font-size: 1em;
  font-family: "Tahoma", sans-serif;
  resize: vertical;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: #005c9a;
}

.auth-form small {
  color: #666;
  margin-top: 4px;
}

/* ---- Draft review workflow ---- */

.draft-status-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #fff8e1;
  border: solid 1px #f0c419;
  border-radius: 4px;
  color: #6b5600;
  font-family: "Tahoma", sans-serif;
  font-size: 0.9rem;
  padding: 10px 16px;
  margin: 16px 0;
}

.draft-status-banner a {
  font-weight: bold;
}

.changed-badge {
  display: inline-block;
  background: #e6f4ea;
  color: #1a7a35;
  font-family: "Tahoma", sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  padding: 8px;
  border-radius: 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.diff-mode-tabs {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.diff-mode-tab {
  border: solid 1px #ddd;
  background: #fff;
  color: #666;
  font-family: "Tahoma", sans-serif;
  font-size: 0.75rem;
  padding: 2px 10px;
  cursor: pointer;
}

.diff-mode-tab:first-child {
  border-radius: 3px 0 0 3px;
}
.diff-mode-tab:last-child {
  border-radius: 0 3px 3px 0;
  margin-left: -1px;
}

.diff-mode-tab.active {
  background: #006644;
  border-color: #006644;
  color: #fff;
}

.section-html-diff {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  background: #f7f7f7;
  border: solid 1px #eee;
  border-radius: 4px;
  padding: 12px;
  margin: 0;
}

.show-previous-btn {
  border: none;
  background: none;
  color: #005c9a;
  font-family: "Tahoma", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 16px;
  margin-top: -8px;
}

.show-previous-btn:hover {
  text-decoration: underline;
}

.previous-version {
  margin: 8px 16px 16px;
  padding: 8px 12px;
  border-left: solid 3px #ddd;
  color: #777;
}

.diff-before {
  background: #fbe4e4;
  color: #b00020;
  text-decoration: line-through;
  opacity: 0.8;
  padding: 1px 3px;
  border-radius: 2px;
}

.diff-after,
mark.diff-after {
  background: #c8f0c8;
  color: #1a5f28;
  font-weight: bold;
  padding: 1px 3px;
  border-radius: 2px;
}

.publish-draft-box {
  border: solid 1px #ddd;
  border-radius: 4px;
  background: #f7f7f7;
  padding: 16px;
  margin: 32px 0;
  text-align: center;
}

.publish-draft-box p {
  margin: 0 0 12px;
  color: #555;
  font-size: 0.9rem;
}

#publish-draft-btn {
  border: none;
  background: #009944;
  color: #fff;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 4px;
  cursor: pointer;
}

#publish-draft-btn:hover {
  background: #007a37;
}

/* ---- Wiki updates tabs ---- */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: solid 1px #ddd;
  margin: 24px 0 0;
}

.tab-btn {
  border: none;
  background: none;
  font-family: "Tahoma", sans-serif;
  font-size: 1rem;
  color: #666;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: solid 3px transparent;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: #333;
}

.tab-btn.active {
  color: #006644;
  font-weight: bold;
  border-bottom-color: #009944;
}

.tab-badge {
  display: inline-block;
  background: #fff3cd;
  color: #6b5600;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

.tab-pane {
  padding-top: 24px;
}

/* ---- Editing-rights admin ---- */

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.9em;
}

.permissions-table th,
.permissions-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: solid 1px #eee;
}

.permissions-table th {
  color: #444;
  border-bottom: solid 2px #ddd;
}

.permissions-table .revoke-btn {
  border: none;
  background: none;
  color: #b00020;
  cursor: pointer;
  padding: 0;
  font-size: 0.95em;
}

.permissions-table .revoke-btn:hover {
  text-decoration: underline;
}

/* ---- Site analytics (admin) ---- */

.analytics-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: "Tahoma", sans-serif;
  font-size: 0.95rem;
  color: #444;
}

.analytics-live__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #009944;
  animation: analytics-live-pulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .analytics-live__dot {
    animation: none;
  }
}

@keyframes analytics-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.analytics-live__value {
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}

.analytics-range {
  font-family: "Tahoma", sans-serif;
  font-size: 0.9em;
}

.analytics-summary {
  display: flex;
  gap: 32px;
  margin: 16px 0 32px;
}

.analytics-summary__stat {
  display: flex;
  flex-direction: column;
}

.analytics-summary__value {
  font-family: "Tahoma", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: #005c9a;
  font-variant-numeric: tabular-nums;
}

.analytics-summary__label {
  font-size: 0.85em;
  color: #666;
}

.analytics-table__bar-cell {
  width: 40%;
}

.analytics-table__bar {
  display: block;
  height: 10px;
  background: #005c9a;
  border-radius: 2px;
}

/* Honeypot: off-screen (not display:none/visibility:hidden, which some
   bots specifically check for) so only an automated fill sees this field. */
.hp-field {
  position: absolute;
  left: -5000px;
  top: -5000px;
}

.auth-form button {
  margin-top: 20px;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background: #005c9a;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
}

.auth-form button:hover {
  background: #007acc;
}

/* A <button> (it triggers a fetch(), not real navigation) styled to read
   as a plain, discreet text link rather than a call-to-action -- for
   actions like signing out that shouldn't visually compete with the
   page's actual primary buttons (e.g. the filter form's Save above it). */
.text-link-button {
  padding: 0;
  border: none;
  background: none;
  color: #005c9a;
  font-family: "Tahoma", sans-serif;
  font-size: 0.9em;
  cursor: pointer;
}

.text-link-button:hover {
  color: #007acc;
  text-decoration: underline;
}

.auth-form-error {
  color: #b00020;
  font-size: 0.9em;
  margin-top: 12px;
}

.auth-form-notice {
  color: #006644;
  font-size: 0.9em;
  margin-top: 12px;
}
