<?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_e7079893-94ed-45c3-9217-cc554d717d38">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e7079893-94ed-45c3-9217-cc554d717d38"
      id="F_d9c1acf5-cbef-4cc4-b469-7a0a2668871e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e7079893-94ed-45c3-9217-cc554d717d38"
      id="F_6c331926-55dc-4698-b05d-86848a1daf6d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e7079893-94ed-45c3-9217-cc554d717d38"
      id="F_f0573a82-800a-480e-bdcf-120615b00ae4">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_e7079893-94ed-45c3-9217-cc554d717d38"
      id="F_f747c605-da00-4224-bcc3-3df16ae5a226">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e7079893-94ed-45c3-9217-cc554d717d38"
      id="F_8c9025be-4e52-49af-9f94-9a8563f97178">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e7079893-94ed-45c3-9217-cc554d717d38"
      id="F_3021a935-b513-4fb7-8bdf-e20f19d7d806">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_e7079893-94ed-45c3-9217-cc554d717d38"
      id="F_3c7a1fd3-aa8a-4722-adf1-de292bf70400">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e7079893-94ed-45c3-9217-cc554d717d38"
      id="F_897b718e-29b9-49f0-92b9-6555f72314c9">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_e7079893-94ed-45c3-9217-cc554d717d38"
      id="F_a0fcfe40-c08a-4f23-82fd-7f2ff661beea">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e7079893-94ed-45c3-9217-cc554d717d38"
      id="F_451863a2-c469-42e7-a24f-dea7ebe56d9b">&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,862,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_e7079893-94ed-45c3-9217-cc554d717d38"
      decimals="-3"
      id="F_0b3a21b2-856c-4787-b194-39b5523e79c3"
      unitRef="U_USD">3862000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
