<?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_75bb5e06-be87-4932-9b86-ba9695561c2a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_75bb5e06-be87-4932-9b86-ba9695561c2a"
      id="F_1530afb9-393d-44f5-a284-17554b48883f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_75bb5e06-be87-4932-9b86-ba9695561c2a"
      id="F_741d50cf-10b8-47a9-b1fa-0817f8c68a53">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_75bb5e06-be87-4932-9b86-ba9695561c2a"
      id="F_6c3d918c-95dd-48fd-a6b7-b2ae74f66776">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_75bb5e06-be87-4932-9b86-ba9695561c2a"
      id="F_16349299-84d3-4c63-8aa7-bd1d1ab8440b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_75bb5e06-be87-4932-9b86-ba9695561c2a"
      id="F_ea34633d-f025-403c-895a-90093c4fe235">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_75bb5e06-be87-4932-9b86-ba9695561c2a"
      id="F_ebb21272-4fed-41d8-939e-9ba8862ab6f1">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_75bb5e06-be87-4932-9b86-ba9695561c2a"
      id="F_a8df7149-cf95-4164-85ff-f0d360dc014e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_75bb5e06-be87-4932-9b86-ba9695561c2a"
      id="F_ad015d89-4d80-4389-9781-f6e516fb3f8f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_75bb5e06-be87-4932-9b86-ba9695561c2a"
      id="F_150dedf3-7335-4ed5-9e4a-cf1f8273958c">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_75bb5e06-be87-4932-9b86-ba9695561c2a"
      id="F_15374633-9bf0-428c-b5e7-b4a45696bf79">&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,394,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_75bb5e06-be87-4932-9b86-ba9695561c2a"
      decimals="-3"
      id="F_92bdb622-c5a0-41b8-9d32-ce1410ba7103"
      unitRef="U_USD">3394000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
