<?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_ee1a38e4-69c8-47a1-9a8f-708984805239">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_ee1a38e4-69c8-47a1-9a8f-708984805239"
      id="F_059f63ff-5c78-4518-9ef3-154f77fa6b4e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ee1a38e4-69c8-47a1-9a8f-708984805239"
      id="F_f8191089-453a-45f5-b54c-6b551facc54e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_ee1a38e4-69c8-47a1-9a8f-708984805239"
      id="F_6e2eeb87-513b-4050-9540-38418523c340">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ee1a38e4-69c8-47a1-9a8f-708984805239"
      id="F_8465a171-4673-4ec5-b917-267a6bdd95ef">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ee1a38e4-69c8-47a1-9a8f-708984805239"
      id="F_954d9372-1b02-4d10-8c78-726c5ab0d68f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ee1a38e4-69c8-47a1-9a8f-708984805239"
      id="F_115cbf6e-30c4-4a71-94f4-2b501ce38fd6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ee1a38e4-69c8-47a1-9a8f-708984805239"
      id="F_b3dcbec0-1c45-4bfa-807b-b601c42b4234">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_ee1a38e4-69c8-47a1-9a8f-708984805239"
      id="F_f258e6dc-c3fd-4b1d-bce5-644301e78ad2">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ee1a38e4-69c8-47a1-9a8f-708984805239"
      id="F_997d1cfc-8442-445f-8e5a-2ba041855c1f">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_ee1a38e4-69c8-47a1-9a8f-708984805239"
      id="F_c2b49144-7652-41b0-a0df-8968070c3acd">&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;392,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_ee1a38e4-69c8-47a1-9a8f-708984805239"
      decimals="-3"
      id="F_ebecedb0-bf5b-499d-a295-d7508837fad5"
      unitRef="U_USD">392000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
