/* ============================================================
   DRAMA STORY - styled as a SECTION of dramatravel.com
   (รีวิวเรื่องราวเดินทางวายป่วงของคุณ)
   Sits on top of the site's white theme (white-css-TH: Bootstrap 3 grid,
   fixed navbar, Kanit). The section's accent is a "drama" red used for the
   mark, buttons and highlights; the page ground stays light like the rest
   of the site. Ported from manawild.com/ranlocstory/assets/ranloc.css -
   class names keep the .ranloc- prefix (same engine, different skin), the
   auth card + account pages add .ds- classes in the ruedee signin_ui
   design language.
   ============================================================ */

:root {
	--rl-green: #d6453a;            /* section accent (drama red) */
	--rl-green-dark: #b3271f;
	--rl-forest: #2a2118;           /* dark ink */
	--rl-forest-2: #7a1d15;
	--rl-accent: #d6453a;           /* the DRAMA! mark */
	--rl-accent-2: #8f1911;
	--rl-txt: #2b2b2b;
	--rl-txt-dim: #6b6b6b;
	--rl-line: #eae6e1;
	--rl-paper: #ffffff;
	--rl-tint: #fdf5f2;             /* very light warm wash */
	--rl-radius: 12px;
}

/* the fixed site navbar covers the top of the page - compensate */
body.ranloc-page .ranloc-wrap { padding-top: 84px; }
@media (max-width: 767px) { body.ranloc-page .ranloc-wrap { padding-top: 62px; } }

body.ranloc-page { background: #faf8f6 !important; font-family: 'Kanit', sans-serif; color: var(--rl-txt); }
body.ranloc-page .ranloc-wrap { background: #faf8f6; min-height: 60vh; }

/* the theme's slideshow loader must never spin on section pages */
body.ranloc-page #supersized-loader, body.ranloc-page #supersized { display: none !important; }
.ranloc-page a { color: var(--rl-green-dark); }
.ranloc-page a:hover { color: var(--rl-forest-2); }

/* ---------- section hero ---------- */
.ranloc-hero {
	background: linear-gradient(180deg, var(--rl-tint) 0%, #ffffff 100%);
	border-bottom: 1px solid var(--rl-line);
	padding: 34px 0 26px;
}
.ranloc-hero-slim { padding: 16px 0 12px; }
.ranloc-hero > .container, .ranloc-body.container { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.ranloc-hero-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ranloc-mark {
	width: 58px; height: 58px; flex: none; border-radius: 14px;
	background: linear-gradient(135deg, var(--rl-accent) 0%, var(--rl-accent-2) 100%);
	box-shadow: 0 6px 18px rgba(214, 69, 58, .28);
	color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .5px;
	display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15;
	text-decoration: none;
}
.ranloc-hero-slim .ranloc-mark { width: 44px; height: 44px; font-size: 10px; border-radius: 11px; }
.ranloc-page a.ranloc-mark { color: #fff; }   /* .ranloc-page a would otherwise repaint the link version red-on-red */
.ranloc-mark-link:hover { color: #fff; text-decoration: none; filter: brightness(1.06); }
.ranloc-hero-text { flex: 1 1 320px; min-width: 0; }
.ranloc-kicker { display: block; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--rl-green-dark); font-weight: 500; }
.ranloc-kicker a { color: inherit; text-decoration: none; }
.ranloc-hero h1 { margin: 2px 0 6px; font-size: clamp(24px, 3.6vw, 36px); font-weight: 700; color: var(--rl-forest); line-height: 1.2; }
.ranloc-hero p { margin: 0; max-width: 720px; color: var(--rl-txt-dim); font-size: 15.5px; line-height: 1.6; }
.ranloc-hero-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.ranloc-lang a, .ranloc-lang span { padding: 4px 9px; border-radius: 8px; color: var(--rl-txt-dim); text-decoration: none; }
.ranloc-lang .on { background: rgba(214, 69, 58, .12); color: var(--rl-green-dark); font-weight: 600; }
.ranloc-user { color: var(--rl-txt-dim); font-size: 13.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- body ---------- */
.ranloc-body { padding: 26px 15px 60px; }
.ranloc-flash { border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; font-size: 14.5px; border: 1px solid; }
.ranloc-flash.ok  { background: #eef8f1; border-color: #bfe3cc; color: #1f6f3d; }
.ranloc-flash.err { background: #fdeeef; border-color: #f2c1c7; color: #9b1f30; }

.ranloc-listhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.ranloc-listhead h2 { margin: 0; font-size: 24px; font-weight: 600; color: var(--rl-forest); }
.ranloc-cur { margin-left: auto; font-size: 13px; color: var(--rl-txt-dim); }

/* ---------- story cards ---------- */
.ranloc-card {
	background: var(--rl-paper); border: 1px solid var(--rl-line); border-radius: var(--rl-radius);
	padding: 20px 22px; margin-bottom: 14px;
	transition: box-shadow .2s, border-color .2s, transform .2s;
}
.ranloc-card:hover { border-color: rgba(214, 69, 58, .5); box-shadow: 0 8px 26px rgba(42, 33, 24, .08); transform: translateY(-1px); }
.ranloc-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; line-height: 1.35; }
.ranloc-card h3 a { color: var(--rl-forest); text-decoration: none; }
.ranloc-card h3 a:hover { color: var(--rl-green-dark); }
.ranloc-card p { color: var(--rl-txt); font-size: 15px; line-height: 1.65; margin: 8px 0 0; }
.ranloc-empty { color: var(--rl-txt-dim); text-align: center; padding: 34px 20px; }
.ranloc-meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--rl-txt-dim); }
.ranloc-meta span { white-space: nowrap; }
.ranloc-meta span + span::before { content: "•"; margin: 0 9px; color: var(--rl-green); }
@media (max-width: 480px) { .ranloc-meta span + span::before { margin: 0 6px; } .ranloc-meta { font-size: 12.5px; } }
.ranloc-cardfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ranloc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ranloc-tag {
	display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px;
	color: var(--rl-green-dark); background: rgba(214, 69, 58, .08); border: 1px solid rgba(214, 69, 58, .25);
}
.ranloc-readmore { font-size: 14px; font-weight: 500; white-space: nowrap; }

/* ---------- panels (submit form, guidelines, how-to) ---------- */
.ranloc-panel {
	background: var(--rl-paper); border: 1px solid var(--rl-line); border-radius: var(--rl-radius);
	padding: 22px 24px; margin-bottom: 18px;
	border-top: 4px solid var(--rl-green);
}
.ranloc-panel h2, .ranloc-info h2 { margin: 0 0 4px; font-size: 21px; font-weight: 600; color: var(--rl-forest); }
.ranloc-sub { color: var(--rl-txt-dim); font-size: 13.5px; margin: 0 0 14px; line-height: 1.55; }
.ranloc-info ol, .ranloc-info ul { margin: 8px 0 0 20px; padding: 0; color: var(--rl-txt); font-size: 14.5px; }
.ranloc-info li { margin-bottom: 6px; line-height: 1.55; }
.ranloc-gate { color: var(--rl-txt); font-size: 14.5px; margin: 0 0 14px; }

.ranloc-input, .ranloc-textarea, .ranloc-select {
	width: 100%; margin-bottom: 11px; padding: 11px 13px;
	background: #fff; border: 1px solid #ddd6d0; border-radius: 9px;
	color: var(--rl-txt); font-family: inherit; font-size: 14.5px;
	transition: border-color .15s, box-shadow .15s;
}
.ranloc-input:focus, .ranloc-textarea:focus, .ranloc-select:focus {
	outline: none; border-color: var(--rl-green); box-shadow: 0 0 0 3px rgba(214, 69, 58, .14);
}
.ranloc-textarea { min-height: 170px; resize: vertical; }

.ranloc-tagpick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.ranloc-tagpick label {
	padding: 5px 13px; border: 1px solid #ddd6d0; border-radius: 999px;
	font-size: 13px; color: var(--rl-txt-dim); cursor: pointer; user-select: none; font-weight: 400; margin: 0;
	transition: all .15s;
}
.ranloc-tagpick input { display: none; }
.ranloc-tagpick label:has(input:checked) { border-color: var(--rl-green); background: rgba(214, 69, 58, .08); color: var(--rl-green-dark); font-weight: 500; }

.ranloc-btn {
	display: inline-block; padding: 11px 26px; border: 0; border-radius: 10px; cursor: pointer;
	background: linear-gradient(135deg, var(--rl-green) 0%, var(--rl-green-dark) 100%);
	color: #fff !important; font-family: inherit; font-size: 15px; font-weight: 500; text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(214, 69, 58, .3); transition: transform .15s, box-shadow .15s;
}
.ranloc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(214, 69, 58, .38); }
.ranloc-btn-ghost {
	display: inline-block; padding: 10px 20px; border-radius: 10px;
	border: 1px solid #d8cfc8; color: var(--rl-forest); font-size: 14px; text-decoration: none;
}
.ranloc-btn-ghost:hover { border-color: var(--rl-green); color: var(--rl-green-dark); text-decoration: none; }
.ranloc-formfoot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ranloc-mailto { font-size: 13.5px; }
.ranloc-privnote { margin: 12px 0 0; font-size: 12.5px; color: var(--rl-txt-dim); line-height: 1.5; }

/* ---------- pager ---------- */
.ranloc-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 22px 0; font-size: 14px; }
.ranloc-pager a, .ranloc-pager .cur { padding: 6px 13px; border-radius: 9px; border: 1px solid var(--rl-line); color: var(--rl-txt-dim); text-decoration: none; }
.ranloc-pager a:hover { border-color: var(--rl-green); color: var(--rl-green-dark); }
.ranloc-pager .cur { background: rgba(214, 69, 58, .1); color: var(--rl-green-dark); border-color: var(--rl-green); font-weight: 600; }

/* ---------- single story ---------- */
.ranloc-back { display: inline-block; margin-bottom: 14px; font-size: 14px; }
.ranloc-article {
	background: var(--rl-paper); border: 1px solid var(--rl-line); border-radius: var(--rl-radius);
	padding: 30px 34px; border-top: 4px solid var(--rl-green);
}
.ranloc-article h1 { margin: 0 0 8px; font-size: clamp(24px, 3.6vw, 34px); font-weight: 700; line-height: 1.3; color: var(--rl-forest); }
.ranloc-article .ranloc-tags { margin: 10px 0 0; }
.ranloc-storybody { margin-top: 22px; font-size: 16.5px; line-height: 1.85; color: var(--rl-txt); white-space: pre-wrap; word-wrap: break-word; }
.ranloc-anon-note {
	margin-top: 26px; padding: 11px 15px; border-left: 3px solid var(--rl-green);
	background: var(--rl-tint); font-size: 13px; color: var(--rl-txt-dim); border-radius: 0 9px 9px 0;
}
.ranloc-storyfoot { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 0; }
@media (max-width: 767px) { .ranloc-article { padding: 22px 18px; } }

/* ============================================================
   .ds- : the ruedee-style auth card (auth.php) + account page
   Same structure/behaviour as ruedee.com core/signin_ui.php, in
   this section's palette.
   ============================================================ */
.ds-si { padding: 10px 0 40px; }
.ds-wrap { max-width: 440px; margin: 0 auto; }
.ds-wrap[hidden] { display: none; }

.ds-hero { text-align: center; margin-bottom: 22px; }
.ds-hero-icon {
	display: inline-grid; place-items: center;
	width: 52px; height: 52px; margin-bottom: 10px;
	border-radius: 50%;
	background: rgba(214, 69, 58, .14); color: var(--rl-forest);
}
.ds-hero h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; text-align: center; color: var(--rl-forest); }
.ds-hero p  { margin: 6px auto 0; color: var(--rl-txt-dim); font-size: 13.5px; text-align: center; max-width: 360px; line-height: 1.55; }

.ds-card {
	background: #fff;
	border: 1px solid var(--rl-line);
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(42, 33, 24, .06);
	padding: 20px 20px;
}
@media (max-width: 480px) { .ds-card { padding: 16px 14px; } }

.ds-alert {
	display: block; margin: 0 0 14px; padding: 10px 13px;
	border-radius: 10px; font-size: 13.5px; border: 1px solid;
}
.ds-alert-error { color: #b3261e; background: #fdf3f2; border-color: rgba(179,38,30,.25); }
.ds-alert-ok    { color: #2e7d32; background: #f2f9f2; border-color: rgba(46,125,50,.25); }

.ds-tabs {
	display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
	padding: 4px; border-radius: 10px;
	background: rgba(42, 33, 24, .06);
}
.ds-tab {
	appearance: none; border: 0; cursor: pointer;
	padding: 7px 10px; border-radius: 8px;
	background: transparent; color: var(--rl-txt-dim);
	font: inherit; font-size: 13.5px; font-weight: 600;
	transition: background .15s ease, color .15s ease;
}
.ds-tab[aria-selected="true"] {
	background: #fff; color: var(--rl-forest);
	box-shadow: 0 1px 4px rgba(42, 33, 24, .12);
}

.ds-panel { margin-top: 18px; }
.ds-panel[hidden] { display: none; }

.ds-field { margin-bottom: 12px; }
.ds-field label, .ds-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--rl-forest); }
.ds-input {
	width: 100%; padding: 8px 12px;
	border: 1px solid #ddd6d0; border-radius: 9px;
	background: #fff; color: var(--rl-txt);
	font: inherit; font-size: 14.5px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ds-input:focus { outline: none; border-color: var(--rl-green); box-shadow: 0 0 0 3px rgba(214, 69, 58, .14); }

.ds-btn {
	display: block; width: 100%;
	padding: 10px 16px; border: 0; border-radius: 24px;
	background: linear-gradient(135deg, var(--rl-green) 0%, var(--rl-green-dark) 100%);
	color: #fff; font: inherit; font-size: 15px; font-weight: 700;
	cursor: pointer;
	transition: filter .15s ease, transform .05s ease;
	box-shadow: 0 4px 14px rgba(214, 69, 58, .3);
}
.ds-btn:hover { filter: brightness(1.06); }
.ds-btn:active { transform: translateY(1px); }

.ds-hint { margin-top: 8px; font-size: 12.5px; color: var(--rl-txt-dim); }
.ds-blurb { margin: 0 0 14px; font-size: 13.5px; color: var(--rl-txt-dim); line-height: 1.55; }
.ds-req { color: #b3261e; font-style: normal; }
.ds-captcha { margin: 6px 0 16px; }
.ds-err-inline { display: none; color: #b3261e; font-size: 12.5px; margin-top: 6px; }

.ds-switch { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--rl-txt-dim); }
.ds-switch a { color: var(--rl-green-dark); font-weight: 700; text-decoration: none; }
.ds-switch a:hover { text-decoration: underline; }

/* ---------- account: my stories ---------- */
.ds-mystories { list-style: none; margin: 0; padding: 0; }
.ds-mystories li { padding: 10px 0; border-bottom: 1px dashed var(--rl-line); font-size: 14.5px; line-height: 1.5; }
.ds-mystories li:last-child { border-bottom: 0; }
.ds-mystories small { display: block; color: var(--rl-txt-dim); font-size: 12.5px; }
.ds-st {
	display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px;
	font-size: 11.5px; font-weight: 600; vertical-align: 1px;
}
.ds-st-pub { color: #1f6f3d; background: #eef8f1; border: 1px solid #bfe3cc; }
.ds-st-pen { color: #8a6d1a; background: #fdf7e7; border: 1px solid #ecd9a0; }
.ds-st-rej { color: #9b1f30; background: #fdeeef; border: 1px solid #f2c1c7; }
.ds-st-hid { color: #555;    background: #f2f2f2; border: 1px solid #ddd; }

/* ---------- ratings & reviews (2026-08-29) ---------- */

/* star display: dimmed row with a gold row clipped to avg/5 on top */
.ranloc-stars {
	position: relative; display: inline-block;
	font-size: 14px; line-height: 1; letter-spacing: 2px;
	color: #d8d2cb; vertical-align: -1px; white-space: nowrap;
}
.ranloc-stars-on {
	position: absolute; top: 0; left: 0; overflow: hidden;
	color: #eba417; white-space: nowrap;
}
.ranloc-meta-rating .ranloc-stars { margin-right: 2px; }

.ranloc-reviews { margin-top: 34px; }
.ranloc-reviews .ranloc-listhead h2 { font-size: 21px; }
.ranloc-reviews .ranloc-cur .ranloc-stars { font-size: 15px; }

.ranloc-reviewform h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--rl-forest); }
.ranloc-reviewform { margin-bottom: 18px; }
.ranloc-reviewtext { min-height: 90px; }

/* star picker: radios rendered 5..1 + row-reverse, so label:hover ~ label
   and input:checked ~ label paint every star up to the hovered/chosen one */
.ranloc-ratepick { display: inline-flex; flex-direction: row-reverse; margin: 6px 0 10px; }
.ranloc-ratepick input { position: absolute; opacity: 0; width: 0; height: 0; }
.ranloc-ratepick label {
	font-size: 30px; line-height: 1; padding: 0 3px; margin: 0;
	color: #d8d2cb; cursor: pointer; font-weight: 400;
	transition: color .1s ease, transform .1s ease;
}
.ranloc-ratepick label:hover { transform: scale(1.12); }
.ranloc-ratepick label:hover,
.ranloc-ratepick label:hover ~ label,
.ranloc-ratepick input:checked ~ label { color: #eba417; }
.ranloc-ratepick input:focus-visible + label { outline: 2px solid var(--rl-green); outline-offset: 2px; border-radius: 4px; }

.ranloc-review { padding: 14px 18px; }
.ranloc-review:hover { transform: none; border-color: var(--rl-line); box-shadow: none; }
.ranloc-review p { margin: 8px 0 0; font-size: 14.5px; }
.ranloc-review .ranloc-stars { font-size: 15px; }
