<?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_ef6b67eb-437a-414c-ae9e-330eea04c4f8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-04</startDate>
            <endDate>2026-11-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_ef6b67eb-437a-414c-ae9e-330eea04c4f8"
      id="F_26c1cf89-1ba7-4c6e-b785-08c15f84fad6">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ef6b67eb-437a-414c-ae9e-330eea04c4f8"
      id="F_cbe924c3-eca6-42d3-9d9b-3a4c20a5b9ed">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_ef6b67eb-437a-414c-ae9e-330eea04c4f8"
      id="F_b4879e28-0711-4e53-a76c-1e2aaf9f8cfe">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ef6b67eb-437a-414c-ae9e-330eea04c4f8"
      id="F_37c3bca6-ead0-4670-ab40-53d2de49eb15">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_ef6b67eb-437a-414c-ae9e-330eea04c4f8"
      id="F_254b974d-d8c9-40cb-b5be-326efccf3bab">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_ef6b67eb-437a-414c-ae9e-330eea04c4f8"
      id="F_b0e3a1a8-1a61-48d9-8aa0-c0754b274660">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ef6b67eb-437a-414c-ae9e-330eea04c4f8"
      id="F_3ccafa0e-6fe7-4df8-bbc2-0d67713ac9b9">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ef6b67eb-437a-414c-ae9e-330eea04c4f8"
      id="F_166c6e15-3c8d-4896-b27e-bcb4a358dff1">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_ef6b67eb-437a-414c-ae9e-330eea04c4f8"
      id="F_d87f1f97-544b-4e1e-8ae9-4b3aca71ff43">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ef6b67eb-437a-414c-ae9e-330eea04c4f8"
      id="F_a2d0e6ce-e0fc-4ef8-acff-cb83a30a4b1b">&lt;p style="tab-size:26.66px;font-size:12pt;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;40,948,600&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_ef6b67eb-437a-414c-ae9e-330eea04c4f8"
      decimals="0"
      id="F_28f20b21-28bf-47f0-96cc-76cb4790e1b3"
      unitRef="U_USD">40948600</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
