<?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_a58bc254-b831-4eda-a653-8fe78480e04f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a58bc254-b831-4eda-a653-8fe78480e04f"
      id="F_710ef4c6-cac8-4b8d-acfa-15de85f8c93a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_a58bc254-b831-4eda-a653-8fe78480e04f"
      id="F_271ad821-98fc-4f90-a033-8b3ec8be87dc">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a58bc254-b831-4eda-a653-8fe78480e04f"
      id="F_a145a746-652b-4239-965f-583bb428fcbb">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a58bc254-b831-4eda-a653-8fe78480e04f"
      id="F_09a39a0d-8708-4805-b9cf-c2c7c3703ed4">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a58bc254-b831-4eda-a653-8fe78480e04f"
      id="F_fa5e5de6-adb0-4232-8e08-836234e522ec">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a58bc254-b831-4eda-a653-8fe78480e04f"
      id="F_2077fee7-fd04-42a3-a91e-59ab55ea1a6d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a58bc254-b831-4eda-a653-8fe78480e04f"
      id="F_e1d9838a-101c-4bab-8bc8-8201f2e7d771">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a58bc254-b831-4eda-a653-8fe78480e04f"
      id="F_b17654ae-fc1a-4ad6-8785-d29ba98b3aa7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a58bc254-b831-4eda-a653-8fe78480e04f"
      id="F_7c034833-d426-4a4c-ad3b-9cbdaf2de6b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a58bc254-b831-4eda-a653-8fe78480e04f"
      id="F_75e4a22f-8da5-4a32-a8d5-09ffb00e69ea">&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;5,965,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_a58bc254-b831-4eda-a653-8fe78480e04f"
      decimals="-3"
      id="F_2486f5fe-891d-4f90-8a3f-15900cdfdec7"
      unitRef="U_USD">5965000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
