/* ============================================================
   IJAR — Author Guidelines page (matched to mockup 04)
   Tokens come from style.css
   ============================================================ */

/* ---- Hero image: this page's source art has padding, so fill the
   right panel with cover (not the default contain) to match the
   other inner-page heroes (about / indexing / editorial), and fade
   the left edge so it blends smoothly into the navy (no hard seam). */
.hero--inner .wrap-lg::after{
  background-size:cover;
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 32%);
  mask-image:linear-gradient(to right,transparent 0,#000 32%);
}

/* ---- Quick-link tiles ---------------------------------------- */
.ag-tiles {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px
}

.ag-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: .2s
}

.ag-tile:hover {
  border-color: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 43, 127, .12);
  transform: translateY(-3px)
}

.ag-tile-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  flex-shrink: 0
}

.ag-tile-label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3
}

/* ---- Two-column main layout ---------------------------------- */
.ag-main {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  align-items: start
}

/* ---- Left guideline list ------------------------------------- */
.ag-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 26px;
  box-shadow: 0 1px 2px rgba(0, 26, 77, .04)
}

.ag-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border)
}

.ag-item:last-child {
  border-bottom: none
}

.ag-item-ic {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 11px;
  font-size: 18px
}

.ag-item-tx {
  min-width: 0
}

.ag-item-tx h3 {
  margin: 5px 0 5px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3
}

.ag-item-tx p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2)
}

/* ---- Right sidebar ------------------------------------------- */
.ag-side {
  display: flex;
  flex-direction: column;
  gap: 22px
}

.ag-box {
  border-radius: 10px;
  overflow: hidden
}

.ag-overview {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 26, 77, .06)
}

.ag-overview-head {
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 20px
}

.ag-overview-list {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px
}

.ag-overview-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text)
}

.ag-overview-list li i {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0
}

.ag-notes {
  background: var(--gold);
  padding: 20px 22px 22px
}

.ag-notes-title {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 26, 77, .22);
  font-size: 17px;
  font-weight: 600;
  color: var(--dark)
}

.ag-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px
}

.ag-notes-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--dark)
}

.ag-notes-list li::before {
  content: "\2022";
  position: absolute;
  left: 3px;
  top: 0;
  color: var(--dark);
  font-weight: 700
}

.ag-download {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 26, 77, .06);
  padding: 22px 22px
}

.ag-download-top {
  display: flex;
  align-items: flex-start;
  gap: 15px
}

.ag-download-icon {
  color: var(--navy);
  font-size: 65px;
  flex-shrink: 0;
  line-height: 1
}

.ag-download-title {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy)
}

.ag-download-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2)
}

.ag-download-text .ag-btn {
  margin-top: 14px
}

.ag-help {
  background: var(--navy);
  padding: 22px 22px
}

.ag-help-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
  color: #fff
}

.ag-help-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.ag-help-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9)
}

.ag-help-list li i {
  color: var(--gold);
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0
}

.ag-help-list li a {
  color: rgba(255, 255, 255, .9);
  text-decoration: none
}

.ag-help-list li a:hover {
  color: #fff
}

.ag-btn {
  display: inline-block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-decoration: none;
  border-radius: 7px;
  padding: 12px 26px;
  transition: .15s
}

.ag-btn-navy {
  background: var(--navy);
  color: #fff
}

.ag-btn-navy:hover {
  background: var(--dark)
}

.ag-btn-gold {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--dark)
}

.ag-btn-gold:hover {
  background: var(--gold-2)
}

/* ---- Stats bar ----------------------------------------------- */
.ag-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: linear-gradient(135deg, #0a3072 0%, #001a4d 100%);
  border-radius: 10px;
  padding: 28px 16px;
  box-shadow: 0 12px 30px rgba(0, 26, 77, .16)
}

.ag-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 16px 6px 30px;
  position: relative
}

.ag-stat:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, .18)
}

.ag-stat-icon {
  font-size: 34px;
  line-height: 1;
  color: #fff;
  flex-shrink: 0
}

.ag-stat-body {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.ag-stat-num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff
}

.ag-stat-label {
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .72)
}

/* ---- responsive ---------------------------------------------- */

/* 1024 px — sidebar collapses below content; tiles 4-up; stats 2-up */
@media(max-width:1024px) {
  .ag-tiles {
    grid-template-columns: repeat(4, 1fr)
  }

  .ag-main {
    grid-template-columns: 1fr
  }

  .ag-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px
  }

  .ag-stat:nth-child(3)::before {
    display: none
  }
}

/* 768 px — tiles 3-up; tighten list padding; download icon smaller */
@media(max-width:768px) {
  .ag-tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
  }

  .ag-tile-ic {
    width: 40px;
    height: 40px;
    font-size: 16px
  }

  .ag-tile-label {
    font-size: 12px
  }

  .ag-list {
    padding: 4px 16px
  }

  .ag-download-icon {
    font-size: 48px
  }

  .ag-download-top {
    flex-wrap: wrap;
    gap: 10px
  }
}

/* 480 px — tiles 2-up; stats 1-col; tighten all padding */
@media(max-width:480px) {
  .ag-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }

  .ag-list {
    padding: 4px 12px;
    border-radius: 8px
  }

  .ag-item {
    gap: 12px
  }

  .ag-item-ic {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 9px
  }

  .ag-item-tx h3 {
    font-size: 14px
  }

  .ag-item-tx p {
    font-size: 13px
  }

  .ag-stats {
    grid-template-columns: 1fr
  }

  .ag-stat::before {
    display: none
  }

  .ag-stat {
    padding: 6px 16px
  }

  .ag-download {
    padding: 18px 16px
  }

  .ag-download-icon {
    font-size: 40px
  }

  .ag-help {
    padding: 18px 16px
  }

  .ag-notes {
    padding: 16px 16px 18px
  }

  .ag-btn {
    padding: 11px 20px;
    font-size: 13px
  }

  .ag-btn-gold {
    text-align: center
  }
}

/* 360 px — tiles 2-up (keep); stat nums slightly smaller; no overflow */
@media(max-width:360px) {
  .ag-tiles {
    gap: 10px
  }

  .ag-tile {
    padding: 10px 6px
  }

  .ag-tile-ic {
    width: 36px;
    height: 36px;
    font-size: 14px
  }

  .ag-tile-label {
    font-size: 11px
  }

  .ag-stat-num {
    font-size: 22px
  }

  .ag-stat-icon {
    font-size: 28px
  }

  .ag-item-ic {
    width: 34px;
    height: 34px;
    font-size: 14px
  }

  .ag-overview-list {
    padding: 14px 14px
  }

  .ag-overview-list li {
    font-size: 13px
  }

  .ag-help-list li {
    font-size: 13px
  }

  .ag-notes-list li {
    font-size: 13px
  }

  .ag-download {
    padding: 14px 12px
  }

  .ag-help {
    padding: 14px 12px
  }
}