<?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_25408e48-4680-48b5-8fdd-037208ba1008">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-11</startDate>
            <endDate>2026-05-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_25408e48-4680-48b5-8fdd-037208ba1008"
      id="F_57b1f0df-2cd3-4df1-82c4-d4e5c3df1be2">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_25408e48-4680-48b5-8fdd-037208ba1008"
      id="F_449f5065-f2a0-4f7d-8e21-12fb50c2b470">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_25408e48-4680-48b5-8fdd-037208ba1008"
      id="F_45e090a0-f1bb-4a27-8a60-5cb3d396a6f7">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_25408e48-4680-48b5-8fdd-037208ba1008"
      id="F_436fc5a8-ae6f-4b4c-97df-a25463f2ced3">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_25408e48-4680-48b5-8fdd-037208ba1008"
      id="F_ebeec2bf-1e7d-4d45-8d9c-16652794c7bc">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_25408e48-4680-48b5-8fdd-037208ba1008"
      id="F_b9b744c1-a1da-4f44-ae58-74adae6fde4d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_25408e48-4680-48b5-8fdd-037208ba1008"
      id="F_1d7b7a23-1263-483c-9275-74d5323cceaf">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_25408e48-4680-48b5-8fdd-037208ba1008"
      id="F_c265335f-a3a8-461a-9b4a-7c1cdfc34419">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_25408e48-4680-48b5-8fdd-037208ba1008"
      id="F_60ad7e6e-6e44-4ba3-bdc5-d0c8232f42d7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_25408e48-4680-48b5-8fdd-037208ba1008"
      id="F_55431170-c628-4f8b-941a-82a98dbc65f2">&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;331,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_25408e48-4680-48b5-8fdd-037208ba1008"
      decimals="0"
      id="F_e45185c8-ce87-4b19-8013-0bae6eb13d3d"
      unitRef="U_USD">331000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
