/*
Theme Name: Traveler Small News
Theme URI: https://travelersmall.com/
Author: Traveler Small
Author URI: https://travelersmall.com/
Description: Tema berita dengan header Home, News, Event, Viral, Tren, Edukasi, dan Wisata. Tampilan mengikuti kerapian Linear: latar gelap, tipografi rapat, garis halus, dan tombol pil.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: travelersmall
Tags: news, blog, one-column, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --ts-bg: #08090a;
  --ts-bg-raise: rgba(255, 255, 255, 0.03);
  --ts-text: #f7f8f8;
  --ts-text-dim: #d0d3d8;
  --ts-muted: #8a8f98;
  --ts-line: rgba(255, 255, 255, 0.08);
  --ts-line-strong: rgba(255, 255, 255, 0.16);
  --ts-accent: #5e6ad2;
  --ts-kicker: #a5adf7;
  --ts-pill: #e5e5e6;
  --ts-pill-text: #08090a;
  --ts-wrap: 1120px;
  --ts-header: 64px;
  --ts-font: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ts-bg);
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 420px at 50% -80px, rgba(94, 106, 210, 0.18), transparent 60%),
    var(--ts-bg);
  color: var(--ts-text);
  font-family: var(--ts-font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font-family: inherit;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ts-accent);
  outline-offset: 2px;
}

::selection {
  background: var(--ts-accent);
  color: #fff;
}

.ts-skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: #fff;
  color: #08090a;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.ts-skip:focus {
  top: 8px;
}

.ts-wrap {
  width: min(var(--ts-wrap), calc(100% - 48px));
  margin-inline: auto;
}

.ts-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--ts-header);
  background: rgba(8, 9, 10, 0.72);
  border-bottom: 1px solid var(--ts-line);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

body.admin-bar .ts-header {
  top: 32px;
}

.ts-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ts-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ts-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  min-width: 0;
}

.ts-logo__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-logo__mark {
  display: inline-flex;
  color: var(--ts-text);
  flex: 0 0 auto;
}

.ts-logo .custom-logo {
  width: auto;
  max-height: 28px;
  border-radius: 6px;
}

.ts-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ts-nav a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ts-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.ts-nav a:hover,
.ts-nav .current-menu-item > a,
.ts-nav .current-menu-ancestor > a,
.ts-nav a[aria-current="page"] {
  color: var(--ts-text);
}

.ts-nav .current-menu-item > a,
.ts-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.04);
}

.ts-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 168px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ts-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ts-muted);
  flex: 0 0 auto;
}

.ts-search:focus-within {
  border-color: var(--ts-line-strong);
  color: var(--ts-text);
}

.ts-search svg {
  flex: 0 0 auto;
}

.ts-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--ts-text);
  font-size: 13px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.ts-search input::-webkit-search-cancel-button,
.ts-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.ts-search input::placeholder {
  color: var(--ts-muted);
}

.ts-nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--ts-line);
  background: transparent;
  color: var(--ts-text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ts-nav-toggle span,
.ts-nav-toggle span::before,
.ts-nav-toggle span::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.ts-nav-toggle span::before,
.ts-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.ts-nav-toggle span::before { top: -5px; }
.ts-nav-toggle span::after { top: 5px; }

.ts-hero {
  padding: 88px 0 28px;
}

.ts-kicker {
  margin: 0;
  color: var(--ts-kicker);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ts-kicker a {
  color: inherit;
  text-decoration: none;
}

.ts-kicker a:hover {
  color: #fff;
}

.ts-hero h1,
.ts-pagehead h1,
.ts-single h1 {
  margin: 14px 0 16px;
  max-width: 16em;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.05;
}

.ts-hero h1 a,
.ts-card h2 a,
.ts-card h3 a {
  color: inherit;
  text-decoration: none;
}

.ts-lede {
  max-width: 62ch;
  margin: 0 0 22px;
  color: var(--ts-muted);
  font-size: 18px;
  line-height: 1.55;
}

.ts-meta {
  margin: 0;
  color: var(--ts-muted);
  font-size: 13px;
}

.ts-meta a {
  color: var(--ts-muted);
  text-decoration: none;
}

.ts-meta a:hover {
  color: var(--ts-text);
}

.ts-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ts-pill);
  color: var(--ts-pill-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.ts-btn:hover {
  background: #fff;
}

.ts-btn--ghost {
  background: transparent;
  color: var(--ts-text);
  border: 1px solid var(--ts-line-strong);
}

.ts-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ts-section {
  margin-top: 72px;
}

.ts-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ts-section__head h2,
.ts-block h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ts-section__head a,
.ts-block h2 a {
  color: var(--ts-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
}

.ts-section__head a:hover,
.ts-block h2 a:hover {
  color: var(--ts-text);
}

.ts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ts-card {
  border: 1px solid var(--ts-line);
  border-radius: 12px;
  background: var(--ts-bg-raise);
  min-width: 0;
}

.ts-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}

.ts-card:hover {
  border-color: var(--ts-line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.ts-card h3,
.ts-card h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.ts-card p {
  margin: 0;
  color: var(--ts-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ts-card .ts-kicker {
  color: var(--ts-kicker);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.ts-card .ts-meta {
  margin-top: auto;
  padding-top: 16px;
}

.ts-card__media {
  margin: -4px -4px 4px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
}

.ts-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 72px;
  margin-top: 72px;
  padding-top: 8px;
}

.ts-block h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.ts-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--ts-line);
  color: inherit;
  text-decoration: none;
}

.ts-row strong {
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.011em;
  line-height: 1.4;
}

.ts-row:hover strong {
  color: #fff;
}

.ts-row span {
  flex: 0 0 auto;
  color: var(--ts-muted);
  font-size: 13px;
}

.ts-pagehead {
  padding: 72px 0 28px;
}

.ts-pagehead h1 {
  max-width: 16em;
}

.ts-pagehead__desc {
  max-width: 62ch;
  color: var(--ts-muted);
  font-size: 17px;
}

.ts-pagehead__desc p {
  margin: 0;
}

.ts-page {
  padding-bottom: 96px;
}

.ts-prose {
  max-width: 720px;
  color: var(--ts-text-dim);
  font-size: 17px;
  line-height: 1.7;
}

.ts-prose > *:first-child {
  margin-top: 0;
}

.ts-prose h2,
.ts-prose h3 {
  color: var(--ts-text);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}

.ts-prose a {
  color: var(--ts-text);
  text-underline-offset: 3px;
}

.ts-prose ul,
.ts-prose ol {
  padding-left: 1.2em;
}

.ts-prose li + li {
  margin-top: 0.35em;
}

.ts-prose blockquote {
  margin: 1.5em 0;
  padding-left: 16px;
  border-left: 2px solid var(--ts-line-strong);
  color: var(--ts-text);
}

.ts-prose img,
.ts-single__content img {
  border-radius: 12px;
}

.ts-prose figure {
  margin: 1.5em 0;
}

.wp-caption-text,
.ts-prose figcaption {
  color: var(--ts-muted);
  font-size: 13px;
}

.ts-single {
  padding-bottom: 40px;
}

.ts-single h1 {
  max-width: 16em;
}

.ts-single__media {
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.ts-single__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-single__content {
  max-width: 720px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--ts-line);
}

.ts-postnav {
  max-width: 720px;
  margin-top: 36px;
}

.ts-postnav .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ts-postnav a {
  display: block;
  color: var(--ts-muted);
  text-decoration: none;
  font-size: 14px;
}

.ts-postnav .nav-next {
  text-align: right;
}

.ts-postnav a:hover {
  color: var(--ts-text);
}

.ts-comments {
  max-width: 720px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--ts-line);
}

.ts-comments h2,
.comment-reply-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .comment {
  padding: 16px 0;
  border-top: 1px solid var(--ts-line);
}

.comment-author .fn,
.comment-author .fn a {
  color: var(--ts-text);
  font-style: normal;
  font-weight: 500;
  text-decoration: none;
}

.comment-metadata a,
.comment-reply-link {
  color: var(--ts-muted);
  font-size: 13px;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ts-muted);
  font-size: 13px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.ts-field input,
.ts-field textarea {
  width: 100%;
  border: 1px solid var(--ts-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ts-text);
  font-size: 16px;
  padding: 12px 14px;
}

.comment-form textarea,
.ts-field textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.ts-field input:focus,
.ts-field textarea:focus {
  outline: 2px solid var(--ts-accent);
  outline-offset: 1px;
  border-color: transparent;
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ts-pill);
  color: var(--ts-pill-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.comment-form .submit:hover {
  background: #fff;
}

.ts-search-wide .ts-search {
  width: min(420px, 100%);
  height: 40px;
}

.ts-form {
  max-width: 560px;
  margin-top: 28px;
}

.ts-field {
  margin-bottom: 14px;
}

.ts-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ts-muted);
  font-size: 13px;
}

.ts-notice {
  max-width: 560px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--ts-line);
  border-radius: 12px;
  background: rgba(94, 106, 210, 0.14);
  color: var(--ts-text);
}

.ts-notice--error {
  background: rgba(235, 87, 87, 0.12);
}

.ts-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ts-pagination {
  margin-top: 28px;
}

.ts-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ts-pagination a,
.ts-pagination span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ts-line);
  border-radius: 999px;
  color: var(--ts-muted);
  font-size: 13px;
  text-decoration: none;
}

.ts-pagination .current {
  background: var(--ts-pill);
  border-color: var(--ts-pill);
  color: var(--ts-pill-text);
}

.ts-pagination a:hover {
  color: var(--ts-text);
  border-color: var(--ts-line-strong);
}

.ts-empty {
  padding: 24px 0 64px;
}

.ts-empty h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ts-footer {
  margin-top: 40px;
  border-top: 1px solid var(--ts-line);
  padding: 48px 0 28px;
}

.ts-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.ts-footer h2 {
  margin: 0 0 12px;
  color: var(--ts-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ts-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ts-footer li + li {
  margin-top: 8px;
}

.ts-footer a {
  color: var(--ts-text);
  font-size: 14px;
  text-decoration: none;
}

.ts-footer a:hover {
  color: #fff;
}

.ts-footer .ts-logo {
  margin-right: 0;
  font-size: 15px;
}

.ts-footer__brand p {
  margin: 10px 0 0;
  max-width: 32ch;
  color: var(--ts-muted);
  font-size: 14px;
}

.ts-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--ts-line);
  color: var(--ts-muted);
  font-size: 13px;
}

.ts-footer__base a {
  color: var(--ts-muted);
  font-size: 13px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .ts-nav-toggle {
    display: inline-flex;
  }

  .ts-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: -24px;
    right: -24px;
    z-index: 30;
    padding: 8px 20px 16px;
    background: #08090a;
    border-bottom: 1px solid var(--ts-line);
  }

  .ts-nav.is-open {
    display: block;
  }

  .ts-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ts-nav a {
    height: auto;
    padding: 12px 4px;
    font-size: 16px;
    border-radius: 8px;
  }

  .ts-grid,
  .ts-board,
  .ts-footer__grid,
  .ts-postnav .nav-links {
    grid-template-columns: 1fr;
  }

  .ts-postnav .nav-next {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .ts-wrap {
    width: min(var(--ts-wrap), calc(100% - 32px));
  }

  .ts-nav {
    left: -16px;
    right: -16px;
  }

  .ts-search {
    width: 120px;
    height: 36px;
  }

  .ts-search input {
    font-size: 16px;
  }

  .ts-hero {
    padding-top: 48px;
  }

  .ts-section,
  .ts-board {
    margin-top: 48px;
  }

  .ts-footer__base {
    flex-direction: column;
  }
}

@media (max-width: 782px) {
  body.admin-bar .ts-header {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
