<?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_151b5775-1889-4ebc-b566-bff40bf4968d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_151b5775-1889-4ebc-b566-bff40bf4968d"
      id="F_df872db8-9ed0-4440-b79d-63c6e2055d13">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_151b5775-1889-4ebc-b566-bff40bf4968d"
      id="F_2bba3e57-1055-482d-b52e-c5c074e6410b">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_151b5775-1889-4ebc-b566-bff40bf4968d"
      id="F_6f0e0239-371a-40fd-aea4-78d1d9ea7bcd">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_151b5775-1889-4ebc-b566-bff40bf4968d"
      id="F_3e6102fc-9049-44ff-9951-cecc553ff929">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_151b5775-1889-4ebc-b566-bff40bf4968d"
      id="F_582d8195-5462-40d8-ae95-ea3e46814353">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_151b5775-1889-4ebc-b566-bff40bf4968d"
      id="F_1b1a0d82-0875-41a8-be6e-395ec668f67c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_151b5775-1889-4ebc-b566-bff40bf4968d"
      id="F_f3e6eb97-fa6d-4fe8-a2dd-75b826010847">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_151b5775-1889-4ebc-b566-bff40bf4968d"
      id="F_ca3130e9-7df5-4305-a836-96af7525f9ec">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_151b5775-1889-4ebc-b566-bff40bf4968d"
      id="F_a431a34b-482a-4190-b927-5f3ef2ae40d5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_151b5775-1889-4ebc-b566-bff40bf4968d"
      id="F_c6fecf2d-d5b0-4484-bd9d-3cca853ee535">&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;1,012,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_151b5775-1889-4ebc-b566-bff40bf4968d"
      decimals="-3"
      id="F_e031749b-7188-49d3-b5f7-575b77ccd151"
      unitRef="U_USD">1012000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
