/* UA Trail style 0.3 — pieces used by the "Camino Posts" Divi Theme Builder body and by Camino post content.
   Page structure (title banner, sidebar, comments position) lives in the Theme Builder template;
   this file only supplies the look. Palette extends the site's existing browns / gold / maroon. */
@import url("https://fonts.googleapis.com/css2?family=Suez+One&display=swap");
:root {
  --ua-cream: #f6efe2;
  --ua-sand: #e9dcc3;
  --ua-ink: #2e2619;
  --ua-brown: #604800;
  --ua-rust: #b4520e;
  --ua-rust-d: #8f3f08;
  --ua-maroon: #821a00;
  --ua-line: #e4d6ba;
  --ua-display: "Suez One", Georgia, "Times New Roman", serif;
}

/* ---------- title banner (section class: ua-hero) ---------- */
.ua-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #3d2c00 0%, #7a3a08 62%, #b4520e 100%);
}
.ua-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='300' viewBox='0 0 700 300'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.3'%3E%3Cpath d='M-20 70C90 10 180 130 290 70S470 -10 560 60 720 100 720 100'/%3E%3Cpath d='M-20 110C90 50 180 170 290 110S470 30 560 100 720 140 720 140'/%3E%3Cpath d='M-20 150C90 90 180 210 290 150S470 70 560 140 720 180 720 180'/%3E%3Cpath d='M-20 190C90 130 180 250 290 190S470 110 560 180 720 220 720 220'/%3E%3Cpath d='M-20 230C90 170 180 290 290 230S470 150 560 220 720 260 720 260'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 700px 300px;
}
.ua-hero .et_pb_row { position: relative; z-index: 1; }
.ua-hero h1.entry-title {
  font-family: var(--ua-display); font-weight: 400; color: #fff;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.05; padding-bottom: 6px;
}
.ua-hero .et_pb_title_meta_container,
.ua-hero .et_pb_title_meta_container span { color: #f3e3bf !important; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.ua-hero .et_pb_title_meta_container a { color: #ffd68a !important; font-weight: 700; }

/* ---------- page area (section class: ua-main) + content card (column class: ua-card) ---------- */
.ua-main {
  background-color: var(--ua-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='500' viewBox='0 0 700 500'%3E%3Cg fill='none' stroke='%23604800' stroke-opacity='.07' stroke-width='1.3'%3E%3Cpath d='M-20 90C90 30 180 150 290 90S470 10 560 80 720 120 720 120'/%3E%3Cpath d='M-20 130C90 70 180 190 290 130S470 50 560 120 720 160 720 160'/%3E%3Cpath d='M-20 170C90 110 180 230 290 170S470 90 560 160 720 200 720 200'/%3E%3Cpath d='M-20 300C110 240 200 360 320 300S500 220 590 290 720 330 720 330'/%3E%3Cpath d='M-20 340C110 280 200 400 320 340S500 260 590 330 720 370 720 370'/%3E%3Cpath d='M-20 380C110 320 200 440 320 380S500 300 590 370 720 410 720 410'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 700px 500px;
}
.ua-card {
  background: #fff; border: 1px solid var(--ua-line); border-radius: 16px;
  box-shadow: 0 8px 28px rgba(96, 72, 0, .10); padding: 28px 30px 12px;
}
@media (max-width: 980px) { .ua-card { padding: 20px 16px 8px; border-radius: 12px; margin-bottom: 20px; } }

/* ---------- post content inside the card ---------- */
.ua-card .et_pb_post_content .et_pb_section { padding: 6px 0 !important; background: transparent; }
.ua-card .et_pb_post_content .et_pb_row { width: 100% !important; max-width: none !important; padding: 10px 0 !important; }
.ua-card .et_pb_post_content p { font-size: 17px; line-height: 1.75; color: #3a3126; padding-bottom: 1em; }
.ua-card .et_pb_post_content h2,
.ua-card .et_pb_post_content h3 { font-family: var(--ua-display); font-weight: 400; color: var(--ua-brown); line-height: 1.15; }
.ua-card .et_pb_post_content h3 { font-size: 26px; padding-bottom: 12px; position: relative; }
.ua-card .et_pb_post_content h3::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--ua-rust), #e0a030); margin-top: 8px;
}
.ua-card .et_pb_post_content a { color: var(--ua-rust); }

/* ---------- action buttons ---------- */
.ua-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 4px 0 6px; }
.ua-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 400 18px/1 var(--ua-display); letter-spacing: .02em;
  text-decoration: none !important; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.ua-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ua-btn--primary { background: linear-gradient(135deg, #d2691e, #9b4d00); color: #fff !important; box-shadow: 0 6px 16px rgba(155, 77, 0, .35); }
.ua-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(155, 77, 0, .45); }
.ua-btn--ghost { background: transparent; color: var(--ua-brown) !important; border-color: var(--ua-brown); }
.ua-btn--ghost:hover { background: var(--ua-brown); color: #fff !important; transform: translateY(-2px); }
.ua-btn:focus-visible { outline: 3px solid #e0a030; outline-offset: 3px; }
.ua-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
@media (max-width: 560px) { .ua-btn { width: 100%; justify-content: center; } }

/* ---------- stat cards ---------- */
.ua-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.ua-stat { background: var(--ua-cream); border: 1px solid var(--ua-line); border-left: 5px solid var(--ua-rust); border-radius: 12px; padding: 14px 16px; }
.ua-stat--wide { grid-column: 1 / -1; border-left-color: var(--ua-maroon); }
.ua-stat__label { display: block; font: 700 11px/1 "Open Sans", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8a7a5a; }
.ua-stat__val { display: block; font: 400 28px/1.1 var(--ua-display); color: var(--ua-brown); margin-top: 7px; }
.ua-stat__val small { font-size: 14px; color: #7a6a4a; }
.ua-stat__note { display: block; font-size: 13px; line-height: 1.4; color: #6b5f48; margin-top: 5px; }

.ua-card .et_pb_post_content p.ua-note {
  background: #fff8e6; border-left: 5px solid var(--ua-maroon); border-radius: 0 10px 10px 0;
  padding: 12px 16px; font-size: 15px; font-style: italic; color: #5a4a2a;
}

/* Strava map as a framed card */
.ua-strava { border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(46, 38, 25, .16); border: 1px solid var(--ua-line); background: #fff; margin: 6px 0 14px; }

/* ---------- placeholder stage menu ([ua_stage_menu]) ---------- */
.ua-stagenav { background: #fff; border: 1px solid var(--ua-line); border-radius: 14px; padding: 18px 18px 8px; box-shadow: 0 6px 20px rgba(96, 72, 0, .08); }
.ua-stagenav__title { font: 400 22px/1.1 var(--ua-display) !important; color: var(--ua-brown); padding: 0 0 12px !important; margin: 0 !important; }
.ua-stagenav ol { list-style: none; margin: 0; padding: 0; }
.ua-stagenav li { margin: 0; padding: 0; border-top: 1px solid var(--ua-line); }
.ua-stagenav li a { display: block; padding: 10px 6px; color: #3a3126; text-decoration: none; font-size: 14px; line-height: 1.35; transition: color .15s, padding-left .15s; }
.ua-stagenav li a:hover { color: var(--ua-rust); padding-left: 12px; }
.ua-stagenav li.is-current a { color: var(--ua-rust); font-weight: 700; border-left: 4px solid var(--ua-rust); padding-left: 10px; }

/* ---------- comments (Divi Comments module, inside the card) ---------- */
.ua-card #comment-wrap { margin-top: 24px; padding: 24px; background: var(--ua-cream); border: 1px solid var(--ua-line); border-radius: 16px; }
.ua-card #comments, .ua-card #reply-title {
  font-family: var(--ua-display); font-weight: 400; color: var(--ua-brown); font-size: 26px; line-height: 1.15; padding-bottom: 10px;
}
.ua-card #commentform input[type="text"],
.ua-card #commentform input[type="email"],
.ua-card #commentform input[type="url"],
.ua-card #commentform textarea {
  background: #fff; border: 2px solid var(--ua-line); border-radius: 10px; padding: 12px 14px; color: var(--ua-ink); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.ua-card #commentform input:focus, .ua-card #commentform textarea:focus { border-color: var(--ua-rust); outline: none; box-shadow: 0 0 0 3px rgba(180, 82, 14, .18); }
.ua-card #commentform .form-submit .et_pb_button,
.ua-card #commentform .form-submit .submit {
  background: linear-gradient(135deg, #d2691e, #9b4d00) !important; color: #fff !important; border: 2px solid transparent !important;
  border-radius: 999px !important; font-family: var(--ua-display) !important; font-weight: 400 !important; font-size: 18px !important;
  padding: 13px 28px !important; box-shadow: 0 6px 16px rgba(155, 77, 0, .35);
}
.ua-card #commentform .form-submit .et_pb_button:hover,
.ua-card #commentform .form-submit .submit:hover { transform: translateY(-2px); padding: 13px 28px !important; }
.ua-card #commentform .form-submit .et_pb_button::after { display: none; }
.ua-card .comment-body { background: #fff; border: 1px solid var(--ua-line); border-radius: 12px; padding: 14px 16px; }
.ua-card .comment_avatar img.avatar { border-radius: 50%; }
.ua-card .comment-reply-link { color: var(--ua-rust); font-weight: 700; }
