<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_2ec84fd2-3da3-4c42-b9ce-baf2ffbe7a60">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_2ec84fd2-3da3-4c42-b9ce-baf2ffbe7a60"
      id="F_5ce5b00e-e758-4a9d-b8ff-51ba3ab4c9c1">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_2ec84fd2-3da3-4c42-b9ce-baf2ffbe7a60"
      id="F_6420d31e-cb3b-458b-b6f2-93bc9e4f84c6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_2ec84fd2-3da3-4c42-b9ce-baf2ffbe7a60"
      id="F_7dcafae1-649e-4156-9edd-d9f4e617b338">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_2ec84fd2-3da3-4c42-b9ce-baf2ffbe7a60"
      id="F_535b7be2-9bde-49cf-8b6a-f63e83799e3a">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_2ec84fd2-3da3-4c42-b9ce-baf2ffbe7a60"
      id="F_19678fdd-0ef2-4e1f-ab72-48cb43fa4ef8">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2ec84fd2-3da3-4c42-b9ce-baf2ffbe7a60"
      id="F_4ad9c9ce-6471-4df6-aed7-cc4a69e27357">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2ec84fd2-3da3-4c42-b9ce-baf2ffbe7a60"
      id="F_b717d1b3-9300-4cd5-b3c6-dfa1cc366c50">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_2ec84fd2-3da3-4c42-b9ce-baf2ffbe7a60"
      id="F_ef061255-b789-4c76-b703-f7f5a0083e54">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2ec84fd2-3da3-4c42-b9ce-baf2ffbe7a60"
      id="F_af4a3c4c-1c4a-4ec1-930b-550c9528fd52">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_2ec84fd2-3da3-4c42-b9ce-baf2ffbe7a60"
      id="F_42cbc985-b2c0-427a-9cda-86658b7f75f9">&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,595,000&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_2ec84fd2-3da3-4c42-b9ce-baf2ffbe7a60"
      decimals="0"
      id="F_f9df50a2-8146-4829-b596-889f988a1620"
      unitRef="U_USD">3595000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
