<?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_7897bf18-d136-4649-989b-5611207093b8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_7897bf18-d136-4649-989b-5611207093b8"
      id="F_871cfb3d-fe80-4d82-9061-fa597cdac5f3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7897bf18-d136-4649-989b-5611207093b8"
      id="F_fa8574f0-2579-432e-a24d-d6c73589ecd8">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7897bf18-d136-4649-989b-5611207093b8"
      id="F_68654dbd-595a-4725-bf9c-a9127121ed65">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_7897bf18-d136-4649-989b-5611207093b8"
      id="F_4d7d88f4-7ba4-49c3-ae75-28afc706bd1e">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_7897bf18-d136-4649-989b-5611207093b8"
      id="F_20ea0433-66cd-413e-afa7-1a25c6003737">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_7897bf18-d136-4649-989b-5611207093b8"
      id="F_f7b44e3c-1ab5-4d4e-a5e3-e58975bcd0eb">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7897bf18-d136-4649-989b-5611207093b8"
      id="F_afcd65f2-cdb6-463b-a984-64721cf0dcee">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_7897bf18-d136-4649-989b-5611207093b8"
      id="F_ff140717-8591-4a49-ad32-6b73d2fbacd7">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_7897bf18-d136-4649-989b-5611207093b8"
      id="F_5d804666-1503-4841-aa55-46a55bf0993d">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7897bf18-d136-4649-989b-5611207093b8"
      id="F_ef309b54-56c5-4e5e-89ed-5944e2d49104">&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;6,109,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_7897bf18-d136-4649-989b-5611207093b8"
      decimals="-3"
      id="F_3906cdb2-0a93-4af9-8b1c-fd4de41627bc"
      unitRef="U_USD">6109000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
