/* ============================================================
   SHARED DESIGN SYSTEM
   Extracted from the homepage so every page can use the same
   visual language. Loaded globally from app/app.vue.

   Fonts (Basic, Geist Mono, Vinila Bold) are declared in style.css.
   ============================================================ */

/* ---- Corner-bracket motif ----------------------------------
   Four <span class="corner corner-XX"> children draw a bracket
   frame around a positioned parent. The parent MUST be
   position: relative and must NOT have overflow: hidden — the
   brackets sit at -1px so they straddle the border, and an
   overflow clip would shave them off.
   ------------------------------------------------------------ */
.corner {
  position: absolute;
  width: 12px;
  height: 12px;
  /* keeps brackets above sibling media that paints later in DOM order */
  z-index: 1;
}

.corner-tl { top: -1px; left: -1px; border-top: 1.5px solid #94a3b8; border-left: 1.5px solid #94a3b8; }
.corner-tr { top: -1px; right: -1px; border-top: 1.5px solid #94a3b8; border-right: 1.5px solid #94a3b8; }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 1.5px solid #94a3b8; border-left: 1.5px solid #94a3b8; }
.corner-br { bottom: -1px; right: -1px; border-bottom: 1.5px solid #94a3b8; border-right: 1.5px solid #94a3b8; }

/* ---- Eyebrow (the "N.0x — Label" chip) ---- */
.eyebrow-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  margin: 0 auto 30px;
}

.eyebrow-text {
  font-family: "Geist Mono", monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #2e2e2e;
  font-weight: 600;
}

/* ---- Section title with green underline ---- */
.section-title-underlined {
  font-family: 'Basic', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  text-align: center;
  margin: 0 auto 32px auto;
  padding-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title-underlined::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #16a34a;
}

/* ---- Section header row ------------------------------------
   Title + eyebrow on the left, optional link on the right.
   Stacks on mobile, goes side-by-side at 768px.
   Rendered by app/components/SectionHeader.vue.
   ------------------------------------------------------------ */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* .container is a centring flex column, so stretch explicitly
     or this collapses to content width */
  align-self: stretch;
  gap: 4px;
  margin-bottom: 28px;
}

.section-head-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Left-align the shared (centred) title + eyebrow inside this row.
   Eyebrow renders above the title, with the title's underline closing
   the block — so the title carries no bottom margin here. */
.section-head .section-title-underlined {
  margin: 0;
  text-align: left;
}

.section-head .eyebrow-frame {
  margin: 0 0 30px 0;
}

.section-head-link {
  font-family: 'Basic', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #16a34a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .25s cubic-bezier(.16, 1, .3, 1);
}

.section-head-link:hover {
  gap: 14px;
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
  }

  .section-title-underlined {
    font-size: 1.8rem;
  }
}

/* ============================================================
   PAGE PRIMITIVES
   Shared by the sub-pages (profil, infografis, berita, galeri,
   pengaduan). Each of these was previously duplicated verbatim
   in every page's scoped block.
   ============================================================ */

/* ---- Sub-page hero banner ---- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(21, 128, 61, .9) 0%, rgba(15, 23, 42, .95) 100%);
  color: white;
  /* SiteHeader is position:fixed and ~66px tall, so it sits on top of this
     banner. The extra top padding clears it and leaves breathing room —
     same trick .hero-block uses on the homepage. */
  padding: 104px 0 40px;
  text-align: left;
}

/* .container is a centring flex column, so hero content would centre
   without this. Heroes read left-aligned. */
.page-hero > .container {
  align-items: flex-start;
}

.page-hero h1 {
  color: white;
  font-family: 'Basic', sans-serif;
  font-size: 1.8rem;
  margin: 0 0 8px 0;
  font-weight: 700;
  text-align: left;
}

.page-hero p {
  color: #bbf7d0;
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
  max-width: 60ch;
}

/* Eyebrow sitting inside the dark hero needs light brackets + text */
.page-hero .eyebrow-frame {
  margin: 0 0 14px 0;
}

.page-hero .eyebrow-text {
  color: #bbf7d0;
}

.page-hero .corner-tl { border-top-color: rgba(187, 247, 208, .5); border-left-color: rgba(187, 247, 208, .5); }
.page-hero .corner-tr { border-top-color: rgba(187, 247, 208, .5); border-right-color: rgba(187, 247, 208, .5); }
.page-hero .corner-bl { border-bottom-color: rgba(187, 247, 208, .5); border-left-color: rgba(187, 247, 208, .5); }
.page-hero .corner-br { border-bottom-color: rgba(187, 247, 208, .5); border-right-color: rgba(187, 247, 208, .5); }

/* ---- Page body wrapper ----
   Longhand, not the `padding` shorthand. This class sits on the SAME element
   as .container ("container page-body"), and a shorthand would reset that
   element's horizontal gutter to zero — leaving content flush against both
   screen edges on every sub-page. */
.page-body {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* ---- White content panel ----------------------------------
   Add the four .corner spans as direct children for the bracket
   frame. Panel is position:relative and deliberately has no
   overflow:hidden so the brackets aren't clipped.
   ------------------------------------------------------------ */
.panel {
  position: relative;
  align-self: stretch;
  background: white;
  border: 1px solid #e2e8f0;
  padding: 24px 20px;
  margin-bottom: 24px;
}

.panel p {
  font-size: .95rem;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 16px 0;
}

.panel p:last-child {
  margin-bottom: 0;
}

/* ---- Left-aligned title with short green rule ---- */
.panel-title {
  font-family: 'Basic', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px 0;
  padding-bottom: 6px;
  position: relative;
  display: inline-block;
  text-align: left;
}

.panel-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3.5px;
  background-color: #16a34a;
}

/* ---- Loading / empty states ---- */
.page-state {
  align-self: stretch;
  text-align: center;
  color: #64748b;
  padding: 40px 0;
  font-size: .95rem;
}

/* ---- Shared table treatment ---- */
.ds-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .9rem;
}

.ds-table th {
  background-color: #f1f5f9;
  font-family: "Geist Mono", monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #475569;
  font-weight: 600;
  padding: 12px;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.ds-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.ds-table tr:nth-child(even) {
  background-color: #f8fafc;
}

@media (min-width: 768px) {
  .page-hero { padding: 132px 0 60px; }
  .page-hero h1 { font-size: 2.5rem; }
  .page-hero p { font-size: 1.1rem; }
  .page-body { padding-top: 50px; padding-bottom: 50px; }
  .panel { padding: 32px; margin-bottom: 30px; }
  .panel-title { font-size: 1.6rem; }
  .ds-table { font-size: .95rem; }
}
