<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_b9e50ae7-f1c8-445d-b5f5-c626c23d7dbc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b9e50ae7-f1c8-445d-b5f5-c626c23d7dbc"
      id="F_80f250f2-74b5-465d-b6f3-b4dcdd889cfd">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b9e50ae7-f1c8-445d-b5f5-c626c23d7dbc"
      id="F_fda67b8b-5f4f-4591-add5-15ba14e4af1a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b9e50ae7-f1c8-445d-b5f5-c626c23d7dbc"
      id="F_c17d15c0-f0b1-4d60-9f13-a8c161820485">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b9e50ae7-f1c8-445d-b5f5-c626c23d7dbc"
      id="F_719bbb1c-efce-4cdf-98e5-94ac47c1a49e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b9e50ae7-f1c8-445d-b5f5-c626c23d7dbc"
      id="F_db3fe039-fa40-48c2-9961-a196661927e3">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_b9e50ae7-f1c8-445d-b5f5-c626c23d7dbc"
      id="F_cc99895f-e45c-46c3-ba9f-33915ec93c22">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_b9e50ae7-f1c8-445d-b5f5-c626c23d7dbc"
      id="F_37c35754-7129-4349-87e4-720fecb0301a">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b9e50ae7-f1c8-445d-b5f5-c626c23d7dbc"
      id="F_b38c4fe0-6822-43b5-a386-e2cde0f2a69f">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b9e50ae7-f1c8-445d-b5f5-c626c23d7dbc"
      id="F_585ce399-e2da-4908-b1bd-cf823fb77dab">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b9e50ae7-f1c8-445d-b5f5-c626c23d7dbc"
      id="F_448660d2-a1fe-44a4-afc1-25005ca12a7a">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;3,798,550&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_b9e50ae7-f1c8-445d-b5f5-c626c23d7dbc"
      decimals="0"
      id="F_3c3345f0-7918-418f-9a36-1590ddf9ff7b"
      unitRef="U_USD">3798550</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
