<?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_263653e8-0168-4432-9d26-240f9f4e9147">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_263653e8-0168-4432-9d26-240f9f4e9147"
      id="F_9c987136-ccc8-4d7f-8941-b7c0fc5102ab">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_263653e8-0168-4432-9d26-240f9f4e9147"
      id="F_3b2c1bfd-17c1-4304-82ce-7d4c3eab18ce">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_263653e8-0168-4432-9d26-240f9f4e9147"
      id="F_2562a953-f4ff-443f-b0b5-60a93f9f3181">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_263653e8-0168-4432-9d26-240f9f4e9147"
      id="F_a1329980-3546-43db-911e-408ee93fbacd">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_263653e8-0168-4432-9d26-240f9f4e9147"
      id="F_388c9775-0546-42f4-b603-44687eb0d86c">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_263653e8-0168-4432-9d26-240f9f4e9147"
      id="F_06045350-414d-47b2-9cd8-0da85da479dc">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_263653e8-0168-4432-9d26-240f9f4e9147"
      id="F_3acfedb5-aff6-4b8a-a5b4-bde8b074347a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_263653e8-0168-4432-9d26-240f9f4e9147"
      id="F_99fd8cc9-6871-43d2-8a3a-0977e05dc7fc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_263653e8-0168-4432-9d26-240f9f4e9147"
      id="F_899159a5-b326-496d-9300-f5398ce1431f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_263653e8-0168-4432-9d26-240f9f4e9147"
      id="F_7c7c583d-c111-4c7c-bbe4-4bc7e9326032">&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;360,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_263653e8-0168-4432-9d26-240f9f4e9147"
      decimals="0"
      id="F_9e9e16ef-14f4-48c5-9a0c-5549bd41ed8f"
      unitRef="U_USD">360000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
