/* Bidlab PC home news layout. Scoped to desktop home only. */

@media (min-width: 1100px) {
  body.home-v1 {
    --home-max: 1200px;
    --home-gutter: 40px;
    --home-line: #eeeeee;
    --home-ink: #111111;
    background: #fff;
    color: #111;
  }

  .home-v1 .portal-head .portal-wrap,
  .home-v1 .home-wrap,
  .home-v1 .portal-foot .portal-wrap {
    width: min(1200px, calc(100% - var(--home-gutter)));
    max-width: 1200px;
  }

  body.home-v1 .portal-head {
    display: block;
    border-bottom: 0;
  }

  body.home-v1 .portal-head .head-row {
    display: none !important;
  }

  body.home-v1 .portal-head .gnb {
    background: #fff;
    border-bottom: 1px solid #eee;
  }

  body.home-v1 .portal-head .gnb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    background: #fff;
    gap: 28px;
    padding: 4px 0;
    padding-right: 0;
  }

  body.home-v1 .portal-head .gnb-nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.home-v1 .portal-head .gnb-item {
    flex: 1 1 auto;
    text-align: center;
  }

  body.home-v1 .portal-head .gnb-nav .gnb-top {
    color: #111 !important;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.02em;
    padding: 16px 8px;
    background: transparent !important;
  }

  body.home-v1 .portal-head .gnb-nav .gnb-top:hover,
  body.home-v1 .portal-head .gnb-nav .gnb-top.is-current {
    background: transparent !important;
    color: #111 !important;
    font-weight: 700;
  }

  body.home-v1 .portal-head .gnb-auth {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 18px;
    margin: 0;
    padding: 0 0 0 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
  }

  body.home-v1 .portal-head .gnb-auth a,
  body.home-v1 .portal-head .gnb-auth a.util-admin,
  body.home-v1 .portal-head .gnb-auth a.util-consult {
    color: #555;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
  }

  body.home-v1 .portal-head .gnb-auth a:hover,
  body.home-v1 .portal-head .gnb-auth a:focus-visible {
    color: #111;
    background: transparent;
  }

  body.home-v1 .portal-head .gnb-tools {
    display: none;
  }

  body.home-v1 .portal-head .g2b-ticker {
    display: none !important;
    background: #162c4b;
  }

  body.home-v1 .portal-head .g2b-ticker[hidden] {
    display: none !important;
  }

  body.home-v1 .portal-head .g2b-ticker__inner {
    width: min(1200px, calc(100% - var(--home-gutter)));
    max-width: 1200px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    background: transparent;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  body.home-v1 .portal-head .g2b-ticker__line {
    flex-wrap: nowrap;
    gap: 0 22px;
    font-size: 14px;
  }

  body.home-v1 .portal-head .g2b-ticker__num {
    font-size: 15px;
  }

  .home-partners {
    width: min(1200px, calc(100% - var(--home-gutter)));
    max-width: 1200px;
    padding: 40px 0 28px;
    border-bottom: 0;
  }

  .home-partners__brand img {
    width: auto;
    height: 64px;
    max-width: 380px;
  }

  .home-partners__name {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.05;
    color: #12315c;
  }

  .home-partners__tag {
    font-size: 14px;
    font-weight: 600;
    color: #667;
    letter-spacing: 0.04em;
  }

  .home-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 10px 0 12px;
    border-bottom: 1px solid #eee;
  }

  .home-toolbar .home-newsline {
    margin: 0;
    padding: 0;
    border-bottom: 0;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-toolbar .home-newsline__controls {
    display: none;
  }

  .home-toolbar-search {
    display: none;
  }

  .home-toolbar-search input {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 0;
    padding: 0 12px;
    font-size: 13px;
    color: #333;
    background: transparent;
    outline: none;
  }

  .home-toolbar-search button {
    flex: 0 0 40px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .home-layout {
    display: grid;
    grid-template-columns: minmax(0, 835px) 1px minmax(240px, 300px);
    column-gap: 32px;
    align-items: start;
    width: 100%;
    padding-top: 18px;
  }

  .home-layout::before {
    content: "";
    grid-column: 2;
    grid-row: 1;
    width: 1px;
    background: #eeeeee;
    align-self: stretch;
  }

  .home-maincol {
    grid-column: 1;
    min-width: 0;
  }

  .home-sidecol {
    grid-column: 3;
    gap: 22px;
    padding-left: 0;
  }

  .home-sidecol > .home-search {
    display: none;
  }

  .home-feature__card {
    display: grid;
    grid-template-columns: 484px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 0 0 22px;
  }

  .home-feature__card.is-text {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-feature__card .home-thumb {
    width: 484px;
    height: 327px;
    aspect-ratio: auto;
  }

  .home-feature__card .home-thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .home-feature__body {
    gap: 10px;
    padding-top: 4px;
  }

  .home-feature__body .home-kicker {
    margin: 0;
    color: #3c5daa;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .home-feature__body strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.03em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .home-feature__sub {
    display: -webkit-box;
    overflow: hidden;
    color: #222;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-feature__dek {
    display: -webkit-box;
    overflow: hidden;
    color: #777;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .home-photos {
    display: grid;
    grid-template-columns: repeat(4, 191px);
    justify-content: start;
    gap: 10px 24px;
    margin: 0 0 28px;
  }

  .home-photo .home-thumb {
    width: 191px;
    height: 107px;
    aspect-ratio: auto;
    margin-bottom: 10px;
  }

  .home-photo .home-thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .home-photo strong,
  .home-cat__item strong {
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
  }

  .home-latest {
    margin: 0 0 8px;
  }

  .home-latest__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 0;
    row-gap: 24px;
    margin: 0 0 8px;
  }

  .home-latest__item {
    min-height: 0;
    padding: 0 20px 0 0;
    border-bottom: 0;
    gap: 14px;
    align-items: flex-start;
  }

  .home-latest__grid > .home-latest__item:nth-child(odd) {
    padding-right: 22px;
    border-right: 1px solid #eee;
  }

  .home-latest__grid > .home-latest__item:nth-child(even) {
    padding-left: 22px;
    padding-right: 0;
  }

  .home-latest__item .home-thumb {
    width: 145px;
    height: 100px;
    flex: 0 0 145px;
    aspect-ratio: auto;
  }

  .home-latest__item .home-thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .home-latest__item strong {
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
  }

  .home-latest__item .home-card__dek {
    margin-top: 6px;
    color: #777;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
  }

  .home-mid-banners {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin: 16px 0 36px;
    padding-top: 20px;
  }

  .home-mid-banner {
    min-height: 0;
    background: #eef3f8;
  }

  .home-mid-banner img {
    height: 100%;
  }

  .home-cats {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .home-cat {
    margin: 0 0 36px;
  }

  .home-cat .home-block-head {
    margin: 0 0 14px;
  }

  .home-block-head h2,
  .home-search h2,
  .home-rec h2,
  .home-popular h2,
  .home-video .home-block-head h2 {
    color: #111;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  body.home-v1 .home-block-head a.home-block-head__more {
    color: #111;
    font-size: 0;
    line-height: 1;
  }

  body.home-v1 .home-block-head a.home-block-head__more .home-block-head__chev {
    font-size: 22px;
    font-weight: 400;
    color: #111;
  }

  .home-cat__grid {
    grid-template-columns: repeat(4, 191px);
    justify-content: start;
    gap: 10px 24px;
    margin: 0;
  }

  .home-cat__item {
    gap: 10px;
  }

  .home-cat__item .home-thumb {
    width: 191px;
    height: 107px;
    aspect-ratio: auto;
  }

  .home-cat__item .home-thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .home-cat__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    margin: 12px 0 0;
  }

  .home-cat__list .home-cat__row {
    min-height: 0;
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f2;
  }

  .home-latest__text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
    margin: 12px 0 8px;
  }

  .home-latest__text > li:nth-child(odd) .home-latest__item {
    padding-right: 22px;
    border-right: 1px solid #eee;
  }

  .home-latest__text > li:nth-child(even) .home-latest__item {
    padding-left: 22px;
    padding-right: 0;
  }

  .home-latest__text .home-latest__item {
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f2f2f2;
  }

  .home-guide-index {
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    margin: 12px 0 0;
  }

  .home-guide-index .home-cat__row,
  .home-guide-index a {
    min-height: 0;
    padding: 6px 0;
    border-bottom: 1px solid #f2f2f2;
  }

  .home-guide-index strong {
    font-size: 14px;
    font-weight: 600;
    -webkit-line-clamp: 1;
  }

  .home-sidecol > .home-side-banner {
    border: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .home-side-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .home-bids,
  .home-rec,
  .home-search {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .home-bids .home-block-head h2 {
    font-size: 16px;
  }

  .home-bids li a {
    padding: 8px 0;
  }

  .home-bids strong {
    font-size: 14px;
  }

  .home-popular h2 {
    font-size: 20px;
    font-weight: 800;
  }

  .home-popular__row {
    grid-template-columns: 28px minmax(0, 1fr) 64px;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }

  .home-popular__rank {
    font-size: 22px;
  }

  .home-popular__row strong {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .home-popular__row .home-thumb {
    width: 64px;
    height: 64px;
  }

  .home-popular__row .home-thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .home-rec h2 {
    font-size: 16px;
  }

  .home-rec__row strong {
    font-size: 14px;
  }

  .home-side-cta {
    border-radius: 0;
  }

  .home-process {
    display: none;
  }

  body.home-v1 .portal-foot.portal-foot--home {
    margin-top: 24px;
    padding: 28px 0 36px;
    background: #f5f6f8;
    color: #555;
    border-top: 1px solid #ececec;
    font-size: 13px;
    line-height: 1.7;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-inner {
    align-items: stretch;
    gap: 16px;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-nav-row {
    justify-content: flex-start;
    text-align: left;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 22px;
    justify-content: flex-start;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-nav a {
    color: #444;
    font-size: 13px;
    font-weight: 500;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-nav a.is-strong {
    color: #111;
    font-weight: 800;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-meta {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #12315c;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-brand strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-style: normal;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-brand em {
    display: block;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    color: #667;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-meta-copy {
    min-width: 0;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-meta-line {
    justify-content: flex-start;
    color: #666;
    font-size: 12px;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-meta-line a {
    color: #666;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-bottom {
    justify-content: space-between;
    text-align: left;
  }

  body.home-v1 .portal-foot.portal-foot--home .foot-legal,
  body.home-v1 .portal-foot.portal-foot--home .top-btn {
    color: #888;
  }
}

@media (min-width: 1100px) and (max-width: 1239px) {
  .home-photos,
  .home-cat__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
  }

  .home-photo .home-thumb,
  .home-cat__item .home-thumb,
  .home-photo .home-thumb img,
  .home-cat__item .home-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 191 / 107;
  }

  .home-feature__card {
    grid-template-columns: minmax(280px, 484px) minmax(0, 1fr);
  }

  .home-feature__card.is-text {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-feature__card .home-thumb,
  .home-feature__card .home-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 484 / 327;
  }
}

/* Six category cards fill two desktop rows; keep the separate photo strip at four columns. */
@media (min-width: 1100px) {
  body.home-v1 .home-cat__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }
  body.home-v1 .home-cat__item .home-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  body.home-v1 .home-cat__item .home-thumb img {
    width: 100%;
    height: 100%;
  }
}
