<?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_08b1b714-0c98-4531-b293-17b36cffc2fb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_08b1b714-0c98-4531-b293-17b36cffc2fb"
      id="F_d347ed7a-99f3-4413-97d5-7db94d9da68a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_08b1b714-0c98-4531-b293-17b36cffc2fb"
      id="F_8ee6e150-0598-42bd-9121-2e0b863eccd9">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_08b1b714-0c98-4531-b293-17b36cffc2fb"
      id="F_39575c6e-0482-448d-ae4c-7191b3c116ff">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_08b1b714-0c98-4531-b293-17b36cffc2fb"
      id="F_e255ab5a-42c9-48d0-877f-5b4f7dac74d8">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_08b1b714-0c98-4531-b293-17b36cffc2fb"
      id="F_2643c2a9-a92f-4a97-8877-eadb0fe03f7b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_08b1b714-0c98-4531-b293-17b36cffc2fb"
      id="F_583d3c6c-8ffc-410d-a278-629b18ef9295">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_08b1b714-0c98-4531-b293-17b36cffc2fb"
      id="F_362f2f78-6668-4248-93a1-530f28bf07b3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_08b1b714-0c98-4531-b293-17b36cffc2fb"
      id="F_59429406-3b0f-4399-abf2-46c36e907eef">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_08b1b714-0c98-4531-b293-17b36cffc2fb"
      id="F_ebf35e8c-87c2-4d9a-9364-9179cea874b4">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_08b1b714-0c98-4531-b293-17b36cffc2fb"
      id="F_67a2950a-c998-4b64-9381-46bd333c5c4f">&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;3,127,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_08b1b714-0c98-4531-b293-17b36cffc2fb"
      decimals="-3"
      id="F_2d653a5c-8918-45aa-8d91-51dae5735cab"
      unitRef="U_USD">3127000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
