<?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_32e19ff5-e61f-46ad-9ab6-5e38ed2aed1d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_32e19ff5-e61f-46ad-9ab6-5e38ed2aed1d"
      id="F_cc8027af-0e5e-4935-871f-2638f804dcfb">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_32e19ff5-e61f-46ad-9ab6-5e38ed2aed1d"
      id="F_55335023-7d7d-4a2e-a41f-d599ea9fdc5b">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_32e19ff5-e61f-46ad-9ab6-5e38ed2aed1d"
      id="F_f6a8776d-52fa-4a95-949c-3141e2947ddc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_32e19ff5-e61f-46ad-9ab6-5e38ed2aed1d"
      id="F_301c97ac-8ff0-47d4-b909-5dd2c8ab12a8">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_32e19ff5-e61f-46ad-9ab6-5e38ed2aed1d"
      id="F_2bdcb8cc-ebb7-4f20-81c5-6c7842fb2361">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_32e19ff5-e61f-46ad-9ab6-5e38ed2aed1d"
      id="F_729e1193-4266-47f1-8de1-87fbb4637ea9">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_32e19ff5-e61f-46ad-9ab6-5e38ed2aed1d"
      id="F_71f2009c-11ea-4903-9161-23339ce2408b">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_32e19ff5-e61f-46ad-9ab6-5e38ed2aed1d"
      id="F_2b799bdd-7fb1-458b-90ad-6cc24c234c98">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_32e19ff5-e61f-46ad-9ab6-5e38ed2aed1d"
      id="F_04cfd4eb-af35-4963-8424-44546ab1615b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_32e19ff5-e61f-46ad-9ab6-5e38ed2aed1d"
      id="F_5144e54c-7b15-4990-b0e1-55487723cdbf">&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;550,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_32e19ff5-e61f-46ad-9ab6-5e38ed2aed1d"
      decimals="-3"
      id="F_9dca4b1f-81b2-4bb5-a41c-3062e5f4a3bb"
      unitRef="U_USD">550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
