/* Supplemental styles & font-face fallbacks for local Makassar News Portal & CMS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,700&display=swap');

@font-face {
  font-family: 'montserratlight';
  src: local('Montserrat Light'), local('Montserrat-Light'), url('https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCs16Hw5aXo.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'montserratregular';
  src: local('Montserrat Regular'), local('Montserrat-Regular'), url('https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Hw5aXo.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'montserratsemibold';
  src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'), url('https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu173w5aXo.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'montserratbold';
  src: local('Montserrat Bold'), local('Montserrat-Bold'), url('https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM73w5aXo.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat-FF';
  src: local('Montserrat'), url('https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Hw5aXo.woff2') format('woff2');
}

/* Ensure ratio boxes display images cleanly without JS liquid plugin dependency */
.ratiobox.box_thumb,
.ratiobox.ratio_4_3,
.ratiobox--4-3,
.ratiobox--16-9 {
  position: relative;
  overflow: hidden;
  background: #eaeaea;
}

.ratiobox.box_thumb .ratiobox_content,
.ratiobox.ratio_4_3 .ratiobox_content,
.ratiobox--4-3,
.ratiobox--16-9 {
  display: block;
  width: 100%;
  height: 100%;
}

.ratiobox.box_thumb img,
.ratiobox.ratio_4_3 img,
.ratiobox--4-3 img,
.ratiobox--16-9 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.foto_tag .foto_list .item .ratiobox.ratio_4_3 {
  padding-top: 75%;
  height: 0;
}

.foto_tag .foto_list .item .ratiobox.ratio_4_3 .ratiobox_content {
  position: absolute;
  inset: 0;
}

/* Framebar menu drawer toggle */
.dtkframebar__menu__kanal.open-drawer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.dtkframebar__user__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
}

.btn-portal-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #21409a;
  color: #ffffff !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 18px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1.2;
}

.btn-portal-add:hover {
  background: #162d70;
}

.btn-portal-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f4ff;
  color: #21409a !important;
  border: 1px solid #c9d6f8;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 16px;
  text-decoration: none !important;
  cursor: pointer;
}

.btn-portal-danger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff1f0;
  color: #cf1322 !important;
  border: 1px solid #ffa39e;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 16px;
  text-decoration: none !important;
  cursor: pointer;
}

.portal-stat-pill {
  font-size: 11px;
  color: #4b5563;
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
}

.badge-manual {
  display: inline-block;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* Inline "Baca juga" box matching detikSulsel detail.css */
.detail__body-text .noncontent {
  margin: 18px 0;
}

.detail__body-text table.linksisip {
  width: 100%;
  border-collapse: collapse;
  background: #f5f7fa;
  border-left: 4px solid #21409a;
  border-radius: 0 6px 6px 0;
}

.detail__body-text table.linksisip td {
  padding: 12px 16px;
}

.detail__body-text .lihatjg {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #1f2937;
}

.detail__body-text .lihatjg strong {
  color: #21409a;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  text-transform: uppercase;
}

.detail__body-text .lihatjg a {
  color: #21409a;
  font-weight: 700;
  text-decoration: none;
}

.detail__body-text .lihatjg a:hover {
  text-decoration: underline;
}

/* Authentic Terpopuler widget in detail sidebar */
.box-terpopuler {
  margin-bottom: 24px;
}

.box-terpopuler .box__header {
  border-bottom: 2px solid #21409a;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.box-terpopuler .box__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #21409a;
  margin: 0;
}

.terpopuler-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
}

.terpopuler-item:last-child {
  border-bottom: none;
}

.terpopuler-num {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #b0b7c3;
  min-width: 28px;
  line-height: 1.1;
}

.terpopuler-item:nth-child(-n+3) .terpopuler-num {
  color: #d80000;
}

.terpopuler-content {
  flex: 1;
}

.terpopuler-title {
  margin: 0 0 4px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.terpopuler-title a {
  color: #212121;
  text-decoration: none;
}

.terpopuler-title a:hover {
  color: #21409a;
}

.terpopuler-date {
  font-size: 11px;
  color: #888888;
}

/* CMS Form Page */
.cms-wrapper {
  max-width: 820px;
  margin: 28px auto 60px auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.cms-wrapper h2 {
  margin: 0 0 6px 0;
  color: #21409a;
  font-size: 22px;
  font-weight: 700;
}

.cms-wrapper p.cms-sub {
  margin: 0 0 22px 0;
  color: #6b7280;
  font-size: 13px;
}

.cms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cms-field {
  margin-bottom: 16px;
}

.cms-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.cms-field input[type="text"],
.cms-field input[type="url"],
.cms-field input[type="file"],
.cms-field select,
.cms-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #fff;
}

.cms-field textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.cms-field small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
}

.cms-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.filter-banner {
  background: #f0f4ff;
  border-left: 4px solid #21409a;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #1e3a8a;
}

.filter-banner a {
  color: #cf1322;
  font-weight: 700;
  text-decoration: none;
}
