<?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_3bc37eb5-c2d8-400d-945f-6f8935b3f59d">
        <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:SubmissnTp
      contextRef="C_3bc37eb5-c2d8-400d-945f-6f8935b3f59d"
      id="F_6767ddff-363a-4353-a81c-53545860efed">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3bc37eb5-c2d8-400d-945f-6f8935b3f59d"
      id="F_b2960aaa-0af3-43d7-b597-453bb7368b87">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3bc37eb5-c2d8-400d-945f-6f8935b3f59d"
      id="F_6ea6eb66-2c38-4d5a-969f-95247dc92677">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3bc37eb5-c2d8-400d-945f-6f8935b3f59d"
      id="F_170ea90c-c729-4bc5-b9f3-01d48a1572b8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_3bc37eb5-c2d8-400d-945f-6f8935b3f59d"
      id="F_300b0732-6881-4097-88eb-e37721d70c9e">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3bc37eb5-c2d8-400d-945f-6f8935b3f59d"
      id="F_d551c3d2-078f-4967-8524-18668411a4df">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_3bc37eb5-c2d8-400d-945f-6f8935b3f59d"
      id="F_28c061a1-d3c3-4501-bcc0-9fbb31323d9a">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_3bc37eb5-c2d8-400d-945f-6f8935b3f59d"
      id="F_8f6c97c0-5e32-4450-a29a-3adbc0672302">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_3bc37eb5-c2d8-400d-945f-6f8935b3f59d"
      id="F_89379be8-6633-4bf1-86f4-07888522c92a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3bc37eb5-c2d8-400d-945f-6f8935b3f59d"
      id="F_38784d86-48ea-476d-8315-d98d0801f88e">&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;14,175,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_3bc37eb5-c2d8-400d-945f-6f8935b3f59d"
      decimals="0"
      id="F_e3ece620-f10d-400e-a728-1bd54685e3b1"
      unitRef="U_USD">14175000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
