<?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_75cfa68a-9a9d-44cc-ab03-e60468a9762e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_75cfa68a-9a9d-44cc-ab03-e60468a9762e"
      id="F_682a227b-c7cb-4ff7-b5f6-ec30db74aa79">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_75cfa68a-9a9d-44cc-ab03-e60468a9762e"
      id="F_4c63d31f-7dd5-4afb-b962-f2bd9840155e">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_75cfa68a-9a9d-44cc-ab03-e60468a9762e"
      id="F_bf58ae9a-13dd-4409-884d-147b62c60380">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_75cfa68a-9a9d-44cc-ab03-e60468a9762e"
      id="F_e3650c00-ac06-43cb-a5b7-e436fa2814f3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_75cfa68a-9a9d-44cc-ab03-e60468a9762e"
      id="F_0c1aa134-76a8-4653-8842-96583d26a8e2">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_75cfa68a-9a9d-44cc-ab03-e60468a9762e"
      id="F_ac475a1a-ce82-43c0-a125-0045fa475dfe">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_75cfa68a-9a9d-44cc-ab03-e60468a9762e"
      id="F_72ca20e7-e308-4536-8eba-016e3360fc17">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_75cfa68a-9a9d-44cc-ab03-e60468a9762e"
      id="F_ef576ca1-e5c1-496d-918c-f2e4ed97a804">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_75cfa68a-9a9d-44cc-ab03-e60468a9762e"
      id="F_d09f7cb0-d837-4994-b0ef-1556f718cfa8">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_75cfa68a-9a9d-44cc-ab03-e60468a9762e"
      id="F_9463d56c-04d6-4d85-bbfb-c853fa179609">&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;640,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_75cfa68a-9a9d-44cc-ab03-e60468a9762e"
      decimals="-3"
      id="F_ebd36762-20f7-4e85-b203-a6eac8c00486"
      unitRef="U_USD">640000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
