<?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_2ef8b287-3f5c-4cbc-bfeb-68435687d9ba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_2ef8b287-3f5c-4cbc-bfeb-68435687d9ba"
      id="F_3227ab90-e6ae-47ba-ac8d-c198eb75b69d">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_2ef8b287-3f5c-4cbc-bfeb-68435687d9ba"
      id="F_dbabde84-d4f4-4198-b328-958159de83fe">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_2ef8b287-3f5c-4cbc-bfeb-68435687d9ba"
      id="F_4880bdd8-2e9f-4c00-8206-0f3595357856">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2ef8b287-3f5c-4cbc-bfeb-68435687d9ba"
      id="F_f3271365-8c5b-49cf-90c2-40401b4df2f6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_2ef8b287-3f5c-4cbc-bfeb-68435687d9ba"
      id="F_b97f10fe-9da3-46c9-ad40-d7358f24f2c1">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_2ef8b287-3f5c-4cbc-bfeb-68435687d9ba"
      id="F_f1291467-2cae-4c8c-9d38-db29864aef45">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_2ef8b287-3f5c-4cbc-bfeb-68435687d9ba"
      id="F_5ac0d029-d50d-4512-9560-22acf7854a36">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2ef8b287-3f5c-4cbc-bfeb-68435687d9ba"
      id="F_3ad603ea-223a-4c61-8e84-97e2e1654d16">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_2ef8b287-3f5c-4cbc-bfeb-68435687d9ba"
      id="F_f816774c-684f-45b7-b1c6-3efacec19a16">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2ef8b287-3f5c-4cbc-bfeb-68435687d9ba"
      id="F_e97383c9-1b22-433d-b953-b337b26a7683">&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;6,136,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_2ef8b287-3f5c-4cbc-bfeb-68435687d9ba"
      decimals="-3"
      id="F_4c572cb3-e69e-480c-8381-77c57d0bc37d"
      unitRef="U_USD">6136000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
