<?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_d4421196-8b89-40de-91b4-ae65b26d5d04">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d4421196-8b89-40de-91b4-ae65b26d5d04"
      id="F_83e1505e-0c8d-4d5e-b525-b1435b6887f5">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d4421196-8b89-40de-91b4-ae65b26d5d04"
      id="F_678315ce-63a5-4183-b582-bba61d4fc4b3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d4421196-8b89-40de-91b4-ae65b26d5d04"
      id="F_695cfab5-7231-4faa-a0ab-7084c4858b45">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d4421196-8b89-40de-91b4-ae65b26d5d04"
      id="F_8cc8e25a-aa86-486a-bb06-17234a2e22a3">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d4421196-8b89-40de-91b4-ae65b26d5d04"
      id="F_12c250a1-1912-4803-a71d-20810c015c11">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d4421196-8b89-40de-91b4-ae65b26d5d04"
      id="F_198ebfb7-e783-4055-936b-aa1b54e27d97">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d4421196-8b89-40de-91b4-ae65b26d5d04"
      id="F_2cfcb6df-6817-41c6-8319-f09bb0b8c3b6">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d4421196-8b89-40de-91b4-ae65b26d5d04"
      id="F_e9260262-e41c-41da-991a-436dfb170d30">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d4421196-8b89-40de-91b4-ae65b26d5d04"
      id="F_30bd39f7-cbe9-42d4-89fb-b4eb5f404146">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d4421196-8b89-40de-91b4-ae65b26d5d04"
      id="F_bc9621e2-4dfb-4259-98e0-c7013b0dc2fb">&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,002,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_d4421196-8b89-40de-91b4-ae65b26d5d04"
      decimals="0"
      id="F_613a0cbd-7ef9-4ae9-9653-c8716eb6e6ce"
      unitRef="U_USD">1002000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
