<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_29fa0eb3-d761-4c92-8045-4867b6029c3f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_29fa0eb3-d761-4c92-8045-4867b6029c3f"
      id="F_0e9e68e8-171c-4090-9b6a-388bdfde180d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_29fa0eb3-d761-4c92-8045-4867b6029c3f"
      id="F_a7f4f1e9-2491-4a4c-8eec-c7d9abe4f95c">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_29fa0eb3-d761-4c92-8045-4867b6029c3f"
      id="F_d208c977-1be4-4972-a0ab-e385c53d16c0">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_29fa0eb3-d761-4c92-8045-4867b6029c3f"
      id="F_7a00ddf8-5f5c-43de-83cb-2b228de6dd02">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_29fa0eb3-d761-4c92-8045-4867b6029c3f"
      id="F_397d4b82-ffc3-4941-a39d-385bcd9c1c22">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_29fa0eb3-d761-4c92-8045-4867b6029c3f"
      id="F_429ac369-eaed-476f-9987-32877271512c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_29fa0eb3-d761-4c92-8045-4867b6029c3f"
      id="F_0721233c-e8b5-4835-ac19-0ef11cb6562d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_29fa0eb3-d761-4c92-8045-4867b6029c3f"
      id="F_0ed17eec-0ae8-4a4d-8ccd-0a3747b55fb2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_29fa0eb3-d761-4c92-8045-4867b6029c3f"
      id="F_d9977064-e16b-44a4-8581-5e3055602435">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_29fa0eb3-d761-4c92-8045-4867b6029c3f"
      id="F_0a4290da-dacb-4de1-b230-06c15757b1ca">&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;40,242,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_29fa0eb3-d761-4c92-8045-4867b6029c3f"
      decimals="0"
      id="F_bbf1f565-86c7-4a76-ae97-839b43429577"
      unitRef="U_USD">40242000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
