<?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_4402044c-24af-4bbc-b25f-81aef0afdd4d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_4402044c-24af-4bbc-b25f-81aef0afdd4d"
      id="F_d5c76b2e-677d-4ecf-9de3-b9a67432ce67">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4402044c-24af-4bbc-b25f-81aef0afdd4d"
      id="F_af271cb5-8d44-4e62-85b6-75a7b5da763c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_4402044c-24af-4bbc-b25f-81aef0afdd4d"
      id="F_ee24714e-2d8e-424b-beb4-1f914dfe61c2">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4402044c-24af-4bbc-b25f-81aef0afdd4d"
      id="F_d83a65e8-3c2c-4b1c-bc6a-b811628c9f60">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_4402044c-24af-4bbc-b25f-81aef0afdd4d"
      id="F_1e4f1f18-4de3-4790-85cb-449bdb1d4e04">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4402044c-24af-4bbc-b25f-81aef0afdd4d"
      id="F_d2ae9968-bb9b-4c15-8846-df15b16d90bb">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4402044c-24af-4bbc-b25f-81aef0afdd4d"
      id="F_a6feabc5-bac3-40ca-a03d-8587372a716c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_4402044c-24af-4bbc-b25f-81aef0afdd4d"
      id="F_0261298b-97aa-4f5c-93a8-1b52813aaecf">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4402044c-24af-4bbc-b25f-81aef0afdd4d"
      id="F_95aa1217-6ccb-457e-9f9d-a159f90f12ef">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4402044c-24af-4bbc-b25f-81aef0afdd4d"
      id="F_f4b2517a-fbf4-4bad-8ef4-13c9fbb9ee4a">&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;500,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_4402044c-24af-4bbc-b25f-81aef0afdd4d"
      decimals="-3"
      id="F_4e156461-bb96-4df9-98d0-8844916fbfb8"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
