/* Layout base */
.pub-container { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.pub-detail { background: #fff; color: #0b1220; }

/* HERO */
.pub-hero {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.pub-hero__overlay {
  position: absolute; inset: 0;
  background: rgba(10, 25, 45, 0.55);
}
.pub-hero__inner {
  position: relative;
  width: 1100px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 48px 0;
  color: #fff;
}
.pub-breadcrumb { opacity: .85; font-size: 13px; margin-bottom: 10px; }
.pub-title { font-size: 34px; line-height: 1.2; margin: 0 0 18px; max-width: 720px; }

.pub-download-btn{
  display: inline-flex; align-items: center; gap: 10px;
  background: #ffffff;
  color: #0b1220;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.pub-download-icon { font-size: 14px; opacity: .8; }

/* INDEX */
.pub-index{
  background: #f2f5f9;
  border-radius: 14px;
  padding: 22px 22px;
  max-width: 520px;
  margin: -42px auto 34px;
  box-shadow: 0 10px 30px rgba(15, 25, 40, 0.08);
}
.pub-index__title { font-weight: 700; margin-bottom: 10px; }
.pub-index__list { display: grid; gap: 8px; }
.pub-index__list a{
  color: #0b1220; text-decoration: none;
  font-size: 13px; opacity: .85;
}
.pub-index__list a:hover{ opacity: 1; text-decoration: underline; }

/* CONTENT */
.pub-content { max-width: 760px; margin: 0 auto; }
.pub-content p { line-height: 1.75; }

/* RELATED */
.pub-related { margin-top: 48px; }
.pub-related__title { font-size: 22px; margin: 0 0 18px; text-align: center; }

.pub-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.pub-card{
  display: block;
  text-decoration: none;
  color: inherit;
}
.pub-card__thumb{
  border-radius: 18px;
  overflow: hidden;
  background: #e9eef6;
  aspect-ratio: 16 / 9;
}
.pub-card__thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.pub-tag{
  display: inline-block;
  border: 1px solid #cfe0ff;
  color: #0b57d0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  margin-top: 10px;
}
.pub-card__title{ font-weight: 700; margin-top: 10px; line-height: 1.25; }
.pub-card__date{ font-size: 12px; opacity: .6; margin-top: 6px; }

/* Modal */
.pub-modal{ position: fixed; inset: 0; display: none; z-index: 9999; }
.pub-modal.is-open{ display: block; }
.pub-modal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.65); }

.pub-modal__panel{
  position: relative;
  width: 460px;
  max-width: calc(100% - 32px);
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.pub-modal__x{
  position:absolute; right: 12px; top: 10px;
  background: transparent; border: 0;
  font-size: 22px; cursor:pointer;
  opacity: .55;
}
.pub-modal__title{ font-size: 18px; font-weight: 800; margin: 4px 0 14px; }

.pub-form{ display: grid; gap: 10px; }
.pub-label{ font-size: 12px; font-weight: 600; opacity: .75; }
.pub-input{
  width: 100%;
  border: 1px solid #d7e1f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.pub-input:focus{ border-color: #0b57d0; box-shadow: 0 0 0 3px rgba(11,87,208,.12); }

.pub-row2{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.pub-legal{
  font-size: 11px;
  opacity: .6;
  line-height: 1.45;
  margin-top: 4px;
}

.pub-submit{
  margin-top: 6px;
  width: 100%;
  background: #0b57d0;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
}
.pub-form__msg{ font-size: 12px; opacity: .75; min-height: 18px; }

/* Responsive */
@media (max-width: 980px){
  .pub-cards{ grid-template-columns: 1fr; }
  .pub-index{ margin-top: -28px; }
}
